How to unlock android phone through ADB

后端 未结 12 1154
自闭症患者
自闭症患者 2020-12-12 15:04

My screen is dead and I want to unlock my phone so I can access it through Kies to backup my pictures.

I locked the phone through Android Device Manager setting an e

12条回答
  •  [愿得一人]
    2020-12-12 15:45

    If you had MyPhoneExplorer installed and connected (not sure this is a must, happened to be my setup already), you could use it to control the screen with your computer mouse. It connects via ADB, for which your normal USB cable is enough.

    Another solution I found that even worked without a reboot is updating tables in settings.db and locksettings.db I had to switch to root to open the settings.db though:

     adb shell
     su
     sqlite3 /data/data/com.android.providers.settings/databases/settings.db
    
     update secure set value=1 where name='lockscreen.disabled';
     .quit
    
     sqlite3 /data/system/locksettings.db
    
     update locksettings set value=0 where name='lock_pattern_autlock';
     update locksettings set value=1 where name='lockscreen.disabled';
     .quit
    

    Source that made me edit my tables

提交回复
热议问题