I need to unlock my screen using adb, and wait-for-device exits way too early(when the device is booting up), and screen unlock fails. Is there a way to detect that the home screen, so I can fire screen unlock then?
This is the command I am using to unlock screen -
adb wait-for-device shell input keyevent 82
getprophad a carriage return after it, so changing theadbcommand to$(adb shell getprop sys.boot_completed | tr -d '\r')did the trick. This is just trimming out the carriage return character. – CoatedMoose Jan 05 '15 at 21:28