Skip to content
nerdcubaPublic

About

Google Services Framework (GSF) cleaner for rooted Android 14, 15 and 16: new GSF ID, Play Services/Store reset, per-app Android ID (SSAID), backup & restore

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

🧹 AAClean

Google Services Framework (GSF) cleaner for rooted Android 14, 15 and 16

CI License: MIT

AAClean resets the Google identifiers of an Android device from your computer over ADB. You get a new GSF ID, fresh Play Services and Play Store data, and optionally a new per-app Android ID (SSAID). Use it to fix stuck push notifications and Google sync errors without a factory reset. It makes a backup first, so you can undo it.

🇪🇸 Leer en español

📋 Requirements

  • Linux, macOS, or Windows with WSL
  • ADB: apt install adb · pacman -S android-tools · brew install android-platform-tools
  • Android 14–16 with USB debugging enabled
  • Root (Magisk, KernelSU or APatch), with root granted to Shell. Without root, --no-root does a partial clean.
  • Optional: sqlite3 on the computer, to display the GSF ID

🚀 Usage

chmod +x aclean.sh
./aclean.sh                  # full clean, asks for confirmation
./aclean.sh --doctor         # diagnostics only, changes nothing
./aclean.sh --dry-run        # show what would be done
./aclean.sh --ssaid com.example.app   # also give one app a new Android ID
./aclean.sh --restore ./aaclean-backups/<folder>   # undo
Option What it does
-p, --profile full (default) · notifications (GSF + Play Services) · store (Play Store)
--only / --skip Pick steps: gsf, gms, vending
--ssaid PKG|all New Android ID for one app or for every app
--backup-only / --restore DIR Only make a backup / restore one
-s, --serial Device to use when several are connected
-y, --yes · --no-reboot · -w, --wait No prompt · do not reboot · wait for boot and show the new GSF ID
--no-root · --no-backup Partial clean without root · skip the backup
-v, --verbose · --log FILE · --no-color Output options

Run ./aclean.sh --help to see every option.

📱 Module (Magisk, KernelSU, APatch)

Run AAClean on the phone, without a computer. Download AAClean-vX.zip from Releases and install it from your root manager.

  • Action button: the first tap shows device info; tap again within 60 seconds to clean.
  • WebUI: open the module in KernelSU or APatch to clean, give apps a new Android ID, back up, restore and reboot. On Magisk, use KsuWebUI or MMRL.
  • Terminal (Termux, adb shell): su -c aaclean help
  • Settings are in /data/adb/aaclean/config and backups in /data/adb/aaclean/backups/. These backups use the same format as the PC script's.
  • Updates show up in the root manager automatically.

🔍 What it does

Step On the device Result
gsf pm clear com.google.android.gsf New GSF ID
gms pm clear com.google.android.gms Play Services reset, new Advertising ID
vending pm clear com.android.vending Play Store reset
--ssaid edits settings_ssaid.xml New Android ID for the app(s)

Before cleaning, it saves the GSF database and every app's Android ID to ./aaclean-backups/. --restore puts both back. Other Google data cannot be restored.

⚠️ Before you run it

  • You may need to sign in to Google again. Wallet cards, Find My Device and Play Store settings may be reset.
  • Apps that use the Android ID (banks, messengers) may ask you to log in again. Back up chats that are not in the cloud first.
  • On custom ROMs, a new GSF ID can make Play Protect show "device is not certified". Register the new ID at https://www.google.com/android/uncertified.

🔧 Troubleshooting

Problem Solution
No Android device found / not authorized Turn on USB debugging and accept the prompt on the phone
Several devices are connected Use --serial (see adb devices)
Root access not available Grant root to Shell in Magisk/KernelSU, or use --no-root
protected package Turn off Find My Device under Settings › Security › Device admin apps
GSF ID "not generated yet" Google check-in needs internet and a few minutes. Run --doctor later

To report a bug, open an issue and include the output of ./aclean.sh --doctor.

📜 License

MIT · Made by @nerdcuba. Use at your own risk: this tool changes system data on rooted devices.

About

Google Services Framework (GSF) cleaner for rooted Android 14, 15 and 16: new GSF ID, Play Services/Store reset, per-app Android ID (SSAID), backup & restore

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages