yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] quietcblongs:
This is a "MASTER" branch build, so it has Eclair plus some code checkins after that. Google has not released/tagged 2.0.1 (nor 2.1 for that matter) sources, so the SDK level is 5 (2.0), not 6 (2.0.1).

New 2009-12-17 build with wifi and sensors working

AOSP Hero CDMA 20091217

Changelog:

2009-12-03 build - first build that basic phone and SMS functions works

2009-12-10 build with post-2.0 updates, bluetooth turns on, but not tested yet, can enable 3G data with kluge in reply #23, pics in #21

2009-12-11 build with auto 3G enabling

2009-12-17 build with wifi and sensors working

What works:

Phone, 3G data, possibly BT, haven't tried pairing with anything yet, but it turns on, Haptic feedback, GPS, Wifi, accel/orientation/magnetic sensor

What doesn't work:

camera - not likely to work until some new proprietary binaries come out specifically for the CDMA Hero. compiling with the 1.5 libcamera.so fails, as it requires things no longer present in 2.0, but the new libcamera.so tries access devices not present in the 2.6.27 kernel. On top of that, we probably need a liboemcamera.so for the CDMA Hero, this file replaces the libqcamera.so

Googlebits: for people who have tried to use apk's to enable syncing with your Google account, the phone seems to keep syncing even when its done. I don't really know where the problem is with that at this point. If you've tried this, can you tell me where the apks are from? I tried the apks I found in chuckhriczko mod-build http://xdaforums.com/showpost.php?p=5118188&postcount=29 and it has the sync problem. I haven't tried the ones from http://www.buttonclicker.com/2009/12/02/googlebits-signed_v1-1/ yet.

Please understand that I'm mainly interested in the AOSP/build from android.git.kernel.org issues, the Googlebits stuff is something I'm willing to investigate. Also, I won't be building any ROMs with the Googlebits built in, as this is an

AOSP

ROM w/ some tweaks to get as much of the HARDWARE working as possible. Anything beyond that is really up to the others, or yourself to figure out. Its fun to learn!
[Hero CDMA Android Development] flipzmode:
So after a reboot it just puts you back in to recovery?

You can watch the debugger to see what's going on.

(in windows) \sdk\tools\ddms.bat
[Hero CDMA Android Development] quietcblongs:
Ok, got it to boot. I did not have the update-script set perms, so as soon as it booted, it failed to execute sh!

It booted, but before the home screen completely loads, com.android.phone dies (force close). I can't even get into the settings screen to do a picture for you guys :)

I'm not sure what to try next, use the phone.apk from CDMA 1.5/cupcake, or the one from Moto Droid.
[Hero CDMA Android Development] flipzmode:
Give it a try, but I've had the same issues on the 2.1 dev build. Although it does boot and work, just still gets the FC's on com.android.phone.
[Hero CDMA Android Development] chuckhriczko:
So then what kernel does this use? 2.6.27, 29 or 31?
[Hero CDMA Android Development] quietcblongs:
Its running the stock HTC 2.6.27 kernel (the only one that seems to work on our phones it seems).

I decided to rebuild AOSP after all the tweaking along the compile I did the first time around. This time, phone doesn't crash, but calendar still crashes on start (at least it doesn't try to restart over and over again).

The phone still thinks its a gsm type phone, and the odd part is that it starts up in airplane mode. I'm not sure I've ever been able to get it out of it. Turning on wifi puts it into continous reboot the phone mode, so I'm not sure whats going on there. I'm using the wlan.ko from our phone as well.

Click on the thumbs for bigger view of the pics:
[Hero CDMA Android Development] quietcblongs:
Did another build, this time, with some CDMA specific settings in system.prop, and took out gsm/umts settings that were in inherited .mk files. Also took out the init.goldfish.rc.

With this build, I get CDMA related info in the phone status screen, like phone number, PRL version, etc. But it seems like the phone can't read any of that info (values are unknown), so I'm thinking of trying the libhtcril from the leaked 2.1 to see if that works. Also, turning on wifi still puts it into reboot loop.

Update:

Using the leaked 2.1 libhtc_ril got the phone working. About phone screen shows correct values for phone number, PRL version, etc. I was able to make an outbound call as well. Putting in the wlan.ko from the leaked 2.1 didnt' help in a meaningful way, instead of reboot looping, it just says can't turn on wifi. Tried turning on bluetooth, but the button just goes into that grayed out state of "turning on bluetooth.."

It might be time to upload this one and let more people give it a few (w)hacks at it.
[Hero CDMA Android Development] chuckhriczko:
Yeah it looks like this is an amazing start. Good job! I'll be happy to help if you want.
[Hero CDMA Android Development] thorracing1:
ill help too can test for you:D
[Hero CDMA Android Development] quietcblongs:
See first post :)
[Hero CDMA Android Development] toastcfh:
sweet!!! im gonna try and have a look at this later. lookin good though man
[Hero CDMA Android Development] Lessthantito:
I was thinking of putting this on my Hero just to check out what everything looks like is it any harder to do than flashing a custom rom?
[Hero CDMA Android Development] quietcblongs:
no, just wipe data (do a nandroid backup first!), then flash.
[Hero CDMA Android Development] Kcarpenter:
Wonder if we will have a 2.1 built here before sprint releases it :rolleyes:
[Hero CDMA Android Development] alexthearmo:
This build doesn't have sense running does it?
[Hero CDMA Android Development] 27s:
No, this is vanilla android.
[Hero CDMA Android Development] Joecrack305:
cant wait im down to test it out! when you do a wipe do you do a complete wipe factory reset or wipe sd partition
[Hero CDMA Android Development] quietcblongs:
just factory wipe, no need to wipe your SD card.

You can also get rid of the roaming indicator by putting the following into a file named "eri.xml", and then pushing it to /data

<EriFile VersionNumber="1357" NumberOfEriEntries="1" EriFileType="1">
<CallPromptId Id="0" CallPromptText="CallPromptId0"/>
<CallPromptId Id="1" CallPromptText="CallPromptId1"/>
<CallPromptId Id="2" CallPromptText="CallPromptId2"/>
<EriInfo RoamingIndicator="128" IconIndex="1" IconMode="0" EriText="Sprint" CallPromptId="0" AlertId="0"/>
</EriFile>
[Hero CDMA Android Development] chuckhriczko:
Now, did we figure out whether the phone actually is roaming when it shows this? If we just remove the indicator and we are still roaming that could be a bad thing, right? I mean, I don't know how Sprint works with roaming so maybe Im completely wrong.
[Hero CDMA Android Development] quietcblongs:
In the AOSP code, there are un-implemented methods that are supposed to read the ERI from the phone through the vendor's RIL:

http://android.git.kernel.org/?p=pl.../internal/telephony/cdma/EriManager.java#l137

136 private void loadEriFileFromModem() {

137 // NOT IMPLEMENTED, Chipset vendor/Operator specific

138 }

139

140 /**

141 * Load the ERI file from a File System file

142 *

143 * In this case the a Phone Support Tool to update the ERI file must be provided

144 * to the Operator

145 */

146 private void loadEriFileFromFileSystem() {

147 // NOT IMPLEMENTED, Chipset vendor/Operator specific

148 }

You can see what SID the phone is registered on through adb, by doing a logcat -d -b radio and looking for registration messages with SIDs in them as well as messages like the following:

D/CDMA ( 116): [CdmaServiceStateTracker] Set CDMA Roaming Indicator to: 128.

mCdmaRoaming = false, isPrlLoaded = true. namMatch = false , IsInPrl = true, mRoamingIndicator = 128, mDefaultRoamingIndicator= 1

-------------

What I'm doing in the eri.xml file is giving the system a definition for Sprint's ERI value of 128. AOSP comes with a default/sample eri.xml that gets loaded, but it contains roam indicator values between 64-75.
[Hero CDMA Android Development] Ska8erMush:
me too! i have none of that
[Hero CDMA Android Development] thorracing1:
i have it for google sync you need to flash googlebits after you flashed the rom you can download here:http://dc181.4shared.com/download/175742023/72d0ff26/googlebits-signed_v11.zip
[Hero CDMA Android Development] chuckhriczko:
Personally it's not a huge deal for me as I usually customize my new builds anyway. I was just saying I agreed I didnt have it. Thanks for clearing that up though Thorracing.
[Hero CDMA Android Development] thorracing1:
no problem :D
[Hero CDMA Android Development] magicalan:
what does it have?
[Hero CDMA Android Development] Ska8erMush:
woops! :rolleyes: i see now. cant believe i missed that!
[Hero CDMA Android Development] thorracing1:
it must have market in it lol it has google sync for contacts and stuff like that too i have it on mine and i have market soo....
[Hero CDMA Android Development] quietcblongs:
Guys, this is an AOSP build+hacks to get hardware working, so its up to you or others to get other software going. My builds will be in the AOSP "mold", so no googlebits, etc.
[Hero CDMA Android Development] dchadwick:
I look forward to just the straight vanilla builds. Cheers!
[Hero CDMA Android Development] riotkid976:
I have a general question:

lets say i data wipe and then flash this rom. if i make a backup, would i have to data wipe to restore this backup (like if i wanted to periodically flip between this and fresh 1.0)?
[Hero CDMA Android Development] Orangeandblue302:
the new build seems to be working well so far. The only issue i have seen so far is that it wont sync with facebook either. Not a big deal but just putting that out there.

Good Job quiet!!
[Hero CDMA Android Development] clipcarl:
Flashing this over top of the previous version without wiping data seems to work for me. Everything works fine, though Market would not work without reflashing the Googlebits.

Thank you, quietcblongs! I love what you've done. This is my everyday ROM (though I too miss camera and MMS).
[Hero CDMA Android Development] clipcarl:
One thing I notice about the new version is that the compass seems to work much more slowly than before... As if it's not sampling as quickly in this version.

EDIT: Never mind. I had a runaway process sucking down all my CPU causing the whole phone to be slow not just the compass.
[Hero CDMA Android Development] thedudejdog:
no.

a nandroid backup copies everything, even the /data partition that a wipe formats. so if you do a backup, then everything that you had at that moment will be backed up. if you do the BACKUP+EXT option in 1.5.1 it copies your EXT partition on your sd card for apps2sd.

so when you do a restore it formats everything and replaces it with the backup image.

this is how i go from 2.1 back to 1.5.

so you could do a wipe before you do a restore but it wouldn't do any good
[Hero CDMA Android Development] dchadwick:
I have updated the title of my thread to help avoid any confusion. I wasn't aware that 2.0.1 hadn't dropped to AOSP beyond the SDK's

LOL Maybe I should spend more time building from the AOSP source then porting one titled AOSP ;)

Sorry for the confusion. :)
[Hero CDMA Android Development] clipcarl:
Hello, dchadwick! What makes your ROM any different / better than this ROM? Thanks!
[Hero CDMA Android Development] dchadwick:
Each rom is different in its own way. This one is built to give a end. User or rom cooker something to start with. And to add programs or modify to your hearts content. This is what the android Framework is. These guys here are making awesome progress in getting all parts of the phone working.

Mine is a rome hacked together out of others combining the parts that make it the most useful for me to use on a daily basis. What is right for any rom maker is not always right to the end user. Android and root gives you the capability to build and play to your hearts content.

My suggestion is to figure out way parts you like then try roms that have the same goals. :)
[Hero CDMA Android Development] clipcarl:
You didn't answer the question!
[Hero CDMA Android Development] bobdude5:
has anybody noticed how strange the autocorrect is with this rom?

when i type "one" correctly it automatically replaces it with "honda"

when i type "on" it replaces it with "bot"

when i type "it" it replaces it with "simpson"

when i type "rap" it replaces with "brandon"

it seems like theres only pronouns in the Eclairs Dictionary
[Hero CDMA Android Development] Orangeandblue302:
it has to do with the names and such already stored on your phone. Mine always wants to correct with people names in my contacts. I just turn off autocorrect.
[Hero CDMA Android Development] obelisk79:
Or manually go in and push htc's dictionary files copied from the 1.5 rom. Just a thought.
[Hero CDMA Android Development] dchadwick:
I'm sorry I didn't answer your question. :(

Is there something more specific you wanted to know? If I were to put it simply the real development work is going on with this rom. Mine is just bits and peaces put together that I like in one simple install. I like this one from a developer prospective because I can do just about anything I want because its a very clean base with out having to remove any bloatware.
[Hero CDMA Android Development] clipcarl:
I was curious to know what is different in your ROMs than this ROM. For example, from your screenshots it looks like you have the boot logo and lock screen from the 2.1 Nexus One build of Android. Also, you mention that the Gallery (sort of) works for you whereas it doesn't work at all on this ROM (won't install). Also I think you mention somewhere that WiFi does not work in your ROM but it works in this ROM.

That's the sort of thing I'd like to know-- how your ROM compares to this ROM (and the others) as far as what's in it and what's working. Thank you!
[Hero CDMA Android Development] dchadwick:
Mine doesn't have the Sense UI which HTC had on all our Stock Hero's. This one is running the standard Android UI which is much more simpler and runs faster. The rom in this thread doesn't have anything more then the standard Open source version of Android which means its missing most of the Google Specific applications like Maps, Gmail and Google sync. Mine currently does have this pre-installed for you.

Mine has as you noticed has a different lock screen because it is built from 2.0.1 image. I am assuming the source I ported actually built it from the Verizion Droid. The google nexus boot animation is included which I pulled from the image dump.

I suffer from all the same issues this one does when it comes to hardware working and not working because I am re-using the same work they have done to get it to run. I was able to pull over their fix for wifi and put it in a update v0.6. I haven't pulled orientation over yet but I will probably keep pulling hardware fixes from here and anywhere else they are fixed. Doing so only as long as the source doesn't mind.

If I were to suggest a rom I think this one is prime for a power user or someone that wants to tinker. Mine is more ready for day to day use as most know android with out any modification or other installations. This will probably change in the future because I am uncomfortable building a rom with googles proprietary stuff and will probably move closer to slipstreamed install like what cynanogen has where it will backup your copy of googles applications and then install them back into my rom after it flashes.

I hope that helps :)
[Hero CDMA Android Development] dchadwick:
I found with my rom that I had the exact same issues. I think they were finally resolved when I changed the following lines in the build.prop from aosp to Eclair as one of my application stack traces suggested.

ro.build.version.codename=Eclair
ro.build.version.release=Eclair

If that doesn't fix it make sure you have LatinIME.apk in your apps directory.
[Hero CDMA Android Development] dchadwick:
If you have more questions do you think you could post them over on the thread for my rom? I really am feeling bad about cluttering up this thread with non-dev related conversations.
[Hero CDMA Android Development] clipcarl:
Thank you, that does help. I will give yours a try (and likely switch to it) when you pull in the accelerometer and compass fixes. Thanks!
[Hero CDMA Android Development] longlivethetea:
Silly question but. Since i flashed to this rom it tells me i have to voicemail messages. Off the bat it was dialing *86 which called virgin mobile and i got nothing out of that. I changed the settings to my number and i dont actually have any voice messages according to sprint. And yet i cannot make the damn notification dissapear. Any ideas. Thanks again love the work.
[Hero CDMA Android Development] chuckhriczko:
Actually you can fix this by going into the LatinIME.apk file of this rom and the LatinIME.apk file of another rom (any stock 1.5 on up). Just replace the /res/raw/main.dict file in your LatinIME.apk with the one from the 1.5 LatinIME.apk. Worked wonders for me.
[Hero CDMA Android Development] quietcblongs:
I would load your backup of a 1.5 based system (you did backup right?) and check again. I'm guessing when our accounts are setup with visual voicemail, dialing your own number doesn't really work, since the network pushes the voicemail as a sound file to your phone for playback.
[Hero CDMA Android Development] BrianDigital:
dailing my number works for me on this rom for getting voicemails
[Hero CDMA Android Development] rulermon:
dumb question

is this just me or does this not have marketplace if not is there a way to install it... i tested this rom last night and could not find it anywhere and could not find how to install it thanks
[Hero CDMA Android Development] clipcarl:
If you read this thread you will see there is a Google bits zip that you need to apply after this ROM.
[Hero CDMA Android Development] rulermon:
sorry for my igonrance i thought that google bits was only todo with sync thanks for the help
[Hero CDMA Android Development] petermk:
sync issue

Has anyone managed to isolate the sync issue?

I've disabled Calendar sync and it still keeps on running...

Also does exchange not have a calendar sync in this build?
[Hero CDMA Android Development] wasupwithuman:
The only way I think you can stop it is if you disable auto sync.
[Hero CDMA Android Development] quietcblongs:
I think the sync issues has to do with the googlebits apks that's been spread around. I mean that they are probably for 1.5/1.6 and not 2.0 (no, I haven't looked inside the apks, just a guess). Also, people have the same non-stop sync on the gsm phones running 2.0+ ROMs. If someone is really intent on finding/trying a fix, they should try to get some de-odexed apks from the Moto Droid.
[Hero CDMA Android Development] Orangeandblue302:
whats the best way to find a battery drain? I think i have something running down the battery on this rom but not sure. For the first few days I had great battery life but now it seems to be draining quickly.

I have searched through spareparts and battery manager but the only thing that is over 20% is phone standby at 30%.

Thanks
[Hero CDMA Android Development] chuckhriczko:
Far as I know the only way other than the programs you mentioned would be trial and error. Make sure all applications are closed (if necessary you may have to remove all suspect apks and load them on one at a time) Leave it for at least a few hours (although a day would be better). This will give you a baseline for how long the phone should run on battery. Then load each one individually one at a time and leave them run for at least a few hours (again a day would be better). This is, of course, if we are talking about apks. If it is a system file or core of the os then that wont work. It's obviously not the best way as it takes a lot of time and frustration but it sometimes is the only way. Log cat might help find memory leaks which can drain the battery too.
[Hero CDMA Android Development] mcgrathx:
Gmail not sending

Hi guys,

great work. Curious if anyone else is running into this problem. I can receive mail through the gmail app all day long (after flashing googlebits), but when replying/composing, the message sits idle trying to send.

thanks

EDIT: it looks like I can send and receive in the email client rather than the gmail one. This will work for me, although, I hate having the IMAP tagging when going back to my browser.
[Hero CDMA Android Development] chuckhriczko:
Can anyone find or write a good tutorial on de odexing files? I have searched and researched but couldnt find anything that would work for me.
[Hero CDMA Android Development] kylez64:
I believe JesusFreke made such a tool to do odex files. Im not positive but google it see what happens
[Hero CDMA Android Development] chuckhriczko:
He did but I am just confused on certain aspects as to how to actually use it. Looks like he wrote a detailed guide I just am a little confused on it. Oh well. Not a great question as it is off topic. Sorry all.
[Hero CDMA Android Development] mercado79:
try clearing the cache via Settings --> Applications --> Manage Applications --> Gmail Storage. Afterwards, though you'll lose the messages in the Outbox, sending should work again.
[Hero CDMA Android Development] djsplitimage:
just out of curiosity, is there a way to pull the lockscreen from this to put it install it on my phone that's running Fresh 1.0? I really like it, figured, I got the bootscreen from the nexus going (thanks to whoever posted that, i forget) so I'd ask and see if that was possible too.
[Hero CDMA Android Development] mcgrathx:
mini jack issue

Wanted to post up and let al the devs know. With this build, when I plug in a mini jack to the hero, no sound. Reflashed with the stock rom and it works.

Can anyone else confirm?
[Hero CDMA Android Development] Kykiskly:
Quick Question

Hey guys,

What is the difference between this ROM and Android 2.0.1-r5v0.6???

I find 2.0.1 -r5v6 to be a lot better in terms of performance, non laggy as this one is. The only thing is that the keyboard orientation dont work, sensors, the enter function when you press down the scroll ball dont work and of course the Camera. However, everything else works.

Perhaps we can join this two ROMS and make a stable one. Well that is what i think since none of them are running Sense UI

Also, the Googlebits issue is not present in that ROM.

Guys, let me know what you think, maybe you can give a fix to the keyboard orientation, and the sensors.:cool::rolleyes:
[Hero CDMA Android Development] gu1dry:
This ROM is based on AOSP 2.0 that was released by the Android Open Source Project, while the AOSP 2.0.1-r5v0.6 is based on AOSP 2.0.1 that was released released by the Android Open Source Project 7 & in fact uses this ROM for bases of a lot of the porting.
[Hero CDMA Android Development] Kykiskly:
I see, thanks for the quick reply, but someone AOSP 2.0.1-r5v0.6 seems to run faster that AOSP 2.0... Is there anyway to port the Orientation settings to AOSP 2.0.1 -r and the sensors?
[Hero CDMA Android Development] gu1dry:
There should, but I'm sure of how. I don't know how to code, but I do understand, mostly, of how the Android system works & I don't why it shouldn't work, but there might have to be some tweaking to make it work.

The current lead dev of AOSP 2.0.1 is checking legality of their version, ie Google SW. I'm sure once that is out of the way, the sensor will be ported over.
[Hero CDMA Android Development] Kykiskly:
Nice,

I've been running into issues with the Nfl app, where it ask for an update, but once it is done it force closes, any clues. Also, WIFI Tether seems to have an issue. Other than that AOSP 2.0.1 is flawless.
[Hero CDMA Android Development] gu1dry:
I would recommend you post 2.0.1 issues in the 2.0.1 thread. Keeps this thread from going off topic & makes it easier for the devs of 2.0 to keep the issues straight.
[Hero CDMA Android Development] Kykiskly:
Thanks, I will be doing that. As you can see, the Devs went offline for quite a while now. I am just waiting for their return.