I want to watch the layout of App without boring tap and tap.
I tried adb shell setprop debug.layout true but didn\'t work unless re
adb shell setprop debug.layout true
You don't need to start the settings app. Just exit your app, set the property, and start your app.
adb shell am force-stop com.company.appname ; adb shell setprop debug.layout true ; adb shell monkey -p com.company.appname -c android.intent.category.LAUNCHER 1