[GUIDE][ProjectTreble]Create a vendor partition for cancro to flash a PT GSI IMAGE

Search This thread

Stickman89

Inactive Recognized Developer
Apr 5, 2007
1,618
2,428
Milton Keynes
@Dzol Cp @gujiangjiang

Have you, or anyone else who has trebalised their device by modifying their partition table successfully returned to a stock partition table (and verified stock partition layout) by fastboot flashing a full fastboot rom with Mi Flash?
Especially yourself if you don't mind answering, Dzol Cp, since your procedure to modify partition table varies to gujiangjiang's method, as you've gone a step further and increased the system partition to 2GB.

Does a full fastboot rom recognize the partitions in order to restore, since the total byte size of the few modified partitions will not match up after the alteration.

Also, did you have any success with the GSI MIUI 10 8.1 rom (https://forum.xda-developers.com/pr...-only-roms/8-1-miui10-project-treble-t3840198) after extending your partition size? As you should now have enough space to accommodate the GSI.

Best Regards,

Stickman89
 
Last edited:
  • Like
Reactions: Dzol Cp

Dzol Cp

Senior Member
Jan 5, 2012
1,559
4,147
TB/BF Penang
@Dzol Cp @gujiangjiang

Have you, or anyone else who has trebalised their device by modifying their partition table successfully returned to a stock partition table (and verified stock partition layout) by fastboot flashing a full fastboot rom with Mi Flash?
Especially yourself if you don't mind answering, Dzol Cp, since your procedure to modify partition table varies to gujiangjiang's method, as you've gone a step further and increased the system partition to 2GB.

Does a full fastboot rom recognize the partitions in order to restore, since the total byte size of the few modified partitions will not match up after the alteration.

Also, did you have any success with the GSI MIUI 10 8.1 rom (https://forum.xda-developers.com/pr...-only-roms/8-1-miui10-project-treble-t3840198) after extending your partition size? As you should now have enough space to accommodate the GSI.

Best Regards,

Stickman89

Hi,
Yes. When you flash fastboot ROM with Mi Flash Tool, all the partition will set back to default, like Mi3 system itself got 2 system partition. Mi Flash will not left any single partition.
You can check here

That MIUI GSI 10.8.1 ROM, Author/Op need to update the thread title to Arm64 A Only not Arm A Only.
And plus, that is backup ROM, so you need to restore via twrp and I'm not success to restore.
Thanks, sorry for my worse English.
 

Stickman89

Inactive Recognized Developer
Apr 5, 2007
1,618
2,428
Milton Keynes
Hi,
Yes. When you flash fastboot ROM with Mi Flash Tool, all the partition will set back to default, like Mi3 system itself got 2 system partition. Mi Flash will not left any single partition.
You can check here

That MIUI GSI 10.8.1 ROM, Author/Op need to update the thread title to Arm64 A Only not Arm A Only.
And plus, that is backup ROM, so you need to restore via twrp and I'm not success to restore.
Thanks, sorry for my worse English.

There are two folders hosted on the developers provided googledrive link. One named arm, and the other is arm64. The arm32 build is located at the following address: https://drive.google.com/drive/folders/1ViCgoW9dWH2fQFHtsvv4Aj7rqSNe7ue-

Still, the restoration process sounds to be preventing things. Perhaps I can modify the backed up system partition to encourage things.
 

Stickman89

Inactive Recognized Developer
Apr 5, 2007
1,618
2,428
Milton Keynes
@gujiangjiang - Why don't you compile TWRP to include the OMX fix? It wouldn't be difficult to implement - have it deploy on recovery reboot if build.prop contains "9.*.*" at build.version.release and/or build.version.sdk == 28.

That way it'd be one less step to perform, and would better the success rate of the new and unsure treble users.

Best Regards,

Stickman89
 
Last edited:
  • Like
Reactions: vishal24387

Dashur7

Senior Member
Aug 1, 2015
421
102
how can I install rr gsı can u answer step by step. I tries alot rr last a only arm version. after logo ı can see fastboot screen :D

I haven't installed any GSI yet so don't know. If you are interested in RR pie, the thread for the normal zip is up somewhere in the forum for our device.
 

tearszz

Senior Member
Dec 28, 2015
58
13
Maybe someone here you has installed GSIs can help you now. I still have to read the steps to trebelize the device. If I do, I'll let you know.:)

I now installed after 3 hours with dirty flash :D

---------- Post added at 07:28 PM ---------- Previous post was at 06:35 PM ----------

guys all roms wants larger than 1300mb system size. how can I resize system. and how can I restore if ı want
 
  • Like
Reactions: Dashur7

Hiou

Senior Member
Jan 22, 2018
161
28
Thanh Hoa
Mine its Mi 4C 801, not the snapdragon 808.

why its unsupported, my previous mi4 flash perfectly fine ;_;
 

Attachments

  • Screenshot_1969-12-31-21-36-34.png
    Screenshot_1969-12-31-21-36-34.png
    122.3 KB · Views: 322

goEval

New member
Jul 15, 2019
1
0
Pie和Q的ROM都无法启动,OMX disable的zip已经刷入了。刷了Pie的ROM之后,第一屏过后直接进入fastboot模式,没有启动动画。
I can't boot any Pie or Q Treble ROMs but Oreo ROMs work fine. I have flashed the OMX disable zip but it doesn't work. When I flash a Pie ROM, it shows the mi logo then goes into fastboot mode.
 

jjgvv

Senior Member
Dec 22, 2018
1,002
236
Create a vendor partition for cancro to flash a PT GSI IMAGE
This guide only suitable for MI4LTE and MI3W.
MI3TD don‘t support this method and ROM.

First we must thanks to the MkfsSion for his PT works on our MI4LTE.
https://github.com/MkfsSion/android_device_xiaomi_cancro
And thanks to the cjybyjk for his automatic treblizer tools.
https://github.com/cjybyjk/cancro_treblizer


Warning: this operation is highly experimental and may result in a serious risk of irreversibility

Method 1 With cjybyjk's cancro_treblizer.(Recommend this method now)
1.Let MI4LTE to fastboot mode.
We can press Volume - and Power button to let it into fastboot mode.

2.Let flash the TWRP which support ProjectTreble.
We can use the command [fastboot flash recovery x.img]
Recovery:https://drive.google.com/file/d/1Fc0SK_xYdmkFi5CzR4Vq8QLqQFQ1ikWk/view?usp=sharing

3.Let reboot into the TWRP and flash the cancro_treblizer.zip in TWRP and reboot into the TWRP again when finished.
https://drive.google.com/file/d/14EkMX9VKiC3kbELwtBkxmAYupCmCxPf5/view?usp=sharing

4.Mount the Cache System and Vendor partition and Wipe this 3 partitions.

5.Then we can flash the zip rom from the AFH below.
https://www.androidfilehost.com/?fid=11410932744536984188

6.If you flash the pie gsi arm rom and you must flash this omx-disable patch to fix the boot for pie.
https://drive.google.com/file/d/19TUZiX0vHxIlc9f_6wF2uySI8HcW7xqy/view?usp=sharing

7.Now you can use the nice ProjectTreble ROM on our MI4LTE!


Method 2 With 9008 mode and Diskgenius.(Not recommend now)
1.Let MI4LTE to fastboot mode.
We can press Volume - and Power button to let it into fastboot mode.

2.Let MI4LTE to disk mode(9008 mode).
Open the "磁盘模式工具.rar" ,Unzip it and double click the "清除fastboot进磁盘操作.bat" when MI4LTE go to black screen it was succeeded into disk mode.
Disk Mode Tools:https://drive.google.com/file/d/12uFsjwB_t_XzBWz0aeVJue5zdPiPCc7c/view?usp=sharing

3.Download the DiskGenius Software from the website:
http://www.diskgenius.com/

4.Open the DiskGenius and you will find all the MI4LTE partition in it and we need to restore aboot partition.
aboot partition file:https://drive.google.com/file/d/1aYikwwQQdAsa_XM7cKqv2f49aYAMNybu/view?usp=sharing

5.Then we need to restore ProjectTreble partition table.(For 16GB Version Only)
ProjectTreble partition table file:https://drive.google.com/file/d/1Zg_htr9tSfUHqr04pdxlCyn_qANnwJlM/view?usp=sharing

6.Then we can reboot the MI4LTE into the fastboot mode again and flash the TWRP which support ProjectTreble.
We can use the command fastboot flash recovery x.img
Recovery:https://drive.google.com/file/d/1Y-67W1MfMchny6ljCxKpU1_vq-PdLkpV/view?usp=sharing

7.Press Volume + and Power button to go into the TWRP.

8.Mount the Cache System and Vendor partition and Wipe this 3 partitions.

9.Then we can flash the zip rom from the AFH below.
https://androidfilehost.com/?fid=3700668719832236822

10.Now you can use the nice ProjectTreble ROM on our MI4LTE!


Now our MI4LTE is not ARM64 device so we can only flash A-Only and ARM GSI IMAGE.
:D:D:D

Update 2018-08-21
Phh have just released the Android 9.0 GSI IMAGE have include ARM and ARM64 so our cancro can flash Android 9.0 GSI IMAGE for experience.
https://forum.xda-developers.com/pr...vice-development/aosp-9-0-phh-treble-t3831915

Update 2018-10-20
Fix App FC
Fix OMX
Fix GPS
Note:pie PT GSI may need extra patch when you flash the pie gsi image with this pt package.

Cancro Rom Group
Group rules:
1.English only.(You can use the translator to communicate.)
2.Respect developers and administrators.
3. Please do not send spam.
4. Do not send stickers continuously.

Channel: @cancrorom
CN Group: @cancrogroup
https://t.me/micancro

Flash this Gsi
https://mirrors.lolinet.com/firmware/gsi/arm32/MIUI-Aonly-9-20190816-ErfanGSI.img.7z
 

Tweakforce_LG

Senior Member
May 9, 2015
440
105
Samsung Galaxy Note 3
I am wanting to port Treble to a Samsung Galaxy Note 3. It has the same CPU (SD 800) as the Mi3W. I don't have any experience with developing ROMs, only normal software development. Anyone here able to assist me in understanding what partitions I need, what vendor files need moving etc. Just enough for me to understand project treble so I can start developing.
 

SGS5Korea

Member
Feb 26, 2021
7
8
I am wanting to port Treble to a Samsung Galaxy Note 3. It has the same CPU (SD 800) as the Mi3W. I don't have any experience with developing ROMs, only normal software development. Anyone here able to assist me in understanding what partitions I need, what vendor files need moving etc. Just enough for me to understand project treble so I can start developing.
Same here, i have Galaxy S5 LTE Korea 2/32 it has same CPU (SD801) as MI4W.
 

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