Skip to content

Instantly share code, notes, and snippets.

@NatLee
Last active October 15, 2025 07:36
Show Gist options
  • Select an option

  • Save NatLee/c428132c8ac713f4a83c23934272cc17 to your computer and use it in GitHub Desktop.

Select an option

Save NatLee/c428132c8ac713f4a83c23934272cc17 to your computer and use it in GitHub Desktop.
Modify Android ID with ADB

Modify Android ID with ADB

Query ID

adb shell content query --uri content://settings/secure --where "name=\'android_id\'"

Modify ID

adb shell content update --uri content://settings/secure --bind value:s:<YOUR_ANDROID_ID> --where "name=\'android_id\'"

Delete ID

adb shell content delete --uri content://settings/secure --where "name=\'android_id\'"

Add ID

adb shell content insert --uri content://settings/secure --bind name:s:android_id --bind value:s:<YOUR_ANDROID_ID>

Set new ID

adb shell settings put secure android_id <YOUR_ANDROID_ID>

Modify ID with root

Get into adb shell and modify ID.

C:\>adb shell
shell@device:/ $ su
root@device:/ # settings put secure android_id <YOUR_ANDROID_ID>
root@device:/ # exit
shell@device:/ $ exit

One line.

adb shell su -c settings put secure android_id <YOUR_ANDROID_ID>
@aevxofficial
Copy link

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment