blob: 78ae0fe068fe368203638e3eae1dc473f327d344 [file] [log] [blame]
# To trigger native watchdog on install of version 300000000 of
# the com.android.tzdata apex:
# $ adb shell setprop persist.debug.trigger_watchdog.apex com.android.tzdata@300000000
apex=/apex/`/system/bin/getprop persist.debug.trigger_watchdog.apex`
/system/bin/log -t TriggerWatchdog "Checking for presence of $apex"
/system/bin/setprop debug.trigger_watchdog.status check
if [ -a $apex ]
then
/system/bin/log -t TriggerWatchdog "Detected presence of $apex"
/system/bin/log -t TriggerWatchdog "KILLING SYSTEM SERVER"
/system/bin/setprop debug.trigger_watchdog.status kill
while :
do
/system/bin/pkill system_server
sleep 1
done
fi