phhusson / treble_experimentations

Notes about tinkering with Android Project Treble
3.4k stars 660 forks source link

cant delete product partition #1821

Open amirak7 opened 3 years ago

amirak7 commented 3 years ago

hi I have crdroid gsi v224 and 2200mb system partition size ,I try install crdroid v306 gsi (2.5g) error: not enough space. I heard deleteing product partition increase system partition size but get error (fasboot delete-logical-partition product) command not allowed. I have honor 9 lite bootloader unlocked

devrieshh commented 3 years ago

dont you have to get in fastbootd mode first?from fastboot mode you enter command ./fastboot reboot fastboot

/Desktop/platform-tools$ ./fastboot reboot fastboot Rebooting into fastboot OKAY [ 0.006s] < waiting for any device > Finished. Total time: 17.164s devrieshh@devrieshh-desktop:~/Desktop/platform-tools$ ./fastboot delete-logical-partition product Deleting 'product' OKAY [ 0.010s] Finished. Total time: 0.011s devrieshh@devrieshh-desktop:~/Desktop/platform-tools$ ./fastboot flash system system-roar-arm64-ab-vndklite-gapps.img (the rom i installed)

amirak7 commented 3 years ago

i tried command /fastboot reboot fastboot before but reboot to system instead fastbootd

devrieshh commented 3 years ago

maybe you can get in recovery mode somehow

devrieshh commented 3 years ago

when you have adb installed you can do this to get in fasbootd mode...

/Desktop/platform-tools$ adb devices List of devices attached

devrieshh@devrieshh-desktop:~/Desktop/platform-tools$ adb reboot fastboot devrieshh@devrieshh-desktop:~/Desktop/platform-tools$

amirak7 commented 3 years ago

why recovery mode

amirak7 commented 3 years ago

I always use adb reboot fastboot

devrieshh commented 3 years ago

than you dont come in a sort of recovery menu?

amirak7 commented 3 years ago

no?!

amirak7 commented 3 years ago

is there any way to delete a partition except adb?

devrieshh commented 3 years ago

see picture[ x-special/nautilus-clipboard copy mtp://MediaTek_HT37Pro_0123456789ABCDEF/Internal%20shared%20storage/DCIM/Camera/IMG_20210503_193955.jpg

devrieshh commented 3 years ago

i cant sent the picture,you should get in fastbootd with the adb commands above,or when you are in fastboot mode with the command ./fastboot reboot fastboot

devrieshh commented 3 years ago

./ dont forget the point

devrieshh commented 3 years ago

you can also go to your recovery and restart from there in fastboot not bootloader

in my recovery i have to take enter fastboot

amirak7 commented 3 years ago

why your platform tools have ($)

amirak7 commented 3 years ago

mine is platform-tools>

amirak7 commented 3 years ago

there is only reboot to (bootloader) in twrp. I use twrp terminal (reboot fastboot) and the system booted again :|

devrieshh commented 3 years ago

root or normal user,in linux

/Desktop/platform-tools# /Desktop/platform-tools$

devrieshh commented 3 years ago

cant you get in recovery with adb reboot recovery

devrieshh commented 3 years ago

i have an elephone E10 with android 10 no root, original system,in my original recovery there is the line -enter fastboot- wich leads to fastbootd menu. i have an older chinese homtom phone with android 7 or 6 when i use these adb commands i dont find fastbootd menu,just reboot in system...

amirak7 commented 3 years ago

So the problem is the phone model?

devrieshh commented 3 years ago

I don't know,I should think that Android 10or above have a super partition and fastbootd menu,or Chinese phones only

On Mon, May 3, 2021, 8:39 PM amirak7 @.***> wrote:

So the problem is the phone model?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/phhusson/treble_experimentations/issues/1821#issuecomment-831452414, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABXIK6AY72SCUCENWD3IYWDTL3UXTANCNFSM436WG6VA .

amirak7 commented 3 years ago

ty for your time <3 one last question: I can flash twrp using adb but non of getvar commands work(command not allowed) is that normal?

devrieshh commented 3 years ago

I don't know,has something to do with permission, that's why you need fastbootd,with the ./ before the command

On Mon, May 3, 2021, 9:12 PM amirak7 @.***> wrote:

ty for your time <3 one last question: I can flash twrp using adb but non of getvar commands work(command not allowed) is that normal?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/phhusson/treble_experimentations/issues/1821#issuecomment-831472422, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABXIK6CKCLVUGZR7N772MYTTL3YTHANCNFSM436WG6VA .

lss4 commented 3 years ago

Try erase the product partition and resize it to 0x0. This may or may not work depending on device and its fastbootd implementation.

Note that for the resize command, if your logical partitions are A/B marked, you need to specify the correct one (e.g. product_a).

After that check if the product partition's size has really been changed to 0x0. If yes, then the system partition will be able to claim the space used by product partition when resizing.