summaryrefslogtreecommitdiffstats
path: root/updater_sample
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2019-06-21 20:16:45 +0200
committerTao Bao <tbao@google.com>2019-06-21 21:10:36 +0200
commit061267eee9ccf8e17ce1ab81e4f0845a5a49ae45 (patch)
treeb51d31a5c880ec2c45c0a400277921ceab850ea4 /updater_sample
parentMerge "Implement the TargetFile and BuildInfo" (diff)
downloadandroid_bootable_recovery-061267eee9ccf8e17ce1ab81e4f0845a5a49ae45.tar
android_bootable_recovery-061267eee9ccf8e17ce1ab81e4f0845a5a49ae45.tar.gz
android_bootable_recovery-061267eee9ccf8e17ce1ab81e4f0845a5a49ae45.tar.bz2
android_bootable_recovery-061267eee9ccf8e17ce1ab81e4f0845a5a49ae45.tar.lz
android_bootable_recovery-061267eee9ccf8e17ce1ab81e4f0845a5a49ae45.tar.xz
android_bootable_recovery-061267eee9ccf8e17ce1ab81e4f0845a5a49ae45.tar.zst
android_bootable_recovery-061267eee9ccf8e17ce1ab81e4f0845a5a49ae45.zip
Diffstat (limited to '')
-rw-r--r--updater_sample/Android.bp1
-rw-r--r--updater_sample/README.md6
2 files changed, 4 insertions, 3 deletions
diff --git a/updater_sample/Android.bp b/updater_sample/Android.bp
index 845e07b70..a014248b0 100644
--- a/updater_sample/Android.bp
+++ b/updater_sample/Android.bp
@@ -15,7 +15,6 @@
android_app {
name: "SystemUpdaterSample",
sdk_version: "system_current",
- privileged: true,
srcs: ["src/**/*.java"],
diff --git a/updater_sample/README.md b/updater_sample/README.md
index 2070ebc21..2e12a2fb9 100644
--- a/updater_sample/README.md
+++ b/updater_sample/README.md
@@ -191,6 +191,8 @@ privileged system app, so it's granted the required permissions to access
</privapp-permissions>
```
to `frameworks/base/data/etc/privapp-permissions-platform.xml`
+4. Add `privileged: true` to SystemUpdaterSample
+ [building rule](https://android.googlesource.com/platform/bootable/recovery/+/refs/heads/master/updater_sample/Android.bp).
5. Build sample app `make -j SystemUpdaterSample`.
6. Build Android `make -j`
7. [Flash the device](https://source.android.com/setup/build/running)
@@ -229,9 +231,9 @@ The commands are expected to be run from `$ANDROID_BUILD_TOP`.
1. Build `make -j SystemUpdaterSample` and `make -j SystemUpdaterSampleTests`.
2. Install app
- `adb install $OUT/system/priv-app/SystemUpdaterSample/SystemUpdaterSample.apk`
+ `adb install $OUT/system/app/SystemUpdaterSample/SystemUpdaterSample.apk`
3. Install tests
- `adb install $OUT/testcases/SystemUpdaterSampleTests/SystemUpdaterSampleTests.apk`
+ `adb install $OUT/testcases/SystemUpdaterSampleTests/arm64/SystemUpdaterSampleTests.apk`
4. Run tests
`adb shell am instrument -w com.example.android.systemupdatersample.tests/android.support.test.runner.AndroidJUnitRunner`
5. Run a test file