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
Register Community Search

Notices


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 02-18-2010, 09:24 AM
n3ur0's Avatar
Lurker
Offline
Pocket PC: HTC touch pro
Carrier: ORANGE
 
Join Date: Feb 2010
Posts: 1
Reputation: 5
n3ur0 is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
HTC Android - pin code - resolve problem

hello,,

bug is inside RIL - libhtcgeneric-ril-diamond.so

there is into source library:

*if* ( datalen == *sizeof*(*char**) ) *{*
asprintf(&cmd, "AT+CPIN=%s", strings[0]); <--------HERE IS PROBLEM
*}* *else* *if* ( datalen == 2**sizeof*(*char**) ) *{*
asprintf(&cmd, "AT+CPIN=%s,%s", strings[0], strings[1]); <---- AND HERE
*}* *else*
*goto* error;

must be:

if ( datalen == sizeof(char*) ) {
asprintf(&cmd, "AT+CPIN=\"%s\"", strings[0]);
} else if ( datalen == 2*sizeof(char*) ) {
asprintf(&cmd, "AT+CPIN=\"%s\",\"%s\"", strings[0], strings[1]);
} else
goto error;


if someona got source please recompile and try did work.
Reply With Quote
This post has been thanked 1 times.
 

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro


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 05:15 PM.


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