yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] pyrorob:
omfg not this sh*t again..

i defer you to this:

http://xdaforums.com/showthread.php?t=981881

hell, go read cmylxgos thread, hes using my fixed apk..

and one of the people collaborating with us on this is cmylxgo along with g.lewarne,dandiest and a few others should be contributing too..
[HD2 Android NAND Development] pyrorob:
ok, anyways.. i have been pouring over smali files for days, trying different files in lib,bin and from looking at the log, my current guess is that the issue lies with the recording of audio when you hit record, which it runs into an error when it tries and crashes the apk.. i dont know if thats correct and im not sure what needs to be done to fix it, but thats why we have a dev thread for eh?
[HD2 Android NAND Development] tigerz0202:
How about 720 recording ...is it just not possible cause I figured someone would have figured this out by now
[HD2 Android NAND Development] pyrorob:
well, that isnt something i believe that can be done at the moment, but i do believe it is possible and from what i have read its mostly a kernel issue, seeing as how wp7 can do it on our hardware and thats all software..

but before we even approach that here, i would like to get just basic recording working with the newer camcorder function..
[HD2 Android NAND Development] tigerz0202:
Which apk is the one with all the boxy border .....I hate that one, the one that comes with cmyxlo builds is the one I would love to have in my cm7 rom I'm currently on. And will it install
[HD2 Android NAND Development] pyrorob:
the boxy border? i have not seen that.. and the one in cmylxgo's rom is of course, the older one with the working camcorder function..
[HD2 Android NAND Development] tigerz0202:
Its got a grey border around the screen. Some devs skin it some don't
[HD2 Android NAND Development] inconceeeivable:
What about A/V sync in Sense builds? I've been flashing and flashing, and have yet to find a truly working camcorder in this regard? Is this likely to be fixed?
[HD2 Android NAND Development] pyrorob:
well, who knows? maybe the different version of the camcorder could fix it? who knows until we get it working...
[HD2 Android NAND Development] TheiPhoneKiller:
i think people are more likely to be using the camera so if we get a camera,it will be a big breakthrough and then the camcorder will probably come after you figured out the camera,keep up the hard work :D
[HD2 Android NAND Development] flow68:
Keep up the good work ! And this thread deserves to be in the stickies !
[HD2 Android NAND Development] jonboyuk:
Finally, I'm glad to see that you've taken the initiative to get this moving. Can this also apply to the currently non-working camera that appears in the new Gingerbread Sense build by iMilka (and for other future builds)?
[HD2 Android NAND Development] pyrorob:
well, who knows, what i would like to see is people posting logs from alogcat at the time the try to run the camera (if it fc's as soon as you open it) or when they hit record (if it fc's there)

i dont know what the issue is with the gb camera (does it fc on open?)

but i wouldn't mind if this say, became the thread where we work out camera issues on all builds

and if enough people posted log snippets, just maybe we can find a commonality and that would head us in the right direction..

as it stands im figuring that the issue lies in the kernel or the libs, with the kernel looking more likely, im figuring it needs updated code to be compatible with the newer cameras and more then likely if we can get the newer camera working here, then the gb camera would also..
[HD2 Android NAND Development] rasumia:
logcat

here i have attached the logcat. this is my first time. so im not sure if ok. i have started the logcat and then i click the camera then it did soft reset and reboot i close the logcat.
[HD2 Android NAND Development] pyrorob:
what camera apk is this and what rom?

and do this when you post these, look at the time on your watch or computer when you hit record and mention that. as long as its set the same as your device (your pc should have its clocked auto synced just like your phone so its times should match). this way there wont be a need to do a bunch of fishing for the error in the log.. oh, and set your log type to long under alogcat preferences..

edit: ok i see this is the gingerbread rom..

and wow lots of permission errors and a java failed binder transaction then all your services die..

and another odd, it seems to be connecting to htc database servers to check for updates..
[HD2 Android NAND Development] bartass127:
camera

Sooo.. for ex. I have frankinstein droid 1.5 rom, when i hit record it doesn't work, and i must reboot my hd2.

What i wanna install ? :o
[HD2 Android NAND Development] pyrorob:
did you install the htccamera non working vid?
[HD2 Android NAND Development] rasumia:
this is [11 MAR] imilka's Gingerbread Sense v0.1 [Desire S][Sense 2.1+Android 2.3.2][K:tytR6]

and here is apk attached.

please let me know if you need more info. thanks ;)
[HD2 Android NAND Development] Mikenif:
FYI the device that apk originates from has a front cam so it may be useless
[HD2 Android NAND Development] pyrorob:
actually, from what ive read, the camera software queries the driver which tells it what hardware capabilities the device has (such as if it has a front cam) and then the options or features for those are available in the camera software, for example i do believe that all the camera apk's out there that run on the hd2 are front camera compatible, but since we dont have one, the options for that are hidden..
[HD2 Android NAND Development] rasumia:
Was the logcat helped in anyway? Please let me know if u need more data...
[HD2 Android NAND Development] pyrorob:
well, it seems that its a diffrent set of errors thats causing the crash on the gb sense build, my guess is that other things have to get stabilized before the camera will work on that build..

but really i would like to get the version im working on fixed before we move onto other builds/versions..

one suggestion i have.. try to do a fix permissions using cmw on that build and see what happens.. look at my other post...
[HD2 Android NAND Development] rasumia:
Thanks. I will look into it today.
[HD2 Android NAND Development] pyrorob:
ok, so just wanted to post one update (its not very helpful but its something) ok, normally with the non working vid camera apk, when you hit record it locks up the camera so you cant even use it anymore (like if you were to go into camera instead of camcorder) and theres something thats running in the background causing a whole bunch of lag and gets the phone hot, the only way to resolve it is by rebooting, well by using a different version of libOmxVenc.so in the lib directory, teh camera still fc's, but it doesnt lock up the app entirely, doesnt cause the lag and therefore doesnt require a reboot.. so like i said not a great deal helpful but its something..
[HD2 Android NAND Development] aread22:
Hello,

I would like to help out with this, what tools do you use to recompile the smali files into an apk? And what frameworks will I need to do the recompile?

Thanks
[HD2 Android NAND Development] pyrorob:
search for apk manager (updated: look at third post), and i dont even touch the framework when i recompile and it runs just fine (save for whatever wasnt working to begin with)
[HD2 Android NAND Development] pyrorob:
ok, so i found this camera where its specifically stated that it fixes teh crash on share.. http://code.google.com/p/warm-z-two...runk/system/app/HTCCamera.apk?spec=svn51&r=51

but when run on our hd2's it just crashes at startup..

View attachment HTCCamera.apk

now looking at the decompiled smali code, the only difference is the deletion of 1 line in CameraThread.smali, but for some reason it crashes on our device?!?

but at least, maybe this will give us an idea of which direction to look..
[HD2 Android NAND Development] aread22:
pyrorob,

Do you sign the HTCCamera.apk before you push it back to the phone?
[HD2 Android NAND Development] WarlockW:
Just wondering .. did you try replacing the missing line and compile .. see if it works ?

You Do not say if you did ..
[HD2 Android NAND Development] white-energy:
Maybe we can put the old libs (Sense HD) to the new Sense.. and replace the new Camera APK with the old (sense HD) one.. looks logical to me.. i'll try this.
[HD2 Android NAND Development] pyrorob:
no.. thats why it was pushed.. all that signing would let me do is install it as a normal apk instead of as a system apk.

yeah.. then it would be exactly the same as the other apk...

let me know how that works.. sounds interesting, i have been trying everything i can think of including changing libs.
[HD2 Android NAND Development] aread22:
pyrorob,

What build did the non-working camera.apk come from?
[HD2 Android NAND Development] dungphp:
Can you try modify same this thread ?!
[HD2 Android NAND Development] pyrorob:
this build has it: RUU_Ace_HKCSL_CHT_1.84.832.2_Radio_12.28g.60.140f_26.05.05.27_M3_release_170793_signed.zip

yeah i tried this, even with the working vid cam, it made no difference...
[HD2 Android NAND Development] aread22:
I fixed the FC when trying to send within the camera app. Try this apk out and let me know how it works. We should have a fully working camera now

HTCCamera.apk

* Changed the link from rapidshare to xda, Thanks pyrorob
[HD2 Android NAND Development] rafpigna:
We really need a dev section on this forum, where only "devs" should be allowed to post.

It's incredible how any "dev" thread transforms in minutes in a thread with requests of functionalities or other unuseful posts to the topic :(
​
[HD2 Android NAND Development] pyrorob:
um.. this is odd... ok, the camera works, the share works, but, the camcorder doesnt. ive done a compare on the decompiled files in your apk and compared them to the working vid apk i posted.. and they match...?!?!?!?!???? could you explain to me what you did and how its possible all the crc32 hash values for all the files match?

and maybe some extra info from you, besides of what the fix is, such as what rom your running.
[HD2 Android NAND Development] aread22:
pyrorob,

Video is working on my side, I can even share it too!

I am using this rom: http://xdaforums.com/showthread.php?t=915159

I traced through the code and noticed that this function was bombing out in IntentManager.smali

So going into the /rotate folder and comparing the files to the non working vid apk, I noticed RotateHtcAlertController$AlertParams$2.smali and RotateHtcAlertController$AlertParams.smali were different, so I copied over the files and the share menu worked but had some weird handles on the side of each items. Those were fixed by copying over IntentManager$SetasAdapter.smali and IntentManager$SharedAdapter.smali.

To be more precise, this is the one line in RotateHtcAlertController$AlertParams.smali that fixed the share menu:

as that is what it is in the non working video apk.

Also, to make sure nothing got corrupted when I uploaded the file. I just downloaded it from rapidshare and pushed it to my phone. Everything works in the camera/camcorder app for me (Except 720p Recording)
[HD2 Android NAND Development] inconceeeivable:
Any improvement with A/V sync with the now working cam? Or is A/V sync more of a library problem? Excellent work nevertheless, sir.
[HD2 Android NAND Development] aread22:
I am not 100% sure, but I would think that would be a library/kernel problem as we would need better optimized drivers etc. Yell at rafigna to fix that! J/K his kernels are really good!
[HD2 Android NAND Development] rafpigna:
if the rom are you using is using and oldcam kernel or has no links to the camera hardware in init or somehwere else, you can have this issue.
[HD2 Android NAND Development] Dizzle:
Is this confirmed working? The download is not available on that rapidshare link anymore.
[HD2 Android NAND Development] pyrorob:
well, out of everyone here im 100% sure you can be the one to answer what the rom im using is using, sine the rom im using is your rafdroid hd 4.0.2!

heres that apk, View attachment HTCCamera.apk
[HD2 Android NAND Development] aread22:
pyrorob,

Were you able to get everything working on your side?
[HD2 Android NAND Development] mikeysteele:
That Camera works fine for me, both sharing and Camcorder. I'm running RAFDROID 4.0.2.
[HD2 Android NAND Development] pyrorob:
not yet, im going to do a compare between cmylxgo's rom and rafpginas

that im running and see where the difference lies, which is odd since they both use the same base..
[HD2 Android NAND Development] pyrorob:
huh, what? ..... that is odd.. im wondering whats happening in my phone thats making it crash on me then..
[HD2 Android NAND Development] aread22:
pyrorob,

In this post (http://xdaforums.com/showpost.php?p=12079424&postcount=28) you said you installed a new libOmxVenc.so. Did you try putting back the original one rafdroid came with?
[HD2 Android NAND Development] WarlockW:
Nice Job!

Confirmed Sharing is working On ..

[16.MAR.11][ZIP][LEO512][LEO1024]CMYLXGOs Stock Desire HD(2)[RUU1.84][RAFPIGNA 1.8OC]

http://xdaforums.com/showthread.php?t=915159

Nice Job!

Made a Colorized Ver If Anyone wants It ..

Connect Phone to usb - Use Charge Only ..

Run The camera.bat

Reboot if needed
[HD2 Android NAND Development] vlad48:
Confirmed Sharing is working On ..

[DL Desire v4.32][kernel:freak] [RUU 1.84]
[HD2 Android NAND Development] AirforcProductions:
the apk posted a few pages back for the working sharing camera..is it possible to drop it into the desire hd build with sense 2.1? or is it a different structure in the gingerbread sense builds?
[HD2 Android NAND Development] pyrorob:
well, im doing a reflash back to stock rafdroid, since after restoring all teh files i had changed it still was giving me the issue..

if i can ask, how did you figure out what smali file was throwing up the error? do you have some tool besides alogcat? cause i poured over those logs and i couldnt get as accurate as you did..
[HD2 Android NAND Development] pyrorob:
wow, ok so.. i did a fresh restore and now its fully working, nice.. good job man, if you could, like i asked in the previous post, could you lend us some of your knowledge about how u diagnosed this?

OK, so... next issue we face is getting 720p recording going:D
[HD2 Android NAND Development] WarlockW:
Dam .. we have some smart people here on xda :)

Amazing how far we have come in just a few short months ..
[HD2 Android NAND Development] aread22:
No tool, I first read the logs and found out the last line being printed out before the app would force close. From there, I just went line by line putting print statements after everyline until I ran across the troublesome line of code. I will make a more detailed post when I get back home.
[HD2 Android NAND Development] pyrorob:
wow, you sir are a jewel for this site. thank you.

i just hope everyone sees how this has played out, with skills and knowledge like this and making it available to everyone by posting it, it is actions like this that move this site forward and beyond what aspirations we have. so thank you again sir.
[HD2 Android NAND Development] WarlockW:
+1 On that For Sure ..
[HD2 Android NAND Development] pyrorob:
so, besides getting 720p going now, i also would be interested in getting that newer apk working, since it has that nice self portrait feature, maybe that would be next?
[HD2 Android NAND Development] sagarjawaress:
thank you so much sir!!

waiting for 720p magic..
[HD2 Android NAND Development] Giblet-dono:
Soooo Tell us all, on which build (s) Does this work..
[HD2 Android NAND Development] lukesan:
Runs perfect on Rafpigna's 3.1 with 1.9 Kernel

Is it me or does the camera feel alot faster and more responsive?

Update : OO just checked some photo's on my laptop. Seems like landscape is displayed as portrait

Update 2: Now it does it right.... weird
[HD2 Android NAND Development] pyrorob:
wow, wow and wow, damn... to be honest im no programmer, the most i know of is xml, so i never would have thought up to approach this like that.. very innovative.. i just felt like i was poking in the dark trying to get this resolved but, hell, if enough people can take this and learn from it, im fairly certain a whole range of issues could be worked out here in droid land..

would you be interested in maybe looking at that newer cam (with broken video) and at least telling me where its bombing at? i know about as much about java as i do about whats on the other side of the universe, so you my friend, are my greatest hope..
[HD2 Android NAND Development] aread22:
I will look into it, unfortunately I have to study for exams so I can't get to it right away. But, I am confused...isn't the self portrait for front facing camera phones only? The HD2 doesn't have a front facing camera...and if you try Motomans Mytouch 4G rom on the HD2 - which has working front facing camera button - all that happens when you click the button is it lowers the resolution since most front facing cameras are VGA.
[HD2 Android NAND Development] pyrorob:
actually, since the hd2 has a rear cam only what it does is wait till it detects a face in the image and automatically snaps the photo.. its fairly handy but, actually i did notice that, this older one does have that feature, and unlike the newer apk it is able to detect 2 faces, so this older one might be better..

and also, i did a re-compare on the files in the apk's and finally telling it to do a binary compare, it showed me the changed files.

maybe instead of the newer apk working, we focus on 720p? also, i would recommend you setting up a paypal donate link, since if you can help get that working, i would bet there would be a nice sum of donations flowing your way :)
[HD2 Android NAND Development] Daekin:
will this work on gingerbread with sense? (desire S or desire hd)
[HD2 Android NAND Development] pyrorob:
no, froyo only
[HD2 Android NAND Development] HC4Life:
Hi,

How can i use this?

Only replace the HTCCamera.apk on the first post for the original one?

I'm using Coredroid DHD rom.

Thanx ;)
[HD2 Android NAND Development] pyrorob:
ok, what? you push it to /system/app/ unless you are using a squashed fs... then you do it the way the chef instructed.
[HD2 Android NAND Development] HC4Life:
Right.

I' ll do that.

Thanx ;)
[HD2 Android NAND Development] Jumzesco:
I used terminal emulator

cp /sdcard/HTCCamera.apk /system/app

it appeared in the menu and forcecloses while trying to run it
[HD2 Android NAND Development] criszz:
excelent . works great on imilka ram hd.
[HD2 Android NAND Development] pyrorob:
what rom are you using?
[HD2 Android NAND Development] Jumzesco:
TyphooN CyanogenMod 7 RC2+ v2.7.X

is that for sense only or something?
[HD2 Android NAND Development] tobiascrystal:
Works like a charm on CMYLXGO ROM, great work.
[HD2 Android NAND Development] Rando81:
can you please tell me how u installed it
[HD2 Android NAND Development] pyrorob:
ok, so you know how like 4 posts above yours i stated that its for froyo? which is android 2.2? your running cyanogenmod 7 which is clearly stated on its thread that its gingerbread, android 2.3.3. and not to mention that this is a sense camera, not stock... thats why we worked so hard to get the share and set as fixed..
[HD2 Android NAND Development] criszz:
extract root.zip on sd card and reboot
[HD2 Android NAND Development] andreivibefm:
this apk works on coredroid 1.5? the rom is based on 1.84..
[HD2 Android NAND Development] pyrorob:
then... yes.
[HD2 Android NAND Development] Rubanzip:
any improvement in camera clearity
[HD2 Android NAND Development] pyrorob:
what? clean your camera lens.. you cant improve it further then what it is, unless we get 720p working...
[HD2 Android NAND Development] Rubanzip:
camera works amazing good work but auto back light is not working until make it to sleep and wake up can you please fix it
[HD2 Android NAND Development] pyrorob:
um,.. i dont think thats the cameras doing..
[HD2 Android NAND Development] criszz:
no such a bug here.
[HD2 Android NAND Development] harpss1ngh:
The attached APK file doens't work for me. I keep getting an "Application not installed" error. Am I doing something wrong? I'm running RAFDROID 4.0.2
[HD2 Android NAND Development] curiousGeorge:
Assuming this is a DHD camera (your first post is quite lacking of info, including what on earth you actually "fixed"), did you fix the effects? Most of them don't work. That's the major thing my friends and I noticed with the camera. From what I've seen, nobody really cared about the preview screen (cmylxgo actually released a version that he branded with 'cmylxgo camera hd' where he just hard-coded the preview screen not to show up, which works just fine -- this was before he used your first 'tweaked' version).
[HD2 Android NAND Development] totalcmdext:
Request for Gingerbread Version

Please could you continue your project in order to have a function HTC Camera for new leaked for ACE (Desire HD) 2.3.x Gingerbread version?
[HD2 Android NAND Development] Rando81:
thanx it worked ;)
[HD2 Android NAND Development] mfish123:
Will this only work on sense ROMS

If the answer is yes then now I know why it won't install on Hyberdroid V9. Can someone please confirm that it will NOT work on this ROM due to the fact that it is not a sense rom?

If it should work then here is what is going on. I deleted the stock camera using titanium back up to uninstall it. Then I copied the one in this post to the system/app and rebooted. Upon reboot, the new camera app is in my app drawer but force closes when opening. I even tried to give it all available permissions using root explorer and rebooting again but that didn't help. Attached is a logcat.
[HD2 Android NAND Development] HC4Life:
Anyone got this working on Coredroid DHD v1.5?

Thanx ;)
[HD2 Android NAND Development] pyrorob:
im sorry but it almost sounds like your saying nothing was "fixed" with your fricking parentheses, i dont know, but when i "read" my first post, i can "read" that i stated what was "fixed"... and you know what? people "cared" about the preview screen, i know i did, and i fixed the graphic issues that was there, which is why cmylxgo had disabled it, and now the set as and share works, which is what the goal was, so dont impose what you care or dont care for on others desires, since well, were not all you.

now, the effects? i hadn't realized that they were not all working, ill "look" into it, since we now have someone fluent in java here, but my guess thats post processing, which is tied to the camera interacting with the gpu, so that could be a handful of causes, the lib's, the kernel or something else, we will "see".
[HD2 Android NAND Development] thecrater:
+1

It would be great to have a fully functional HT'c Camera in CM7
[HD2 Android NAND Development] pyrorob:
ive looked at the logs that someone posted previously, you can too and it shows that all the services on the device go to **** when the camera is run, which probably isnt the apks fault, the fixed apk here was possible since the issue was confined to the apk, the camera your talking about's crash seems to be caused by something deeper..
[HD2 Android NAND Development] curiousGeorge:
No, your first post says nothing about what you fixed. The title and contents imply that "everything" minus 720p was fixed, which is obviously not the case. In fact, I invite anyone to read the words "preview screen", "set as", or "share button" anywhere in it. I simply wanted elaboration on what you (or your associates) actually did to the camera and why users should take notice, which wasn't clear from your first post. I also simply wanted to call your attention to the perceived importance of the effects/filters, which many newbies love to bits while at the same time overlooking the absence of a preview screen.

In any case, I certainly don't mean to dismiss any of your efforts on the preview screen (now that I know it's what you did fix)! I'm sure it is useful for some people, and you are clearly among those people. Thanks for looking into the effects! It is much appreciated.