Monday, June 24, 2019

kernel - How can I check if a device is booted into safe mode from adb?


Is it possible to use adb to detect whether a device is booted into "Safe Mode" or normal mode?



I've looked through the output of getprop and other command-line tools and haven't found any good indicator of safe mode, at least not on my N5/hammerhead device.


Update: I'm trying to check whether or not the device is in Safe Mode, not to force it into Safe Mode. Putting the device in Safe Mode programmatically is relatively straightforward and well-documented.


Any ideas?




No comments:

Post a Comment

samsung galaxy s 2 - Cannot restore Kies backup after firmware upgrade

I backed up my Samsung Galaxy S2 on Kies before updating to Ice Cream Sandwich. After the upgrade I tried to restore, but the restore fails ...