FORUMS
Remove All Ads from XDA

[TOOL] Device ID Changer for Oreo

25 posts
Thanks Meter: 32
 
By CoNsTaR, Junior Member on 25th March 2018, 01:33 AM
Post Reply Email Thread


  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
The Following 5 Users Say Thank You to CoNsTaR For This Useful Post: [ View ] Gift CoNsTaR Ad-Free
 
 
25th March 2018, 02:30 PM |#2  
Member
Flag Bangkok
Thanks Meter: 33
 
Donate to Me
More
Waiting patiently haha
25th March 2018, 02:54 PM |#3  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by CoNsTaR

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 Code:
https://github.com/CoNsTaRwU/oreo_device_id_changer
I'll update this thread soon, heading out for food now

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
25th March 2018, 03:12 PM |#4  
OP Junior Member
Flag North York
Thanks Meter: 32
 
More
Quote:
Originally Posted by tineprogramming

Waiting patiently haha

I just found out I might have selective disorder on food

I'm gonna keep the last line in the post. hahaha
25th March 2018, 03:22 PM |#5  
OP Junior Member
Flag North York
Thanks Meter: 32
 
More
Quote:
Originally Posted by sonic_the_hedgeh

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
25th March 2018, 03:42 PM |#6  
Member
Thanks Meter: 4
 
More
how can i use it? should i compile it in some way? it uses adb?

Edit: whoops, just found the instructions
25th March 2018, 03:57 PM |#7  
OP Junior Member
Flag North York
Thanks Meter: 32
 
More
Quote:
Originally Posted by mirko902

how can i use it? should i compile it in some way? it uses adb?

See the Release Page for downloads.

Use this tool through adb or terminal emulator are both possible.

I've just updated the original post, hope that gives more information.
The Following User Says Thank You to CoNsTaR For This Useful Post: [ View ] Gift CoNsTaR Ad-Free
25th March 2018, 04:06 PM |#8  
Member
Thanks Meter: 4
 
More
I'm still not sure to where to put the executable so i can execute it with the terminal emulator
25th March 2018, 04:16 PM |#9  
OP Junior Member
Flag North York
Thanks Meter: 32
 
More
Quote:
Originally Posted by mirko902

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
The Following User Says Thank You to CoNsTaR For This Useful Post: [ View ] Gift CoNsTaR Ad-Free
25th March 2018, 04:35 PM |#10  
Member
Thanks Meter: 4
 
More
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!
25th March 2018, 04:38 PM |#11  
OP Junior Member
Flag North York
Thanks Meter: 32
 
More
Quote:
Originally Posted by mirko902

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.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes