PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   Android On TP2 Development (http://forum.ppcgeeks.com/forumdisplay.php?f=319)
-   -   [TESTING] - NAND OMGB (1.2.3) (http://forum.ppcgeeks.com/showthread.php?t=147260)

kylanschilling 12-07-2011 12:22 PM

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

kylanschilling 12-07-2011 12:25 PM

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?

muziling 12-07-2011 12:35 PM

Re: [TESTING] - NAND OMGB (1.2.3)
 
Quote:

Originally Posted by kylanschilling (Post 2159153)
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.

kylanschilling 12-07-2011 12:37 PM

Re: [TESTING] - NAND OMGB (1.2.3)
 
Quote:

Originally Posted by muziling (Post 2159159)
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

[ACL] 12-07-2011 12:42 PM

Re: [TESTING] - NAND OMGB (1.2.3)
 
Quote:

Originally Posted by vzihome (Post 2159119)
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.

[ACL] 12-07-2011 12:48 PM

Re: [TESTING] - NAND OMGB (1.2.3)
 
Quote:

Originally Posted by muziling (Post 2159159)
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 ? =D>

kylanschilling 12-07-2011 12:51 PM

Re: [TESTING] - NAND OMGB (1.2.3)
 
as the late great tony montana said:

"ok, im reloaded"

:D

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.

muziling 12-07-2011 12:57 PM

Re: [TESTING] - NAND OMGB (1.2.3)
 
Quote:

Originally Posted by [ACL] (Post 2159164)
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");
    }


[ACL] 12-07-2011 01:05 PM

Re: [TESTING] - NAND OMGB (1.2.3)
 
Quote:

Originally Posted by muziling (Post 2159167)
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 :headbang:

kylanschilling 12-07-2011 01:19 PM

Re: [TESTING] - NAND OMGB (1.2.3)
 
Quote:

Originally Posted by kylanschilling (Post 2159161)
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


All times are GMT -4. The time now is 08:30 AM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0