Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6bede1ee authored by Howard Chen's avatar Howard Chen
Browse files

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
parent bf88ecf8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;