Hello Guys,
Sry for any inconvenience.
I rooted my phone and install Xposed without any problem I Use all of the Device ID Changer APK App for changing my Device STATUS INFO Like IMEI and Serial Number, and work good for IMEI and Bluetooth Mac Wifi Mac Address... But When I Changing Serial Number Too, When I Restart my Phone To save Changes, Serial number returns to the original serial number. Changes are not stored on the serial number at all and do not save changes... Now I'm Looking in the Root System files and my Question IS: which file in the root system save Serial Number ? I want to change it manually. is it possible ? Or a solution to change the serial number ? Not IMEI.
Starting with Android 10 you can't no longer change device's S/N, AFAIK.
jwoegerbauer said:
Starting with Android 10 you can't no longer change device's S/N, AFAIK.
Click to expand...
Click to collapse
hello.
but my device is android 7 emui 5
Knock... Knock... No Idea ?
deadking said:
Knock... Knock... No Idea ?
Click to expand...
Click to collapse
depend on your phone model ... what is your phone model?
ineedroot69 said:
depend on your phone model ... what is your phone model?
Click to expand...
Click to collapse
hello dear my phone is huawei honor 6x blnl21
i use device id changer but not work for S/N... IM LOOKING FOR FIle or any folder save S/N IN IT.
ineedroot69 said:
depend on your phone model ... what is your phone model?
Click to expand...
Click to collapse
If a S/N is stored, then it's stored in Android's build.prop or default.prop file and nowhere else and it's read from there by bootloader.
deadking said:
hello dear my phone is huawei honor 6x blnl21
i use device id changer but not work for S/N... IM LOOKING FOR FIle or any folder save S/N IN IT.
Click to expand...
Click to collapse
android 6 or 7?
jwoegerbauer said:
If a S/N is stored, then it's stored in Android's build.prop or default.prop file and nowhere else and it's read from there by bootloader.
Click to expand...
Click to collapse
by asking phone model you would know if qualcomm or mediatek and know how to aproach things
ineedroot69 said:
android 6 or 7?
by asking phone model you would know if qualcomm or mediatek and know how to aproach things
Click to expand...
Click to collapse
android 7
deadking said:
android 7
Click to expand...
Click to collapse
If device's Android is rooted check Android's default.prop or build.prop for device's S/N by running this ADB command
Code:
adb shell "getprop | grep serial"
what should return something like this ( if a S/N is stored )
Code:
[ril.serialnumber]: [0123456789ABCDEF ]
[ro.boot.serialno]: [0123456789ABCDEF ]
[ro.serialno]: [0123456789ABCDEF ]
and change it - or add it if missing - to yours by running this ADB commands
Code:
adb shell "setprop persist.ro.serialno YOURSERIALNUMBER"
adb shell "setprop persist.ro.boot.serialno YOURSERIALNUMBER"
Note: Adding persist to front of a property should ensure it survives a device's re-boot.
jwoegerbauer said:
If device's Android is rooted check Android's default.prop or build.prop for device's S/N by running this ADB command
Code:
adb shell "getprop | grep serial"
what should return something like this ( if a S/N is stored )
Code:
[ril.serialnumber]: [0123456789ABCDEF ]
[ro.boot.serialno]: [0123456789ABCDEF ]
[ro.serialno]: [0123456789ABCDEF ]
and change it - or add it if missing - to yours by running this ADB commands
Code:
adb shell "setprop persist.ro.serialno YOURSERIALNUMBER"
adb shell "setprop persist.ro.boot.serialno YOURSERIALNUMBER"
Note: Adding persist to front of a property should ensure it survives a device's re-boot.
Click to expand...
Click to collapse
Sadly for me this is failed in ADB on Android 9. (Cubot Quest)
Deleted member 1890170 said:
If device's Android is rooted check Android's default.prop or build.prop for device's S/N by running this ADB command
Code:
adb shell "getprop | grep serial"
what should return something like this ( if a S/N is stored )
Code:
[ril.serialnumber]: [0123456789ABCDEF ]
[ro.boot.serialno]: [0123456789ABCDEF ]
[ro.serialno]: [0123456789ABCDEF ]
and change it - or add it if missing - to yours by running this ADB commands
Code:
adb shell "setprop persist.ro.serialno YOURSERIALNUMBER"
adb shell "setprop persist.ro.boot.serialno YOURSERIALNUMBER"
Note: Adding persist to front of a property should ensure it survives a device's re-boot.
Click to expand...
Click to collapse
Android 7.1.2 don't work
Is there a way to successfully change S/N ? default.prop doesn't exist and into build.prop no trace of ro.serialno or ro.boot.serialno !!
how it is possible to change it ?
Related
First off, this may seem a noob question, but I am definitely not.
I have an Iconia A200 that now has a broken lcd screen. No display, no touch. I am able to get into the tablet from TWRP via adb, but not from Android (Jelly Bean). It seems I never enabled usb debugging when I installed the custom rooted rom.... I can access the file system and modify anything... Which files need to be modified to enable debugging in Android? Here is what I tried:
Added to default.prop and /system/build.prop
Code:
persist.service.adb.enable=1
persist.service.debuggable=1
persist.sys.usb.config=mtp,adb
Edit: Must have had typos... It now works.
workdowg said:
First off, this may seem a noob question, but I am definitely not.
I have an Iconia A200 that now has a broken lcd screen. No display, no touch. I am able to get into the tablet from TWRP via adb, but not from Android (Jelly Bean). It seems I never enabled usb debugging when I installed the custom rooted rom.... I can access the file system and modify anything... Which files need to be modified to enable debugging in Android? Here is what I tried:
Added to default.prop and /system/build.prop
Code:
persist.service.adb.enable=1
persist.service.debuggable=1
persist.sys.usb.config=mtp,adb
Edit: Must have had typos... It now works.
Click to expand...
Click to collapse
Ok Sounds good for you. Can you changed the title of your thread by [SOLVED]
Thanks in advance
philos64 said:
Ok Sounds good for you. Can you changed the title of your thread by [SOLVED]
Thanks in advance
Click to expand...
Click to collapse
Ooops.... :good:
How would i do this with my skyrocket? same problem, broken screen, adb disabled. Some instructions would be sweet, cause im not really clear with what you did here.
workdowg said:
First off, this may seem a noob question, but I am definitely not.
I have an Iconia A200 that now has a broken lcd screen. No display, no touch. I am able to get into the tablet from TWRP via adb, but not from Android (Jelly Bean). It seems I never enabled usb debugging when I installed the custom rooted rom.... I can access the file system and modify anything... Which files need to be modified to enable debugging in Android? Here is what I tried:
Added to default.prop and /system/build.prop
Code:
persist.service.adb.enable=1
persist.service.debuggable=1
persist.sys.usb.config=mtp,adb
Edit: Must have had typos... It now works.
Click to expand...
Click to collapse
MikeMobes said:
How would i do this with my skyrocket? same problem, broken screen, adb disabled. Some instructions would be sweet, cause im not really clear with what you did here.
Click to expand...
Click to collapse
MikeMobes said:
How would i do this with my skyrocket? same problem, broken screen, adb disabled. Some instructions would be sweet, cause im not really clear with what you did here.
Click to expand...
Click to collapse
I'm going to stay general and assume that a skyrochet is a phone, you have a linux or windows pc with ADB installed (and the drivers to connect to your phone) and have TWRP or CWM Recovery installed already...
1) Start the phone in recovery mode - mine is power down and vol
2) Connect you cable to the pc and start a console terminal or cmd prompt
3) Run the following
Code:
adb shell
su
mount -o remount,rw /system
cd /
echo "persist.service.adb.enable=1" >> default.prop
echo "persist.service.debuggable=1" >> default.prop
echo "persist.sys.usb.config=mtp,adb" >> default.prop
echo "persist.service.adb.enable=1" >> /system/build.prop
echo "persist.service.debuggable=1" >> /system/build.prop
echo "persist.sys.usb.config=mtp,adb" >> /system/build.prop
Once you reboot into Android you should be able to connect via adb.
If you google vnc over adb you can get a usable but very slow vnc connection then install Andriod VNC server for a little better performance.
That's the best I can do from memory ...
workdowg said:
I'm going to stay general and assume that a skyrochet is a phone, you have a linux or windows pc with ADB installed (and the drivers to connect to your phone) and have TWRP or CWM Recovery installed already...
1) Start the phone in recovery mode - mine is power down and vol
2) Connect you cable to the pc and start a console terminal or cmd prompt
3) Run the following
Code:
adb shell
su
mount -o remount,rw /system
cd /
echo "persist.service.adb.enable=1" >> default.prop
echo "persist.service.debuggable=1" >> default.prop
echo "persist.sys.usb.config=mtp,adb" >> default.prop
echo "persist.service.adb.enable=1" >> /system/build.prop
echo "persist.service.debuggable=1" >> /system/build.prop
echo "persist.sys.usb.config=mtp,adb" >> /system/build.prop
Once you reboot into Android you should be able to connect via adb.
If you google vnc over adb you can get a usable but very slow vnc connection then install Andriod VNC server for a little better performance.
That's the best I can do from memory ...
Click to expand...
Click to collapse
I'm booted into twrp 2.6.3 and when i try to run adb devices i just get this
Code:
[email protected]:~$ adb devices
List of devices attached
???????????? no permissions
That Baker Guy said:
I'm booted into twrp 2.6.3 and when i try to run adb devices i just get this
Code:
[email protected]:~$ adb devices
List of devices attached
???????????? no permissions
Click to expand...
Click to collapse
Enter the following commands:
Code:
adb kill-server sudo ./adb start-server adb devices
The issue is your not running adb server as root.
Hello. Does possible enable accesibility and set default tts via adb shell, and edit default.prop and build.prop?
Thanks and best regards.
workdowg said:
I'm going to stay general and assume that a skyrochet is a phone, you have a linux or windows pc with ADB installed (and the drivers to connect to your phone) and have TWRP or CWM Recovery installed already...
1) Start the phone in recovery mode - mine is power down and vol
2) Connect you cable to the pc and start a console terminal or cmd prompt
3) Run the following
Code:
adb shell
su
mount -o remount,rw /system
cd /
echo "persist.service.adb.enable=1" >> default.prop
echo "persist.service.debuggable=1" >> default.prop
echo "persist.sys.usb.config=mtp,adb" >> default.prop
echo "persist.service.adb.enable=1" >> /system/build.prop
echo "persist.service.debuggable=1" >> /system/build.prop
echo "persist.sys.usb.config=mtp,adb" >> /system/build.prop
Once you reboot into Android you should be able to connect via adb.
If you google vnc over adb you can get a usable but very slow vnc connection then install Andriod VNC server for a little better performance.
That's the best I can do from memory ...
Click to expand...
Click to collapse
OMG! After my screen broke, i raged and became hulk. After 3 hours of internet-searching the hulk found your post and released me to become bruce banner again...
The thank you button was just not enough!
Sorry to resurrect a dead thread, but I need a bit more help with this. I've successfully followed these instructions to enable the adb service on my i9505 with a dead screen, however it hasn't authorised it. When I try to connect I get the following error: error: device unauthorized. Please check the confirmation dialog on your device.
Is there anyway to bypass this confirmation dialog from ADB in recovery (Philz Touch)?
Thanks.
pnz said:
Sorry to resurrect a dead thread, but I need a bit more help with this. I've successfully followed these instructions to enable the adb service on my i9505 with a dead screen, however it hasn't authorised it. When I try to connect I get the following error: error: device unauthorized. Please check the confirmation dialog on your device.
Is there anyway to bypass this confirmation dialog from ADB in recovery (Philz Touch)?
Thanks.
Click to expand...
Click to collapse
I Googled it a little and it seems to be a Samsung thing. Apparently it isn't booting to recovery. Sorry for the lack help
From my Debloated Stock Kitkat VS980 4G VZN
workdowg said:
I Googled it a little and it seems to be a Samsung thing. Apparently it isn't booting to recovery. Sorry for the lack help
From my Debloated Stock Kitkat VS980 4G VZN
Click to expand...
Click to collapse
No, I'm quite sure it is booting to my custom recovery, as I have full ADB access to that. What I'm trying to do is enable ADB access to the Android 4.4.2 proper from my custom recovery. So far following the instructions in this thread I've managed to enable ADB there, but whenever you try to connect to this phone a dialog box is meant to come up asking if you want to accept incoming ADB requests from your computer's key. Unfortunately I have no way of selecting accept (or even seeing that dialog box), so I'm hoping there's a way to bypass it.
Hey mate,
Sorry to necro-bumb the thread. I have been reading and have much similar issue to your self. Maybe some drivers that automatically enable adb, android usb or MTP without debugging enabled might be something to take a look at?
Check this thread out >>> here
Hope that might help (you and I both?)
Besides that I am still searching for a post I saw where you can edit the init-rc in the kernel (the guy explained how to extract the boot.img) and then decompile the kernel, edit the init-rc, recompile the kernel and then flash it back in recovery.
At the moment I am really stuck with a customer device that is bricked, so have a bash script and busybox binary that loads from a signed update.zip that should allow editing of the init-rc and add the lines mentioned in this thread to the build.prop and system.prop.
Fingers crossed it works for a completely stock device :fingers-crossed:
Jarmezrocks said:
Hey mate,
Sorry to necro-bumb the thread. I have been reading and have much similar issue to your self. Maybe some drivers that automatically enable adb, android usb or MTP without debugging enabled might be something to take a look at?
Check this thread out >>> here
Hope that might help (you and I both?)
Besides that I am still searching for a post I saw where you can edit the init-rc in the kernel (the guy explained how to extract the boot.img) and then decompile the kernel, edit the init-rc, recompile the kernel and then flash it back in recovery.
At the moment I am really stuck with a customer device that is bricked, so have a bash script and busybox binary that loads from a signed update.zip that should allow editing of the init-rc and add the lines mentioned in this thread to the build.prop and system.prop.
Fingers crossed it works for a completely stock device :fingers-crossed:
Click to expand...
Click to collapse
Hi mate, did you manage to get into the customers mobile? I have the same problem as I'm locked out with no access to enable USB debugging and a home button which does not work, meaning I can't load recovery mode to wipe the phone
Sent from my C6903 using XDA app
workdowg said:
Code:
echo "persist.service.adb.enable=1" >> default.prop
echo "persist.service.debuggable=1" >> default.prop
echo "persist.sys.usb.config=mtp,adb" >> default.prop
echo "persist.service.adb.enable=1" >> /system/build.prop
echo "persist.service.debuggable=1" >> /system/build.prop
echo "persist.sys.usb.config=mtp,adb" >> /system/build.prop
Click to expand...
Click to collapse
Thank you, I had no clue how, but my phone's (MUCH Snail, aka MUCH W1, aka MUCH 78P01) manufacturer (China's Snail Mobile) had removed from Android's Developer Options menu the option to Enable/Disable USB Debugging.
I was looking all over the web for days, this was the only way I could effectively turn on USB debugging in my phone. Thanks!
There's only one difference, instead of performing the above steps from an ADB console window (for obvious reasons) I did it with Build.prop Editor, but first I needed to change permissions to 666 on the default.prop file (otherwise it wouldn't save my changes).
Curiously, every time I do a full reboot the default.prop file somehow is overwritten with the manufacturer's original settings - that doesn't happen when I soft reboot my device though. Any clues as to what could be reversing my changes at boot?
wmoecke said:
Thank you, I had no clue how, but my phone's (MUCH Snail, aka MUCH W1, aka MUCH 78P01) manufacturer (China's Snail Mobile) had removed from Android's Developer Options menu the option to Enable/Disable USB Debugging.
I was looking all over the web for days, this was the only way I could effectively turn on USB debugging in my phone. Thanks!
There's only one difference, instead of performing the above steps from an ADB console window (for obvious reasons) I did it with Build.prop Editor, but first I needed to change permissions to 666 on the default.prop file (otherwise it wouldn't save my changes).
Curiously, every time I do a full reboot the default.prop file somehow is overwritten with the manufacturer's original settings - that doesn't happen when I soft reboot my device though. Any clues as to what could be reversing my changes at boot?
Click to expand...
Click to collapse
Everytime you boot your phone, the root path is extracted from ramdisk which is usually bound to kernel. As a result, your modification is overwritten. In order to modify files under root path(such as default.prop), you must change the file in ramdisk.
There is many tools and tutorials about this task, I think this is a good point to google.
Addition:
The poster of this thread try to edit default.prop via adb, which is not possible to achieve, at least, for every android device I has hold.
For the unauthorized issue, It's because secure adb, which could be disabled via ro.adb.secure=0, but if there is a ro.adb.secure=1 in default.prop, modification of ramdisk is needed.
Given92 said:
Everytime you boot your phone, the root path is extracted from ramdisk which is usually bound to kernel. As a result, your modification is overwritten. In order to modify files under root path(such as default.prop), you must change the file in ramdisk.
There is many tools and tutorials about this task, I think this is a good point to google.
Addition:
The poster of this thread try to edit default.prop via adb, which is not possible to achieve, at least, for every android device I has hold.
For the unauthorized issue, It's because secure adb, which could be disabled via ro.adb.secure=0, but if there is a ro.adb.secure=1 in default.prop, modification of ramdisk is needed.
Click to expand...
Click to collapse
I had edited both default.prop AND /system/build.prop not knowing which one to use. This worked for me on JB and I used the tablet for a while after that.
From my Nexus 9
workdowg said:
I had edited both default.prop AND /system/build.prop not knowing which one to use. This worked for me on JB and I used the tablet for a while after that.
From my Nexus 9
Click to expand...
Click to collapse
In my view, the /system/build.prop works.
I am a huge noob and i dont really understand where i am inputing that code ?
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:\Windows\system32>adb shell
'adb' is not recognized as an internal or external command,
operable program or batch file.
C:\Windows\system32>su
'su' is not recognized as an internal or external command,
operable program or batch file.
C:\Windows\system32>mount -o remount,rw /system
'mount' is not recognized as an internal or external command,
operable program or batch file.
C:\Windows\system32>cd /
C:\>echo "persist.service.adb.enable=1" >> default.prop
C:\>echo "persist.service.debuggable=1" >> default.prop
C:\>echo "persist.sys.usb.config=mtp,adb" >> default.prop
C:\>echo "persist.service.adb.enable=1" >> /system/build.prop
The system cannot find the path specified.
C:\>echo "persist.service.debuggable=1" >> /system/build.prop
The system cannot find the path specified.
C:\>echo "persist.sys.usb.config=mtp,adb" >> /system/build.prop
The system cannot find the path specified.
C:\>
Getting this on S$..any1 here to help me!
Hi,
Which would be the most reliable way to read the model number of the phone? (I'm currently using Sony LT26i)
I run getprop and there are a couple of commands which return the result LT26i...
ro.semc.product.model
ro.product.model
ro.product.device
ro.build.product
Which of those would give the correct result for all other android phones, or would the result be the same regardless of the device connected - I ask because I currently dont have multiple devices to test with.
Also when reading carrier information using the gsm.bla commands is this specifically referring to the current sim in the phone as it returns results pertaining to the currently inserted sim but the ro.carrier command returns the result UNKNOWN (but maye this is returning the lock information in my case the phone is unlocked but I dont know which is why im asking).
Also finally ro.secure returns the value 1, is this referring to the bootloader lock state or something else?
I cant seem to find detailed documents on each command so I hope you dont mind me asking - i'm just researching android commands right now.
Thanks
What do you get from
Build.MODEL
and
Build.MANUFACTURER ?
---------- Post added at 01:08 PM ---------- Previous post was at 01:06 PM ----------
(assuming you are doing this in code..!)
PicomatStudios said:
What do you get from
Build.MODEL
and
Build.MANUFACTURER ?
Click to expand...
Click to collapse
reply
Hi,
I don't get any results with these - command box is just blank. I do get results with all my listed commands but I'm just trying to determine which command gives the most accurate model number across different brand devices for example if I run the command ro.product.model on a sony and get the correct result, will it be the same for if this command is ran on a htc or samsung etc - will it still get the correct result regardless of device?
Thanks for the reply
aaronmarsh632 said:
Hi,
I don't get any results with these - command box is just blank. I do get results with all my listed commands but I'm just trying to determine which command gives the most accurate model number across different brand devices for example if I run the command ro.product.model on a sony and get the correct result, will it be the same for if this command is ran on a htc or samsung etc - will it still get the correct result regardless of device?
Thanks for the reply
Click to expand...
Click to collapse
the getprop command just searches the build.prop file (located in /system om my phone), so the value (ro.****** or whatever) depends on the device and what is available in that file - that is why PicomatStudios's commands didn't return anything: your build.prop doesn't have that.
I also really want to know how to identify a device so I'm going to continue following this. Just one more thing: the following looks to me to be the most promising, but you'll have to compare the build.prop file with other phones's file to see.
ro.product.model
ro.product.brand
ro.product.name
ro.product.device
ro.product.board
ps. I use the above in combination with each other to identify, I would love to know if there was a better way, that works om other phones!
stepie22 said:
the getprop command just searches the build.prop file (located in /system om my phone), so the value (ro.****** or whatever) depends on the device and what is available in that file - that is why PicomatStudios's commands didn't return anything: your build.prop doesn't have that.
I also really want to know how to identify a device so I'm going to continue following this. Just one more thing: the following looks to me to be the most promising, but you'll have to compare the build.prop file with other phones's file to see.
ro.product.model
ro.product.brand
ro.product.name
ro.product.device
ro.product.board
ps. I use the above in combination with each other to identify, I would love to know if there was a better way, that works om other phones!
Click to expand...
Click to collapse
Thanks for the info, i'd agree the above seems to be the most universal, I have checked a few devices with positive results and also some information found here http://guardianproject.info/wiki/Android_getprop_collection concludes the same
stepie22 said:
the getprop command just searches the build.prop file (located in /system om my phone), so the value (ro.****** or whatever) depends on the device and what is available in that file - that is why PicomatStudios's commands didn't return anything: your build.prop doesn't have that.
Click to expand...
Click to collapse
Yeah these are from the Java API rather than getprop commands (might not be useful depending on the context!)
http://developer.android.com/reference/android/os/Build.html
Requirements:
1. Rooted Yuphoria phone.
2. Terminal Emulator app.
Steps:
1. Turn Off Wi-Fi and Open Terminal Emulator app.
2. Enter 'su' and grant root access.
3. To change MAC address, Enter the following:
Code:
echo [I]XX:XX:XX:XX:XX:XX[/I] > /sys/devices/soc.0/a000000.qcom,wcnss-wlan/wcnss_mac_addr
(Replace XX:XX:XX:XX:XX:XX with your desired MAC address like 12:34:56:78:9a:bc)
(You can even edit the file 'wcnss_mac_addr' present in /sys/devices/soc.0/a000000.qcom,wcnss-wlan/ if you don't like Terminal )
4. To change the hostname (device id shown in router), Enter the following:
Code:
setprop net.hostname [I]ZZZZZ[/I]
(Replace ZZZZZ with any desired name)
5. Now Turn ON your WiFi
That's it!!
NOTE:
The MAC Address & Hostname restores to original values after reboot (or Power Off )
Alternatively, you can create a script like this:
Code:
#!/system/bin/sh
echo 12:34:56:78:9a:bc > /sys/devices/soc.0/a000000.qcom,wcnss-wlan/wcnss_mac_addr
setprop net.hostname Anonymous
and execute it (give su permission before executing)
I also made a flashable zip to make the job easy. Just flash it and open Terminal and for example, enter:
Code:
su
spoof 12:34:56:78:9a:bc Anonymous
Reply if you have any doubts/issues
Nice thread ..
Sent from my YU5010 using XDA Free mobile app
How to get hostname?
like you mention in example "net.hostname" where can i find it?
kai_bond said:
How to get hostname?
like you mention in example "net.hostname" where can i find it?
Click to expand...
Click to collapse
To get your current hostname:
Code:
su
getprop net.hostname
To set your own hostname:
Code:
su
setprop net.hostname any_text
Please
My Motorola Moto G 2014 has no MAC address? Help me ? please a script forever? There is a possibility ?
rogerdlucca said:
My Motorola Moto G 2014 has no MAC address? Help me ? please a script forever? There is a possibility ?
Click to expand...
Click to collapse
First of all, this thread is for Micromax Yu Yuphoria phone only.
You should have asked in Moto G 2014 sub-forum
Anyway, how do you know that your phone doesn't have MAC address?
Without MAC address, you can't even connect to the internet..
BTW, check Settings->About Phone-> Status -> MAC Address if there is a MAC address..
If there's no MAC address, better flash modemst1.img and modem2st.img
Terminal emulator is showing non existant file after i entered the command
In my phone soc folder is located in sys/devices/system/soc
Sent from my LG-E405 using XDA Free mobile app
sai mohan said:
Terminal emulator is showing non existant file after i entered the command
In my phone soc folder is located in sys/devices/system/soc
Click to expand...
Click to collapse
This is only for Yuphoria phone.
This varies for other phones....
When I try change that one my mobile going to switch off what to do
GokulNC said:
Requirements:
1. Rooted Yuphoria phone.
2. Terminal Emulator app.
Steps:
1. Turn Off Wi-Fi and Open Terminal Emulator app.
2. Enter 'su' and grant root access.
3. To change MAC address, Enter the following:
Code:
echo [I]XX:XX:XX:XX:XX:XX[/I] > /sys/devices/soc.0/a000000.qcom,wcnss-wlan/wcnss_mac_addr
(Replace XX:XX:XX:XX:XX:XX with your desired MAC address like 12:34:56:78:9a:bc)
(You can even edit the file 'wcnss_mac_addr' present in /sys/devices/soc.0/a000000.qcom,wcnss-wlan/ if you don't like Terminal )
4. To change the hostname (device id shown in router), Enter the following:
Code:
setprop net.hostname [I]ZZZZZ[/I]
(Replace ZZZZZ with any desired name)
5. Now Turn ON your WiFi
That's it!!
NOTE:
The MAC Address & Hostname restores to original values after reboot (or Power Off )
Alternatively, you can create a script like this:
Code:
#!/system/bin/sh
echo 12:34:56:78:9a:bc > /sys/devices/soc.0/a000000.qcom,wcnss-wlan/wcnss_mac_addr
setprop net.hostname Anonymous
and execute it (give su permission before executing)
I also made a flashable zip to make the job easy. Just flash it and open Terminal and for example, enter:
Code:
su
spoof 12:34:56:78:9a:bc Anonymous
Reply if you have any doubts/issues
Click to expand...
Click to collapse
Name-Himanshu
Hi, I have redmi 4 ... and redmi 4 wifi path same as yuphoria phone like - /sys/devices/soc/a000000.qcom,wcnss-wlan/wcnss_mac_addr
but when i change the mac address suddenly my phone restard.. please solve my problem..
Starting from Android Marshmallow and above, simply changing the ro.product.model entry in /system/build.prop will not change the device's name everywhere. The build.prop change can only be seen in Settings > About phone.
Introduced in 6.0, Android stores your device name in an additional location, in addition to the build.prop entry. It is stored in a database in your phone's memory. The value in the database is populated the first time you boot up your device (after installing ROM for example), so even if you alter the device name in build.prop, apps can still detect your "old" device name through the database entry.
In the past, the database was stored in a file, but since Marshmallow Settings Storage (com.android.providers.settings) stores a bunch of your phone's settings in memory. Here is how you can change your device's model name.
1. You should modify the ro.product.model entry your /system/build.prop if you haven't already:
Example:
Code:
ro.product.model=My Phone Model Name
2. Next, connect your device to the computer, make sure you have ADB installed.
Alternatively, you can use Terminal Emulator on your device. Run the commands below as root user, but do not include the adb shell part.
3. Execute the following to see the device name stored in the device's Settings database:
Code:
adb shell settings get global device_name
It should return your current device name, <DEVICE_NAME>.
4. Replace the existing model name with a new one:
Code:
adb shell settings put global device_name "<NEW_DEVICE_NAME>"
For example, if I want to change my device name to My Phone Model Name, I would issue the following command:
Code:
adb shell settings put global device_name "My Phone Model Name"
6. Now check to see the device name is updated (same as first command)
Code:
adb shell settings get global device_name
It should now return the updated device name. E.g, My Phone Model Name
Next, reboot your device and apps should correctly detect your new device name.
I hope this helps! Feel free to leave any questions or comments in this thread.
Additional Resources:
@piit79 has a similar tutorial for changing your device's ID, also for Marshmallow and above:
https://forum.xda-developers.com/ne...android-id-t3219345/post63168322#post63168322
Good tutorial, but I would recommend using simpler ADB commands.
For example, change this:
adb shell content insert --uri content://settings/global --bind name:s:device_name --bind value:s:<DEVICE_NAME>
to this:
adb shell settings put global device_name <DEVICE_NAME>
MishaalRahman said:
Good tutorial, but I would recommend using simpler ADB commands.
For example, change this:
adb shell content insert --uri content://settings/global --bind name:s:device_name --bind value:s:<DEVICE_NAME>
to this:
adb shell settings put global device_name <DEVICE_NAME>
Click to expand...
Click to collapse
Thanks, that makes it much simpler. Seems like the put command overwrites the existing value for you.
wow, good job, this looks really good (though i don't need it right now, it is good to know it's possible). my question is, would something similar be possible for the name of the rom and kernel? i'd like my bank's app to think i'm on stock, it does check safetynet but even with magisk and passed safetynet it doesn't work on any other rom than stock.. thanks in advance for your answer!
Google Photos
Will this enable Google Photos full size backup if I rename my 6P to Pixel XL?
This looks like it only changes the device name, that we can change through settings anyways. Editing the build.prop changed the model, but nothing else has changed that I can tell. For example, my Note 3 is running an S7 Edge port, the device and model name have been changed back to SM-900V (for the Note 3) but the product is still showing hero2ltexx. I realize that's just another build.prop line.
There is a huge possibility that this is doing just what it was intended to do and I daydreamed some imaginary far off results, but I figured I'd list it in case it was any help...thank you
bombaglad said:
wow, good job, this looks really good (though i don't need it right now, it is good to know it's possible). my question is, would something similar be possible for the name of the rom and kernel? i'd like my bank's app to think i'm on stock, it does check safetynet but even with magisk and passed safetynet it doesn't work on any other rom than stock.. thanks in advance for your answer!
Click to expand...
Click to collapse
Hi, the ROM and kernel information are not stored in the global settings database. However, you can try modifying your ROM name in the /system/build.prop file.
prwnd said:
Will this enable Google Photos full size backup if I rename my 6P to Pixel XL?
Click to expand...
Click to collapse
I'm not sure, but I think the device name must be set to Pixel XL when you set up your device for the first time. This is why full-size Photo backups work on custom "Pixel" ROMs (for non-Pixel devices).
I'm sure you can do it with terminal emulator on rooted device, so no ADB and PC is needed.
minimale_ldz said:
I'm sure you can do it with terminal emulator on rooted device, so no ADB and PC is needed.
Click to expand...
Click to collapse
You are right, if using Terminal on your device, you must be root user and use the same commands but remove the adb shell part.
I got this:
Too many arguments
usage: settings [--user NUM] get namespace key
settings [--user NUM] put namespace key value
settings [--user NUM] delete namespace key
settings [--user NUM] list namespace
namespace' is one of {system, secure, global}, case-insensitive
If '--user NUM' is not given, the operations are performed on the owner user.
Xperia M4 Aqua E2303
EDIT: OK; old method worked for me. Successfuly changed it. New method didn't work.
srdjanLeo said:
I got this:
Too many arguments
usage: settings [--user NUM] get namespace key
settings [--user NUM] put namespace key value
settings [--user NUM] delete namespace key
settings [--user NUM] list namespace
namespace' is one of {system, secure, global}, case-insensitive
If '--user NUM' is not given, the operations are performed on the owner user.
Xperia M4 Aqua E2303
EDIT: OK; old method worked for me. Successfuly changed it. New method didn't work.
Click to expand...
Click to collapse
Which command did you use? Make sure your device name is surrounded by double quotes.
JBNex said:
Which command did you use? Make sure your device name is surrounded by double quotes.
Click to expand...
Click to collapse
Forgot qoutes
I tried with Terminal Emulator and it works So, my mistake.
it needs root ??
I want a way to get google assistant without root or custom recovery on htc 10 ?
elawady.2014 said:
it needs root ??
I want a way to get google assistant without root or custom recovery on htc 10 ?
Click to expand...
Click to collapse
You can't use this to get Google Assistant, but yes it does work without root.
JBNex said:
I'm not sure, but I think the device name must be set to Pixel XL when you set up your device for the first time. This is why full-size Photo backups work on custom "Pixel" ROMs (for non-Pixel devices).
Click to expand...
Click to collapse
.
i had the same question. in fact this is the main reason I wanna change my device model number now my question is... If i wanna change my device model from "oneplus 3" to "Google pixel" i just need to use the command "Pixel XL 9000"? right?
.
and another question... what's with the" Pixel XL 9000"??? can't i just simply use "pixel/ Google pixel" cause, as far as i know, Google also offer full size photo backup for both pixel and pixel xl.
sahed01 said:
.
i had the same question. in fact this is the main reason I wanna change my device model number now my question is... If i wanna change my device model from "oneplus 3" to "Google pixel" i just need to use the command "Pixel XL 9000"? right?
.
and another question... what's with the" Pixel XL 9000"??? can't i just simply use "pixel/ Google pixel" cause, as far as i know, Google also offer full size photo backup for both pixel and pixel xl.
Click to expand...
Click to collapse
Oh that was just an example to show that you could change it to any name you want. Simply Pixel XL would work!
JBNex said:
Oh that was just an example to show that you could change it to any name you want. Simply Pixel XL would work!
Click to expand...
Click to collapse
.
okay. wish me luck! I'm gonna change my device name "oneplus 3" to "Pixel" let's see if full size unlimited photo backup works!
there is no such code as "ro.product.model" in my oneplus 3 device. only "ro.product.brand=oneplus" and "ro.product. manufacturer" what should I do?
Error
Yeah bro
I have changed it using build.prox but now my device is Automatically switching off and on how to solve it.....
Is there way to enter /data/system/users/0/settings_ssaid.xml without root ?
beacuse this app must need same ssaid in other devices i need to enter /data/system/users/0/settings_ssaid.xml see ssaid without root pls help me
Android ID can be changed with the help of ADB through the following command
Code:
adb shell "settings secure put android_id [my_new_android_id]"
where ROOT isn't required.
xXx yYy said:
Android ID can be changed with the help of ADB through the following command
Code:
adb shell "settings secure put android_id [my_new_android_id]"
where ROOT isn't required.
Click to expand...
Click to collapse
no i want see ssaid first without root after that i will change with other device rooted
OMG
Then simply revise the command as follows
Code:
adb shell "settings get secure android_id"
Hint: Become familiar with Android's system ( LINUX ) commands.
I need app developer help will give you enough money have a problem that I want to solve
This app can be accessed from another device only once a month.
It uses a value called ssaid, which is different for each device.
What I want is to bypass this ssaid value
It seems that this value is stored on the server