5,603,591 Members 36,083 Now Online
XDA Developers Android and Mobile Development Forum

[ColorOS Camera] Guide to Add 16:9 Resolution

Tip us?
 
distan7
Old
(Last edited by distan7; 30th December 2013 at 04:25 PM.)
#1  
distan7's Avatar
Senior Member - OP
Thanks Meter 137
Posts: 395
Join Date: Mar 2011
Location: Jakarta-Indonesia
Default [ColorOS Camera] Guide to Add 16:9 Resolution

Hi guys,

Since using ColorOS v1.0 the stock camera app is missing an option to take pictures with 16:9 resolution format, but when using other app such as camera fv-5 we can use this resolution.

So I believed this is just a software restriction instead of hardware limitation. After looking inside several .xml files I figured out a way to add back this 16:9 option into Oppo Camera app.

We need to edit two xml files which you can find in /system/etc and their names are :

oppo_camera_dev_config.xml

and

oppo_camera_dev_config_novoice.xml

You can use file editor to edit them, just remember to backup first. Permissions for these files are 0644 with root as owner. You need root access and mount system with rw access first.

Now you only need to add this single line inside <string-array-name="oppo_back_camera_supported_picture_size"> into both files :

<item>2560x1440</item>

Details below :

This is the original content :

Code:
    <!-- Supported Camera picture size for back camera in mega-->
    <string-array name="oppo_back_camera_supported_picture_size">
    <item>3264x2448</item>
    <item>2560x1920</item>
    <item>2048x1536</item>
    </string-array>
And this is after inserting one line :

Code:
    <!-- Supported Camera picture size for back camera in mega-->
    <string-array name="oppo_back_camera_supported_picture_size">
    <item>3264x2448</item>
    <item>2560x1920</item>
    <item>2560x1440</item>
    <item>2048x1536</item>
    </string-array>
Don't forget to reboot first.

And here's the screenshot from Oppo Camera after editing xml files :




Sent from my R819 using Tapatalk
Galaxy Mini S5570 (Retired) - Galaxy Tab 2 7" P3100 - Lenovo P780 (MIUI v5) - Oppo R819 (ColorOS)
The Following User Says Thank You to distan7 For This Useful Post: [ Click to Expand ]
 
franek123
Old
#2  
Junior Member
Thanks Meter 27
Posts: 21
Join Date: Jan 2011
hi,

In files oppo_camera_dev_config.xml and oppo_camera_dev_config_novoice.xml:
changing from "false" to "true" we obtain new features in camera app (slow shutter)
Code:
 <!--camera mode list--> 
   <string name="slowshtr">true</string>
adding <item>rec_hdr</item> and <item>rec_slow_playback</item> inside <!-- Supported Camera mode for back camera --> we obtain new features (hdr movie and slow motion)
Code:
  <!-- Supported Camera mode for back camera -->
    <string-array name="oppo_back_camera_supported_rec_mode">
    <item>rec_hdr</item>   
    <item>rec_slow_playback</item>
Unfortunately, I do not see any difference in recorded movie and slow shutter does not seem to work.

Inside decompiled oppocamera.apk are two files oppo_camera_dev_config.xml and oppo_camera_dev_config_novoice.xml changing the parameters there also do not see any difference.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2013-12-31-16-27-39.jpg
Views:	91
Size:	73.6 KB
ID:	2485839   Click image for larger version

Name:	Screenshot_2013-12-31-16-27-46.jpg
Views:	88
Size:	64.6 KB
ID:	2485840  
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes