[MODULE] Detach3 - Detach Market Links

Search This thread

Bradford1040

Senior Member
Mar 5, 2016
155
29
52
West Palm Beach, FL
Not sure if you understood the Dev correctly, but the version you are using is different than the one in this thread.


Is the support link you are looking for
He made both if I'm correct just looking for an answer. Do you have it detached on this version? If so can you post how?
 

Bradford1040

Senior Member
Mar 5, 2016
155
29
52
West Palm Beach, FL
He made both if I'm correct just looking for an answer. Do you have it detached on this version? If so can you post how?
No, he didn't make both, he is the developer of this one, the one on the magisk repo & link I provided above is based on the original code of this "detach", I believe the magisk repo one says this in the documentation, but has added binaries and like anything after a another starts writing for, has taken a different direction.

I can't answer your question & truly neither can this Dev, most dev's have a hard enough time remembering their own code let alone someone elses lol 🤣

Also before you flash this one over that one, they are completely different! Just a heads up


Code:
Introduction

Channel

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. :+1:
 
Last edited:
  • Like
Reactions: danbest82
No, he didn't make both, he is the developer of this one, the one on the magisk repo & link I provided above is based on the original code of this "detach", I believe the magisk repo one says this in the documentation, but has added binaries and like anything after a another starts writing for, has taken a different direction.

I can't answer your question & truly neither can this Dev, most dev's have a hard enough time remembering their own code let alone someone elses lol 🤣

Also before you flash this one over that one, they are completely different! Just a heads up


Code:
Introduction

Channel

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. :+1:
I asked if this one works? And If you had YouTube music detached not all the jargon you just **** posted
Also they should take his name off the module also then
Got it sorted thanks for the mockery
 
Last edited:

Bradford1040

Senior Member
Mar 5, 2016
155
29
52
West Palm Beach, FL

Bradford1040

Senior Member
Mar 5, 2016
155
29
52
West Palm Beach, FL
That's great but you are wrong in a couple things, and his name is on the magisk module for the other also. I can't keep up with all your post since I am not your stalker. Have a good day.

You didn't read the documentation did you? I copied and pasted it even & a screenshot, lol

It says it was "ported" from this module. And gives "thanks" to this Dev, its respectful.

Im not trying to sound like a dic* I really was trying to get you the info for you to read.

have a good day/evening
 
  • Like
Reactions: danbest82

hinxnz

Senior Member
Jul 21, 2009
2,872
2,554
UPDATE: Detach3 v3.07
https://xdaforums.com/t/module-detach3-detach-market-links

Changelog
- Fixed minor install.sh error on Android 11
- Improved some installer logic
- Added scheduler feature*
*Termux and Termux:API apks need to be installed beforehand for scheduler

Detach3 Scheduler
I added this feature due to feedback, the playstore database seems to be updated at times when the playstore updates itself.
I wrote the detach3 scheduler to work by controlling termux-job-scheduler. This uses Android's native job scheduler, making it the best on battery for scheduling tasks.
Its a time scheduler, the interval is set by user. At the set interval, it checks if the playstore has been updated and if so, it will run the installer and detach your configuration list. It will also give you a notification that it has been updated, with the update time, as seen in attachment.
Termux and Termux:API apks need to be installed prior to flashing.

Usage:
On first use, type 'detach3 '. This will do a self check for termux-api binary and install it, if not already installed. This is essential for the detach3 scheduler.

Type 'detach3 ' in Termux
Code:
~ $ detach3
Usage: detach3 [OPTIONS]...
Try 'detach3 --help' for more information.

Type 'detach3 --help ' in Termux
Code:
~ $ detach3 --help
Usage: detach3 [OPTION]...
Schedule detach3 script to run at specified intervals.
-s, --schedule [MINUTES]    set interval in minutes
-p, --pending               list pending job
-c, --cancel                cancel running job

Type 'detach3 --schedule 180 ' in Termux for example, will start job and set interval to 180 minutes ( 3 hours ). For Android 7+, the minimum interval is 15 minutes.

Type 'detach3 --pending ' in Termux, will list your current job.

Type 'detach3 --cancel ' in Termux, will cancel your current job.

Note:
No need to cancel job if updating or setting a new interval.
No need to set scheduler after reboot, it's persistent.
By design, when battery is low, scheduler won't run its check. Neither will the playstore for an update.
I recommend to update Termux beforehand by entering 'pkg upgrade -y '.
The binary helper 'termux-api' also needs to be installed but is handled by the detach3 scheduler. It will download and install it for you by entering 'detach3 ', if not already installed. You can install manually beforehand by entering 'pkg install termux-api -y '.
Edit: I also recommend to download Termux with F-Droid or from the F-Droid site.
 

Attachments

  • Screenshot_20210509-130310_One UI Home.jpg
    Screenshot_20210509-130310_One UI Home.jpg
    465.3 KB · Views: 207
Last edited:

Bradford1040

Senior Member
Mar 5, 2016
155
29
52
West Palm Beach, FL
Since I had I new install I had never run `pkg install termux-api`
But I had the termux api installed from fdroid. Just had forgotten to run the CMD, the schedule won't run without termux api, (I would add above)
 
Last edited by a moderator:

hinxnz

Senior Member
Jul 21, 2009
2,872
2,554
Since I had I new install I had never run `pkg install termux-api`
But I had the termux api installed from fdroid. Just had forgotten to run the CMD, the schedule won't run without termux api, (I would add above)
Yeah thanks, I must of overlooked that. It only checks for the termux-api binary if entering detach3 without an option.
 
  • Like
Reactions: Bradford1040

SnZ

Senior Member
Aug 14, 2011
361
45
@hinxnz , thanks for the great work.

I didn't saw source code being posted, so can I ask you here to include also 'Youtube Music' in default .cfg?

PKG: "com.google.android.apps.youtube.music"
 

DiamondJohn

Recognized Contributor
Aug 31, 2013
7,380
7,394
Sydney
Yup, but no version control so cannot make pull request ;)
Source control, and specifically GIT, is not the only way to store the source. I personally have a number of dev projects, for which I use local source control, not git. You asked for the source, not for the history. Tomakie themod you wanted, you do not need git. And althoough I dont use this module, I think your topic has actuary been covered multiple times within this thread.
 

SnZ

Senior Member
Aug 14, 2011
361
45
Source control, and specifically GIT, is not the only way to store the source. I personally have a number of dev projects, for which I use local source control, not git. You asked for the source, not for the history. Tomakie themod you wanted, you do not need git. And althoough I dont use this module, I think your topic has actuary been covered multiple times within this thread.

I kindly asked the author to include additional pkg in his code because I can't do PR. I don't know why you are answering me and telling basic stuff everybody knows dude...
 

Bradford1040

Senior Member
Mar 5, 2016
155
29
52
West Palm Beach, FL
I kindly asked the author to include additional pkg in his code because I can't do PR. I don't know why you are answering me and telling basic stuff everybody knows dude...
Edit* I was half asleep when I read your post, I read it again and witness my mistake!

DiamondJohn I don't think is the Dev.

Hinxnz is the Dev, unless I misunderstood your question.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 183
    Detach3

    Introduction

    This Magisk module is for detaching apps from the Google Play Store.
    It removes your defined packages from the 'Manage apps and device" section and disables them from auto-updates.

    Installation
    Flash module in Magisk Manager only.
    Not necessary to reboot after flashing this module.
    This module is designed to flash as many times as you like.
    It is configured with a *configuration file. You can create one before flashing this module to define your package(s) or the default one will be used instead, which detaches YouTube by default.
    Add your package name(s) you would like to detach to the configuration file, with each package name on a new line.
    You can add more package names to your configuration file or the default one at any time, then simply just flash module again to apply it. Again, no need to reboot or any other user interaction needed.
    Read the log that Magisk Manager displays when flashing the module, it displays the detached package(s) for confirmation.
    *Configuration file: /storage/emulated/0/Android/detach.cfg

    Reattach
    https://xdaforums.com/t/module-detach3-detach-market-links.3447494/post-84951411

    Scheduler
    https://xdaforums.com/t/module-detach3-detach-market-links.3447494/post-84981039


    Uninstallation
    Uninstall with Magisk and reboot.

    Troubleshooting
    Follow uninstallation method. After reboot open playstore, navigate to the 'Manage apps and device' section so it can populate and then re-flash the module.
    Still have an issue? Post your problem in detail and upload your Magisk installer log, found in your Download directory after saving it ( Shown here ).

    Changelog
    v3.00
    - Initial release

    v3.01
    - Disabled Fallback broadcast

    v3.02
    - Disable auto-update for detached apps
    - Disable playstore running in background
    - Added uninstall script to revert changes

    v3.03
    - Updated sqlite3 binary
    - Added support for x86 and x64

    v3.04
    - Added package check for configuration file
    - Minor alterations

    v3.05
    - Recompiled sqlite3 binaries
    - Improved device platform check
    - Added database check
    - Added the default detach.cfg file
    - Minor alterations

    v3.06
    - Improved installer checks
    - Fixed inflating uninstall script error
    - Tidied installer script
    - Added reattach feature*
    * Comment out package name(s) in detach.cfg to reattach.


    v3.07
    - Fixed minor install.sh error on Android 11
    - Improved some installer logic
    - Added scheduler feature*
    *Termux and Termux:API apks need to be installed beforehand for scheduler

    v3.08
    - Fixed playstore update log error on some devices
    - Fixed script not applying package names with the same string of characters
    - Fixed minor installer check for checking packages
    - Fixed termux-api binary check
    - Disabled package checks on some devices
    - Added option to open playstore with scheduler notification
    - Added option to open configuration file with scheduler notification
    - Added option to flash module with scheduler notification

    v3.10 - Note: Disable scheduler and uninstall previous version before installing this version.
    - Removed package check (Some users have had issues, reboots etc.)
    - Removed scheduler (Not needed for now)
    - Removed unnecessary coding
    - Added new method to prevent detached apps repopulating
    - Added disabling of Play store trackers
    - Other minor alterations in installer script
    - Cleaned up installer script for new method

    v3.11
    - Added ignore GET_USAGE_STATS in AppOps

    v3.12
    - Updated sqlite binaries
    - Removed disabling of fallback receiver
    - Added disabling of alarm manager background service

    v3.13
    - Updated sqlite binaries
    - Added ignore RUN_ANY_IN_BACKGROUND in AppOps
    - Added ignore RUN_IN_BACKGROUND in AppOps
    - Disabled App Discovery Service

    Frequenly Asked Questions
    Q. Can I use the old detach.txt?
    A. No, I decided to ditch it. It now uses a new method explained in the installation section.

    Q. Where is the boot script installed?
    A. No boot script is needed for detaching, everything is done while flashing the module.

    Q. Does this break safetynet?
    A. No, it doesn't conflict with safetynet at all.

    Q. Why shouldn't I re-enable Play Protect?
    A. It will interfere with the module's purpose.

    Q. Will having Play Protect disabled, open me up to vulnerabilities?
    A. No, the playstore scans their market apk's after developers upload them.

    Q. I usually install after-market apks (modified ones) and I think play protects me from this?
    A. You should scan your unknown apk with Total Virus.

    Q. How do you find a package name?
    A. Magisk Manager lists your apps with the package name underneath each one, in the Magisk Hide list.

    Q. What Magisk version is needed?
    A. The module template is designed for Magisk v20.4+

    Q. Do I need to uninstall previous version before updating?
    A. No, unless stated. Just flash updated version.

    Q. Do auto-updates still work for all my other apps that aren't detached?
    A. Yes, auto-update and other notifications etc still work.

    Download
    See attached below -- detach-3.xx.zip

    Previous versions

    Detach Market Links for Theme Ready Apps *

    Introduction
    This Mod is for detaching apps from the Google Play Store that are included in the Theme Ready Apps zip and/or aroma installer from Team Black Out for CMTE and Substratum theme engines.
    *Now also includes majority of all themed apps by Team Black Out by using an optional txt file.
    The purpose is that updates will not show in your update list and also in update notifications from the Google Play Store.
    This allows you to auto-update or the ability to use the update all button without the worry of updating Theme Ready Apps which will break your themes for those apps updated.
    The Google apps that are detached if you're not using the optional txt file are Gmail, Google App, Google Plus, Hangouts, YouTube and Gboard (Google Keyboard).

    Installation
    Flash Mod in recovery, no need to wipe anything but if using SuperSU systemless mode or Magisk, flash this mod afterwards.
    No need to flash again in-between ROM updates if using SuperSU systemless mode or Magisk or if your ROM supports addon.d scripts.
    To detach more themed apps, place the detach.txt file either on root of your sdcard or internal storage and remove the comment from the apps you wish to detach and then flash Detach.zip
    You can also use the optional detach.txt file to just selectively detach Theme Ready Apps.
    If you don't use the supplied detach.txt file, only Theme Ready Apps will be detached.
    To add your own custom packages (apps), read here > https://xdaforums.com/showpost.php?p=72194332&postcount=147

    Uninstallation
    Rename detach.txt on sdcard to detach.remove, flash Detach.zip again and reboot.
    This will remove all files related to installation, including the txt and custom file and restores all market links.

    Note
    If not using SuperSU or Magisk, you need to have init.d support.
    The configured script doesn't execute until after 60 seconds when boot has completed, this also includes the remove script too.
    This Mod has been tested by myself on Android 6 and 7.
    You still have the ability to update your Theme Ready Apps via Google Play Store but you'll need to use the search function instead.

    Changelog
    v1.0
    - Initial release
    v1.1
    - Changed detach method
    v1.2
    - Disabled service for database
    v1.3
    - Bug fixes
    v1.4
    - Added static sqlite binary
    v2.0
    - Added themed apps to detach with configuration txt file (optional)
    v2.1
    - Cleaned up installation script
    - Added mod removal option
    v2.2
    - Magisk compatible (systemless installation)
    - SuperSU systemless mode compatible (systemless installation)
    - Fixed init.d detection
    - Fixed market links reappearing
    - Updated detach.txt (added Wallpapers, Pixel Launcher, Capture (GoPro))
    v2.3
    - Updated script and detach.txt (added Gboard, Clock, Camera, Google Connectivity Services, Google VR Services, Google Play Services)
    v2.4
    - Updated script and detach.txt (added Google Carrier Services and the ability to add custom packages)
    v2.5
    - Fixed market links reappearing
    v2.6
    - Main script updated for removal process
    - Disabled code for a playstore service that no longer needs to be disabled
    - Removed Contacts, Phone and Photos from default install
    41
    Update: Detach_v2.4.zip + detach.txt
    Updated script to include Google Carrier Services and also custom packages.

    To add your own custom packages (apps) to detach from market, create a file on root of sdcard or internal storage called detach.custom with the package names you wish to detach and then flash Detach.zip
    See attachment for example (example has .txt extension to be able to upload).
    You can goto Settings > Apps > [App name] to see the package name or source it from a site such as APK Mirror.
    23
    Update - Detach_v2.6.zip
    - Main script updated for removal process
    - Disabled code for a playstore service that no longer needs to be disabled
    - Removed Contacts, Phone and Photos from default install
    20
    UPDATE: Detach3 v3.13
    https://xdaforums.com/t/module-detach3-detach-market-links

    Changelog
    - Updated sqlite binaries
    - Added ignore RUN_ANY_IN_BACKGROUND in AppOps
    - Added ignore RUN_IN_BACKGROUND in AppOps
    - Disabled App Discovery Service
    17
    Detach v2.6 updated to working with Magisk v16.3 and higher aviable :)

    https://www.mediafire.com/download/cryhbf4b35om2dx