FORUMS
Remove All Ads from XDA

Xiaomi Mi A2 - Android 9 Pie Update + Magisk + Camera2 API

43 posts
Thanks Meter: 27
 
Post Reply Email Thread
Hi guys!

I'm from Brazil and in the last two days I was reading about the Android 9 Pie update to our Mi A2.
I also read that today it started to roll out to India and some European countries.

For curiosity I installed ExpressVPN, conected to an Holland server and tried to download the OTA. It worked flawlessly.

I flashed via fastboot the Magisk patched boot of 10.0.1 build and got the Magisk also working flawlessly.

For the Camera2 API, I just edited the Magisk module and added the line "persist.vendor.camera.HAL3.enabled=1". Then I installed it through Magisk module screen. It also worked.

These are the steps I did:

1 - Obviously you will need to be on Android 9 Pie
(Try to download the OTA via VPN or wait to get it in your country)

2 - Download this file and extract it: https: // drive.google.com/open?id=1b9jRc1gZuPJatds5RkuCiJtuE7UCH5wh
(Remove the spaces)

3 - Turn your phone off and boot it in Fastboot Mode by pressing and holding Power + Vol Down and then, plug into the USB;

4 - In the extracted files, open the folder "Plataform Tools" and then open the Power Shell window.
(Inside this folder I added the original "boot.img" and the "patched_boot.img", all from 10.0.1 build)

5 - In PowerShell, just type: fastboot boot patched_boot.img
(It should boot with Magisk installed)

6 - Open Magisk, tap Install and chose to install directly. Reboot
(It will prevent Magisk get uninstalled after reboot)

7 - Transfer the files "Camera 2 API Enabler - Pie.zip" and "Google Camera - 5.1.018 Arnova8G2 8.3b1 (Pie).apk" to your phone memory.

8 - Open Magisk, go to "Modules", then tap the yellow buttom, search for the "Camera 2 API Enabler - Pie.zip" file and then install it. Reboot

9 - Once the phone rebooted, install the "Google Camera - 5.1.018 Arnova8G2 8.3b1 (Pie).apk".
(Go to Developer Options and unchek "camera.enable_micro", so you can use 5MP on front camera)

10 - Done! You're now on Android Pie with Magisk and Google Camera
Attached Thumbnails
Click image for larger version

Name:	Screenshot_20181116-220232.png
Views:	4506
Size:	113.1 KB
ID:	4644619   Click image for larger version

Name:	Screenshot_20181116-215551.png
Views:	4500
Size:	76.7 KB
ID:	4644620   Click image for larger version

Name:	Screenshot_20181116-215600.png
Views:	4478
Size:	181.5 KB
ID:	4644621   Click image for larger version

Name:	Screenshot_20181116-220010.png
Views:	4224
Size:	127.5 KB
ID:	4644622  
The Following 8 Users Say Thank You to Ricardo Guariento For This Useful Post: [ View ] Gift Ricardo Guariento Ad-Free
 
 
17th November 2018, 01:56 AM |#2  
Yepi69's Avatar
Senior Member
Thanks Meter: 43
 
Donate to Me
More
Quote:
Originally Posted by Ricardo Guariento

Hi guys!

I'm from Brazil and in the last two days I was reading about the Android 9 Pie update to our Mi A2.
I also read that today it started to roll out to India and some European countries.

For curiosity I installed ExpressVPN, conected to an Holland server and tried to download the OTA. It worked flawlessly.

I flashed via fastboot the Magisk patched boot of 10.0.1 build and got the Magisk also working flawlessly.

For the Camera2 API, I just edited the Magisk module and added the line "persist.vendor.camera.HAL3.enabled=1". Then I installed it through Magisk module screen. It also worked.

These are the steps I did:

1 - Obviously you will need to be on Android 9 Pie
(Try to download the OTA via VPN or wait to get it in your country)

2 - Download this file and extract it: https: // drive.google.com/open?id=1b9jRc1gZuPJatds5RkuCiJtuE7UCH5wh
(Remove the spaces)

3 - Turn your phone off and boot it in Fastboot Mode by pressing and holding Power + Vol Down and then, plug into the USB;

4 - In the extracted files, open the folder "Plataform Tools" and then open the Power Shell window.
(Inside this folder I added the original "boot.img" and the "patched_boot.img", all from 10.0.1 build)

5 - In PowerShell, just type: fastboot boot patched_boot.img
(It should boot with Magisk installed)

6 - Open Magisk, tap Install and chose to install directly. Reboot
(It will prevent Magisk get uninstalled after reboot)

7 - Transfer the files "Camera 2 API Enabler - Pie.zip" and "Google Camera - 5.1.018 Arnova8G2 8.3b1 (Pie).apk" to your phone memory.

8 - Open Magisk, go to "Modules", then tap the yellow buttom, search for the "Camera 2 API Enabler - Pie.zip" file and then install it. Reboot

9 - Once the phone rebooted, install the "Google Camera - 5.1.018 Arnova8G2 8.3b1 (Pie).apk".
(Frontal camera will only work with 3MP)

10 - Done! You're now on Android Pie with Magisk and Google Camera

I downloaded ExpressVPN and changed to Holland, I still don't get the update.
17th November 2018, 02:05 AM |#3  
OP Member
Flag Mogi Mirim - SP
Thanks Meter: 27
 
More
Quote:
Originally Posted by Yepi69

I downloaded ExpressVPN and changed to Holland, I still don't get the update.

I really don't know why I managed to get this in the first try.

Try to follow this (steps made by users that got it)

-Remove SIM card;
-Reset to factory state;
-Start the initial configuration;
-Choose Nederlands;
-Don't log-in in Google Account;
-Don't activate GPS when asked;
-Once phone starts, download ExpressVPN;
-Choose to use it as trial;
-Choose Holland/Nederlands server;
-Try the OTA.
The Following 5 Users Say Thank You to Ricardo Guariento For This Useful Post: [ View ] Gift Ricardo Guariento Ad-Free
17th November 2018, 02:25 AM |#4  
Junior Member
Thanks Meter: 0
 
More
Amigo, tem que ser Power Shell mesmo? Aqui me dá opção do Prompt de comando apenas.
17th November 2018, 03:46 AM |#5  
Senior Member
Thanks Meter: 90
 
Donate to Me
More
OTA
After using this method can I update normally without VPN?


Quote:
Originally Posted by Ricardo Guariento

I really don't know why I managed to get this in the first try.

Try to follow this (steps made by users that got it)

-Remove SIM card;
-Reset to factory state;
-Start the initial configuration;
-Choose Nederlands;
-Don't log-in in Google Account;
-Don't activate GPS when asked;
-Once phone starts, download ExpressVPN;
-Choose to use it as trial;
-Choose Holland/Nederlands server;
-Try the OTA.

17th November 2018, 04:19 AM |#6  
Junior Member
Thanks Meter: 11
 
More
Quote:
Originally Posted by Ricardo Guariento

I really don't know why I managed to get this in the first try.

Try to follow this (steps made by users that got it)

-Remove SIM card;
-Reset to factory state;
-Start the initial configuration;
-Choose Nederlands;
-Don't log-in in Google Account;
-Don't activate GPS when asked;
-Once phone starts, download ExpressVPN;
-Choose to use it as trial;
-Choose Holland/Nederlands server;
-Try the OTA.

This one worked like a charm, it is downloading now.
17th November 2018, 04:38 AM |#7  
Yepi69's Avatar
Senior Member
Thanks Meter: 43
 
Donate to Me
More
Quote:
Originally Posted by Ricardo Guariento

I really don't know why I managed to get this in the first try.

Try to follow this (steps made by users that got it)

-Remove SIM card;
-Reset to factory state;
-Start the initial configuration;
-Choose Nederlands;
-Don't log-in in Google Account;
-Don't activate GPS when asked;
-Once phone starts, download ExpressVPN;
-Choose to use it as trial;
-Choose Holland/Nederlands server;
-Try the OTA.

It worked flawlessly, damn you Brazilians and your ''Brasileirices'' kkkkk
The Following 2 Users Say Thank You to Yepi69 For This Useful Post: [ View ] Gift Yepi69 Ad-Free
17th November 2018, 06:05 AM |#8  
Junior Member
Thanks Meter: 0
 
More
Hmm After doing this, will I loose ota update?
17th November 2018, 07:10 AM |#9  
Member
Thanks Meter: 4
 
More
Quote:
Originally Posted by Ricardo Guariento

I really don't know why I managed to get this in the first try.

Try to follow this (steps made by users that got it)

-Remove SIM card;
-Reset to factory state;
-Start the initial configuration;
-Choose Nederlands;
-Don't log-in in Google Account;
-Don't activate GPS when asked;
-Once phone starts, download ExpressVPN;
-Choose to use it as trial;
-Choose Holland/Nederlands server;
-Try the OTA.

Duude, big thanks to you, worked for me too. Only I used Nord VPN, as Express said that Trial is not available.
You've made my Day.
17th November 2018, 07:40 AM |#10  
Junior Member
Thanks Meter: 3
 
More
Works the download boot in reboot, bootlop 9 times, and starts and says "couldn't update".
17th November 2018, 08:58 AM |#11  
Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by Ricardo Guariento

Hi guys!

I'm from Brazil and in the last two days I was reading about the Android 9 Pie update to our Mi A2.
I also read that today it started to roll out to India and some European countries.

For curiosity I installed ExpressVPN, conected to an Holland server and tried to download the OTA. It worked flawlessly.

I flashed via fastboot the Magisk patched boot of 10.0.1 build and got the Magisk also working flawlessly.

For the Camera2 API, I just edited the Magisk module and added the line "persist.vendor.camera.HAL3.enabled=1". Then I installed it through Magisk module screen. It also worked.

These are the steps I did:

1 - Obviously you will need to be on Android 9 Pie
(Try to download the OTA via VPN or wait to get it in your country)

2 - Download this file and extract it: https: // drive.google.com/open?id=1b9jRc1gZuPJatds5RkuCiJtuE7UCH5wh
(Remove the spaces)

3 - Turn your phone off and boot it in Fastboot Mode by pressing and holding Power + Vol Down and then, plug into the USB;

4 - In the extracted files, open the folder "Plataform Tools" and then open the Power Shell window.
(Inside this folder I added the original "boot.img" and the "patched_boot.img", all from 10.0.1 build)

5 - In PowerShell, just type: fastboot boot patched_boot.img
(It should boot with Magisk installed)

6 - Open Magisk, tap Install and chose to install directly. Reboot
(It will prevent Magisk get uninstalled after reboot)

7 - Transfer the files "Camera 2 API Enabler - Pie.zip" and "Google Camera - 5.1.018 Arnova8G2 8.3b1 (Pie).apk" to your phone memory.

8 - Open Magisk, go to "Modules", then tap the yellow buttom, search for the "Camera 2 API Enabler - Pie.zip" file and then install it. Reboot

9 - Once the phone rebooted, install the "Google Camera - 5.1.018 Arnova8G2 8.3b1 (Pie).apk".
(Frontal camera will only work with 3MP)

10 - Done! You're now on Android Pie with Magisk and Google Camera

will my phone will get ota updates after unlocking bootloader and enabling camera2api ???
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes