adb shell su am start -a android.bluetooth.adapter.action.REQUEST_ENABLE
sqlite3 settings.db update global set value=1 where name='bluetooth_on';
"am start -a android.intent.action.MAIN -n com.android.browser/.BrowserActivity"
adb shell getevent
Or to record a specific device:
adb shell getevent /dev/input/eventx
Then simuate recorded input with:
adb shell sendevent /dev/input/eventx
Disable the lock screen through USB debugging. Must manually edit one of Android's sqlite3 databases to do this. (Do not copy/paste in bulk. It won't work due to changing shells and programs.)
adb shell
su
cp /data/data/com.android.providers.settings/databases/settings.db /sdcard/settings.db
chmod 665 /sdcard/settings.db
exit
exit
adb pull /sdcard/settings.db settings.db
sqlite3 settings.db
insert into secure (name, value) values ('lockscreen.password_type',65536);
update secure set value=1 where name='lockscreen.disabled';
^D
adb push settings.db /sdcard/settings.db
adb shell
su
cd /data/data/com.android.providers.settings/databases/
mv settings.db settings.db.bak
cp /sdcard/settings.db settings.db
chown system:system settings.db
chmod 660 settings.db
exit
exit
adb reboot
ไม่มีความคิดเห็น:
แสดงความคิดเห็น