Android Pie Treble Project DP3 DP4 DP5 PR1 Guide

Search This thread

bukandenny

Senior Member
Nov 26, 2014
125
49
25
Batam
Android "P" is the upcoming ninth major version of the Android operating system. It was first announced by Google on March 7, 2018, and the first developer preview was released on the same day. The second developer preview is expected to be released at the next Google I/O developer conference.

Requirements :
Qcom fully treblized device with 8.1 vendor

Global Bugs :
VoLTE

Device specific Bugs :
Mi5 = Reboot Loop into TWRP (Fixed by restore files)
ANDROID P DP3
installation :
- Flash [JDCTeam][TREBLE][v4][Gemini] The Full Treble support project HERE
- Unzip and Flash P-DP3-sGSI.img HERE
- Flash POST-sGSI_1_v0.9.zip HERE
- Flash POST-sGSI_2_v0.12.zip HERE
- Flash POST-sGSI_3.zip HERE
- Flash P-lag-fix.zip file below thread
- Flash incall2.zip HERE
- Reboot
When flashing POST-sGSI untill incall shown error in twrp, Go back to TWRP Home > Mount > check vendor and system

After bootup, you need to install Google Play services 12.8.72 (100400-202717283) HERE

If you are facing with bug Reboot Loop(always reboot into TWRP) you need to restore this backup file from me.
Unzip and put that folder at TWRP/Backups
Goto TWRP > Restore > Check system and vendor only > Reboot.

SECOND METHOD : Restore before 1st boot.
- Flash [JDCTeam][TREBLE][v4][Gemini] The Full Treble support project HERE
- Unzip and Flash P-DP3-sGSI.img HERE
- Flash POST-sGSI_1_v0.9.zip HERE
- Flash POST-sGSI_2_v0.12.zip HERE
- Flash POST-sGSI_3.zip HERE
- Restore this backup file
(Make sure choose System and Vendor only, Dont choose boot, system image, or vendor image and the size is 2101MB).
- Flash P-lag-fix.zip file below thread
- Flash incall2.zip HERE
- Reboot (If stuck at google logo about 3-5mins, try to force shutdown your phone, and turn it on again... it should be work.)

ANDROID P DP4
CLEAN FLASH IS HIGHLY RECOMMEND
- Flash [JDCTeam][TREBLE][v4][Gemini] The Full Treble support project HERE
- Unzip and Flash P-DP4-sGSI-Aonly.zip HERE
- Flash POST-sGSI_1_v0.11.zip HERE
- Flash POST-sGSI_2_v0.14.zip HERE
- Flash POST-sGSI_3.zip HERE
- Restore this backup file
(Make sure choose System and Vendor only, Dont choose boot, system image, or vendor image and the size is 2180MB).
- Incall.zip already included. Dont need to flash it.
- Flash p-lag-fix DP4.zip file below thread
- Reboot
If your device become reboot loop into TWRP, like in DP3
- Restore this backup file
(Make sure choose System and Vendor only, Dont choose boot, system image, or vendor image and the size is 2180MB).

ANDROID P DP5
CLEAN FLASH IS HIGHLY RECOMMEND
- Flash [JDCTeam][TREBLE][v4][Gemini] The Full Treble support project HERE
- Unzip and Flash P-DP5-sGSI-Aonly.zip HERE
- Flash POST-sGSI_1_v0.13.zip HERE
- Flash POST-sGSI_2_v0.16.zip HERE
- Flash POST-sGSI_3 v0.2.zip HERE
- Flash lag-fix-DP5 attached below.
- Mount Vendor on TWRP
- Go to TWRP Advanced->Terminal, type the following and press enter
echo persist.sys.disable_rescue=true >> /vendor/build.prop
- Reboot to System

IF YOU STILL REBOOT INTO RECOVERY AFTER 1ST BOOT.
after flash POST-sGSI_3 v0.2.zip

- Restore this backup file
(Make sure choose System and Vendor only, Dont choose boot, system image, or vendor image and the size is 2180MB).
- Incall.zip already included. Dont need to flash it.
- Flash lag-fix-DP5 attached below.
- Reboot
Android P Public Release 1 (PR1)
1. Flash JDCTeam Full Treble Support Project
2. UNZIP and flash Pie A-only as System Image.
3. Mount System and Vendor on TWRP
4. Flash POST-sGSI_1_v0.14.zip
5. Flash POST-sGSI_2_v0.17.zip
6. Flash POST-sGSI_3_v0.2.zip
7. Mount System and Vendor on TWRP
8. Flash p-lag-fix.zip (Attached Below)
9. Mount Vendor on TWRP
10. Go to TWRP Advanced - Terminal, type the following and press enter
echo persist.sys.disable_rescue=true >> /vendor/build.prop
11. Reboot to System
12. Install Google Play Services Apk, reboot and proceed normally.

REBOOT LOOP THIRD METHOD by mlira1 and Maixf
1. Flash JDCTeam Full Treble Support Project
2. Flashi DP3/DP4 System Image
3. Mount System and Vendor on TWRP
4. Flash POST-sGSI_1
5. Flash POST-sGSI_2
6. Flash POST-sGSI_3 (skip if going to flash custom kernel)
7. (only if going to flash custom kernel) Flash fix.zip (attached below)
8. (optional) Flash custom kernel
9. (optional) Flash Magisk
10. Mount System and Vendor on TWRP
11. (only if flashed custom kernel) Flash POST-sGSI_3
12. Flash p-lag-fix DP3/4/5.zip
13. Mount Vendor on TWRP
14. Go to TWRP Advanced->Terminal, type the following and press enter
echo persist.sys.disable_rescue=true >> /vendor/build.prop
15. Reboot to System
16. Install Google Play Services Apk, reboot and proceed normally

TIPS
Mi5 'Fingerprint Always On' On Android P (Unlock when screen off, and without press any button. Just touch it FP)
- Root your Mi5 with 16.4/16.6 Treble version
- Install Karnel Auditor
- Go to Tab, Select Custom Control
- Press "+", and import this .json file
- Press 3 dots at there, check 'on boot'
- Reboot

Mi5 Fingerprint as Home by rmrbpt
- Root your Mi5 with 16.4/16.6 Treble version
- Install Karnel Auditor
- Go to Tab, Select Custom Control
- Press "+", and import this .json file
- Press 3 dots at there, check 'on boot'
- Reboot

Mi5 Double Tap to Wakeup Android P
- Root your mi5 with 16.4/16.6 Treble version
- Open Karnel Auditor
- Go to Tab
- Find 'Wake'
- Turn it on, and apply on boot
- Reboot

Disable backlight button
Flash Disable Backlight.zip from Magisk !
Attached below.
Fix Battery Drain Issue
Still working on it
Alternative for it
- Dissable Dev Mode in Setting
or
- Try custom karnel

Get Blue accent / Pixel theme
Add this to your /vendor/build.prop, save and reboot:
Code:
ro.boot.vendor.overlay.theme=com.google.android.theme.pixel

MTP Not Detected
- Goto Setting
- System > Advanced > Dev Options > Choose File Transfer at USB Default Configuration

How to flash custom kernel on P GSI
FLASHING CUSTOM KARNEL CAUSING YOU CANNOT ENABLE MTP FORVER AND CHARGING FROM PC/LAPTOP

- Follow instruction from flashing JDC untill POST GSI 2, dont flash POST GSI 3.
- Flash Custom Karnel
- Reboot
- Clean Flash is the only way to fix it for now

Fix/Solution Arnova/BSG/other dev Gcam lag when changging between front and back camera on P
- Flash Camera Switch Lag Fix.zip, attached below.
 

Attachments

  • p-lag-fix.zip
    500.8 KB · Views: 1,758
  • Magisk-v16.4-Treble.zip
    4.4 MB · Views: 466
  • fix.zip
    350 KB · Views: 857
  • p-lag-fix_DP5.zip
    500.9 KB · Views: 1,449
  • pr1-lag-fix.zip
    500.9 KB · Views: 1,619
Last edited:

joric

Member
Sep 16, 2010
23
10
Terribly sorry but at what point did you make that "backup file"? I couldn't fix bootloop without your backup. Just wondering, since it's so large and probably mi5-only maybe you could just give us instructions how to make a working system without using someone else's backup?
 
Last edited:

Santosh Kolur

Member
Sep 22, 2014
26
4
https://drive.google.com/open?id=1VryExVHI-14NfgIcBPp2dFiN-rzhOeNO

I've tried both the methods , but I always end up at this error, please help.
It asks for password and then just reboots into recovery.
There's also a pop up stating "There's internal problem, please contact manufacturer for details"

The above link has the images of the issue.
It would be really helpful if someone can help me boot this rom up. Thank you.
 
Last edited:

bukandenny

Senior Member
Nov 26, 2014
125
49
25
Batam
  • Like
Reactions: dreamedofworld

bukandenny

Senior Member
Nov 26, 2014
125
49
25
Batam
https://drive.google.com/open?id=1VryExVHI-14NfgIcBPp2dFiN-rzhOeNO

I've tried both the methods , but I always end up at this error, please help.
It asks for password and then just reboots into recovery.
There's also a pop up stating "There's internal problem, please contact manufacturer for details"

The above link has the images of the issue.
It would be really helpful if someone can help me boot this rom up. Thank you.

http://xiaomitips.com/media/2016/07/Format-Data-TWRP.png
 

aittamattia

Senior Member
Feb 28, 2017
435
135
Xiaomi Mi 11
First method did it for me, too. I had the bootloop after first reboot and it did the trick, everything is working fine, a bit laggy, but Android P is running smooth on my phone!! I think that's very importat that after first boot you install Play Services as stated in OP and let Google finish its whole Pixel Configuration and updates, then you can try and reboot the phone, if you're hit by the bug, just follow what's in OP. ;)

Few things if you install the GSI and have these issues:

- for Magisk, install version 16.4, just install that after you have set up the phone and stuff, you reboot to twrp and flash it, that's the way it works for me;
- if you have missing network on SIM, just go and configure your apn manually, it'll do the trick;
- for MTP, it's not working for me out of the box, the trick is to enable developers options, go to "Default USB Configuration" or something similar (I have it on italian, so I think that's how it's in English) and select the first one option;

Edit: also there's fingerprint that cannot wake the device, I've read in Telegram groups that some fixes are around for fingerprint, I'll check it out later and report if I find something interesting.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 21
    Android "P" is the upcoming ninth major version of the Android operating system. It was first announced by Google on March 7, 2018, and the first developer preview was released on the same day. The second developer preview is expected to be released at the next Google I/O developer conference.

    Requirements :
    Qcom fully treblized device with 8.1 vendor

    Global Bugs :
    VoLTE

    Device specific Bugs :
    Mi5 = Reboot Loop into TWRP (Fixed by restore files)
    ANDROID P DP3
    installation :
    - Flash [JDCTeam][TREBLE][v4][Gemini] The Full Treble support project HERE
    - Unzip and Flash P-DP3-sGSI.img HERE
    - Flash POST-sGSI_1_v0.9.zip HERE
    - Flash POST-sGSI_2_v0.12.zip HERE
    - Flash POST-sGSI_3.zip HERE
    - Flash P-lag-fix.zip file below thread
    - Flash incall2.zip HERE
    - Reboot
    When flashing POST-sGSI untill incall shown error in twrp, Go back to TWRP Home > Mount > check vendor and system

    After bootup, you need to install Google Play services 12.8.72 (100400-202717283) HERE

    If you are facing with bug Reboot Loop(always reboot into TWRP) you need to restore this backup file from me.
    Unzip and put that folder at TWRP/Backups
    Goto TWRP > Restore > Check system and vendor only > Reboot.

    SECOND METHOD : Restore before 1st boot.
    - Flash [JDCTeam][TREBLE][v4][Gemini] The Full Treble support project HERE
    - Unzip and Flash P-DP3-sGSI.img HERE
    - Flash POST-sGSI_1_v0.9.zip HERE
    - Flash POST-sGSI_2_v0.12.zip HERE
    - Flash POST-sGSI_3.zip HERE
    - Restore this backup file
    (Make sure choose System and Vendor only, Dont choose boot, system image, or vendor image and the size is 2101MB).
    - Flash P-lag-fix.zip file below thread
    - Flash incall2.zip HERE
    - Reboot (If stuck at google logo about 3-5mins, try to force shutdown your phone, and turn it on again... it should be work.)

    ANDROID P DP4
    CLEAN FLASH IS HIGHLY RECOMMEND
    - Flash [JDCTeam][TREBLE][v4][Gemini] The Full Treble support project HERE
    - Unzip and Flash P-DP4-sGSI-Aonly.zip HERE
    - Flash POST-sGSI_1_v0.11.zip HERE
    - Flash POST-sGSI_2_v0.14.zip HERE
    - Flash POST-sGSI_3.zip HERE
    - Restore this backup file
    (Make sure choose System and Vendor only, Dont choose boot, system image, or vendor image and the size is 2180MB).
    - Incall.zip already included. Dont need to flash it.
    - Flash p-lag-fix DP4.zip file below thread
    - Reboot
    If your device become reboot loop into TWRP, like in DP3
    - Restore this backup file
    (Make sure choose System and Vendor only, Dont choose boot, system image, or vendor image and the size is 2180MB).

    ANDROID P DP5
    CLEAN FLASH IS HIGHLY RECOMMEND
    - Flash [JDCTeam][TREBLE][v4][Gemini] The Full Treble support project HERE
    - Unzip and Flash P-DP5-sGSI-Aonly.zip HERE
    - Flash POST-sGSI_1_v0.13.zip HERE
    - Flash POST-sGSI_2_v0.16.zip HERE
    - Flash POST-sGSI_3 v0.2.zip HERE
    - Flash lag-fix-DP5 attached below.
    - Mount Vendor on TWRP
    - Go to TWRP Advanced->Terminal, type the following and press enter
    echo persist.sys.disable_rescue=true >> /vendor/build.prop
    - Reboot to System

    IF YOU STILL REBOOT INTO RECOVERY AFTER 1ST BOOT.
    after flash POST-sGSI_3 v0.2.zip

    - Restore this backup file
    (Make sure choose System and Vendor only, Dont choose boot, system image, or vendor image and the size is 2180MB).
    - Incall.zip already included. Dont need to flash it.
    - Flash lag-fix-DP5 attached below.
    - Reboot
    Android P Public Release 1 (PR1)
    1. Flash JDCTeam Full Treble Support Project
    2. UNZIP and flash Pie A-only as System Image.
    3. Mount System and Vendor on TWRP
    4. Flash POST-sGSI_1_v0.14.zip
    5. Flash POST-sGSI_2_v0.17.zip
    6. Flash POST-sGSI_3_v0.2.zip
    7. Mount System and Vendor on TWRP
    8. Flash p-lag-fix.zip (Attached Below)
    9. Mount Vendor on TWRP
    10. Go to TWRP Advanced - Terminal, type the following and press enter
    echo persist.sys.disable_rescue=true >> /vendor/build.prop
    11. Reboot to System
    12. Install Google Play Services Apk, reboot and proceed normally.

    REBOOT LOOP THIRD METHOD by mlira1 and Maixf
    1. Flash JDCTeam Full Treble Support Project
    2. Flashi DP3/DP4 System Image
    3. Mount System and Vendor on TWRP
    4. Flash POST-sGSI_1
    5. Flash POST-sGSI_2
    6. Flash POST-sGSI_3 (skip if going to flash custom kernel)
    7. (only if going to flash custom kernel) Flash fix.zip (attached below)
    8. (optional) Flash custom kernel
    9. (optional) Flash Magisk
    10. Mount System and Vendor on TWRP
    11. (only if flashed custom kernel) Flash POST-sGSI_3
    12. Flash p-lag-fix DP3/4/5.zip
    13. Mount Vendor on TWRP
    14. Go to TWRP Advanced->Terminal, type the following and press enter
    echo persist.sys.disable_rescue=true >> /vendor/build.prop
    15. Reboot to System
    16. Install Google Play Services Apk, reboot and proceed normally

    TIPS
    Mi5 'Fingerprint Always On' On Android P (Unlock when screen off, and without press any button. Just touch it FP)
    - Root your Mi5 with 16.4/16.6 Treble version
    - Install Karnel Auditor
    - Go to Tab, Select Custom Control
    - Press "+", and import this .json file
    - Press 3 dots at there, check 'on boot'
    - Reboot

    Mi5 Fingerprint as Home by rmrbpt
    - Root your Mi5 with 16.4/16.6 Treble version
    - Install Karnel Auditor
    - Go to Tab, Select Custom Control
    - Press "+", and import this .json file
    - Press 3 dots at there, check 'on boot'
    - Reboot

    Mi5 Double Tap to Wakeup Android P
    - Root your mi5 with 16.4/16.6 Treble version
    - Open Karnel Auditor
    - Go to Tab
    - Find 'Wake'
    - Turn it on, and apply on boot
    - Reboot

    Disable backlight button
    Flash Disable Backlight.zip from Magisk !
    Attached below.
    Fix Battery Drain Issue
    Still working on it
    Alternative for it
    - Dissable Dev Mode in Setting
    or
    - Try custom karnel

    Get Blue accent / Pixel theme
    Add this to your /vendor/build.prop, save and reboot:
    Code:
    ro.boot.vendor.overlay.theme=com.google.android.theme.pixel

    MTP Not Detected
    - Goto Setting
    - System > Advanced > Dev Options > Choose File Transfer at USB Default Configuration

    How to flash custom kernel on P GSI
    FLASHING CUSTOM KARNEL CAUSING YOU CANNOT ENABLE MTP FORVER AND CHARGING FROM PC/LAPTOP

    - Follow instruction from flashing JDC untill POST GSI 2, dont flash POST GSI 3.
    - Flash Custom Karnel
    - Reboot
    - Clean Flash is the only way to fix it for now

    Fix/Solution Arnova/BSG/other dev Gcam lag when changging between front and back camera on P
    - Flash Camera Switch Lag Fix.zip, attached below.
    3
    With the new zip versions (in the same links) I don't think restore backup is needed.
    This is actually pretty stable. Only had one app not working because it couldnt emulate an NFC card. Battery is also good.

    If anyone wants fingerprint to work as home button while screen is on I edited the addon in the OP to allow that function.
    If you want the 2 functions you will need to enable both on kernel adiutor.
    2
    I need help to fix the camlag please. It takes about 10 seconds to switch rear and front camera. I have installed the gcam from OP and flashed camfix custom kernel zip as well but not fixed

    Sent from my gemini using XDA Labs

    This one works for me, switching time around 1-2 seconds, no custom kernel needed
    1
    https://drive.google.com/open?id=1VryExVHI-14NfgIcBPp2dFiN-rzhOeNO

    I've tried both the methods , but I always end up at this error, please help.
    It asks for password and then just reboots into recovery.
    There's also a pop up stating "There's internal problem, please contact manufacturer for details"

    Start from beginning.
    you need to FORMAT DATA (not wipe data)
    then start from beginning dude.