|
||||
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:
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:
Last edited by muziling; 10-17-2011 at 10:49 AM. |
|
||||
Re: [DEV] - OMGB - 1.2.2{2.3.5} - CDMA ONLY
Quote:
|
|
||||
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 |
|
||||
Re: [DEV] - OMGB - 1.2.2{2.3.5} - CDMA ONLY
Quote:
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. |
|
||||
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 |
|
||||
Re: [DEV] - OMGB - 1.2.2{2.3.5} - CDMA ONLY
Quote:
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) |
|
||||
Re: [DEV] - OMGB - 1.2.2{2.3.5} - CDMA ONLY
Quote:
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> |
|
||||
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. |
|
||||
Re: [DEV] - OMGB - 1.2.2{2.3.5} - CDMA ONLY
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. |
|
|
|