PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   Android On TP2 (http://forum.ppcgeeks.com/forumdisplay.php?f=179)
-   -   How to set CDMA APNs with new more stable ril (http://forum.ppcgeeks.com/showthread.php?t=142511)

rpierce99 04-06-2011 05:40 PM

Re: How to set CDMA APNs with new more stable ril
 
Quote:

Originally Posted by ndno (Post 2080806)
Thanks arrrghhh. I guess the /system/lib one is for gingerbread only then. I will use the build.prop method; I don't want to permanently change anything on the data.img in case I want to back out the mods.

Sent from my FRX06-ized TP2

The build.prop method only works for new data.img because the setting gets copied into the db on the first boot and then used from the db from that point on.

highlandsun 04-06-2011 05:48 PM

Re: How to set CDMA APNs with new more stable ril
 
Quote:

Originally Posted by ndno (Post 2080791)
highlandsun,

For froyo, your instructions said to mount it to /lib/froyo/libhtcgeneric-ril.so but I also see there exists /system/lib/libhtcgeneric-ril.so on the froyo build; is that correct or do we need to mount both? Yes, I did see your instructions to mount it to /system/lib/libhtcgeneric-ril.so for Gingerbread; I just wanted to make sure; I'm using FRX06.

Currently, I'm mounting it to /lib/froyo/libhtcgeneric-ril.so per your instructions. I didn't do the steps in your 2nd post for CDMA and it still works fine.

The froyo init.rc always explicitly references /lib/froyo, therefore so must you. The gingerbread init.rc doesn't do that.

If these steps weren't correct, someone would have mentioned it long before now and they would have been fixed.

In real CDMA mode you'll actually receive MMSs that are sent to you. In fake GSM mode (the default) those MMSs will be lost in the ether.

ndno 04-06-2011 06:11 PM

1 Attachment(s)
Quote:

Originally Posted by rpierce99 (Post 2080873)
The build.prop method only works for new data.img because the setting gets copied into the db on the first boot and then used from the db from that point on.

Ok, thanks. I'll just back up the db file, apply the sqlite command then; if I need to go back I have my backup db file.

Sent from my FRX06-ized TP2

EDIT: I followed the instructions and use the sqlite3 command to update the database to put it in CDMA mode; rebooted and now I'm stuck in "ROAMING MODE"; I get that triangle icon (roaming) on the taskbar; I can still use data but I can't make a phone call. Anything else I need to do? Attached is the log from logcat -b radio.

EDIT2: OK, I can call now but I'm still in roaming mode :scratch:. However, I can't add an APN as specified in the first post. The "Mobile network settings" look different than what I usually see:

Quote:

Data enabled (checked)
Data roaming (checked)
System select-> Automatic (other choice is Home only)
There's no option to add an APN; I just get the menu above.

Edit3: Enabling data kills my voice comm. Oh well, gonna go back to the current RIL; this is a little complicated to do with really digging around and probably knowing how do some build.

Boominsvx 04-06-2011 09:43 PM

Re: How to set CDMA APNs with new more stable ril
 
Ok, thanks. I'll just back up the db file, apply the sqlite command then; if I need to go back I have my backup db file.

Sent from my FRX06-ized TP2

EDIT: I followed the instructions and use the sqlite3 command to update the database to put it in CDMA mode; rebooted and now I'm stuck in "ROAMING MODE"; I get that triangle icon (roaming) on the taskbar; I can still use data but I can't make a phone call. Anything else I need to do? Attached is the log from logcat -b radio.

This is due to missing information in your ERI.xml file located in /data. I used the one from THIS post.

EDIT2: OK, I can call now but I'm still in roaming mode :scratch:. However, I can't add an APN as specified in the first post. The "Mobile network settings" look different than what I usually see:



There's no option to add an APN; I just get the menu above.

Android doesn't seem to like the new CDMA mode, but as I recall, most of the sprint Android phones I've seen use ##DATA## to enter APN's and server addresses. I guess I don't know how we differ from them, but just throwing it out there.

Edit3: Enabling data kills my voice comm. Oh well, gonna go back to the current RIL; this is a little complicated to do with really digging around and probably knowing how do some build.

That sucks! \\:D/

ndno 04-06-2011 09:48 PM

Re: How to set CDMA APNs with new more stable ril
 
Quote:

Originally Posted by Boominsvx (Post 2081034)
This is due to missing information in your ERI.xml file located in /data. I used the one from THIS post.

Android doesn't seem to like the new CDMA mode, but as I recall, most of the sprint Android phones I've seen use ##DATA## to enter APN's and server addresses. I guess I don't know how we differ from them, but just throwing it out there.

Thanks, I'll give it another try with the ERI.xml you pointed to.

Boominsvx 04-06-2011 10:04 PM

Re: How to set CDMA APNs with new more stable ril
 
1 Attachment(s)
You can try this one for sprint if you'd like. It worked for me.

ndno 04-06-2011 10:35 PM

Quote:

Originally Posted by Boominsvx (Post 2081043)
You can try this one for sprint if you'd like. It worked for me.

Thanks, I'll give it a try later tonight.

Sent from my FRX06-ized TP2

highlandsun 04-06-2011 11:25 PM

Re: How to set CDMA APNs with new more stable ril
 
Quote:

Originally Posted by ndno (Post 2080884)
Ok, thanks. I'll just back up the db file, apply the sqlite command then; if I need to go back I have my backup db file.

I guess that works. All you need to do is set the value back to '0'...

Quote:

EDIT2: OK, I can call now but I'm still in roaming mode :scratch:. However, I can't add an APN as specified in the first post. The "Mobile network settings" look different than what I usually see:

There's no option to add an APN; I just get the menu above.
I've written a patch for the Phone.apk that will enable the APN menu in CDMA mode, but stinebd hasn't picked it up yet. For now you'll just have to switch back to GSM mode to add the APN. You need to have the MCC/MNC of your operator, along with any other relevant info needed to make a data connection (username, password...). For most CDMA operators you don't actually need any info, since the phone number is always #777 and most of them don't require username/password authentication.

For future reference: in fake GSM mode, the ril reports a hardcoded operator ID of 310995 to the phone. The default apn_conf.xml always has an APN defined for this ID, with #777 as the number. In real CDMA mode, you should probably add an APN with your own operator ID, but again, in most cases it won't make a difference.

Boominsvx 04-07-2011 09:41 AM

Re: How to set CDMA APNs with new more stable ril
 
Question, What about apn backup restore as a temporary fix?

arrrghhh 04-07-2011 11:26 AM

Re: How to set CDMA APNs with new more stable ril
 
Quote:

Originally Posted by highlandsun (Post 2081093)
I've written a patch for the Phone.apk that will enable the APN menu in CDMA mode, but stinebd hasn't picked it up yet. For now you'll just have to switch back to GSM mode to add the APN. You need to have the MCC/MNC of your operator, along with any other relevant info needed to make a data connection (username, password...). For most CDMA operators you don't actually need any info, since the phone number is always #777 and most of them don't require username/password authentication.

For future reference: in fake GSM mode, the ril reports a hardcoded operator ID of 310995 to the phone. The default apn_conf.xml always has an APN defined for this ID, with #777 as the number. In real CDMA mode, you should probably add an APN with your own operator ID, but again, in most cases it won't make a difference.

I've tested this patch, and it does indeed work. If anyone wants, I can throw up the system image - I need to talk to sir stine...

I should modify that other stuff (eri.xml, gps fix, etc) and integrate it as well while I'm at it. Perhaps tonight folks.


All times are GMT -4. The time now is 06:13 AM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0