yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] Neo31697:
ok i am running aosp cm7 and i tryed to flash both #5 zips and both tell me stuff about missing files. I have the sdcard tweak but nothing else. i am using ra 1.7 recovery. any help would be great, i wiped both caches 3 times
[Hero CDMA Android Development] hunterd13:
yes thanks for the info jason. wish i would have known this months ago. cyanogen can be a whore.
[Hero CDMA Android Development] laie1472:
Tried flashing both files. Gave me error --missing xbin files. Is there something I need to do different??? I'm using Ra1.7 I think I may need to edit the update scripts for Ra but not sure because the second zip in the op says it for ra. Any thoughts???

Yea its Me Again With The

Modified Hero
[Hero CDMA Android Development] il Duce:
Q for a kernel dev?

hey, the autokiller app just updated and has some tweaks available now that seem to effect the kernel, I am curious if anyone with the knowledge could elablorate as to whether some of these are either redundant or a good idea, please advise if you have the time :) http://andrs.w3pla.net/autokiller/kernel

EDIT: the credits links on the bottom of the page takes you here:

1)http://xdaforums.com/showthread.php?t=813309 - "startup script speed tweaks"

2)http://xdaforums.com/showpost.php?p=11496754 - kernel thread with other tweaks

3)sd tweak, that's the one we all know and most flashed recently.
[Hero CDMA Android Development] fowenati:
I work in OC but Live in LA. West LA in the house!
[Hero CDMA Android Development] rokair:
Still One Small Bug with Headset/Phones

I know that I am really too late cause sobe has moved on. But, I thought I would report this anyway. I am use the AP5 version and have found that would the regular headset jack does work correct (or mostly so...yes it does always detect a mic but that doesn't cause me any issues) I have found that if you have a headset/headphones plugged into the HTC USB jack on the bottom of the phone (using the HTC adaptor for this...I have done this since I bought the phone so that I can plug in just one cord in the car to cover both power and audio) it does NOT detect that anything has been plugged in.

Anyways, with the other advantages I will live with this for now rather than going back to a 29 kernel but still though I would report the issue encase someone should pick up the development.

Thanks...And, awesome work sobe.
[Hero CDMA Android Development] :
Yeah i was bout to ask what specs?
[Hero CDMA Android Development] D3FAULT:
Yeah, no joke. It looks like soon enough, some donations will certainly be in order. Although honestly they're overdo..
[Hero CDMA Android Development] HandsomeOne:
Thanks s0be found some cash in the couch and I had to send it to you

Thank You for keeping Heroc alive love this phone !!
[Hero CDMA Android Development] ahager88:
!!!

Hey s0be!!! The big ones aim to please!
[Hero CDMA Android Development] 24601:
OK Bro, dropped a couple beers in your fridge, but the rest is up to you. Maybe a few more beers and the specs won't matter ;)
[Hero CDMA Android Development] :
Lol
[Hero CDMA Android Development] s0be:
Ported the synaptics driver tonight, and figured out our crashes/reboots are a memleak. I've not tracked where it's occurring.
[Hero CDMA Android Development] s0be:
Ok, so the rumors are true...

I'm jumping ship to the Aria. This is not a decision I got to make. I'm an Alltel customer and my account was sold to AT&T. Original word was the end of Febtember my transition was going to start. Well, I got word from a little birdie that my phone will be here in the next week or so. I don't have actual confidence in this timetable though.

That's the bad news.

The good news is, I'll finish this port. I'll get everything working and relatively stable. I'm going to work like a demon until I have my new phone in hand, then the fervor will taper off while I get used to the new phone. Once I'm active and used to the new phone, have it rooted and whatnot, it means I don't have to worry about my hero being usable while I code on it. Means wiping out my boot partition is OK, so no more battling reboots and catching last_kmsgs. After all that is done, someone else is going to have to step in to battle the little bugs, optimizations, etc. New kernels and whatnot shouldn't be too bad after that.
[Hero CDMA Android Development] oostah:
I hate that you are going to at&t I fell for you. I'm on alltel to but was sold to tani they kept the alltel name and web site which version actually owns. They found a loophole some where.

If you need some testing let me no. Or any thing that I can do from my phone limited access to PC. Good luck man
[Hero CDMA Android Development] MallardDuck:
It's also sad news, I'm glad that you were here to have your impact on the heros.
[Hero CDMA Android Development] s0be:
First post updated. Got it booting reliably, and now know how to cause the crash.

Just let the phone go to sleep, haha
[Hero CDMA Android Development] aosp:
appreciate your hard work brother my heroc would like to date your heroc :o vote for s0be!
[Hero CDMA Android Development] jcj77d:
where did u get that rom, looks like cm7, but was told cm7 wont be on the hero for awhile, b/c cm is gonna start cm7 on the evo & work down
[Hero CDMA Android Development] thoughtlesskyle:
aospGBmod or now aospCMod is built from the cyanogen source thats why it looks like it's cm7
[Hero CDMA Android Development] s0be:
That's aosp CMod GB rom. And yes, it's basically CM7.
[Hero CDMA Android Development] aaronpoweruser:
its the gingerbread rom for the hero by aosp its aospcm7
[Hero CDMA Android Development] bigfoottrucker:
My head hurts. I'm still noobish enough that I understand, but sometimes my head hurts. Especially as aosp thread is usually near the top.
[Hero CDMA Android Development] s0be:
Read this whole post before doing anything

Because I'm gettin requests, here's a 'broken' update.zip. The phone will work, but it has all the bugs outlined in post #1, including it rebooting when the screen goes blank.

http://heroc.s0be.com/BrokenKernel.zip

and here's the kernel from the 20110123-094057 CMod, as a flashable zip for when you get sick of the slowness and instability.

http://heroc.s0be.com/GBKernel.zip

DO NOT REPORT BUGS. I will ignore you, possibly block your name from showing up if the forums allows it. This is a WAAAAAAAY unstable alpha, and I know of lots and lots of bugs I'm trying to fix. Only try this for the sake of trying something, and seeing your phone run 2.6.35
[Hero CDMA Android Development] ohbuckeyeman:
Thank you for your hard work on this. I think I will take the advice you are implying and wait for it to become a little more stable. I think the work you are doing for our phones despite moving on to a new phone for yourself is amazing. Thanks again!
[Hero CDMA Android Development] s0be:
For those that want to test, I've got a new flashable zip. This one doesn't reboot when the phone goes to powersave.....

Well, it does, but powersave is disabled, so battery life is ****, but at least you could use it for a while.

http://heroc.s0be.com/LessBrokenKernel.zip

Same rules as above apply.
[Hero CDMA Android Development] pstevep:
I will try to look at the amonra files later.. i'm on the road currently.. Unless there is someone else who has the time before me.. i don't use it so it, so it would be easier for someone who does if they can get to it before me..

Sent from.. wait.. What????
[Hero CDMA Android Development] s0be:
I probably screwed up when I edited the updater-script file for amonra. See if #4 flashes for you
[Hero CDMA Android Development] laie1472:
a sobe it's cool heres a dropbox flashable for those who are using RA1.7 also should resolve the missing file error. Enjoy thanks to sobe.

ap5 kernel

Once again this is for those using RA.1.7.

http://db.tt/ArvIIkk

By the way man awsome job on this.

Thanks a mil
[Hero CDMA Android Development] wjason:
Wifi works fine for me.
[Hero CDMA Android Development] laie1472:
Thanks. But which kernel are you using ??
[Hero CDMA Android Development] pstevep:
Wifi works on ap5

Sent from.. wait.. What????
[Hero CDMA Android Development] laie1472:
Thanks.Hummmm strange keeps giving me errors. Mobile data works fine but when I try to enable wifi it gives me an error. Going to try over a fresh install thanks
[Hero CDMA Android Development] pstevep:
I wouldn't think it would mess with it.. i know this is redundant, but you may try a reboot if you haven't already.. occasionally i have found that it needs a reboot just to make it feel better..

Sent from.. wait.. What????
[Hero CDMA Android Development] laie1472:
That's the first thing I tried lol like 3 times. Going to wipe all and load it up and see how it goes.
[Hero CDMA Android Development] laie1472:
Tried a full wipe and still the same result " puzzled "

Can anyone download the zip I posted and tell me if the wifi works or not. I dont wanna leave it up if some how my editing screwed with the wifi function.

Thanks
[Hero CDMA Android Development] pstevep:
U

DL'ing now. Gonna flash another recovery and try

Sent from.. wait.. What????
[Hero CDMA Android Development] laie1472:
Thanks I'm still trying. I'm doing a fastboot erase now to see if that will work
[Hero CDMA Android Development] fowenati:
That used to happen to me, wipe caches, reboot a few times with wifi off/ and on, then turn it on.
[Hero CDMA Android Development] laie1472:
Thanks will give it a try
[Hero CDMA Android Development] fowenati:
It only happened to me on the AP3 pre one that was posted when s0bes server wasn’t working, with AP5 its flawless
[Hero CDMA Android Development] pstevep:
Yeah it broke it for me..

Sent from.. wait.. What????
[Hero CDMA Android Development] laie1472:
Will remove the zip asap.

Gonna try and figure out what went wrong. Thanks
[Hero CDMA Android Development] fowenati:
Just tested Camera, and it froze after I took a pic. It would allow me to move slider for camcorder* around and highlight buttons, etc, but nothing happens and wont save pic.
[Hero CDMA Android Development] jschill31:
Hey guys,

Neither 4 or 5 of the Ra versions flash for me, both mention missing file...

Cheers
[Hero CDMA Android Development] pstevep:
Which governor??

Sent from.. wait.. What????
[Hero CDMA Android Development] fowenati:
Performance Governor I believe. I have it at the highest stable I get (352-768)
[Hero CDMA Android Development] pstevep:
yeah there are some issues with that right now..
[Hero CDMA Android Development] pstevep:
the camera isnt entirely stable on most of the governors still.. ondemand it works pretty well.. but the others are kind of hit and miss.. if you are are going to switch to ondemand for the camera to work, you will have to boot into it.. i found that switching the governors tends to make it not work..
[Hero CDMA Android Development] laie1472:
Ok fixed it I think will you give it a go one more time. I'm like 99.9% its fixed though
[Hero CDMA Android Development] laie1472:
Try this and let me know if it works

http://db.tt/ArvIIkk
[Hero CDMA Android Development] fowenati:
Thanks for letting me know man.
[Hero CDMA Android Development] jschill31:
Flashed with no errors...just booting now. Working just fine, should update OP when someone gets a chance. I am sure as any kernel she takes a while to play nice with everything but I too notice some camera locks. I also seem to have some intermitant issues with the trackball light? Will give it a whirl since this seems to be the future for our Hero's... Great work!

Cheers
[Hero CDMA Android Development] 24601:
I flashed with ondemand and the camera appears to be ok.
[Hero CDMA Android Development] fowenati:
Yeah, he said ondemand would work
[Hero CDMA Android Development] ch1naski:
Flashed #5 (finally!) without wiping cache (forgot), just dalvik, everything works great so far, camera froze with miui camera after taking a pic, but not with sleek camera. I don't have the stock 2.3.3 apk, I guess miui replaces it.....?

Wifi seems to work better than before the flash.

I'm a gonna go to that place where they keep all the books so I can learn how to code by monday, and keep this kernel poppin.

Thank you s0be and all else who helped with this. And everyone who did the dirty work of testing.

π

sent from GB hero.
[Hero CDMA Android Development] pstevep:
Works.. kudos sir..

Sent from.. wait.. What????
[Hero CDMA Android Development] laie1472:
Thanks I appreciate it. I reposted the link.
[Hero CDMA Android Development] pstevep:
And btw I figured out my a2sd issues.. its from my dalvik wipe..

Sent from.. wait.. What????
[Hero CDMA Android Development] oldjackbob:
Because a2sd has always worked for me, so why change?
[Hero CDMA Android Development] laie1472:
Dont!! Stick with it then.

Yea its Me Again With The

Modified Hero
[Hero CDMA Android Development] caliboy99:
Just flashed #5 last night with not so good results.. Handcent for some reason it is super laggy now, GPS takes a while to find a lock, camera can snap a picture but does not recover after captureing and cannot backout after viewfinder remains black...
[Hero CDMA Android Development] fowenati:
They work if youre governer is "ondemand" as stated above in the thread.
[Hero CDMA Android Development] caliboy99:
cool ok so which one is better setcpu or cpu widget
[Hero CDMA Android Development] pstevep:
If you are using aospcmod or cm7 use the built in settings..

Sent from.. wait.. What????
[Hero CDMA Android Development] fowenati:
What he said, PS: the settings are Settings>Cyanogen Settings> Performance> (ok to dragons) > CPU
[Hero CDMA Android Development] caliboy99:
What if im using aosp 9.2?
[Hero CDMA Android Development] pstevep:
If it were me I would go to the Decad3nce. 29 thread and download his tweak.. or the collinph tweak..

If you prefer visual with widget type things go setcpu, which you can get for free here on xda

Sent from.. wait.. What????
[Hero CDMA Android Development] caliboy99:
really you think those 2 mods are better for my rom?
[Hero CDMA Android Development] pstevep:
I think so, but that's just my 2 cents..

Sent from.. wait.. What????
[Hero CDMA Android Development] caliboy99:
well ive tried collins before but not the other one you mentioned... are you talking about Decafuct kernel?
[Hero CDMA Android Development] 24601:
No, he's talking about Deca's tweak to the Collins setting. You can find it toward the bottom of the 2nd post here.
[Hero CDMA Android Development] hunterd13:
been using data2whatever for the longest time, tried the rest but had the best i/o on data2whatever. i just wipe dalvik, flash updated rom and then data2whatever again to keep everything the same.
[Hero CDMA Android Development] MallardDuck:
Lol. You all managed to fail not deleting the closing quote tags?

EDIT:

I take that back, the boards are just glitching i guess; it appears that quotes aren't being created properly.

[QUOTE = laie1472;12782798][QUOTE = pstevep;12782406]

If you do let me know if you have any hicups. Its really easy to setup though and like i just posted, man its super nice with sobe's kernel

Yea its Me Again With The
Modified Hero[/QUOTE]

It's removing imbedded quotes but leaving behind the opening quote tag which is then aligned over the text of the person you want to quote.
[Hero CDMA Android Development] Drunkpilot:
Deca's battery tweak works on thus kernal as well. A few more options/profiles than built in on cm7 and aosp/cm7. Battery life seems just as good as .29. Grafix (oops, that's the bong company- I mean water pipe) look great. Really brings out the DH theme.

I feel so much better since I was able to flash something. If I flash alone, does that mean I have a problem?

Thanks for the fix S0be!
[Hero CDMA Android Development] 24601:
Here's the one for the HeroC;

And here's a second one that others have used.

Be sure to read, read, read before you apply either one.
[Hero CDMA Android Development] rokair:
I personally am having the best luck sticking with the older battery config script. And, since I have been with ondemand since I went to this kernel I haven't seen the gps or camera issues. (Actually, my phone was one of them that didn't like the 29 kernels and gps as it would freeze after a few or several minutes of use and I would have to restart the gps, but I haven't seen that issue yet with this kernel.)

However, even with ondemand I have found that the settings screens in handcent are very sluggish but not the actual application. I know strange ... but I don't change the settings much after setting them so not a big deal.
[Hero CDMA Android Development] oldjackbob:
Dunno what I'm doing wrong (or not doing right), but after flashing the no-debug AP-5 zip in the OP, I can't seem to get past the white HTC screen. I've tried twice already, flashing over aosp 3/26 after wiping cache and dalvik.

Any ideas?
[Hero CDMA Android Development] pstevep:
I've only had that happen once.. and it was a bad download.. that's all I have right now..

Sent from.. wait.. What????
[Hero CDMA Android Development] jaybob413:
A couple more resources that may be useful:

Linux Device Drivers 3rd Edition (PDF)

The Linux Documentation Project

Linux Kernel Newbies

Lots of information, references, links, and articles available there. Just a caution, consider the kernel version being discussed. There is a lot of material out there based on 2.4 and earlier that may provide some reasonable contextual background, but remember that you will be working with Jell-O that is just recently off the stove and is not completely congealed yet.

Of course, that points to the obvious use the source luke. Reviewing header files can provide a lot of insight into data structures and functions.

In addition, I would recommend installing the meld diff viewer. This is a great tool for comparing files and directories and selecting what changes you want to pull in from one file to another. It provides a nice tree based view to compare various source trees with a side-by-side view that shows what files are different and by selecting a file, opens another tab with the visual diff of that file. You can then just click to pull differences from pane to the other, cut and paste, or just edit directly.

A full-text search index of the source will also come in handy to quickly find where a particular constant, structure, variable, function, etc. is used. The open source recoll search system may be a viable option for this function. I actually use cifs mounted directories on a Windows 7 instance for indexing myself, but this is using fairly expensive indexing software that is used to support other business needs. I have used recoll in the past, and it works quite well.

I cannot overstate the value that these two tools have provided to me. Literally the difference between spending hours versus minutes to research, track, and port.

One other suggestion, if you have the disk space (2TB/3TB drives are fairly cheap these days), you may want to set up one working repository with all of the remote branches (as s0be suggested) to make cherry-picking/merging easy, and a separate directory with each of the remote branches for use with meld and recoll. This has been another huge time saver for me.

Other tools that may be handy in the overall development scheme of things are cscope, some ruby gems for use with github (grb, github), and if you are looking at reverse engineering, things like apktool/smali/baksmali for decoding apk files, and dex2jar and jd-gui for getting converting and decompiling classes.dex files.

I'm sure I am missing lots of other valuable tools and practices, but these are a few that I thought you may find useful.
[Hero CDMA Android Development] pstevep:
Thanks a ton for this i will definitely be looking at this stuff..

Sent from.. wait.. What????
[Hero CDMA Android Development] oostah:
cool thanks for sharing the info:cool:
[Hero CDMA Android Development] laie1472:
Download the one I posted a few pages back and let me know if that one works

Yea its Me Again With The

Modified Hero
[Hero CDMA Android Development] oldjackbob:
Thanks, laie, I seemed to remember you posting a fixed kernel zip, and I'm trying to find it but I can't ... do you have a threadpost number for that post?
[Hero CDMA Android Development] pstevep:
Its on page 81.. not sure of the exact post number, I'm on my phone..

EDIT: found the post number its 805

Sent from.. wait.. What????
[Hero CDMA Android Development] oldjackbob:
Thanks Steve, I finally found the same one on page 79 (thanks laie :) ), I flashed it and it booted fine.

Thanks all!
[Hero CDMA Android Development] pstevep:
No problem.. and thanks laie for the fix, so those who aren't using the new cw can enjoy the goodness..

Sent from.. wait.. What????
[Hero CDMA Android Development] oldjackbob:
Well, I spoke too soon. It did boot fine, but every boot since then (all intentional) freezes on the white HTC screen, and I have to pull the battery, but the phone boots okay after that, until the next time I reboot, when it hangs on the white screen again.

I tried the reboots with and without USB being plugged in, no differences observed.

I'll keep looking for some kind of resolution on my end...
[Hero CDMA Android Development] pstevep:
i occasionally had that on some of the very early unstable builds.. i usually had to actually boot into recovery and then reboot from there.. im not sure what the issue was then.. i havent been able to recreate it on these new builds... are you running anything like firerats or anything?? just trying to narrow down some options..
[Hero CDMA Android Development] laie1472:
First I hope your wiping cache abd dev cache. 2nd Once you boot into the rom choose the ondemand governor. Also make sure your min/max frequency are not to high or to low. And are your running and mod's??? And what rom???

Yea its Me Again With The

Modified Hero
[Hero CDMA Android Development] oldjackbob:
Been running a2sd (now beta 4) for nearly a year now, and running the 3072KB SD read-ahead tweak for a couple of weeks, everything else is pure stock aosp.
[Hero CDMA Android Development] oldjackbob:
Sorry, I should have clarified that I'm running aosp 3/26. My SetCPU min speed (screen on and off) is 245MHZ, ondemand.

I wiped both caches.
[Hero CDMA Android Development] pstevep:
any reason specifically that you use setcpu??
[Hero CDMA Android Development] oldjackbob:
It lets me define a screen-off profile. I haven't run across any other way to accomplish the same thing using any other approach.

I've never seen any evidence that SetCPU interferes or conflicts with the CM Performance CPU options. I've got SetCPU and CM CPU options both set to 245/614 ondemand. I can override the CM settings by defining a higher-priority (priority 100%) screen-off profile in SetCPU, which I do when I'm running a GPS app such as My Tracks. The override values work, as I can see by checking the Time in State on the SetCPU Info screen.

Also, back to the reboot issue, I forgot to mention that I've been running JIT enabled ever since 3/26 was released.
[Hero CDMA Android Development] pstevep:
makes sense i suppose.. i was just wondering, more than anything.. we all do it our own way.. im just interested in how others have their setups, to see what kind of output they are getting..

i wouldnt think that JIT would have anything to do with it.. i know when i had it i didnt use JIT, and it still did it.. but i may have been using decamod cpu tweak.. what recovery are you using???

and laie i assume you arent having any reboot issues?? i switched back to the op kernel and back to the recovery that i am used to so i cant test right now..
[Hero CDMA Android Development] laie1472:
Nope not one reboot issue. It froze once when I was checking email on the web browser and I had to terminal reboot other than that this kernel is super nice. Gets a little warmer when on wifi but thats it. She's been real good to me.

Yea its Me Again With The

Modified Hero