Get MCC/MNC from shell script - Android Q&A, Help & Troubleshooting

Hi everyone,
I would like a shell script (/bin/sh) running on Android though Terminal Emulator, to get MCC/MNC values from network.
Is it possible ? The phone is not rooted.
I don't know if Android have some commands to get that information...
Thank you.
Flo

FloBaoti said:
Hi everyone,
I would like a shell script (/bin/sh) running on Android though Terminal Emulator, to get MMC+MNC values from network.
Is it possible ? The phone is not rooted.
I don't know if Android have some commands to get that information...
Thank you.
Flo
Click to expand...
Click to collapse
The first thing you would need is the IMSI of the device. This would require you to put a SIM card inside. I wouldn't know of any way to get it through the command line, but I believe there are apps on the google play store that will give you this information. I know the root essentials app gives you the IMSI, and I think that app doesn't even require root if you aren't doing anything root specific. There are also secret codes that give you access to this information, I know Samsung has one.
Using the IMSI, you can find the MCC/MNC values.

IMSI will give the operator of SIM card, not the current network MCC/MNC (roaming...)
I think I can do what I want using
getprop gsm.sim.operator.numeric
&
getprop gsm.operator.numeric
I will try.

Related

[Q] Change/remove lock code with internal class or adb shell

Problem:
I'm an app developer. I have one app that let's you lock the device using Device Administration. One of my users had some conflicts with my app and another. He then removed Device Administration and uninstalled my app, rebooted his phone, and now he cannot access his phone.
He of course cannot use my app to change the password now (since it's uninstalled).
His phone is stock 2.2 LG Optimus V, Virgin Mobile, Rooted.
Question:
I'm needing to find a way that my user can now change his lock code.
I need:
1.) to know an internal class (from com.android.internal) that I could use within an app to change the lock code (just like the system settings do).
OR
2.) to know a command I can use with adb shell to remove or change the phone lock code.
OR
3.) to know the location of the file that stores the lock code information.
Any help is greatly appreciated.
I did actually manage to rewrite a couple pieces of my app, install with adb install, then start it with adb shell am start, and re-enable device admin. So I was able to make it work.
This also worked when my user tried it. Problem Solved.

How to become root in android after connecting via SSH using SSHDroid?

I am using SSHDroid to connect to the android from PC via SSH.when I am starting the SSHDroid it showing root : off .I am not getting why root is off and also if it is off how to ON that one.
Then I have connected to Android via SSH from my computer.Now when I have connected to the terminal of android there I am not the root there it showing $ symbol that means I am a normal user ,not the root(#). so my doubt is how to become root.
Is there any way to become root in that terminal or noway we can be root. I need this because I can't able to execute many commands as a normal user.sudo and su is also not working and showing permission denied.
Can any one kindly tell what to do next .This is very important for my project.
Thnaks
pradiptart said:
I am using SSHDroid to connect to the android from PC via SSH.when I am starting the SSHDroid it showing root : off .I am not getting why root is off and also if it is off how to ON that one.
Then I have connected to Android via SSH from my computer.Now when I have connected to the terminal of android there I am not the root there it showing $ symbol that means I am a normal user ,not the root(#). so my doubt is how to become root.
Is there any way to become root in that terminal or noway we can be root. I need this because I can't able to execute many commands as a normal user.sudo and su is also not working and showing permission denied.
Can any one kindly tell what to do next .This is very important for my project.
Thnaks
Click to expand...
Click to collapse
I don't think you can become root without knowing the password and with most if not all linux OS, to change the password you have to boot in single session to change that without knowing the password from the start.
You could try login, but still without the password you won't become root.
I know with the iPhone ( dark days of my life lol ) the su password was alpine, try googling around for your devices default root password.
Once you find it, you should be able to change it using, su or sudo passwd and it will ask for current then new password.
If someone else knows the default password or if you even need it, I would gladly sit back and read about it as this is my next project as well.
default password .
fallen00sniper said:
I don't think you can become root without knowing the password and with most if not all linux OS, to change the password you have to boot in single session to change that without knowing the password from the start.
You could try login, but still without the password you won't become root.
I know with the iPhone ( dark days of my life lol ) the su password was alpine, try googling around for your devices default root password.
Once you find it, you should be able to change it using, su or sudo passwd and it will ask for current then new password.
If someone else knows the default password or if you even need it, I would gladly sit back and read about it as this is my next project as well.
Click to expand...
Click to collapse
As i know the default password is admin.but I do not know the password is for root or general user, as when i am giving the password to android in ssh connection I am connection to the general user terminal of the android.
How to be root in this case.Is there any way if yes kindly tell ...
Thanks..
pradiptart said:
As i know the default password is admin.but I do not know it is for what means root or only for general user as when i am giving the password to android in ssh connection I am connection to the general user terminal of the android.
How to be root in this case.Is there any way if yes kindly tell ...
Thanks..
Click to expand...
Click to collapse
If you don't know what root is, then you had better not mess with it.
Before I answer your question, I want to explain a little about root in the simplest terms.
Running as root you can seriously destroy an OS if you do not know what you are doing, so be careful not to delete something your not absolutely sure about.
ok, if you want to run as root, two ways you can do this.
#1 connect to the ssh server on your phone as the normal user, once connected type -> login press return / enter -> wait for prompt -> type root press return / enter -> type admin press return / enter.
that should make you root.
#2 connect as root and wait for password prompt and type admin and press return / enter.
If either of these methods fail to give you root access, then the android OS has deviated from linux more than I expect or you have the wrong password.
To become root, you phone must be rooted. SSHDroid by itself will not give you root access if the phone isn't rooted. I guess "root : off" means your phone isn't rooted in the first place, hence SSHDroid not able to escalate you to root.
I didn't take into account to ask if the device was rooted, some light reading from the android market may help you understand root more.
Open Google play and search for all about root and select the one listed under apps, install, read and understand what root is.
It may only scratch the surface, but It's a start.
Sent from my ADR6425LVW using xda app-developers app
fallen00sniper said:
I didn't take into account to ask if the device was rooted, some light reading from the android market may help you understand root more.
Open Google play and search for all about root and select the one listed under apps, install, read and understand what root is.
It may only scratch the surface, but It's a start.
Sent from my ADR6425LVW using xda app-developers app
Click to expand...
Click to collapse
Thanks for you reply again..
Now Let me know what are the commands available for a non root user.
As it is not possible for me to find out a generic rooting solution for all the android as it is different and depends upon the android and phone.
But in my project I may not know which type of android to which i am connecting only ssh command .so I am thinking to do the task what I need in my project after login by ssh using the normal user ,so can u tell me what are the commands that available for a non-root user and a root user.
Thanks
All Linux commands should be available, Google Linux command line for a complete list, basically it is the same as sitting in front of a computer running linux, but with command line only.
As for a generic root, if you have a resound, I suggest following the directions I did to unlock and root with amon ra, my post gives a brief description of the steps I had taken with links.
http://forum.xda-developers.com/showthread.php?t=1790625
Sent from my ADR6425LVW using xda app-developers app
fallen00sniper said:
I don't think you can become root without knowing the password and with most if not all linux OS, to change the password you have to boot in single session to change that without knowing the password from the start.
You could try login, but still without the password you won't become root.
I know with the iPhone ( dark days of my life lol ) the su password was alpine, try googling around for your devices default root password.
Once you find it, you should be able to change it using, su or sudo passwd and it will ask for current then new password.
If someone else knows the default password or if you even need it, I would gladly sit back and read about it as this is my next project as well.
Click to expand...
Click to collapse
I know my password but I cant get command for root i tried putting "su" but dont work
(my phone isnt rooted)
Techlord210 said:
I know my password but I cant get command for root i tried putting "su" but dont work
(my phone isnt rooted)
Click to expand...
Click to collapse
Then that’s why, have to be rooted to gain root.
fallen00sniper said:
Then that’s why, have to be rooted to gain root.
Click to expand...
Click to collapse
well i cant root my phone because i cant get its frimware package
Techlord210 said:
well i cant root my phone because i cant get its frimware package
Click to expand...
Click to collapse
You’ll have to solicit a dev to help you get a dump and then they can help gaining root possibly.
Su doesn’t work because it isn’t present, no root commands will work at all, you may be able to have a tethered root.

[Q] 3G for flipped image

How do i get 3g working on an ubuntu touch read only image?
Are you using
Code:
phablet-flash ubuntu-system
???
Then it should just work by inserting your SIM card. Did you insert the SIM with the device powered down and then boot up? (You should always do this - no matter what phone/OS.)
Applications > System Settings > Cellular
On Choose Carrier you should have "Automatically" selected. You won't see the 3G symbol if you are connected to WiFi. Make sure WiFi is turned off.
If all that is correct and your carrier is not showing up, then your carrier is not in the configuration file. They've moved it under ubuntu-system builds and I can't find it ATM. It would be possible, if found, to pull a copy and examine it to see if your carrier is on there and what settings it has.
What country are you in? What carrier do you have?
Does anyone know the new location for what used to be "/data/ubuntu/etc/NetworkManager/system-connections/<connection>"???
RumoredNow said:
Are you using
Code:
phablet-flash ubuntu-system
???
Then it should just work by inserting your SIM card. Did you insert the SIM with the device powered down and then boot up? (You should always do this - no matter what phone/OS.)
Applications > System Settings > Cellular
On Choose Carrier you should have "Automatically" selected. You won't see the 3G symbol if you are connected to WiFi. Make sure WiFi is turned off.
If all that is correct and your carrier is not showing up, then your carrier is not in the configuration file. They've moved it under ubuntu-system builds and I can't find it ATM. It would be possible, if found, to pull a copy and examine it to see if your carrier is on there and what settings it has.
What country are you in? What carrier do you have?
Does anyone know the new location for what used to be "/data/ubuntu/etc/NetworkManager/system-connections/<connection>"???
Click to expand...
Click to collapse
Yes i did use phablet-flash ubuntu-system
Made some progress.
I live in india and my carrier is airtel. Its listed in cellular settings. I also successfully pushed the mobile connection i created on my desktop to my mobile and gave it correct permissions. However,when i try nmcli con up id "<connection>", it says Error:Unknown Connection
And btw, when in adb shell, for flipped images, /data/ubuntu is not necessary
What do i do next? Thanks for your reply
RumoredNow said:
Are you using
Code:
phablet-flash ubuntu-system
???
Then it should just work by inserting your SIM card. Did you insert the SIM with the device powered down and then boot up? (You should always do this - no matter what phone/OS.)
Applications > System Settings > Cellular
On Choose Carrier you should have "Automatically" selected. You won't see the 3G symbol if you are connected to WiFi. Make sure WiFi is turned off.
If all that is correct and your carrier is not showing up, then your carrier is not in the configuration file. They've moved it under ubuntu-system builds and I can't find it ATM. It would be possible, if found, to pull a copy and examine it to see if your carrier is on there and what settings it has.
What country are you in? What carrier do you have?
Does anyone know the new location for what used to be "/data/ubuntu/etc/NetworkManager/system-connections/<connection>"???
Click to expand...
Click to collapse
Yes i did use phablet-flash ubuntu-system
Made some progress.
I live in india and my carrier is airtel. Its listed in cellular settings. I also successfully pushed the mobile connection i created on my desktop to my mobile and gave it correct permissions. However,when i try nmcli con up id "<connection>", it says Error:Unknown Connection
And btw, when in adb shell, for flipped images, /data/ubuntu is not necessary
What do i do next? Thanks for your reply
skynet central said:
Yes i did use phablet-flash ubuntu-system
Made some progress.
I live in india and my carrier is airtel. Its listed in cellular settings. I also successfully pushed the mobile connection i created on my desktop to my mobile and gave it correct permissions. However,when i try nmcli con up id "<connection>", it says Error:Unknown Connection
And btw, when in adb shell, for flipped images, /data/ubuntu is not necessary
What do i do next? Thanks for your reply
Click to expand...
Click to collapse
"nmcli con up id" is from Ubuntu Touch before they flipped the container and is no longer relevant.
I had the location of the carrier data file under flipped container and it could be pulled, edited and pushed back.
With the read-only builds (ubuntu-system) that push would not work unless you remount as read-write for that terminal session... I can't find the file location now though. They moved it (again).
If your carrier is showing up under Settings > Cellular and it doesn't connect to data, then your carrier data file does need an update. We just have to find the new directory/location/file name.
RumoredNow said:
"nmcli con up id" is from Ubuntu Touch before they flipped the container and is no longer relevant.
I had the location of the carrier data file under flipped container and it could be pulled, edited and pushed back.
With the read-only builds (ubuntu-system) that push would not work unless you remount as read-write for that terminal session... I can't find the file location now though. They moved it (again).
If your carrier is showing up under Settings > Cellular and it doesn't connect to data, then your carrier data file does need an update. We just have to find the new directory/location/file name.
Click to expand...
Click to collapse
the new file you are looking for is in here /usr/share/mobile-bradband-provider-info/serviceproviders.xml
but a added my carrier and apn settings abd didnt connect either, you can give a try and tell how it will go
skynet central said:
Yes i did use phablet-flash ubuntu-system
Made some progress.
I live in india and my carrier is airtel. Its listed in cellular settings. I also successfully pushed the mobile connection i created on my desktop to my mobile and gave it correct permissions. However,when i try nmcli con up id "<connection>", it says Error:Unknown Connection
And btw, when in adb shell, for flipped images, /data/ubuntu is not necessary
What do i do next? Thanks for your reply
Click to expand...
Click to collapse
So I used Terminal on an Ubuntu box and got a copy of the file. (Thanks albanodesign.)
Code:
adb pull /usr/share/mobile-bradband-provider-info/serviceproviders.xml
Airtel is indeed listed... However, not all the MNC (Mobile Network Code) entries are included. Check this source: http://en.wikipedia.org/wiki/Mobile_Network_Code#I and I also see some MNC listed under Airtel India that are not on the Wikipedia list. The extra ones won't matter, but the missing ones might just be the problem. They are regionally dependent and your region may not be on the serviceproviders.xml file.
The added MNC codes are all AirCEL and I think someone just got sloppy on their lookup when they built the MCC/MNC table for Airtel India. (To be fair, your country has a huge number of carrier codes.)
The missing MCC/MNC code pairs are 404/16 (NorthEast - formerly Hexacom), 404/94 (Tamil Nadu), 404/95 (Kerala), 405/53 (Orissa) and 405/55 (Jammu & Kashmir). These need to be edited into the copy you pulled. Follow the format of the lines that already exist then save the file with the original name.
Then you need to push the file back to the phone... but it is "Read Only" so in terminal on your Ubuntu box use...
Code:
adb shell
mount /dev/loop0 / -o remount,rw
...to remount as a "Read Write" for that terminal session. Then push the file back to /usr/share/mobile-bradband-provider-info/serviceproviders.xml
I hope that helps. Let us know.
RumoredNow said:
So I used Terminal on an Ubuntu box and got a copy of the file. (Thanks albanodesign.)
Code:
adb pull /usr/share/mobile-bradband-provider-info/serviceproviders.xml
Airtel is indeed listed... However, not all the MNC (Mobile Network Code) entries are included. Check this source: http://en.wikipedia.org/wiki/Mobile_Network_Code#I and I also see some MNC listed under Airtel India that are not on the Wikipedia list. The extra ones won't matter, but the missing ones might just be the problem. They are regionally dependent and your region may not be on the serviceproviders.xml file.
The added MNC codes are all AirCEL and I think someone just got sloppy on their lookup when they built the MCC/MNC table for Airtel India. (To be fair, your country has a huge number of carrier codes.)
The missing MCC/MNC code pairs are 404/16 (NorthEast - formerly Hexacom), 404/94 (Tamil Nadu), 404/95 (Kerala), 405/53 (Orissa) and 405/55 (Jammu & Kashmir). These need to be edited into the copy you pulled. Follow the format of the lines that already exist then save the file with the original name.
Then you need to push the file back to the phone... but it is "Read Only" so in terminal on your Ubuntu box use...
Code:
adb shell
mount /dev/loop0 / -o remount,rw
...to remount as a "Read Write" for that terminal session. Then push the file back to /usr/share/mobile-bradband-provider-info/serviceproviders.xml
I hope that helps. Let us know.
Click to expand...
Click to collapse
thank you i did added my network codes wich i know they are 276/03 apn is internet and my country albania al but meybe i have a problem with permissions what permissions should thet file have and is the remount necesarry couse i can easily adb push the file (i have insecured boot)
anyway did it worked for you? if it did i'm doing something wrong than
albanodesign said:
thank you i did added my network codes wich i know they are 276/03 apn is internet and my country albania al but meybe i have a problem with permissions what permissions should thet file have and is the remount necesarry couse i can easily adb push the file (i have insecured boot)
anyway did it worked for you? if it did i'm doing something wrong than
Click to expand...
Click to collapse
I've not done this myself as my 3G is working... It's theoretical to help the OP (skynet central).
He would need the remount, rw as he has flashed the read-only ubuntu-system build.
RumoredNow said:
I've not done this myself as my 3G is working... It's theoretical to help the OP (skynet central).
He would need the remount, rw as he has flashed the read-only ubuntu-system build.
Click to expand...
Click to collapse
i got it
for me still no succes yet i did a new phablet flashand still no 3g i know the apn is ok because i always manually configure apn on android but who knows waiting for 17 oct
http://forum.xda-developers.com/showthread.php?t=2482032
3G Data Now Working
gazhead said:
http://forum.xda-developers.com/showthread.php?t=2482032
3G Data Now Working
Click to expand...
Click to collapse
thnk to you finaly found the right solution witch is: it works out of the box but you need to have a pin locked sim.
its strange but 3g doesnt work with a sim that doesnt request pin lock.
if it doesnt work either try and put your apn settings as mentioned in previous posts in /usr/share/mobile-broadband-provider-info/serviceproviders.xml and try again
i'm finally on 3g

Help rooting a T-Mobile Revvl Plus - (Coolpad/Yulong)

I tried using kingo-root and kingroot, both on phone and on computer. I am not sure where to proceed from there, but i will say it got to around 90%. The reason I want to root is to disable the boot animation or startup sound(s), which is not usually disabled automatically when I have my phone on mute. I tried the sound disabler app, it seems to not be working (the startup sound still plays).
----------------------------------------------------------------------------------------------------
Well I also noticed you can do a command get ver all, but its going to require someone with that has better phone skills than of my own .. also try command while connected to computer "adb pull system" without the quotes it got to 82% for me before it wouldn't write no more still have the files for system if anyone needs them for rewriting or porting in the bootloader ... also by the way i dont know if this will help but i have got the some of these it may be helpful?.. its in the pic.
Root revvl plus coolpad
Hi do you root the revvl plus how can I do please help me thankful
TRY THIS
SmartPhoneDeveloper said:
I tried using kingo-root and kingroot, both on phone and on computer. I am not sure where to proceed from there, but i will say it got to around 90%. The reason I want to root is to disable the boot animation or startup sound(s), which is not usually disabled automatically when I have my phone on mute. I tried the sound disabler app, it seems to not be working (the startup sound still plays).
----------------------------------------------------------------------------------------------------
Well I also noticed you can do a command get ver all, but its going to require someone with that has better phone skills than of my own .. also try command while connected to computer "adb pull system" without the quotes it got to 82% for me before it wouldn't write no more still have the files for system if anyone needs them for rewriting or porting in the bootloader ... also by the way i dont know if this will help but i have got the some of these it may be helpful?.. its in the pic.
Click to expand...
Click to collapse
Hi there,
Well you can use various different methods of Rooting your Mobile, try using One-click Root or use any other rooting software
As far as I have gotten but better than nowhere...
There's a file in the etc folder in the system folder at your root. Use Termux to command "cd /system/etc/" Then command "ls". You can see a unique file called xtra_root_cert.pem in that folder. Command "apt install joe"... Then "joe xtra_root_cert.pem" You can get the certificate hash from the text displayed. That is as far as I have gotten. Lord knows what to do with it. It's some sort of password to unlock the root I think... Maybe not but highly likely. Any devs know what to do with it or how to use it?
WatchYerBak said:
There's a file in the etc folder in the system folder at your root. Use Termux to command "cd /system/etc/" Then command "ls". You can see a unique file called xtra_root_cert.pem in that folder. Command "apt install joe"... Then "joe xtra_root_cert.pem" You can get the certificate hash from the text displayed. That is as far as I have gotten. Lord knows what to do with it. It's some sort of password to unlock the root I think... Maybe not but highly likely. Any devs know what to do with it or how to use it?
Click to expand...
Click to collapse
That would be an SSL certificate.
Any news about rooting this ?
I saw a log in a forum, where MAGISK SU was running on the phone...

Question S22+ IMEI via ADB not working

Hello,
I'm using some scripts that gather information from phones. Mainly IMEI number. However this stopped working;
adb shell service call iphonesubinfo 1
Normally it would return something like that:
Result: Parcel(
0x00000000: 00000000 0000000f 00350030 00320095 '........1.2.3.4.'
0x00000050: 00380035 00330030 00654083 00320058 '4.5.6.7.8.9.0.1.'
0x00000060: 00370097 00000033 '2.3.4... ')
But... with S22+ it does this:
Result: Parcel(fffffffc ffffffff 00000000 '............')
Something have changed... any one have any idea how to get IMEI from S22+ via ADB?
PS: phone is rooted, model SM-S906B
PPS: this method was working form S6 to S21
Edit:
It seems to be an FW issue, on first released S906BXXU1AVA7 it was working (with and w/o root).
Now I have issues on S906BXXU1AVC6.
BR, Doman.
use phone info from samsung, you have a lot of info
pitelasssss said:
use phone info from samsung, you have a lot of info
Click to expand...
Click to collapse
Nope. ADB only. I know that there are apps...
Update; I can confirm that this is an FW issue. I've rolled back to S906BXXU1AVA7 and all is ok. Any thoughts?
Update 2; well... I know "whats up" now. Staring from S906BXXU1AVBF (second available FW) there is a change in Android 12 that deprecated some functions... there is possibility for a workaround, but it's not elegant. I'm currently working on it.
I am having the same issue. Were you able to make any progress?
Hey, yes, I have a method... you need to call a code *#06# an then retrieve IMEI from it.
Here's a working example:
adb shell "imei=$(input keyevent KEYCODE_CALL;sleep 1;input text '*#06#'; uiautomator dump --compressed /dev/stdout|sed s/\>\<\/\\n/g|grep -A1 IMEI|tail -n1|sed -e 's/.*text=\"//' -e 's/\".*//'); echo ${imei:0:16}"
The above line is not mine, I'm doing it a bit differently, but it still works.
You guys able to rewrite original imei?
i'm in trouble with my s22 U
This even works for older devices,
Code:
adb shell service call iphonesubinfo 1 s16 com.android.shell | cut -d "'" -f2| grep -Eo '[0-9]'| xargs| sed 's/\ //g'
Let me know if this works!
Thank you
luckk said:
You guys able to rewrite original imei?
i'm in trouble with my s22 U
Click to expand...
Click to collapse
I haven't tryed to change IMEI on any new phone, as I remember it was a hassle 10 years ago...
uncommonthinker said:
This even works for older devices,
Code:
adb shell service call iphonesubinfo 1 s16 com.android.shell | cut -d "'" -f2| grep -Eo '[0-9]'| xargs| sed 's/\ //g'
Let me know if this works!
Thank you
Click to expand...
Click to collapse
Ha! It works on Android 13 (S23) and Android 8 (S8). Thats awesome, thanks!
I mean:
adb shell service call iphonesubinfo 1 s16 com.android.shell
The whole oneliner doesn't work on windows (but can be run in linux/android shell).
BR, Doman.
Doman2011 said:
I haven't tryed to change IMEI on any new phone, as I remember it was a hassle 10 years ago...
Ha! It works on Android 13 (S23) and Android 8 (S8). Thats awesome, thanks!
I mean:
adb shell service call iphonesubinfo 1 s16 com.android.shell
The whole oneliner doesn't work on windows (but can be run in linux/android shell).
BR, Doman.
Click to expand...
Click to collapse
Cool
Hi,
I have created a script to extract device information (including IMEI) which theoretically works on all Android versions.
For those interested: https://github.com/micro5k/microg-unofficial-installer/blob/main/utils/device-info.sh
Note: My script also works on Windows, it just need BusyBox for Windows to be executed.
ale5000 said:
Hi,
I have created a script to extract device information (including IMEI) which theoretically works on all Android versions.
For those interested: https://github.com/micro5k/microg-unofficial-installer/blob/main/utils/device-info.sh
Click to expand...
Click to collapse
These service calls can vary for the different versions of Android! You should be aware of this because you don't know what will happen for all the different devices and versions. It could be very dangerous for users to execute them.
Where to find info on Android's "service call" shell command?
Using adb shell or a terminal emulator on the device, entering this will clear all notifications (requires su) service call notification 1 This will send an sms (doesn't require su) service call...
stackoverflow.com
WoKoschekk said:
These service calls can vary for the different versions of Android! You should be aware of this because you don't know what will happen for all the different devices and versions. It could be very dangerous for users to execute them.
Where to find info on Android's "service call" shell command?
Using adb shell or a terminal emulator on the device, entering this will clear all notifications (requires su) service call notification 1 This will send an sms (doesn't require su) service call...
stackoverflow.com
Click to expand...
Click to collapse
Have you looked at the script?
It execute the right command for every Android version.
Doman2011 said:
PS: phone is rooted, model SM-S906B
PPS: this method was working form S6 to S21
Edit:
It seems to be an FW issue, on first released S906BXXU1AVA7 it was working (with and w/o root).
Now I have issues on S906BXXU1AVC6.
BR, Doman.
Click to expand...
Click to collapse
Anybody seeing Odin silently disappearing when trying to flash April security patch level firmware (Snapdragon S22+ SM-S9060)? Was fine all previous firmwares...
Edit: Post removed
I need to use adb cuz the screen is shattered. How do I pull imei while in stock recovery?
Rootmaster906 said:
I need to use adb cuz the screen is shattered. How do I pull imei while in stock recovery?
Click to expand...
Click to collapse
Stock recovery only accepts 'adb sideload'. There is no cmd to pull IMEI.
WoKoschekk said:
Stock recovery only accepts 'adb sideload'. There is no cmd to pull IMEI.
Click to expand...
Click to collapse
Can you assist me then? I cannot get any information off the phone because the screen is shattered and I can't see what is on it and my uncle forgot his password to get into it and we need the IMEI to do a trade-in
Rootmaster906 said:
Can you assist me then? I cannot get any information off the phone because the screen is shattered and I can't see what is on it and my uncle forgot his password to get into it and we need the IMEI to do a trade-in
Click to expand...
Click to collapse
IMEI is also written on the phone's package.

Categories

Resources