Let's say I place a rom in /sdcard/. Can I install in the ADB shell through TWRP. For instance, if I

  • Start up in recovery of TWRP
  • Type in on the host adb shell

Is there anyway to install /sdcard/rom.zip

  • What's the deal? Is TWRP unusable normally from touchscreen? – Andy Yan May 26 '18 at 6:41
  • No, I can use it. I just want a log and I want to see what's running that process so I can potentially get a log. TWRP doesn't tell me much and it's apparently not working. (or the roms just don't boot at all) – Evan Carroll May 26 '18 at 15:25
  • I don't think that'd give you details - look into recovery.log and probably dmesg. Also, just a hunch, but you might want to try an older version of TWRP, e.g. 3.0.2. I just remembered that I had problems in the past on another Samsung tablet with the latest available there. – Andy Yan May 26 '18 at 16:30

The TWRP provides a command line utility called twrp and the official site has a guide to twrp's subcommands of which the command needed is simply install

install FILENAME :

    install FILENAME zip file.

Usage: under adb shell environment, run

twrp install /path/to/rom.zip
  • Doesn't work for me, complains about Zip signature verification failed! any idea? – JPT Aug 17 '19 at 14:31
  • @JPT Irrelevant - check the zip itself. – Andy Yan Aug 18 '19 at 1:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.