summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcmds/am/am.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmds/am/am.sh b/cmds/am/am.sh
index 54c2d394be2c..76ec214cb446 100755
--- a/cmds/am/am.sh
+++ b/cmds/am/am.sh
@@ -1,5 +1,8 @@
#!/system/bin/sh
+# set to top-app process group
+settaskprofile $$ SCHED_SP_TOP_APP >/dev/null 2>&1 || true
+
if [ "$1" != "instrument" ] ; then
cmd activity "$@"
else