Skip to content

init-java/MBGA-MakeBootloopGreatAgain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛡️ MakeBootloopGreatAgain (MBGA)

Android Support Root Support License

MakeBootloopGreatAgain (MBGA) is an ultra-reliable, universal userspace module designed to protect Android devices from bootloops caused by conflicting root modules. It is built around a fault-tolerant Dead Man's Switch mechanism, eliminating false positives while preserving the integrity of File-Based Encryption (FBE).

Important

MBGA intentionally does one thing only: it stops endless bootloops caused by root modules and restores the device to a bootable state as quickly as possible.

It is not intended to identify the faulty module, collect diagnostics, repair the system, or perform automatic recovery. Keeping the recovery logic minimal and deterministic reduces complexity, minimizes potential failure points, and maximizes reliability.


⚡ How It Works (Architecture)

Unlike traditional anti-bootloop solutions that rely on unreliable reboot counters or aggressively disable applications (potentially corrupting the packages.xml database), MBGA uses a simple and deterministic marker-based safety mechanism.

        [System Boot]
              │
              ▼
 [post-fs-data.sh] ───► Check for /data/adb/mbga_marker
              │
              ├──► Marker NOT found (Previous boot completed successfully)
              │          │
              │          └──► Create marker ──► Continue Android boot
              │                                        │
              └──► Marker FOUND (Previous boot failed) │
                         │                             ▼
                         ▼                      [service.sh]
                [Protection Triggered]    Wait for sys.boot_completed=1
            Create "disable" files                  │
          for ALL third-party modules               ▼
                                             Remove the marker

About

A module for saving from deep bootloops.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages