yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Themes and Apps] fenomeno83:
I want try to hack by myself camera to have 44100hz audio ( i prefer 44100 and not 48000, because 44100 is better balanced for quality/noise)

so, camera.apk from 2.3.4 g1 is different and have enhancment, but i don't want lose 44100 audio...for this reason I want to try to hack (I have programming experiences).

But I need to know what tools are necessary to decompile java code, make changes in code and recompile it in a apk. I tried apktool, but it only allow to modify resources. SO, someone can help me?

I think that when a new stock camera.apk is out is necessary hack it to 44100hz.

It's good have official enhancments and hacked audio :)
[Galaxy S II Themes and Apps] abhiwltya:
So ok for the zoom thingy but the prob with fps can be worked on dun u think.me and 3 of my friend using sgs2 are having the prob of low fps so i guess its there.i havent underclocked my cpu and my rom is stock unaltered just rooted.I understand the hardware limitation thats why i was curious to know that can it be modded like when it reaches a min fps cap and still hardware is overloaded it can just start lowering the bit rate and not the fps as bitrate lowering woll take off much load.and yes the low fps is geberally in slightly low light conditions.Bcoz believe me 15-16fps even for a few seconds just fuks up the whole video.
[Galaxy S II Themes and Apps] nitz85:
After i upgraded to KF3 the hx verison wont work for me anymore (worked perfectly before).

After copying the app i can´t find it in appdrawer and it wont install if i try install the apk.

So i went over to the normal hack (the one with sounds) and it worked after installing it.

But when i try enter camera abit later on i get force close before it starts up, and reboot wont help.

Only if i reinstall the apk i can use the camera again, but only for so long. Next time i open camera i get force close again and i have to reinstall.

Anyone know what might cause this?

cba reinstall every time i wanna use the camera

My fw is stock: pda:KF3 phone:KE7 csc:KF1
[Galaxy S II Themes and Apps] zmirburger:
ah okay thanks for the clarification!

the 1080p zoom will be ignored then..

but yeah as the guy above me posted, on low light conditions I get around 14-16 fps.. (at night in my room with one light open) but if this is a hardware limitation as well then I suppose we can ignore that too :p

and no I haven't underclocked my phone. using villainrom 2 with cf root kernel
[Galaxy S II Themes and Apps] Mighty_X:
using kg1 and this camera Mod.

Treble is amplified enormously. Watching a video of a concert or any music which is a bit louder damages my ears...
[Galaxy S II Themes and Apps] mark wild:
!!!

PLEASE, PLEASE, PLEASE...

PLEASE CAN SOMEONE PLEASE WORK ON THE GAIN IN THE AUDIO in VIDEO recording. Please...

...

I want that it doesn't distort the sound in loud environments, like the iPhone4.
[Galaxy S II Themes and Apps] robbiekhan:
Good stuff and no problems on the video on OP :D

The only thing which is probably impossible, but would be nice, is the zoom in on 1080p to be zoomed out like 720p - Can only dream eh :p
[Galaxy S II Themes and Apps] Potatoman:
The password is "potatoman@xda" no spaces, no "

If you still cant open it PM me and i'll reply it to you without password.
[Galaxy S II Themes and Apps] Intratech:
potatoman@xda

edit: The spud beat me to it!
[Galaxy S II Themes and Apps] Jabbypants:
Would love to try the higher bit rate on the video also have you tried increasing the bit rate in 720p or see if you can get a higher fps in that mode.
[Galaxy S II Themes and Apps] stian230:
thanks a lot real good job mate.
[Galaxy S II Themes and Apps] Sakzaki:
Nice Potatoman!

...E46 4doors?
[Galaxy S II Themes and Apps] cmd512:
Awesome, subscribed!
[Galaxy S II Themes and Apps] PoTi_96:
Thanks man :D

would be nice if you can remove the zoom in HD videos... Maybe its impossible but worth a try

btw... I like your name ;) poti is the “short version“ of potatoman ;)

Swyped from my overclocked GT-I9100 using XDA Premium App
[Galaxy S II Themes and Apps] onbacardi:
+1 for the above, something to consider for v2 ;)

+ Upcoming features for v2-

Ability to listen to Music while filming/taking photos!

POSSIBLE- Power key as camera shutter (more research needed before I can commit to this one :P)

THANKS OP. when v2 is released i can easily say this is the best mod for SGS II.
[Galaxy S II Themes and Apps] Fauert:
MOD

I just install`ed the app , GREAT WORK CHEERs ;)
[Galaxy S II Themes and Apps] Potatoman:
Hehe thanks anyway ;D I figured you'd appreciate the password format, your post where you used intratech@xda gave me the idea for it :P

The bitrate increase would have no effect on the FPS, and the 720p and 1080p is already at 30fps, so I didn't see the point. I'll give it a shot tonight, but I have a hunch it'll crash it, since it's a lot of added data transfer to the storage it might get capped by bandwidth (similar thing happened with higher bitrate). EDIT: I'm an idiot, I got it, will upload as a separate version after testing.

Glad you liked, <3

Haha nice :P

As for the zoom, I can have a tinker with it, but the thing is the array in the file I'm editing has no mention of scaling or anything like that. I think it's the fact that the phone has to use a different area of the sensor to capture the HD modes, so it appears more zoomed in than the others. I'll see what I can dig up.

You're very welcome, I apprectiate the comments :) (EDIT- You too fauert, you just replied while i was typing this :P)

Quite a few people seem to want the higher bitrate, so I'll get to work on that and release it later today. I'll make it a separate version so that people who don't want it can use the one I've already released. Then hopefully I can start looking into V2 features :)
[Galaxy S II Themes and Apps] DJViking:
Could you publish the source code for your little hack? Would be nice to see what kind of modification has been done. Not that I don't trust you...:)
[Galaxy S II Themes and Apps] pulser_g2:
You can diff against the stock camera if you wanted, after running through apktool
[Galaxy S II Themes and Apps] DJViking:
Still waiting for my phone so not much familiar yet, but does the downloaded camera.apk contain the source code as well or only byte code?

Didn't Potatoman need the source code to make modifications? If so where is it possible to download it(for the entire phone)?
[Galaxy S II Themes and Apps] Hrti:
Thanks for this great mod, love the sound improvement in videos :) Should have been included by stock IMO considering the hardware capabilities of the phone ;)
[Galaxy S II Themes and Apps] giokou:
Thanks for the wonderful hack!

Was looking forward to it, cause there have been only 3 weeks without my SGS!
[Galaxy S II Themes and Apps] Potatoman:
What pulser_g2 said. Anyone who wants to see the code is free to do so using APKtool, which is also how I got the stock app's code. I used APK tool to decompile the apk, then the MediaRecorderProfile.Smali file from that contains the ByteArray code which I'm editing to perform the mod. Each array represents a resolution setting, and each line corresponds to a different encoder setting or framerate etc.

For more details I suggest you look up rafalense's guide to doing this in the SGS1 forums, it's very detailed. I'd post the link but I can't seem to find it on my phone app.

Agreed, that's actually what motivated me to make it, my school held a leavers assembly where a dear friend of mine sang so beautifully she made the whole hall weep, and I was recording it thinking it would be a nice high quality... all I got was 64kbps/16Khz static-filled GARBAGE! So I figured while I can't go back in time and get the good audio for her performance, I can damn well make sure I don't miss another moment like that again...

You're very welcome :)

Quick update-

Currently testing the High bitrate, High framerate and the High frame&bitrate combination APKs. Framerate mod doesnt seem to be working (though I did start at a somewhat optimistic (ridiculous) 60FPS, so that may be why :rolleyes:

Will try again with ~40fps next, if that doesn't work I'll leave the framerate be, since there's not much discernible difference between 30 and 35fps...
[Galaxy S II Themes and Apps] Potatoman:
Another Quick update, I can't seem to get the framerate working at anything other than 30fps, I think it might be a hardware limitation. Going to test the bitrate mods now.
[Galaxy S II Themes and Apps] DJViking:
Does this modification have any impact on battery usage?
[Galaxy S II Themes and Apps] Potatoman:
I honestly haven't tested it that in depth. Logically speaking, as it's based entirely on the stock apk, any added battery use would be entirely caused by the increase in data being written to the disk while recording video, and should thus be virtually indistinguishable from the stock version (since while recording video even at stock it's a massive amount of write anyway.)

So no, at no point should the app drain your battery more than the stock camera app would have done. :)
[Galaxy S II Themes and Apps] mguel:
+1

not only like iPhone, but like on all other android phones I've tried…

the over-saturated audio has made it unusable to me… I had to start carring my Lumix again to record videos on loud places :(
[Galaxy S II Themes and Apps] Ghazkul:
Is there anyway to get these wonderful mods as a separate app ? This way you can choose if you want to run it or not, instead of replacing stock camera.
[Galaxy S II Themes and Apps] idealforyou:
I hope for higher Resolution Panorama shots. :rolleyes:
[Galaxy S II Themes and Apps] xavman:
something i noticed

Hi,

not sure it's useful but i want to share

i made basic "practical" tests and i noticed that the "upper" microphone produces the "bad" quality sound, compared to the "lower" microphone (the one used for phonecalls) which sounds ok.

does anyone confirm ?

thanx.
[Galaxy S II Themes and Apps] aottesen:
Anyone have a clue why the edited shortcuts NEVER saves?

("Settings"-button, "Edit shortcuts", draw two new shortcuts to camera-screen. All looks good. Close Camera, open it again - voilla, the shortcuts are gone!!)

Also, what is the point of having a panorama-function with less-than-VGA-resolution?
[Galaxy S II Themes and Apps] aussiebum:
Would be nice if someone re-modded the camera.apk based off the KG2 rom. So far I've noticed it doesn't have a shutter sound anymore (only a auto-focus sound), it takes pictures faster (than the current modded camera apk) and has a "take pic" animation to indicate a pic has been taken.
[Galaxy S II Themes and Apps] swatsqad:
can anyone help me, i seem to be retarded because i cant replace the stock camera app with this one while using any explorer.. astro, super manager etc... root explorer force closes tho.
[Galaxy S II Themes and Apps] sicopat:
Hi, if you have CWM recovery, you can flach the attached camera.zip

copy camera.zip in your intenal sdcard

Reboot in recovery mod

select : install ZIP from sdcard > choose zip from sdcard

The camera.apk included is the first link provided by potatoman (not the version no sound at all) if you want to change the camera.apk

unzip and go to /system/app/ change the camera.apk

re-zip the META_INF and system folders in a camera.zip with no compression
[Galaxy S II Themes and Apps] frewys:
100% right way to way to go! Loved it in my sg1!!:)
[Galaxy S II Themes and Apps] hktony:
really?

i thought it is my own problem after flashing the camera.apk

anyway, the mod camera is v.good :)
[Galaxy S II Themes and Apps] Sleepycat3:
Great video quality and audio. However, the shutter lag is much slower compared to KG2, so I had to go back to the original KG2 camera.
[Galaxy S II Themes and Apps] failax:
It works on Cyanogen rom?
[Galaxy S II Themes and Apps] NoOneCanHelpMe:
u meant that there is more lag with this modded apk and that KG2 camera.apk is better?
[Galaxy S II Themes and Apps] NoOneCanHelpMe:
someone has made the volume buttons work for Capture

I thought you may wanna know :)

http://xdaforums.com/showthread.php?t=1183334&highlight=clockwork+mod
[Galaxy S II Themes and Apps] aussiebum:
Yep. Hopefully someone can make a high-bitrate video mod out of the newer KG2 camera apk...
[Galaxy S II Themes and Apps] Potatoman:
I'll be porting the mod to KG2 (or 3) firmware once I'm back from holiday in a couple weeks.
[Galaxy S II Themes and Apps] robbiekhan:
Weeks? ffs man!

Kidding :p

In the meantime the previous one is working fine for me on VillainROM 2.1.
[Galaxy S II Themes and Apps] Potatoman:
Well since all I have with me here in iran is my SGS2, im afraid until I get to england again I can't even start work :P im sure you'll come crawling back to use it anyway though ;D

Nothing is WRONG per say with the original, it still works just as awesomely as it always has, but samsung made some shutterspeed improvements in the KG2 apk. I prefer my mod to stock since the audio is very important to me, but why choose when you can have both? ;D

Also, updated frontpage posts.
[Galaxy S II Themes and Apps] Sleepycat3:
Looking forward to your work when you get back to England!
[Galaxy S II Themes and Apps] mark wild:
This is a matter, i hope, someone will look into. DEV's... We HOPE you can HELP... If you can, PLEASE HELP.
[Galaxy S II Themes and Apps] Mighty_X:
Haha! Both versions damage my ears... But the one even more than the other... :D
[Galaxy S II Themes and Apps] R3wt3d:
Hi

Is there any way to change language?

Would like to add Japanese... thanks.

FYI: it's working on SC-02C
[Galaxy S II Themes and Apps] mark wild:
!!!

We need to get attention to this thread... Is there someone else ready to donate, that some developer can fix the issue with sound distortion in the video recordings. Is it the gain level? Is it the format (i really doubt that this is the case)?

...

Other android devices don't have this problem, so it is not androids fault and there are applications in the marketplace, who can record any very loud environment without distortion, SO, this is not hardware limitations.

...

DEVS - PLEASE.

...

I HOPE THERE WILL BE MANY WHO WILL DONATE TO FIX THE ONLY PROBLEM WITH THE MOST POWERFUL PHONE IN THE WORLD.

sorry for caps lock.
[Galaxy S II Themes and Apps] soraxd:
bump ,
[Galaxy S II Themes and Apps] mark wild:
?

What now? :D
[Galaxy S II Themes and Apps] Potatoman:
The distortion people are referring to is not a file format problem, it's just one of the encoder settings. I'll make some test recordings in TapeMachine then look at the audio properties to see what settings it's using, then apply them to the mod in an attempt to remove the distortion.

Gotta say, the posts about donations are making me LOL though. Everyone who has contributed to this hasn't even asked for donations, yet people still seem to think more donations will fix it faster... haha! I didn't put a donate link up on this because I don't want donations! :P
[Galaxy S II Themes and Apps] NoOneCanHelpMe:
exactly. I've fixed so many laptops of friends. havent asked for anything. not everything is money in this world :)
[Galaxy S II Themes and Apps] mark wild:
!!!

O.k. sorry, just this is so important for me. I can't take it that the gratest phone in the world has a flaw this big... this is the only thing that is keeping it to be the best phone in absolutely every aspect there is.

Potatoman - you are the best. Hope you will figure this out.

And, again, sorry.
[Galaxy S II Themes and Apps] starbucks2010:
Boot loop KG6

I'm on Darky KG6 and I tried to replace the camera.apk with CameraNosoundHighMB.apk. After replacement, I lost my camera icon. Then I changed the permission of the new apk but also didn't work, so I tried to install it. Not even after installation I didn't had my camera icon so I tried a reboot. Bad choice, so I got into a boot loop.

Any idea why was this happened?

Thank you.
[Galaxy S II Themes and Apps] shanume:
hehe I didnt have problem at all and I using Litening Rom 5.0 with KG6, but what kernel do u using in darky rom?
[Galaxy S II Themes and Apps] starbucks2010:
SuperCore 1.4
[Galaxy S II Themes and Apps] designgears:
This is interesting

verified false alarm...
[Galaxy S II Themes and Apps] 5hamz:
OK so what does this mean?

Lookout just gave me the same message. I'm on Exynos 3.6 ROM with the speedmod kernel (KG3)!

where is this verified as a false alarm?
[Galaxy S II Themes and Apps] ronak_1078:
I have the same alarm. False is it??
[Galaxy S II Themes and Apps] xinfinityoO:
i think pulsar has contacted lookout..and is waiting for their response plus he also mentioned his going to test the apk (decode/etc)..

lets wait for his findings
[Galaxy S II Themes and Apps] RainesX:
Will this work on latest miui 1.7.29-beta32?

Dont like the miuione :/
[Galaxy S II Themes and Apps] NoOneCanHelpMe:
couldnt find anything on my phone :confused: i guess it must be a false alarm :)
[Galaxy S II Themes and Apps] strazzere:
Hey guys,

I'm one of the security researchers at Lookout. Potatoman's camera app is definitely a false positive for Bgserv.

The issue revolves around the key that was used to sign the application, it is a compromised (private key that was made public on a blog) key which was linked to a large strain of bgserver applications.

We've contacted Potatoman to ask him to use a more appropriate key, and in the meantime, we'll push out an update to suppress this detection. In the meantime, we apologize for the confusion and you can safely ignore the detection.

Though if you continue to use this application with a compromised key, you are opening yourself up to an upgrade attack.
[Galaxy S II Themes and Apps] D79_:
How do i get the camera shutter sound back, i have HX Camera Hack
[Galaxy S II Themes and Apps] marcribe:
Replaced the camera.apk, and all works correctly, but now I have two camera icons: the stock one (Camera) and a new one (Camara).

Looking at the code, I didn't found a correct file for brazilian portuguese (values-pt-rBR). I think that this is the cause of the problem, because in portuguese resource the value for camera-label is "Camara" and in the brazilian portuquese is "Camera". There are any way to correct this?

Thank you very much !

BTW, sorry my terrible English...
[Galaxy S II Themes and Apps] ravian29:
Is it possible to have mode that can add Date and Time on snap and video?
[Galaxy S II Themes and Apps] mguel:
Thanks Potatoman for looking on the over saturated sound issue... for me it's also a big issue (followed from some distance behind by the "ADD" autofocus on videos).

By the way... there is an interesting TED talk on motivation that can address the donation issue :P ( http://youtu.be/rrkrvAUbU9Y )

Cheers
[Galaxy S II Themes and Apps] D79_:
Can anyone help?
[Galaxy S II Themes and Apps] abhiwltya:
Rename the camera.apk to camera.apk.bak and camara.apk to camera.apk

Hehe..alkh halila...!!!
[Galaxy S II Themes and Apps] marcribe:
There is no camara.apk, just camera.apk.
[Galaxy S II Themes and Apps] JF-GINO:
Very important. hope that there will b a fix for focus in video cause my videos of a concert are all blurry. the lights screw up auto focus. everything i use is unusable. Its not my phone as ive tested several. very bad autofocus on this camera module.
[Galaxy S II Themes and Apps] dem000n:
+1. Is it possible to disable autofocus in video mode?
[Galaxy S II Themes and Apps] eitama:
Yep, I had the same very problem, was in Dream Theater concert, when focus is right, the quality is nice (sound is distorted and compressed though), but focus keeps seeking.

Just annoying. I'd focus it myself if I had to!
[Galaxy S II Themes and Apps] JF-GINO:
Disabling autofocus is most likely possible. Hell in another thread someone has re-mapped focus and other functions in the camera app.

Disable to infinity would be the best option if possible.
[Galaxy S II Themes and Apps] NoOneCanHelpMe:
i was just told that on KG5 the audio is 44khz by default :):)
[Galaxy S II Themes and Apps] richyy74:
I just checked it. True. It is 44.100 khz but very low bitrate /63kbit/.
[Galaxy S II Themes and Apps] RainesX:
I know its a stupid thing to ask for but is it possible to have this camera in a flshable zip for other droids like CM7 and miui that dont have stock-camera?

The miui-one realy sucks on way to many levels :(

Sure its pratty fast and so but everything else aint half as good.

So if its possible in anyway im would be realy happy if you could look in to it and if not a zip maby have a guide to what files need to be moved etc.

hope the camera dont have to much problem with the frameworks in miui...

Thanks pretty much desperate for this camera in miui :(
[Galaxy S II Themes and Apps] NoOneCanHelpMe:
So i guess the sound is still very quiet? Or passable?
[Galaxy S II Themes and Apps] richyy74:
Just stating the fact.

As I work as a professional editor in broadcasting I am used to other standards. :-)

I am not an avid recording guy with the SGS and did not even bother to compare it with previous recordings.
[Galaxy S II Themes and Apps] NoOneCanHelpMe:
thanks for the info anyway :)))
[Galaxy S II Themes and Apps] Potatoman:
Replied by pm, but just to clarify this will be dealt with in the new version when I get back. The keys I used were just the first thing I found, like I mentioned this was my first android mod so it really was just a case of me googling how to sign an APK and doing that. Obviously now I know better thanks to you guys so I'll be using a more secure key.

Also, there have been a few new releases since my last post, I haven't been keeping up (internet connections here are RARE...) but I'll be using the latest available version for v2 once I get back. If the new releases are indeed 44.1KHz I'll leave it at that and bump up the bitrate for one version and release another with the 48khz/192kbps mode like v1 had.
[Galaxy S II Themes and Apps] SimpleNick:
And please have a silence version with V2..

Sent from my GT-I9100
[Galaxy S II Themes and Apps] fenomeno83:
very low????????????????!!!!!!!!!!!!!!!

consider 63kbit/s aac is for 1 channel..it is like 128kbps(64x2) aac in a stereo recording...

and consider that format is aac, that get trasparency at 96kbps for channel...

so, 63kbps is a good bitrate (comparing this aac with a classical mp3, it sounds like a 192kbps stereo mp3), and maximum sense bitrate for a mono recording in aac is 96kbps...over 96kbps is only to increase numbers!
[Galaxy S II Themes and Apps] Sleepycat3:
In addition, the newer roms record 1080p at 30fps, whereas the previous month's rom would record at 25fps.
[Galaxy S II Themes and Apps] NoOneCanHelpMe:
since i bought my phone, i've always had 30fps :confused: i got 2 weeks after it was released so i guess i have one from the first batches :)

but nvm, they have fixed it now :P
[Galaxy S II Themes and Apps] cobraromania:
this hack works for my samsung galaxy i9000 ?
[Galaxy S II Themes and Apps] abhiwltya:
Seriously ??I am having the problem of low frame rates i.e. Choppy video.fps drops to 12-13 and the video stutters.so will the new rom solve d problem.
[Galaxy S II Themes and Apps] Potatoman:
Quick update

Landed today, so I'll be starting work tomorrow / the day after depending on when this horrendous jetlag wears off :rolleyes:
[Galaxy S II Themes and Apps] abhiwltya:
Please remove the choppy video recording man....it is so hard to love Hd when the variable fps drops to 12-13 fps...and its on thousand of devices..not just me
[Galaxy S II Themes and Apps] dem000n:
+1 for no continuous autofocus in vide recording mode :)

thanx
[Galaxy S II Themes and Apps] Razer(x):
What about compression at 0% for photos? Like for HTC Sensation

http://xdaforums.com/showthread.php?t=1188310
[Galaxy S II Themes and Apps] NoOneCanHelpMe:
i just checked the uncompressed video of Sensation, I'm so happy i got SGS2 :D

normal 1080p of the HTC is like VGA of the S2 :)
[Galaxy S II Themes and Apps] dickie2007:
I have KG6 running, and if i use the (new, stock) camera after turning down my volume, i get muted sounds... anyone else notice the same??

Dickie
[Galaxy S II Themes and Apps] mentalinc:
Some clever soul has managed to get the power button working as a shutter on the Samsung Infuse 4G. Any chance you could port his code or get them involved here?

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

Thanks