summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author JW Wang <wangchun@google.com> 2023-04-10 14:30:46 +0800
committer JW Wang <wangchun@google.com> 2023-04-12 14:03:32 +0800
commitc85dfa3da5e35a04f501bcd5f5b7f99ded8bfbf4 (patch)
tree34e46eecb1f1f9e173a2b3495f5153a519edb91f
parent495e6011af438ed9ddbe6d4c586bc1febe4dbb36 (diff)
DSU enhancement (1/N)
* System image is not required This allows the client to install a new data partition without supplying new system images. This is handy to simulate the condition of factory reset. Bug: 277691885 Test: adb shell am start-activity \ -n com.android.dynsystem/com.android.dynsystem.VerificationActivity \ -a android.os.image.action.START_INSTALL \ --el KEY_USERDATA_SIZE 2147483648 Change-Id: I0580b9b608221f4a07d7f8456de0cdd2f300578b
-rw-r--r--packages/DynamicSystemInstallationService/AndroidManifest.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/DynamicSystemInstallationService/AndroidManifest.xml b/packages/DynamicSystemInstallationService/AndroidManifest.xml
index 176534829222..cd404385d5a0 100644
--- a/packages/DynamicSystemInstallationService/AndroidManifest.xml
+++ b/packages/DynamicSystemInstallationService/AndroidManifest.xml
@@ -39,6 +39,10 @@
<data android:scheme="http" />
<data android:scheme="https" />
</intent-filter>
+ <intent-filter>
+ <action android:name="android.os.image.action.START_INSTALL" />
+ <category android:name="android.intent.category.DEFAULT" />
+ </intent-filter>
</activity>
<receiver