This fixes a regression caused by 8f4afc8298
that libnativeloader can't no longer handle the case that it has failed
to find the default namespace. Previously before the change,
libnativeloader continued to use nullptr as the parent namespace which
is reconized as the default namespace inside the linker.
This change recovers the previous behavior. When the default namespace
is not found, NativeLoaderNamespace object is constructed from nullptr.
Bug: 138607234
Test: run app-compat/app-startup-gce on cf_x86_phone using forrest
Change-Id: If518fbc055399b73e7d3a6b45ace0f71e9c25dae
am: 6b66b85b5f -s ours
am skip reason: change_id I299d24623c363238e46229f8d09865e3afd6f9c0 with SHA1 48515dcfcb is in history
Change-Id: Ia47b1da66b7d5c0f69acf37b3451f594ae7f5886
am: d9f2b5dd8b -s ours
am skip reason: change_id I299d24623c363238e46229f8d09865e3afd6f9c0 with SHA1 48515dcfcb is in history
Change-Id: I4a7b8f863deb7fc5508490646e8ef60bb905acbf
am: 78707c86b5 -s ours
am skip reason: change_id I299d24623c363238e46229f8d09865e3afd6f9c0 with SHA1 ad986341a4 is in history
Change-Id: I852d093bc08e240ffbfeab72f72419bb585cc32b
am: 65f78ec4e7 -s ours
am skip reason: change_id I299d24623c363238e46229f8d09865e3afd6f9c0 with SHA1 48515dcfcb is in history
Change-Id: Ia7712b023bf115d9b42a5615b26c0672ae9a6ac9
am: d941ba256f -s ours
am skip reason: change_id I299d24623c363238e46229f8d09865e3afd6f9c0 with SHA1 48515dcfcb is in history
Change-Id: Ifa1e3c6e79f6aae4a823306bd6634b1193df6e06
am: 11933b8b78 -s ours
am skip reason: change_id I299d24623c363238e46229f8d09865e3afd6f9c0 with SHA1 ad986341a4 is in history
Change-Id: If25dcfb3189fe2ad789e84dda15920a5c564cb5a
am: 92fa5730de -s ours
am skip reason: change_id I299d24623c363238e46229f8d09865e3afd6f9c0 with SHA1 48515dcfcb is in history
Change-Id: I32f24a3af688a5a7106d1694438516eca18f181e
am: 98df5ab481 -s ours
am skip reason: change_id I299d24623c363238e46229f8d09865e3afd6f9c0 with SHA1 ad986341a4 is in history
Change-Id: I48f9efd12820a8e771fb8c5aab33d9a1bb6f769b
am: 184e9461c5 -s ours
am skip reason: change_id I299d24623c363238e46229f8d09865e3afd6f9c0 with SHA1 ad986341a4 is in history
Change-Id: Ib9532767d64b415d608237292c7ac3ae36ec8839
Export suspend and resume functionalities of libdm to command line
through dmctl.
Change-Id: I8e1dd7d67d8814631e4174d3ba169e705efc1df6
Bug: 137759376
Test: manual
Signed-off-by: Alessio Balsini <balsini@google.com>
In some cases it would be required to suspend the device to succesfully
complete some operations. An example is the suspension of the origin
device that is necessary to avoid data corruption when merging a
snapshot.
Introduce suspend and resume ioctls in libdm.
Bug: 137759376
Test: libdm_test
Change-Id: Id2ff34e930a8b32e570cb9f49da9cc3f65cb499c
Signed-off-by: Alessio Balsini <balsini@google.com>
$ adb remount
W DM_DEV_STATUS failed for scratch: No such device or address
E Can not mount overlayfs for partitions: No such file or directory
/system/bin/remount exited with status 8
remount failed
Bug: 138407617
Test: $ adb remount
Change-Id: I0f359071234b57324ad2324905b5239dbfa44d01
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>