[CLOSED][MOD]Google Camera video mod - HTC Desire X

If you are using googlecamera or for example miui camera or any camera app other than Htc stock camera you will notice that maximum video resulution is 352x288. I edited media_profiles.xml so now max resolution will be 720x480. For those who like 800x480 there is mod too.
Just download file and place it in system/etc, just backup old media_profiles in cease to restore it.
This is not flasable zip. Extract it and copy to system/etc

Related

[MOD] HTCCamera.apk tweaked (2048x1152 in 3D) - deprecated

===
Check camera ported from AMAZE 4G at first - it is much better!
===
NOTE! Only for people who know what he do. Please read below.
Tweaked HTCCamera.apk:
1. iso 1250 enabled
2. hdr enabled
3. panorama enabled
4. Resolution for 3D camera is increased to 2048x1152
5. Long Tap to screen makes photo
6. Front Camera 2MP unlocked (but I can't see any difference)
7. Front Camera auto enhance enabled
8. I think, it is not difficult to increase sound bitrate for example to 160/192k. But Is there any sense for it?
There is no option to choose 3D camera resolution, so you always will shoot 2048x1152 with this mod. To check if it works you can upload 3D photo to PC and check it's resolution. Should be:
w: 2048 x 2 (4096)
h: 1152
If you found a bug:
1. Reboot phone
2. Install and run android application "catlog", press "menu"->"Record"
3. Launch Camera and take video till camera FC
4. "catlog"->"menu"->"stop". Log file created in /sdcard/catlog_saved_logs/
5. email me with attached log file: [underscore]iga[underscore] at mail.ru or reply with attached log file in this post.
Method that I have used to install camera:
1. place it to /system/app/folder
2. EZ Explorer, select and press on file /system/app/htccamera.apk
3. install app
4. manage applications/camera/clear data
[Edited]
1. You probably will need to make system partition writable (gain rw access)
2. Link to camera disappears after installing. It is ok. Just remade link from ALL APPS
3. You probably will need to reboot your phone
4. You may try to fix permissions (via recovery or ROM Manager)
Tested only on:
HW: GSM EVO 3D HBOOT 1.007
SW: Virtuous Shooter 1.02, build.prop tweaked for 48MB per app heap.
Warning: I don't have problems with tweaked camera, but be careful! I'm posting camera "as is".
Link: http://www.multiupload.com/RJGK5UEQWI
If camera works as it should (2048x1152), please post/pm me to know. Many Thanks
Credits:
Thanks to m-deejay for great Virtuous Shooter ROM. His camera was taken for base, so Panorama mode and settings with video bitrate are from his ROM. Other tweaks were made by myself.
I can't deodex HTCCamera.apk from CDMA ROMs, so I was unable to take anything from it.
HW information for geeks:
--- 3D Resolution ---
Tried to set different resolutions more than 2048x1152 for 3D.
- 2176 x 1216 - libcameraLN.so says "invalid picture size"
- 2048 x 1536, 2560 x 1920 - mm-camera( 142): do_mmap: pmem mmap() failed: Out of memory (12).
HTCCamera use libcameraLN.so (2D library) for stereo capture.
There is also libcameraSP.so (3D library). It has similar API, but with 3D postfix in API.
--- Burst Mode ---
Burst mode can't be activated with current version of libcameraNP.so.
(If I activate it, I see in the log:
10-14 10:58:43.577 I/CameraService( 4017): enable Burst Mode
10-14 10:58:43.577 I/CameraService( 4017): request picture count 1 max_burst_count -1
10-14 10:58:43.577 E/CameraService( 4017): Invalid picture count: 1)
If anyone have idias or source code of libcameraNP, I will try to fix it.
i cant install it
ROM] Crypt0's RUU V.1.3
thy
hasbai said:
i cant install it
ROM] Crypt0's RUU V.1.3
thy
Click to expand...
Click to collapse
Try pushing it it via adb
have copy it with root explorer
now i have no camera
hasbai said:
have copy it with root explorer
now i have no camera
Click to expand...
Click to collapse
Check if your system partition is mounted for rw access.
1. Did you copied camera to right place ? (for Virtuous Shooter 1.02 it is /system/app/)
2. Did you successfuly installed it (with EZ or any other app)?
3. Link for camera after installing always disappear. Please check Camera in all applications and just remade link on desktop.
partition is mounted with root explorer /system/app/
igor.bezkrovny said:
Check if your system partition is mounted for rw access.
1. Did you copied camera to right place ? (for Virtuous Shooter 1.02 it is /system/app/)
2. Did you successfuly installed it (with EZ or any other app)?
3. Link for camera after installing always disappear. Please check Camera in all applications and just remade link on desktop.
Click to expand...
Click to collapse
hasbai said:
partition is mounted with root explorer /system/app/
Click to expand...
Click to collapse
How about other steps?
How about other steps?
ROM] Crypt0's RUU V.1.3,works for me.
I copied the modded Camera.apk to system/app,via RootExplorer
and then I choosed the same permissions for the new apk
such as in the old
Then did a reboot and no problems!
Ganii said:
ROM] Crypt0's RUU V.1.3,works for me.
I copied the modded Camera.apk to system/app,via RootExplorer
and then I choosed the same permissions for the new apk
such as in the old
Then did a reboot and no problems!
Click to expand...
Click to collapse
thanks for reply
witch permisions pls
hasbai said:
How about other steps?
Click to expand...
Click to collapse
I mean:
2. Did you successfuly installed it (with EZ or any other app)?
3. Link for camera after installing always disappear. Please check Camera in all applications and just remade link on desktop.
Do you see Camera in Menu->All Applications?
hasbai said:
witch permisions pls
Click to expand...
Click to collapse
With RootExplorer go to system/app,then long pressing the app
you have the option to see the permissions for the app.
Remember permissions,then replace the old app with the new
and change the permissions such as in the old.
Reboot and done.
have reboot
and my camera works again
but i dont be sure if its your camerqa app
hasbai said:
have reboot
and my camera works again
but i dont be sure if its your camerqa app
Click to expand...
Click to collapse
Can you launch Camera, switch to 3D and make photo. Than you can open last photo even from camera and press "Menu"->"Details".
Should be 2048x1152 for my camera and 1920x1080 for original Camera.
thy
its your camera
but i have nothing installed
only replaced and overwrited in system/app
and reboot
hasbai said:
have reboot
and my camera works again
but i dont be sure if its your camerqa app
Click to expand...
Click to collapse
At first post,there are tweaks described,which aren`t available
at original Camera.apk
Check original and compare with modded app
igor.bezkrovny said:
Can you launch Camera, switch to 3D and make photo. Than you can open last photo even from camera and press "Menu"->"Details".
Should be 2048x1152 for my camera and 1920x1080 for original Camera.
Click to expand...
Click to collapse
Yes,doing for me Now 2048x1152 at 3D photos.
---------- Post added at 09:22 PM ---------- Previous post was at 09:21 PM ----------
hasbai said:
thy
its your camera
but i have nothing installed
only replaced and overwrited in system/app
and reboot
Click to expand...
Click to collapse
That`s all,now it`s installed
Danke Ganii
It is working!!. 12points to the master !!!!
I just download and install... It works perfect on leedroid
Sent from PG86300

[REQ]SEMCCamera.apk tweaking

Can anyone tweak/mod the default camera.apk from 2.3.4 rom so that it gives full quality...i mean full 5~7 MB image size rather than 0.8~1 MB which washes out the sharpness from images
Sent from my MT15i using XDA App
Have you been able to get better quality photos with other applications? Do you think it is possible? I also expected better quality and bigger pics as it has 8mp
I think just about 3MB image is enough. as images of IP4S, average about 3MB but very detailed and smooth.
devrruti said:
Have you been able to get better quality photos with other applications? Do you think it is possible? I also expected better quality and bigger pics as it has 8mp
Click to expand...
Click to collapse
Ya, i tried vignette app on market(full version) and it gave minimum 4 MB pic in 8Mpix mode with superfine setting
But its UI is very complex and slow, thats why i don't recommend it...
What always happens with me with vignette is-As soon as i adjust the settings, the object changes its position and the shot goes in vain
Sent from my MT15i using XDA App
MaxMedia said:
I think just about 3MB image is enough. as images of IP4S, average about 3MB but very detailed and smooth.
Click to expand...
Click to collapse
I know what you are saying, but try the vignette app and shoot 1 steady object from camera app and vignette app
Both will give same results on device, but as you will transfer them on pc, you can easily spot the difference
Sent from my MT15i using XDA App
I just made 2 photo's
(one with stock app and one with vignette)
vignette is really slow by the way...
Vignette: 5,78MB
Stock: 1,14
but i really cant see any diffrence on my pc,
why would someone want a picture that's 4 times bigger...
Marcell96 said:
I just made 2 photo's
(one with stock app and one with vignette)
vignette is really slow by the way...
Vignette: 5,78MB
Stock: 1,14
but i really cant see any diffrence on my pc,
why would someone want a picture that's 4 times bigger...
Click to expand...
Click to collapse
Try "HDR Camera Pro"
In my opinion Camera360 takes slightly better pictures than the stock cam (with quality set to 90%, not 100% since that forces the same compression as the stock app).
Marcell96 said:
I just made 2 photo's
(one with stock app and one with vignette)
vignette is really slow by the way...
Vignette: 5,78MB
Stock: 1,14
but i really cant see any diffrence on my pc,
why would someone want a picture that's 4 times bigger...
Click to expand...
Click to collapse
No bro zoom the pic to 100% and see the noise level and sharpness in both
Sent from my MT15i using XDA App
As this will only work for rooted phones(as you will need something like RootExlorer to change the file), you probably will have some knowledge in modding your phone, so here is a little How-To to do it yourself(tested):
You need apktool, SignApk, zipalign (search via forum).
- Copy system/app/SemcCameraUI.apk to your pc
- Copy system/framework/SemcGenericUxpRes.apk to your pc
- Copy system/framework/framework-res.apk to your pc
- apktool if framework-res.apk
- apktool if SemcGenericUxpRes.apk
- apktool d SemcCameraUI.apk
- find file "CameraController.smali" in extraced folder "SemcCameraUI\smali\com\sonyericsson\android\camera"
- insert these two lines at line 994 (next line after "setRotation")
Code:
const/16 v1, 0x64
invoke-virtual {v0, v1}, Landroid/hardware/Camera$Parameters;->setJpegQuality(I)V
- apktool b SemcCameraUI
- java -jar SignApk.jar certificate.pem key.pk8 <your new SemcCameraUI.apk> signed-SemcCameraUI.apk
- zipalign -v 4 signed-SemcCameraUI.apk signed-aligned-SemcCameraUI.apk
- copy the new apk to your phone (sdcard!) and name it SemcCameraUI.apk
- backup (copy) system/app/SemcCameraUI.apk to sdcard (somwhere)
- using f.e. root explorer mount system as r/w
- copy new apk to system/app (overwriting the old one)
- change file permissions (use the same ones as the other files in system/app, user needs r/w)
- reboot (not always necessary)
- find the camera icon and enjoy
Pictures are now using JPegQuality 100% resulting in approx. triple image size (from 800KB to 2.4MB in my test image). I'am seeing a slightly increase in picture quality (less artifacts), but don't expect to much (for better results you would probably have to mod the camera driver)...
As you know have a blueprint, you can do it for other FW-versions yourself
frank_harmann said:
As this will only work for rooted phones(as you will need something like RootExlorer to change the file), you probably will have some knowledge in modding your phone, so here is a little How-To to do it yourself(tested):
You need apktool, SignApk, zipalign (search via forum).
- Copy system/app/SemcCameraUI.apk to your pc
- Copy system/framework/SemcGenericUxpRes.apk to your pc
- Copy system/framework/framework-res.apk to your pc
- apktool if framework-res.apk
- apktool if SemcGenericUxpRes.apk
- apktool d SemcCameraUI.apk
- find file "CameraController.smali" in extraced folder "SemcCameraUI\smali\com\sonyericsson\android\camera"
- insert these two lines at line 994 (next line after "setRotation")
Code:
const/16 v1, 0x64
invoke-virtual {v0, v1}, Landroid/hardware/Camera$Parameters;->setJpegQuality(I)V
- apktool b SemcCameraUI
- java -jar SignApk.jar certificate.pem key.pk8 <your new SemcCameraUI.apk> signed-SemcCameraUI.apk
- zipalign -v 4 signed-SemcCameraUI.apk signed-aligned-SemcCameraUI.apk
- copy the new apk to your phone (sdcard!) and name it SemcCameraUI.apk
- backup (copy) system/app/SemcCameraUI.apk to sdcard (somwhere)
- using f.e. root explorer mount system as r/w
- copy new apk to system/app (overwriting the old one)
- change file permissions (use the same ones as the other files in system/app, user needs r/w)
- reboot (not always necessary)
- find the camera icon and enjoy
Pictures are now using JPegQuality 100% resulting in approx. triple image size (from 800KB to 2.4MB in my test image). I'am seeing a slightly increase in picture quality (less artifacts), but don't expect to much (for better results you would probably have to mod the camera driver)...
As you know have a blueprint, you can do it for other FW-versions yourself
Click to expand...
Click to collapse
Could you supply some samples? I'd just like to see whether the capturing of fine detail has improved a bit.
But if we already tweaking, can we port 2.3.4 camera apk to 2.3.3.
I asking because i dont want use 2.3.4...but i want use video recording Zoom
Cheers!
Taavi
Sent from my MT15i using Tapatalk
I will up some shots when i am back at home.
Regarding backporting:
1. Have you tried running the 2.3.4 apk on 2.3.3?
2. I have not tried it, but may be you can just switch framework libs to 2.3.3 just before doing the "apktool b".
Regards,
Frank
frank_harmann said:
I will up some shots when i am back at home.
Regarding backporting:
1. Have you tried running the 2.3.4 apk on 2.3.3?
2. I have not tried it, but may be you can just switch framework libs to 2.3.3 just before doing the "apktool b".
Regards,
Frank
Click to expand...
Click to collapse
Im already tryed....only force close.
Old camera im remove via adb and new pushed via adb...permussions set right and only force close
Sent from my MT15i using Tapatalk
Regarding quality here are some infos from jpegsnoop:
Original apk:
Code:
Filesize: [832205] Bytes
Approx quality factor = 86.93 (scaling=26.13 variance=1.22)
Compression stats:
Compression Ratio: 29.09:1
Bits per pixel: 0.83:1
Modded 100% apk:
Code:
Filesize: [2360386] Bytes
Approx quality factor = 96.95 (scaling=6.11 variance=1.09)
Compression stats:
Compression Ratio: 10.19:1
Bits per pixel: 2.36:1
BUT, the real problem in both files is this:
Code:
Chroma subsampling: 2x2
This means the native driver is using 2x2 chroma subsampling (regardless of compression level). I am not sure if it is possible to change this to 2x1 (like K800i or most digicams use). If it is possible it has to be done on driver level (though i tend to believe this is some hardware limitation).
Background: www#.#impulseadventure#.#com/photo/chroma-subsampling.html and www#.#impulseadventure#.#com/photo/jpeg-quality.html
Example pics to follow when i am back at home....
Hi frank,
As you said that 3 apk files, so i hope you can post them here so that people can just copy and paste them into /system/app and /system/framework
Sent from my MT15i using XDA App

[MOD] Get Image and Sound Quality Increased on MIUI Camera (Gingerbread Only)

Here is the file. (already tested by my self)
http://www.mediafire.com/?5fqkc2ne5zpnqjc
-Unzip first and copy it on internal storage (use root explorer) /system/etc
-overwrite or delete old file
-delete miui camera settings on application manager
-reboot
-open miui camera now and enjoy
Remember, it's only for miui camera on gingerbread !
file updated

[MOD] Camera hack for ICS

Warning: You can do this at your own risk. I am not liable etc etc etc..
I do not own these codes I just copied them or the first idea of modding the camera.
If I used your files or scripts without permission. Sorry. Just want to help.
As I was browsing through some topics here I came across this one by umangleekha (credits to his idea)
So what I did was flash the zip (yeah the image became clearer but the camcorder goes into force close!) so maybe the mod won't work on ICS rom (HepHappy's final rom)
So what I did is make some experimental adjustments (technical way of saying copy and paste ) of words and values from here to here.
After modifying the media_profiles.xml (which was the flash file in umangleekha's zip) still the stupid camcorder force closes.
Then with the idea of backporting omx libs. so why not backport some ideas from gingerbread too?!!
So i grabbed a stock rom from sweetnsour's list in here. and get the european version whatever that is. compared some files here and there and found some additions at the build.prop.
I added these to build.prop
made some changes as of 1/18/2013
Code:
#Image
ro.media.dec.jpeg.memcap=8000000
ro.media.enc.hprof.vid.bps=8000000
#Image
ro.media.dec.jpeg.memcap=8000000
ro.media.enc.hprof.vid.bps=8000000
# camera/camcorder options, [email protected]
ro.media.enc.hprof.file.format=mp4
ro.media.enc.hprof.codec.vid=h263
ro.media.enc.hprof.codec.aud=aac
ro.media.enc.hprof.vid.width=640
ro.media.enc.hprof.vid.height=480
ro.media.enc.hprof.vid.fps=24
ro.media.enc.hprof.vid.bps=300000
ro.media.enc.hprof.aud.bps=96000
ro.media.enc.hprof.aud.hz=16000
ro.media.enc.hprof.aud.ch=1
ro.media.enc.hprof.duration=60
ro.media.enc.lprof.file.format=3gp
ro.media.enc.lprof.codec.vid=m4v
ro.media.enc.lprof.codec.aud=amrnb
ro.media.enc.lprof.vid.width=176
ro.media.enc.lprof.vid.height=144
ro.media.enc.lprof.vid.fps=15
ro.media.enc.lprof.vid.bps=256000
ro.media.enc.lprof.aud.bps=12200
ro.media.enc.lprof.aud.hz=8000
ro.media.enc.lprof.aud.ch=1
ro.media.enc.lprof.duration=30
ro.media.enc.file.format=3gp,mp4
ro.media.enc.vid.codec=m4v,h263
ro.media.enc.aud.codec=amrnb,aac
ro.media.enc.vid.h263.width=176,640
ro.media.enc.vid.h263.height=144,480
ro.media.enc.vid.h263.bps=64000,6000000
ro.media.enc.vid.h263.fps=1,30
ro.media.enc.vid.m4v.width=176,640
ro.media.enc.vid.m4v.height=144,480
ro.media.enc.vid.m4v.bps=64000,2000000
ro.media.enc.vid.m4v.fps=1,24
ro.media.enc.aud.amrnb.bps=5525,12200
ro.media.enc.aud.amrnb.hz=8000,8000
ro.media.enc.aud.amrnb.ch=1,1
ro.media.enc.aud.aac.bps=
ro.media.enc.aud.aac.hz=
ro.media.enc.aud.aac.ch=
ro.media.dec.aud.wma.enabled=0
ro.media.dec.vid.wmv.enabled=0
ro.media.cam.preview.fps=0
ro.media.enc.jpeg.quality=100,90,80,70,60,50
the #image is from a increase your image jpg blah blah
and modify the media_profiles.xml (see attachments)
Code:
As of today 1-18-2012 I decompiled the camera apk, and set the exposure's default to 2! At the xml file. Forgot the exact name. IT WORKS! everytime I open the camera, no need to set it before taking a shot. :) only, it dont work on other cam app like pro capture.
]>
and i think it worked. from 500kb (image size) it goes to 1mb+ for images the (video is crappy though) awesome now? i think
if anyone can create an flashable zip from these it would be awesome!
test too if the image is better
THE ATTACHMENT IS NOT A FLASHABLE ZIP!
it only contains the build.prop and media_profiles.xml
you can copy replace the files using any root browser then make necessary permission adjustments.
Test if this is works.
Hey where to copy mediaprofile file?
Sent from my LG-P500 using xda premium
/etc folder rename the old media profile to media_profiles.xml.backup incase anythng goes wrong
Sent from my LG-P500
its risky i guess ?
fresyk said:
its risky i guess ?
Click to expand...
Click to collapse
Not really. Just incase you dont want the output. You can revert back
Sent from my LG-P500
Works great!
Sent from my LG-P500 using xda premium
this is good if we are assuming that poor image quality depends only on the resolution.
is that the case?
i think something different should be changed.
Just a couple of days ago I've watched my old GB photos. Completely different from ICS ones.
FD1999 said:
Lol, you've 'stolen' the second code from LG Everybody does that
However, even works on my Neo V
Click to expand...
Click to collapse
Really?, it work on p500??
I'm currently trying possible combinations and best setting.
Progress. Got a better audio but pixelated video. With 640x480 res @12fps (details on window)>.>
I'll upload some picture and video from stock ICS rom of hephappy (without tweaks ofcourse) and with the modded one.
One lesson learned. Modifying and restarting phone is tiresome. :banghead:
Sent from my LG-P500
how can I copy these files to the selected folders ?! i couldn't copy them via Root Browser of ROM Toolbox Pro.
SzilagyiTibi said:
how can I copy these files to the selected folders ?! i couldn't copy them via Root Browser of ROM Toolbox Pro.
Click to expand...
Click to collapse
You can extract the zip. Then paste the media one at /etc folder and the build.prop at /system
Sent from my LG-P500
does it work on 4.1.2, Jelly Bean too ?
Sent from my LG Optimus One using XDA app.
testing, it works for my device and no crash met so far
It looks so f**king fine
Sent from my LG-P500 using xda app-developers app

System app structure on Nougat: I'd like to understand

Hello
I come from Kikat to Nougat and I'm a bit lost to transform a user app into a system one.
I understood that there is a folder for each app, and inside it the apk (named sometimes base.apk or an other name) and lib/arm with the libs extracted from the apk.
OK
But some system apk do have libs that are not extracted. This is the case for example with PrebuiltGmsCore. It seems that these apk with libs inside them are not compressed.
So, what is the rule ? Or there are 2 possibilities: libs extracted when they are compressed in the apk, and libs inside the apk when uncompressed ??
Thank you !!

Categories

Resources