[MODULE] Detach3 - Detach Market Links

Search This thread

hinxnz

Senior Member
Jul 21, 2009
2,840
2,438
After about 24 hours my YouTube app was updated by Google Play, thereby reverting my YouTube Vanced installation.
Do you know if the playstore updated itself too when this happened?
Did you enable play protect?

Can you check last update times for playstore and youtube
Code:
su
dumpsys package com.android.vending | grep -e "lastUpdateTime"
dumpsys package com.google.android.youtube | grep -e "lastUpdateTime"
 
Last edited:
  • Like
Reactions: oldman20

Bradford1040

Senior Member
Mar 5, 2016
118
14
49
West Palm Beach, FL
Well after 24hrs YouTube shows back up, play protect was off.

Again I have 21.4 magisk and Unofficial LOS 17.1 on a 1+7tpro5g.

I don't have any logs, sorry, I was out and about.

It did work flawless for an entire day. I have noticed Google is constantly updating YouTube lately.

I have just turned the automatic tic is off, so I'm back to pressing each update instead of update all. "boo hoo right :)"
 

hinxnz

Senior Member
Jul 21, 2009
2,840
2,438
Well after 24hrs YouTube shows back up, play protect was off.

Again I have 21.4 magisk and Unofficial LOS 17.1 on a 1+7tpro5g.

I don't have any logs, sorry, I was out and about.

It did work flawless for an entire day. I have noticed Google is constantly updating YouTube lately.

I have just turned the automatic tic is off, so I'm back to pressing each update instead of update all. "boo hoo right :)"
I think it happens when the actual playstore updates itself, probably updated from v23.7 to 23.8
Are you able to enter commands in terminal from the post above?
If you flash module again it shouldn't show again until playstore releases an update for itself, if this the reason it happened
 
Last edited:

Bradford1040

Senior Member
Mar 5, 2016
118
14
49
West Palm Beach, FL
I think it happens when the actual playstore updates itself, probably updated from v23.7 to 23.8
Are you able to enter commands in terminal from the post above?
If you flash module again it shouldn't show again until playstore releases an update for itself, if this the reason it happened
dumpsys package com.android.vending | grep -e "lastUpdateTime"


m.android.vending | grep -e "lastUpdateTime" <
lastUpdateTime=2021-02-04 17:23:18
lastUpdateTime=2020-09-08 18:33:47


dumpsys package com.google.android.youtube | grep -e "lastUpdateTime"


m.google.android.youtube | grep -e "lastUpdateTime" <
lastUpdateTime=2021-01-27 14:17:45
 
  • Like
Reactions: hinxnz

hinxnz

Senior Member
Jul 21, 2009
2,840
2,438
dumpsys package com.android.vending | grep -e "lastUpdateTime"


m.android.vending | grep -e "lastUpdateTime" <
lastUpdateTime=2021-02-04 17:23:18a
lastUpdateTime=2020-09-08 18:33:47


dumpsys package com.google.android.youtube | grep -e "lastUpdateTime"


m.google.android.youtube | grep -e "lastUpdateTime" <
lastUpdateTime=2021-01-27 14:17:45
Thanks, yeah it must be when the playstore updates itself
 
  • Like
Reactions: jelbo

hinxnz

Senior Member
Jul 21, 2009
2,840
2,438
Maybe I can make a Tasker task to flash after playstore updates? Lol, I really like the apps from there, but not very fond of "G" itself
You could but playstore updates aren't too often. Users can disable auto-update for their detached apps like you did so they don't auto-update when playstore updates itself but I might update mod at some stage to disable auto-updates for the detached apps until I find a solution anyways
 

Bradford1040

Senior Member
Mar 5, 2016
118
14
49
West Palm Beach, FL
You could but playstore updates aren't too often. Users can disable auto-update for their detached apps like you did so they don't auto-update when playstore updates itself but I might update mod at some stage to disable auto-updates for the detached apps until I find a solution anyways
I already have a task that detects when any app updates or installed, including playstore app, I just normally swipe the notification away,

Until now lol, going to see if I can capture the notification after it updates, set up either intent's or autoinput tasks to auto flash detach3 after,

Because I get bored lol, no useful reason. Guess to see if I can do it. Isn't that how things get created? 😉

Great module BTW, very simple, no boot loops, happy user! Lol, everything that matters
 

kanehun

Senior Member
Mar 21, 2012
97
7
Noob question. I try to run detach, but no matter how I try, running it causes detach asking me which package to detach. I tried Youtube, tried m.google.android.youtube in the detach.txt file. Even if I name the app after detach asking me, it does not find my app. I grabbed the package name with Package name app. Still no success. I tried row 44, 45, 46, no success (I have counted by hand). Need some help. Thank you in advance.
Another question. If I would like to detach two apps, I just add a line for that second app, and an empty line below? Lg V30 android 9.
 
Noob question. I try to run detach, but no matter how I try, running it causes detach asking me which package to detach. I tried Youtube, tried m.google.android.youtube in the detach.txt file. Even if I name the app after detach asking me, it does not find my app. I grabbed the package name with Package name app. Still no success. I tried row 44, 45, 46, no success (I have counted by hand). Need some help. Thank you in advance.
Another question. If I would like to detach two apps, I just add a line for that second app, and an empty line below? Lg V30 android 9.
Detach3 uses config file in "storage/emulated/0/Android/detach.cfg". You can just add the package name of the app you want detached.

This is my file. Remove ".txt" from it if you want to use it. Otherwise just add your package name to the file most likely already created in "storage/emulated/0/Android/".
 

Attachments

  • detach.cfg.txt
    61 bytes · Views: 35
  • Like
Reactions: iPAQ 6515a User

Falcon_X

Senior Member
Jun 25, 2013
119
17
This one was really helpful, but now it doesn't work anymore. But it worked for me before... Since I've updated my Syberia Android 11 ROM (fresh install) it does nothing.
I can't access /storage/emulated/
Phone is rooted with Magisk and my file manager has root rights.
I just want to detach Youtube, what can I do?
 
Last edited:

hinxnz

Senior Member
Jul 21, 2009
2,840
2,438
This one was really helpful, but now it doesn't work anymore. But it worked for me before... Since I've updated my Syberia Android 11 ROM (fresh install) it does nothing.
I can't access /storage/emulated/
Phone is rooted with Magisk and my file manager has root rights.
I just want to detach Youtube, what can I do?
Youtube is added by default so you can just flash without doing anything else.
Some file managers have issues with A11, you should be able access the config file by /sdcard/Android
 

elmer_fudd

Senior Member
Sep 29, 2015
55
16
Hi, thanks for a great module!
I have a problem with OnePlus Launcher (net.oneplus.launcher). It gets detached but always reappears after some hours/day. I checked that Play Store hasn't got updated. Many many times I have installed the module and it is always the same.
 

hinxnz

Senior Member
Jul 21, 2009
2,840
2,438
Hi, thanks for a great module!
I have a problem with OnePlus Launcher (net.oneplus.launcher). It gets detached but always reappears after some hours/day. I checked that Play Store hasn't got updated. Many many times I have installed the module and it is always the same.
Have you enabled play protect?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    A question, as I am a bit lost. Here the latest version is 3.02, but about a year ago there was a Magisk module called detach 4.2.

    Is that version (4.2) not the oficial one?
    That one that's in the magisk repo is one that has been continued by someone else, not knocking it, but this one works great for me, so sticking with it. Personal preference type thing
    1
    Maybe I did not see the Q&A post in there for if I have 3.01 installed do I uninstall 3.01 & install 3.02. Sorry if a oversight or dumb question
    No need to uninstall previous version
    1
    Well don't hold out on me lol, taskernet share that. Lol, please
    Run shell, use root On

    detach -id

    Run this shell command every 30 min.
  • 141
    Detach3

    Introduction

    This Magisk module is for detaching apps from the Google Play Store.
    It removes your defined packages from the 'My apps & games' 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 created 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 directory /storage/emulated/0/Android/detach.cfg or /sdcard/Android/detach.cfg

    Uninstallation
    Uninstall with Magisk and reboot.

    Troubleshooting
    Follow uninstallation method. After reboot open playstore, navigate to 'My apps and games' section so it can populate and then re-flash the module.

    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

    FAQ
    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, 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://forum.xda-developers.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
    17
    Detach v2.6 updated to working with Magisk v16.3 and higher aviable :)

    https://www.mediafire.com/download/cryhbf4b35om2dx
    15
    Update: Detach_v2.5.zip
    Fixed market links reappearing
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone