Elite Member

Rank: 6Rank: 6

Credits
9989
Device
Redmi 3S
Online time
243 Hours
Send PM

Mi Bluetooth Canon SpeakerMi VRMi HeadphonesUnlock MedalMi HomeMi Yi CameraMagic CubeXiaomi 7th AnniversaryMIUI Devices ContestMIUI 8MIUI 2016Fantastic!Awesome!I Love MIUI4 Million Forum MembersRedmi 3SThanksgiving Day1700K Forum MembersMIUI 2017I Love 2016Happy Valentine's DayDiwali Happy DiwaliMerry ChristmasMIUI Weekly Poll3500K Forum MembersRocket to FutureMIUI Forum AppMIUI 910 Million Forum PostsSuper ThursdayWomen's Day MedalSuper WednesdayCamera Filter Guru MedalMiPopMIUI FollowerStar Of TechnologyMi Lover MedalMi TalentMi Bunny Game Master Forum Contest LoverMIUI Android 4.4 KitKatUpdates LoverAndroid GuruRingtone Star Android ElfInbox ZeroScroll Of WisdomDie-hard MIUI FanDebate MasterMi A1Technology Guru

[Tools, Tips & Tutorials] Enabling Camera2 API in Redmi 3S [Rooted devices only]

[ Promote]
39558 141 |
21:00, Oct-19-2016 | From PC
|
|
Go to reply no.
This post was edited by 1633012781 at 20:56, Nov-30-2016

::Enabling Camera2 API in Redmi 3S ::[Rooted devices only]



There are two methods.
First method uses custom apps like open camera app by google.(working smooth without any major issues till now)
Second method uses the stock camera app itself (can have some bugs)



The android.hardware.camera2 package provides an interface to individual camera devices connected to an Android device.This method shows how to enable camera2 api in Redmi 3S  so you can manually control every aspect of the camera..I've tested it and working great in the device..Also you will get options like video stabilization,manual focus and lots of other features which are not available in the stock camera.This method is taken from the various threads available in the internet..All credits goes to original developers.

Caution: The following method involves editing of system file which may lead to device brick if not done properly.So if you are not comfortable with editing system files don't try it !!! And i'm in no way responsible for the brick..

So let's start...

Method 1
Using custom camera apps ::
1.)You can manually control the various aspects of camera like manual focussing,shutter speed,exposure etc
2.)RAW image format can be obtained(all apps don't work still testing...)   

Step 1:

First go to your root system folder with the root explorer app and open the build.prop file in text editor.


Step 2:

Edit build.prop file.Add  "persist.camera.HAL3.enabled=1" as shown below.Save the file(keep a backup of original) and restart device.


Step 3:

After the system restarts check if it is enabled by using manual camera compatibility test app (can be downloaded from playstore)..If every thing is ok proceed to the next step..



Step 4:

Download open camera app from playstore and install it.Enable  Use Camera2API option as shown.

Done ..

screenshot_1.png

screenshot_2.png

screenshot_3.png

screenshot_4.png

screenshot_5.png

screenshot_6.png

screenshot_7.png

screenshot_about.png


Method 2 (Can have some bugs)

Using Stock camera app :
1.)You can manually control the various aspects of camera like manual focussing,shutter speed,exposure etc
2.)Works much smoother than custom camera apps
3.)You will not receive OTA updates (but can be reverted back if needed)  


Step 1 :


If you already used the first method delete that newly added line in build.prop file ...Else continue to step 2


Step 2 :


Edit build.prop as shown below.
Original
ro.product.name=land
ro.product.device=land

Change to
ro.product.name=gemini
ro.product.device=gemini


build.png


Step 3 :


Don't touch anything else !!!
Save and restart

Now open the stock camera app to see the new manual controls and settings  !!!


camera.png

camera1.png




camera2.png


So you got a much much better camera and see the difference in quality of images even in auto mode  !!!


Credits for this method : Goes to Bharat G  http://en.miui.com/thread-354317-1-1.html  and also  RInzImpulse who showed me the link


Thanks !!!


Updates : Replace gemini with libra for getting the one hand mode  working...
For snapdragon camera app  please visit  my thread   http://en.miui.com/forum.php?mod ... p;page=0#pid7743898
Favorite46 Share

Rated by 6 people   Experience Prestige Reason  

ehsan7715 + 1 Great!
Pablozz81 + 2 Awesome!
Winkl + 1 Thanks!
kulabo + 1 Great!
hdz164 + 1 Great!
RInzImpulse + 10 + 3 Great!

Experience +16  Prestige +3  View Rating Log

Supreme Member

Rank: 7Rank: 7Rank: 7

Credits
161452
Device
Mi MIX 2
Online time
700 Hours
Send PM

Magic CubeMijia VR Play 2Unlock MedalMi HeadphonesMi Bluetooth SpeakerMi  BunnyXiaomi 6 LaunchYeelight Bedside LampMi VRMi Band 2Mi Selfie StickMi Power Bank 10000MAH Mi HomeMi Bluetooth Canon SpeakerMi TV 70Mijia Story TellerMi VR HeadsetMi WiFi Router MiniMi BandXiaomi 7th AnniversaryMIUI 7I Love MIUIFantastic!MarshmallowAwesome!MIUI 8MIUI Devices ContestAnTuTuMIUI 2016Redmi Note 2Mi TVXiaomi Mi 6Redmi Note 3Redmi 2Mi 54 Million Forum MembersMi 4cMIUI Lucky FridayHappy Diwali1800K Forum Members1300K Forum Members1500K Forum Members1400K Forum Members5 Million Forum PostsMIUI SWomen's Day Medal1st AnniversaryXiaomi 6th AnniversaryMIUI Fan From MyanmarMIUI Fan From IndonesiaMIUI World Tour1700K Forum MembersMIUI Forum AppOlympics MedalUEFA EURO MedalMIUI Fan from MalaysiaFan Of MIUI GreeceMIUI 6th AnniversaryMIUI Fan From SingaporeMIUI Fan from IndiaMIUI Fan From VietnamMid-Autumn FestivalHilal Ramadan MIUI Weekly PollMIUI 300 WeeksMIUI Fan From NepalMalaysia AnniversaryFan Of MIUI IndiaDiwali Super ThursdaySuper SundaySuper WednesdayFan Of MIUI RussiaSuper MondaySurge S1Happy Valentine's DayFan Of MIUI BulgariaSuper TuesdaySingapore Merlion Medal3500K Forum Members1900K Forum MembersMIUI Font LoverMIUI 9MIUI PMIUI 100 Million UsersXiaomi 5th Anniversary90000 Forum MembersFan Of MIUI Australia300K Forum MembersMIUI Happy MedalPuzzle MasterFan Of MIUI ItalyRocket to FutureThanksgiving Day1 Million Forum App InstallsHappy New YearMIUI Monthly TalkMerry ChristmasMIUI 2017MIUI Marathon Medal2100K Forum MembersFan Of MIUI BangladeshMIUI Fan from TurkeyI Love 2016Rooster Year of 2017Alpaca Mi Bunny I Love Mi BunnyGamer Mi BunnyMIUI ReviewMIUI Beta TeamMIUI KingMIUI Medals CollectorMi TalentMIUI SuperstarHumor MasterForum Contest LoverMost Active MIUIerMi Bunny Game Master Mi Lover Medal2017 Annual AwardsXiaomi 8th Anniversary25 Million StrongMIUI Weekly Devices Quiz9 Million Forum MembersSurpriseTheme TalentMr. DependableMIUI G+ FollowerTechnology GuruPioneer of MIUI English Forum Updates LoverStar Of TechnologyRingtone Star Android GuruDie-hard MIUI FanMIUI FollowerDebate MasterInbox ZeroMost Popular Forum UserMIUI FB FollowerMIUI Android 4.4 KitKatMi Story TellerAndroid ElfYouth PledgeMIUI ExpertScroll Of WisdomMaster Of TechnologyWallpaper Star

21:30, Oct-19-2016 | From PC
|
Thanks for the share.

Comment

1633012781 thanks for the feedback  12:00, Oct-24-2016

Super moderator

Don't mind me, just go down

Rank: 8Rank: 8

Credits
38436
Device
Mi A2
Online time
1223 Hours
Send PM

Xiaomi 6 LaunchMagic CubeMi Power Bank 10000MAH Mi KeyMijia Story TellerMi  BunnyMi WiFiMi Band 2Mi Water PurifierMi VR HeadsetMijia VR Play 2Mi HomeMi Power BankUnlock MedalMi BandMi Bluetooth SpeakerYeelight Bedside LampXiaomi 7th AnniversaryAwesome!MIUI 2016MIUI 7MarshmallowI Love MIUIFlashholicMIUI 8MIUI 6MIUI 2015Fantastic!MIUI Devices ContestMi Note ProRedmi 3SXiaomi Mi 4Redmi 2Redmi Note 2Redmi 3Mi PadHappy Valentine's Day3 Million Forum MembersPokemon Master MedalMIUI Happy MedalMIUI 9100k Forum MembersMIUI 6th AnniversaryMIUI Fan From IndonesiaMIUI Forum App1500K Forum MembersRooster Year of 2017Mid-Autumn FestivalMIUI 2017MIUI 300 WeeksUEFA EURO MedalMIUI 7th AnniversaryHappy New Year1 Million Forum MembersFan Of MIUI GreeceThanksgiving DayMIUI Fan From NepalMIUI 50 Million UsersSurge S1Xiaomi 5th AnniversaryHappy DiwaliSuper FridayHilal Ramadan 700K Forum Members1st AnniversaryMIUI 5th Anniversary1400K Forum Members1700K Forum Members10 Million Forum Posts2100K Forum MembersSuper MondaySuper Tuesday3500K Forum MembersRocket to FutureI Love 20161 Million Forum App InstallsMIUI Monthly TalkMerry ChristmasPuzzle Master3 Million Forum App InstallsMIUI Weekly PollSuper ThursdayFan Of MIUI Bangladesh1900K Forum MembersFan Of MIUI PolandSuper SaturdayXiaomi 6th AnniversaryMIUI Lucky FridayMIUI 100 Million Users300K Forum MembersMiPopAlpaca Mi Bunny I Love Mi BunnyGamer Mi BunnySummer Mi BunnyMIUI ReviewMIUI Beta TeamDebate MasterXiaomi 8th AnniversaryMIUI FollowerMIUI 8th AnniversaryMi TalentSurpriseMIUI G+ FollowerMIUI Medals CollectorForum Contest LoverMIUI Weekly Devices QuizStar Of TechnologyMIUI Twitter FollowerMaster Of Technology2017 Annual AwardsApp MasterMi Lover MedalInbox ZeroApp TalentApp TalentMIUI Halloween 2017MIUI ExpertMIUI KingMi Story TellerAndroid ElfMIUI FB FollowerWallpaper ExpertAndroid GuruDie-hard MIUI FanUpdates LoverYouth PledgeHumor MasterTechnology GuruMIUI Android 4.4 KitKatScroll Of WisdomRedmi Quiz MasterMi Bunny Game Master

21:50, Oct-19-2016 | From PC
|
Nice share

Comment

1633012781 thanks for the feedback  12:00, Oct-24-2016
Redmi 5 - MIUI 10 Global Developer
Mi A2 - Android One
Hi, Please tag me using @RInzImpulse or use Reply function if you want notify me. Thanks

Supreme Member

Rank: 7Rank: 7Rank: 7

Credits
130650
Device
Mi 8
Online time
70 Hours
Send PM

Mi  BunnyNinebot MiniMi HomeMi BandMijia Smart ShoesMIUI 8MarshmallowMi 5Redmi 3SMIUI Fan From IndonesiaMIUI Lucky FridayMIUI SMIUI Marathon MedalMIUI Happy MedalMIUI World TourMIUI Fan From VietnamThanksgiving DayMiPopIndia Independence DayMIUI 10Scroll Of WisdomMi DropMIUI Weekly Devices QuizMIUI 8th AnniversaryAndroid GuruMi Lover MedalMIUI FollowerMi Story TellerForum Contest LoverMi TalentMi 8

23:09, Oct-19-2016 | From PC
|

After completion exposure can be as Mi4, Mi5 ??

Comment

1633012781 Plz check the updates ...Thanks ...  05:47, Oct-24-2016

Gold Member

Rank: 3Rank: 3

Credits
336
Device
Redmi 4X
Online time
58 Hours
Send PM

MIUI 2016MarshmallowRedmi 3SI Love 2016Android GuruForum Contest Lover

04:02, Oct-20-2016 | From Redmi 3S
|
Cool, let's see how does it work! Thanks a lot!

Comment

1633012781 thanks for the feedback..  17:22, Oct-20-2016

Diamond Member

Rank: 5Rank: 5

Credits
515
Device
Redmi 3S
Online time
22 Hours
Send PM

Mi HomeFantastic!Redmi 3SWomen's Day MedalSuper WednesdayHappy Valentine's DayMerry ChristmasSurge S1MIUI Lucky Friday10 Million Forum PostsMIUI Forum AppRocket to Future3 Million Forum Members5 Million Forum App InstallsForum Contest LoverDebate MasterMi Lover MedalYouth PledgeDie-hard MIUI FanTheme Talent

05:08, Oct-20-2016 | From Redmi 3S
|
thanks. nice share.

Comment

1633012781 you are welcome..  12:01, Oct-24-2016

Platinum Member

Rank: 4

Credits
2293
Device
Redmi 3S Prime
Online time
164 Hours
Send PM

Unlock MedalXiaomi 7th AnniversaryMIUI 2016MIUI 8MarshmallowFantastic!Awesome!I Love MIUIRedmi 3SRedmi 2Redmi 3MIUI S1500K Forum MembersHappy New YearMIUI Forum AppXiaomi 6th AnniversaryXiaomi 5th AnniversaryMIUI 6th Anniversary3 Million Forum App InstallsMIUI 20175 Million Forum App InstallsRocket to FutureI Love 20161 Million Forum App InstallsGamer Mi BunnyMi Lover MedalPioneer of MIUI English Forum Mi Bunny Game Master MIUI 10Debate MasterMi TalentYouth PledgeStar Of TechnologyAndroid GuruInbox ZeroForum Contest Lover

06:35, Oct-20-2016 | Via mobile
|
Thanks, video stabilization maybe worked, i dont know, but this tutorial worked and enabling Camera2 API w/o bootloop and errors

Comment

1633012781 thanks for the feedback  17:23, Oct-20-2016

Gold Member

Rank: 3Rank: 3

Credits
218
Device
Redmi 3S
Online time
49 Hours
Send PM

Mi Power Bank 10000MAH Mi HomeUnlock MedalAwesome!Fantastic!MarshmallowI Love MIUIMIUI 2016Mi 3Redmi 3SMIUI 300 WeeksMid-Autumn FestivalPokemon Master MedalMIUI Forum App1800K Forum MembersHappy DiwaliMIUI Fan From IndonesiaMIUI World TourFan Of MIUI BangladeshDebate MasterMIUI FB FollowerAndroid GuruMIUI Twitter FollowerMi TalentStar Of TechnologyDie-hard MIUI FanForum Contest LoverMi Lover MedalTechnology Guru

11:34, Oct-20-2016 | Via mobile
|
thanks, now my question how to edit dng(raw) from android? im try many apps but always error

Senior Member

Rank: 2

Credits
66
Device
0
Online time
12 Hours
Send PM

Summer Mi BunnyMIUI Follower

11:41, Oct-20-2016 | From Redmi 3S
|
thanks

Comment

1633012781 you are welcome  12:01, Oct-24-2016

Senior Member

Rank: 2

Credits
81
Device
0
Online time
3 Hours
Send PM

Awesome!MIUI 2016Puzzle Master1700K Forum MembersSurge S1Technology GuruMi Lover Medal

12:15, Oct-20-2016 | From Redmi 3S
|
any compare photo or video using stock camera and use this mod?

Comment

1633012781 thanks for the feedback  17:25, Oct-20-2016

Credits Management

Quick Reply Top Return to the list