Commit graph

52644 commits

Author SHA1 Message Date
Jiyong Park
db825ceba6 Don't fail if default namespace isn't found
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
2019-07-30 18:02:33 +09:00
Alessio Balsini
9cf5b75137 Merge "dmctl: suspend and resume devices" am: e1d4e39064 am: 90a6dda2ce am: 736227936d am: fb6825e993
am: dca729d44f

Change-Id: I91e7d31000721de881d4d0a9d520944814617cdc
2019-07-29 21:30:56 -07:00
Alessio Balsini
dca729d44f Merge "dmctl: suspend and resume devices" am: e1d4e39064 am: 90a6dda2ce am: 736227936d
am: fb6825e993

Change-Id: I21a603ac70861d30955a4088496f7b20c3436ea8
2019-07-29 21:24:00 -07:00
Alessio Balsini
fb6825e993 Merge "dmctl: suspend and resume devices" am: e1d4e39064 am: 90a6dda2ce
am: 736227936d

Change-Id: Ia539357d78c169cf65a61b5f4bb16ec6b5dad14f
2019-07-29 21:16:55 -07:00
Alessio Balsini
736227936d Merge "dmctl: suspend and resume devices" am: e1d4e39064
am: 90a6dda2ce

Change-Id: I95a19aaabf02211cb2fcbe84309820790d0bde1f
2019-07-29 21:07:51 -07:00
Alessio Balsini
90a6dda2ce Merge "dmctl: suspend and resume devices"
am: e1d4e39064

Change-Id: I1b9024c8d4ce5de3ba3fe4bf3a232b2f255fecc6
2019-07-29 20:58:53 -07:00
Treehugger Robot
e1d4e39064 Merge "dmctl: suspend and resume devices" 2019-07-30 03:32:01 +00:00
Tri Vo
4ab7fdccdf [automerger skipped] Merge "VtsKernelMemInfoTest: only enforce on Q+ launching devices" into qt-dev am: 184e9461c5 am: 92fa5730de -s ours am: 65f78ec4e7 -s ours
am: 6b66b85b5f -s ours
am skip reason: change_id I299d24623c363238e46229f8d09865e3afd6f9c0 with SHA1 48515dcfcb is in history

Change-Id: Ia47b1da66b7d5c0f69acf37b3451f594ae7f5886
2019-07-29 20:00:09 -07:00
Tri Vo
4b940ee1a5 [automerger skipped] Merge "VtsKernelMemInfoTest: only enforce on Q+ launching devices" into qt-dev am: 184e9461c5 am: 92fa5730de am: d941ba256f -s ours
am: d9f2b5dd8b -s ours
am skip reason: change_id I299d24623c363238e46229f8d09865e3afd6f9c0 with SHA1 48515dcfcb is in history

Change-Id: I4a7b8f863deb7fc5508490646e8ef60bb905acbf
2019-07-29 19:50:24 -07:00
Tri Vo
0c164d4e59 [automerger skipped] Merge "VtsKernelMemInfoTest: only enforce on Q+ launching devices" into qt-dev am: 184e9461c5 -s ours am: 98df5ab481 -s ours am: 11933b8b78 -s ours
am: 78707c86b5 -s ours
am skip reason: change_id I299d24623c363238e46229f8d09865e3afd6f9c0 with SHA1 ad986341a4 is in history

Change-Id: I852d093bc08e240ffbfeab72f72419bb585cc32b
2019-07-29 19:46:38 -07:00
Tri Vo
6b66b85b5f [automerger skipped] Merge "VtsKernelMemInfoTest: only enforce on Q+ launching devices" into qt-dev am: 184e9461c5 am: 92fa5730de -s ours
am: 65f78ec4e7 -s ours
am skip reason: change_id I299d24623c363238e46229f8d09865e3afd6f9c0 with SHA1 48515dcfcb is in history

Change-Id: Ia7712b023bf115d9b42a5615b26c0672ae9a6ac9
2019-07-29 19:19:20 -07:00
Tri Vo
d9f2b5dd8b [automerger skipped] Merge "VtsKernelMemInfoTest: only enforce on Q+ launching devices" into qt-dev am: 184e9461c5 am: 92fa5730de
am: d941ba256f -s ours
am skip reason: change_id I299d24623c363238e46229f8d09865e3afd6f9c0 with SHA1 48515dcfcb is in history

Change-Id: Ifa1e3c6e79f6aae4a823306bd6634b1193df6e06
2019-07-29 19:12:36 -07:00
Alessio Balsini
9239caa7bb Merge "libdm: suspend and resume devices" am: b6c32c9051 am: 5e145e676e am: d1d31a8dad am: e2384ebe6a
am: 1146b60260

Change-Id: Iba4adec7d683451264f045c3d67910e767044c50
2019-07-29 19:12:21 -07:00
Tri Vo
78707c86b5 [automerger skipped] Merge "VtsKernelMemInfoTest: only enforce on Q+ launching devices" into qt-dev am: 184e9461c5 -s ours am: 98df5ab481 -s ours
am: 11933b8b78 -s ours
am skip reason: change_id I299d24623c363238e46229f8d09865e3afd6f9c0 with SHA1 ad986341a4 is in history

Change-Id: If25dcfb3189fe2ad789e84dda15920a5c564cb5a
2019-07-29 19:10:25 -07:00
Tri Vo
65f78ec4e7 [automerger skipped] Merge "VtsKernelMemInfoTest: only enforce on Q+ launching devices" into qt-dev am: 184e9461c5
am: 92fa5730de -s ours
am skip reason: change_id I299d24623c363238e46229f8d09865e3afd6f9c0 with SHA1 48515dcfcb is in history

Change-Id: I32f24a3af688a5a7106d1694438516eca18f181e
2019-07-29 19:09:14 -07:00
David Anderson
2f86f33759 Merge "liblp: Fix typo in IsRetrofitDynamicPartitionsDevice." am: 687f1c4e8e am: 27de1de6ec am: fdf56832e2 am: 8fd432b143
am: 81ab279bfa

Change-Id: Ifc9a196b992188a005eafd4097e8e198536467ff
2019-07-29 19:00:17 -07:00
Tri Vo
11933b8b78 [automerger skipped] Merge "VtsKernelMemInfoTest: only enforce on Q+ launching devices" into qt-dev am: 184e9461c5 -s ours
am: 98df5ab481 -s ours
am skip reason: change_id I299d24623c363238e46229f8d09865e3afd6f9c0 with SHA1 ad986341a4 is in history

Change-Id: I48f9efd12820a8e771fb8c5aab33d9a1bb6f769b
2019-07-29 18:58:08 -07:00
Tri Vo
d941ba256f Merge "VtsKernelMemInfoTest: only enforce on Q+ launching devices" into qt-dev am: 184e9461c5
am: 92fa5730de

Change-Id: I250988c152001140db969c2a3cd8e87bdbf45e0f
2019-07-29 18:57:41 -07:00
Tri Vo
98df5ab481 [automerger skipped] Merge "VtsKernelMemInfoTest: only enforce on Q+ launching devices" into qt-dev
am: 184e9461c5 -s ours
am skip reason: change_id I299d24623c363238e46229f8d09865e3afd6f9c0 with SHA1 ad986341a4 is in history

Change-Id: Ib9532767d64b415d608237292c7ac3ae36ec8839
2019-07-29 18:49:19 -07:00
Tri Vo
92fa5730de Merge "VtsKernelMemInfoTest: only enforce on Q+ launching devices" into qt-dev
am: 184e9461c5

Change-Id: I9fc6de0a4f5608ae718e52b0806727bc44fbb688
2019-07-29 18:48:20 -07:00
Alessio Balsini
1146b60260 Merge "libdm: suspend and resume devices" am: b6c32c9051 am: 5e145e676e am: d1d31a8dad
am: e2384ebe6a

Change-Id: I2551eaac045274fe717af0ee13c1b5b954c1c487
2019-07-29 18:24:20 -07:00
David Anderson
81ab279bfa Merge "liblp: Fix typo in IsRetrofitDynamicPartitionsDevice." am: 687f1c4e8e am: 27de1de6ec am: fdf56832e2
am: 8fd432b143

Change-Id: I8fe6d1cbc79ad63f6bc6e8b95afd994f9dbf9472
2019-07-29 18:21:26 -07:00
TreeHugger Robot
184e9461c5 Merge "VtsKernelMemInfoTest: only enforce on Q+ launching devices" into qt-dev 2019-07-30 01:07:45 +00:00
Alessio Balsini
e2384ebe6a Merge "libdm: suspend and resume devices" am: b6c32c9051 am: 5e145e676e
am: d1d31a8dad

Change-Id: I2e35c35609df3624294ef8889d3360b8b572502d
2019-07-29 17:59:09 -07:00
David Anderson
8fd432b143 Merge "liblp: Fix typo in IsRetrofitDynamicPartitionsDevice." am: 687f1c4e8e am: 27de1de6ec
am: fdf56832e2

Change-Id: Ibd9c43032838567255749a2093fbf8c63b6598d0
2019-07-29 17:58:22 -07:00
Alessio Balsini
d1d31a8dad Merge "libdm: suspend and resume devices" am: b6c32c9051
am: 5e145e676e

Change-Id: I3f96093261d8940b97111145f5f3cb1a1598b566
2019-07-29 17:52:20 -07:00
David Anderson
fdf56832e2 Merge "liblp: Fix typo in IsRetrofitDynamicPartitionsDevice." am: 687f1c4e8e
am: 27de1de6ec

Change-Id: I043497604c4a70709351ad0f3bb884095ab7c650
2019-07-29 17:51:31 -07:00
Alessio Balsini
5e145e676e Merge "libdm: suspend and resume devices"
am: b6c32c9051

Change-Id: Ib87712fbad318fdae9ef50728ee7a9c3da775f7b
2019-07-29 17:38:30 -07:00
David Anderson
27de1de6ec Merge "liblp: Fix typo in IsRetrofitDynamicPartitionsDevice."
am: 687f1c4e8e

Change-Id: I6fec19a35f4c8c815d096f5ae4e4ae55db3824b4
2019-07-29 17:37:47 -07:00
Treehugger Robot
b6c32c9051 Merge "libdm: suspend and resume devices" 2019-07-30 00:09:31 +00:00
Mark Salyzyn
d725bbe469 Merge "fs_mgt: Fix remount failure in case of non-overlayfs system" am: 09bbdcb6b3 am: 8e54c6e8c1 am: 1cb55cff36 am: f39aa377f4
am: a5ee9dac77

Change-Id: Ibba0d00431244c8f4219eacf63750b31362c5bd0
2019-07-29 16:45:18 -07:00
David Anderson
687f1c4e8e Merge "liblp: Fix typo in IsRetrofitDynamicPartitionsDevice." 2019-07-29 23:01:18 +00:00
Mark Salyzyn
a5ee9dac77 Merge "fs_mgt: Fix remount failure in case of non-overlayfs system" am: 09bbdcb6b3 am: 8e54c6e8c1 am: 1cb55cff36
am: f39aa377f4

Change-Id: Iee6d194836c5a6214715375675f7624e573ef9f3
2019-07-29 15:19:24 -07:00
Mark Salyzyn
f39aa377f4 Merge "fs_mgt: Fix remount failure in case of non-overlayfs system" am: 09bbdcb6b3 am: 8e54c6e8c1
am: 1cb55cff36

Change-Id: Ic44966a40848d8ad169b97475317d43dcafb3142
2019-07-29 14:51:32 -07:00
Mark Salyzyn
1cb55cff36 Merge "fs_mgt: Fix remount failure in case of non-overlayfs system" am: 09bbdcb6b3
am: 8e54c6e8c1

Change-Id: I7a00b43d50ef28e425ecc643e18637ef1cb3f465
2019-07-29 14:15:09 -07:00
Mark Salyzyn
8e54c6e8c1 Merge "fs_mgt: Fix remount failure in case of non-overlayfs system"
am: 09bbdcb6b3

Change-Id: I0e45d40a6a134de072edbc2c05723d0f36e3e409
2019-07-29 13:29:59 -07:00
Alessio Balsini
79338406e0 dmctl: suspend and resume devices
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>
2019-07-29 20:48:55 +01:00
Alessio Balsini
bdc65bf083 libdm: suspend and resume devices
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>
2019-07-29 20:35:56 +01:00
Treehugger Robot
09bbdcb6b3 Merge "fs_mgt: Fix remount failure in case of non-overlayfs system" 2019-07-29 19:30:12 +00:00
David Anderson
f01faf2620 liblp: Fix typo in IsRetrofitDynamicPartitionsDevice.
Bug: 138590940
Test: manual test
Change-Id: I58c639e9308d1866d5423c79c00669d27f125d64
2019-07-29 12:20:13 -07:00
Jiyong Park
8232f344d5 Merge "Use android::base::Result in libnativeloader" am: 244d9b8fb9 am: 249756d200 am: 0decefedc8 am: 34b4154cb0
am: cfbaeaf08f

Change-Id: I8abfa0827737ec6773285ce550cf75e6e4ebe1be
2019-07-27 08:05:25 -07:00
Jiyong Park
cfbaeaf08f Merge "Use android::base::Result in libnativeloader" am: 244d9b8fb9 am: 249756d200 am: 0decefedc8
am: 34b4154cb0

Change-Id: Ibb1cb9701af11bfee83119e97029904ec139ea55
2019-07-27 07:56:25 -07:00
Jiyong Park
34b4154cb0 Merge "Use android::base::Result in libnativeloader" am: 244d9b8fb9 am: 249756d200
am: 0decefedc8

Change-Id: I45165b93da6e766654c57edfbf1c5491bad05981
2019-07-27 07:47:29 -07:00
Jiyong Park
0decefedc8 Merge "Use android::base::Result in libnativeloader" am: 244d9b8fb9
am: 249756d200

Change-Id: I00fbc6ac4a34b9df8a76743f7e9902497357beeb
2019-07-27 07:38:21 -07:00
Jiyong Park
249756d200 Merge "Use android::base::Result in libnativeloader"
am: 244d9b8fb9

Change-Id: I0e9aacfbca82f615e58e100d43963b9869c53cd9
2019-07-27 07:29:24 -07:00
Treehugger Robot
244d9b8fb9 Merge "Use android::base::Result in libnativeloader" 2019-07-27 14:07:44 +00:00
Mark Salyzyn
588fe9e8af fs_mgt: Fix remount failure in case of non-overlayfs system
$ 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>
2019-07-26 13:46:41 -07:00
Jiyong Park
d8aed7a1d9 Merge "Don't fail catastrophically on non-existing namespace" am: d11603646a am: b931f21570 am: dae6785ca2 am: b4d840eb74
am: 8d058d4b3c

Change-Id: I625c10573c680cf0541ca20ea7736de08302aa84
2019-07-26 08:46:46 -07:00
Jiyong Park
8d058d4b3c Merge "Don't fail catastrophically on non-existing namespace" am: d11603646a am: b931f21570 am: dae6785ca2
am: b4d840eb74

Change-Id: I04bf30c62f9d51465135e35dec3a5f4febd8802a
2019-07-26 08:35:44 -07:00
Jiyong Park
b4d840eb74 Merge "Don't fail catastrophically on non-existing namespace" am: d11603646a am: b931f21570
am: dae6785ca2

Change-Id: I3465c48eca9e7f6659363949e3984eadb80c0b9a
2019-07-26 08:25:44 -07:00