About enabling Camera2api without root/unlocking bootloader - Xiaomi Mi A2 Lite Questions & Answers

Hello, Mi A2 lite is under Android One project of Google, you know!
However,
My phone has Miui Camera app by default. But I don't like it that much. I want to use 3rd party camera apps , for example Google Camera / GCam. So I have to enable " Camera 2 api ".
My phone's bootloader is locked and it's not rooted.
Now if I enable developer mode , then enable USB debugging, then I'll connect to my PC and use ADB Shell command to enable Camera 2 api then..
Will I get any OTA updates or not?
Simply I want to get all updates as I am getting now and I want to do use ADB commands without rooting my device or unlocking the bootloader.
Please help me!

Related

USB debugging mode issue with several apps

Sorry for my English.
There are a few apps where you are not allowed to use USB debugging mode while working with them (Fate/Grand Order, Fortnite, some banking apps, etc).
Two days ago I've run into a problem with Fate/Grand Order. I turned on the debug mode and after that turned it off. However, the app still throws an error about USB debugging. The support team said that I should contact my manufacturer. I've found a theme on Xiaomi forum (can't post a link because of anti-spam) about this problem. Some users with POCO F1 have this problem too.
The only solution is factory reset.
Does anyone have the same problem?
ArianEpsilon said:
Sorry for my English.
There are a few apps where you are not allowed to use USB debugging mode while working with them (Fate/Grand Order, Fortnite, some banking apps, etc).
Two days ago I've run into a problem with Fate/Grand Order. I turned on the debug mode and after that turned it off. However, the app still throws an error about USB debugging. The support team said that I should contact my manufacturer. I've found a theme on Xiaomi forum (can't post a link because of anti-spam) about this problem. Some users with POCO F1 have this problem too.
The only solution is factory reset.
Does anyone have the same problem?
Click to expand...
Click to collapse
clear apps data and reboot ?? plug cable in to pc and toggle the settings??
boe323 said:
clear apps data and reboot ?? plug cable in to pc and toggle the settings??
Click to expand...
Click to collapse
I've tried this but nothing helped. I flashed 10.0.3.0 ROM and now everything works perfectly even after enabling/disabling USB debugging mode.
My friend also has Mi A2 Lite so I asked him to check this bug. He installed the game (he was using ROM 10.0.3.0) and after turning on and off debug mode everything worked fine. Then I asked him to install new 10.0.4.0 firmware and check this bug again. He got USB debug error even after disabling USB debugging.
So new February patch makes unable to play some games (such as Fate/Grand Order, Fortnite and so on) where it's not allowed to use USB debugging.
ArianEpsilon said:
Sorry for my English.
There are a few apps where you are not allowed to use USB debugging mode while working with them (Fate/Grand Order, Fortnite, some banking apps, etc).
Two days ago I've run into a problem with Fate/Grand Order. I turned on the debug mode and after that turned it off. However, the app still throws an error about USB debugging. The support team said that I should contact my manufacturer. I've found a theme on Xiaomi forum (can't post a link because of anti-spam) about this problem. Some users with POCO F1 have this problem too.
The only solution is factory reset.
Does anyone have the same problem?
Click to expand...
Click to collapse
You need to disable developer options for fortnite to work!I'm pretty sure that the other apps also require you to disable developer options
gz26 said:
You need to disable developer options for fortnite to work!I'm pretty sure that the other apps also require you to disable developer options
Click to expand...
Click to collapse
I know, as I said earlier, it doesn't work. If you try to enable and disable USB debug for the first time on 10.0.4.0 you will get an error about USB debug.
On 10.0.3.0 everything works fine. Seems USB debugging in 10.0.4.0 firmware is kinda broken. All applications detect it as turned on.
ArianEpsilon said:
Sorry for my English.
There are a few apps where you are not allowed to use USB debugging mode while working with them (Fate/Grand Order, Fortnite, some banking apps, etc).
Two days ago I've run into a problem with Fate/Grand Order. I turned on the debug mode and after that turned it off. However, the app still throws an error about USB debugging. The support team said that I should contact my manufacturer. I've found a theme on Xiaomi forum (can't post a link because of anti-spam) about this problem. Some users with POCO F1 have this problem too.
The only solution is factory reset.
Does anyone have the same problem?
Click to expand...
Click to collapse
You can unable it in Dev options.
Btw you can't run Fortnite on Mi A2 Lite, check sys requirements for the game.
wynix black said:
You can unable it in Dev options.
Btw you can't run Fortnite on Mi A2 Lite, check sys requirements for the game.
Click to expand...
Click to collapse
If I disable it nothing will change. There is a bug in 10.0.4.0 firmware. USB debugging doesn't turn off completely. I'm sorry, but did you even read my message?
Ok, I know 3 people who have the same problem. Does anyone here have the same problem with 10.0.4.0?

How To Guide [GSI] [A13] Pixel Experience Plus for Galaxy S21 FE 5G (Snapdragon/Exynos)

* Your warranty is now void.
* I'm not responsible for bricked devices, dead SD cards,
* Please do some research if you have any concerns about features included in this recovery
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, i will laugh at you.
Click to expand...
Click to collapse
Pixel Experience Plus for Galaxy S21 FE (Snapdragon/Exynos) based on Android 13​Unlock bootloader first:
Go to your phone → Settings → About Phone → Software information → Press Build number 6 times until you see the notice “You’re now a developer”
Go in Settings → Developer options → enable OEM unlocking
Power off your phone first. Then, connect a side of your USB to your PC/Laptop, keep pressing volume up and down together until you go to Download Mode. Put another side of the USB into your phone.
When you arrived at Download Mode, long press volume up until you see the black screen. Confirm to unlock the bootloader and you will erase your device.
Click to expand...
Click to collapse
Guide for flashing system image:
Flash recovery for snapdragon version, i'm using: OrangeFox Recovery is also provided for exynos soc
Please do everything that is written for flashing recovery (Installation), u need to disable encryption and wipe data
reboot when you sure recovery is permanent and check if phone is on "hello screen"
How to boot on recovery first time BEFORE "hello screen":
Uncheck reboot after flash AP recovery in Odin, unplug cable and then push vol - and power -> immiedietly after turn off download mode hold vol + and power and plug in cable -> now should work
Flash GSI image:​First you need to download image from here: here or find thread here: click. This images have Google Apps allready included.
Remember to use arm64 with b !
Reboot to recovery
Now u should see on PC when u connect via cable internal memory - copy image to folder, probably should be "Fox" or create new
Touch files, find image
Now select to flash System image
Reboot
And thats it you should boot to system.
Post install settings​On Phh Treble Settings set:
Samsung features:
Use alternate audio policy
Enable stereo audio mode
Enable extended brightness range
Enable double tap to wake (if u want)
Enable reversed wireless charging (if u want to reverse charge other device)
Enable access to all cameras
Enable extra sensors
Misc features:
Force FPS to [email protected] if you want 120Hz refresh rate display
On camera set expose aux cameras and force enable camera2api
Select Use System Wide BT HAL if u use bluetooth headphones and don't have audio (tested on galaxy buds 2)
Qualcomm features:
select use alternate camera profile if u have trouble with ultrawide photos
Root access on Pixel Experience Plus:​
You should first patch boot img from your stock samsung rom what you allready using
U need to select ap tar.img file in Magisk and wait to be patched
Extract boot.img from it after patch
Flash boot img in recovery on boot image
Root stays even if you reflash system on other GSI
Works:
WiFi 2.4GHz and 5GHz
RIL (phone and mobile data)
Bluetooth with bluetooth audio
fingerprint sensor
Google Pay with NFC (you need to pass safynet check if you have magisk)
120Hz display
Camera front and back (you need other camera app for using ultrawide photo)
Fastcharge
Stereo speakers
Galaxy accessories (Watch 4 and Buds 2 tested)
MHL mode
Probably other functions too
Not work/problems:
Netflix have videwine L1 but no HDR content support
Movies only record max on 30FPS on 4K
On the go don't work any of galaxy wearable devices, you need to patch via magisk some files
Clear View cases (phone don't response for open or close case) even on AOD
Some problems with updates for Chrome and web framework (need to install manual newer version)
Device is showing as Huawei Nexus 6P need to be changed somehow to our model
Workaund for Galaxy Wearable and Google Pay:​
Magisk need to be in zygisk mode
Flash Universal SafetyNet Fix, here: github download
Install FoxMMM for magisk modules finder here: here, find and install MagiskHide Props Config
Flash this for workaund of wearables: gdrive module download
Now download Galaxy wearables from store, and plugins for your proper device form apkpure or other website.
You need to allow all permisions for apps first
Try to find your watch and pair it, you need to be fast to accept all pop ups - u dont need to login to samsung account , for me got it after 2-3 try, you should see "prepairing device" etc.
For galaxy buds should be easier just find it and pair.
Google Pay works out of the box after installing this modules
Get better sound and equalizer:
If you want to have better audio - you need to flash magisk module ViperFX
Download here: click here on github
Flash via magisk
Uncheck legacy mode for work
@hunter3000
Greetings. Since this appears to be a "guide," I have changed the thread designation accordingly.
-Regards: Badger50
@hunter3000 i think you can change the model number in the build.prop if im not mistaking
Hi, can i flash it like the offical pixel experience? Because the offical one is a zip file and this one not
this is GSI style rom, not specific ROM for specific model, so you must flash it by twrp or by fastboot command. Like universal rom for all phones than have project treble.
Thanks for support
Im looking to xda everyday for a stable pixel rom
MemurBey said:
Thanks for support
Im looking to xda everyday for a stable pixel rom
Click to expand...
Click to collapse
Majority of GSI are stable but you will have bugs tho. Like either bad battery life or camera isnt working
On this build all functions is working, for camera ultrawide support you need 3rd party app like OpenCamera.
hunter3000 said:
On this build all functions is working, for camera ultrawide support you need 3rd party app like OpenCamera.
Click to expand...
Click to collapse
Does Gcam Works on any Gsi on the SnapDragon variant? No freezing viewfinder?
no gcam working on snapdragon, or i dont find any working for our model.
hunter3000 said:
Please do everything that is written for flashing recovery (Installation), u need to disable encryption and wipe data
Click to expand...
Click to collapse
When disable encryption how safe is the Data stored on the Device?
OptixWolf said:
When disable encryption how safe is the Data stored on the Device?
Click to expand...
Click to collapse
you must disable encryption to boot to non official rom, so you got answer for your question
Master, any solution to this ? "Device is showing as Huawei Nexus 6P need to be changed somehow to our model ", and Call Recording is working on this version ? many thanks for your hard work to G990B version.
This device showing is related to magisk safenet fix for working root with NFC and banking apps but probably also because of GSI rom as is. No call recording as is stock Pixel Experience ROM u need to root and use some magisk module.
Works great on my Samsung s21fe just charging.. sometimes works then other times says it's charging and then does down. Doesn't really go up unless phone is off.
May I know if VoWifi / VoLTE works?

Question ONEPLUS 9 PRO Backlight OFF

Hi all,
I'm trying to use SecondScreen app ( https://forum.xda-developers.com/t/...screen-mirroring-for-android-devices.2766268/ ) on my Oneplus 9 PRO but this feature it seems doesn't work....
I have asked to releaser and he told me that he would need to know the "sysfs path for turning off the OnePlus 9 Pro's backlight" but I'm not able to find it...
Is there anyone knows this path ?
If so, I could tell it to the releaser and he could add this info into its app by an update...
Many thanks to all !
The SecondScreen app is designed to work with devices that have a secondary display, and unfortunately, the OnePlus 9 Pro does not have a secondary display. However, if you still want to use the SecondScreen app on your OnePlus 9 Pro, you can try the following steps:
Download and install the SecondScreen app from the Google Play Store.
Go to Settings > Developer options on your OnePlus 9 Pro and enable USB debugging.
Connect your OnePlus 9 Pro to your computer using a USB cable.
Download and install the ADB (Android Debug Bridge) tool on your computer.
Open a command prompt or terminal window on your computer and navigate to the folder where you have installed ADB.
Type the following command and press Enter: adb shell pm grant com.farmerbb.secondscreen.free android.permission.WRITE_SECURE_SETTINGS
Disconnect your OnePlus 9 Pro from your computer.
Open the SecondScreen app on your OnePlus 9 Pro, and you should be able to use its features.
Please note that these steps may not guarantee the SecondScreen app's full functionality on your OnePlus 9 Pro, as the app is primarily designed for devices with secondary displays. However, the above steps will allow you to access the app's features and settings.
OpenAL said:
The SecondScreen app is designed to work with devices that have a secondary display, and unfortunately, the OnePlus 9 Pro does not have a secondary display. However, if you still want to use the SecondScreen app on your OnePlus 9 Pro, you can try the following steps:
Download and install the SecondScreen app from the Google Play Store.
Go to Settings > Developer options on your OnePlus 9 Pro and enable USB debugging.
Connect your OnePlus 9 Pro to your computer using a USB cable.
Download and install the ADB (Android Debug Bridge) tool on your computer.
Open a command prompt or terminal window on your computer and navigate to the folder where you have installed ADB.
Type the following command and press Enter: adb shell pm grant com.farmerbb.secondscreen.free android.permission.WRITE_SECURE_SETTINGS
Disconnect your OnePlus 9 Pro from your computer.
Open the SecondScreen app on your OnePlus 9 Pro, and you should be able to use its features.
Please note that these steps may not guarantee the SecondScreen app's full functionality on your OnePlus 9 Pro, as the app is primarily designed for devices with secondary displays. However, the above steps will allow you to access the app's features and settings.
Click to expand...
Click to collapse
Thanks but I have a secondary screen connected to my phone with HDMI ( montior 1080p OLED ) that I'm using to play the games....
Everything goes well with it but I would like to swtich off the phone backlight during mirroring and this app could be the right choise.
I have already tried with root and unroot phone ( with adb commands ).
I already have done all the steps needed
I have already write a PM to the releaser and he told me what I have already above write.....
I repeat my question : is anyone who knows the "sysfs path for turning off the OnePlus 9 Pro's backlight" ?
Thanks !

How To Guide Enable VoLTE and VoWifi on OOS 13 without root

Thanks to @caracciola for posting this on the OnePlus 7 Pro forum (link to original guide), the same guide worked on my OnePlus 9 Pro (EU - LE2123 - F75 update, also on 13.1) to enable VoWifi (wifi Calling).
I am just rewording the steps here to make them clearer for me:
Note 1: If you have 2 sims, disable the second sim and proceed. After finishing with the first sim, enable the second sim and disable the first sim then repeat the steps from step 3.
Note 2: Make sure to disable permission monitoring in Developer settings.
Install Shizuku app from playstore: Shizuku - Apps on Google Play
Download "pixel ims" from the attachments of original post to your phone (direct link). Exctract the APK and install it, but do not open it yet. (Edit 27/06/2023: new updated apk available here)
Open the Start shizuku app on your phone.
Connect your phone to you PC with USB DEBUGGING enabled.
Run the ADB command on your PC: adb shell sh /sdcard/Android/data/moe.shizuku.privileged.api/start.sh
You should see something like "Shizuku is running" at your phone. (Edit: might need to uncheck "Disable permission monitoring" in developer settings).
While the shizuku app is running now open the pixel ims app.
Tap "Allow all the time" when seeing prompt asking for Shizuku permission.
Press the button "Enable VoLTE" to enable VoLTE in Pixel IMS
Reboot your phone... Voilà now you have the switches for VoLTE & VoWifi on the settings
Not works for me... I have the italian operator PosteMobile
Doesn't work for me... I tried to use a custom ROM so I could have VoWiFi, but I felt something was off. I got back to OOS13 on my OnePlus 8 Pro (IN2023) with AT&T and tried this method but no success...
omar302 said:
Thanks to @caracciola for posting this on the OnePlus 7 Pro forum (link to original guide), the same guide worked on my OnePlus 9 Pro (EU - LE2123 - F75 update) to enable VoWifi (wifi Calling).
I am just rewording the steps here to make them clearer for me:
Note 1: If you have 2 sims, disable the second sim and proceed. After finishing with the first sim, enable the second sim and disable the first sim then repeat the steps from step 3.
Note 2: Make sure to disable permission monitoring in Developer settings.
Install Shizuku app from playstore: Shizuku - Apps on Google Play
Download "pixel ims" from the attachments of original post to your phone (direct link). Exctract the APK and install it, but do not open it yet.
Open the Start shizuku app on your phone.
Connect your phone to you PC with USB DEBUGGING enabled.
Run the ADB command on your PC: adb shell sh /sdcard/Android/data/moe.shizuku.privileged.api/start.sh. You should see somewhat like "Shizuku is running" at your phone.
While the shizuku app is running now open the pixel ims app.
Tap "Allow all the time" when seeing prompt asking for Shizuku permission.
Press the button "Enable VoLTE" to enable VoLTE in Pixel IMS
Reboot your phone... Voilà now you have the switches for VoLTE & VoWifi on the settings
Click to expand...
Click to collapse
Thank you! It worked on a LE2121 with Android 13!
Update:
I just updated to 13.1 and lost VoLTE. Re-did the steps and got it back.
Added an edit to step 5 in OP, as with 13.1 I had to uncheck "Disable permission monitoring" in developer settings).
It's not work. Oneplus 10 pro. Oxygen os 13.1
yasador said:
It's not work. Oneplus 10 pro. Oxygen os 13.1
Click to expand...
Click to collapse
Need to be more specific.....
Hi,
When I put in the command
adb shell sh /sdcard/Android/data/moe.shizuku.privileged.api/start.sh.
on my PC, I get the following error:
sh: /sdcard/Android/data/moe.shizuku.privileged.api/start.sh.: No such file or directory
I tried toggling disable permission monitoring but still getting the same result
Help please
momiloco said:
Hi,
When I put in the command
adb shell sh /sdcard/Android/data/moe.shizuku.privileged.api/start.sh.
on my PC, I get the following error:
sh: /sdcard/Android/data/moe.shizuku.privileged.api/start.sh.: No such file or directory
I tried toggling disable permission monitoring but still getting the same result
Help please
Click to expand...
Click to collapse
If you are using Windows PowerShell, you might need to .\ Infront of the command. it would be like this:
.\adb shell sh /sdcard/Android/data/moe.shizuku.privileged.api/start.sh
Another suggestion, I think the command should be without the period "." at the end. I just edited the original post to remove it.
omar302 said:
If you are using Windows PowerShell, you might need to .\ Infront of the command. it would be like this:
.\adb shell sh /sdcard/Android/data/moe.shizuku.privileged.api/start.sh
Another suggestion, I think the command should be without the period "." at the end. I just edited the original post to remove it.
Click to expand...
Click to collapse
Thanks bro.
I tried like what you suggested but still the same error.
Managed to do it using wireless USB debugging. Much easier.
Thanks
omar302 said:
Thanks to @caracciola for posting this on the OnePlus 7 Pro forum (link to original guide), the same guide worked on my OnePlus 9 Pro (EU - LE2123 - F75 update, also on 13.1) to enable VoWifi (wifi Calling).
I am just rewording the steps here to make them clearer for me:
Note 1: If you have 2 sims, disable the second sim and proceed. After finishing with the first sim, enable the second sim and disable the first sim then repeat the steps from step 3.
Note 2: Make sure to disable permission monitoring in Developer settings.
Install Shizuku app from playstore: Shizuku - Apps on Google Play
Download "pixel ims" from the attachments of original post to your phone (direct link). Exctract the APK and install it, but do not open it yet.
Open the Start shizuku app on your phone.
Connect your phone to you PC with USB DEBUGGING enabled.
Run the ADB command on your PC: adb shell sh /sdcard/Android/data/moe.shizuku.privileged.api/start.sh
You should see something like "Shizuku is running" at your phone. (Edit: might need to uncheck "Disable permission monitoring" in developer settings).
While the shizuku app is running now open the pixel ims app.
Tap "Allow all the time" when seeing prompt asking for Shizuku permission.
Press the button "Enable VoLTE" to enable VoLTE in Pixel IMS
Reboot your phone... Voilà now you have the switches for VoLTE & VoWifi on the settings
Click to expand...
Click to collapse
Does the above step exclusively for Pixel phone? I recently bought Oneplus 11r 5g from India and living in US. My phone isn't working. Tmobile is telling me that VoLTE option should be enabled. Question is can I apply the above steps on my phone without bricking it?
kmahesh said:
Does the above step exclusively for Pixel phone? I recently bought Oneplus 11r 5g from India and living in US. My phone isn't working. Tmobile is telling me that VoLTE option should be enabled. Question is can I apply the above steps on my phone without bricking it?
Click to expand...
Click to collapse
I think you missed reading the first paragraph. It worked for me on my OnePlus 9 Pro on OOS 13 & 13.1. I am using a Tello (US) line which is basically T-Mobile and got VoWifi to work using these steps.
Actually I read that and I thought 11r might be different from 9Pro. Nevertheless, I gave a shot at this. I got to the place where I need to enable volte but it is greyed out and none of the other options are responding on that screen. See the screenshot. Am I missing something?
Interestingly you seem have owned same sets of phones I owned in the past too - HTC, 7 Pro etc
UPDATE - I downloaded the latest version of Pixel IMS app v1.2.6 - but has no effect on Oneplus 11r & Tmobile.
PLEASE HELP
kmahesh said:
Actually I read that and I thought 11r might be different from 9Pro. Nevertheless, I gave a shot at this. I got to the place where I need to enable volte but it is greyed out and none of the other options are responding on that screen. See the screenshot. Am I missing something?
Interestingly you seem have owned same sets of phones I owned in the past too - HTC, 7 Pro etc
UPDATE - I downloaded the latest version of Pixel IMS app v1.2.6 - but has no effect on Oneplus 11r & Tmobile.
PLEASE HELP
Click to expand...
Click to collapse
It seems that it doesn't work for all SIM cards. I also tried the same with a 1+ 7 Pro using another SIM and it did not work. Maybe I'll try with the Tello SIM on the 7 Pro just to test if it's an issue with the phone or SIM.
Thanks Omar for trying. All I am trying to find out (1) Is my phone the culprit (or) my T-Mobile is the culprit (2) Is there a solution (with or without rooting) to make this work for USA carriers?
Any help would be appreciated.
Thanks
Mahesh
Hello everybody. I have Oneplus 9R OOS 13.0 Android 13. I did everything according to the instructions using wifi debugging. The volte switch slider has become active. However, when making a call, the phone still falls into the H+, H or 3G network. I have 2 SIM cards installed, before starting the algorithm, I did not deactivate the second one. Could this be a problem? If so, what would you recommend to do in this case?
I tested SIM card 1 used for calls and the Internet in another device, Volte works on it.
Updated to LE2123_13.1.0.580(EX01) and off course lost VoWifi, however, repeating the steps re-enabled it.
Also found an updated Pixel IMS apk (link to download) that has more options when enabling VoLTE or VoWifi.

Question No Lockdown Mode Option in lockscreen

I'm using Google smart lock to keep my device unlocked when certain trusted devices are close-by. But I can't find the option to enable Lockdown mode in lockscreen or settings so that I can lock the device without turning of my trusted device. This option was available in OOS 11. Im not sure if it was present in OOS 12. But I couldn't find it in OOS 13 or OOS 13.1 .
Is there a way to trigger it using termux or any other solution? F.Y.I I have root access. So any solutions work.

Categories

Resources