Development [OFFICIAL]TWRP for the Motorola G30 (caprip)

Search This thread

ThE_MarD

Recognized Developer
Dec 10, 2014
3,293
3,768
Grande Prairie
LeEco Le Max 2
Moto X4
TWRP-Feature-Image-810x298_c.png
Code:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about doing this to your device
* YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/

Introduction:

Team Win Recovery Project or TWRP for short, is a custom recovery built with ease of use and customization in mind. We started from the ground up by taking AOSP recovery and loading it with the standard recovery options, then added a lot of our own features. It's a fully touch-driven user interface, with no more volume rocker or power buttons to mash. The GUI is also fully XML-driven and completely theme-able. You can change just about every aspect of the look and feel.

Key Features:

Touchscreen driven with real buttons and drag-to-scroll
XML-based GUI that allows full customization of the layout true theming!
Settings are saved to the sdcard and persist through reboots
Ability to choose which partitions to back up and which to restore
Ability to choose to compress backups now with pigz (multi-core processor support for faster compression times)
Onscreen keyboard
Easy selection of internal/external storage

In addition to the above new features, TWRP features a scripting engine that allows an app to send commands to the recovery for the recovery to perform during startup. We call this scripting engine OpenRecoveryScript. This engine will be put to use immediately in the GooManager app. GooManager will be able to install recoveries automatically for most supported devices. The app will also let you choose to install multiple zips from within Android, wipe, and run a backup.

We are looking for other talented developers, themers, and device maintainers if they are interested in helping with a free, open-source project.

Source Code:

GitHub - https://github.com/TeamWin/android_bootable_recovery

Gerrit Instance - http://gerrit.twrp.me

If you have made your own TWRP build for an unsupported device, please let us know. We might add your build to the list of unofficial builds. Bear in mind that we are working hard to add more devices and we may add your device to our official build list later.


This is for UNOFFICIAL builds of TWRP for the Motorola G30 (caprip)

Device Config:

Official Downloads:

Test Downloads:

Installation:
  1. Backup everything important off of your device
  2. Make sure your bootloader is unlocked
  3. Download the recovery image (and optionally the TWRP installer zip) from above
  4. Reboot into bootloader
  5. Run this command (Change the .img to whatever the name of the file is you downloaded):
    Code:
    fastboot boot twrp.img
  6. (Optional instructions from this point on) Install TWRP installer zip
  7. Reboot to recovery

Upgrade / Reinstall TWRP instructions
  1. Download desired TWRP installer zip version
  2. Reboot to recovery
  3. Select Install
  4. Tap on install and select the TWRP installer zip you downloaded from step one
  5. Reboot to recovery and confirm that the updated version of TWRP is installed

Nandroid backup/restore
  1. Have an available microSD Card or USB OTG drive
  2. Backup boot, dtbo, system image, vendor image and data (optionally any other partitions you want a backup of) to your external storage device of choice
  3. Once you wish to restore? Reboot to TWRP and format data (Wipe > "format data" button > type yes > keyboard checkbox)
  4. Reboot to TWRP
  5. Restore boot, dtbo, system image and vendor image
  6. Reboot to system
  7. Once it boots to the system without issues? Do not set any lockscreen security and reboot to TWRP
  8. Restore data
  9. Reboot to system
  10. After it finishes boot? Your data and ROM will be restored but sometimes the UI might be incorrect, so reboot to the system again


For the TEST builds of TWRP? Please let me know if this works. If so? I will submit it to Gerrit for official updates.

Credits:
  • mistersmee for his TWRP tree for the Motorola Moto G9 Power (cebu) that this caprip tree is based upon
  • Samw662 for encouraging me to work on this and help out caprip owners since I don't own one plus testing these builds
 
Last edited:
  • Like
Reactions: redonepl

ThE_MarD

Recognized Developer
Dec 10, 2014
3,293
3,768
Grande Prairie
LeEco Le Max 2
Moto X4
Heyyo, initial public release is twrp-3.6.2_12-0_UNOFFICIAL-20220929-03-caprip which is based on TWRP 12.1 branch. Please test decryption on either A12 or A13 ROMs as I'm unsure if it is setup correctly or not.

Please report any bugs in this thread
 

ThE_MarD

Recognized Developer
Dec 10, 2014
3,293
3,768
Grande Prairie
LeEco Le Max 2
Moto X4
Heyyo, TWRP 3.7.0_12 official is meow up on the TWRP website! Thanks to @Sammm77 for encouraging me to work on this for a device I don't even own and for helping test it out. :)

@Leogami9009 can you please provide logcat? Tbh I'm not even sure what are all the touchscreen drivers that caprip even uses but I did try to reference the kernel source code but maybe I missed one? Also, are you on the official build or a test build?
 

Sammm77

Senior Member
Nov 14, 2021
61
14
Moto G30
Heyyo, TWRP 3.7.0_12 official is meow up on the TWRP website! Thanks to @Sammm77 for encouraging me to work on this for a device I don't even own and for helping test it out. :)

@Leogami9009 can you please provide logcat? Tbh I'm not even sure what are all the touchscreen drivers that caprip even uses but I did try to reference the kernel source code but maybe I missed one? Also, are you on the official build or a test build?
For some people ek touch does not work, but for the vast majority it works perfectly. You have to wait 15 seconds when starting TWRP but after that it works fine. Excellent work friend.
 

ThE_MarD

Recognized Developer
Dec 10, 2014
3,293
3,768
Grande Prairie
LeEco Le Max 2
Moto X4
@Sammm77 if touchscreen doesn't work right away? Odds are it's just the touchscreen driver still initializing and maybe checking firmware and such. Focaltech for example is really known for having touchscreen issues as well on TWRP because of a long init period. Some touchscreens have a way to manually reset the kernel driver I think but I'm unsure if caprip has a method to do so.

My Asus Zenfone 5z (Z01R) has focaltech touchscreen and has issues with TWRP where sometimes it's intermittent that touchscreen works but it always works in the ROM since the ROM boot time is a lot longer than TWRP
 

Leogami9009

Member
Jun 21, 2022
8
1
Is it normal for this recovery to not be able to resize system/ not being able to enter on internal storage?
 

Sammm77

Senior Member
Nov 14, 2021
61
14
Moto G30
@Sammm77 if touchscreen doesn't work right away? Odds are it's just the touchscreen driver still initializing and maybe checking firmware and such. Focaltech for example is really known for having touchscreen issues as well on TWRP because of a long init period. Some touchscreens have a way to manually reset the kernel driver I think but I'm unsure if caprip has a method to do so.

My Asus Zenfone 5z (Z01R) has focaltech touchscreen and has issues with TWRP where sometimes it's intermittent that touchscreen works but it always works in the ROM since the ROM boot time is a lot longer than TWRP
No, it doesn't load right away, that would be great but it doesn't. You have to wait a few seconds. Do you think that can be solved?
 

ThE_MarD

Recognized Developer
Dec 10, 2014
3,293
3,768
Grande Prairie
LeEco Le Max 2
Moto X4
Heyyo, well it seems there's some communication breakdown as I was under the impression that decryption worked but I guess it doesn't lol oof.

Ok, can someone who is decrypted please try to decrypt and when it fails send me the recovery.log and logcat?

(No replies? Maybe decryption does actually work and there's some more miscommunication???)
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Ok, i let the phone to load the driver and it works, thank you all!
  • 1
    TWRP-Feature-Image-810x298_c.png
    Code:
    #include <std_disclaimer.h>
    /*
    * Your warranty is now void.
    *
    * I am not responsible for bricked devices, dead SD cards,
    * thermonuclear war, or you getting fired because the alarm app failed. Please
    * do some research if you have any concerns about doing this to your device
    * YOU are choosing to make these modifications, and if
    * you point the finger at me for messing up your device, I will laugh at you.
    */

    Introduction:

    Team Win Recovery Project or TWRP for short, is a custom recovery built with ease of use and customization in mind. We started from the ground up by taking AOSP recovery and loading it with the standard recovery options, then added a lot of our own features. It's a fully touch-driven user interface, with no more volume rocker or power buttons to mash. The GUI is also fully XML-driven and completely theme-able. You can change just about every aspect of the look and feel.

    Key Features:

    Touchscreen driven with real buttons and drag-to-scroll
    XML-based GUI that allows full customization of the layout true theming!
    Settings are saved to the sdcard and persist through reboots
    Ability to choose which partitions to back up and which to restore
    Ability to choose to compress backups now with pigz (multi-core processor support for faster compression times)
    Onscreen keyboard
    Easy selection of internal/external storage

    In addition to the above new features, TWRP features a scripting engine that allows an app to send commands to the recovery for the recovery to perform during startup. We call this scripting engine OpenRecoveryScript. This engine will be put to use immediately in the GooManager app. GooManager will be able to install recoveries automatically for most supported devices. The app will also let you choose to install multiple zips from within Android, wipe, and run a backup.

    We are looking for other talented developers, themers, and device maintainers if they are interested in helping with a free, open-source project.

    Source Code:

    GitHub - https://github.com/TeamWin/android_bootable_recovery

    Gerrit Instance - http://gerrit.twrp.me

    If you have made your own TWRP build for an unsupported device, please let us know. We might add your build to the list of unofficial builds. Bear in mind that we are working hard to add more devices and we may add your device to our official build list later.


    This is for UNOFFICIAL builds of TWRP for the Motorola G30 (caprip)

    Device Config:

    Official Downloads:

    Test Downloads:

    Installation:
    1. Backup everything important off of your device
    2. Make sure your bootloader is unlocked
    3. Download the recovery image (and optionally the TWRP installer zip) from above
    4. Reboot into bootloader
    5. Run this command (Change the .img to whatever the name of the file is you downloaded):
      Code:
      fastboot boot twrp.img
    6. (Optional instructions from this point on) Install TWRP installer zip
    7. Reboot to recovery

    Upgrade / Reinstall TWRP instructions
    1. Download desired TWRP installer zip version
    2. Reboot to recovery
    3. Select Install
    4. Tap on install and select the TWRP installer zip you downloaded from step one
    5. Reboot to recovery and confirm that the updated version of TWRP is installed

    Nandroid backup/restore
    1. Have an available microSD Card or USB OTG drive
    2. Backup boot, dtbo, system image, vendor image and data (optionally any other partitions you want a backup of) to your external storage device of choice
    3. Once you wish to restore? Reboot to TWRP and format data (Wipe > "format data" button > type yes > keyboard checkbox)
    4. Reboot to TWRP
    5. Restore boot, dtbo, system image and vendor image
    6. Reboot to system
    7. Once it boots to the system without issues? Do not set any lockscreen security and reboot to TWRP
    8. Restore data
    9. Reboot to system
    10. After it finishes boot? Your data and ROM will be restored but sometimes the UI might be incorrect, so reboot to the system again


    For the TEST builds of TWRP? Please let me know if this works. If so? I will submit it to Gerrit for official updates.

    Credits:
    • mistersmee for his TWRP tree for the Motorola Moto G9 Power (cebu) that this caprip tree is based upon
    • Samw662 for encouraging me to work on this and help out caprip owners since I don't own one plus testing these builds
    1
    Ok, i let the phone to load the driver and it works, thank you all!