Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F10361010
reset_adid.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
549 B
Referenced Files
None
Subscribers
None
reset_adid.sh
View Options
#!/bin/bash
set
-x
# Change the file slightly
echo
|
adb
shell
su
root
"tee /data/data/com.google.android.gms/shared_prefs/adid_settings.xml"
# Ask android for the ADID. Android detects the changed file (somewhere), and regenerates it
adb
shell
su
root
am
start
-W
-n
com.example.adidreader/com.example.adidreader.MainActivity
(
exit
1
)
while
[
$?
-ne
0
]
;
do
# Get the new ADID
adb
shell
su
root
cat
/data/data/com.google.android.gms/shared_prefs/adid_settings.xml
|
xmllint
--xpath
'string(//map/string[@name="adid_key"])'
-
>
/dev/null
done
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Sat, Nov 8, 10:25 (16 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1033381
Default Alt Text
reset_adid.sh (549 B)
Attached To
Mode
R134 rentgen-android
Attached
Detach File
Event Timeline
Log In to Comment