[Locked] IR camera - MI8 - Xiaomi Mi 8 Themes, Apps, and Mods

I've made a modded version of the great "Simple Camera" by SimpleMobileTools ( simplemobiletools.github.io ) to work with the secondary pocophone and MI8 cameras including the front facing infrared camera, you can record videos and take pictures, it's free, no ads, no analytics, and open source.
Working:
- Camera and using back secondary camera or infrared camera on LineageOS/AOSP roms
Let me know if you have problems on any other rom
Not yet working:
it seems it is NOT WORKING on MIUI roms - it seems that MIUI has disabled the camera access on newer versions, maybe with root there is a way to reconfigure miui to allow the two new cameras to work, still investigating, if someone has an idea i would love to know
If someone knows some rom/kernel/root/magisk module developer that may be able to help me let me know and i'll be more than happy to try and make it work on MIUI!
Hope it's useful, thank you!
Download Links Removed
XDA:DevDB Information
IR camera - MI8, Device Specific App for the Xiaomi Mi 8
Contributors
TeraJL
Source Code: https://github.com/jlvcm/Simple-Camera
Version Information
Status: Testing
Current Stable Version: 1
Stable Release Date: 2019-01-04
Created 2019-01-07
Last Updated 2019-01-06

Wow, this is actually very good.
Working fine on Pixel Experience.
Thanks a lot. It is awesome in the dark.

Thank you. It works.
Out of curiosity, any use beyond "trying"?

Can you please post screenshots?

The MIUI Hidden Settings app is able to get access to the IR camera (Hidden Settings > QMMI > 34. Camera Front). Maybe something that you can pursue to gain access to the IR camera on MIUI in your app?

This photo attached I've shot in a 99% dark room.
The background is dark because it's pointing to my face. But if you point to the background ambient it all gets insanely brighter and visible (second attachment)
Of course the quality sucks. But we can clearly see what's in the path.

for me wont work on pixel3rom, only black screen, only work with the back camera

H4R81N63R said:
The MIUI Hidden Settings app is able to get access to the IR camera (Hidden Settings > QMMI > 34. Camera Front). Maybe something that you can pursue to gain access to the IR camera on MIUI in your app?
Click to expand...
Click to collapse
thats true. it works in xiaomi.eu rom also.

H4R81N63R said:
The MIUI Hidden Settings app is able to get access to the IR camera (Hidden Settings > QMMI > 34. Camera Front). Maybe something that you can pursue to gain access to the IR camera on MIUI in your app?
Click to expand...
Click to collapse
Good find!
Did you manage to find the pictures taken ? Don't think they're actually saved..

Stoffl_ said:
Good find!
Did you manage to find the pictures taken ? Don't think they're actually saved..
Click to expand...
Click to collapse
No, I haven't found the saved pictures. I'm not a 100% sure, but I think that the Hidden Settings app uses the factory/feature testing methods because of the Pass/Fail buttons that appear while using the Front Camera IR in it. I also get a green check mark next to the front camera entry in the QMMI list after I have tapped the 'take picture' button.

Yeah I think you're right.

Wow this is working quite good. Thank you for the mod.

Great it works on MIUI stock rom with magisk root
thank you

Latest xiaomi.eu doesnt work even with root.
After granting root, there is still problem
Mi8

Literally says in OP that MIUI roms aren't supported......

kael2404 said:
Latest xiaomi.eu doesnt work even with root.
After granting root, there is still problem
Mi8
Click to expand...
Click to collapse
i'm on xiomi.eu 9.1.24, and the IR camera works if you add this line to /system/build.prop
Code:
camera.aux.packagelist=com.joaolvcm.pocoseccamera

Stoffl_ said:
Literally says in OP that MIUI roms aren't supported......
Click to expand...
Click to collapse
Read changelog in play store

Yeah I tested it after reading gulps post,neat.

gulp79 said:
i'm on xiomi.eu 9.1.24, and the IR camera works if you add this line to /system/build.prop
Code:
camera.aux.packagelist=com.joaolvcm.pocoseccamera
Click to expand...
Click to collapse
D'OH!
I can't modify build.prop, tried mixplorer, kernel adiutor and build.prop editor from playstore. they all get root permission but fail on saving build.prop
I am on latest xiaomi.eu stable, BL unlocked, TWRP and and Magisk
if I open connectbot and try as root i am able to "mount -o remount,rw /" but no luck with build.prop
If I try to "mount -o remount,rw /system" i get:
'/dev/block/platform/soc/1d840000.ufshc/by-name/system' us read-only
How did you managed to do it? (te prego ^_^)
Z

zavorrax said:
D'OH!
I can't modify build.prop, tried mixplorer, kernel adiutor and build.prop editor from playstore. they all get root permission but fail on saving build.prop
I am on latest xiaomi.eu stable, BL unlocked, TWRP and and Magisk
if I open connectbot and try as root i am able to "mount -o remount,rw /" but no luck with build.prop
If I try to "mount -o remount,rw /system" i get:
'/dev/block/platform/soc/1d840000.ufshc/by-name/system' us read-only
How did you managed to do it? (te prego ^_^)
Z
Click to expand...
Click to collapse
Seem the usual problem with /system mount....
Try this:
1) Reboot in TWRP
2) in TWRP go to "Mount" and select "cache, System, Vendor, Data"
3) Reboot to System, and now you should be able to modify the "build.prop"
Daje!!!

Related

[Xposed][4.0+]Flashlight Fixer: Fix For Some Devices With Broken Flashlight (v1.4)

Description:
This module fixes flashlight of Samsung GALAXY Ace Plus custom ROMs to be able to use any Camera or flashlight app from play store.
If you have a device with the same issue, contact me to see if I can support/fix your device as well.
Google play link:
Flashlight Fixer (Xposed)
Xposed repo link:
Flashlight Fixer
Change log:
Version 1.4:
Applying settings doesn't require rebooting/closing apps.
Added options to enable/disable:
Flash light alternative toggling method
Removing flash mode from camera parameters.
Hooking flash modes, auto/no focus.
Version 1.3:
Support for more devices.
Flash device, supported modes and delays are changeable now, be sure to force close your camera/flashlight app after each change to take effect.
Version 1.2:
Improved auto flash.
Compatible with more ROMs like Pure GALAXY.
Version 1.1:
Optimized auto flash.
Version 1.0:
Initial release.
Awesome!!! It works....
When using auto mode in Camera flash the flash light should get on when focusing but it doesn't. Instead the flashlight starts after the focus is completed due to which the photo gets way too overexposed. Hope it will get fixed in near updates.
awesome man testing it wwill feedback
Androidoo said:
awesome man testing it wwill feedback
Click to expand...
Click to collapse
Androidoo said:
it doesnt works on cm 10.0
Click to expand...
Click to collapse
Did you tick/enable the module in modules tab after successfully installing the framework?
Did you get any error messages?
kk9999gada said:
Awesome!!! It works....
When using auto mode in Camera flash the flash light should get on when focusing but it doesn't. Instead the flashlight starts after the focus is completed due to which the photo gets way too overexposed. Hope it will get fixed in near updates.
Click to expand...
Click to collapse
Thanks for your feedback, the focus control mechanism seems to be written in native code which can't be altered using Xposed, so I just increased the time between turning the flash on and taking the picture to avoid overexposure.
Also added the module to play store (it takes about 2 hours for changes to take effect on the store, just in case you didn't find v1.1 there)
Bassel Bakr said:
Thanks for your feedback, the focus control mechanism seems to be written in native code which can't be altered using Xposed, so I just increased the time between turning the flash on and taking the picture to avoid overexposure.
Also added the module to play store (it takes about 2 hours for changes to take effect on the store, just in case you didn't find v1.1 there)
Click to expand...
Click to collapse
Now the exposure seems to be alright. Thanks for this module.
Bassel Bakr said:
Did you tick/enable the module in modules tab after successfully installing the framework?
Did you get any error messages?
Click to expand...
Click to collapse
ya i did activated and reboot.. n also when i open camera it asks for priviliges(root) and it says root has been granted but no flash..i guess only with me
Androidoo said:
ya i did activated and reboot.. n also when i open camera it asks for priviliges(root) and it says root has been granted but no flash..i guess only with me
Click to expand...
Click to collapse
Oh I forgot to mention it, I use root access to keep track of flash mode since Xposed offers read-only access to app preferences.
Can you tell me which CM 10 ROM are you using? I will download it and check the problem.
Superuser
In Techkang's CM10.1 and Speedmod ROM the flashlight works in all apps even when denying superuser.
So can you remove superuser permission from the app for this reason because there is no need of unnecessarily giving superuser to all the flashlight apps.
Edit : Superuser access is required for using auto mode for flashlight
AWESOME!!
Thanks a whole lot!
Really helps for us darkskinned Kenyans. Can't see a brother on the camera without flash bruh
Made my phone a bit slow but it will live.
On CM 10.2 Dirty(something). Forgot name.
Oh! And flash has to be set to Auto else it will forever shine(lol)
Entropy is at 4k, Performance @ 600MHz and sio.
Thanks again. :good:
Bassel Bakr said:
Oh I forgot to mention it, I use root access to keep track of flash mode since Xposed offers read-only access to app preferences.
Can you tell me which CM 10 ROM are you using? I will download it and check the problem.
Click to expand...
Click to collapse
cm 10.0 pure galaxy i get the toast flashlight have been given superusr but nothing happens tested wwith cymera too
Androidoo said:
cm 10.0 pure galaxy i get the toast flashlight have been given superusr but nothing happens tested wwith cymera too
Click to expand...
Click to collapse
1. Put the attachment in /system/etc/init.d
2. Remove (.txt) extension.
3. Give it 755+ permission.
4. Reboot.
V1.2
V1.2 Works Good. This version removes the requirement of superuser. Tested on various apps such as Camera JB+, QR Barcode Scanner, Stock Camera. Works flawlessly.
V1.3
Works Good. Thanks.
I've set Flash and autofocus delay to 500 milliseconds which works like charm in low light.
how to use
sorry am new to this. am using htc sensation with custom rom vipers 5.2.1 how can i use this mod if it even works on my phone. my phone takes blurry pics in the dark cz the the camera focuses when the flashlight is off
---------- Post added at 01:59 PM ---------- Previous post was at 01:54 PM ----------
Bassel Bakr said:
Description:
This module fixes flashlight of Samsung GALAXY Ace Plus custom ROMs to be able to use any Camera or flashlight app from play store.
If you have a device with the same issue, contact me to see if I can support/fix your device as well.
Google play link:
Flashlight Fixer (Xposed)
Xposed repo link:
Flashlight Fixer
Click to expand...
Click to collapse
HTC sensation has the same issue
v.konvict said:
sorry am new to this. am using htc sensation with custom rom vipers 5.2.1 how can i use this mod if it even works on my phone. my phone takes blurry pics in the dark cz the the camera focuses when the flashlight is off
---------- Post added at 01:59 PM ---------- Previous post was at 01:54 PM ----------
HTC sensation has the same issue
Click to expand...
Click to collapse
Set Auto focus delay to 1000/2000, force close the camera and reopen it again, auto focus will start one/two minute(s) after the flash had turned on.
If it didn't work set the same values to Infinite focus delay, force close the camera and reopen it again.
Bassel Bakr said:
Set auto focus delay to 1000/2000, force close the camera and reopen it again, auto focus will start one/two minutes after the flash had turned on.
If it didn't work set the dame values to Inifinte focus, force close the camera and reopen it again.
Click to expand...
Click to collapse
unfortunately am getting stuck at bootanimation when i enable this mod....can you fix this
v.konvict said:
unfortunately am getting stuck at bootanimation when i enable this mod....can you fix this
Click to expand...
Click to collapse
Can you give me a logcat please?
Code:
adb logcat -v threadtime
And use these adb shell commands to disable the module:
Code:
adb root
adb shell
su
cd /data/data/de.robv.android.xposed.installer/conf
# Uncomment next two lines to disable all of the modules
#rm modules.list
#reboot
cp modules.list modules.list~
for a in `cat modules.list`
do
case $a in
*bassel*) continue;;
*) echo $a >> new;;
esac
done
mv new modules.list
reboot
Just copy and paste them all in the terminal or command prompt and hit enter, your device will reboot after that.
Bassel Bakr said:
Can you give me a logcat please?
Code:
adb logcat -v threadtime
And use these adb shell commands to disable the module:
Code:
adb root
adb shell
su
cd /data/data/de.robv.android.xposed.installer/conf
# Uncomment next two lines to disable all of the modules
#rm modules.list
#reboot
cp modules.list modules.list~
for a in `cat modules.list`
do
case $a in
*bassel*) continue;;
*) echo $a >> new;;
esac
done
mv new modules.list
reboot
Just copy and paste them all in the terminal or command prompt and hit enter, your device will reboot after that.
Click to expand...
Click to collapse
when do we do this , after installation and reboot?

[flashable zip][system-apk]SnapdragonCamera

The flashable zip contains SnapdragonCamera.apk and needed libs. Both - the apk and the libs have to reside inside system, so the only way to install this system app is either flashing this zip, or to unpack the zip, remount /system rw (root required), copy the files by hand (root and writeble /system required), fix fs permissions (root and writeble /system required), remount /system ro (root required) and reboot.
I'm no photographer, so judging the pic quality and checking all that settings is up to you. Taking pictures, taking panorama shots, 4k video w/o and 1080p with stabilization is tested and working on oos4; since the codebase is M I'm pretty sure it's working on oos3 as well.
If you like to use a Magisk module instead of this flashable zip, you'll find it https://forum.xda-developers.com/oneplus-3t/themes/magisk-magisk-modules-oneplus-3t-t3548446 (many thanx to @Spasticdroid)
The version string I include in the filenames, refers to caf versions, not to android version, nor oos version: https://wiki.codeaurora.org/xwiki/bin/QAEP/release. At the moment I build inside oss source tree (see url at the end of the posting) - which is ahead with oos-3.5.4, guessing frommthe commits.
I consider you are on oos3 or oos4 and twrp is installed and working.
Installation:
boot to twrp
flash SnapdragonCamera[version].zip
reboot to system
go to Settings->Apps and find SnapdragonCamera
go to permissions and allow (at least) camera, storage and mic (I don't want to location tag my pics, so I leave location disabled; I'dont know why SnapdragonCamera wants to read my contacts, so I leave this disabled as well - for both YMMV)
Uninstall:
boot to twrp
flash uninstall-SnapdragonCamera[version].zip
reboot to system
IMPORTANT: the uninstall-SnapdragonCamera-[version].zip has to match EXACTLY! the version of the zip you have installed before, since different versions carry different files!
Source code and license:
https://source.codeaurora.org/quic/la/platform/packages/apps/SnapdragonCamera/
https://github.com/OnePlusOSS
Happy flashing!
Note: The old SnapdragonCamera-OSS.zip is exactly the same as SnapdragonCamera-LA.HB.1.3.2-27300-8x96.0.zip! I've decided to put the caf version string in the filename, to match the uninstall names, because different versions seems to need different libs.
Really nice job man! I will test this when my phone comes in! Thanks for the share and your work put into this!
It's working on 3.5.4, thanks! Only one problem I noticed: the continuous shot doesn't work, when I press the shutter button longer, the app quits. And it feels so bad seeing the 240hfr function, when the camera sensor doesn't support it
Doesn't work in 4.0.1. Thanks anyway.
Hammerhand.17 said:
Doesn't work in 4.0.1. Thanks anyway.
Click to expand...
Click to collapse
it is working. you have to give the right app permissions (camera, storage) then it will work. without the permissions it will fc.
Got really excited when I saw 240fps recording only to get "not supported for selected resolution" (even in 480p)... This phone is 100% capable of recording 240fps why won't oneplus add this in...
I'm no video or photo profi, so let me ask some noob question just to better understand this topic:
1080p is standrad 1920x1080 pixels at 50 fps non interlaced, isn't it? hfr240 (supported by our hardware/blobs or not doesnt matter for my question) means a high frame rate of 240fps, doesn't it? If the selected standard defines 50fps, but you request 240fps; isn't the error message "hfr is not supported on selected mode" absolutly true? The error is that hfr is selectable at all for *p standard modes, isn't it?
If this is very stupid, please be patient - I'm one of these guys using the mobile as camera really rarely, and when I use it,mI draw a circle, point at my object and tab... ...call me "fire and forget"-photographer...
So, it will only work on oos and not on cm, lineage etc?
ye would be interesting if it works on 7.1 lineageos?
@nvertigo67 would you mind sharing your build? I'm interested to check it out
Thanks
Notor1ouS- said:
ye would be interesting if it works on 7.1 lineageos?
Click to expand...
Click to collapse
Again: I don't now. I havn't started building lo-14.1, since I wait till oneplus has published oss4 keenelsources, to use N blobs. I hate shimmingm- but that's my personal problem.
But: just test it. if it doesn't work or you don't like it, just dirty flash the same lo version and you are done.
I have ask in @koenkk's lomthread to give it amtry, but havn't received (or not seen) any feedback. I guess it should work as good or as bad as on oos.
t-shock said:
@nvertigo67 would you mind sharing your build? I'm interested to check it out
Thanks
Click to expand...
Click to collapse
Sadly I have no oos build - what I have done is building oss. I used plain source. I only changed fstab to include f2fs for data, and increased dmesg size in the kernel sources. The build is boring - really. But if you really, really want it, I'll upload it (1Mbit uplink; 15€ for 3GB; build is 450MB). Don't want to offend you, with asking, just want to be sure.
nvertigo67 said:
Sadly I have no oos build - what I have done is building oss. I used plain source. I only changed fstab to include f2fs for data, and increased dmesg size in the kernel sources. The build is boring - really. But if you really, really want it, I'll upload it (1Mbit uplink; 15€ for 3GB; build is 450MB). Don't want to offend you, with asking, just want to be sure.
Click to expand...
Click to collapse
I meant OSS (typo).
So do you want a donation to upload it?
t-shock said:
I meant OSS (typo).
So do you want a donation to upload it?
Click to expand...
Click to collapse
No, I just want to be sure. I'll make a at rsync job for tonight - if the upload succeds, you find a pm tomorrow morning.
snapdragon camere cannot full screen. how to fix it ?
paratox said:
it is working. you have to give the right app permissions (camera, storage) then it will work. without the permissions it will fc.
Click to expand...
Click to collapse
plz mention the right permissions?
bitf03m030 said:
plz mention the right permissions?
Click to expand...
Click to collapse
Read op: at least camera, mic and storage.
nvertigo67 said:
Read op: at least camera, mic and storage.
Click to expand...
Click to collapse
i have given these permissions, but yet it is fc.
brmbjn said:
snapdragon camere cannot full screen. how to fix it ?
Click to expand...
Click to collapse
Since android runs all apps in fullscreen mode (if not rum in multi win mode), I'm guessing you are talkking about preview view: preview shows you the picture you will get, if taking the pic/video. If you go for 16MP, you have selected a mode with 4:3 aspect ratio. If you want to show 4:3 on a 16:9 screen, you have black borders - if you need a preview wirhout borders, select a mode, that has 16:9 aspect ratio.
bitf03m030 said:
i have given these permissions, but yet it is fc.
Click to expand...
Click to collapse
Logs please.

[Overlay] Enable Night Light, Auto-Brightness, Ambient Display & more on Treble ROM

[Overlay] Enable Night Light, Auto-Brightness, Ambient Display & more on Treble ROM
Hello.
By default, phhusson's generic AOSP Treble ROM is bare bones. That means it does not include features such as Night Light, Ambient Display, or Adaptive Brightness. Luckily all you need is the right overlay and you can bring these features back.
I tested this on the Huawei Mate 10 Pro and everything seems to work save for the lift-to-wake gesture. I am not sure if a simple overlay can enable that, as I already target the right boolean value for it. As for Adaptive Brightness, the lux and corresponding backlight values were borrowed from the Huawei Mate 9's framework-res.
Update 2/19/18
With the release of phhusson's Android 8.1 Oreo Treble GSI, I thought I would take the time to update my overlay as well with a new feature: Always on Display. You can download the overlay from the attachment in this comment, and install it using the same set of instructions below (don't install the overlay attached in this post if you want AOD). Please read the warnings carefully. I accept no responsibility for anything you do with your phone.
Update 2/6/18
I have updated the attached framework overlay to include the following features:
WiFi automatic wakeup
Pinner service for the default camera app and critical framework files
This should work on any device that can boot phhusson's Treble ROM.
Installation Instructions
Download the attached overlay
With root, push the overlay to /vendor/overlay. Create the folder if it doesn't exist.
Run the following command in a rooted terminal or ADB shell:
Code:
chcon u:object_r:vendor_overlay_file:s0 /vendor/overlay;chcon u:object_r:vendor_overlay_file:s0 /vendor/overlay/framework-res__auto_generated_rro.apk
Reboot
XDA Labs adds emojis in the command for some reason. Open this thread in a browser to get the right command.
Why do you need to run that command? Without it, the overlay won't be seen as installed and isn't enabled. I'm not sure why, but according to phhusson it's an SELinux-related issue and this command fixes that.
Enjoy!
What is the code?
独影阑珊 said:
What is the code?
Click to expand...
Click to collapse
Code:
chcon u:object_r:vendor_overlay_file:s0 /vendor/overlay;chcon u:object_r:vendor_overlay_file:s0 /vendor/overlay/framework-res__auto_generated_rro.apk
Why?
独影阑珊 said:
Why?
Click to expand...
Click to collapse
It does not work because you have included spaces in the command that are not there.
tusko5 said:
It does not work because you have included spaces in the command that are not there.
Click to expand...
Click to collapse
Oh, thanks.
Hello, not working on mate 9, all commands OK - no output error (I added mount -o rw,remount /system and mount -o rw,remount /vendor) to copy your files, but even after reboot no new things
EDIT : after "installing" the app (click on it with a root explorer), all options are now visible but not working
how can i get the root access on the rom?
It is also not working on honor v9 .
mrassol said:
Hello, not working on mate 9, all commands OK - no output error (I added mount -o rw,remount /system and mount -o rw,remount /vendor) to copy your files, but even after reboot no new things
EDIT : after "installing" the app (click on it with a root explorer), all options are now visible but not working
Click to expand...
Click to collapse
If you install it as a regular app, it won't work. It MUST be pushed to /vendor/overlay manually, and you MUST run that command.
javawppp said:
how can i get the root access on the rom?
Click to expand...
Click to collapse
Install phhusson's SuperUser from the Play Store.
独影阑珊 said:
It is also not working on honor v9 .
Click to expand...
Click to collapse
Did you follow the steps exactly? This can't be installed like a regular app.
you did'nt read my post
I did all you wrote (I even add mount -o rw,remount /system and mount -o rw,remount /vendor) and nothing changed
AFTER that, I install the apk from /vendor/overlay using a root explorer and now the options are visible, brightness is working (I didn't saw it first), night mode is also working, ambiant display is also working but the option to turn on phone on pickup don't work.
So my bad, I didn't test it so much
MishaalRahman said:
If you install it as a regular app, it won't work. It MUST be pushed to /vendor/overlay manually, and you MUST run that command.
Install phhusson's SuperUser from the Play Store.
Did you follow the steps exactly? This can't be installed like a regular app.
Click to expand...
Click to collapse
When I try to open it as a regular app , my phone display it can not open .I am sure it be pushed to /vendor/overlay .,and I have run the commed and rebooted system at least 5 times.but it still useless.(I am sorry my English is poor.)
独影阑珊 said:
When I try to open it as a regular app , my phone display it can not open .I am sure it be pushed to /vendor/overlay .,and I have run the commed and rebooted system at least 5 times.but it still useless.(I am sorry my English is poor.)
Click to expand...
Click to collapse
You are running phhusson's AOSP Treble ROM, correct? What device?
MishaalRahman said:
You are running phhusson's AOSP Treble ROM, correct? What device?
Click to expand...
Click to collapse
Yes,My device is Honor V9.
独影阑珊 said:
Yes,My device is Honor V9.
Click to expand...
Click to collapse
Ah, okay. That is the Honor 8 Pro's Chinese version. Have you tried this ROM? https://forum.xda-developers.com/honor-8-pro/development/rom-t3714728 I was told by the dev that he included these features by default. You flash it the same way with phhusson's ROM.
MishaalRahman said:
Ah, okay. That is the Honor 8 Pro's Chinese version. Have you tried this ROM? https://forum.xda-developers.com/honor-8-pro/development/rom-t3714728 I was told by the dev that he included these features by default. You flash it the same way with phhusson's ROM.
Click to expand...
Click to collapse
Thanks,I will try it.
Took me a while to get it to work on my mate 10 pro, then realised I had to manually set the permissions on the folder, and file for it to work. Great job!
Is there a way I could edit the minimum and maximum brightness it reaches?
Thanks again
etern1ty said:
Took me a while to get it to work on my mate 10 pro, then realised I had to manually set the permissions on the folder, and file for it to work. Great job!
Is there a way I could edit the minimum and maximum brightness it reaches?
Thanks again
Click to expand...
Click to collapse
Ah, I forgot about that. I believe the folder permissions are 755 and the APK should be 644, correct? As for setting the brightness, do you want to increase the minimum and lower the maximum of the adaptive brightness?
MishaalRahman said:
Ah, I forgot about that. I believe the folder permissions are 755 and the APK should be 644, correct? As for setting the brightness, do you want to increase the minimum and lower the maximum of the adaptive brightness?
Click to expand...
Click to collapse
Yeah, that sounds right I just matched the other folders and APKs. I was hoping to decrease the minimum (so it's darker), I don't notice a big effect on my mate 10 pro.
Is there a guide for going about this? I'm interested to learn how to make these sorts of modifications myself.
Cheers
etern1ty said:
Yeah, that sounds right I just matched the other folders and APKs. I was hoping to decrease the minimum (so it's darker), I don't notice a big effect on my mate 10 pro.
Is there a guide for going about this? I'm interested to learn how to make these sorts of modifications myself.
Cheers
Click to expand...
Click to collapse
Decompile my overlay. Look in /res/values/arrays.xml. Look at "config_autoBrightnessLcdBacklightValues" array and change the first item, <item>6</item> to <item>1</item>. Build the APK, sign it, and then push.

[GUIDE][MOD][TREBLE]Camera2 API Enabler

Flashing this enable Camera2 API for GSI/Treble based roms. Remains even after clean flashing another GSI
Things needed:
Unlocked Max Pro with custom recovery flashed
Instructions:
1. Download Cam2API.zip and copy/move to external sd/otg drive
2. Reboot phone to recovery and install as normal zip
3. Test results using this app
4. Google camera mod should work now
Hi,
As from my check in 247 version ROM, the build.prop already has the line persist.camera.hal3.enabled=0.
If you have rooted, you only need to change the 0 to 1 >> persist.camera.hal3.enabled=1
Or if you don't want to modify the build.prop, you can just create the value at the /data partition using terminal emulator (with root access), this leaves the /system intact.
Code:
su
setprop persist.camera.HAL3.enabled 1
The downside is everytime you factory reset, you have to set the value again.
Desmanto said:
Hi,
As from my check in 247 version ROM, the build.prop already has the line persist.camera.hal3.enabled=0.
If you have rooted, you only need to change the 0 to 1 >> persist.camera.hal3.enabled=1
Or if you don't want to modify the build.prop, you can just create the value at the /data partition using terminal emulator (with root access), this leaves the /system intact.
Code:
su
setprop persist.camera.HAL3.enabled 1
The downside is everytime you factory reset, you have to set the value again.
Click to expand...
Click to collapse
t1 zip changes that 0 to 1, no new entry is added
t2 zip adds a new line to enable the same
Post some pictures taken with Google camera and also do a comparison between stock camera images and gcam images.
SumitGupta2442 said:
Post some pictures taken with Google camera and also do a comparison between stock camera images and gcam images.
Click to expand...
Click to collapse
No
SumitGupta2442 said:
Post some pictures taken with Google camera and also do a comparison between stock camera images and gcam images.
Click to expand...
Click to collapse
OP doesn't have the device. We need to try and share feedback. Else wait for someone to share.
Appreciate efforts from OP.
Someone check what is supported camera 2 level
Via camera2 probe app
Any improvement in picture quality when captured in gCam?
Sudeep Duhoon said:
Flashing this should enable Camera2 API.
Things needed:
Unlocked Max Pro with custom recovery flashed
Instructions:
1. Download Camera2 API_t1.zip and copy/move to external sd/otg drive
2. Reboot phone to recovery and install as normal zip
3. Test results using this app
4. If fails, flash Camera2 API_t2.zip same way.
5. Google camera mod should work now
Someone please test and report
Click to expand...
Click to collapse
Please Send Me A Google Camera With HDR Support For Zenfone Max Pro
arjunav4748 said:
Please Send Me A Google Camera With HDR Support For Zenfone Max Pro
Click to expand...
Click to collapse
I tried both api doesn't work
is there any way to enable it on a locked bootloader and without root?
austinpinto said:
is there any way to enable it on a locked bootloader and without root?
Click to expand...
Click to collapse
sadly, no
learntechnology8452 said:
I tried both api doesn't work
Click to expand...
Click to collapse
works for everyone else (it was reported though)
tested myself and was not working
fixed
dafaq you doing testers???
Can anyone tell the performance of the camera,Is it better than the stock sd camera!
google camera keeps stopping please help even after following all steps
Akashnaresh said:
google camera keeps stopping please help even after following all steps
Click to expand...
Click to collapse
Enable camera2api manually
Yeah, I have done it using buildprop...still it's not working
Akashnaresh said:
Yeah, I have done it using buildprop...still it's not working
Click to expand...
Click to collapse
Have you tried bacon camera, it's quite a substitute for flashing a module for enabling c2api
Do I need to unlock my bootloader and flash twrp to flash this zip?
Tried the zip method and manual method but google camera still crash when open. Any other solution?

How To Guide Call recording working in GT 2 pro ( no root )

Finally i found a method to record call on realme gt 2 pro global gdpr version, who is persistent at boot. No root, no bootloader unlock.
Step one : install setedit from play store and add op_voice_recording_supported_by_mcc with 1 value to global settings. You have to give Setedit write secure rights with adb
Step two : install phone apk below.
That's it. Start Google dialer and make a call. Still works after reboot.
Not working : automatic call recorder, you have to press record button when you're in call.
Notice: if you don't see record button in Google dialer , is normal, just press back button to see realme dialer.
This should work on all color os 3 device.
Recorded call are in internal memory / music/ recordings/ call recordings folder.
ENJOY !!
No working... No see
Which apk needs to be installed for step two?
NVM I figured it out
Not working, it has changed the dialer but instead of recording button I have a "contacts" button and when I press it nothing happens.
Please uninstall phone from installed apps and install again.
criszz said:
Please uninstall phone from installed apps and install again.
Click to expand...
Click to collapse
Same, tried also to reboot but nothing
No permission to add a new line in Global Table
RazvanelTM said:
No permission to add a new line in Global Table
Click to expand...
Click to collapse
Same here, I've added the option in the system table maybe that's why it is not working
Yes, you must provide write secure rights for setedit with adb to edit in global.
Updated first post with that.
criszz said:
Yes, you must provide write secure rights for setedit with adb to edit in global.
Updated first post with that.
Click to expand...
Click to collapse
How can do? Have any tutorials?
manu81cba said:
How can do? Have any tutorials?
Click to expand...
Click to collapse
By default, for your protection, Android prevents you from modifying the SECURE and GLOBAL tables. If you have Android Jellybean or later, you can remove this protection from an ADB shell using the command "pm grant by4a.setedit22 android.permission.WRITE_SECURE_SETTINGS". On earlier versions, you can only remove this protection on a rooted device by installing SetEdit to the system partition.
All working flawless now I can confirm that
Not working when giving the permission in adb
RazvanelTM said:
Not working when giving the permission in adb
Click to expand...
Click to collapse
Try to activate first in the developers options this one: "Disable permission monitoring"
shootemdown371 said:
Try to activate first in the developers options this one: "Disable permission monitoring"
Click to expand...
Click to collapse
It worked, thanks!
Now it's confirmed to work and we must think how to enable automatically record for all calls. People who said not working without knowing, please edit your post.
In setedit ...you know what need change for active the volte ?
Thank you very much it's working for me!
PS for those unfamiliar with SetEdit can also use this in adb after disabling permission monitoring:
adb shell settings put global op_voice_recording_supported_by_mcc 1
Just must be applied after every restart ( that is what i read )
Nice post, thanks for sharing. Any solution for Xiaomi Redmi Note 10S, Global ROM MI?
Also working on the regular gt2

Categories

Resources