Commit 51f76cb2 authored by Evan W. Patton's avatar Evan W. Patton Committed by Jeffrey Schiller

Remove all known sensitive permissions in PlayApp

Change-Id: I7e9c1f665c212d9dc363ad98a010c0b5e5b96bb3
parent b4bbaa77
...@@ -897,11 +897,21 @@ public final class Compiler { ...@@ -897,11 +897,21 @@ public final class Compiler {
// Remove Google's Forbidden Permissions // Remove Google's Forbidden Permissions
// This code is crude because we had to do this on short notice // This code is crude because we had to do this on short notice
// List of permissions taken from
// https://support.google.com/googleplay/android-developer/answer/9047303#intended
if (isForCompanion && !includeDangerousPermissions) { if (isForCompanion && !includeDangerousPermissions) {
// Default SMS handler
permissions.remove("android.permission.READ_SMS");
permissions.remove("android.permission.RECEIVE_MMS");
permissions.remove("android.permission.RECEIVE_SMS"); permissions.remove("android.permission.RECEIVE_SMS");
permissions.remove("android.permission.RECEIVE_WAP_PUSH");
permissions.remove("android.permission.SEND_SMS"); permissions.remove("android.permission.SEND_SMS");
permissions.remove("android.permission.WRITE_SMS");
// Default Phone handler
permissions.remove("android.permission.PROCESS_OUTGOING_CALLS"); permissions.remove("android.permission.PROCESS_OUTGOING_CALLS");
permissions.remove("android.permission.CALL_PHONE"); permissions.remove("android.permission.CALL_PHONE");
permissions.remove("android.permission.READ_CALL_LOG");
permissions.remove("android.permission.WRITE_CALL_LOG");
} }
for (String permission : permissions) { for (String permission : permissions) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment