FORUMS
Remove All Ads from XDA
Honor 7x
Win an Honor 7X!

[PORT]MIUI Camera Universal Port

128 posts
Thanks Meter: 75
 
By fxsheep, Senior Member on 19th November 2017, 05:06 PM
Post Reply Email Thread
Xiaomi began to sell its first Android One phone Mi A1, it has original AOSP official ROM,but with a MIUI Camera.This means Xiaomi has ported the MIUI Cam to AOSP ROM,and this enables us to extract and port MIUI camera to any devices on any ROMs (in theory).
And it has been ported by many people to many Xiaomi devices with non-miui ROMs flashed .

However ,that MIUI cam app still needs much device-specific modifications and even needs to install many files into /system with a flashable zip.

It's a long and hard process to port it device by device. It's also needs root and unlocked bootloader to put files into system partition.

So the MIUI Camera Universal Port aims to port MIUI Camera into a common apk file that you just need to click and install.

Currently it's in early stage and have problems using some functions.

Important:This app will not remind you (showing a toast or dialog )to allow permissions.You need to enable all permissions of this app in settings. Go to Settings - Apps ,click MIUI camera and open permissions - enable all.
(Thanks @murali3127 for reminding)


Change log in v0.01
Initial release
Modified code to enable all functions on any device (it will still disable automatically if a function is not supported by hardware)
Modified code to detect ISP platforms automatically (currently MIUI Cam only support qcom,mediatek,nvidia and lead core, if you run it on unsupported platforms such as HiSilicon the app still works but some bugs will never get fixed)
Added some libs to fix bugs
Attached Files
File Type: apk MiuiCamera_universal_port_v0.01.apk - [Click for QR Code] (15.31 MB, 1432 views)
The Following 7 Users Say Thank You to fxsheep For This Useful Post: [ View ] Gift fxsheep Ad-Free
 
 
19th November 2017, 05:07 PM |#2  
OP Senior Member
Thanks Meter: 75
 
More
Reserved
19th November 2017, 05:41 PM |#3  
Senior Member
Thanks Meter: 26
 
Donate to Me
More
I have Redmi Pro, cant install app.
20th November 2017, 10:01 AM |#4  
tasnim_tamim's Avatar
Senior Member
Flag Dhaka
Thanks Meter: 97
 
More
I tested the APK on 7.1.2 AEX ROM. It installs and opens!
But camera fails

Screenshot attached below

Sent from my SM-G530H using XDA Labs
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20171120-145919.png
Views:	402
Size:	27.2 KB
ID:	4337143  
20th November 2017, 10:58 AM |#5  
Member
Thanks Meter: 10
 
More
Quote:
Originally Posted by tasnim_tamim

I tested the APK on 7.1.2 AEX ROM. It installs and opens!
But camera fails

Screenshot attached below

Sent from my SM-G530H using XDA Labs

Go to settings>apps and give camera app all permissions.
20th November 2017, 11:17 AM |#6  
tasnim_tamim's Avatar
Senior Member
Flag Dhaka
Thanks Meter: 97
 
More
Quote:
Originally Posted by murali3127

Go to settings>apps and give camera app all permissions.

It worked!
Setted up all permission and it works without any problem. Flash, camera, video, selfie everything works. It's actually better than Snap Camera that came with my ROM.

Screenshot in attachment

Sent from my SM-G530H using XDA Labs
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20171120-161203.jpg
Views:	364
Size:	40.9 KB
ID:	4337191   Click image for larger version

Name:	Screenshot_20171120-161213.png
Views:	354
Size:	31.0 KB
ID:	4337192   Click image for larger version

Name:	Screenshot_20171120-161224.jpg
Views:	348
Size:	35.1 KB
ID:	4337193   Click image for larger version

Name:	Screenshot_20171120-161310.png
Views:	342
Size:	54.2 KB
ID:	4337194   Click image for larger version

Name:	Screenshot_20171120-161255.png
Views:	336
Size:	236.7 KB
ID:	4337195  
20th November 2017, 01:09 PM |#7  
OP Senior Member
Thanks Meter: 75
 
More
Quote:
Originally Posted by rober788

I have Redmi Pro, cant install app.

Do you have non-miui rom installed,and don't have another camera app exist in system? You don't need it if you have MIUI ROM.
And make sure the existing camera app's package name isn't com.android.camera or it will have problems installing because Android will think this app and your existing app are the same.
20th November 2017, 01:11 PM |#8  
Senior Member
Thanks Meter: 26
 
Donate to Me
More
Does it have the dual camera feature?
20th November 2017, 01:41 PM |#9  
OP Senior Member
Thanks Meter: 75
 
More
Quote:
Originally Posted by rober788

Does it have the dual camera feature?

It should work if other third party cam works.
20th November 2017, 01:58 PM |#10  
Senior Member
Flag Stuttgart
Thanks Meter: 289
 
Donate to Me
More
Doesn't work on Mi5s with LOS15
20th November 2017, 03:21 PM |#11  
Senior Member
Thanks Meter: 26
 
Donate to Me
More
I got FC when activate dual camera on photomode, in video mode is working. (Xiaomi.eu on redmi pro)
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes