OSDN Git Service

Allow internal services access to instant apps
authorTodd Kennedy <toddke@google.com>
Wed, 25 Oct 2017 17:11:09 +0000 (10:11 -0700)
committerTodd Kennedy <toddke@google.com>
Wed, 25 Oct 2017 18:27:29 +0000 (11:27 -0700)
commit17e40d2fb6d5ad2be3b71d3bc1232ea84f6596b6
treec8bbc656d2445a9225c8987b9d61be9936520f96
parentb8057e3178710a5da09894a4e2c051b3aab4f37f
Allow internal services access to instant apps

Any system UID [those with a UID < Process.FIRST_APPLICATION_UID] should be
able to see instant applications. These are trusted processes and will often
need to verify permissions of the calling instant app.

Change-Id: I4ec899ffd45d931a17d4ea0bfacf3004d3e074ef
Fixes: 67849834
Test: Manual.
Test: Install hellozip_base.apk from bug:
Test:  $ adb install --instantapp -i com.android.vending hellozip_base.apk
Test: Run hellozip
Test:  $ adb shell am start -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d https://hello.samples.androidinstantapps.com/hello
Test: Try to capture a photo and see that the app crashes with a SecurityException before the patch and that a photo is taken after the patch
Test: Try to record audio and see that the app crashes with an IllegalStateException before the patch and that the app doesn't crash after the patch
services/core/java/com/android/server/pm/PackageManagerService.java