[DEV] GSM phone calls on Nexus 7 3G

Search This thread

TinTin

Inactive Recognized Developer
Mar 12, 2003
275
17
Hamburg
mytd2.blogspot.com
Strange. I flashed it yesterday before sending you the link, and it boot up fine. I did use the Grouper CWM and removed the assert line from the updater-script, but I doubt that would keep it from booting...

I had to remove the assert line too, it was still in the version you sent me (else it wouldn't flash). I used grouper CWM 6.0.19

[Edit]
Reflashed with TWRP 2.3.1.2 but still not booting :\
 
Last edited:

Shinj1EVA

Member
Mar 4, 2008
45
43
I had to remove the assert line too, it was still in the version you sent me (else it wouldn't flash). I used grouper CWM 6.0.19

[Edit]
Reflashed with TWRP 2.3.1.2 but still not booting :\

No point.. I grabbed a SIM card. Mobile data does work, and Phone.apk and Mms.apk are built. Messaging does send/receive text messages, but that's already been confirmed. However, I have been unable to dial a phone number :(

Well at the very least, MMS isn't crashing the Texting app.. That's an improvement.
 
Last edited:
  • Like
Reactions: kRt_uK

kRt_uK

Senior Member
Apr 7, 2009
88
97
No point.. I grabbed a SIM card. Mobile data does work, and Phone.apk and Mms.apk are built. Messaging does send/receive text messages, but that's already been confirmed. However, I have been unable to dial a phone number :(

Well at the very least, MMS isn't crashing the Texting app.. That's an improvement.
MMS doesn't crash the app, but actually doesn't send MMS too, does it?
When you say, unable to dial a phone number, do you mean "unable to complete the call" or literally dial on the dial pad?
 

Shinj1EVA

Member
Mar 4, 2008
45
43
MMS doesn't crash the app, but actually doesn't send MMS too, does it?
When you say, unable to dial a phone number, do you mean "unable to complete the call" or literally dial on the dial pad?

Can't complete a call.. well still same choices as earlier with Mobile Data and Skype.
It seems to receive MMS okay, but doesn't want to send. Maybe I'm just being impatient. I'll write back if it does successfully send.

On another note, I noticed my build doesn't actually include android.hardware.telephony.gsm.xml. Any idea on where to look to enable it?

[Edit]
Correction, the MMS does send :)
 
Last edited:
  • Like
Reactions: kRt_uK

kRt_uK

Senior Member
Apr 7, 2009
88
97
Did you setup the mms proxy and mms port for your carrier at settings - mobile network - apns? Or it isn't needed?
-------------
Cool!!!
 
Last edited:

kRt_uK

Senior Member
Apr 7, 2009
88
97
Can't complete a call.. well still same choices as earlier with Mobile Data and Skype.
It seems to receive MMS okay, but doesn't want to send. Maybe I'm just being impatient. I'll write back if it does successfully send.

On another note, I noticed my build doesn't actually include android.hardware.telephony.gsm.xml. Any idea on where to look to enable it?

[Edit]
Correction, the MMS does send :)
Is this file you requested?
http://xdaforums.com/showthread.php?p=34233312
 
Last edited:
  • Like
Reactions: Shinj1EVA

Shinj1EVA

Member
Mar 4, 2008
45
43
One more thing to try, change the PRODUCT_CHARACTERISTICS in build.prop to not indicate tablet. It seems that Phone.apk and TelephonyProvider.apk depend on this, at least for labeling.

Code:
PRODUCT_CHARACTERISTICS := tablet, nosdcard
Code:
PRODUCT_CHARACTERISTICS := nosdcard

This is from packages/providers/TelephonyProvider/res/values/strings.xml
Code:
    <!-- Official label of the TelephonyProvider, as seen in the "Manage
         Applications" UI.  This is the version of the label for tablet
         devices, where the TelephonyProvider stores configuration info
         about the mobile data network. [CHAR LIMIT=40] -->
    <string name="app_label" product="tablet">Mobile Network Configuration</string>

    <!-- Official label of the TelephonyProvider, as seen in the "Manage
         Applications" UI.  The TelephonyProvider stores configuration
         info about the carrier and cell network, and also provides
         storage for SMS and MMS messages. [CHAR LIMIT=25] -->
    <string name="app_label" product="default">Phone/Messaging Storage</string>

So I think it builds differently based on the product characteristics. Can someone confirm this? Either way, I'm going to try a clean build with this in a bit.
 
  • Like
Reactions: punshkin and kRt_uK

Synman

Recognized Developer
Hate to state the obvious but we should be focusing on a base build first, as is, with the grouper drivers.

Flash and verify.

Add maguro (or other gsm driver)

Rebuild

Flash and verify.

Add build tweak

Flash and Verify.

That's the mode I'm in.

I know tilapia can take a grouper build as I've done it myself... You just lose gsm.

So at this rate I'll likely have something in a week :(

Sent from my Galaxy Nexus using Tapatalk 2
 
  • Like
Reactions: kRt_uK and punshkin

Shinj1EVA

Member
Mar 4, 2008
45
43
Hate to state the obvious but we should be focusing on a base build first, as is, with the grouper drivers.

The grouper drivers will be the same as the tilapia drivers, only one we're missing is the GSM driver. The hardware is identical otherwise. Did you try extracting the radio driver from the 4.2.1 system image? I have libxgold-ril.so in my CM directory and the GSM network is working fine. I just can't get Phone.apk to make any calls successfully at this point... but at least it says Phone instead of Mobile Data now.. small, pointless, cosmetic step.... I only replaced Phone.apk and TelephonyProvider.apk instead of flashing the whole build. Downloading and going to try to flash the whole system in a bit.. or tomorrow. The internet at this hotel is ridiculously slow.

To be honest, I have no working knowledge of AOSP. I just stated poking around with this a few days ago.
 

Synman

Recognized Developer
tilapia w/ grouper drivers builds but immediately segfaults on boot.

grouper /w grouper drivers builds and boots fine.

rebuilding grouper now with rild, base-telephony and tilapia init.rc

Will sideload libxgold-ril.so once I get a clean boot. Are there any other shared and/or static libraries, resources, etc anyone can think of I might need to get radio to light up?
 

Synman

Recognized Developer
time to make the donuts (real job)... will pick this back up tonight.

Have full telephony and mms ... boots like a dream up until the point ConnectivityStatus changes. Looks like a kernel panic and reboot. put grouper in airplane mode and it stays up. looks like i'm missing something with ril

Made some build.prop changes, etc... doing another full build now

Code:
12-05 12:11:05.263: E/AndroidRuntime(23090): *** FATAL EXCEPTION IN SYSTEM PROCESS: NetworkPolicy
12-05 12:11:05.263: E/AndroidRuntime(23090): java.lang.RuntimeException: Error receiving broadcast Intent { act=android.net.conn.CONNECTIVITY_CHANGE_IMMEDIATE flg=0x8000010 (has extras) } in com.android.server.net.NetworkPolicyManagerService$12@426b7308
12-05 12:11:05.263: E/AndroidRuntime(23090): 	at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:768)
12-05 12:11:05.263: E/AndroidRuntime(23090): 	at android.os.Handler.handleCallback(Handler.java:725)
12-05 12:11:05.263: E/AndroidRuntime(23090): 	at android.os.Handler.dispatchMessage(Handler.java:92)
12-05 12:11:05.263: E/AndroidRuntime(23090): 	at android.os.Looper.loop(Looper.java:137)
12-05 12:11:05.263: E/AndroidRuntime(23090): 	at android.os.HandlerThread.run(HandlerThread.java:60)
12-05 12:11:05.263: E/AndroidRuntime(23090): Caused by: java.lang.ArrayIndexOutOfBoundsException: length=12; index=-1
12-05 12:11:05.263: E/AndroidRuntime(23090): 	at android.text.format.Time.getActualMaximum(Time.java:239)
12-05 12:11:05.263: E/AndroidRuntime(23090): 	at android.net.NetworkPolicyManager.snapToCycleDay(NetworkPolicyManager.java:222)
12-05 12:11:05.263: E/AndroidRuntime(23090): 	at android.net.NetworkPolicyManager.computeLastCycleBoundary(NetworkPolicyManager.java:179)
12-05 12:11:05.263: E/AndroidRuntime(23090): 	at com.android.server.net.NetworkPolicyManagerService.updateNetworkRulesLocked(NetworkPolicyManagerService.java:1031)
12-05 12:11:05.263: E/AndroidRuntime(23090): 	at com.android.server.net.NetworkPolicyManagerService.addNetworkPolicyLocked(NetworkPolicyManagerService.java:1461)
12-05 12:11:05.263: E/AndroidRuntime(23090): 	at com.android.server.net.NetworkPolicyManagerService.ensureActiveMobilePolicyLocked(NetworkPolicyManagerService.java:1139)
12-05 12:11:05.263: E/AndroidRuntime(23090): 	at com.android.server.net.NetworkPolicyManagerService.access$1500(NetworkPolicyManagerService.java:170)
12-05 12:11:05.263: E/AndroidRuntime(23090): 	at com.android.server.net.NetworkPolicyManagerService$12.onReceive(NetworkPolicyManagerService.java:901)
12-05 12:11:05.263: E/AndroidRuntime(23090): 	at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:758)
12-05 12:11:05.263: E/AndroidRuntime(23090): 	... 4 more
 

TinTin

Inactive Recognized Developer
Mar 12, 2003
275
17
Hamburg
mytd2.blogspot.com
Synman,

concerning the networkpolicy have a look at AndroidManifest.xml, check if the proper permissions for telephony, sms etc. are in there, maybe compare with Maguro or Mako.
 

Synman

Recognized Developer
shutdown data and am able to maintain a gsm only connection.

outbound voice call still fails:

12-05 16:13:06.177: D/CallNotifier(19800): onDisconnect: cause = ERROR_UNSPECIFIED, incoming = false, date = 1354741985803

Will have to look into NetworkPolicy a bit deeper. The error above is being thrown because the N73G is passing in a null date to the whole data metering service for setting its time window.

Also need to look at network capabilities a bit as I'm getting some "back door" info that indicates I may be missing some carrier specific data.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 46
    BEFORE YOU POST HERE - Keep in mind this is now a DEV thread and only those with a glimpse of DEV knowledge should be posting.
    There is other thread with the same subject open to everybody discuss it.

    Please, this thread isn't related to VOIP, SIP calls or Tethering and
    It's only to 3G version of Nexus 7.


    What do you think is the possibility of us getting this function guys, even if its not officially supported.

    I've seen it built in on the 7" samsung galaxy tab 2.

    http://www.youtube.com/watch?v=wZ9RN...t=HL1351349133

    At the moment we know:

    1- The chipset Intel (Infineon) XMM6260 is built-in on Nexus 7 3G (the same chipset is in that rather long list of phones). It means no hardware limitations.

    http://xdaforums.com/showthread.php?p=34386544&highlight=6260#post34386544
    http://pdadb.net/index.php?m=specs&i...exus_7_3g_32gb
    http://xdaforums.com/show....php?t=1483053

    it also the same controller is in the following devices

    - Lava XOLO X900 [Phone]
    - Lenovo K800 [Tablet/Pad]
    - LG-P920 (LG ?) [Phone]
    - LG-P925 (LG Optimus 3D?) [Phone]

    - Huawei E369 (3G Hi-Universe) [USB 3G Modem]
    - Huawei MU733/MU739 [PC/CE Module]
    - Samsung Galaxy Nexus (I9200) [Phone]

    2- SMS texting works perfectely with the native mms.apk but MMS messages crash the app (missed mms APN + framework parameters?)
    http://xdaforums.com/showthread.php?t=1998702&page=4

    3- Modified framework-res.apk (by modifying bools.xml entry to name="config_voice_capable">true) shows up the native dialer (phone.apk) on the UI
    JB 4.2 http://xdaforums.com/showthread.php?t=1958686&page=12
    JB 4.2.1 http://xdaforums.com/showpost.php?p=34736932&postcount=314

    4- When placing calls trough the native dialer (phone.apk) with Skype app installed, it shows up a white menu asking "Do you want to complete this action using..." the options are "Mobile data" (w/ phone.apk blue icon) or "Skype" (w/ skype icon) and "Always" or "Just Once" (perhaps there is missing a "Phone" profile (or APN) as an option too)

    5- If Skype is chosen, the call is complete and everything goes well, but if "Mobile data" is chosen, we get a single sound (bip) and the call is not complete.

    6- Changing the DPI to 320 in build.prop file allow us to add a SIP account (SIP calls using native dialer is now possible), DPI could be restored after SIP account settings done.
    http://xdaforums.com/showthread.php?p=34752693&highlight=320#post34752693

    Detailed informations come from the thread in XDA developers at:
    http://xdaforums.com/showthread.php?t=1958686

    --------------------------------------------------------
    UPDATE 5th Dec 2012 by Synman

    ok, I hacked NetworkPolicyManager and am no longer crashing. Network time appears to be non-functional for the time-being. Network status is a little wonky too ... even though I have a good network signal the network icon never switches from gray to blue.
    MMS send/receive is fully functional (with the exception of screwed up timestamps)

    Pulled down master AOSP branch
    Pulled down grouper binaries

    working with grouper device

    Modified device.mk
    - use init.tilapia.rc
    - use tilapia overlay
    - remove SimpleSMS
    - remove ro.carrier=wifi_only

    Modified full-grouper.mk
    - ref full_base_telephony in place of full_base
    - added full apns

    Modified device-common.mk
    - added gsm permission

    system.prop
    replaced ref to libril-icera with libxgold

    tilapia overlay
    - removed single apn rules
    - set voice-enabled
    - added mms values

    NetworkPolicyManager
    - removed call to time.getMaxPeriod
    23
    Hallo! Bin über meinen Beruf in die tegra3 Struktur geraten und bin einer Lösung für Telefonanrufe sehr nahe! google hat eine Sperre zum Anmelden in die Zellen der Mobilfunkbetreiber gesetzt.
    Ich kann bis jetzt Anrufe im Vorwahlbereich meines Standortes führen (nur Festnetz), nur noch keine Anrufe erhalten oder zu Mobilnummern führen.

    Ich muß leider erstmal prüfen ob ich hier durch meinen Arbeitgeber oder anderen Firmen Probleme bekomme und hoffe bis Weihnachten meinen jetzigen Lösungsansatz mit Euch teilen zu können!?

    Rough Translation:
    Hello! Here at my job I work with tegra3 and I am very close to finding a solution to making calls. Google has a lock to log into the cells of the mobile operators.
    My progress so far: I can make outgoing calls to numbers with the same area code (landline only), but not receive incoming calls from mobile numbers (Possibly same area code only).

    I have to make sure I'm not breaking any NDAs with my company before I can post this half-working solution.

    Thanks meter is on the left :)
    19
    sorry, its german

    Hallo! Bin über meinen Beruf in die tegra3 Struktur geraten und bin einer Lösung für Telefonanrufe sehr nahe! google hat eine Sperre zum Anmelden in die Zellen der Mobilfunkbetreiber gesetzt.
    Ich kann bis jetzt Anrufe im Vorwahlbereich meines Standortes führen (nur Festnetz), nur noch keine Anrufe erhalten oder zu Mobilnummern führen.

    Ich muß leider erstmal prüfen ob ich hier durch meinen Arbeitgeber oder anderen Firmen Probleme bekomme und hoffe bis Weihnachten meinen jetzigen Lösungsansatz mit Euch teilen zu können!?
    16
    I'm done with framework hacks for a framework intentionally gimped.

    We are close!

    Sent from my Galaxy Nexus using Tapatalk 2
    12
    Pulled down master AOSP branch
    Pulled down grouper binaries

    working with grouper device

    Modified device.mk
    - use init.tilapia.rc
    - use tilapia overlay
    - remove SimpleSMS
    - remove ro.carrier=wifi_only

    Modified full-grouper.mk
    - ref full_base_telephony in place of full_base
    - added full apns

    Modified device-common.mk
    - added gsm permission

    system.prop
    replaced ref to libril-icera with libxgold

    tilapia overlay
    - removed single apn rules
    - set voice-enabled
    - added mms values

    NetworkPolicyManager
    - removed call to time.getMaxPeriod