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
  #111 (permalink)  
Old 10-16-2011, 09:21 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: [DEV] - OMGB - 1.2.2{2.3.5} - CDMA ONLY

Quote:
Originally Posted by muziling View Post
wake up issue still ,see log "10-17 08:16:18", I tried ppst, no options to set MMSC, proxy, port ,etc, in WM, use ##778#, no options too, this maybe store on system , not phone, I see my Hero200 CDMA, no APN menu but has telephony.db file.
##778# only works on oem builds that have custom apps to handle those entries. Usually EPST.apk or similar.

I'm not gonna give you the solution .... i think you need to rise to the challenge and fix this yourself .. i'm working on something else so i can't tend to this right now. Perhaps someone else wants to join you in the quest.

__________________
Reply With Quote
  #112 (permalink)  
Old 10-17-2011, 04:31 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: [DEV] - OMGB - 1.2.2{2.3.5} - CDMA ONLY

OK, finally, I found AT command to obtain 4 values in picture below:
Quote:
Tx:AT+HTC_DM=C826AA0400000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 0000000000000000000000000000000\r
Tx:AT+HTC_DM=C826A80400000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 0000000000000000000000000000000\r
Tx:AT+HTC_DM=C8268E0300000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 0000000000000000000000000000000\r
Tx:AT+HTC_DM=C8268A0300000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000 0000000000000000000000000000000\r
ACL, can you add to obtain HDR AN auth user/passwd, and pass this value to pppd
HTC_DM return format is: first 8bit same as send, 9th bit is length(hex) of value, next bits is hex of values

Can test AT commands with :http://forum.xda-developers.com/arch...t-1037075.html


auth bit under android is authenticated too, so ignore follow:
Quote:
er, maybe when system bootup, ril will did an authentication with carrier , use HDR AN user/pwd , then pppd don't need user/pwd anymore.
Use xda build, when data transfering, phone call in or sms in, data connection icon will change to 1X, so maybe xda never into EVDO which carrier need authentication(picture last item)
Attached Images
File Type: jpg untitled.jpg (8.7 KB, 20 views) Click for barcode!
File Type: jpg 2011 10 17_21 03 25_0000_111c.jpg (77.6 KB, 17 views) Click for barcode!

Last edited by muziling; 10-17-2011 at 10:49 AM.
Reply With Quote
  #113 (permalink)  
Old 10-17-2011, 11:17 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: [DEV] - OMGB - 1.2.2{2.3.5} - CDMA ONLY

Quote:
Originally Posted by muziling View Post
OK, finally, I found AT command to obtain 4 values in picture below:
ACL, can you add to obtain HDR AN auth user/passwd, and pass this value to pppd
HTC_DM return format is: first 8bit same as send, 9th bit is length(hex) of value, next bits is hex of values

Can test AT commands with :[TESTING] Fun with the radio [Archive] - xda-developers


auth bit under android is authenticated too, so ignore follow:
I dont understand what you are asking. Also i thought you already had fixed all of this.
Reply With Quote
  #114 (permalink)  
Old 10-17-2011, 11:45 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: [DEV] - OMGB - 1.2.2{2.3.5} - CDMA ONLY

PPPD establish connection need auth, auth user and password is store at phone, so we can use these AT commands to gather username and password, then be pppd run parameters.
I don't know this is right or not, not found CDMA document which intro pppd auth.

HERO200, MMS related with:
HOME ADDRESS
Primary HA Address
Second HA Address
Reply With Quote
  #115 (permalink)  
Old 10-17-2011, 02:51 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: [DEV] - OMGB - 1.2.2{2.3.5} - CDMA ONLY

Quote:
Originally Posted by muziling View Post
PPPD establish connection need auth, auth user and password is store at phone, so we can use these AT commands to gather username and password, then be pppd run parameters.
I don't know this is right or not, not found CDMA document which intro pppd auth.

HERO200, MMS related with:
HOME ADDRESS
Primary HA Address
Second HA Address

Ohh ic. Ok, if you can get the username and pass as a string. Then we can save that to a file and have pppd use the file for auth. Having the Ril pass down U/P will require framework changes which i can't make.

The old ril worked this way so you can go back and add the functionality.

htcgeneric-ril.c - hardware_xdandroid-ril in XDAndroid - Gitorious

Look at this line and how they write the data to /etc/ppp/pap-secrets

edit: ignore this.. Hyc is right i forgot /etc is RO. .. Only other hack i can think of is doing a setprop to write the u/p and replace pppd service with a script that will run with a password. samsung uses something called pppd-runner which is a script that has the U/P in there. crazy animals ..lol

Last edited by [ACL]; 10-17-2011 at 03:54 PM.
Reply With Quote
  #116 (permalink)  
Old 10-17-2011, 03:15 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)
The ril and pppd were changed in xdandroid to avoid needing to write to /etc. Are you mounting /etc read-write now?

Sent from my FRX06+ TP2 using Tapatalk
Reply With Quote
  #117 (permalink)  
Old 10-17-2011, 03:39 PM
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: [DEV] - OMGB - 1.2.2{2.3.5} - CDMA ONLY

Quote:
Originally Posted by highlandsun View Post
The ril and pppd were changed in xdandroid to avoid needing to write to /etc. Are you mounting /etc read-write now?

Sent from my FRX06+ TP2 using Tapatalk
No, it would appear not. /etc is symlinked to /system/etc, and /system is mounted RO.

Code:
# ls -la / |grep etc
ls -la / |grep etc
lrwxrwxrwx    1 root     root            11 Oct 17 08:25 etc -> /system/etc
Code:
# mount |grep system
mount |grep system
/dev/block/mtdblock3 on /system type yaffs2 (ro)
Reply With Quote
  #118 (permalink)  
Old 10-17-2011, 03:51 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: [DEV] - OMGB - 1.2.2{2.3.5} - CDMA ONLY

Quote:
Originally Posted by highlandsun View Post
The ril and pppd were changed in xdandroid to avoid needing to write to /etc. Are you mounting /etc read-write now?

Sent from my FRX06+ TP2 using Tapatalk

Yeah you are right. I also forgot in the past we saved all those scripts on /data so we can write.

I dunno. This is muzlings mountain that i'm confident he can solve. All i can do is cheer him on =D>
Reply With Quote
  #119 (permalink)  
Old 10-17-2011, 07:14 PM
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: [DEV] - OMGB - 1.2.2{2.3.5} - CDMA ONLY

I use old pppd file in last nand version and add some files which store user/pwd under /etc/ppp directory, files are pap-secrets,chap-secrets,options.smd,options.smd1, this can let data connection work

Now I am search for new pppd connection method, so I found AT command which can obtain auth user/pwd
In fact, native android use rmnet, not pppd,

Last edited by muziling; 10-17-2011 at 07:40 PM.
Reply With Quote
  #120 (permalink)  
Old 10-17-2011, 08:06 PM
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: [DEV] - OMGB - 1.2.2{2.3.5} - CDMA ONLY

Quote:
Originally Posted by muziling View Post
In fact, native android use rmnet, not pppd,
Yes, but we would need to have some serious rework done to get RMNET to work.

It only works on the HD2 in MAGLDR. It does NOT work on CWM. So there's no source to get that to work... Someone would have to reverse engineer MAGLDR to sort out how Cotulla made RMNET work.
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 01:12 PM.


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