tmassie / aospx

Automatically exported from code.google.com/p/aospx
0 stars 0 forks source link

"My phone number" is displayed as "Unknown", TelephonyManager.getLine1Number() returns null. #84

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Go to "System settings"->"About phone"->"Status" from main view menu.
2. Observe the value for "My phone number".

What is the expected output? What do you see instead?

Expected output is the phone number in the SIM card, actual output is "Unknown".

What version of aospX are you using? And when did the issue first start?

I have aospX-1.0.0-BR4-DHD installed, and didn't install any prior version. The 
problem has likely been there since I first installed it.

Have you performed a full wipe/factory reset? (If not, then do so)

Yes.

Inspire4G or DesireHD? (If Inspire, did you flash Inspiremod?)

The device was sold to me as an Inspire 4G, but always listed Desire HD in the 
"About phone" view, including now after the ROM install. I did flash the 
Inspiremod.

Please provide logcat ouput and any additional information below.
(logs required or I will discard the ticket.)

http://pastebin.com/MavGSkgz

I didn't notice this problem until I ran a test app I wrote at work on my 
phone. The test app uses TelephonyManager (with correct manifest permissions) 
to get the phone number, device ID, etc. The phone number is gets (from 
getLine1Number()) on this phone with this ROM is null. The same program works 
on other phones, and it works on another phone when I put my SIM card in it, 
showing that the SIM card does have the phone number in it. 

Original issue reported on code.google.com by kramsre...@gmail.com on 20 Jul 2012 at 8:22

GoogleCodeExporter commented 8 years ago
This is not an issue, with AOSP roms you have to set your phone number under 
Phone->Menu->Settings->Additional Settings. 

Original comment by robbe...@gmail.com on 20 Jul 2012 at 8:59