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 > Android On TP2 Development
Register Community Search

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-18-2011, 01:35 AM
muziling's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC Touch Pro 2(RHOD400)
Carrier: CDMA
 
Join Date: Nov 2010
Posts: 175
Reputation: 55
muziling is becoming a great contributor
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (Latest version 1.2.3) - 400/500 Only

Quote:
Originally Posted by [ACL] View Post
i have no idea. I cant find it in hyc's original either, so maybe in android itself? not sure.
But this is wrong, I use CDMA, setprop set GSM value. maybe somewhere tell phone is GSM or lose notify to rild
Reply With Quote
  #2 (permalink)  
Old 11-18-2011, 02:04 AM
[ACL]'s Avatar
VIP Member
Offline
Pocket PC: tp2
Carrier: Sprint
Threadstarter
Location: NY
 
Join Date: Feb 2010
Posts: 1,534
Reputation: 6350
[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (Latest version 1.2.3) - 400/500 Only

Quote:
Originally Posted by muziling View Post
But this is wrong, I use CDMA, setprop set GSM value. maybe somewhere tell phone is GSM or lose notify to rild
ill cross that bridge when i get there..
__________________
Reply With Quote
  #3 (permalink)  
Old 11-18-2011, 03:01 AM
muziling's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC Touch Pro 2(RHOD400)
Carrier: CDMA
 
Join Date: Nov 2010
Posts: 175
Reputation: 55
muziling is becoming a great contributor
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (Latest version 1.2.3) - 400/500 Only

Quote:
Originally Posted by [ACL] View Post
ill cross that bridge when i get there..

In com\android\internal\telephony\cdma\CdmaServiceSta teTracker.java, there is one line:
Quote:
phone.setSystemProperty(TelephonyProperties.PROPER TY_OPERATOR_NUMERIC, operatorNumeric);
Quote:
/** Numeric name (MCC+MNC) of current registered operator.<p>
* Availability: when registered to a network. Result may be unreliable on
* CDMA networks.
*/
static final String PROPERTY_OPERATOR_NUMERIC = "gsm.operator.numeric";
So ro.cdma.home.operator.numeric need to be set by ril, but ril has no privilige

Finally, I know we need to hack file system/core/init/property_service.c, google forgot cdma items
I open xda init.android, found xda had added this item.
Quote:
property_perms[] = {
{ "net.rmnet0.", AID_RADIO, 0 },
{ "net.gprs.", AID_RADIO, 0 },
{ "net.ppp", AID_RADIO, 0 },
{ "ril.", AID_RADIO, 0 },
{ "gsm.", AID_RADIO, 0 },
{ "cdma.", AID_RADIO, 0 },
{ "persist.radio", AID_RADIO, 0 },
{ "net.dns", AID_RADIO, 0 },
{ "net.", AID_SYSTEM, 0 },
{ "dev.", AID_SYSTEM, 0 },
{ "runtime.", AID_SYSTEM, 0 },
{ "hw.", AID_SYSTEM, 0 },
{ "sys.", AID_SYSTEM, 0 },
{ "service.", AID_SYSTEM, 0 },
{ "wlan.", AID_SYSTEM, 0 },
{ "dhcp.", AID_SYSTEM, 0 },
{ "dhcp.", AID_DHCP, 0 },
{ "vpn.", AID_SYSTEM, 0 },
{ "vpn.", AID_VPN, 0 },
{ "debug.", AID_SHELL, 0 },
{ "log.", AID_SHELL, 0 },
{ "service.adb.root", AID_SHELL, 0 },
{ "persist.sys.", AID_SYSTEM, 0 },
{ "persist.service.", AID_SYSTEM, 0 },
{ "persist.security.", AID_SYSTEM, 0 },
{ NULL, 0, 0 }
};

Last edited by muziling; 11-18-2011 at 03:38 AM.
Reply With Quote
  #4 (permalink)  
Old 11-18-2011, 03:13 AM
[ACL]'s Avatar
VIP Member
Offline
Pocket PC: tp2
Carrier: Sprint
Threadstarter
Location: NY
 
Join Date: Feb 2010
Posts: 1,534
Reputation: 6350
[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (Latest version 1.2.3) - 400/500 Only

Quote:
Originally Posted by muziling View Post
In com\android\internal\telephony\cdma\CdmaServiceSta teTracker.java, there is one line:




So ro.cdma.home.operator.numeric need to be set by ril, but ril has no privilige, so property_set("net.gprs.local-ip", "0.0.0.0"); will fail too.
Nope, because ril has the permissions to modify net.grps. and net.ppp

system/core/init/property_service.c

{ "net.gprs.", AID_RADIO, 0 },
{ "net.ppp", AID_RADIO, 0 },
Reply With Quote
  #5 (permalink)  
Old 11-18-2011, 12:23 PM
[ACL]'s Avatar
VIP Member
Offline
Pocket PC: tp2
Carrier: Sprint
Threadstarter
Location: NY
 
Join Date: Feb 2010
Posts: 1,534
Reputation: 6350
[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (Latest version 1.2.3) - 400/500 Only

Quote:
Originally Posted by muziling View Post
In com\android\internal\telephony\cdma\CdmaServiceSta teTracker.java, there is one line:
So ro.cdma.home.operator.numeric need to be set by ril, but ril has no privilige

Finally, I know we need to hack file system/core/init/property_service.c, google forgot cdma items
I open xda init.android, found xda had added this item.
i'm gonna start ignoring you again if you dont get to the point and tell me what you are trying to do. i'm not hacking anything fyi.
Reply With Quote
Reply

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


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 02:06 AM.


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