TeamWin / android_bootable_recovery

1.28k stars 401 forks source link

No ADB command to flash twrp image as ramdisk on A/B devices #318

Open abdullah5490 opened 1 year ago

abdullah5490 commented 1 year ago

TWRP version: 3.7.0

WHAT STEPS WILL REPRODUCE THE PROBLEM?

  1. After booting to twrp, connect to a PC via ADB and try to flash twrp.img to ramdisk. There is no command to do so.

WHAT IS THE EXPECTED RESULT?

As we can flash/install zip files using ADB interface while in recovery, there should be a command to flash the twrp image to ramdisk to make it permanent on A/B devices.

WHAT HAPPENS INSTEAD?

Instead of ADB, the flash recovery option is only accessible in advance menu on-screen, which is sometime become unuseable in certain circumstances and we have to rely only on ADB via PC.

ADDITIONAL INFORMATION

You should know that lots of visually impaired users are using twrp. Considering the fact, the screen reader is only available on their PCs, not on phone in recovery mode, so they only have to rely on ADB commands via PC to perform operations of twrp on their phones. That's because necessary operations of twrp should also be supported by ADB interface specially the ramdisk flashing. Without this command, we cannot make the recovery permanent on A/B devices.