How do i get HTCCamera work in my own build? - G1 Q&A, Help & Troubleshooting

Does anyone know how I get the HTCCamera to work with my own Android 1.5r2 build, it has the kernel version 2.6.29. I also included the HTC Frameworks into the Kernel and the needed libraries but I always get a force close message. And I also tried different Tutorials.

Related

[Q] 2.2 Roms in a nutshell

Ok, i've been absent from the forums for some time and have been trying to play catch up... If someone who has been keeping up would just help me get a few things straight it would be awesome.
please just put the number and if its correct or the answer or w.e.
What I think I know:
1. CyanogenMod- Established dev who releases nightly updates (CM6?) to his tweaked build of rooted mostly ASOP 2.2, which recently (thanks to a new kernal?) began working on our CDMA Hero’s.
2. Most 2.2 ROMs are based off of one of the CM6 nightlies, then customized with themes and tweaks
3. “CyanogenMod-6 for Hero CDMA - V6.0.0 (09/18/2010)” is one of these, and has been tweaked minimally, and is considered a stable build as far as CM6 goes
4. “FroYo 2.2 – CM6- Vanilla” is basically same as above, just complied from a differently “nightly”, while “Extremely Blue” and “BlackMod” are the same, just themed
5. The main (only?) NON–CM6 based options for 2.2 are…
a. asopMod v.03m = which is a very ASOP build, includes OC
b. NFX-Hero 2.2.1.update1 = slimed down ASOP, includes OC and JIT option
Questions:
6. If I want the CM6 nightly updates, is there an updater app in any of these ROMS’s, like in Fresh Hero 2.4 (what I’m used to), or do I have to pull an update.zip from somewhere (or something)?
7. Do some phones work with JIT enabled, and others don’t? and if so is there a way to tell without just trying
8. If I'm set on 2.2 should I check out any other ROMs than those I mentioned
9. Is there a standout (stable) kernal right now?
Just want to say:
NFX-Hero 2.2.1 is just the version number. It is still based on HTC Sense 2.1.
There is currently no Sense 2.2 port for the Hero.
As for the stable kernel, I've heard good things about this one
http://forum.xda-developers.com/showthread.php?t=756774
specifically [email protected] 09/14/2010, people refer to it as "#14 kernel"
teddypepper52 said:
Ok, i've been absent from the forums for some time and have been trying to play catch up... If someone who has been keeping up would just help me get a few things straight it would be awesome.
please just put the number and if its correct or the answer or w.e.
What I think I know:
1. CyanogenMod- Established dev who releases nightly updates (CM6?) to his tweaked build of rooted mostly ASOP 2.2, which recently (thanks to a new kernal?) began working on our CDMA Hero’s.
Cyan is the almighty grand pubba of AOSP and was one of there first to release roms in the mainer we see them now. He does not do everything and all roms as he has allot of help from other devs, for us its Darch who maintains the Heroc version of cyanogen (sorry if I forgot some of you other devs)
2. Most 2.2 ROMs are based off of one of the CM6 nightlies, then customized with themes and tweaks
All of the roms you see for the heros here that are AOSP based com from darch's and then cyans repo period, nightlies are built roms while we theme built roms roms deving is done from source and can be taken from different time and snap shots so nightly means nothing then.
3. “CyanogenMod-6 for Hero CDMA - V6.0.0 (09/18/2010)” is one of these, and has been tweaked minimally, and is considered a stable build as far as CM6 goes
The stable build of cm6.0 is from the combined deving of cyan, darch and alot of other people to bring the best of wheat works and leave out what doesn't. Nightlies usually are adding what seems to work but is not always guarenteed
4. “FroYo 2.2 – CM6- Vanilla” is basically same as above, just complied from a differently “nightly”, while “Extremely Blue” and “BlackMod” are the same, just themed
Black mod is a theme, extreme blue is a themed rom compiled from cyan/drach's source vinilla is a terms used to describe a stock rom which is what cm6.00 stable and anyhting else that comes from the repo.
5. The main (only?) NON–CM6 based options for 2.2 are…
a. asopMod v.03m = which is a very ASOP build, includes OC
b. NFX-Hero 2.2.1.update1 = slimed down ASOP, includes OC and JIT option
I'll go ape **** on this but asopMod v.03m is from cyan's source ino at first he tried to make it seem like he compiled from AOSP source but the fact is he uses cyans like almost everone else and if you check his thread now he given the props the the cyan team as he should have at first.... NFX-her is a sense based rom from android 2.1
Questions:
6. If I want the CM6 nightly updates, is there an updater app in any of these ROMS’s, like in Fresh Hero 2.4 (what I’m used to), or do I have to pull an update.zip from somewhere (or something)?
Not yet but that would be nice nightlies are not considered stable and there for i dont think theyll be added to an updater like cm updater or fresh updater but when we start seeing more stable builds you'll see the updater used, cm updater is on cm6 right now just nothing to update
7. Do some phones work with JIT enabled, and others don’t? and if so is there a way to tell without just trying
All phones should work with JIT (Just in Time) dalvik compiler, whether they run betters is a different story but I have never had issues
8. If I'm set on 2.2 should I check out any other ROMs than those I mentioned
For sense I like fresh as he seems to be the best sense dev (imo) around here for AOSP you go with the grand master Cyan and his cm6 (for the hero) there are some other devs out there that make roms for other phones but most of them still use Cyan's repo.
9. Is there a standout (stable) kernal right now?
Yes Decadence
Click to expand...
Click to collapse
if anyones see's an error in what i posted please correct me.
Any froyo rom is going to be based off of CM6. The nightlies are built every night from any changes made that day. They are considered beta, however most will find no issues at all. If you flash CM6 the Jit setting is a quick change and will not screw up the phone. You just go into setting>cyanogenmod setttings>performance settings and check or uncheck jit and reboot. There is a ROM Manager app in CM6, but you have to install clockwork recovery so I am not sure what will show up in the ROMs option or what else it does because I do not want to install clockworks. As mentioned a lot are using #14.
unCoRrUpTeD said:
Any froyo rom is going to be based off of CM6. The nightlies are built every night from any changes made that day. They are considered beta, however most will find no issues at all. If you flash CM6 the Jit setting is a quick change and will not screw up the phone. You just go into setting>cyanogenmod setttings>performance settings and check or uncheck jit and reboot. There is a ROM Manager app in CM6, but you have to install clockwork recovery so I am not sure what will show up in the ROMs option or what else it does because I do not want to install clockworks. As mentioned a lot are using #14.
Click to expand...
Click to collapse
not a lot shows up in the downloads section for rom manager on the hero. there's 4 selections, and none of them include cm6. it's mostly useless in my experience.
hopefully they update the downloads list soon.
Brandito said:
not a lot shows up in the downloads section for rom manager on the hero. there's 4 selections, and none of them include cm6. it's mostly useless in my experience.
hopefully they update the downloads list soon.
Click to expand...
Click to collapse
Actually i was referring to cm updater which is similar to the fresh updater... when we see more stables from cm6 and up it'll start showing some it that. I personally don't care for rom manager.
Sent from my HERO200 using XDA App
ASimmons said:
Actually i was referring to cm updater which is similar to the fresh updater... when we see more stables from cm6 and up it'll start showing some it that. I personally don't care for rom manager.
Sent from my HERO200 using XDA App
Click to expand...
Click to collapse
rom manager could use some work to make it a bit more useful. i like it for queuing up roms to flash and making things a bit more automated, however i'm not sure it clears the dalvik cache when it does its thing so i generally have to do it myself anyways.
i'll have to check out fresh updater. i have cm updater, installed from the market, does it actually come with cm6 now? i never saw it when i flashed the 9/18 and already had it installed when i clean flashed the latest nightlies.
Brandito said:
rom manager could use some work to make it a bit more useful. i like it for queuing up roms to flash and making things a bit more automated, however i'm not sure it clears the dalvik cache when it does its thing so i generally have to do it myself anyways.
i'll have to check out fresh updater. i have cm updater, installed from the market, does it actually come with cm6 now? i never saw it when i flashed the 9/18 and already had it installed when i clean flashed the latest nightlies.
Click to expand...
Click to collapse
Well fresh updater is pretty much the same as cm updater but its only for fresh roms. cm updater might not be part of cm6 I can't, it probably isnt. I actually would like it to be as with cm5 and below it also had themes in it. hopefully itll come back when theres more cm6 stables.
Thanks all. Didn't want to jump into 2.2 without knowing what I was getting into. I decided to start with CM6.0.0, and so far its been great. As mush as I love all things Freshh, I'm mad I waited this long. I DO miss the Senses dialer (minus the ungodly lag) and I havent made up my mind on the keyboard, but the overall speediness is killer.
Hell yea froyo/ CM.

porting apps to 1.6

Is there a way to port latest gapps and apps like phone.apk and the browser etc to android 1.6?
i'm thinking a android 1.6 ROM with all froyo applications that it will look like froyo and have a working camera etc
why try getting froyo to work when we can improve what we already have
at the moment i'm installing Linux on my laptop and i'm gonna get cracking at this any developers interested in my idea?
SAuRoN92 said:
Is there a way to port latest gapps and apps like phone.apk and the browser etc to android 1.6?
i'm thinking a android 1.6 ROM with all froyo applications that it will look like froyo and have a working camera etc
why try getting froyo to work when we can improve what we already have
at the moment i'm installing Linux on my laptop and i'm gonna get cracking at this any developers interested in my idea?
Click to expand...
Click to collapse
Nice idea, first of all, I suggest to try every app to see what works..
I think the big porting pb for the ones that don't work will be the newer APIs
so basically we need to re dev the apps from scratch?
i sense alot of coding involved in this project {sigh}
Is it possible to create such a patch which will be able to enable JIT on 1.6 Roms?

How do I port an application from 1 rom to another

Hi bit of a beginners questions but how do a port an application from one rom to another.
A am currently running MicroMod's 2.5 Rom but the FM radio isn't as good as the one on Cyanogen so I thought I would install it on Micromods rom.
This is what I tried, open up the nighlty build of NC rom, went to system/apps and copied the fm.apk to my sdcard. Then I installed it using Astro in Micromods but when I try to use it I get force closes.
I suspect it different or missing ddls files but unsure were to look to find this out.
Any ideas
Im pretty sure the fm.apk is linked to the CM6 framework so it would only work on CM6 atm...
I would also like to know the best way to do try to do this in general. Ive always wanted to put the browser from cm into an enom rom but the same thing happens as op said and it just fc's. If I were to use root explorer or 7zip to unzip the apk is there a specific place to look to see what other files need to be where in order for the apk to function properly?
it's pretty complicated which is why people tend to avoid it. You basically need to copy the right sections of Cyanogen's framework code into MicroMod's framework.. and since I believe MicroMod's ROM is based on HTC, that would involve some disassembly (look into smali/baksmali), but that would require some knowledge of assembly language.
It's a LOT of work, and a lot of testing (and swearing.. haha). Hate to discourage you.. but if anyone knows of a better (and more feasible) way I would love to hear it
I honestly doubt it's possible. CyanogenMod uses the MIUI method for the FM radio, which is most likely completely different than HTC's proprietary method. Kwazi is right though, it lies deep within the framework.

Milestone + Cyanogenmod is compatible with ADK?

I have the latest Cyanongemod (Android 2.3.4) and i wish to know if it is compatible with Android Open Accessory Development Kit (ADK).
ADK is compatible only with Android 2.3.4 and 3.1 but im not sure if Cyanomgemod include the required libraries.
Hi!
I´ve been searching this for a while, and yes, cyanogenmod (at least nightly builds) support - you might have trouble getting other customs roms.
You need 2.3.4+ and 2.6.35+ kernel with CONFIG_USB_ANDROID_ACCESSORY flag set. Instructions about xml, permissions, here (sorry, cant post full urls):
github.com/ezterry/manifest-gingerbread-DS/issues/32
Push nexus files from here:
forum.cyanogenmod.com/topic/26339-usb-accessory-mode-is-adk-supported-in-cm-7/
And upload demokit via eclipse.
Regards
Robson
robsondantas said:
You need 2.3.4+ and 2.6.35+ kernel with CONFIG_USB_ANDROID_ACCESSORY flag set. Instructions about xml, permissions, here (sorry, cant post full urls):
github.com/ezterry/manifest-gingerbread-DS/issues/32
Click to expand...
Click to collapse
There is one problem - you cannot flash custom kernel on Milestone that is not signed by Motorola (locked bootloader). And the latest kernel that we have is 2.6.32.9, so that will not work.
If you want custom kernel (but without radio) you can try to have a fun with 2nd boot - http://droid-developers.org/wiki/2ndboot

[Q] Can't build CM6 from sources. Help please!

Hi,
I'm trying to build cyanogenmod 6 (froyo) from sources on github for G1.
Sidenote. The reason I'm trying to do this is i'd like to modify kernel parameters. I'm trying to make the phone talk to external device using built in serial port. I can do it with my current CM6, but it looks like serial debugger engages and starts responding to the device and also steals some of the data being sent to phone.
To build I used instruction posted at cyanogen wiki "HTC Dream & Magic: Compile CyanogenMod (OS X)" which covers gingerbread but checked out froyo-stable branch at first. I know that gingerbread version stopped supporting G1 at some point last year.
Without much success even after fixing manifest to point to updated repo urls from kernel.org to googles repo etc. The problem is that apache-http seems incompatible with old sources and it is referenced by head.
I also tried froyo branch, but it doesn't build as well because something seem to be broken for dream_sapphire, and it is not present in the devices anymore.
I've tried searching for compilation errors, and general build questions/instructions here and on cyanogen's forum, but looks like CM6 is not very active these days.
Can someone point me into right direction where to search for relevant info on building it? Would getting a proper revision help or should I combine stuff from several branches to make it work?
I've already spent quite a lot of time figuring out how build is being configured and how things stitch together but without much progress on the actual build.
And with times required to sync a whole repo and build it, it is becoming frustrating.
Any help would be muchly appreciated!
Regards,
Oleg
It's dead.
I also wanted to make a cm6 rom, but I couldn't get anything to work.
I got the addresses all updated but it looks like a bunch of the files have completely dissappeared. You may be able to make it skip those, but then it may not work completely.
Go for AOSP?
Now that's a shame. I wanted to build CM because I'm familiar with it and the other thing is that they have reasonable instructions about building it. But at least I don't need to waste my time trying to figure out how to fix it.
In fact I don't need any extras they provide, a bare android would suffice to me if all the sensors and connectivity would be available. But I'm not familiar with internals of building vendor specific stuff. My understanding was that I need proprietary parts together with AOSP to build a working ROM and that's one of the things CM guys did. Correct me if I'm wrong.
aliher1911 said:
Now that's a shame. I wanted to build CM because I'm familiar with it and the other thing is that they have reasonable instructions about building it. But at least I don't need to waste my time trying to figure out how to fix it.
In fact I don't need any extras they provide, a bare android would suffice to me if all the sensors and connectivity would be available. But I'm not familiar with internals of building vendor specific stuff. My understanding was that I need proprietary parts together with AOSP to build a working ROM and that's one of the things CM guys did. Correct me if I'm wrong.
Click to expand...
Click to collapse
Nope AOSP is as easy to build now
Go to the android site and follow directions
Google for "build android"
At the part when doing repo init you need to get the right branch
Go to "build for devices" then scroll down for recommended branches and look for the dream
One thing you'll need to do differently is do "make otapackage" instead of plain "make"
And once that's done you'll need to tweak the zip and get rid of the "recovery" folder and tweak the updater-script
Oh yeah, and I don't know exactly how you would do this part, but you'll need to get the source for a newer kernel in there, like ezterry kernel and use it with 2708+ radio/spl
Unless you wanna use the AOSP kernel & spl & radio which is old
What I did is just flash his kernel after the rom, but you want to do kernel stuff so yeah...
Sent from my HTC Dream using Tapatalk

Categories

Resources