[TOOL] Device ID Changer for Oreo

CoNsTaR

Member
Mar 15, 2018
25
33
0
North York


  Android 8 (Oreo) has a major behavior change on how device ID is manipulated, this tool helps you Query / Modify the IDs on Oreo in a programmatic way.


Looking for the App?

How to use it:
  1. Root privilege is NEEDED.
  2. Download the proper version for your phone - if not sure, armv7 is **[pretty much]** working on most phones.
  3. You might need adb tools / Terminal Emulator.
  4. Copy the executable binary downloaded to /cache or other ext filesystems.
  5. Give 0755 permission to the executable.
  6. Assign/Query IDs.

Command Usage:



Step By Step Querying/Assigning IDs:
  1. Have the downloaded exctuable placed at the root of your SD card.
  2. Use either adb/Terminal Emulator to run the commands below.
Setting up
Code:
su                                 # Gain root permission if available
cp /sdcard/[EXECUTABLE] /cache/    # Copy executable from /sdcard to /cache
chmod 0755 /cache/[EXECUTABLE]     # Set permission
Querying
  • Query current device ID for package [PACKAGE].
Code:
/cache/[EXECUTABLE] -q -p [PACKAGE]
  • Query the default device ID for package [PACKAGE].
Code:
/cache/[EXECUTABLE] -Q -p [PACKAGE]
Assigning
  • Make a backup first using this command.
Code:
/cache/[EXECUTABLE] -b /sdcard/settings-ssaid.xml.bak
  • Preview changes. (This is not changing anything, just previewing the modification(s).)
Code:
/cache/[EXECUTABLE] -a [ID] -p [PACKAGE]
  • If satisfied with the result given from the command above, run the following command to make the changes.
  • Assign the ID [ID] to the package [PACKAGE] directly.
Code:
/cache/[EXECUTABLE] -i -a [ID] -p [PACKAGE]
※ Substitute [EXECUTABLE] to the file name of the executable, [ID] to the appreciated ID, and [PACKAGE] to the package name in the commands above.


Do not forget to REBOOT your phone after changing IDs.
  • New IDs go into effect only after a reboot is performed.


Downloads:


------------------------------------------------------------------------------------------------------------------------------------------------------
I'll update this thread soon, heading out for food now :D:D:D
 
Last edited:
Jun 2, 2016
5
0
0
Android 8 (Oreo) has a major behavior change on how device id is manipulated, I wrote a tool to Query / Modify the ID on Oreo.

For more information, see the github repo below:
HTML:
https://github.com/CoNsTaRwU/oreo_device_id_changer
I'll update this thread soon, heading out for food now :D:D:D
Just one question. Your notes contradict themselves.

First you say you cannot query and assign at the same time

Then you say to query and assign at the same time set ......the flags.

So which is true? Can you set and query in fact at the same time or not?

Thanks

Sent from my SM-G935W8 using Tapatalk
 

CoNsTaR

Member
Mar 15, 2018
25
33
0
North York
Just one question. Your notes contradict themselves.

First you say you cannot query and assign at the same time

Then you say to query and assign at the same time set ......the flags.

So which is true? Can you set and query in fact at the same time or not?

Thanks

Sent from my SM-G935W8 using Tapatalk
I don't really find the contradiction in my note.

To clarify, I'll restate them again for you. :)

  1. Querying both ID - NOT possible
  2. Assigning both ID - Possible
  3. Querying and Assigning in one command - NOT possible
 

CoNsTaR

Member
Mar 15, 2018
25
33
0
North York
I'm still not sure to where to put the executable so i can execute it with the terminal emulator
Any ext filesystem should be good.

Step by step:
  1. Copy/Download the executable to the root of your SD card
  2. Follow the commands below
Code:
su
cp /sdcard/dvcid-armv7 /cache/
chmod 0755 /cache/dvcid-armv7
/cache/dvcid-armv7 -q -p com.android.example    # Run commands as you want
 
  • Like
Reactions: mirko902

mirko902

Member
Oct 7, 2014
32
4
0
it looks like it works, if i query the id i get the new id that i set, but the app wich i'm trying to use it on recognize that it is still the same phone, maybe i'm doing something wrong, thanks anyway!
 

CoNsTaR

Member
Mar 15, 2018
25
33
0
North York
it looks like it works, if i query the id i get the new id that i set, but the app wich i'm trying to use it on recognize that it is still the same phone, maybe i'm doing something wrong, thanks anyway!
Don't forget to REBOOT your phone after changing IDs.
The changes take place after the next boot. ;)
 
Last edited:

mmidders

Senior Member
Oct 16, 2011
57
9
38
Haywards Heath
Hi

Firstly thanks for your efforts; I've been after a device id tool since I updated to Oreo.

My system:
Xiaomi MIX (ARM64) running Resurrection Remix Oreo.

I used the ARM64 version of your tool and the query part worked fine.
The trial change reported that the id I had supplied wasn't a 16 digit number (it was) but I could use --force to do it anyway, which I did, and it appeared to work.
I made the actual change (again using --force) and rebooted.
Querying the id for the package now shows that it has reverted to the original id.

Any ideas? If there's anything I can do to help (logs...), please let me know.

Sláinte

mmidders
 

CoNsTaR

Member
Mar 15, 2018
25
33
0
North York
Hi

Firstly thanks for your efforts; I've been after a device id tool since I updated to Oreo.

My system:
Xiaomi MIX (ARM64) running Resurrection Remix Oreo.

I used the ARM64 version of your tool and the query part worked fine.
The trial change reported that the id I had supplied wasn't a 16 digit number (it was) but I could use --force to do it anyway, which I did, and it appeared to work.
I made the actual change (again using --force) and rebooted.
Querying the id for the package now shows that it has reverted to the original id.

Any ideas? If there's anything I can do to help (logs...), please let me know.

Sláinte

mmidders
Hi, thanks for your report.

Can you try again with This Release, and see if your problems are still there.
 
  • Like
Reactions: mmidders

mmidders

Senior Member
Oct 16, 2011
57
9
38
Haywards Heath
Thanks for the swift response.

I still get an error about the deviceid I'm using and have to use the --force switch, but the change worked with the above realease and has persisted after a reboot. Thanks muchly.

Sláinte

mmidders

Session log:
lithium:/sbin # chmod 0755 dvcid
lithium:/sbin # dvcid -q -p net.fishlabs.gof2hdallandroid2012
a3d809934af2ca85
lithium:/sbin # dvcid -a 84dbc105e6063270 -p net.fishlabs.gof2hdallandroid2012
the designated ID is NOT valid: 84dbc105e6063270
use --force to perform anyway
lithium:/sbin # dvcid --force -a 84dbc105e6063270 -p net.fishlabs.gof2hdallandroid2012
...
lithium:/sbin # dvcid --force -i -a 84dbc105e6063270 -p net.fishlabs.gof2hdallandroid2012
lithium:/sbin # dvcid -q -p net.fishlabs.gof2hdallandroid2012
84dbc105e6063270
 

CoNsTaR

Member
Mar 15, 2018
25
33
0
North York
Thanks for the swift response.

I still get an error about the deviceid I'm using and have to use the --force switch, but the change worked with the above realease and has persisted after a reboot. Thanks muchly.

Sláinte

mmidders

Session log:
lithium:/sbin # chmod 0755 dvcid
lithium:/sbin # dvcid -q -p net.fishlabs.gof2hdallandroid2012
a3d809934af2ca85
lithium:/sbin # dvcid -a 84dbc105e6063270 -p net.fishlabs.gof2hdallandroid2012
the designated ID is NOT valid: 84dbc105e6063270
use --force to perform anyway
lithium:/sbin # dvcid --force -a 84dbc105e6063270 -p net.fishlabs.gof2hdallandroid2012
...
lithium:/sbin # dvcid --force -i -a 84dbc105e6063270 -p net.fishlabs.gof2hdallandroid2012
lithium:/sbin # dvcid -q -p net.fishlabs.gof2hdallandroid2012
84dbc105e6063270
Thanks for the feedback. I'm happy it helps.
It appears that I mistaken thought that device IDs are numbers which actually are not.
I'll make some improvements based on your feedback.
 
Last edited:

mmidders

Senior Member
Oct 16, 2011
57
9
38
Haywards Heath
Just as an addendum, I found it quite difficult to find out where the ssaid settings file was in oreo; maybe because I'm new to Android development, but for google and anyone else:
Android Oreo 8.1 Device ID SSAID /data/system/users/0/settings_ssaid.xml
 

Bhabesh98

Senior Member
Apr 30, 2014
472
62
0
If it is possible.. Then please Make an App to Change the Device id:( changing id through Commands is little bit complicated.. I m searching for Changing ID in my oreo Device with any module or App. But nothing working till now :( it ll be very helpful and easy to me and to others too by an App to Change id.. Thanks
 

CoNsTaR

Member
Mar 15, 2018
25
33
0
North York
If it is possible.. Then please Make an App to Change the Device id:( changing id through Commands is little bit complicated.. I m searching for Changing ID in my oreo Device with any module or App. But nothing working till now :( it ll be very helpful and easy to me and to others too by an App to Change id.. Thanks
Hi Bhabesh,
I totally understand what you're saying, and it was actually my intention to make an android app in the first place I started this project.
However, I've hardly no experience of developing android apps as of the last time I did it was years ago.
Specifically, it apparently will take a lot of time for me to re-learn it, get my knowledge up to date, and maintain such a project.
The problem is, I'm currently busy working on another project which consumes most of my free time, and have no time to pay attention to this.
For these reasons, I'm not likely to get into this shortly, but I will finally make it an app for sure.
Hope you can understand my situation, if I made it, eventually, I'll as soon update this thread and let you know. :eek:
 
Last edited:
  • Like
Reactions: Bhabesh98

Bhabesh98

Senior Member
Apr 30, 2014
472
62
0
Hi, Bhabesh,
I totally understand what you're saying, and it was actually my intention to make an android app in the first place I started this project.
However, I've hardly no experience of developing android apps as of the last time I did it was years ago.
Specifically, it apparently will take a lot of time for me to re-learn it, get my knowledge up to date, and maintain such a project.
The problem is, I'm currently busy working on another project which consumes most of my free time, and have no time to pay attention to this.
For these reasons, I'm not likely to get into this shortly, but I will, finally make it an app.
Hope you can understand my situation, if I made it, eventually, I'll as soon update this thread and let you know. :eek:
I ll wait till then ?... Goodluck ?
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone