yashsingh1/xdaforums huggingface dataset:
[HTC One S] pirlano:
i want to share with your some results :)

i'm currently using decompiled with JAD camera to find some values and i'm using baksmali/smali to make changes (because smali it's 1:1 copy with bytecode and recompiling smali will make no difference with original code, recompiling java can create some differences with old code, it's hard to make future changes)

using baksmali-1.3.3 i found these value:

zeroprobe found photo max size here (props to zeroprobe :D )

\com\android\camera\ResolutionSize.smali

(maybe it's useful to mod lower resolution too, not only 8MPixel)

also there are video bitrate values in:

\com\android\camera\RecordLimitCheck.smali

(maybe we should set the same bitrate value of media_profiles to get better stability??)

also maybe we can increase audio quality, didn't search for that but should be simple

about FPS hacks - Slow Motion etc etc:

of course we need modded media_profiles for 1st fps cap

than we can control fps here:

\com\android\camera\CameraThread.smali

at line 15724 there is: const/16 v16, 0x78 #120 FPS for slow motion

at line 15730 there is: const/16 v16, 0x1e #30 FPS for normal video recording

I also found:

\com\android\camera\component\CaptureBar$14.smali

at line 472 there is: const/high16 v10, 0x4080 #4.0 float multiplier for slow motion 4x

\com\android\camera\component\RecordingTimerUI$1.smali

at line 205 there is: const/high16 v6, 0x4080 #4.0 float multiplier for slow motion 4x

and slow motion resolutions size:

\com\android\camera\MovieModeHandler.smali

at line 1528 there is: const/16 v1, 0x300 #768

at line 1530 there is: const/16 v2, 0x1b0 #432

can be increased to 800x480 without problem, more than this i get a black screen

than i found with static analysis and IDA Pro 6.1 some default camera parameter in lib/hw/camera.msm8960.so and lib/libcamera_client.so

for example in camera.msm8960.so there is slow-motion-x = 04 in 0x000189D4 (slow motion multiplier hardcoded)

and slow-motion-res = 768x432 here: 0x0002D46A (slow motion resolution hardcoded in libs)

still searching where default-frame-rate is hardcoded (default fps is 31, 0x1F), if we found it, we can remove 31fps cap!!!

Trying to debugging *.so libs but my spare time is ended...time to study for last exam and thesis :D

Also we can check all default camera parameters with CameraGetParams app (use GooglePlay! It's free!)
[HTC One S] sushidog:
This thread is really strange, all stuff posted here is already implemented in Miui by default! Where did you got all the code you're proposing?

Sent from my HTC One S
[HTC One S] pirlano:
extract classes.dex from camera.apk than use baksmali to decompile dex to smali

...no MIUI here, only Sense 4 Camera and libs hack...
[HTC One S] zeroprobe:
the Miui rom increases the camera bitrate? Wasnt aware of that.

ahh that will be a modded AOSP Camera. This is for the HTC's Sense camera.
[HTC One S] sushidog:
HTC One S/Ville Miui version (official) is Sense based. You also have a Miui CM9 version but I was talking about the official one.

Sent from my HTC One S
[HTC One S] renehd2:
would be awesome if someone make some samples of the pictures and some videos with this MOD installed to see the improvement..! :D
[HTC One S] klutch:
sounds kinda crazy but i was trying the Zip HQ from my sensation and put it on this fone n it comes out more clearly tho and its HQ Camera For ICS - v1.5 |1080p@40Mbps :o
[HTC One S] stunner2002:
After installing one of the .zips over recovery my camera app is gone. The .apk is in system/app. If i try to install the app manually it says "cant be installed".
[HTC One S] crunchtime85:
Tried the 20Mbps Version yesterday on my way home. It gave me a bitrate of 19.5 mbps an quality was pretty impressive, except of some minor lags!

Take a look if you want to:

https://www.dropbox.com/sh/ubrd6slam3ajytp/f2li24gM9K
[HTC One S] zeroprobe:
Not noticed any lags in daylight myself.

My phone is overclocked to 1.8ghz so maybe it copes with encoding a bit better. Was yours overclocked?
[HTC One S] crunchtime85:
My phone's also running @ 1.8ghz with mdj's Kernel on Trickdroid... But as I said, I'm pretty happy with the quality.

Is it also possible to change camera behaviour in different light conditions? For example changing the auto shutter value when a picuture s taken in low light?

Because when I want to take a portrait picture in low light with flash, the camera generally uses shutter speeds of about 1/30s an iso values < 200.

That's why pictures sometimes get blurry. It would be better if the camera would use a shutter limit of not more than about 1/50s and higher iso values...

But I bet it is very diffucult or impossible to change that?
[HTC One S] DroidXAce:
+1

I totally agree with you.
[HTC One S] alexdiaz:
Issue

Anybody having this issue, when recording in Full HD, then try to take a photo while recording, the camera blocks. You can not stop the recording video or take the photo. You can only exit with home button.

Happens to me in Axiom S 1.5
[HTC One S] itsmikeramsay:
I am. Just recreated it. For now I'll avoid using the screenshot. The recording quality is too good to pass up on 1080p.
[HTC One S] plakers:
Did someone test it on AOSP based Rom? (and get it working?... ;))
[HTC One S] tibere86:
+1
[HTC One S] raikesy:
I doubt it, as the Camera on AOSP ROMs is barely stable and only does 720p at the moment...
[HTC One S] v3n3:
I guess since MIUIv4 for the One S is Sense based ( and uses the Stock Camera App ), this does also work on MIUI ?

EDIT:

No, this doesnt work :-P
[HTC One S] zeroprobe:
Trying to find out whats breaking this.
[HTC One S] zeroprobe:
It's a kernel issue. I had Mdeejays V06 kernel and had the problem.

using DZO's overclocked kernel without a problem.
[HTC One S] skilqki:
Hello guys i`m owner of an ONE S from few days, I wanna get this hack or settings or what ever it is on my S but I`m a bit noobie with the android, and if enyone can help me trough the making of it i`ll we verry glad :) Is there a need of root and custum rom to make all this happen or i can do it on my stock not rooted ?
[HTC One S] DroidXAce:
You have to be necessarily be root and have a ROM Sense (So stock ROM compatible).
[HTC One S] skilqki:
ok so i have rooted my phone i have recovery on my phone nad all is alright now i just have to dl the zip file get it on my sd and flash it from there yes ?!??!
[HTC One S] worms:
I have flash The 20mb pack from cwm recovery But after i cant find camera. Apk

Inviato dal mio HTC One S con Tapatalk 2
[HTC One S] zeroprobe:
I've not tested with CWM, I assume it's ok? All it does is copy camera.apk to /system/app.
[HTC One S] skilqki:
I`m not on CWM i have twarp cwm is not runing on my phone ... but when i instaled the 20 mbps zip can`t find camera app nowhere now i have instaled the stok cam lets hope i get my cam back cuz otherwise i`m fu..... up
[HTC One S] zeroprobe:
You are on a sense rom right?
[HTC One S] skilqki:
yea stok rom can`t find a custom rom for S3 device only for S4 ..... otherwise i was going to install new one i hate stock roms alot of apps i dont need and use ..... but still no roms for my phone :(
[HTC One S] worms:
I have stock rom, rooted But cant use camera.. When i flash The package The camera link is missing

Inviato dal mio HTC One S con Tapatalk 2
[HTC One S] zeroprobe:
Everyone who reports the camera is missing, do you have the S3 One S?

so skilqki has an S3.
[HTC One S] worms:
No, i have an s4.. ;-)

Inviato dal mio HTC One S con Tapatalk 2
[HTC One S] skilqki:
is it possble it`s cuz i`m with stock rom ???
[HTC One S] worms:
Now is ok.

Flashed stock zip

Reboot

Flash 40mb zip

Reboot

Now is working ;-)

Inviato dal mio HTC One S con Tapatalk 2
[HTC One S] skilqki:
I 2 put on the 40mbps zip but i dont see any defenrece in the pic quality and the size of the file is way lower then the 5 mb taht someone told in the posts ... i get file size like 2.8 on 8 Mp and full HD ...... is there a chance that the zip didn`t upgrade ?!
[HTC One S] zeroprobe:
It depends what detail is in the screen. Take a close shot of your monitor to compare, where you can see individual pixels.
[HTC One S] skilqki:
it has to work cuz i got on the stock cam and took some shots the file size was like 1.68mb and with the 40mbps zip the file are with a MB more so zip might be working after all, only i dont see the deference this is my problem ;) :good::good: for the posts
[HTC One S] Elloco305:
I honestly don't see much of a difference when viewing the photos on your phone. But when viewed on a much larger screen, tv or monitor, that's when you can tell the difference.

I for one am a true believer of this mod.

Thanks Devs. :)
[HTC One S] BackDaws:
Bump, sorry but this needs to be on 1st page :)
[HTC One S] Elloco305:
Preach!!
[HTC One S] Bxrxyxaxn:
http://xdaforums.com/showthread.php?t=1765416

they have volume as shutter :p
[HTC One S] pirlano:
yes but volume will not work anymore...
[HTC One S] Elloco305:
I wish you'd help me here. I flashed both zips in that thread. I'm getting NO vol shutter. Wtf. Heavy whackness.

:/
[HTC One S] pirlano:
man this is for One X, not One S, button layout is different...
[HTC One S] Elloco305:
That's retarded. Is the same phone bigger screen. Lol **** it
[HTC One S] stunner2002:
problems:

- had issues installing the OTA Update (2.21) because of an MD5 checksum error

-

DO NOT INSTALL

with 2.21.xxx OTA update on OneS (The update contains a patch for the camera.apk. if you install the MOD the camera.apk wont work at all) pls fix! :(
[HTC One S] pirlano:
when custom roms will be updated to 2.21 base, mods will be updated too :) or post new media_profiles.xml and camera.apk here :)
[HTC One S] |ErosizeD|:
Good work i think my mods make some "effect" in the comunity at all, now people are interesting more in the camera! YEA! ahaha

i have one question " still use the media_profiles hack." did you found the hack?
[HTC One S] pirlano:
it's great to see you here :D

i got one question for you, LG store default camera parameters in a *.xml, but we cannot find it where they are in HTC phones, can you help us? (like default-preview-frame-rate etc etc)
[HTC One S] |ErosizeD|:
Media profiles it's a old file now, just manages the bitrate in some phones, and on some others does nothing...

In part newest phones manages the bitrates on the APK ( also the FPS ) but the limitations are visible at libs level and kernel, so

to unlock the fully potential you must modify those ones ( libs and kernel if they're blocked by default ) if not you just should modify the

apk, and media profile if its needed.

Some phones like Optimus 3D does all the things in libraries ( like the compression ) so can't be removed easly.

If you whant we can talk on skype, or any other msn for deeper discussion.

And i remember to you ( and furher developers ) if you found the hack by any user, you should mention it, you wouldn't loose anything.
The HTC Media profiles hacks was found on HTC Sensation, and still working on newly HTC Phones, how long? who knows.
[HTC One S] Elloco305:
Any chance you can help me.shine some light on how to get Vol+ as camera shutter working here? Thanks.
[HTC One S] |ErosizeD|:
The problem with that kind of modifications it's that not always will work, because vol+ its being used to zoom in right? anyway just replace

the zoom function for the shot one. ( depending of the phone ).
[HTC One S] Elloco305:
I would love to make it take the picture. In which .kl file exactly?
[HTC One S] zeroprobe:
Added Volume+Up as shutter. Not sure which gives off more hand movement, pressing the volume key or the onscreen key.
[HTC One S] |ErosizeD|:
Touchscreen its better than volume button, thats for sure, anyway always a dedicated shoot button its more alike.
[HTC One S] BackDaws:
Hmmm my volume buttons have never adjusted zoom on my phone, when im in camera mode and i use the volume buttons it just turns the volume up or down..... isnt this the same for all of you ?
[HTC One S] Elloco305:
Same here.

I have another question, if its better to have camera shutter as onscreen touch as opposed to vol+, how if possible can we do a -tap anywhere onscreen to take picture-?
[HTC One S] Bxrxyxaxn:
Works on Trickdroid 5 tmobUS thanx alot man works great !!!

Haha u can take pictures while in video mode a lot easier now also
[HTC One S] pirlano:
I know that, look first post at page 5 :)

I've found few values for default parameters in 2 libs (slow-motion multiplier, slow-motion resolution, thumbnail quality, photo quality, etc,etc), but cannot find others (supported frame rate etc etc, i just found names without values, maybe they are here but i cannot find any values, don't know how Arm ASM load/store arrays etc etc)...so i think i have to learn Arm ASM better and search in the kernel now ;)

EDIT:

maybe i found something useful: drivers/media/video/msm/sensors/s5k3h2yx_v4l2.c
[HTC One S] |ErosizeD|:
As i said, everything must be on camera driver, that's all, then just "modify" what's wrong and ready.

The camera apk and libs usually only manage quality and size.
[HTC One S] kvnly2:
Running leedroid v2.1 and the vol+ shutter works when in the camera but on the homescreen it doesn't increase my volume anymore. If i press it while on the home screen it does nothing, but if I hold it down it brings up the camera, then in camera it acts like a shutter button.

Is there anyway to get it act like a shutter button on the camera and volume increase everywhere else? hmm
[HTC One S] Elloco305:
Everything I've read. No. Its either or. Not both.... Yet. :)
[HTC One S] Elloco305:
I just want to say to the OP and anyone else working on this mod. Thank you!!!

I really am enjoying the new vol+ shutter feature.

Thank you guys. :) envy of all my friends who own phones with no camera button

:)
[HTC One S] zeroprobe:
Will need to look into this more.

The volume up knocks out the actual function.
[HTC One S] zeroprobe:
I've fixed the volume shutter bug, will update later.
[HTC One S] Elloco305:
You mean we will have volume button back on everything but camera?

:))
[HTC One S] zeroprobe:
Yep, Volume +/- works as normal when not in camera, In camera Volume + is the shutter.
[HTC One S] Elloco305:
Youre the greatest!!!
[HTC One S] zeroprobe:
Updated, see the front page for changes.
[HTC One S] pyro43284:
I did the update but still can't use the volume up for ringer or media volume... Also thanks for the mod I love it just wish o could get that volume + back
[HTC One S] zeroprobe:
If you used the old volume mod you will need to replace the two files included in the old volume mod zip with the ones from a stock rom.

I'll add a mod to reset it back for those who flashed the old volume shutter mod, will do this later today.
[HTC One S] pyro43284:
Okay thanks I tried to download the stock camera thing that was on the op yesterday but it kept giving me a error on xda mobile... So I did a fresh install of the Rom does the axiom Rom use this??
[HTC One S] Elloco305:
I just installed the updates mod.

Loving the Aroma installer.

Long press on camera doesn't do the burst feature instead it adjust volume.

Not complaining one bit. Just showing my findings.

Loving the feature. Befn wanting it since I got the phone.
[HTC One S] dr_rick13:
mike, am running axiom s, i've never installed a MOD before.. how do I install this one? thanks
[HTC One S] Phantom Pt. II:
Absolutely loving the volume up shutter button. Great!
[HTC One S] Elloco305:
Uhm. Just download the file from op

Make sure to read the op.

Then flash the zip like a Rom on your recovery. :) its super simple.
[HTC One S] zeroprobe:
Ahhhhh, I keep missing things :)
[HTC One S] Elloco305:
So I'm guessing its fixable..? :winning:

:)
[HTC One S] dave il barbaro:
40+jpeg100 works fine.

Sent whit HTC ONE S
[HTC One S] zeroprobe:
I'll try, never used it before, it's quite a nice feature.
[HTC One S] Elloco305:
Thanks. Yes it is.
[HTC One S] skilqki:
dude the dl site is down can`t dl the file !!! ;(

---------- Post added at 01:17 PM ---------- Previous post was at 12:38 PM ----------

i have a bit of a noob ? how can i check the mbps of the files ..... u guys are talking for some big deference in file siza i only have bout 800k to a 1mb file size...... where can i see if i get 13 mbps or 39 ?!?!
[HTC One S] raikesy:
Record a video, then go back to it in Gallery and view the details - It should show you the details of the file including Mbps
[HTC One S] skilqki:
i got 17.24 on 40mbps patch .... this is verry low .... or not ?
[HTC One S] skilqki:
so new test results on stok i get 7 mbps on 20 i get 11 mbps on 40 i get 17-19 mbps on the same capturing state .... is this normal ?
[HTC One S] davwman:
Any problems to report?
[HTC One S] skilqki:
not at all atleast for now .... i just wonder if i did everyting right or there is something wrong with my cam cuz the bitrates and mbps that other guys are coming to are way above my results ..... :confused::confused::confused:
[HTC One S] DroidXAce:
Sorry but, This mod works on the new base please ? (TrickDroid 6.0)
[HTC One S] Elloco305:
I'm currently on 6.2 and it works. This also worked back when j first used it on 6.1

its actually good. If you want the highest MBPs then record a video with a lot of pixels. Do something with grass and spin around a few times while recording. You won't get 40 mbps recording paint dry. ;)
[HTC One S] DroidXAce:
You are based on T-Mobile while. I'm on the base ointernational so 6.0 and not the same base ;)
[HTC One S] davwman:
This mod essentially creates larger files then? I'm a little confused. I know the goal is to produce better images, but with that we are creating larger files, no?
[HTC One S] skilqki:
can someone that has worked on the mod or know the real deal of it .. tell me if realy 40 is to no use of us ??? cuz in one of the posts here a guy told that the hardware can`t make it on 40 mbps and we have to work on 20 better .... let mi know cuz i can`t see any deference and wanna know from the pros if i have to use the 40 or the 20 mbps mode ?!

---------- Post added at 07:11 PM ---------- Previous post was at 07:02 PM ----------

grass or no grass on 40 mbps mode i get maks 19 mbps >...... any sugestions ?
[HTC One S] v3n3:
@zeroprobe

Can you apply those changes also to the MIUI ( Sense based ) Camera ?

For some reason, when I adb push your files, the camera app completely disapears.

I guess the MIUI Team sligtly changed something in the APK, since the size is also different ( comparing MIUI Camera.apk and the "stock" one ).

Would be REALLY nice.

Thank you

EDIT:

Link to the MIUI-Camera.apk:

http://dl.dropbox.com/u/42511583/HTC One S/Camera.apk
[HTC One S] zeroprobe:
Thats weird, I get around 38mbps with ease with not much in the scene. Are you pushing the apk manually? as the Media_Profile file is also required for 40mbps to work.
[HTC One S] zeroprobe:
Can you push files to /system/app without S-Off? Have you tried flashing through Recovery?

I've just done a quick compare and they seem pretty much identical cameras apart from mod changes.
[HTC One S] itsmikeramsay:
You have to resign the apk

Posted With Axiom One S using TapaTalk2!
[HTC One S] v3n3:
Ofcourse I can.

When I push a stock Camera.apk or your modified version it doesnt show up at all.

Only the Camera.apk that came with the ROM shows up.
[HTC One S] skilqki:
i put the zip in internal, go to recovery and install zip with twarp before that i wipe delvick cache... any idea what i`m doing wrong ?
[HTC One S] Zer0r:
Will this mod work with new HTC base 2.21?
[HTC One S] zeroprobe:
I think it does, I'm just comparing the 2.21 Camera to see if there are many differences.
[HTC One S] zeroprobe:
Cameras are the same, so flash away.
[HTC One S] v3n3:
...

Cant you just test this stuff on MIUI ? >.<
[HTC One S] xxvtcxx:
could you explain which "two files" I have to replace? I used the old volume mod initially, tried the new mod, and I'm still having problems with the volume +/-

Thanks!
[HTC One S] Hgaara:
I need a custom rom right? I can't just install this on a stock tmobile firmware even if I'm rooted?

Sent from my HTC VLE_U
[HTC One S] cogodon:
40+100+shutter works.THANKS BOTH :)

Enviado desde mi HTC One S usando Tapatalk 2
[HTC One S] BackDaws:
im using 20mbps+100 and its sweet :)
[HTC One S] zeroprobe:
I've attached a fix for those that need the old Volume Mod fix.
[HTC One S] Elloco305:
What's the difference?

Volume button working vs no volume up/ just dedicated camera button ?
[HTC One S] zeroprobe:
The old mod made permanent changes to the mapping and disabled the Volume Up key completely.

The new mod overrides the key only in the Camera app.
[HTC One S] skilqki:
i can`t get it ..... what are the deference betwin the mods ... i have installed all the mods and there is no deference at all for me .... what is the thing with the volume keys .... what are they doing ??? i`m noob in android deving and i dont get much of the stuf u ppl are whriting :D
[HTC One S] BiteBlaze:
Whenever I install on TrickDroid TMOUS 6.2, I lose my camera app entirely :confused:
[HTC One S] Elloco305:
Whaaa? I'm on the same Rom as you bro and I'm 100% perfect with it. :0
[HTC One S] BiteBlaze:
When do you flash (immediately after flashing the rom, after booting into the rom, etc.) and what mod? I tried all of them and they all eliminated my app
[HTC One S] Elloco305:
I flash the rom. Boot set up my accounts and apps then reboot and flash trick tweaks. Reboot system then back to recovery where o flash three mods at a time.

Of I flash four at once the fourth fails to install so I have to reboot system.

In short I had already set up my device and flashed this, I choose 20mbs+100jpg+volume mod.

It worked at once. No errors or missing apps
[HTC One S] GerBBAR14_c:
I flashed JPG 100 / 20 mbps in CWM and the whole camera disappeared. I had to restore a backup.

Why is that?

I'm running stock 4.0.4.
[HTC One S] TheEndHK:
1. Can you disable the auto max brightness bcoz it really hurts my eyes and so do my battery.

2. Can you disable the 3mins sleep mode(camera screen-off)?

These two problems really annoyed me much.... really thanks you so much if you would like to do this to me
[HTC One S] Will972:
For all who got problem about missed camera after installing, u need to do this :

-Flash stock camera on same mod chose 12mbps

-reboot

-reflash same mod and chose 40mbps and it will work :)
[HTC One S] Elloco305:
I wonder why some were encountering this.
[HTC One S] Will972:
Don't know . I had same problem and this method fix this
[HTC One S] Elloco305:
Thanks for the find bro
[HTC One S] BiteBlaze:
I got it to work.... just set up everything then flashed zerocamera and its fine
[HTC One S] PC Jona:
can you make it so that the volume button only takes a picture?

if i hit it twice the volume thingy pops up -_-
[HTC One S] Elloco305:
Encountered that today also. It works for more than one picture, but you have to give it a few seconds in between photos .
[HTC One S] v3n3:
Someone allready got this running on MIUI ? >.<
[HTC One S] resadent:
Hey zeroprove could you also incrrase 720p recording bitrate ? Don't think I need that much resolution to take a video at all.
[HTC One S] BackDaws:
Omg the camera and video on the official 4.0.4 update and trickdroid is even better quality than this mod and 1080p is still only 10-13 mbps give it a try and the close up focusing bug has gone as well :)

you could increase the bitrate on this version :)
[HTC One S] Elloco305:
But it doesn't have volume button shutter, I bet. ;)

I just flashed miui sense based latest. And I flashed the Rom and camera mod after first boot. It works perfect bro. I chose 20mbs/100%/volume mod
[HTC One S] BackDaws:
I don't use the volume mod, but if he mods the latest version it will :)
[HTC One S] GerBBAR14_c:
Doesn't work. Camera won't start, it only gives an error.

Tried flashing it multiple times, waiting minutes after reboot and so forth. I even flashed the stock in between and in many different configurations.

Won't work.

Stock 4.0.4.
[HTC One S] x1tyme:
I wonder if this work on Android 4.0.4 International?

Love the volume shutter LOL
[HTC One S] v3n3:
It does.

But I read here and there that the "new" Camera.apk that comes with 2.21 is allready better then the last one ( and this mod, quality wise ).