problem enable camera2 api - Xiaomi Redmi Note 5 Pro Questions & Answers

hello
Question /problem enable camera2 api
Redmi pro 5 (note 5 global)
MIUI Global 10.3.1 stable
Android Version: 9 PKQ1.180904.001
MIUI stock rom
bootloader open / no root
I will enable camera2 api.
Im have OrangeFox 9.02 image booted in fastboot via Windows computer
With OrangeFox i have mounted partition /system
Then i edit the build.prop with vi editor in terminal and save the build.prop in folder /system.
Then reboot.
My entrys have none effect for camera2 api probe and other test apps.
camera2 probe says camera has only legacy support Level 1
my entrys for camera2 api in build.prop:
persist.camera.HAL3.enabled = 1
persist.camera.eis.enabled = 1
persist.camera.is_mode = 4
persist.camera.stats.test = 5
persist.vendor.camera.HAL3.enabled = 1
persist.vendor.camera.eis.enabled = 1
persist.vendor.camera.is_mode = 4
persist.vendor.camera.stats.test = 5
I also edit for testing the entry in build.prop:
ro.build.version.release=9 in =8
After reboot this entry relase 8, is not in settings "about my Phone" changed.
what is wrong?

Read this thread :
https://forum.xda-developers.com/redmi-note-5/themes/mod-enable-camera2-api-t3756070

hello,
First i bootet OrangeFox 9.02 "Fastboot boot recovery.img" for whyred temporary
Mount /system partition
I have only edtit build.prop with vi editor (adb Shell)
persist.vendor.camera.HAL3.enabled=1
persist.camera.HAL3.enabled=1
Next Magisk installed.
Then i have rootet my Redmi Note 5 (global), Android 9 PI Stock Rom with App Magisk.
Camera2 Api is now working, also GCam App.
Actually, I didn't want to root the Redmi Note (Pro) 5
Without root camera2 Api not working.

Related

adding software while cooking a ROM

I've tried cooking a new WM2003 ROM several times with some software add-ons selected, but when i reflash it to my SX56, its not there.
This is what I selected on http://lumpistefan.dyndns.org:
WM 2003 Final
A.30.09 ENG Siemens
No AutoConfig data
Add software and modify ROM
create 'System Tools' subfolder under 'Programs'
Notification Clear Fix
Frequency Tuner
Olive Tree BibleReader
Olivers ActionPack
Peters GameBox
Today Screen
Windows Mobile Southpark
Lock all keys except power button while off
Remove 'stk.lnk' from Startup folder
zipped NK.nb1 (SD-card flashing)
I attached the log (if you think it might help).
Any ideas? Am I missing a step somewhere?
I even tried downgrading to PPC2002 first, but that didn't make a difference. Do I need to go back and add other software afterwards? If so, where can I get other software?
Any help is appreciated.
Thanks,
Kyle Chenier
kylechenier-at-hotmail-com
Hmm. it worked for me...
Getting following log:
Code:
write xip block starting at 81720000, with 7 files
write xip block starting at 81bc0000, with 13 files
write xip block starting at 80160000, with 3 files
write xip block starting at 80650000, with 3 files
write xip block starting at 81030000, with 6 files
this rom seems to be A.30.09 ENG 2004-01-01 Siemens WM2003
this bootloader seems to be V5.22 2003-05-15 17:46:55
no operator rom found
80000000 - 80040000 -- bootloader 0 files 1 modules
80040000 - 8015e640 9 XIPKERNEL 5 files 5 modules
80160000 - 8017fe30 12 XDA_DEVELOPERS3 3 files 0 modules
80180000 - 80375f08 8 KERNEL 11 files 14 modules
80380000 - 8064b430 7 OS 20 files 36 modules
80650000 - 8066fdec 13 XDA_DEVELOPERS4 3 files 0 modules
80670000 - 80be4348 6 SHELL 107 files 88 modules
80c00000 - 8102fea4 5 BROWSING 11 files 36 modules
81030000 - 8104ffc0 14 XDA_DEVELOPERS5 6 files 0 modules
81050000 - 813f0cac 4 COREAPPS 95 files 44 modules
81400000 - 815d3090 3 EXAPPS 34 files 7 modules
815f0000 - 8171cdc0 2 PHONE 57 files 19 modules
81720000 - 8177ffbc 10 XDA_DEVELOPERS1 7 files 0 modules
81780000 - 817823e4 -- xip chain 14 xip entries
817c0000 - 81bbb518 1 MISC 136 files 42 modules
81bc0000 - 81c87004 11 XDA_DEVELOPERS2 13 files 0 modules
81ec0000 - 81ee5800 -- bitmap : ffffffff .. ffffffff
adding: NK.nb1 (deflated 45%)
Try this ROM:
ftp://xda:[email protected]/Uploads/NK.nb1.zip
Stefan
Stefan,
I managed to add the software after flashing the ROM (except the games). After I resync everything to my desktop, I'll try that one.
Thanks for your help!
Kyle

Daydream VR MI A2 Lite Modification (NFC Problem Needs a fix)

Requirements: Mi A2 lite or any android smartphone with gyro..
Root Access..
Android 8.0 and Above
do these commands on adb or terminal app on android and kaboom! daydream works!
# Connect to the phone terminal
adb shell
# Switch to root
su
# The rest can be executed in one go
mount -o rw,remount /system
echo '<?xml version="1.0" encoding="utf-8"?><permissions><feature name="android.hardware.vr.high_performance" /></permissions>' > /system/etc/permissions/android.hardware.vr.high_performance.xml
echo '<?xml version="1.0" encoding="utf-8"?><permissions><feature name="android.software.vr.mode" /></permissions>' > /system/etc/permissions/android.software.vr.mode.xml
chmod 644 /system/etc/permissions/android.hardware.vr.high_performance.xml
chmod 644 /system/etc/permissions/android.software.vr.mode.xml
mount -o ro,remount /system
pm clear com.google.android.gms
pm clear com.android.vending
reboot
Daydream vr now works on MI A2 Lite..
tested working on Samsung Galaxy A5 2017
tested working on Xiaomi Redmi note 3 SD
tested working on Mi A2 Lite obviously..
Is Temp Root Possible?
Will this work with a temporary root access without keeping the phone rooted? Kind of like the guide "How to enable Camera2 API persistently and keep bootloader locked"?
Perhaps execute this string between steps 9 and 10.
I can't get past nfc check
---------- Post added at 07:42 AM ---------- Previous post was at 06:45 AM ----------
So how do use the headsets when it won't go past turning NFC setting on?
I did it using developer settings. Wiping gms has gave me a video calling bug, only works on some calls now.

XSharedPreferences issue with Target API 28

Hi guys i know the issue is Xsharedpreferences even if you set permissions to 777 the xposed cant read the file when the app is compiled with api 28 maybe due to recent selinux changes but if you use target api 27 or below ,the xposed can hook and read preferences properly maybe backward compatibility.
Any guys get to work around this in their xposed modules?
I possible fix i know is that moving the preferences to /data/folder/prefs.xml then it can read
no, api 28 introduced a new SELinux permission
makeworldreadable or 777 is useless
one sulotion is use api 27 or lower
or set SELinux to Permissive(not recommended)
Maybe you can use other methods such as ContentProvider, or put it to sdcard?
BytesReverser said:
Hi guys i know the issue is Xsharedpreferences even if you set permissions to 777 the xposed cant read the file when the app is compiled with api 28 maybe due to recent selinux changes but if you use target api 27 or below ,the xposed can hook and read preferences properly maybe backward compatibility.
Any guys get to work around this in their xposed modules?
I possible fix i know is that moving the preferences to /data/folder/prefs.xml then it can read
Click to expand...
Click to collapse
use this code on initzygote
Code:
final File a = new File("/data/user_de/0/packagename/shared_prefs/prefs.xml");
final File b = new File("/data/user/0/packagename/shared_prefs/prefs.xml");
final File c = new File("/data/data/packagename/shared_prefs/prefs");
File file;
int sdk = Build.VERSION.SDK_INT;
if (sdk == 23) {
file = a;
} else if (sdk < 23) {
file = b;
} else {
file = c;
}
myPref = new XSharedPreferences(file);
myPref.makeWorldReadable();
myPref.reload();
if (myPref == null) {
myPref = new XSharedPreferences(BuildConfig.APPLICATION_ID, xmlPrefs);
myPref = new XSharedPreferences(file);
}
myPref.makeWorldReadable();
myPref.reload();

[Notification bubbles] Disable on Miui 12 Android 11

Root required.
Code:
settings put global notification_bubbles 0
or
Code:
adb shell settings put global notification_bubbles 0
Anyone who understands understands what this is for.
#-

Help needed in updating

Piles heup me update Android 11
Fur hp Huawei y9 prem piess heup me tolong sya update ka sistem hp sya ni
System
--------------------------------------------------------
Android Version : 10
Version Name : Q
Released Date : September 04, 2019
Code Name : Android 10
API Level : 29
Security Patch Level : 2020-08-01
Bootloader : unknown
Build Number : STK-L22 10.0.0.270(C636E4R6P1)
Baseband : 21C20B388S000C000,21C20B388S000C000
Java VM : 2.1.0
Kernel : 4.14.116
Language : Melayu (ms_MY)
OpenGL ES : 3.2
Root Management Apps : No Apps Detected
SELinux : Unable to determine
Google Play Services : 22.26.15 (100408-461192076)
Vulkan : Supported (1.1)
Treble : Supported
Seamless Updates : Not Supported
Huawei y9 prem said:
Piles heup me update Android 11
Fur hp Huawei y9 prem piess heup me tolong sya update ka sistem hp sya ni
System
--------------------------------------------------------
Android Version : 10
Version Name : Q
Released Date : September 04, 2019
Code Name : Android 10
API Level : 29
Security Patch Level : 2020-08-01
Bootloader : unknown
Build Number : STK-L22 10.0.0.270(C636E4R6P1)
Baseband : 21C20B388S000C000,21C20B388S000C000
Java VM : 2.1.0
Kernel : 4.14.116
Language : Melayu (ms_MY)
OpenGL ES : 3.2
Root Management Apps : No Apps Detected
SELinux : Unable to determine
Google Play Services : 22.26.15 (100408-461192076)
Vulkan : Supported (1.1)
Treble : Supported
Seamless Updates : Not Supported
Click to expand...
Click to collapse
Not an MTCx device. Search forums and contact reseller of device
Huawei y9 prem said:
Piles heup me update Android 11
Fur hp Huawei y9 prem piess heup me tolong sya update ka sistem hp sya ni
System
--------------------------------------------------------
Android Version : 10
Version Name : Q
Released Date : September 04, 2019
Code Name : Android 10
API Level : 29
Security Patch Level : 2020-08-01
Bootloader : unknown
Build Number : STK-L22 10.0.0.270(C636E4R6P1)
Baseband : 21C20B388S000C000,21C20B388S000C000
Java VM : 2.1.0
Kernel : 4.14.116
Language : Melayu (ms_MY)
OpenGL ES : 3.2
Root Management Apps : No Apps Detected
SELinux : Unable to determine
Google Play Services : 22.26.15 (100408-461192076)
Vulkan : Supported (1.1)
Treble : Supported
Seamless Updates : Not Supported
Click to expand...
Click to collapse
Additional to that: English please!
Huawei y9 prem said:
Piles heup me update Android 11
Fur hp Huawei y9 prem piess heup me tolong sya update ka sistem hp sya ni
System
--------------------------------------------------------
Android Version : 10
Version Name : Q
Released Date : September 04, 2019
Code Name : Android 10
API Level : 29
Security Patch Level : 2020-08-01
Bootloader : unknown
Build Number : STK-L22 10.0.0.270(C636E4R6P1)
Baseband : 21C20B388S000C000,21C20B388S000C000
Java VM : 2.1.0
Kernel : 4.14.116
Language : Melayu (ms_MY)
OpenGL ES : 3.2
Root Management Apps : No Apps Detected
SELinux : Unable to determine
Google Play Services : 22.26.15 (100408-461192076)
Vulkan : Supported (1.1)
Treble : Supported
Seamless Updates : Not Supported
Click to expand...
Click to collapse
hmmm.... Are you just kidding?
What you posted here is just a phone, not any sort of Android car stereo.
Your text is even not readable.
The attached device info shows clearly that we are talking about a phone. Tell the mods where you want to get moved to. As it is no radio, nothing to analyze here.

Categories

Resources