yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Krlos Eduardo:
Even after updates the module never worked with YouTube vanced.

anyway, tnks for the efforts.
[Android Software/Hacking General [Developers Only]] otonieru:
its not that it doesnt works, it just that the play services will eventually re add youtube back to update list, it will gone again after a while, and coming back again and continue like that. The only real fix is using sudohide
[Android Software/Hacking General [Developers Only]] n0j0e:
use ytva-universal-installer-v5.1 in "detach mode only". It's install then only a Magisk module for detaching YT Vanced. Works great for me!

https://github.com/zanezam/ytva-universal-installer
[Android Software/Hacking General [Developers Only]] coolpixs4:
After installed this mod, I found that due to the mod generate folder /system/su.d/ => This may lead to the mobile banking app detect su.d and thinking that it is rooted.
[Android Software/Hacking General [Developers Only]] rodken:
+1
[Android Software/Hacking General [Developers Only]] hinxnz:
Yeah the default apps that are detached without the text file are only the theme ready ones, every other app needs the use of the text file eg. GoPro etc. You can't just add your own apps just to the text file because they need to be added to the script in the mod as well. Adding extra apps won't screw nothing up and won't make the boot script any larger because they will be ignored if commented out in the text file.
[Android Software/Hacking General [Developers Only]] RED ZMAN:
Thanks a lot, I thought it worked the opposite way. That should work great.
[Android Software/Hacking General [Developers Only]] hinxnz:
Ok guys first post updated with new version and txt file to include Wallpapers, Pixel Launcher and GoPro.

Fixed reappearing market links and init.d detection.

Now is Magisk and SuperSU systemless mode compatible for a completely systemless installation.

Have a Merry Christmas :)
[Android Software/Hacking General [Developers Only]] HamsterHam:
[MENTION=1909299]hinxnz[/MENTION] new version works well with Magisk! Thanks.
[Android Software/Hacking General [Developers Only]] RED ZMAN:
Awesome, downloading now. You really should get this added to the XDA Labs store, it would be an extra feather in your cap.

So in order to block updates for the GoPro / capture app I just have to add in the APK name to the text file right?
[Android Software/Hacking General [Developers Only]] sunanulh:
Last build works great!

Thanks so much [MENTION=1909299]hinxnz[/MENTION]
[Android Software/Hacking General [Developers Only]] hinxnz:
Just remove the comment from Capture and your other themed apps in the detach.txt and flash mod.
[Android Software/Hacking General [Developers Only]] HamsterHam:
[MENTION=1909299]hinxnz[/MENTION] Merry Christmas!

Randomly the scripts stopped working. Any ideas?
[Android Software/Hacking General [Developers Only]] hinxnz:
Can you be more specific, what do you mean the scripts stopped working?

If apps have reappeared then possibly play store was updated and has changed something once again.
[Android Software/Hacking General [Developers Only]] HamsterHam:
Sorry yeah, that was pretty vague. So the apps reappeared but I detached them via Titanium backup and they didn't reappear when I rebooted.
[Android Software/Hacking General [Developers Only]] kennethho:
Links to v2.1 and v2.2 from op appear to be 401 gone.
[Android Software/Hacking General [Developers Only]] hinxnz:
All seems fine here, try now..
[Android Software/Hacking General [Developers Only]] kennethho:
Downloaded and thanks much for the mod.
[Android Software/Hacking General [Developers Only]] HamsterHam:
Is this still working as the apps show up here for me on the play store?
[Android Software/Hacking General [Developers Only]] hinxnz:
Yes, works fine for me. Try wiping data for playstore and then reboot. You need to wait a minute or two before the script runs before checking your apps. If it's still not working, try uninstalling mod (instructions in 1st post), reboot and then try flashing mod again. If still not successful, give me more details like version number of play store and output of the script by calling it with terminal emulator would be good.
[Android Software/Hacking General [Developers Only]] HamsterHam:
Wiped data and rebooted, now no apps show up as installed on play store. Do they take time to appear?
[Android Software/Hacking General [Developers Only]] hinxnz:
You need to uninstall mod to reset them, make sure you reboot afterwards before flashing mod again.
[Android Software/Hacking General [Developers Only]] HamsterHam:
So I renamed detach.txt to detach.remove but the file disappears so flashing the zip again just installs it and doesn't remove it. Strange.
[Android Software/Hacking General [Developers Only]] hinxnz:
The file is deleted when you flash mod again to uninstall it, nothing strange, it's in the script, have a look. Reboot and you'll notice all your apps are restored, flash mod again and your theme ready apps will be detached. If using the text file, make sure to remove the comment from what you need to detach before flashing the mod. You can always flash mod again if you want to detach another app listed in the text file.
[Android Software/Hacking General [Developers Only]] HamsterHam:
Ahh, it all makes sense now. It works! Only app not removed is the Google one.
[Android Software/Hacking General [Developers Only]] kurtschmeichel:
As said above. Play Store updates it database file on a random rhythm, sometimes several times a day. You have to rerun detach command when Youtube reappears. On the previous page I asked if there was a way to run the detach script with cron script or similar, but didn't find a solution.

Now, a few months later, I finally discovered that the Detach script can be run automatically every hour. The developers explain how to do it in description page of the Magisk module. You have to scroll down, last Q&A

I managed to get it working with the Magisk module "Daily Job Scheduler" and let it to run once every hour. Once in a while (like once every two weeks) Play Store will show an update for Youtube, but it will go away when the script has run again.
[Android Software/Hacking General [Developers Only]] coolpixs4:
Can you share file Detach.sh to run it under /root/data/adb/service.d ?

Thanks
[Android Software/Hacking General [Developers Only]] oldman20:
Sorry, detach scripts you said is in first post?
[Android Software/Hacking General [Developers Only]] ephemunch:
Ok, wanted to detach Googles Youtube and turn on auto-update of apps form googleplay. Before detach-module auto-update was turned off and I clicked separately on every new app update - except of Googles Youtube.

Now with detach-module it is detached from update-list and I turned auto-update on. However, auto-update doesn't work (after reboot of device fast notification appear about connection refused to google-store or something like this). I mean I can now click on ''Update all'' instead to click separately on every new app update. But this effort only for this?

However, I still appreciate this.

But maybe I'll uninstall it again.
[Android Software/Hacking General [Developers Only]] n0j0e:
Get this with su -c detach -a

Magisk 20.4, crdroid 6.9

Compatibility check... ✓

Please write the application package name
you want to detach from automatic PS update

Package name:
com.google.ar.core

'com.google.ar.core' - Do you confirm ?
y

Check if com.google.ar.core exist on the Play Store...
/system/bin/detach[919]: 32
37: unexpected '37'
1|:/ $

Adding com.google.ar.core manually in the Detach.txt and reflashing Detach without problems!
[Android Software/Hacking General [Developers Only]] oldman20:
would you explain more clearly, sir? I dont know how to use Daily Job Scheduler magisk module, though it installed :(
[Android Software/Hacking General [Developers Only]] BrkIt:
I can't get the terminal commands to work.

Phone: OnePlus 5

Android: 7.1.1

Magisk: 20.4 (20400)

Magisk Manager: 7.5.1 (267)

Any ideas?

Edit: I was missing BusyBox. I assumed that the Busybox module on Magisk was enough. It is not.
[Android Software/Hacking General [Developers Only]] vMAC:
Anyone checked if this module still works with Android 11?
[Android Software/Hacking General [Developers Only]] n0j0e:
wrong thread, sry!
[Android Software/Hacking General [Developers Only]] itylermartin:
It's working with the default detach text file on 11, but I can't get the custom file to work. Trying to detach instagram
[Android Software/Hacking General [Developers Only]] juda iskariotsky:
It's not working with latest magisk, fix it PLEASE.
[Android Software/Hacking General [Developers Only]] hank81:
Sure you have build 20.4 and not the beta 21.0. In the second case rollback to 20.4 (change update channel, install). In the first one remove all modules and reinstall. Can do it all within Manager. If you are on A10 don't mess with Magisk from recovery (unless you know what and how you're doing).
[Android Software/Hacking General [Developers Only]] juda iskariotsky:
Aye, thanks. My bad, totally forgot i have beta installed. However Youtube vanced keeps crashing after restart, but thats not Detachs fault :)
[Android Software/Hacking General [Developers Only]] sixisixsix:
Deleted
[Android Software/Hacking General [Developers Only]] DiamondJohn:
There is absolutely nothing stopping YOU from creating a similar thing, and releasing it as "open source"

BUUUUT... it is a script, which means it IS open source.:silly::p

I wish people would collectively refuse to make :silly: statements that go to the heart of sounding so unappreciative of the dev, and are just down right :silly:
[Android Software/Hacking General [Developers Only]] elzafir:
Dear dev of detach,

Could you please include Instagram on the list of the default apps in the detach.txt? Thank you very mucho
[Android Software/Hacking General [Developers Only]] Stonkers:
Every time I run Detach it works but it also started doing this. Wtf
[Android Software/Hacking General [Developers Only]] hinxnz:
Delete
[Android Software/Hacking General [Developers Only]] hinxnz:
Delete

Edit: FAQ added to first post.Dewte
[Android Software/Hacking General [Developers Only]] hinxnz:
Deleted
[Android Software/Hacking General [Developers Only]] Valiante:
Everything was working yesterday but now I'm getting

$ su -c detach -id
/system/bin/sh: detach: inaccessible or not found

Not sure what's going on
[Android Software/Hacking General [Developers Only]] vMAC:
I think I might be missing something. I uninstalled the previous detach. I have installed the new detach module. I am still having YT updated every night. Is there something else I must do after installing the new module in Magisk?
[Android Software/Hacking General [Developers Only]] Lorisson:
@hinxnz

Missing link to v3 in the first post.
[Android Software/Hacking General [Developers Only]] Garrett_PL:
Unsupported Magisk version: 21200
$

Since latest Magisk update to 21.2 will detach be updated as well, or should I roll back to previous version?
[Android Software/Hacking General [Developers Only]] gohaaron:
I can't find the link for latest version 3.0. and does this support the latest version of Magisk 21?
[Android Software/Hacking General [Developers Only]] Garrett_PL:
I have V4.2 of Detach and it won't run on latest version of Magisk - which is 21.2. Was working fine with previous 21.1 or 21.0 as I don't remember was there 21.1 at all. I believe downgrading is the only way to go for me.
[Android Software/Hacking General [Developers Only]] hinxnz:
Try v3.01 on first post

Thanks, had a issue sorry, just uploaded v3.01

This module supports 20.4 and up

Check now. Yes Magisk 21 supported, module supports 20.4 and up

Module from first post works fine with 21.2, module supports 20.4 and up
[Android Software/Hacking General [Developers Only]] Zdeslav:
Hi, please, need to detach this:

YT Music or com.google.android.apps.youtube.music

I've add like in instructions on 45 line:

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)

it look like:

#Google Connectivity Services

#Google VR Services

#Google Play Services

#Google Carrier Services

# Other applications

com.google.android.apps.youtube.music

So the module respond No custom app added ....

I don't get it especially need package name not app name... were I get wrong..

Thanks in advance
[Android Software/Hacking General [Developers Only]] hinxnz:
Support for the module you are using is on telegram but I updated first post not long ago, try module 3.01
[Android Software/Hacking General [Developers Only]] Zdeslav:
OK thanks on that info will look others in the Telegram group.

Installed 4.2 Detach

Mag Manager 8.0.7

Magisk 21.4 / Busybox, detach...

Lineage OS 16 / 9

Lenovo P2 a42

Clean system A9, works reliably,

YouTube script from Detach m works perfectly, off course need a script to regain to be hidden all the time.

Many THX on that info and replay.
[Android Software/Hacking General [Developers Only]] n0j0e:
I'm irritated. Is the v3.0.1 a newer fork from v4.3b5, a complete other project or new version scheming? :unsure:
[Android Software/Hacking General [Developers Only]] hinxnz:
Version 3 posted here is an updated version from my version 2.

The versions on Telegram are an continuation of version 2, made solely as a magisk module and had advanced alot to re-detach as things changed with the method how Playstore populates its database for installed apps. XDA member 'ROM' has obviously worked hard advancing and maintaining the module in the Magisk repository.

I ended up naming it version 3 because it's my next version after version 2. I moved it to version 3 because it's now solely a magisk module and also the method I use now to detach apps is basically different. It works without having to run a scheduled script to re-detach. The new method now works as the original one did some time ago before the playstore method changed.

It does everything when flashing the module now and does'nt rely on a boot script or on calling one either, basically nothing is installed and no reboot is needed either. I tried making it more user friendly, just set and forget.

I'm not sure how long this method will work but it's working for now.

It took me awhile to find a new method that works and frustrated me at times lol, but I finally succeeded again..
[Android Software/Hacking General [Developers Only]] Stef_:
For YouTube it works but i try detach a custom app with a file custom.detach.txt and it is not working.

Thanks.
[Android Software/Hacking General [Developers Only]] Stef_:
It works now i haven't correctly read installation instructions.

Thanks for your app.
[Android Software/Hacking General [Developers Only]] jelbo:
It's still very confusing to me that the Magisk repo version is 4.2.
[Android Software/Hacking General [Developers Only]] Bradford1040:
I am new to the magisk rooted world, so forgive the noobie question

I have magisk 21.4 on LOS 17.1, with a 1+7tpro5g.

I just install from storage the 3.01 zip and YouTube is already populated on the detach list right?

As I said, I am new, and a bit of a worry wort when it comes to modules lol. Thank you to the OP / Dev
[Android Software/Hacking General [Developers Only]] hinxnz:
Yes that's correct. If no configuration file exists when flashing the module, one will be created and YouTube will be added by default. If you create it first, YouTube won't be added unless you add it yourself.
[Android Software/Hacking General [Developers Only]] Bradford1040:
Thank you for the quick answer!

I am kinda out of my element at the moment, there are so many choices (which is a good thing) but it's overwhelming for the new guy.

Plus like I said, I'm a bit of a winnie. I haven't gotten my (I can fix this issue) confidents yet.
[Android Software/Hacking General [Developers Only]] Bradford1040:
One more quick question,

Nevermind, it was the second line, I must have looked right over it 3 dam times!

BTW, update, works perfectly on oneplus 7t pro McLaren with LOS 17.1 rooted! Thank you
[Android Software/Hacking General [Developers Only]] jelbo:
After about 24 hours my YouTube app was updated by Google Play, thereby reverting my YouTube Vanced installation.
[Android Software/Hacking General [Developers Only]] hinxnz:
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

su
dumpsys package com.android.vending | grep -e "lastUpdateTime"
dumpsys package com.google.android.youtube | grep -e "lastUpdateTime"
[Android Software/Hacking General [Developers Only]] Bradford1040:
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 :)"
[Android Software/Hacking General [Developers Only]] hinxnz:
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
[Android Software/Hacking General [Developers Only]] Bradford1040:
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
[Android Software/Hacking General [Developers Only]] Bradford1040:
Yeah reflash fixed it (duh!) should of tried that right away, (hangs head in shame) lol
[Android Software/Hacking General [Developers Only]] hinxnz:
Thanks, yeah it must be when the playstore updates itself
[Android Software/Hacking General [Developers Only]] Bradford1040:
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
[Android Software/Hacking General [Developers Only]] hinxnz:
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
[Android Software/Hacking General [Developers Only]] Bradford1040:
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
[Android Software/Hacking General [Developers Only]] oldman20:
oh thank, so it working perfect until Google Play Store update itself? Then all we need is reflash detach3?
[Android Software/Hacking General [Developers Only]] Bradford1040:
That's what I have to do,, playstore itself only updated twice since I installed it, and both time I just went into magisk & install from the detach3.zip and back to working perfectly.

I can deal with that, lol
[Android Software/Hacking General [Developers Only]] kanehun:
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.
[Android Software/Hacking General [Developers Only]] danbest82:
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/".
[Android Software/Hacking General [Developers Only]] Falcon_X:
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?
[Android Software/Hacking General [Developers Only]] Falcon_X:
Sorry, double post (can be deleted)
[Android Software/Hacking General [Developers Only]] hinxnz:
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
[Android Software/Hacking General [Developers Only]] elmer_fudd:
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.
[Android Software/Hacking General [Developers Only]] hinxnz:
Have you enabled play protect?
[Android Software/Hacking General [Developers Only]] Bradford1040:
Just a side note, I've had no issues myself with play protect on! But that could be a fluke.

Also I'm using playstore beta
[Android Software/Hacking General [Developers Only]] elmer_fudd:
No, it's disabled.
[Android Software/Hacking General [Developers Only]] Daniel V.:
It works great with Magisk 22.0! Thanks to the developer!
[Android Software/Hacking General [Developers Only]] x1ld3n:
Hi. Any way to detach an app completely? It disappears from Store for 1-2 days then shows up again. Youtube (Vanced) for example.
[Android Software/Hacking General [Developers Only]] Bradford1040:
As far as I've witnessed it only needs to be reflashed after playstore updates itself.
[Android Software/Hacking General [Developers Only]] x1ld3n:
At that point I can simply go the the Store and re-disable the auto updates instead detaching the app. That's what I wanted to avoid, any manual intervention.
[Android Software/Hacking General [Developers Only]] Bradford1040:
What I meant was "playstore" update itself, not YouTube. Playstore does not update very often, there is going to be a little manual intervention. Humans oversee all automation in everyday things.

But I fully understand your question, maybe someone else has a better answer to your question, have a great day
[Android Software/Hacking General [Developers Only]] x1ld3n:
Looks like this app has solved my issue - https://xdaforums.com/t/app-tool-temefi-comprehensive-system-administration.3806260/
[Android Software/Hacking General [Developers Only]] hinxnz:
UPDATE: Detach3 v3.02

https://xdaforums.com/t/module-detach3-detach-market-links
[Android Software/Hacking General [Developers Only]] iPAQ 6515a User:
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?
[Android Software/Hacking General [Developers Only]] Bradford1040:
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
[Android Software/Hacking General [Developers Only]] Bradford1040:
@hinxnz

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