Skip to content

Instantly share code, notes, and snippets.

@AwaisKing
Last active December 26, 2023 16:00
Show Gist options
  • Save AwaisKing/d473c88f442ae1d4acc1b3175d5aab80 to your computer and use it in GitHub Desktop.
Save AwaisKing/d473c88f442ae1d4acc1b3175d5aab80 to your computer and use it in GitHub Desktop.
commands to check, update or make new ANDROID_ID
~~ list every "secure" settings
adb shell settings list secure
~~ check android_id
adb shell content query --uri content://settings/secure --where "name=\'android_id\'"
~~ or ~~
adb shell settings get secure android_id
~~ update android_id
adb shell content update --uri content://settings/secure --bind value:s:<new_android_id> --where "name=\'android_id\'"
~~ or ~~
adb shell settings put secure android_id <new_android_id>
~~ new android_id
adb shell content delete --uri content://settings/secure --where "name=\'android_id\'"
adb shell content insert --uri content://settings/secure --bind name:s:android_id --bind value:s:<new_android_id>
~~~~~~~~~~
source: https://forum.xda-developers.com/nexus-6/general/how-to-restore-change-android-id-t3219345
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment