Detach
Introduction
XDA thread/OP to work as a Magisk module for Android, so all credits to him.
INFO:This Module is a port of the original MOD created by hinxnz -Short explanation:
Setup steps:
- If you just want to detach common app(s) like Hangouts, YouTube, Facebook, etc, just download the detach.txt file and save it in your
/sdcard/
folder. - If you want to detach some specific apps, so download the detach.custom.txt file and save it in your
/sdcard/
folder. - Make sure that the file(s) detach.txt and/or detach.custom.txt are in your
/sdcard/
folder. - Flash the module ZIP (Magisk Manager and TWRP are supported)
- Done!
Compatibility:
- Magisk (v15 to lastest)
- All Android devices from Lollipop to Pie
- Magisk Manager & TWRP
- Substratum themes for Play Store
- Scheduling
Warning: In a very few cases, this mod can purely break the Play Store app, so please backup your phone before flashing this mod. Thanks for your understanding.
Terminal features:
- Instant detaching: instantly detaching your favorites app(s)
- Add app(s): detach new app(s)
- Remove app(s): attach again app(s) to Play Store updates
- Kill: killing Play Store application
- Clear Play Store data: clear the Play Store's app data
- Task scheduler: automaticaly setup a task scheduler to automaticaly detach your app(s) from the Play Store's updates
- Silent mode: enable or disable the silent mode, to have cleaner and less cluttered order results
- Busybox compatibility check
- Help: a help menu with all possible commands explained in detail
- You have to download the following file: For common apps:detach.txt
- Save it in your phone's internal storage root:
(So:/sdcard/detach.txt
or/storage/emulated/0/detach.txt
)
- uncomment the app(s) you want to "hide" from Play Store updates: - As file's instructions:
- You have to download this file: For any other apps: detach.custom.txt
-
Saving it on root of your internal storage as before:
(So:/sdcard/detach.custom.txt
or/storage/emulated/0/detach.custom.txt
) -
Type your app(s) package(s) name(s), one per line and let a blanck line at the end. For example:
Common Question and Answers:
Q: A problem ?
A: Ask on Telegram group or/and on XDA OP (scroll up)
Q: When are the changes applied ?
A: When you flash the module, and when you run the command: su -c detach -id.
Q: Where to find an app's package name ?
A: App's package name is in the middle of the two texts framed in grey
https://play.google.com/store/apps/details?id=
com.package.name&hl=en
Q: Apps aren't hidden in my Play Store!
A: If you have already run the command (su -c -detach -id
), report on the Telegram group.
Q: How to "attach" again an app who is previously "hidden" ?
A: Just comment again the app name in the detach.txt file or delete the corresponding package name in the detach.custom file and wait some minutes/hours. Or you can remove Play Store's app data, but you will lose your Play Store update history.
Q: What does this module do? Does it touch the system partition ?
A: It only edits a SQL database file in Play Store folder on your /data
partition. Nothing more, nothing less.
Q: After several hours, my detached app(s) are back in my Play Store, what's wrong ?
A: With a recent update of the Play Store, an unknow wakeloks refresh the SQL database file of the Play Store.
To fix it: just install a Terminal Emulator app or Termux (or another terminal emulator app) and run the command:
=> su -c detach -id
Q: My Play Store history search will be deleted ?
A: ONLY if you select the 'c' option in the terminal menu (as indicated in the menu).
Q: Is it possible to add or remove app(s) from the module's setup ?
A: Yes! See below:
-
For adding:
su -c detach -a
(orsu -c detach --add-app
)
-
And for removing:
su -c detach -r
(orsu -c detach --rem-app
)
Q: And if I'm too lazy to do the detach command every time the Play Store updates its file?
A: You can schedule the su -c detach -id
command
- To do this, just do:
- Run
su -c detach -t
(orsu -c detach --task-scheduler
) command in your terminal - Choose a way.
- Run
Here we go ?