Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fc5c04c3 authored by Wei Wang's avatar Wei Wang
Browse files

am: set to top-app process group only for instrument

Bug: 379892006 
Bug: 383813628
Change-Id: I6cf725f659cb1936c40665e72e5f739dea66de0e
Test: Build
Flag: NONE for a script change
parent 177b4e45
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
#!/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
    # set to top-app process group for instrument
    settaskprofile $$ SCHED_SP_TOP_APP >/dev/null 2>&1 || true
    base=/system
    export CLASSPATH=$base/framework/am.jar
    exec app_process $base/bin com.android.commands.am.Am "$@"