Skip to content

Latest commit

 

History

History
172 lines (125 loc) · 7.66 KB

README.md

File metadata and controls

172 lines (125 loc) · 7.66 KB

Detach



Introduction

INFO: This Module is a port of the original MOD created by hinxnz - XDA thread/OP to work as a Magisk module for Android, so all credits to him. 👍


ℹ️ Short explanation:

With this MOD, you can "detach" app(s) from your Google Play Store automatic update process, it completely hides the update in the "My games and applications" section. So you won't see your detached apps from your Play Store pending updates! You can access the simple mode by put a simple file `simple_mode.txt` in your `/sdcard/` folder and flash the module.

NOTE BEFORE INSTALL: DON'T FLASH THIS MODULE IN TWRP. USE MAGISK MANAGER ONLY TO INSTALL

📜 Setup steps:

  • Start by downloading the Detach.txt file to your /sdcard/ folder: Detach.txt
    • (equivalent to /storage/emulated/0/)
  • Remove the # symbol just before the application(s) name(s) you want in this file
  • Follow the next Bonus section if you want to detach other application(s) wich aren't in the list
  • Save changes
  • Install with Magisk app
    • Magisk app is required for the module setup
  • Reboot your device.
  • Profit!


🎇 Bonus: To detach other applications from your Play Store

  • Open your /sdcard/Detach.txt file on your device
  • Write # Other applications at the line number 45
  • Press your ENTER key 1 time to do a new-line (equivalent symbol: \n)
  • Write the package(s) name(s) of application(s) you want to detach (1 by line)
  • Let a blanck line at the end of your file (with your ENTER or with the equivalent symbol: \n)
  • Save changes
  • Flash the module again via Magisk Manager
    • Or just do su -c detach -a in a terminal emulator (if you already have the module installed)


✔️ Compatibility:

  • Magisk (v15 to lastest)
  • All Android devices from Lollipop + (A11 supported)
  • Magisk Manager
  • Substratum themes for Play Store
  • Any Linux text editor (for LF line-end usage by default)
  • Scheduling

📄 Other Magisk module pre-requisite:

  • Busybox for Android NDK



⚠️ 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 detach your favorites app(s)
  • List detached app(s): list all your app(s) wich are detached from the Play Store
  • Add app(s): detach new app(s)
  • Remove app(s): remove detach feature for detached app(s)
  • Kill: kill Play Store application
  • Clear Play Store data: clear the Play Store's app data
  • Task scheduler: Several possibilities to automate the detachment of your application(s) from the Play Store
  • Silent mode: enable or disable the silent mode, to have a cleaner and less cluttered display in your terminal
  • Busybox compatibility check and Magisk module auto-installer
  • Help: a help menu with all possible commands explained in details


For common apps:

  • You have to download the Detach.txt file: Detach.txt
  • Save it in your internal storage: /sdcard/Detach.txt (quivalent to /storage/emulated/0/Detach.txt).

Screenshot-20190815-170758.png



As the instructions say:

  • Uncomment the app(s) you want to "hide" from Play Store updates
  • Save your changes

Screenshot-20190815-170841.png





For any other app(s):

  • You have to write # Other applications at the line 45
  • Write the app(s) package(s) name(s) on the next line.
  • Don't forget to press your ENTER key when you will have finish to write your custom packages names.

An example:


Screenshot-20190815-170841.png




Common Question and Answers:

Q: I have a problem, where do I report it?

A: Ask on Telegram group or/and on XDA OP (scroll up)

Q: When are the changes applied after the first flash ?

A: After you will have reboot your device.

Q: And the detach.custom file, what happened?

A: Starting from version 4.X, there is no longer need of this file, you just have to use the Detach.txt file.

Q: Where to find an app's package name for an other app (custom app) ?

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 or the corresponding package name in the /sdcard/Detach.txt file and wait some minutes/hours. Or you can remove Play Store's app data, but you will lose your Play Store update and search 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 (or su -c detach --add-app)
  • And for removing:

    • su -c detach -r (or su -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 (or su -c detach --task-scheduler) command in your terminal
    • Choose a way.

Ready to go? ☺️