summaryrefslogtreecommitdiffstats
path: root/res/values
diff options
context:
space:
mode:
authorSuprabh Shukla <suprabh@google.com>2017-04-14 17:31:38 -0700
committerSuprabh Shukla <suprabh@google.com>2017-04-18 21:26:18 -0700
commite272b25a66ff9e5c65ab0452272a0326315b5c47 (patch)
tree87dca21b41696e075e9b1dc3148f7cde7c5bb097 /res/values
parent97935a7c0004734da45dce0df49cfebed5c89fc2 (diff)
downloadandroid_packages_apps_PackageInstaller-e272b25a66ff9e5c65ab0452272a0326315b5c47.tar.gz
android_packages_apps_PackageInstaller-e272b25a66ff9e5c65ab0452272a0326315b5c47.tar.bz2
android_packages_apps_PackageInstaller-e272b25a66ff9e5c65ab0452272a0326315b5c47.zip
Enforced app op permission in package installer
Apps targetting O and above need to declare REQUEST_INSTALL_PACKAGES permission in order to start package installer. Only apps exempt are downloads provider and document manager apps. And only these apps can use EXTRA_ORIGINATING_UID to blame other uids for app installs. Also added a special wraning dialog for when system cannot identify the source of the package. Test: gts-tradefed run gts -m ExternalSourcesNegative Bug: 35916776, 33351244 Change-Id: I74b242355807502c4e1bf0e7dbdb9845dc725e48
Diffstat (limited to 'res/values')
-rw-r--r--res/values/strings.xml27
1 files changed, 27 insertions, 0 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml
index f8aa1d55..f62d5fb2 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -347,6 +347,33 @@
<!-- Text to show in warning dialog on the phone when the app source is not trusted [CHAR LIMIT=NONE] -->
<string name="untrusted_external_source_warning" product="default">For your security, your phone is not allowed to install unknown apps from this source.</string>
+ <!-- Text to show in warning dialog on the phone when the app source cannot be identified [CHAR LIMIT=NONE] -->
+ <string name="anonymous_source_warning" product="default">
+ Your phone and personal data are more vulnerable
+ to attack by unknown apps. By installing this app, you
+ agree that you are responsible for any damage to your
+ phone or loss of data that may result from its use.
+ </string>
+
+ <!-- Text to show in warning dialog on the tablet when the app source cannot be identified [CHAR LIMIT=NONE] -->
+ <string name="anonymous_source_warning" product="tablet">
+ Your tablet and personal data are more vulnerable
+ to attack by unknown apps. By installing this app, you
+ agree that you are responsible for any damage to your
+ tablet or loss of data that may result from its use.
+ </string>
+
+ <!-- Text to show in warning dialog on the tv when the app source cannot be identified [CHAR LIMIT=NONE] -->
+ <string name="anonymous_source_warning" product="tv">
+ Your TV and personal data are more vulnerable
+ to attack by unknown apps. By installing this app, you
+ agree that you are responsible for any damage to your
+ TV or loss of data that may result from its use.
+ </string>
+
+ <!-- Label for button to continue install of an app whose source cannot be identified [CHAR LIMIT=40] -->
+ <string name="anonymous_source_continue">Continue</string>
+
<!-- Label for button to open manage external sources settings [CHAR LIMIT=45] -->
<string name="external_sources_settings">Settings</string>