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

Search This thread

Xperia-Ray

Senior Member
Jan 16, 2012
349
338
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:
<!ATTLIST ImageEncoding quality (90|80|70|60|50|40) #REQUIRED>

Change to:
<!ATTLIST ImageEncoding quality (100|90|80|70|60|50) #REQUIRED>

original
<ImageEncoding quality="90" />
<ImageEncoding quality="80" />
<ImageEncoding quality="70" />
<ImageDecoding memCap="20000000" />

change to:
<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 :)
 

Attachments

  • screenshot_2012-05-02_1803.jpg
    screenshot_2012-05-02_1803.jpg
    18 KB · Views: 8,338
Last edited:

timpot07

Senior Member
May 27, 2011
323
35
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
 
Last edited:

charlesfu4

Member
Mar 16, 2012
31
1
Is there any method to mod the ISO manually?
or the camera was just as everybody said,it's not capable to change ISO?
 

charlesfu4

Member
Mar 16, 2012
31
1
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?
 
Last edited:

Xperia-Ray

Senior Member
Jan 16, 2012
349
338
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.
 
Last edited:

WYNNIEPOOH

Member
Feb 6, 2012
19
3
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.
 

charlesfu4

Member
Mar 16, 2012
31
1
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
 

Attachments

  • SemcCameraUI.zip
    1.8 MB · Views: 585
Last edited:

charlesfu4

Member
Mar 16, 2012
31
1
in GB it was framework-res and SemcGenericUxpRes- its in system/framework/

don't you need the SemcCameraUI.apk??
and how can you posted your picture on imageshake??
it always appears you didn't login when i post on the forum:confused:

here i upload these two files~
 

Attachments

  • SemcGenericUxpRes.zip
    1 MB · Views: 125
  • framework-res.zip
    6.9 MB · Views: 137
  • Like
Reactions: Xperia-Ray

Xperia-Ray

Senior Member
Jan 16, 2012
349
338
ICS USERS- Please post feedback! is the APK works??? I cant test it my self and it useless to continue modding the apk if no one approves if it works!(more then 10 downloads and no 1 post feedback if the apk works!)

I modded the original ARC camera apk - thanks to charlesfu4.
 

ghekua

Senior Member
Jun 25, 2008
329
70
Hanoi
Just replaced with the modded one, startup more faster but FC when i go to change the resolution :D
 

Xperia-Ray

Senior Member
Jan 16, 2012
349
338
Pictures taken before and then after modding with ICS, only problem is it wouldnt let me install the ICS+5mp apk but i did mod the jpeg compression

Before Mod

b3o6jr.jpg


After Mod

2h6ab0z.jpg

thanks 4 the feedback!
can you attach photos as ZIP? - I need to see the original size photo(you can upload here up to 11MB zip)

And I have noticed that the Before shot was at OFF scene (1/32s ISO 500) and the After shot was at Portrait scene (1/50s ISO 640) so its hard to compare.
Can you take the same photo at OFF scene again(like the Before shot)? - thanks!

and how are you installing the apk? via file explorer(copy/change permissions/replace) or regular apk installer?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 30
    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:
    <!ATTLIST ImageEncoding quality (90|80|70|60|50|40) #REQUIRED>

    Change to:
    <!ATTLIST ImageEncoding quality (100|90|80|70|60|50) #REQUIRED>

    original
    <ImageEncoding quality="90" />
    <ImageEncoding quality="80" />
    <ImageEncoding quality="70" />
    <ImageDecoding memCap="20000000" />

    change to:
    <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 :)
    2
    Pictures taken before and then after modding with ICS, only problem is it wouldnt let me install the ICS+5mp apk but i did mod the jpeg compression

    Before Mod

    b3o6jr.jpg


    After Mod

    2h6ab0z.jpg
    2
    Thanks! great work, i use your camera driver for some time now and i like how good it is (i use GB version). I only have one request :) Could you mark every version with some number or something so i can follow how many versions you have released? :D
    is this v1.1 or 2.0? or 3.0? i dont know what version im using now, should i update or no need ;)
    Thank you! :)

    Ok- if I Will update the apk I will mark their versions
    1
    in GB it was framework-res and SemcGenericUxpRes- its in system/framework/

    don't you need the SemcCameraUI.apk??
    and how can you posted your picture on imageshake??
    it always appears you didn't login when i post on the forum:confused:

    here i upload these two files~
    1
    Thank U.


    Modded-SemcCameraUI-ARC_Original+5MP

    Not work for me.

    Arc 4.0.0 Root.
    replace at
    /system/vendor/app

    after Copy
    Open Camera not show 5M.

    and then Click install apk and clear data
    Camera not show 5M


    How to install ...?

    ----------------
    ok i know, my app file explorer free version can't copy to system file



    Put apk in system\app and set rw r r

    Sent from my LT18i using xda premium