[ NO ROOT ] Enable Camera2API / EIS - Xiaomi Mi A1 Guides, News, & Discussion

You are not root, you do not want to root then unroot like this guide...
https://forum.xda-developers.com/mi-a1/how-to/tool-google-camera-root-magisk-enable-t3747585
And nothing happen when you follow this guide either...(this is what happen to me)
https://forum.xda-developers.com/mi-a1/how-to/guide-how-to-enable-hal3-camera2api-t3747073
-----------------------
Assuming you're already have adb tools and know how to use it
1. Enter fasboot mode (volume down + power)
2. Run CMD command
3. Type lines as follow...
fastboot devices (tap enter)
fastboot oem unlock (tap enter)
4. Then boot to twrp...
fastboot boot twrp.img (tap enter)
5. After device boot to twrp, DONT TOUCH it
6. Now type this...
adb shell (tap enter)
setprop persist.camera.HAL3.enabled 1 (tap enter)
setprop persist.camera.eis.enable 1 (tap enter)
adb exit (tap enter)
7. Then boot to fastboot again...
adb reboot bootloader (tap enter)
fastboot devices (tap enter)
fastboot oem lock (tab enter)
fastboot reboot (tab enter)
8. You're done, now download Manual Camera Compatibility from Playstore to check.
Hope this help

pyronia said:
You are not root, you do not want to root then unroot like this guide...
https://forum.xda-developers.com/mi-a1/how-to/tool-google-camera-root-magisk-enable-t3747585
And nothing happen when you follow this guide either...(this is what happen to me)
https://forum.xda-developers.com/mi-a1/how-to/guide-how-to-enable-hal3-camera2api-t3747073
-----------------------
Assuming you're already have adb tools and know how to use it
1. Enter fasboot mode (volume down + power)
2. Run CMD command
3. Type lines as follow...
fastboot devices (tap enter)
fastboot oem unlock (tap enter)
4. Then boot to twrp...
fastboot boot twrp.img (tap enter)
5. After device boot to twrp, DONT TOUCH it
6. Now type this...
adb shell (tap enter)
setprop persist.camera.HAL3.enabled 1 (tap enter)
setprop persist.camera.eis.enable 1 (tap enter)
adb exit (tap enter)
7. Then boot to fastboot again...
adb reboot bootloader (tap enter)
fastboot devices (tap enter)
fastboot oem lock (tab enter)
fastboot reboot (tab enter)
8. You're done, now download Manual Camera Compatibility from Playstore to check.
Hope this help
Click to expand...
Click to collapse
there is already a thread posted about it, so please dont spam the forum with mirror links
i request moderator to close it

<p>some title</p>
just a silly (and probably noob) question: does the unlock / re-lock bootloader procedure wipe your device data ??

pyronia said:
You are not root, you do not want to root then unroot like this guide...
https://forum.xda-developers.com/mi-a1/how-to/tool-google-camera-root-magisk-enable-t3747585
And nothing happen when you follow this guide either...(this is what happen to me)
https://forum.xda-developers.com/mi-a1/how-to/guide-how-to-enable-hal3-camera2api-t3747073
-----------------------
Assuming you're already have adb tools and know how to use it
1. Enter fasboot mode (volume down + power)
2. Run CMD command
3. Type lines as follow...
fastboot devices (tap enter)
fastboot oem unlock (tap enter)
4. Then boot to twrp...
fastboot boot twrp.img (tap enter)
5. After device boot to twrp, DONT TOUCH it
6. Now type this...
adb shell (tap enter)
setprop persist.camera.HAL3.enabled 1 (tap enter)
setprop persist.camera.eis.enable 1 (tap enter)
adb exit (tap enter)
7. Then boot to fastboot again...
adb reboot bootloader (tap enter)
fastboot devices (tap enter)
fastboot oem lock (tab enter)
fastboot reboot (tab enter)
8. You're done, now download Manual Camera Compatibility from Playstore to check.
Hope this help
Click to expand...
Click to collapse
Its modify system

pyronia said:
You are not root, you do not want to root then unroot like this guide...
https://forum.xda-developers.com/mi-a1/how-to/tool-google-camera-root-magisk-enable-t3747585
And nothing happen when you follow this guide either...(this is what happen to me)
https://forum.xda-developers.com/mi-a1/how-to/guide-how-to-enable-hal3-camera2api-t3747073
-----------------------
Assuming you're already have adb tools and know how to use it
1. Enter fasboot mode (volume down + power)
2. Run CMD command
3. Type lines as follow...
fastboot devices (tap enter)
fastboot oem unlock (tap enter)
4. Then boot to twrp...
fastboot boot twrp.img (tap enter)
5. After device boot to twrp, DONT TOUCH it
6. Now type this...
adb shell (tap enter)
setprop persist.camera.HAL3.enabled 1 (tap enter)
setprop persist.camera.eis.enable 1 (tap enter)
adb exit (tap enter)
7. Then boot to fastboot again...
adb reboot bootloader (tap enter)
fastboot devices (tap enter)
fastboot oem lock (tab enter)
fastboot reboot (tab enter)
8. You're done, now download Manual Camera Compatibility from Playstore to check.
Hope this help
Click to expand...
Click to collapse
Thanks for manual instructions waiting from last 4 days . Now my gcam is working perfectly

nx2592 said:
just a silly (and probably noob) question: does the unlock / re-lock bootloader procedure wipe your device data ??
Click to expand...
Click to collapse
No

Already a thread for this here:
https://forum.xda-developers.com/mi-a1/how-to/guide-how-to-enable-hal3-camera2api-t3747073
Thread closed.

Related

[Q] How to hard reset when display is not working

my atrix 2 display is not working after it fell down on ground...now i want to reset it(wipe all data)...can some one tell me any procedure??
Do you have adb setup?
Turn your phone on, connect usb and try:
Code:
adb shell
wipe data
Sent from my MB865 using xda app-developers app
alteredlikeness said:
Do you have adb setup?
Turn your phone on, connect usb and try:
Code:
adb shell
wipe data
Sent from my MB865 using xda app-developers app
Click to expand...
Click to collapse
can u please give me links to setup adb..
do i need to have usb debugging enabled for that??
(rooted mobile but usb debugging is not enabled)
vdpraneeth said:
can u please give me links to setup adb..
do i need to have usb debugging enabled for that??
(rooted mobile but usb debugging is not enabled)
Click to expand...
Click to collapse
Google adb set-up..
Or...
Another idea.. do you have a windows computer?
If so, download this: http://www.androidfilehost.com/?fid=9390275921635705032 (taken from this post)
-unzip the restore-to-ics_win-batch.zip files to a folder on your desktop (no spaces in the folder name)
(don't worry about the restore to ics .bat file - you need the other files in there)
-make sure your phone is off, then power on by holding power + volume down buttons for a few seconds (only hold those two buttons - count to 10 and let go) - this should boot your phone directly into fastboot mode
-connect with usb
-hold Shift and right-click on the new_folder with the adb and moto-fastboot files > choose "Open command window here"
-type in the command prompt:
Code:
moto-fastboot devices
Hopefully it should give you a device id.. If so, then type these two lines (hit enter after each line):
Code:
moto-fastboot erase userdata
moto-fastboot erase cache
Done.. data wiped (and cache, for good measure).
You can type moto-fastboot reboot to reboot your phone normally.
***
Or you could first try with adb by using those files in that same zip (but you probably need usb debugging enabled)..
Just boot your phone normally, then open the command prompt on that same folder as described above, type these lines (hitting enter after each):
Code:
adb shell
su
wipe data
exit
exit

[Tutorial][Recovery][Root] Intex Aqua Music [Mediatek MT6735]

Hi there!!
Well I was trying to root this phone since a month but due to lack of developers, it wasn't possible. So I tried and at last succeeded in rooting and porting TWRP recovery for Intex Aqua Music.
I tried to elaborate every step as much as I can so the tutorial becomes user friendly for everyone.
Disclaimer: Rooting immediately voids your phone's warranty, you should consider very carefully whether you need to gain root privileges. And this tutorial will format your phone. So backup you important files at the very first.
Tutorial
First download all the files which i left and the end of the thread and proceed with the tutorial.
First of all you need to install ADB Drivers.
Once drivers are installed, you need to enable USB Debugging in your phone.
(goto phone settings->About phone->scroll down and you’ll see an entry labelled ‘Build number.’ Keep on tapping till you see a prompt that says ‘You are now a developer)
Now in phone settings you will see a new option called Developer Options.
Now goto Developer Options and enable OEM Unlocking(for unlocking the bootloader so you can flash the TWRP recovery) and USB Debugging.
Now connect you phone with usb cable to computer and open the adb and fastboot folder which you downloaded.
Then open command prompt there(shift+right click) and type:
Code:
adb devices
You will see a popup on you phone screen, Select allow and ok
Now you will see your device listed there in command prompt.
Now type the following commands:
Code:
adb reboot bootloader
Phone will switch off and go into bootloader. Then type
Code:
fastboot oem unlock
Now you phone will ask for confirmation. Use Volume UP Button to select yes then type
Code:
fastboot continue
.
Now your device will reboot(it will take some time so don't worry)
Now once your phone boot up you will see its formatted and bootloader will be unlocked.
Now again goto setting and enable USB Debugging like before and connect you phone with pc.
Now copy the recovery.img from recovery zip which you downloaded to adb and fastboot folder.
Then in adb command prompt type the following commands like before
Code:
adb reboot bootloader
Wait for the phone to go into bootloader mode, then
Code:
fastboot flash recovery recovery.img
fastboot continue
Now twrp is flashed in your phone. Now to root your device copy the supersu zip to you phone.
Switch off your mobile, then press Volume Up + Power button together then choose recovery mode with Volume UP Button and
press Volume Down Button.
Now phone will boot into TWRP recovery mode.
Click Install and choose the Super Su zip from file manager then install it.
The click reboot and once your phone boots up its rooted now.
Enjoy!
Thanks button will be appreciated if the tutorial works for you.
Thanks
Thanks man, helpful

[ROOT][GUIDE][NOOB-FRIENDLY]Unlock Bootloader + Root for Lenovo K8 Plus

How to unlock bootloader & get root for Lenovo K8 Plus
**********Pre-requirements***********
1. Make sure you have 70% charge or more then that.
2. Follow all steps correctly otherwise you will end up with a bricked phone.
3. I'm not responsible for any damage to your phone.
4. Make sure that you have installed usb drivers.
5. Download ADB & Fastboot Drivers
Steps to Unlock Bootloader
1. First of all, enable the Developer Option
To Enable the Developer Option, Go to your Settings -> About -> Software Information -> More -> Now Tap on the Build Number 7-8 Times until you see a toast message “Developer option enabled"
2. Go back to settings -> Now you need to enable the OEM Unlock by going to Settings -> Developer Option and Enable OEM Unlock and USB Debugging
3. Download and Extract the Downloaded ADB fastboot Zip file on your phone.
4. Now connect your phone to Computer using USB Cable.
When you connect your Phone to Computer, please wait until all the drivers get installed.
5. In your ADB fastboot folder open a command prompt window by pressing Shift Key + Right Mouse Click
Now type the command in your command window
Code:
adb devices
6. If you see a pop up to allow USB Debugging on your phone, Click OK
Now type the command below to reboot your phone to bootloader
Code:
adb reboot bootloader
7. Once your phone reboot into bootloader, make sure your phone shows the bootloader locked and then type the command below to make sure fastboot drivers are installed properly.
Code:
fastboot devices
8. This command will list the connected devices. If your phones serial number shows up you are good to go and may continue. If the phone is NOT listed this indicates that your drivers are not installed correctly. In order for you to continue, you must fix your drivers so that your phone is listed under fastboot devices.
9. If the phone has been recognized by the command above, proceed to unlock the bootloader with the following command:
Code:
Remember that this step will wipe EVERYTHING off the phone
Code:
fastboot oem unlock
10. After the above command has finished executing, run the following
Code:
fastboot reboot
The phone will reboot. Wait until the phone has fully booted up into Android.
Root method
Note:- All credits for it goes to @topjohnwu for his amazing magisk
Requirements:-
1. Make sure you are on latest September patch firmware.
2. Download patched_boot.img created from magisk mangaer.
Instructions:-
1. Connect up your phone then type:-
Code:
adb reboot bootloader
2. Copy patched_boot.img in adb folder.
Now type
Code:
fastboot flash boot patched_boot.img[/url]
3. Open up you device & install magisk manager from [url=https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445]here[/url]
Voilla you're rooted.
Mod Edit
Duplicate thread is closed
malybru
Senior Moderator

[ROOT] Coolad Modena 2 / Sky 2 (E502)

Recently, I successfully ported TWRP from Coolpad Note 3 Lite to Modena 2. After testing, everything works fine, on both devices. Since this device has locked bootloader, we need to bypass this by enabling fastmmi mode and factory mode to enable temporary root access and make initial backup and flashing. So, let´s get started.
Remember to read this post carefully. I am not resposible for any damage to your device. If you brick your device while flashing the TWRP you can *almost* always recover it using SP Flash Tool and YGDP Tool
IF YOU ACCIDENTALY BRICK YOUR DEVICE AND YOU WANT TO FLASH IT VIA SPFT, DO NOT FORMAT THE DEVICE IN SPFT!!! If you´ll format partitions in TWRP, that´s fine, but don´t do FORMAT ALL + DOWNLOAD or FIRMWARE UPGRADE! This will brick your device, like mine This tutorial will not (hopefully) brick it, but just in case something goes wrong, now you know what not to do.
Preparing the environment on your computer
Windows
Download ADB and Fastboot from this link
Open it
Install it system-wide
Also, install the drivers
GNU/Linux (Ubuntu / Debian based distros)
Open terminal
Type "sudo apt install adb fastboot libusb-dev" without the quotes (")
Other things, that are required
Since the file size of the recovery exceeds the maximum 8MB of allowed upload size, you can download it from DataFileHost.
Preparing the device
First, you need to remeber that this could render your device unbootable and will void warranty.
Enable developer options
Go to Settings -> About phone
Tap the build number 7 times
Go back
Go to Developer options
Make sure OEM unlocking and USB Debugging is enabled
Enabling factory mode
Open dialer app
Dial *#9527*#
Click on "DM"
You will be prompted to insert RD personnel password. Enter: 54321
Click cancel button
DM button should change colour to RED
Exit the app by clicking home button
Installing and setting up openrp app
Open terminal / command prompt
Type:
Code:
adb start-server
Type:
Code:
adb devices
Now, click on your phone allow debugging and make sure to tick the radiobutton to remember / always trust this computer
Type:
Code:
adb install
Press spacebar after the install word and drag and drop the downloaded openrp.apk file to terminal
Hit enter
After it´s done, type:
Code:
adb shell monkey -p com.yulong.openrp -v 500
Now, the fun part. ROOTING the device
But before that, BACKUP
Now, keep your phone plugged in, and do a normal reboot by pressing and holding the power button and clicking reboot
When it vibrates, press and hold the Volume down key (Vol-)
You will see these lines on the screen:
Code:
=>[Factory mode]
Code:
=>VolumeDown key is pressed
Code:
=>[fastmmi mode]
After that, you´ll see the LED turns green and "Up Down" text on the screen
Now, back to your computer, type in the command prompt
Code:
adb devices
You should see XXXXXXXXXXXXXX device listed (where XXXX... is the serial number)
Type in the command prompt:
Code:
adb shell dd if=/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/recovery of=/storage/self/primary/stock_recovery.img
and
Code:
adb shell dd if=/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/boot of=/storage/self/primary/stock_bootimg.img
Flashing the TWRP Image
Type in the command prompt:
Code:
adb push (drag and drop the recovery image file here, like you did with the openrp.apk file) /storage/self/primary/
Type:
Code:
adb reboot
Press and hold VolumeDown key (Vol-) to boot to fastmmi mode
Type:
Code:
adb shell dd if=/storage/self/primary/recovery_twrp_e502.img of=/dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/recovery
Type
Code:
adb reboot
Press and hold the VolumeUp key (Vol+) to boot into recovery. If you see white screen with "Recovery" text in it, congrats. Everything is working. If not, try again.
Flashing the SuperSU package
Download the zip from SuperSU website
Copy the zip over to the device, with TWRP running
In TWRP, click install, click the zip and confirm the installation.
Factory reset is not required, but you should at least wipe the cache
If this post was useful for you, hit the thanks button
RESERVED
Hi i have a problem here. at the part to drag and drop the openrp file. When i have downloaded the file a drag it and drop it after the install word. The problem is that if I want to drop it there it will do nothing, nothing there shows or anything. Please respond.
I guess you can type the path to the installation file instead of dragging.
Hello,
Very helpful thread, my coolpad Modena 2 (E502) is now rooted.
Don't forget to disable the factory mode once everything is done, or you won't be able to access the storage to usb anymore.
Thanks.
helo, can i get help, when i try to install openrp on abd and fastboot, it printed this message "Failure [INSTALL_FAILED_SHARED_USER_INCOMPATIBLE]"
can anyone help me on that step, so i can root my e502
TCRakt said:
Hello,
Very helpful thread, my coolpad Modena 2 (E502) is now rooted.
Don't forget to disable the factory mode once everything is done, or you won't be able to access the storage to usb anymore.
Thanks.
Click to expand...
Click to collapse
how to disable the factory mode ?? :crying:
Firefa23 said:
how to disable the factory mode ?? :crying:
Click to expand...
Click to collapse
Hello,
If I recall correctly (I don't have the phone anymore, just touched it once to root it at the time), you basically undo the "Enabling factory mode" step.
I think if you dial the number, you'll be back in the menu where you have the option to disable the factory mode.
Factory mode should be disabled when 'DM' is green.
Good luck
very good
Need Custom rom please
nougat / pie
Hello, could you resend the twrp recovery file for this phone again?. old links not work!.
(sorry for my bad english)

Help with installing camera2 api on Xiaomi mi A2 lite.

I enabled usb debugging and unlocked the bootloader. I downloaded the lates twrp daisy for mi A2 lite. I use the following commands in command prompt:
adb devices
adb reboot bootloader
fastboot boot twrp.img
When in enters the twrp I tried two things:
1. press do not change anything
2. swipe the arrow to the right
Next commands:
adb devices
adb shell
setprop persist.camera.HAL3.enabled 1
setprop persist.camera.eis.enabled 1
exit
adb reboot
I read somewhere that I need to write su after adb shell, but it doesn't recognize that command.
Does anyone know what I'm doing wrong?
I want to enable google camera without rooting my phone. Build number 10.0.4.0.

Categories

Resources