Yo Chiang
b82e17ea11
Merge "Fix dynsystem.BootCompletedReceiver" am: cc0ece4108 am: 5d4aa4a1de am: d5c00788c5
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1555905
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: If83942ee72e974611164f72c3dbcd9153c8790eb
2021-01-27 07:52:58 +00:00
Yo Chiang
d5c00788c5
Merge "Fix dynsystem.BootCompletedReceiver" am: cc0ece4108 am: 5d4aa4a1de
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1555905
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ibd3dfb14772f117797baaea053450bedad66db78
2021-01-26 23:08:18 +00:00
Yo Chiang
db4dc27684
Merge "Remove feature flag "settings_dynamic_system"" am: 7b84f49b41 am: 3048afdb0a
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1541210
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: If301821ebc25b51135f26be7fc768b40bc71581e
2021-01-26 23:08:05 +00:00
Yo Chiang
715dd4b180
Fix dynsystem.BootCompletedReceiver
...
Cleanup remnants of dynamic_system feature flag.
This piece of code only makes sense when we had the feature flag.
Now that the feature flag is deprecated, we shouldn't check the
DynamicSystemManager.isInUse() anymore, because we actually do want to
post a notification when DSU is installed but not in use.
Bug: 176795908
Test: Install a DSU, reboot into guest system, reboot back to host
system, verify the BootCompletedReceiver is active.
Change-Id: I31c438fcd70e71eb2a5b14cdb713bd25516e8532
2021-01-21 18:12:17 +08:00
Yo Chiang
cb42566590
Remove feature flag "settings_dynamic_system"
...
The API surface of com.android.dynsystem is already protected by
privileged permission android.permission.INSTALL_DYNAMIC_SYSTEM,
which is only granted to system apps or priv apps.
Thus the feature flag check here is redundant, because eligible
callers of this API (system app) can also set the feature flag.
Bug: 176795908
Test: Presubmit
Test: Test DSU installation Intent
Change-Id: Iedac8763372ef6f11754d3f272f70753fb3d4829
Merged-In: Iedac8763372ef6f11754d3f272f70753fb3d4829
2021-01-14 15:45:53 +08:00
Yo Chiang
091f514bf5
Remove feature flag "settings_dynamic_system"
...
The API surface of com.android.dynsystem is already protected by
privileged permission android.permission.INSTALL_DYNAMIC_SYSTEM,
which is only granted to system apps or priv apps.
Thus the feature flag check here is redundant, because eligible
callers of this API (system app) can also set the feature flag.
Bug: 176795908
Test: Presubmit
Test: Test DSU installation Intent
Change-Id: Iedac8763372ef6f11754d3f272f70753fb3d4829
2021-01-13 09:34:37 +00:00
Treehugger Robot
022bcda29f
Merge "Change log tag of DynamicSystemClient to match class name" am: 916dfddfd0 am: 198e4b4c4b am: b704222433
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1537885
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I218799056e3b1c85505a6201b9275234648bc07c
2021-01-06 11:51:05 +00:00
Treehugger Robot
b704222433
Merge "Change log tag of DynamicSystemClient to match class name" am: 916dfddfd0 am: 198e4b4c4b
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1537885
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I36612768f8f876e93c624ed59d7c92bed7ae8b2d
2021-01-06 11:24:01 +00:00
Treehugger Robot
916dfddfd0
Merge "Change log tag of DynamicSystemClient to match class name"
2021-01-06 11:11:58 +00:00
Yo Chiang
1f5c6134d9
Merge "DynamicSystemInstallationService: Support remount for DSU guest system" am: 4896c7f2ac am: b64a3f5871 am: ddff5bca30
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1537222
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ib984c05213a1974fcdc59a59ed0ff47d260720a8
2021-01-06 10:06:52 +00:00
Yo Chiang
ddff5bca30
Merge "DynamicSystemInstallationService: Support remount for DSU guest system" am: 4896c7f2ac am: b64a3f5871
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1537222
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ic2468f5f90cc7ae789ab0a1b5eaa4262e279c429
2021-01-06 09:45:56 +00:00
Yo Chiang
cd65cd4e04
Change log tag of DynamicSystemClient to match class name
...
Expand the "DynSystem" abbreviation to "DynamicSystem".
For simpler log grepping.
Bug: 165471299
Test: No
Change-Id: Ibec692ae45539dacd55e13ffaa903b58f3bf0417
2021-01-06 08:24:16 +00:00
Yo Chiang
848bcdc42a
DynamicSystemInstallationService: Support remount for DSU guest system
...
DSU service would try to install a DSU scratch partition if host system
is debuggable.
If the scratch partition failed to install, then skip installing
scratch, as remount support should be optional.
Otherwise if the guest system is non-debuggable, then the scratch
partition would be ignored by guest, which is harmless.
Otherwise the guest system is debuggable, which means the guest system
would be able to do adb remount.
Relax partition allocation status polling rate from 10ms -> 100ms,
because there's no point polling faster than the screen framerate.
Bug: 165925766
Test: TH
Test: Install a DSU system on a debuggable host, reboot into the guest
system, and guest system can remount.
Change-Id: I9a8255483cc963ebcf7a2909e68ac69371cb369f
2021-01-05 15:38:42 +08:00
Yo Chiang
34487c2d69
Merge "Update OWNERS file for DynamicSystemInstallationService related files" am: d15cbc37d5 am: da54c495b6 am: df076f3e17
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1537268
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I3af03c3c874595f8e0e2006bff0012ada23e3631
2021-01-05 05:07:27 +00:00
Yo Chiang
df076f3e17
Merge "Update OWNERS file for DynamicSystemInstallationService related files" am: d15cbc37d5 am: da54c495b6
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1537268
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I88527e0b97e6a3705935bde0e89760435e0bb46b
2021-01-05 04:42:37 +00:00
Yo Chiang
d15cbc37d5
Merge "Update OWNERS file for DynamicSystemInstallationService related files"
2021-01-05 03:34:39 +00:00
Yo Chiang
70aa429243
Update OWNERS file for DynamicSystemInstallationService related files
...
Also sort OWNERS by alphabetical order.
Bug: 165925766
Test: No
Change-Id: Ib272ba802d0f7281aa2d1bbc8b74dc5954dbe13c
2020-12-31 14:10:36 +08:00
Yo Chiang
fc06c0a6a9
Merge "Refactor InstallationAsyncTask.Progress" am: 93e3644f88 am: 33ad4e1225 am: 2103e9b0d7
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1537221
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I82799bc7317f8c8e471fdc69a7120f4280f5d137
2020-12-31 05:08:42 +00:00
Yo Chiang
2103e9b0d7
Merge "Refactor InstallationAsyncTask.Progress" am: 93e3644f88 am: 33ad4e1225
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1537221
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ia4d25259d14eb51cf4d60c7e3e1bf774b5073a77
2020-12-31 04:28:42 +00:00
Yo Chiang
93e3644f88
Merge "Refactor InstallationAsyncTask.Progress"
2020-12-31 03:18:26 +00:00
Treehugger Robot
6fee0a4fce
Merge "Add OWNERS file for packages/DynamicSystemInstallationService" am: 4c7a71448d am: f75c4574ab am: 25dd5b0894
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1536709
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ibcce5371a03d88bbca8aab6909578195be6144bf
2020-12-30 16:52:07 +00:00
Treehugger Robot
25dd5b0894
Merge "Add OWNERS file for packages/DynamicSystemInstallationService" am: 4c7a71448d am: f75c4574ab
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1536709
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I96f8798965a22e401c4548809db8c0e714b0b120
2020-12-30 16:12:08 +00:00
Yo Chiang
e6271f5c16
Add OWNERS file for packages/DynamicSystemInstallationService
...
Bug: 165925766
Test: No
Change-Id: I816bcfdaa960af08269ae6c864fd2d33b631bedd
2020-12-30 20:51:04 +08:00
Yo Chiang
0a63f5592c
Refactor InstallationAsyncTask.Progress
...
Instead of passing a number around as the number of installed
partitions, track the number in a member field in InstallationAsyncTask.
This makes installing partitions after installImages() had returned
possible.
Bug: 165925766
Test: TH
Change-Id: Iec45c9fa1a39f0bcc4eeaa00e44d3394d55087d3
2020-12-30 20:08:42 +08:00
Bill Yi
d90f296dd0
Import translations. DO NOT MERGE ANYWHERE
...
Auto-generated-cl: translation import
Change-Id: Ib4c485293281b1588e90ae799afcd1b8d4528c66
2020-12-05 19:29:22 +00:00
Bill Yi
c6898ccb44
Revert "Import translations. DO NOT MERGE ANYWHERE"
...
This reverts commit 35cf1c92f3 .
Reason for revert: Incorrect import
Change-Id: I771d3cd65a1ccaf9852a913bc1974088a1411226
2020-11-20 03:05:31 +00:00
Bill Yi
35cf1c92f3
Import translations. DO NOT MERGE ANYWHERE
...
Auto-generated-cl: translation import
Change-Id: I7b9bedab94f9cfd1d57ecb27e9830edc219ef719
2020-11-19 04:01:09 +00:00
Bill Yi
6e8fad2e38
Import translations. DO NOT MERGE
...
Auto-generated-cl: translation import
Change-Id: Ib8f6104bc0b45e0c857fcd93a7702d695f854f90
2020-11-09 15:58:10 -08:00
Yo Chiang
9a12c2be5d
Merge "Disable DSU in executeRebootToNormalCommand()" am: 0b6bf88ccd am: f785394fb3 am: b8f884150d am: 7d1a821d9d am: e5a9e4a354
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1470783
Change-Id: I466380e067d60fc5ea82660828ad3a8c12616692
2020-10-30 08:55:51 +00:00
Yo Chiang
e5a9e4a354
Merge "Disable DSU in executeRebootToNormalCommand()" am: 0b6bf88ccd am: f785394fb3 am: b8f884150d am: 7d1a821d9d
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1470783
Change-Id: I795daab4a881b78cc6717cee41bfa01637d93e37
2020-10-30 08:20:29 +00:00
Yo Chiang
b8f884150d
Merge "Disable DSU in executeRebootToNormalCommand()" am: 0b6bf88ccd am: f785394fb3
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1470783
Change-Id: Ie3cccfbeb1d4d187bcf2282fe0fcdbcbc22ca261
2020-10-30 07:44:22 +00:00
Yo Chiang
0b6bf88ccd
Merge "Disable DSU in executeRebootToNormalCommand()"
2020-10-30 06:55:43 +00:00
Yo Chiang
68e2d6b360
Disable DSU in executeRebootToNormalCommand()
...
executeRebootToNormalCommand() reboots the device only if DSU is
successfully disabled, else show a toast describing the failure.
Bug: 171380622
Test: 1. Install and boot into a DSU
2. adb shell gsi_tool enable
3. Press "Restart" in DSU notification
4. Observe the device reboots back to the original system
Change-Id: I19b3d09a64282a28ca7b99b441ca93dea45fcce0
2020-10-29 16:03:38 +08:00
Howard Chen
210e5c1161
Merge "Add a mutability flag to the PendingIntent in DynamicSystemInstallationService" am: dc0b992c75 am: 5107e43858 am: 46a6aee06d am: 0e0af4cf47 am: 09e1c8925c
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1479478
Change-Id: Icb1fbe19717ad3e477fec9530865b655f3a04d85
2020-10-29 07:47:32 +00:00
Howard Chen
09e1c8925c
Merge "Add a mutability flag to the PendingIntent in DynamicSystemInstallationService" am: dc0b992c75 am: 5107e43858 am: 46a6aee06d am: 0e0af4cf47
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1479478
Change-Id: I7fb65a386b3a058c4da0f2d539e2903aae180987
2020-10-29 07:28:44 +00:00
Howard Chen
46a6aee06d
Merge "Add a mutability flag to the PendingIntent in DynamicSystemInstallationService" am: dc0b992c75 am: 5107e43858
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1479478
Change-Id: I78b38fdf4bd8ddad4eb6abf9ddf89c15e6537093
2020-10-29 06:35:55 +00:00
Howard Chen
54653ba116
Add a mutability flag to the PendingIntent in DynamicSystemInstallationService
...
Bug: 171718124
Test: DSU installation
Change-Id: Id352e37238aad6499841dc379b006f2e0150181d
2020-10-29 11:06:26 +08:00
Jeff Sharkey
f80597de7e
Merge "Enable Error Prone to detect obscure bugs." am: f7dee0be43
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12911914
Change-Id: Ic8d1a73aaa0549bea697788fbcf228c4cae59352
2020-10-24 17:30:53 +00:00
Jeff Sharkey
d23b5379c0
Enable Error Prone to detect obscure bugs.
...
We've been writing many new framework-specific Error Prone checkers
to help detect obscure platform bugs, and this change starts enabling
those checkers for more packages across the platform.
Bug: 155703208
Test: manual
Exempt-From-Owner-Approval: trivial blueprint changes
Change-Id: I1db3412b0be40f6f78c68331ae01756887192071
2020-10-23 16:55:30 -06:00
Yo Chiang
3a57889d28
Merge "Dismiss DSU notification in executeDiscardCommand()" am: 3313038017 am: 7af64dd1f7 am: 9e47644314 am: 970bd09428 am: 8dd34a1749
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1448418
Change-Id: I03fcbb9a46fa5192b96af042d501968c1d978453
2020-10-06 06:21:50 +00:00
Yo Chiang
8dd34a1749
Merge "Dismiss DSU notification in executeDiscardCommand()" am: 3313038017 am: 7af64dd1f7 am: 9e47644314 am: 970bd09428
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1448418
Change-Id: Ib2314a9423f132a7c9ec001acb380369426c870d
2020-10-06 05:56:28 +00:00
Yo Chiang
9e47644314
Merge "Dismiss DSU notification in executeDiscardCommand()" am: 3313038017 am: 7af64dd1f7
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1448418
Change-Id: Ia170a72614648614cb33c8ff079531f1507899d0
2020-10-06 05:13:34 +00:00
Yo Chiang
7af64dd1f7
Merge "Dismiss DSU notification in executeDiscardCommand()" am: 3313038017
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1448418
Change-Id: Id0a2b1fb7752e3d9de83f3613d0290c0ecf9096a
2020-10-06 04:38:53 +00:00
Yo Chiang
569c31cef6
Dismiss DSU notification in executeDiscardCommand()
...
Dismiss notification even if there is no active DSU installation.
Bug: 170072953
Test: Install a DSU system.
Reboot into guest system and reboot back to host system.
`adb shell gsi_tool wipe`
Press "Discard" in the DSU notification, the notifiction is dismissed.
Change-Id: I6f217c4ba287e4789d61182a12485db60f9605c9
2020-10-05 08:57:50 +00:00
Bill Yi
c7be32a1b1
Import translations. DO NOT MERGE ANYWHERE
...
Auto-generated-cl: translation import
Change-Id: I923ae5fe5c949911dc0b49cc9ad43dbbbf448431
2020-10-04 23:33:11 -07:00
Bill Yi
078b413289
Import translations. DO NOT MERGE ANYWHERE
...
Auto-generated-cl: translation import
Change-Id: I7df5410104e4be01cb906e0f607a3acc730bfbe7
2020-09-10 10:57:30 +00:00
Bill Yi
70726e8fad
Import translations. DO NOT MERGE ANYWHERE
...
Auto-generated-cl: translation import
Change-Id: Ic9f70d811812b888832db3c4f302f628d757bafc
2020-09-04 17:36:13 +00:00
TreeHugger Robot
3a301e8671
Merge "Import translations. DO NOT MERGE ANYWHERE" into stage-aosp-master
2020-09-03 01:07:47 +00:00
Bill Yi
31ccff50f7
Import translations. DO NOT MERGE ANYWHERE
...
Auto-generated-cl: translation import
Change-Id: I7672d1bacef6d243b623cd0c222cf4e438b65631
2020-09-02 23:21:32 +00:00
Yo Chiang
50c284871b
Merge "Check error status after installing each DSU partition" am: fbd85db85d am: 73d5afb2cb am: dbe6d55157 am: 9b2f226473 am: 52a88df94a am: 309f789948
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1404669
Change-Id: I094ca41304c8c56e06b0018312523bd332b067ed
2020-09-02 07:10:36 +00:00