[MODULE] Detach3 - Detach Market Links

Search This thread

ZaneZam

Inactive Recognized Contributor
Dec 6, 2010
3,398
16,825
lol really... wow i was so sure. then that explains alot.lolol

thanks for the rectification.

then there is something odd going on that i need to figure out.

does your mod gen a log somewhere? how can we know if it is active or not.

ah this "detach.log" actually IS the log and shows that the script runs and if there are entries like "com.google.android.youtube NOT FOUND!" multiple times (and adding every 180 secs) then it's fine and running
even tho in between there should be a "com.google.android.youtube DETACHED!" at some point but that is only there if youtube got attached again and it can be that u don't see this long time bcause
log gets flushed by the script so thats a bit of luck to see this log entry. mostly it's coming after a reboot tho because of the timing playstore service might be able to re-attach apps ;)
anyways u can do a test by removing the vanced bundled detach script by putting disable_detach into cache + reboot and wait after boot the vanced version should get removed. now do another reboot and see if
the 99-detach script does it's jop by checking if the youtube app re-appears/disappears again. OOR u remove the detach module (not sure hwo to uninstall it properly tho) and see if the left vanced bundled method
still works. however i meanwhile did check the detach magisk module and for what i saw is that it also does looping now so i guess u should get the same results with both modules/scripts, but u will see. its just u r
maybe using 2 detach scripts at the same time which well should not be for my taste :)
 

bober10113

Senior Member
Mar 12, 2017
4,447
1,621
ah this "detach.log" actually IS the log and shows that the script runs and if there are entries like "com.google.android.youtube NOT FOUND!" multiple times (and adding every 180 secs) then it's fine and running
even tho in between there should be a "com.google.android.youtube DETACHED!" at some point but that is only there if youtube got attached again and it can be that u don't see this long time bcause
log gets flushed by the script so thats a bit of luck to see this log entry. mostly it's coming after a reboot tho because of the timing playstore service might be able to re-attach apps ;)
anyways u can do a test by removing the vanced bundled detach script by putting disable_detach into cache + reboot and wait after boot the vanced version should get removed. now do another reboot and see if
the 99-detach script does it's jop by checking if the youtube app re-appears/disappears again. OOR u remove the detach module (not sure hwo to uninstall it properly tho) and see if the left vanced bundled method
still works. however i meanwhile did check the detach magisk module and for what i saw is that it also does looping now so i guess u should get the same results with both modules/scripts, but u will see. its just u r
maybe using 2 detach scripts at the same time which well should not be for my taste :)
will test when i get back from work. because yeah i agree 2 x modules fighting each other might now be a good thing...not kosher
 

bober10113

Senior Member
Mar 12, 2017
4,447
1,621
ah this "detach.log" actually IS the log and shows that the script runs and if there are entries like "com.google.android.youtube NOT FOUND!" multiple times (and adding every 180 secs) then it's fine and running
even tho in between there should be a "com.google.android.youtube DETACHED!" at some point but that is only there if youtube got attached again and it can be that u don't see this long time bcause
log gets flushed by the script so thats a bit of luck to see this log entry. mostly it's coming after a reboot tho because of the timing playstore service might be able to re-attach apps ;)
anyways u can do a test by removing the vanced bundled detach script by putting disable_detach into cache + reboot and wait after boot the vanced version should get removed. now do another reboot and see if
the 99-detach script does it's jop by checking if the youtube app re-appears/disappears again. OOR u remove the detach module (not sure hwo to uninstall it properly tho) and see if the left vanced bundled method
still works. however i meanwhile did check the detach magisk module and for what i saw is that it also does looping now so i guess u should get the same results with both modules/scripts, but u will see. its just u r
maybe using 2 detach scripts at the same time which well should not be for my taste :)
ok so i started from scratch. this time i started by testing again the magisk module( the new o e 2.7.1) and it worked right off the bat( which didint work before). ill see during the next few days if it sticks.
 
  • Like
Reactions: ZaneZam

bober10113

Senior Member
Mar 12, 2017
4,447
1,621
ah this "detach.log" actually IS the log and shows that the script runs and if there are entries like "com.google.android.youtube NOT FOUND!" multiple times (and adding every 180 secs) then it's fine and running
even tho in between there should be a "com.google.android.youtube DETACHED!" at some point but that is only there if youtube got attached again and it can be that u don't see this long time bcause
log gets flushed by the script so thats a bit of luck to see this log entry. mostly it's coming after a reboot tho because of the timing playstore service might be able to re-attach apps ;)
anyways u can do a test by removing the vanced bundled detach script by putting disable_detach into cache + reboot and wait after boot the vanced version should get removed. now do another reboot and see if
the 99-detach script does it's jop by checking if the youtube app re-appears/disappears again. OOR u remove the detach module (not sure hwo to uninstall it properly tho) and see if the left vanced bundled method
still works. however i meanwhile did check the detach magisk module and for what i saw is that it also does looping now so i guess u should get the same results with both modules/scripts, but u will see. its just u r
maybe using 2 detach scripts at the same time which well should not be for my taste :)
looks like it stopped working. couple reboots later and i just noticed youtube got updated. (with the 2.7.1 module)

ill do more tests tomorrow and see if i can get the vanced version working
 

bober10113

Senior Member
Mar 12, 2017
4,447
1,621
looks like it stopped working. couple reboots later and i just noticed youtube got updated. (with the 2.7.1 module)

ill do more tests tomorrow and see if i can get the vanced version working
seems that the included vanced detacher is working. dont know what i was doing wrong initially. anyways it still seems as it is working after a few reboots.

edit

so again on the Vanced version it stoped working eventually. then i thought for a second how sometimes i wipe caches. and then i made the link lolol...
 
Last edited:

wonkxin

Member
Dec 29, 2016
6
0
Busybox is installed
/system/bin/Detach[534]: [: missing ]

Does anybody know what it means? Detach isn't working on my Moto G7 Power with Android 9.
 

Attachments

  • Screenshot_20190417-140129.png
    Screenshot_20190417-140129.png
    127 KB · Views: 618

Droid_Nut

Senior Member
I can block Google Fit, but cant block OfficeSuite?

I had the detach.custom in root before I installed the zip in Magisk. The install terminal mentioned both of these lines, as written in detach custom.
com.mobisystems.office
com.google.android.apps.fitness

I proofread it 100 times, but it still wont work?
 

Droid_Nut

Senior Member
I can block Google Fit, but cant block OfficeSuite?

I had the detach.custom in root before I installed the zip in Magisk. The install terminal mentioned both of these lines, as written in detach custom.
com.mobisystems.office
com.google.android.apps.fitness

I proofread it 100 times, but it still wont work?

So I installed the Detach.zip again, and now Fit is showing up for updates, and Office is not?
Is anyone having 100% luck with this module?
 

Droid_Nut

Senior Member
Last edited:

rypz79

Senior Member
Apr 27, 2013
389
68
Ramat-Gan
Hi,

The module doesn't work me I still get Youtube update notifications on Google Play Store.

I've the latest version v2.7.2 on the latest stable Magisk v18.1.

I'm using YouTube Vanced v14.10.53 Magisk module instead of the original Google's Youtube but it has the same package name com.google.android.youtube which I've also tried to add it into detach.custom.txt to no avail.

Any suggestions ?
TNX
 

Attachments

  • Screenshot_20190422-114744.png
    Screenshot_20190422-114744.png
    224.1 KB · Views: 211
  • Screenshot_20190422-114758.png
    Screenshot_20190422-114758.png
    154.3 KB · Views: 211
  • Screenshot_20190422-114815.png
    Screenshot_20190422-114815.png
    176.5 KB · Views: 205
  • Screenshot_20190422-115727.png
    Screenshot_20190422-115727.png
    225.8 KB · Views: 209
  • Screenshot_20190422-120014.png
    Screenshot_20190422-120014.png
    212.3 KB · Views: 204

marciozomb13

Senior Member
Apr 30, 2012
1,560
2,989
Rio de Janeiro
Samsung Galaxy A51
Hi,

The module doesn't work me I still get Youtube update notifications on Google Play Store.

I've the latest version v2.7.2 on the latest stable Magisk v18.1.

I'm using YouTube Vanced v14.10.53 Magisk module instead of the original Google's Youtube but it has the same package name com.google.android.youtube which I've also tried to add it into detach.custom.txt to no avail.

Any suggestions ?
TNX
Vanced have a built in script to detach itself, just check if enable detach file is on cache folder (is wiped on wipe cache action performed by TWRP). I use and works well.
 

rypz79

Senior Member
Apr 27, 2013
389
68
Ramat-Gan
Vanced have a built in script to detach itself, just check if enable detach file is on cache folder (is wiped on wipe cache action performed by TWRP). I use and works well.
I don't see any script file in /data/user/0/com.google.android.youtube/cache.
Can you upload pls the detach script for Vanced?

I don't know if that's what you mean but after I flashed Vanced as a Magisk module using TWRP I didn't wipe the dalvik-cache.

TNX
 

marciozomb13

Senior Member
Apr 30, 2012
1,560
2,989
Rio de Janeiro
Samsung Galaxy A51
I don't see any script file in /data/user/0/com.google.android.youtube/cache.
Can you upload pls the detach script for Vanced?

I don't know if that's what you mean but after I flashed Vanced as a Magisk module using TWRP I didn't wipe the dalvik-cache.

TNX
Root/cache
Is BUILT-IN when installing via Magisk, no need to install any other software. Just put a blank file on /cache called enable_detach
 

Attachments

  • Captura__20190422_090703.jpg
    Captura__20190422_090703.jpg
    212.2 KB · Views: 229

rypz79

Senior Member
Apr 27, 2013
389
68
Ramat-Gan
Root/cache
Is BUILT-IN when installing via Magisk, no need to install any other software. Just put a blank file on /cache called enable_detach
Yes I've needed also to delete detach.custom.txt
And now it works

For some reason the detach.log says that it couldn't find com.google.android.youtube.
Should I remove the detach module from Magisk as well?

TNX
:good:
 

Attachments

  • Screenshot_20190422-154007.png
    Screenshot_20190422-154007.png
    99.1 KB · Views: 207

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