[Sony Cross-Device General] Rizal Lovins:
Hacking Camera Resolution/MP (More Options)

More Options for Photo (Only work for Xperia 2011 & 2012 Snapdragon S3/Novathor)

For Xperia 2012 Snapdragon S4 and 2013/2014 doesn't work, need to be removing some code in smali, i'm still looking for it :)

1. Go to res/value

open arrays.xml using text editor/notepad++ then find this line

For 12MP Camera

<string-array name="ux_recommended_resolution_array_main_12m">
<item>TWELVE_MP</item>
<item>NINE_MP</item>
<item>TWO_MP</item>
<item>TWO_MP_WIDE</item>

add others line

<string-array name="ux_recommended_resolution_array_main_12m">
<item>TWELVE_MP</item>
<item>NINE_MP</item>
<item>EIGHT_MP</item>
<item>FIVE_MP</item>
<item>THREE_MP_WIDE</item>
<item>TWO_MP</item>
<item>TWO_MP_WIDE</item>

For 8MP Camera

<string-array name="ux_recommended_resolution_array_main_8m">
<item>EIGHT_MP</item>
<item>SIX_MP</item>
<item>TWO_MP</item>
<item>TWO_MP_WIDE</item>

add others line

<string-array name="ux_recommended_resolution_array_main_8m">
<item>EIGHT_MP</item>
<item>SIX_MP</item>
<item>FIVE_MP</item>
<item>THREE_MP</item>
<item>TWO_MP</item>
<item>TWO_MP_WIDE</item>

More Options for Video (Work for all Xperia)

1. Go to res/value

open arrays.xml using text editor/notepad++ then find this line

For 20MP Camera

<string-array name="ux_recommended_video_size_array_main_20m">
<item>FULL_HD</item>
<item>HD</item>
<item>MMS</item>

add others line

<string-array name="ux_recommended_video_size_array_main_20m">
<item>FULL_HD</item>
<item>HD</item>
<item>FWVGA</item>
<item>VGA</item>
<item>QVGA</item>
<item>MMS</item>

For 13MP Camera

<string-array name="ux_recommended_video_size_array_main_13m">
<item>FULL_HD</item>
<item>HD</item>
<item>MMS</item>

add others line

<string-array name="ux_recommended_video_size_array_main_13m">
<item>FULL_HD</item>
<item>HD</item>
<item>FWVGA</item>
<item>VGA</item>
<item>QVGA</item>
<item>MMS</item>

For 12MP Camera

<string-array name="ux_recommended_video_size_array_main_12m">
<item>FULL_HD</item>
<item>HD</item>
<item>MMS</item>

add others line

<string-array name="ux_recommended_video_size_array_main_12m">
<item>FULL_HD</item>
<item>HD</item>
<item>FWVGA</item>
<item>VGA</item>
<item>QVGA</item>
<item>MMS</item>

For 8MP Camera FULL HD 1080p

<string-array name="ux_recommended_video_size_array_main_8m_full_hd">
<item>FULL_HD</item>
<item>HD</item>
<item>MMS</item>

add others line

<string-array name="ux_recommended_video_size_array_main_8m_full_hd">
<item>FULL_HD</item>
<item>HD</item>
<item>FWVGA</item>
<item>VGA</item>
<item>QVGA</item>
<item>MMS</item>

For 8MP Camera HD 720p

<string-array name="ux_recommended_video_size_array_main_8m_hd">
<item>HD</item>
<item>FWVGA</item>
<item>QVGA</item>
<item>MMS</item>

add others line

<string-array name="ux_recommended_video_size_array_main_8m_hd">
<item>HD</item>
<item>FWVGA</item>
<item>VGA</item>
<item>QVGA</item>
<item>MMS</item>

For 5MP Camera HD 720p

<string-array name="ux_recommended_video_size_array_main_5m_fwvga">
<item>HD</item>
<item>FWVGA</item>
<item>QVGA</item>
<item>MMS</item>

add others line

<string-array name="ux_recommended_video_size_array_main_5m_fwvga">
<item>HD</item>
<item>FWVGA</item>
<item>VGA</item>
<item>QVGA</item>
<item>MMS</item>

Save it!!!