diff options
author | Howard Chen <howardsoc@google.com> | 2024-05-13 16:32:46 +0800 |
---|---|---|
committer | Howard Chen <howardsoc@google.com> | 2024-05-14 17:00:33 +0800 |
commit | 6bede1ee90b892611428122eb0e688b5ca459dfe (patch) | |
tree | e43ac8d6d136392b6cdcf03c7c029e56d844a9cc | |
parent | bf88ecf8794faf6022c6df82c015161811e8104c (diff) | |
download | base-6bede1ee90b892611428122eb0e688b5ca459dfe.tar.gz |
Fix the DSU notification behavior
The 'mOneShot' should default to 'true' to prevent accidental activation of the sticky mode in the system.
Bug: 339788967
Test: adb shell am start-activity \
-n com.android.dynsystem/com.android.dynsystem.VerificationActivity \
-a android.os.image.action.START_INSTALL \
-d file:///storage/emulated/0/Download/system.raw.gz \
--el KEY_SYSTEM_SIZE $(du -b system.raw|cut -f1) \
--el KEY_USERDATA_SIZE 4294967296
Change-Id: Iad40d9923fa0680f6e8f37690bed817af2a19f04
-rw-r--r-- | packages/DynamicSystemInstallationService/src/com/android/dynsystem/DynamicSystemInstallationService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/DynamicSystemInstallationService/src/com/android/dynsystem/DynamicSystemInstallationService.java b/packages/DynamicSystemInstallationService/src/com/android/dynsystem/DynamicSystemInstallationService.java index 25ac3c9d9074..635dc420f18c 100644 --- a/packages/DynamicSystemInstallationService/src/com/android/dynsystem/DynamicSystemInstallationService.java +++ b/packages/DynamicSystemInstallationService/src/com/android/dynsystem/DynamicSystemInstallationService.java @@ -172,7 +172,7 @@ public class DynamicSystemInstallationService extends Service // This is for testing only now private boolean mEnableWhenCompleted; - private boolean mOneShot; + private boolean mOneShot = true; private boolean mHideNotification; private InstallationAsyncTask.Progress mInstallTaskProgress; |