yashsingh1/xdaforums huggingface dataset:
[Touch Pro2, Tilt 2 Android Development] 95-civic:
This thread is for development related to the Google Android OS running on the CDMA version of the Touch Pro 2.

Special Thanks to all of the GSM developers for taking care of the hard stuff :P

Last Update Date: 2/27/2010 11:45 PM EST

Current Download Link: http://www.megaupload.com/?d=T0RSJ0AW

For those who still can't get wifi to load with the most recent upload please try the 2 suggestions below:

-Ensure wifi is started in WM prior to initiating haret

-Turn off security on your wireless connection

Instructions:

1) Delete existing android files (ensure data.img is deleted)

2) Extract files from zip onto root of SD card

Use this at your own risk. I doubt any harm will come to you or your phone, but if you get hit by a bus while loading android don't blame me.

Please see post #2 for zImage Downloads, FAQ, Detailed Status and Change Log
[Touch Pro2, Tilt 2 Android Development] docprego:
Just wanted to thank you for your effort, this is very exciting! Are you planning on following this all the way through until everything is functional and it can flashed on to the phone?
[Touch Pro2, Tilt 2 Android Development] torn8o:
I have a GSM phone I see your working on the end key mapping for cdma.

I did ask in the bounty thread about learning how to map and fix end key for tilt 2 gsm your compiled zimage wont work for my gsm phone with the fix will it?
[Touch Pro2, Tilt 2 Android Development] craiggiarc:
Looking forward to testing your work Civic, great job so far and looking forward to future updates.

Craig
[Touch Pro2, Tilt 2 Android Development] madocs:
Greatness

Way to go Civic, this is extremely exciting. I have been quite envious of the RAPH800 Android functionality (turned my RAPH800 into insurance for the RHOD400).

I have you bookmarked, will continue to test updated builds and report back.

On this one, nothing new to report on errors - no data, but I did connect to sprint network. I had called my VM before booting, but I had no mic or speaker, will try again.

Thanks and great job!
[Touch Pro2, Tilt 2 Android Development] proxhack:
Great Job

Hi Civic,

I just wanted to thank you for your work, flashed the rom last night, this is the best build thus far.
[Touch Pro2, Tilt 2 Android Development] Ludacrisvp:
I did try out your version of XDAndroid and it seems a bit more sluggish/buggy than ones I have used out of the Topaz/TD2 thread.

CDMA radio works for me in both versions.

Obviously No Data or SMS.

One good way to speed up the install on the slower SD cards is to put the card in a memory card reader on a PC and run windows defragmenter on the card.

This is after you have booted into android the first time so you have the 256MB data.img already generated. I personally noticed a speed/fluidity improvement on my 8gb Class 2 SD card (came with BB Storm), however your mileage may vary.
[Touch Pro2, Tilt 2 Android Development] mxxcon:
defragmenting works on regular HDD because if a file is spread across different sections of the disk, it takes time to move the head and read those parts of the disk.

defragmenting won't make any difference with solid state media because there are no moving parts and its access time is virtually 0. it doesn't matter if a block of a file is on sector 0 or on sector 308563434, solid state drives access them all with exactly the same speed.

defragmenting on solid state media is a snake oil recipe.
[Touch Pro2, Tilt 2 Android Development] klynch_gdd:
Shakes head, you do realize why this thread was started. Not to work on GSM, but for CDMA version. There are a TON of GSM android threads right now, but no real CDMA thread.

And 95-civic... THANK YOU!!!
[Touch Pro2, Tilt 2 Android Development] segadc:
Thanks been waiting for this kind of thread.:cool:

I loved using Android on my XV6800 but once I switch to TP2 I lost access to the marketplace (still waiting to see if someone can get wifi working). So I cannot wait to try this for TP2!
[Touch Pro2, Tilt 2 Android Development] drb115:
Just out of curiosity, what is your end goal? A fully functional flushable android rom (which would be great) or a fully functional harret?

---and I am more that willing to donate some cash for the final result
[Touch Pro2, Tilt 2 Android Development] torn8o:
I do realize this is a cdma thread you must have missed this statement

I did ask in the bounty thread about learning how to map and fix end key for tilt 2 gsm your compiled zimage wont work for my gsm phone with the fix will it?

I asked here because an option to help was offered in the prior posts in another thread.
[Touch Pro2, Tilt 2 Android Development] drb115:
Also, is it possible to get the gsensor working. I find pulling out the stylus to activate landscape to be somewhat annoying. Is that just a temporary thing, will we eventually get to use of the gsensor and the keyboard slide activating the landscape?
[Touch Pro2, Tilt 2 Android Development] CeLlgUy:
It's amazing how such great progress can be made and yet someone has to ask about the gsensor working. Baby steps man. Speakers and Mic are very important. Then data and SMS. Once the basic phone functions are there, I'm sure Civic or someone else will start attacking things like Gsensor. Sorry, not trying to be rude but focus on what's more important and don't worry about the smaller stuff. Kudos Civic. Well done.

On a side note, I also would like to know if you plan to take this all the way to the finished product with a flashable ROM. Either way, you can expect a donation in the next few weeks from me. (Christmas wiped me out!)
[Touch Pro2, Tilt 2 Android Development] morganlowe:
Thank you so much!! I love this phone, and I think android on it will blow the nexus one away. I cant stand on screen keyboards!! Keep up the good work and you will be getting my donations and many many thanks!!
[Touch Pro2, Tilt 2 Android Development] 95-civic:
new zImage Available

The most recent zImage can be found in post #2. Unzip the zImage to your SD root and over write existing file. Don't forget to delete the data.img file as well.

Not a huge change but I've fixed the key mapping. I've had less than an combined hour over the past 48 hours to get in front of my home computer due to long days at the office this week, next step is to tackle the speaker / mic issue.

Enjoy!
[Touch Pro2, Tilt 2 Android Development] 95-civic:
I don't own a GSM phone so I can't confirm. Try the most recent zImage in post #2, just remove the ".95-civic" from the end of the file and overwrite you existing zImage.

BTW the ".95-civic" will be removed in the next build. Obviously it's just a simple renaming of the file, but we'll call it .CDMATP2 or something along those lines.
[Touch Pro2, Tilt 2 Android Development] 95-civic:
Would you like me to put a project charter together? lol... j/k

For now I will continue with Harret, but ultimately we all would love to have a flashable rom to utilize the phone's internal memory. Since just above every other htc phone is ahead of us with their android ports, I'm hoping someone figures this part out by the time we catch up! :D
[Touch Pro2, Tilt 2 Android Development] 95-civic:
As mentioned in another reply this is low priority on the list, however if you could get everyone else in the group to agree that this is more important that the speaker / mic I'll gladly do this for you. :P
[Touch Pro2, Tilt 2 Android Development] cliffordtrue:
It is much slower on the first boot and sluggish right after boot up. After that is seems to respond at acceptable levels for me and many others. Beyond that the speed of your memory card could be a factor. Mine is a US Cellular unit, but it is identical hardware to the Sprint version.
[Touch Pro2, Tilt 2 Android Development] fr0st420:
The hero lags even and it's made for android. I think it our hardware that sucks.
[Touch Pro2, Tilt 2 Android Development] theelite:
the hardware isn't the problem. The vogue has significantly less power and it runs android fine. these images so far aren't totally utilizing our hardware fully such as having gpu acceleration like the vogue port does.
[Touch Pro2, Tilt 2 Android Development] ghost_deini:
heres how to take apart the system.sqsh file:

sudo unsquashfs system.sqsh

you'll need to install squashfs-tools from the package manager on ubuntu

im not concerned with speed atm, im focused on getting data to work
[Touch Pro2, Tilt 2 Android Development] unityjasont:
I really haven't paid heavy attention to the basis of Android, but those are linux/unix codes, is it linux based?
[Touch Pro2, Tilt 2 Android Development] TaurusBullba R.I.P.:
I'm going to stick this for now (as long as this thread gets regularly updated, of course) ;)

Good luck guys!
[Touch Pro2, Tilt 2 Android Development] [ACL]:
One thing i did notice is if you unsquash the system file and make big changes. Sometimes the tp2 will no longer boot and you are stuck in a loop. I guess it all depends on what changes you are making to the system file. Ive been merging the Hero system.sqfs with a custom one i made and once i put in all the framework files in place i break the boot.

The civic kernel is the most responsive kernel ive used so far. I just wish i could help getting the rest of the tp2 functions working. Kind of annoying to use the stylus to rotate the screen.
[Touch Pro2, Tilt 2 Android Development] klynch_gdd:
Oer Civic's post over at ppcgeeks, "I'm close to finishing up CDMA data" :eek:

This is incredible, I really wasn't expecting data to be available for a while.
[Touch Pro2, Tilt 2 Android Development] Jedi84luke:
SMS

The SMS works.. but it works Wierdly.. I sent a text out to my friend.. and he Said that I sent him the same text 11 times.... So the outgoing of SMS messages work ...I JJust never recieved any ... but all in all.. THIS IS THE BEST ANDROID OS SO far... GOOD FREAKING WORK Civic
[Touch Pro2, Tilt 2 Android Development] craiggiarc:
Can you provide a link, I didn't know that there was a separate thread!

Craig
[Touch Pro2, Tilt 2 Android Development] segadc:
Wow that would be awesome if we get data this week! :)
[Touch Pro2, Tilt 2 Android Development] Dishe:
The Vogue has less CPU power, true, but I think it is also better matched to the rest of the hardware- I mean, it has less than 1/4 of the pixels to draw on screen.

I don't think the Vogue port has any kind of GPU acceleration going on or anything- I think we're just asking the measly little graphics chip to work much harder!

I remember when they announced the Touch Pro, it had 4x the pixels as the Titan, but only a slightly faster CPU. I thought the video performance would lag, especially since the Titan had such lackluster performance to begin with.

The truth is, non-accelerated code like UltimateLaunch and or some legacy games/video players ran much slower on the VGA display. To make up for it, HTC used some hardware acceleration to code TouchFlo/Manilla, and make the whole experience seem snappier.

I don't think the Android builds we are playing with have any GPU accleration at all.

Imagine the Vogue port, but trying to draw 4 screens at once, and you might have performance similar to what we're seeing on this hardware. I wonder if it could actually get better- unless there is another Android device out there with a GPU like ours, I'm not so sure.

I do hope I'm wrong... because I find the lag very frustrating to use.

Yes, that was the whole shebang about Android a few years ago. Everyone was looking at the LiMo foundation to bring linux to mobile phones, and then Google dropped this on everyone. I thought everyone knew that?
[Touch Pro2, Tilt 2 Android Development] unityjasont:
Keep in mind Dishe, all of the touch pro 2 ports of android are still being worked on, and near as I can tell 95civic is going at this alone right now for our sprint phones. Programming takes time, especially when you have something like this that would largely be trial and error. Tracking down what does what. It's not the same as creating a rom for the phone, your taking software that was never written for this phone and making it work. Given how long the people have been working on the vogues port it's no wonder that it runs better. But given enough time and work I am sure that this one could run just as good if not better. The TP2 does have a faster proc and more memory. And if someone really takes the time to do it, im sure that someone can figure out how to make the gpu work on this. Especially being a linux base, and as this gains steam it should gain other users helping out.

As for the comment about linux, thank you for answering. Now that I think about it I do remember reading that, but I read so much phone news, and tech news and research so many different things, it's hard to keep them all straight.
[Touch Pro2, Tilt 2 Android Development] mknollman:
Wow, this looks great. If I had the programming and testing chops I would join in - would love to see this on VZW.
[Touch Pro2, Tilt 2 Android Development] stab244:
If I wanted GSM voice, should I use the GSM version of the Rhodium build or can I use the CDMA build?
[Touch Pro2, Tilt 2 Android Development] unstable357:
DONATED TO THE CAUSE.... Keep up the good work fellas.:)

O and ladies...
[Touch Pro2, Tilt 2 Android Development] ghost_deini:
anyone make a zImage using the kernel from the droid eris? it was just released by htc at: developer.htc.com/

this device uses the same msm7600 chipset as the cmda tp2 so I assume it should work better than a zImage made for a different one.

can anyone shine some light on this?

the RIL (radio link interface) civic talks about needed to be modified is in the system.sqsh file

or is this just part of it?

I made a couple zImages using the eris kernel but none booted, but i couldve easily mistyped or forgot something.

thats where I'm at, its 4 in the morning and I have to stop and do my homework.

edit:

make msm7600_defconfig ARCH=arm; make menuconfig

msm7600_defconfig is in the eris kernel, made another zImage using this command still no boot : (

going to bed now
[Touch Pro2, Tilt 2 Android Development] bullet2300:
This is very exciting! Keeping an eye on this one. Keep up the awesome work!
[Touch Pro2, Tilt 2 Android Development] bullet2300:
double post ftl
[Touch Pro2, Tilt 2 Android Development] theelite:
Dzo was able to enable the Hardware GPU for video acceleration on the vogue port (which was never fully utilized on Windows Mobile). Neocore the 3D benchmarking app for android gave some pretty good scores with the GPU enabled. It may be a different qualcomm chipset but I bet the graphics gpu is pretty similar. As far as WVGA being pretty intense for Android, I feel Android would make better use out of the graphics driver than Windows Mobile does, so I am hopeful.

From Dzo..

"there is an rpc call (clk_regime_sec_grp_rail_on) that turns the power on to the graphics processor. This is what I mean by enabling the GPU. I got the GPU working in android by calling this function in trstai_extension.dll and tracing what it did."
[Touch Pro2, Tilt 2 Android Development] Dishe:
I could be wrong about this, but I don't think hardware acceleration works like that.

Its not a switch that you just flick on or off. If there was no power going to the graphics processor, your screen would be blank. If I recall correctly from my computer architecture classes back in college, "Hardware Accelerated" basically means that the hardware has special commands and routines in place to handle common computational processes in less steps.

For example, "hardware accelerated" video can pump pixels to the screen faster by requiring less commands from the software, and therefore less CPU time. It has more to do with having the proper software (drivers, applications, etc) in place then simply turning power on to a particular circuit... I mean, if it worked the way you seem to be implying, why would such a circuit ever be off??

Perhaps Dzo found the software routine hidden in that .dll which included the device specific drivers, and found some way to make Android use it?

Again, I could be TOTALLY wrong with this, I'm just trying to understand...
[Touch Pro2, Tilt 2 Android Development] [ACL]:
Civics rootfs.img have the changes for the ril. The init.eclair.rc use the libhtc_ril.so instead of the libhtcgeneric-ril.so found in the other rootfs files. From what i can tell the system.sqsh so i dont think that matters.
[Touch Pro2, Tilt 2 Android Development] theelite:
Hey Dishe,

Yeah I don't think it is that simple either, but I do think it is doable. I think the openglES library libhgl.so needs to be loaded also. Of course if I actually knew how to do all of this, I would of done it already :)
[Touch Pro2, Tilt 2 Android Development] jojonana850:
Sorry to be a noob, but can someone please help...every time on boot on android after about 10 seconds I get error message "Failed to mount the sd card, cannot continue /bin/sh: can't access tty: job control turned off / # [ 7;412719] pc clk disable FIXME! disabling a clock that doesnt have an ena bit 2" what does it all mean... it won't boot it up all the way. Im on verizon touch pro 2 on juicy's rom. Anyone...

edit; if it makes any difference on a "dm" file that appears after attempting boot on sd card, the error begans at "[5.961975] ieee_crypt: registered algorithm 'NULL' pc _clk disable...clock that doesnt have ena bit 6..." Am I missing something
[Touch Pro2, Tilt 2 Android Development] Madzilla:
I was getting the same issue. You need to format the sd with this program.

http://www.sdcard.org/consumers/formatter/

after I formatted it with that, my computer says it isnt formatted but if you connect to the phone using active sync you can transfer the files to the sd that way. it should boot after that.
[Touch Pro2, Tilt 2 Android Development] unityjasont:
I wonder if the two can be combined? The Eris being a CDMA phone from the start, HTC hardware with similarities to our own. I would think that if nothing else there might be some coding time saved dissecting the two and cut and pasting things together.
[Touch Pro2, Tilt 2 Android Development] jojonana850:
thanks!! it worked!!!!
[Touch Pro2, Tilt 2 Android Development] julienrl:
I don't know much about all this (kind of just waiting with lots of anticipation for the ones who do get it to keep up the good work!), but I just read something about "XANDROID" which apparently enables hardware 3d acceleration in wm phones running android.
[Touch Pro2, Tilt 2 Android Development] Dishe:
Yeah, this GSM Xandroid used in this video seems rather smooth:

http://www.youtube.com/watch?v=-nymxSmjL7E
[Touch Pro2, Tilt 2 Android Development] mxxcon:
this is how fast/slow it normally runs.

there is no video acceleration coded in, especially in the old kernel he's using.

that video is a bit misleading because he sped it up in some place. notice that in some parts of that video stars fly faster than at the very beginning.
[Touch Pro2, Tilt 2 Android Development] [ACL]:
Are they identical hardware wise? ive never bothered to look it up. I might give that bad boy a try.

I know when the Hero sprint kernel was released some code was dissected out and committed to linux-msm. Probably same can happen here.
[Touch Pro2, Tilt 2 Android Development] ghost_deini:
they have the same msm7600 chip but the eris(disire) dose not have a gsm radio. (or maybe its there, just not enabled) this is werid b/c when you look at the docs from qualcomm the big feature if the msm7600 is the support for both radios. the msm7201a in the gsm tp2 is clocked higher and a little better specs, so i have no idea why they used the msm7600

I've been trying to make a working zImage out of the source released by htc but i think I'm missing something...

i realized there was no squashfs supported so i added that but i still cant get a zImage to boot.

Anyone know if zImages are bulid specific? like would the same zImage work on both a donut and eclair bulid?

I've been trying to combine the msm7600_defconfig (and assocated files) with the linux-msm but its not working out well. and the most current linux-msm asks ALL those damn questions during the making of the zImage.

Also does anyone know how to make rootfs.img?

is it even made or do you just mount the image and modify it?
[Touch Pro2, Tilt 2 Android Development] unityjasont:
ok, so I know absolutely nothing of what I am talking about here, so take it as you will, but could you try to combine that in with Civic's build?
[Touch Pro2, Tilt 2 Android Development] Rugby911:
I have the Sprint Touch Pro 2. I copied all the files in Civi-05's last build onto the root of my sd card.. then i ran the executabel.. but it stays in that linux screen for over 40min.. I know that cant be right. do i need to format the card or something? Just trying to do what you said you were able to do in you posting to Civic thats all.
[Touch Pro2, Tilt 2 Android Development] hurbin:
1. Format your sd card using : http:/ /www . sdcard . org /consumers /formatter

(it's not letting me post links because aparently my account has not been verified anyhow, you get the point :P)

2. Download an Android Package

3. Extract the Android RAR or ZIP

4. Copy the extracted files to the ROOT of your SD card

5. Open file explorer on your device

6. Open Haret.exe

7. Enjoy

First boot takes a while (~6mins), after that it should only take a couple of minutes. If for some reason it won't boot after sitting for a bit, reboot your device and try again.

When you launch Haret, are you at least getting the black linux console?

Is the capacity on your SD card at least 1gig? After Android extracts and creates a data store on your SD card it winds up being ~360MB. I've tried it with a 512MB card and it just refused to boot. Poped in a 2gb and it worked fine.

Hope this helps
[Touch Pro2, Tilt 2 Android Development] tonymira70:
Android Audio

95-civic you have done a fantstic thing by bring Android to the Touch Pro2 CDMA. Thank you. I am new to this so if I don't follow protocol sorry. I am having some problem with sound on the latest posted release dated 1/25/2010. the audio is not working on my device. I can make phone calls but cannt hear the other party but they can hear me so the Mic is working. I was wondering if anybody had this issue and if you were able to resolve it?

Thank you

---

VZW HTC Touch Pro2 CDMA/GSM Hybrid
[Touch Pro2, Tilt 2 Android Development] matthewb57:
Even though it is stated in the second post changelog as working, I have not found the earpiece on the phone to work during a call.

***Temporary Workaround***

To fix this, simply make a call (ie. call your voicemail), then run HaRET.exe (boot Android) while the phone is still connected on the call and this should fix the earpiece issue once Android has loaded.

Please note that nothing is really working EXCEPT the few things listed below (ie. Just phone service really).

Hope this helps.
[Touch Pro2, Tilt 2 Android Development] djliquid:
I am stoked I stumbled upon this. I've been waiting for WM 6.5 update since I bought this thing in Sept.

I have an 8gb SD and I loaded Civic's rom from Jan 24 and it ran thru the Linux and booted up within a few min. I got the welcome screen and started setup. However when I try and sign in with Google Account it asks to slide open keyboard - I do and nothing happens...

What did I do? zoiks... And if this has no data or wifi, how can we sign if with Google account?
[Touch Pro2, Tilt 2 Android Development] itsed:
Stumbled on this recently as well, definitely props for you guys working on this and can't wait to see future builds! Since I'm a sero user I don't have many options so this is a ray of shining hope for me on future potentials.
[Touch Pro2, Tilt 2 Android Development] ijustwantthedownload:
There is no data or wi/fi now on CDMA phones so you won't be able to sign in to Google or do anything really yet except poke around.

As for sliding out the keyboard, try sliding it out, then taking out the stylus to put it in Landscape mode. Dunno if that will work or not though.