如何修改android_id
# 方案
Android >= 8 系统根据 context.contentResolver 获取到apk包名,进行
Android 8 以下的版本所有的app获取的设备id都是一样的
# 该文件在 android8以下的机型不存在
/data/system/users/0/settings_ssaid.xml
# 静态改机 && 动态改机
https://blog.csdn.net/learnframework/article/details/124184779
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
# android部分
# android 8~11
1. Make sure that you have **ROOT** on your device.
2. Open the file `/data/system/users/0/settings_ssaid.xml` with any editor that supports ROOT.
3. Change `value` and `defaultValue` to a new Android ID for a desired application (identified by `package`).
4. **Save the file** **and reboot your device to apply the changes.**
1
2
3
4
2
3
4
# abdroid >=12
https://github.com/sdex/AndroidIDeditorV2
1
# /data/system/users/0/settings_ssaid.xml
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<settings version="-1">
<setting id="0" name="userkey" value="E82393FC2FCC01D402B6CAFA37AFB7964FBBEE938C45BC41FBE2D971FDF6D306" package="android" defaultValue="E82393FC2FCC01D402B6CAFA37AFB7964FBBEE938C45BC41FBE2D971FDF6D306" defaultSysSet="true" tag="null" />
<setting id="5" name="10010" value="FFF852E5419D7067" package="com.sdex.androididchanger" defaultValue="FFF852E5419D7067" defaultSysSet="false" tag="null" />
<setting id="3" name="10070" value="AAA3FA682D1561BA" package="com.sdex.activityrunner" defaultValue="AAA3FA682D1561BA" defaultSysSet="false" tag="null" />
<setting id="6" name="10072" value="79fcd0d800b9ded9" package="com.google.android.gms" defaultValue="79fcd0d800b9ded9" defaultSysSet="false" tag="null" />
<setting id="4" name="10075" value="79fcd0d800b9ded9" package="com.android.vending" defaultValue="79fcd0d800b9ded9" defaultSysSet="false" tag="null" />
<setting id="7" name="10082" value="79fcd0d800b9ded9" package="com.google.android.syncadapters.calendar" defaultValue="79fcd0d800b9ded9" defaultSysSet="false" tag="null" />
</settings>
[view raw](https://gist.github.com/sdex/7a55ad0c4d90b115cacb9a1b7fa57708/raw/a8d9f4b290b511e5c8aebe78ebc0fff82e1105be/settings_ssaid.xml)[
](https://gist.github.com/sdex/7a55ad0c4d90b115cacb9a1b7fa57708#file-settings_ssaid-xml)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 代码
val androidId = Settings.Secure.getString(
context.contentResolver,
Settings.Secure.ANDROID_ID
)
1
2
3
4
2
3
4
- # How Does Android ID changer or similar apps work? (opens new window)
- # How to change ANDROID_ID on Android 8+ (Oreo) with ROOT (opens new window)
- [# 探索 Android的SSAID(Android ID) 的奥秘 (opens new window)](https://www.cnblogs.com/kezhuang/p/14623370.html)
- [https://blog.csdn.net/learnframework/article/details/124184779](# android framework手机系统改机相关知识简单方案)
上次更新: 2023-09-07 10:49:42