[GUIDE][WHYRED] How to boot Android P on Xiaomi Redmi Note 5

Search This thread

oieNao

Senior Member
Oct 18, 2016
109
27
Castellammare di Stabia
I am writing this guide with all the steps I did to successfully boot Android P on my Whyred device, I am not responsible for any damage, brick, dead SD and so on.

All you have to do is:

-Boot to Recovery (you'll need a Treble Recovery).
-Go to "Clean" section and perform a Factory Reset by swiping the arrow below.
-On "Clean" section tap "Advanced Clean" and select all the partitions (Internal storage, USB-OTG and microSD excluded).
-Go to "Install" section and install last MoKee Rom (in order to boot Android P you'll need MoKee's Vendor).
-After you succesfully installed MoKee rom's zip, go back to recovery main menu and then again "Install" but now press "Install IMG file" and select P-DP3-sGSI.img mounting it as System Image.
-Now go back to recovery main menu and then tap on "Mount" section, here simply uncheck and then check again "vendor".
-Go back to "Install" and then simply install the three files which come after the installation of P-DP3-sGSI.img (POST-sGSI_1_v0.9.zip, POST-sGSI_2_v0.12.zip and POST-sGSI_3.zip in this exact order).
-Simply reboot to System and...you're DONE!

If you want Magisk, you'll need to flash it simply going back to Recovery mode but this only after you firstly setup the phone! (Also I don't know if there is a Magisk.zip compatible with Project Treble for Whyred. EDIT: Magisk 16.6 is working flawlessly).

Here some useful links:


Treble Recovery: https://dl.twrp.me/whyred/
MoKee Rom: https://download.mokeedev.com/?device=whyred&type=nightly
Android P files: https://androidfilehost.com/?w=files&flid=275999
Magisk: https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

Some useful infos from Android P GSI's topic:(https://forum.xda-developers.com/pr...nt/rom-android-p-developer-preview-t3816659):

How to fix mtp:

Enable developer settings (Please google to know if you don't know)
Scroll down to select Default USB Configuration
Select File Transfer


Fix google account and playstore:

install https://tinyurl.com/gmscore

Have in-call audio bug?
flash (need vendor and system to be munted) : https://androidfilehost.com/?fid=5862345805528048703


Here some screenshots! :
cP2MLO8.jpg
2cd0bc3d-a51d-4061-bd7f-75e8c1c50ebb
e7e14010-8db2-46b7-91b0-cf42665b14d5
133c4e5c-e0c9-4f7e-9ecc-5bbf64ac3735
3d98b3a1-5fb6-4299-ba46-f434d15fe059
1aa0287d-eafe-479f-8caa-14a72254613b

Here a video review of Android P by TechDroider: https://www.youtube.com/watch?v=YguzLYgV1Jg

KNOWN BUGS: Camera not working, even when enabling HAL3 manually from build.prop, tested both Footej Camera and GCAM; Notification LED not working (LED is working only when charging), Double Tap To Wake not working.

This guide has been written by oieNao/TH3WH1T3WOLF, don't forget to quote if you post it somewhere else, a "thanks" would be appreciated :D
 
Last edited:

Tyrany

Senior Member
Sep 19, 2011
810
400
Faro
Nope, seems like camera is not working at all. I even enabled camera2api manually and tested both Footej Camera and GCAM with no results.

did you try any legacy camera like mi camera for custom roms?

or try this adb logcat | grep cam and grab a log please
 

oieNao

Senior Member
Oct 18, 2016
109
27
Castellammare di Stabia
did you try any legacy camera like mi camera for custom roms?

or try this adb logcat | grep cam and grab a log please

So I connect the phone to my pc and simply use the command you wrote to take a log? You think then we'll be able to fix cam?

No I didn't try mi camera for custom roms but...is there any zip file to flash it? So maybe I'll be able to do it...
 

B!GBOY

Senior Member
Jul 22, 2010
478
410
??
the gcam is working for me also ar stickers work but not the front hdr as I have the ai variant. however the miui cam for custom roms does not work. also can't get mtp...
the thing that is missing in your tutorial is that it does not boot with an encrypted data partition. I had to "format data" ( the option available in wipe menu which wipes data and internal storage) than install mokee and than flash no-verity, boot up and afterwards continue with the installation. this is mentioned in the original tutorial.
 

B!GBOY

Senior Member
Jul 22, 2010
478
410
??
Is playstore working?

yes, after you install the gmscore linked in the OP it works.

this is basically a giant hack to get a preview software working on a device it didn't meant to, so the fact that so many things work as expected is a big deal (thanks to project treble).
btw my mobile data does not work on the second sim and the camera situation is really messy
somehow arnova8g2 camera works but you cant get in to its settings as it remembers there's no camera :D
but dont expect a daily driver. it's just fun playing with stuff and trying new things :)
 

Hrishi1834

Senior Member
May 31, 2016
54
4
yes, after you install the gmscore linked in the OP it works.

this is basically a giant hack to get a preview software working on a device it didn't meant to, so the fact that so many things work as expected is a big deal (thanks to project treble).
btw my mobile data does not work on the second sim and the camera situation is really messy
somehow arnova8g2 camera works but you cant get in to its settings as it remembers there's no camera :D
but dont expect a daily driver. it's just fun playing with stuff and trying new things :)

How to root ? use the normal magisk zip?

---------- Post added at 10:54 AM ---------- Previous post was at 10:25 AM ----------

How to root ? use the normal magisk zip?

Do I have to enable camera2API?

Please send the link of the Gcam.
 

Thetpcguy

Senior Member
Sep 19, 2016
79
14
I am writing this guide with all the steps I did to successfully boot Android P on my Whyred device, I am not responsible for any damage, brick, dead SD and so on.

All you have to do is:

-Boot to Recovery (you'll need a Treble Recovery).
-Go to "Clean" section and perform a Factory Reset by swiping the arrow below.
-On "Clean" section tap "Advanced Clean" and select all the partitions (Internal storage, USB-OTG and microSD excluded).
-Go to "Install" section and install last MoKee Rom (in order to boot Android P you'll need MoKee's Vendor).
-After you succesfully installed MoKee rom's zip, go back to recovery main menu and then again "Install" but now press "Install IMG file" and select P-DP3-sGSI.img mounting it as System Image.
-Now go back to recovery main menu and then tap on "Mount" section, here simply uncheck and then check again "vendor".
-Go back to "Install" and then simply install the three files which come after the installation of P-DP3-sGSI.img (POST-sGSI_1_v0.9.zip, POST-sGSI_2_v0.12.zip and POST-sGSI_3.zip in this exact order).
-Simply reboot to System and...you're DONE!

If you want Magisk, you'll need to flash it simply going back to Recovery mode but this only after you firstly setup the phone! (Also I don't know if there is a Magisk.zip compatible with Project Treble for Whyred. EDIT: Magisk 16.6 is working flawlessly).

Here some useful links:


Treble Recovery: https://dl.twrp.me/whyred/
MoKee Rom: https://download.mokeedev.com/?device=whyred&type=nightly
Android P files: https://androidfilehost.com/?w=files&flid=275999
Magisk: https://forum.xda-developers.com/apps/magisk/official-magisk-v7-universal-systemless-t3473445

Some useful infos from Android P GSI's topic:(https://forum.xda-developers.com/pr...nt/rom-android-p-developer-preview-t3816659):

How to fix mtp:

Enable developer settings (Please google to know if you don't know)
Scroll down to select Default USB Configuration
Select File Transfer


Fix google account and playstore:

install https://tinyurl.com/gmscore

Have in-call audio bug?
flash (need vendor and system to be munted) : https://androidfilehost.com/?fid=5862345805528048703


Here some screenshots! :
cP2MLO8.jpg
2cd0bc3d-a51d-4061-bd7f-75e8c1c50ebb
e7e14010-8db2-46b7-91b0-cf42665b14d5
133c4e5c-e0c9-4f7e-9ecc-5bbf64ac3735
3d98b3a1-5fb6-4299-ba46-f434d15fe059
1aa0287d-eafe-479f-8caa-14a72254613b

Here a video review of Android P by TechDroider: https://www.youtube.com/watch?v=YguzLYgV1Jg

KNOWN BUGS: Camera not working, even when enabling HAL3 manually from build.prop, tested both Footej Camera and GCAM; Notification LED not working (LED is working only when charging), Double Tap To Wake not working.

This guide has been written by oieNao/TH3WH1T3WOLF, don't forget to quote if you post it somewhere else, a "thanks" would be appreciated :D

HI Could anyone please tell me if we could go back to installing/ flashing oreo custom roms or the miui 9 nougat rom normally/regularly if we install this android p GSI? I hope it allows for such downgrade!! However I'm not sure as it may make changes to partitioning? Please someone reply!!

---------- Post added at 02:00 PM ---------- Previous post was at 01:57 PM ----------

the gcam is working for me also ar stickers work but not the front hdr as I have the ai variant. however the miui cam for custom roms does not work. also can't get mtp...
the thing that is missing in your tutorial is that it does not boot with an encrypted data partition. I had to "format data" ( the option available in wipe menu which wipes data and internal storage) than install mokee and than flash no-verity, boot up and afterwards continue with the installation. this is mentioned in the original tutorial.

Hi, you seem to have gone through the whole process of installing so could you tell me if you can flash oreo custom roms or miui 9 nougat regularly once we install this gsi image this way? What if I don't want to stick there so can I go back easily by flashing any rom using twrp or flashing miui via fastboot?
 

B!GBOY

Senior Member
Jul 22, 2010
478
410
??
How to root ? use the normal magisk zip?
Do I have to enable camera2API?
Please send the link of the Gcam.
read the first post about how to install magisk.
yes
checkout arnova8g2 thread in apps and themes section

HI Could anyone please tell me if we could go back to installing/ flashing oreo custom roms or the miui 9 nougat rom normally/regularly if we install this android p GSI? I hope it allows for such downgrade!! However I'm not sure as it may make changes to partitioning? Please someone reply!!

Hi, you seem to have gone through the whole process of installing so could you tell me if you can flash oreo custom roms or miui 9 nougat regularly once we install this gsi image this way? What if I don't want to stick there so can I go back easily by flashing any rom using twrp or flashing miui via fastboot?
it does not contain a firmware update. A GSI is literally only a system image so it does not affect that.
you use the mokee for vendor and other stuff and the system image from the GSI

make a backup from everything

Is it stable enough to be used as a daily driver?
read my last posts ( short answer: imho no )
 

Top Liked Posts

Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone