summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorEdward Savage-Jones <edward.savage-jones@sony.com>2017-09-27 13:49:37 +0200
committerEdward Savage-Jones <edward.savage-jones@sony.com>2017-09-29 22:48:37 +0200
commit1186eb3fad0b61f9a6dbf027e933fd778cbad4b2 (patch)
treecad38ea1e19ee44a49fd370d84b148647519cbdd /tools/aapt2/java/JavaClassGenerator_test.cpp
parent3c03d5bd2b4b7fa645ee48e6b8ddbcce7f3b6193 (diff)
Block the upgrade of persistent apps
Currently when upgrading a persistent app the persistent flag will be silently stripped from the newly installed app, resulting in inconsitent app behaviour. Persistent apps by definiton should not be possible to upgrade via adb or any 3rd party installer. This commit adds a check which will fail the upgrade of an app marked as persistent. Bug: 66889554 Test: Manual - Create an app with the persistent flag set to true, push to /system/priv-app and reboot - Increment the app versionCode, build and install using adb install -r The attempted adb install should fail with: INSTALL_FAILED_INVALID_APK Change-Id: Iaa00addcfbbb2adba319bea96b37e8bfb6e11372
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions