1# If for some unexpected trade-in mode fails to activate in adbd, eg setcon()
2# fails, then it will set persist.adb.tradeinmode to -1. On userdebug builds
3# this is fine, since init will restart adbd and go back to normal shell mode.
4#
5# On user builds, however, we don't want adbd to accidentally fall back, so
6# we explicitly stop adbd on failure.
7on property:persist.adb.tradeinmode=-1 && property:ro.debuggable=0
8    stop adbd
9