PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2 > Android On TP2
Register Community Search

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 04-06-2011, 05:40 PM
rpierce99's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC Touch Pro 2 (RHOD 400)
Carrier: Sprint
 
Join Date: Jan 2011
Posts: 85
Reputation: 175
rpierce99 is keeping up the good workrpierce99 is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: How to set CDMA APNs with new more stable ril

Quote:
Originally Posted by ndno View Post
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.
__________________
HTC Touch Pro 2 - RHOD400 - Sprint - FRX07
Reply With Quote
  #12 (permalink)  
Old 04-06-2011, 05:48 PM
highlandsun's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC G1, TP2
Carrier: T-Mobile
 
Join Date: Jan 2011
Posts: 86
Reputation: 240
highlandsun is keeping up the good workhighlandsun is keeping up the good workhighlandsun is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: How to set CDMA APNs with new more stable ril

Quote:
Originally Posted by ndno View Post
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.
Reply With Quote
  #13 (permalink)  
Old 04-06-2011, 06:11 PM
ndno's Avatar
VIP Member
Offline
Pocket PC: Touch Pro 2
Carrier: Sprint
 
Join Date: Jan 2010
Posts: 421
Reputation: 3570
ndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quote:
Originally Posted by rpierce99 View Post
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 . 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.
Attached Files
File Type: zip logcat.zip (4.9 KB, 4 views) Click for barcode!

Last edited by ndno; 04-06-2011 at 09:14 PM.
Reply With Quote
  #14 (permalink)  
Old 04-06-2011, 09:43 PM
Boominsvx's Avatar
Regular 'Geeker
Offline
Pocket PC: Sprint Touch Pro 2
Carrier: Boost Mobile
Location: Taunton, MA
 
Join Date: Jan 2010
Posts: 284
Reputation: 1105
Boominsvx is halfway to VIP status based on repBoominsvx is halfway to VIP status based on repBoominsvx is halfway to VIP status based on repBoominsvx is halfway to VIP status based on repBoominsvx is halfway to VIP status based on repBoominsvx is halfway to VIP status based on repBoominsvx is halfway to VIP status based on repBoominsvx is halfway to VIP status based on repBoominsvx is halfway to VIP status based on rep
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via AIM to Boominsvx
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 . 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!
__________________
My thanks button is sleeping. Do not disturb.
Reply With Quote
This post has been thanked 1 times.
  #15 (permalink)  
Old 04-06-2011, 09:48 PM
ndno's Avatar
VIP Member
Offline
Pocket PC: Touch Pro 2
Carrier: Sprint
 
Join Date: Jan 2010
Posts: 421
Reputation: 3570
ndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: How to set CDMA APNs with new more stable ril

Quote:
Originally Posted by Boominsvx View Post
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.
Reply With Quote
  #16 (permalink)  
Old 04-06-2011, 10:04 PM
Boominsvx's Avatar
Regular 'Geeker
Offline
Pocket PC: Sprint Touch Pro 2
Carrier: Boost Mobile
Location: Taunton, MA
 
Join Date: Jan 2010
Posts: 284
Reputation: 1105
Boominsvx is halfway to VIP status based on repBoominsvx is halfway to VIP status based on repBoominsvx is halfway to VIP status based on repBoominsvx is halfway to VIP status based on repBoominsvx is halfway to VIP status based on repBoominsvx is halfway to VIP status based on repBoominsvx is halfway to VIP status based on repBoominsvx is halfway to VIP status based on repBoominsvx is halfway to VIP status based on rep
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via AIM to Boominsvx
Re: How to set CDMA APNs with new more stable ril

You can try this one for sprint if you'd like. It worked for me.
Attached Files
File Type: zip eri.zip (324 Bytes, 45 views) Click for barcode!
Reply With Quote
This post has been thanked 1 times.
  #17 (permalink)  
Old 04-06-2011, 10:35 PM
ndno's Avatar
VIP Member
Offline
Pocket PC: Touch Pro 2
Carrier: Sprint
 
Join Date: Jan 2010
Posts: 421
Reputation: 3570
ndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIPndno is still contributing even after becoming a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quote:
Originally Posted by Boominsvx View Post
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
Reply With Quote
  #18 (permalink)  
Old 04-06-2011, 11:25 PM
highlandsun's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC G1, TP2
Carrier: T-Mobile
 
Join Date: Jan 2011
Posts: 86
Reputation: 240
highlandsun is keeping up the good workhighlandsun is keeping up the good workhighlandsun is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: How to set CDMA APNs with new more stable ril

Quote:
Originally Posted by ndno View Post
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 . 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.
Reply With Quote
This post has been thanked 1 times.
  #19 (permalink)  
Old 04-07-2011, 09:41 AM
Boominsvx's Avatar
Regular 'Geeker
Offline
Pocket PC: Sprint Touch Pro 2
Carrier: Boost Mobile
Location: Taunton, MA
 
Join Date: Jan 2010
Posts: 284
Reputation: 1105
Boominsvx is halfway to VIP status based on repBoominsvx is halfway to VIP status based on repBoominsvx is halfway to VIP status based on repBoominsvx is halfway to VIP status based on repBoominsvx is halfway to VIP status based on repBoominsvx is halfway to VIP status based on repBoominsvx is halfway to VIP status based on repBoominsvx is halfway to VIP status based on repBoominsvx is halfway to VIP status based on rep
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via AIM to Boominsvx
Re: How to set CDMA APNs with new more stable ril

Question, What about apn backup restore as a temporary fix?
Reply With Quote
  #20 (permalink)  
Old 04-07-2011, 11:26 AM
arrrghhh's Avatar
Testing Extraordinaire
Offline
Pocket PC: HTC Touch Pro 2 (RHOD400)
Carrier: Sprint
 
Join Date: Mar 2007
Posts: 3,604
Reputation: 7360
arrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the community
Mentioned: 7 Post(s)
Tagged: 0 Thread(s)
Re: How to set CDMA APNs with new more stable ril

Quote:
Originally Posted by highlandsun View Post
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.
Reply With Quote
This post has been thanked 4 times.
Reply

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2 > Android On TP2


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 12:21 PM.


Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com