Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,737,068 Members 47,533 Now Online
XDA Developers Android and Mobile Development Forum

[MOD] Modded stock CAMERA apk For Better Image Quality!-ICS ADDED!!

Tip us?
 
Xperia-Ray
Old
(Last edited by Xperia-Ray; 6th May 2012 at 03:55 PM.)
#1  
Senior Member - OP
Thanks Meter 288
Posts: 295
Join Date: Jan 2012
Smile [MOD] Modded stock CAMERA apk For Better Image Quality!-ICS ADDED!!

NEED ROOT!

Update: added ICS+5MP-based on original Arc S apk

Update: added GB apk - fixed 3mp preview width (was same as 16:9 instead of 4:3)
__________________________________________________ ______________
Hi all,
I'm new to android and development and this is my first modded apk

After great thread on ray forum I tried to dig and try different settings.
this is my final version of the apk, I don't think that the quality can be improved any more without modifying camera lib files.

*In this version you will get more camera MP options:5MP 4:3,3MP 4:3(only in GB)
*All the bitmaps changed to ARGB_8888 for better quality.
*Tried to enable inPreferQualityOverSpeed and inDither to the bitmap
*APK icons changed to ICS icons(in GB version)
*Jpeg quality is 100%(In GB version, In ICS it configured via mediaprofiles.xml)
*video bit rate is 6Mbps(stock) - the best value in terms of quality\size

3 versions attached:
GB version(based on Ray's camera apk)
ICS-based on original Arc S apk.
ICS+5MP-based on original Arc S apk+ 5mp option.

The GB version works on my Ray -2.3.4 .58FW.

ENJOY!

NOTE: After days of checking-auto mode takes photos in very high ISO rating(even during sunny day , outdoor!) so try to use manual mode!
Portrait scene takes smother photos and Party scene is for indoor photos and it preffers lower ISO but lower shatter speed (1/16s~1/5s)- so hold still the phone to avoid blurry images

And please make comparison photo before replacing the apk!

Changing jpeg quality in media_profiles.xml:

original:
Quote:
<!ATTLIST ImageEncoding quality (90|80|70|60|50|40) #REQUIRED>
Change to:
Quote:
<!ATTLIST ImageEncoding quality (100|90|80|70|60|50) #REQUIRED>
original
Quote:
<ImageEncoding quality="90" />
<ImageEncoding quality="80" />
<ImageEncoding quality="70" />
<ImageDecoding memCap="20000000" />
change to:
Quote:
<ImageEncoding quality="100" />
<ImageEncoding quality="90" />
<ImageEncoding quality="80" />
<ImageDecoding memCap="50000000" />

Don't forget to Stop camera apk service before replacing it!
~~~~Try on your risk- I'm not responsible for any dmg!~~~~~


thanks to Larut for his first mod 100% jpeg
thanks to hansip87 4 the great thread- made me want to dig in the code! :)
thanks to charlesfu4 for uploading the original arc S ICS camera apk.

If you liked this thread- please hit "Thanks" button
Attached Thumbnails
Click image for larger version

Name:	screenshot_2012-05-02_1803.jpg
Views:	7756
Size:	18.0 KB
ID:	1036635  
Attached Files
File Type: zip Modded-SemcCameraUI-ARC Original.zip - [Click for QR Code] (1.13 MB, 2207 views)
File Type: zip Modded-SemcCameraUI-ARC Original+5MP.zip - [Click for QR Code] (1.12 MB, 3011 views)
File Type: zip GB-Moded SemcCameraUI.zip - [Click for QR Code] (1.28 MB, 2495 views)
The Following 30 Users Say Thank You to Xperia-Ray For This Useful Post: [ Click to Expand ]
 
timpot07
Old
(Last edited by timpot07; 2nd May 2012 at 08:39 AM.)
#2  
timpot07's Avatar
Senior Member
Thanks Meter 35
Posts: 321
Join Date: May 2011
Nice.. I'll try it bro.. thanks..

Edit: Oops.. only for gb. Can you provide apk for 562-ics? Thanks

Sent from my LT15i using xda premium
 
charlesfu4
Old
#3  
Member
Thanks Meter 1
Posts: 31
Join Date: Mar 2012
Is there any method to mod the ISO manually?
or the camera was just as everybody said,it's not capable to change ISO?
 
Xperia-Ray
Old
#4  
Senior Member - OP
Thanks Meter 288
Posts: 295
Join Date: Jan 2012
Quote:
Originally Posted by charlesfu4 View Post
Is there any method to mod the ISO manually?
or the camera was just as everybody said,it's not capable to change ISO?
there is no support in camera driver(***sony)

I will mod ICS version in future if you confirm that the quality is improved.
 
charlesfu4
Old
(Last edited by charlesfu4; 2nd May 2012 at 12:40 PM.)
#5  
Member
Thanks Meter 1
Posts: 31
Join Date: Mar 2012
It seemed that sony have solved the compression problem on ICS
But I just have some question: the photos are now ranged from 1.7-2.9mb on my xperia Arc S ICS ,how about yours(your cameraUI)?
I have once seen that the photos were 5.xmb on my 7MP's digital camera
so ICS still didin't totally solve the problems right?
 
Xperia-Ray
Old
(Last edited by Xperia-Ray; 2nd May 2012 at 12:15 PM.)
#6  
Senior Member - OP
Thanks Meter 288
Posts: 295
Join Date: Jan 2012
Quote:
Originally Posted by charlesfu4 View Post
It seemed that sony have solved the compression problem on ICS
But I just have some question: the photos are now range from 1.7-2.9mb on my xperia Arc S ICS ,how about yours(your cameraUI)?
I have once seen that the photos were 5.xmb on my 7MP's digital camera
so the photos on ICS still didin't totally solve the problems right?
its the same (2~3 mb)
Android sucks because Uncompressed jpeg not supported (jpeg 12 in photoshop or 120%)
and I wasnt able to save as png.
 
WYNNIEPOOH
Old
#7  
WYNNIEPOOH's Avatar
Junior Member
Thanks Meter 3
Posts: 19
Join Date: Feb 2012
Default thank´s

I am interesting in this mod but i have ics.there i can testing if works. i wait for you try to do it in ics and afther i tell you how looks.thank´s.
 
Xperia-Ray
Old
#8  
Senior Member - OP
Thanks Meter 288
Posts: 295
Join Date: Jan 2012
Quote:
Originally Posted by WYNNIEPOOH View Post
I am interesting in this mod but i have ics.there i can testing if works. i wait for you try to do it in ics and afther i tell you how looks.thank´s.
I need the framework files for the apktool to decode ics version
can U upload it? (2 files)
 
charlesfu4
Old
(Last edited by charlesfu4; 4th May 2012 at 09:47 AM.)
#9  
Member
Thanks Meter 1
Posts: 31
Join Date: Mar 2012
Quote:
Originally Posted by Xperia-Ray View Post
I need the framework files for the apktool to decode ics version
can U upload it? (2 files)
OK what do you need?
semcCameraUI.apk and what's the other file?

here I attach the file~Arc S ICS official SemcCameraUI.apk(zip)

Hey guys ,if you want to restore your ics camera please change the files to xxx.apk
And substitute it for the one you installed in \system\app
Attached Files
File Type: zip SemcCameraUI.zip - [Click for QR Code] (1.82 MB, 391 views)
 
Xperia-Ray
Old
#10  
Senior Member - OP
Thanks Meter 288
Posts: 295
Join Date: Jan 2012
Quote:
Originally Posted by charlesfu4 View Post
OK what do you need?
semcCameraUI.apk and what's the other file?

here I attach the file~ICS official SemcCameraUI.apk(zip)
in GB it was framework-res and SemcGenericUxpRes- its in system/framework/

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes