summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorSvet Ganov <svetoslavganov@google.com>2015-06-27 13:15:22 -0700
committerSvet Ganov <svetoslavganov@google.com>2015-07-01 16:20:00 -0700
commit99b6043dad9d215cf15810b885b6b8c215dd5b5a (patch)
treeab714f7926640fbe8dafa4668f251e33e5f915c4 /cmds
parent2438c9b2e7892a8515209cb1d440c3b5147165b2 (diff)
downloadframeworks_base-99b6043dad9d215cf15810b885b6b8c215dd5b5a.zip
frameworks_base-99b6043dad9d215cf15810b885b6b8c215dd5b5a.tar.gz
frameworks_base-99b6043dad9d215cf15810b885b6b8c215dd5b5a.tar.bz2
Teach receivers, activities, providers, and services app ops.
Perform app op check in addition to the permisison check for all four paltform components - activities, content providers, broadcast receivers, services - if they are guarded by a permssion that has an associated app op. This ensures that legacy apps will behave correctly if the permission of the caller has been revoked, i.e. the app op for that permission was disabled. bug:22199666 Change-Id: Ia22d1c38d58b3cd6aabdc655cb7c7bddd85da7a2
Diffstat (limited to 'cmds')
-rw-r--r--cmds/am/src/com/android/commands/am/Am.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/am/src/com/android/commands/am/Am.java b/cmds/am/src/com/android/commands/am/Am.java
index 13fda59..ca6c6ca 100644
--- a/cmds/am/src/com/android/commands/am/Am.java
+++ b/cmds/am/src/com/android/commands/am/Am.java
@@ -767,7 +767,7 @@ public class Am extends BaseCommand {
return;
}
System.out.println("Starting service: " + intent);
- ComponentName cn = mAm.startService(null, intent, intent.getType(), mUserId);
+ ComponentName cn = mAm.startService(null, intent, intent.getType(), null, mUserId);
if (cn == null) {
System.err.println("Error: Not found; no service started.");
} else if (cn.getPackageName().equals("!")) {