yashsingh1/xdaforums huggingface dataset:
[Galaxy S III Themes and Apps] foreveras:
Hello, actually I found the way to set the card number. What you need is the USB mobile modem. For this purpose I'v used huawei E3131 modem.

When it's installed you check under which serial port it is.

Than with some serial termina (putty for example) you have to issue two commands:

AT+CPBS="ON"

OK

AT+CPBW=,"+XXXXXXXXXXX"

OK

First command is to choose the "Own Number" phonebook on the simcard, and the second one writes the number to this phonebook.

This is really that simple :)
[Galaxy S III Themes and Apps] megapro17:
I got these commands working on my phone, but it doesn't see ON table at all, even on sim with already set card number. I'll try different phone

Sending AT Commands Via ADB Android

I have a task at work to investigate if it is possible to send AT commands to an android device via ADB shell. So far,I have tried to echo out the AT commands but it passes them as normal strings. ...

stackoverflow.com
[Galaxy S III Themes and Apps] foreveras:
Hello, what do you mean by "doesn't see ON table at all" ?

Can you post the commands and results please?
[Galaxy S III Themes and Apps] megapro17:
When i'm entering AT+CPBS="ON" it says ERROR, because there is no ON contacts table. It seems to be hidden from all qualcomm modems

it's easier to find any iphone, even old 5s can change it
[Galaxy S III Themes and Apps] oldman20:
Any similar working with lsposed?
[Galaxy S III Themes and Apps] megapro17:
obviously this, but it doesn't work either https://xdaforums.com/t/app-xposed-sim-number-setter.4400131/
[Galaxy S III Themes and Apps] Gudaji:
yes i found one that is up to date hope it helps

GitHub - KieronQuinn/SIMNumberSetter: A small Xposed module to set the SIM card's phone subscriber number

A small Xposed module to set the SIM card's phone subscriber number - KieronQuinn/SIMNumberSetter

github.com
[Galaxy S III Themes and Apps] David Flores:
8341439281
[Galaxy S III Themes and Apps] xbt-:
Guys, this works! Finally
[Galaxy S III Themes and Apps] PearLRoX:
thanks for the mod !
[Galaxy S III Themes and Apps] phersys:
Hi, I installed and changed my number but KIES doesn't recognizes the new number. Has Kies cache? Or this app dont change really my number....
[Galaxy S III Themes and Apps] OXINARF:
Let me answer in two parts:

- I rarely use Kies, but I'm pretty sure it recognized my number after changing it. I don't know if it has cache or not. Have you confirmed that your number changed in About menu in Settings?

- This app don't change your REAL number. This changes the number registered in your SIM card, but even if you change this to a number that isn't yours, your operator will still know your real number.
[Galaxy S III Themes and Apps] weasel:
Not working in S4 i9505

Not a complaint at all, but I thought I would try this in my UK i9505 and it didn't work - shame, but never mind. It is a small annoyance and no more
[Galaxy S III Themes and Apps] dehaani:
I could have done with this a while ago when I got a number ported. The SIM number didn't match my new number and some applications such as Whatsapp used the SIM number to verify, thus never completing verification.

After a bit of research I found that Blackberry phones update the SIM number, as do some older handsets but newer phones tend to leave it if there's an entry there already. So I had to find someone with a Blackberry to borrow for a few seconds to resolve the problem.
[Galaxy S III Themes and Apps] LoganMcClay:
Hi,

Seems something changed on JB 4.2.2, it's not working for me on the new leak.
[Galaxy S III Themes and Apps] OXINARF:
Can you look in /data/xposed/debug.log and see if there are any errors there? Probably something changed in Phone.apk and it should give an error in that file.
[Galaxy S III Themes and Apps] LoganMcClay:
OXINARF,

It seems to have some errors, java.lang.NoSuchFieldError is coming multiple times in the log, see attached file.
[Galaxy S III Themes and Apps] OXINARF:
Ok, it seems something changed. Can you send me SecPhone.apk and SecPhone.odex? They should be at /system/app. Otherwise I'll have to download the ROM and it will take me more time.
[Galaxy S III Themes and Apps] LoganMcClay:
Yeah no problem, i'll send you them right after i ate ;)

But i'm on Wanamlite 7.0 and i think it's deodexed... Anyway i've original leak i'll see if I can get them out of it !
[Galaxy S III Themes and Apps] OXINARF:
If it's deoxed it's even better, I don't need to it myself :p
[Galaxy S III Themes and Apps] koRn666:
Works perfect here! ARHD 26
[Galaxy S III Themes and Apps] LoganMcClay:
Here we go, SecPhone.apk deodexed from Wanamlite 7.0 :)
[Galaxy S III Themes and Apps] OXINARF:
Thank you very much, I'll into it and see if I can solve it.
[Galaxy S III Themes and Apps] OXINARF:
Ok, can you test the attached version?

They have changed things, actually it is even prepared to support dual SIM (but this app doesn't support that, I'll have to study it more closely to do it). It seems Samsung is merging their code all in one base, that's really good.
[Galaxy S III Themes and Apps] LoganMcClay:
Hi,

It hasn't worked, see the new log on attached files, it has new error :

Caused by: java.lang.NoClassDefFoundError: com/android/phone/PhoneGlobals
[Galaxy S III Themes and Apps] OXINARF:
Never mind, I did something stupid. Can you try this new version?
[Galaxy S III Themes and Apps] gnufabio:
Not working on my Galaxy Nexus with Android 4.2.2:

24/mag/2013 15:21:27 UTC
Loading Xposed (for Zygote)...
Loading modules from /data/app/pt.oxinarf.simnumberchanger-1.apk
Loading class pt.oxinarf.simnumberchanger.XposedMod
java.lang.ClassCastException: com.android.phone.PhoneGlobals cannot be cast to android.app.Application
at pt.oxinarf.simnumberchanger.XposedMod$1.afterHookedMethod(XposedMod.java:77)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:467)
at com.android.phone.PhoneGlobals.onCreate(Native Method)
at com.android.phone.PhoneApp.onCreate(PhoneApp.java:38)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1000)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4576)
at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
at de.robv.android.xposed.XposedBridge.invokeOriginalMethod(XposedBridge.java:624)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:455)
at android.app.ActivityThread.handleBindApplication(Native Method)
at android.app.ActivityThread.access$1300(ActivityThread.java:153)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1307)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5226)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:110)
at dalvik.system.NativeStart.main(Native Method)
[Galaxy S III Themes and Apps] OXINARF:
Bah sorry guys, it seems I still haven't woken up. I think I got it right this time, can you try it?
[Galaxy S III Themes and Apps] gnufabio:
I just fixed it, casting to Context instead of Application
[Galaxy S III Themes and Apps] LoganMcClay:
Yes ! You got it working right :D

Thanks a lot for your work OXINARF !
[Galaxy S III Themes and Apps] Dreiundachzig:
Worked perfectly on my Xperia Z. Had an app from Play Store which could change the number without root and changing anything on system but that didn't work anymore. Now my number is shown again :D
[Galaxy S III Themes and Apps] OXINARF:
I've done the same thing... So I don't understand why you have posted your version AFTER my post, please remove it.

Thanks for testing it, it's been added to first post.
[Galaxy S III Themes and Apps] sohail667:
not working with 4.2.2 message activate xpossed module and restart phone

but i do so many times?
[Galaxy S III Themes and Apps] OXINARF:
Please look if there are any errors in /data/xposed/debug.log and if yes post it here.
[Galaxy S III Themes and Apps] sohail667:
yes i find debug log i post it here>...

i add zip plz extract it.
[Galaxy S III Themes and Apps] OXINARF:
I've checked the log and there are no errors concerning this app. What I see is that the number is being written (at one time it says that actual number is correct) but something is changing it back to null. Are you writing your actual number? I can only think that your operator is telling your phone to make phone number null.
[Galaxy S III Themes and Apps] pigr8:
Very nice work!! i was searching for something similar and i found your app!

this is really usefull if you do Mobile Number Portability from an operator to another, in the new SIM it's probably a temporary number stored in (or maybe empty field), with this you can write in your REAL number so many apps (like Whatsapp or Hangout) can read it correctly!

my case, i switched from Vodafone to TIM, old number was a 347xxx but when they changed my old Vodafone SIM with a new TIM SIM the phone recognized a 339xxx number.. with this app i rewrote back my 347xxx on the new SIM and it went better than excepted!

Thanks a lot man!
[Galaxy S III Themes and Apps] OXINARF:
It's always good when my work is useful to others, thanks for sharing your experience.
[Galaxy S III Themes and Apps] Spannaa:
Thanks for this :)

It works fine on my SGS2 (I9100) running NeatROM Lite 4.8
[Galaxy S III Themes and Apps] Emilius:
Thank you, finally I fix this problem. I have unknown number since I purchase N4 and get micro SIM card. :good:
[Galaxy S III Themes and Apps] bakkerthehacker:
Confirmed working on my Nexus 4 with a WIND sim card. Please update the first post with the latest version, I was about to give up after trying the first version. :good:
[Galaxy S III Themes and Apps] OXINARF:
Great that it worked.

The last version is in the first post, I guess you missed where it says "Download" ;)
[Galaxy S III Themes and Apps] Brito_tw:
Whats the use then... i didnt get it...
[Galaxy S III Themes and Apps] OXINARF:
Have you read the thread? I don't know how to explain it in a different way. Uses? Well, if you read the thread you found people telling for what they used it.
[Galaxy S III Themes and Apps] jug6ernaut:
Not sure if anyone else was having trouble with this, i was. Downloaded the source and fixed one bug which happens when the user of the applications sim card has no # at all. Marked as "UNKNOWN" in Settings/About/Status/Phone Number. This is why i wanted this app to add my number to my sim card. The fix was simple.

if(!phone.isEmpty() && !phone.trim().equals("")) {

to

if(phone!=null && !phone.isEmpty() && !phone.trim().equals("")) {

Awesome work by the developer, after this little change application worked perfectly. APK attached for anyone interested.
[Galaxy S III Themes and Apps] OXINARF:
You're right, it's not usual, but it can return null. I'll correct it tomorrow and then I'll ask you to remove your version.

As a side note, it's a little worrying to see comments like this in Android source: "get it each time because that process crashes a lot".
[Galaxy S III Themes and Apps] jug6ernaut:
Of course, just give the word and ill take it down.

:|, as big and as fast as android is grown its sadly not that surprising, but i agree it is worry-some. If i may what code/process are you referring to?
[Galaxy S III Themes and Apps] OXINARF:
I've updated first post with latest version so please remove your version. Thank you.

Well I want to search why it would return null and I found that comment: http://grepcode.com/file/repository.../android/telephony/TelephonyManager.java#1032
[Galaxy S III Themes and Apps] jug6ernaut:
wow, ive never seen so many comments talking of crashing...
[Galaxy S III Themes and Apps] OXINARF:
It's weird, I didn't expected something to crash a lot and that it isn't fixed. Android really needed a more open governance model.
[Galaxy S III Themes and Apps] altajer67:
not work ... mo think change i don't know why .. i am activate the mod in framework app and still same think

please help

galaxy s 2 ... rom : cm 10.1 4.2.2
[Galaxy S III Themes and Apps] OXINARF:
First of all, you need to try to write better English, I didn't understood half of what you said.

Second, you need to provide more info, how am I supposed to help without any info? At least you need to say what happens, but you should also provide /data/xposed/debug.log file.
[Galaxy S III Themes and Apps] Drakonas:
Just curious.. would the number on the SIM in any way have to do with the way ICS checks for voicemail?

My AT&T account has been cancelled. It is now non-existent. When trying to login to AT&T as normal or recover my password, I get the error, "Unknown account".

The problem is that my account had unread voicemails when it was cancelled.

So, it aggravates me that ICS and GB nag me about "unread voicemail" every time my phone boots, even though the account is dead. Even (re)installing a rom (after factory reset) doesn't fix it, which leads me to believe that the SIM card somehow registers that there is leftover voicemails. That or my Google account thinks there is.

It is impossible for me to reach my voice mailbox, because when I tap the notification, it dials the normal voicemail number, and the automated operator states, "Your phone number does not have an voice mailbox at this number."

So...I was hoping that either, A: This fix might help with this problem, or B: This fix proves that it is possible to write to the SIM card, and thus it is possible to overwrite the setting that voicemails exist.

If someone could alleviate that either of those possibilities are true, I would be very grateful.
[Galaxy S III Themes and Apps] OXINARF:
Well I'm sorry but I can't answer your question because I don't know. But why are you using a SIM card that is linked to a closed account? Why don't you just remove SIM card from the phone?
[Galaxy S III Themes and Apps] norml:
Working perfectly fine in my SGS4. My "phone number" is now 1-310-420-6969. :)
[Galaxy S III Themes and Apps] weirdsciencex:
Worked great for me. Using GiffGaff in the UK. They assign a number after you activate the SIM so my number always came up as unknown.

Now it shows properly :)

-----------------------

Copy: get 20GB free permanent cloud storage. For every person you get to sign-up earn another 5GB https://copy.com?r=m3asrR
[Galaxy S III Themes and Apps] alphaola:
Works on HTC one

Just to add my one cent, It works on HTC one. After transferring my old number to my contract number, I couldnt get my old number to show in about phone. Thanks to Sim Number Changer.

Dont worry I already used the thanks button.
[Galaxy S III Themes and Apps] master42:
Tested Xperia Ion

Works like a charm in my Xperia Ion LT28i (Telcel)! :cool:
[Galaxy S III Themes and Apps] thesoupthief:
Works perfectly on my Nexus 4 (stock JB 4.3)!

This "unknown number" problem has annoyed me for ages. Thanks very much

Congratulations - you are my hero for today :)
[Galaxy S III Themes and Apps] tizak13:
galaxy s3

im getting the java.io.ioexception:error running exec(). command error message please help

i have galaxy s3 4.1.2
[Galaxy S III Themes and Apps] OXINARF:
Where are you getting that error? Also see if there are errors in /data/xposed/debug.log
[Galaxy S III Themes and Apps] tizak13:
i get that error when i hit the install/update
[Galaxy S III Themes and Apps] OXINARF:
So your problem is installing Xposed framework. You should write about it in Xposed thread, I don't see what it can be, but maybe someone there can. Make sure you have followed all instructions written in Xposed thread.
[Galaxy S III Themes and Apps] tizak13:
ok im new to this where is the exposed thread, and instructions? thanks
[Galaxy S III Themes and Apps] 80000037:
I use this app with my galaxy grand duos, but it can only read sim slot 1. Could you please add the ability to detect 2nd sim slot on the next version?

Thanks.
[Galaxy S III Themes and Apps] OXINARF:
The reason it isn't done is because dual SIM isn't standard Android, so it can be done in different ways in different manufactures. Can't you change SIM card to slot 1, use app and then put it again in slot 2?
[Galaxy S III Themes and Apps] 80000037:
Yes i can, but it will be great if the app could do it :D

Since you originally developed this app for SGS3, at least you can add support for samsung duos devices? Because I believe Samsung implement the same method for its dual sim devices from the cheap Y Duos to the more expensive S4 Duos.

Thanks.
[Galaxy S III Themes and Apps] OXINARF:
I made this app to be used once and then uninstalled - so I don't want to work in it more than necessary and you will have less work changing SIM card from slot 2 to slot 1 than me having to code it to work with dual SIM.
[Galaxy S III Themes and Apps] 80000037:
Hahahaahaha, ok, u made ur point.

Thanks anyway, now i can edit sim number without having to depends on blackberry device.

Sent from Samsung GT-I9082
[Galaxy S III Themes and Apps] jforme:
worked like a charm on my s3

I have used MyPhoneNumber app in the past, the change never sticks after reboot. Thanks to this useful little app, I have my phone number permanent written to SIM and it displays in About section even after reboot. Thanks again. :good::highfive::D
[Galaxy S III Themes and Apps] viethungyp:
wow, this is really great app for android
[Galaxy S III Themes and Apps] jforme:
Not working after new ROM flashing

It looks like I spoke too soon, I flashed a new ROM and checked setting, My Phone number is unknown again, so as long as Xposed framework was still installed phone number was showing up. The changes made were not permanent after all. Can you please explain if it is supposed to work this way?
[Galaxy S III Themes and Apps] eKeith:
I put my SIM in my Pre3 and the 'new' number showed up...
[Galaxy S III Themes and Apps] jug6ernaut:
This is the same behavior i have experienced. I have to re-run the module on every rom flash.
[Galaxy S III Themes and Apps] OXINARF:
If you uninstall Xposed framework without flashing a ROM do you have the same problem? If not, then I guess it's a problem with your ROM, just test using that SIM in another phone and see if it has the number.
[Galaxy S III Themes and Apps] BuPe:
ThL W8

Thanks for this app. I have a Dual-SIM ThL W8 and my primary T-Mobile SIM never showed the number (it was unknown) while my secondary Telenor SIM showed its number properly. Thanks to your tool now I was able to replace unknown with the number on the T-Mobile SIM!
[Galaxy S III Themes and Apps] qqq11qqq11:
very! very! very! great app :good:

works well in galaxy s3

but other devices... OS Gingerbread 2.3 : don`t install...error :crying:

Gingerbread patch possible?...

Thanks for this app
[Galaxy S III Themes and Apps] jug6ernaut:
If i apply the fix, and then remove Xposed framework the fix is lost. So i guess not being written, just being overwritten on every boot. Could be wrong, but running official CM. I could try on a stock rom also. Could it possibly be a hardware limitation?
[Galaxy S III Themes and Apps] cheetah81:
What a precious app

Butt unfortunately not working on any network In Pak..

Thanks..
[Galaxy S III Themes and Apps] access9:
Been looking for this very thing for a long time. Works great, Thank you!
[Galaxy S III Themes and Apps] OXINARF:
Since Xposed doesn't work in 2.3, no, it isn't possible.

Check /data/xposed/degub.log file and see if it is being written in every reboot. My guess is that it is and probably is your network that is making that. You could try with stock ROM, although I don't think CM would be resetting SIM number.
[Galaxy S III Themes and Apps] jug6ernaut:
Yup your right, its rewritting the sim number every boot. I tried on a stock rom and it seemed to stick. Even after removing xposed. so it does seem that CM is actually wiping the SIM Number. Very weird.

Im going to try one last thing, dropping it in an iphone checking the number, writing the number, dropping back in my ZL. Will see...
[Galaxy S III Themes and Apps] jug6ernaut:
Ok, just wanted to confirm my issue is 100% NOT with this app. My current rom is inable to read sim card number...
[Galaxy S III Themes and Apps] OXINARF:
Yeah, I didn't remembered that version. I will think about making it available, but I will certainly give no support to it (so if don't work at first attempt don't expect more work from me). Also source code is available so anyone can do whatever they want.

Well, it's a good thing that it isn't a problem in the app, but it's really weird that your ROM has a problem like that - I wouldn't expect someone messing with something so low-level just to break it...
[Galaxy S III Themes and Apps] James62370:
Thanks again for this great Mod. I use Google Voice and by using this Mod I'm able to change my SIM carrier number to my Google Voice number. However I just recently found out if I do this, I'm not able to send or receive text messages with my actually carrier number any longer. After changing it back to my carrier number, I'm able to send/receive sms messages again. Not a huge issue, but thought I'd point that out to the users who are using this mod.

Thanks again.
[Galaxy S III Themes and Apps] OXINARF:
Well I made this app to put your carrier number in SIM and it seems you wouldn't have that problem - your SIM seems to need the right number there to work, which isn't common.
[Galaxy S III Themes and Apps] MaKTaiL:
I'm finally able to put a number on my SIM Card! Thanks for that!

Once I change it, do I have to keep the app or can I delete it?
[Galaxy S III Themes and Apps] ap1618:
EDIT:: NVM... Fixed!

------------------------------------------------------------------------------------------

I have a slight problem... I had this installed and changed my number etc.

So just now I changed ROMs and upgraded to 4.3.... factory reset and all. Now I'm stuck with the number I changed to!

Is there any way to change to my original number without having to install xposed framework on 4.3?? ( like edit build.prop or something?)

thank you!
[Galaxy S III Themes and Apps] zambeezi:
I've been stuck with the wrong number on my S4... not anymore!

Works perfect, thank you.
[Galaxy S III Themes and Apps] OXINARF:
You can delete it.
[Galaxy S III Themes and Apps] .NetRolller 3D:
A suggestion: Can you please add a check so that it doesn't rewrite the number if the IMSI is changed? I put a different SIM in my phone, and ended up accidentally rewriting the number on it.
[Galaxy S III Themes and Apps] OXINARF:
As I've said before I did this to my personal (one time) use. I won't waste my time adding things, especially when there are other (easy) solutions. For your problem you could disable the module inside Xposed Installer or even uninstall the whole app before changing SIMs and it won't do anything anymore.
[Galaxy S III Themes and Apps] AnTerNoZ:
Can confirm Motorola Defy CM10.2 change the Number on SIM!

I'm so glad that this app works!
[Galaxy S III Themes and Apps] hp420:
Ok, I have a question:

Tmobile won't let you change your phone number in voicemail settings so that Google Voice's VM service then sets as default if you try, it times out and switches back to your Tmobile phone number. If I use this and insert my Google Voice number, will this then allow me to use Google Voice VM with Tmobile service? I'd rather do that, honestly, since I just leave my phone in airplane mode and use sip calling. This means I use GV voicemail exclusively but can't have it set it default with my current setup.
[Galaxy S III Themes and Apps] OXINARF:
Honestly? I have no idea.
[Galaxy S III Themes and Apps] hp420:
I tried changing it, but I still get an error that the forwarding number can't be changed.
[Galaxy S III Themes and Apps] diegolopez10:
Excellent, thank you

Confirm it works on GS4, 4.2.2 stock ROM 's, works flawlessly, sticks after rebooting and even after removing module.

Thanks for your work, don't understand why carriers won't bother assigning numbers correctly.
[Galaxy S III Themes and Apps] brux4me:
will it change the IMEI number
[Galaxy S III Themes and Apps] OXINARF:
No, it won't.