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
  #591 (permalink)  
Old 12-07-2011, 12:22 PM
kylanschilling's Avatar
N00b
Offline
Pocket PC: rhod500
Carrier: rogers
 
Join Date: Jun 2011
Posts: 25
Reputation: 5
kylanschilling is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (1.2.3)

WOOOHOOO

SERVICE!

just the change in build.prop did it along with the libhtc file. on first boot connected to my carrier and i have service
Reply With Quote
  #592 (permalink)  
Old 12-07-2011, 12:25 PM
kylanschilling's Avatar
N00b
Offline
Pocket PC: rhod500
Carrier: rogers
 
Join Date: Jun 2011
Posts: 25
Reputation: 5
kylanschilling is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (1.2.3)

i can still switch to cdma service also if it matters. i dont have cdma service but its still tied to my old carrier and i get the message saying its not active

should i try the libhtc without a change to my build.prob to see if that matters?
Reply With Quote
  #593 (permalink)  
Old 12-07-2011, 12:35 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: [TESTING] - NAND OMGB (1.2.3)

Quote:
Originally Posted by kylanschilling View Post
kk doing so now.

my phone can only do 2g im missing the 3g band. should use use telephony #1?
I am not sure, you can use any value except 4, I define 4 to CDMA service.

Last edited by muziling; 12-07-2011 at 12:38 PM.
Reply With Quote
  #594 (permalink)  
Old 12-07-2011, 12:37 PM
kylanschilling's Avatar
N00b
Offline
Pocket PC: rhod500
Carrier: rogers
 
Join Date: Jun 2011
Posts: 25
Reputation: 5
kylanschilling is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (1.2.3)

Quote:
Originally Posted by muziling View Post
I am not sure, you can use any value except 4, I definite 4 to CDMA service.
will know right now its doing first boot
Reply With Quote
  #595 (permalink)  
Old 12-07-2011, 12:42 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 (1.2.3)

Quote:
Originally Posted by vzihome View Post
No go on calibration still off...i have 2 rhod400 same issues with same setup...

Sent from my Touch Pro 2 using Tapatalk
Hmm, this is odd. You are not the first person who reported this.

When you boot into the try color screen boot loader on the rhod. Write down the TP MFG data. We recycle those numbers.

Now adb shell into android and do a cat /data/ts_calibration (assuming you didnt change it). Those numbers should so up. Now, the order is different but the numbers should be the same.
__________________
Reply With Quote
  #596 (permalink)  
Old 12-07-2011, 12:48 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 (1.2.3)

Quote:
Originally Posted by muziling View Post
I am not sure, you can use any value except 4, I define 4 to CDMA service.
thanks for taking the initiative here muz. .. now lets make you famous and make a patch. You know how to ? or at least what you want to change ?
Reply With Quote
  #597 (permalink)  
Old 12-07-2011, 12:51 PM
kylanschilling's Avatar
N00b
Offline
Pocket PC: rhod500
Carrier: rogers
 
Join Date: Jun 2011
Posts: 25
Reputation: 5
kylanschilling is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (1.2.3)

as the late great tony montana said:

"ok, im reloaded"



task 29 and redid it without touching build.prob. only added libhtc file and on first boot it went to my gsm service automatically.

now i cant test data tho. i dont have a data plan right now.
Reply With Quote
  #598 (permalink)  
Old 12-07-2011, 12:57 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: [TESTING] - NAND OMGB (1.2.3)

Quote:
Originally Posted by [ACL] View Post
thanks for taking the initiative here muz. .. now lets make you famous and make a patch. You know how to ? or at least what you want to change ? =D>
The code I modified, and I am not sure which number of ro.telephony.default_network is for CDMA service, which for GSM/WCDMA
Code:
#if 0
    fd=open("/sys/class/htc_hw/radio", O_RDONLY);
    read(fd, buffer, 32);
    close(fd);//muziling
    if(strncmp(buffer, "GSM",3)==0) {
        phone_has = MODE_GSM;
        phone_is = MODE_GSM;
        LOGI("RIL_Init found GSM hardware");
    } else {
        phone_has = MODE_CDMA;
        phone_is = MODE_CDMA;
        LOGI("RIL_Init found CDMA hardware");
    }
#endif
  memset(buffer, 0, sizeof(buffer));
  property_get("ro.telephony.default_network", buffer, "4");
    if(strcmp(buffer, "4")==0) {
        phone_has = MODE_CDMA;
        phone_is = MODE_CDMA;
        LOGI("RIL_Init found CDMA hardware");
    } else {
        phone_has = MODE_GSM;
        phone_is = MODE_GSM;
        LOGI("RIL_Init found GSM hardware");
    }

Last edited by muziling; 12-07-2011 at 12:59 PM.
Reply With Quote
This post has been thanked 1 times.
  #599 (permalink)  
Old 12-07-2011, 01:05 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 (1.2.3)

Quote:
Originally Posted by muziling View Post
The code I modified, and I am not sure which number of ro.telephony.default_network is for CDMA service, which for GSM/WCDMA
Code:
#if 0
    fd=open("/sys/class/htc_hw/radio", O_RDONLY);
    read(fd, buffer, 32);
    close(fd);//muziling
    if(strncmp(buffer, "GSM",3)==0) {
        phone_has = MODE_GSM;
        phone_is = MODE_GSM;
        LOGI("RIL_Init found GSM hardware");
    } else {
        phone_has = MODE_CDMA;
        phone_is = MODE_CDMA;
        LOGI("RIL_Init found CDMA hardware");
    }
#endif
  memset(buffer, 0, sizeof(buffer));
  property_get("ro.telephony.default_network", buffer, "4");
    if(strcmp(buffer, "4")==0) {
        phone_has = MODE_CDMA;
        phone_is = MODE_CDMA;
        LOGI("RIL_Init found CDMA hardware");
    } else {
        phone_has = MODE_GSM;
        phone_is = MODE_GSM;
        LOGI("RIL_Init found GSM hardware");
    }
This is a good start, but lets take this a step further. Since rhod is the only thing on nand right now we dont need to work about raph and other world phones. We can simply read the variant type and make our decisions based from that. So instead of checking if cdma/gsm, lets check the model number and assign based on that.

so here is some pseudo
if (variant = 400/500) {
phone_is = MODE_CDMA
phone_has = MODE_GSM <--- we let ril know we have gsm phone too
} else {
phone_is = MODE_GSM
phone_has = MODE_GSM
}

Either way, good work. Now to make it all automated
Reply With Quote
  #600 (permalink)  
Old 12-07-2011, 01:19 PM
kylanschilling's Avatar
N00b
Offline
Pocket PC: rhod500
Carrier: rogers
 
Join Date: Jun 2011
Posts: 25
Reputation: 5
kylanschilling is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (1.2.3)

Quote:
Originally Posted by kylanschilling View Post
will know right now its doing first boot
alright now that i can actually use the phone and test it im noticing im not getting debugging mode for usb

is this dependant on my PC to show up on the phone as in debugging mode? i had reinstalled windows a bit ago but adb seems to be working for me. i can flash and everything no problem

reason im asking is im trying to run logcat to see why my market is crashing. it loads for like 5 seconds or so then i get a force close window and my adb cant see it when androids loaded
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 04:14 PM.


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