145k views
4 votes
How to authorize adb on locked phone

1 Answer

6 votes

Final answer:

To authorize adb on a locked phone, you will need to have physical access to the phone as well as developer options enabled. Here are the steps to follow: Connect your phone to your computer, enable USB debugging, check if your device is recognized by adb, authorize it using adb commands, and then use adb on your locked phone.

Step-by-step explanation:

To authorize adb on a locked phone, you will need to have physical access to the phone as well as developer options enabled. Here are the steps to follow:

  1. Connect your phone to your computer using a USB cable.
  2. Enable USB debugging on your phone by going to Settings > Developer options.
  3. On your computer, open a command prompt or terminal and navigate to the directory where adb is located.
  4. Type 'adb devices' to check if your phone is recognized by adb.
  5. If your device is listed, authorize it by typing 'adb -s your_device_serial_number shell' and then 'adb shell dumpsys device_policy set_global_permission_enabled 0'.
  6. You should now be able to use adb commands on your locked phone.
User Ryan Doom
by
8.6k points