yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] marcsmv3:
I find that Detach works again after updating to OOS 9.0.7 but I still have to manually go to Termux and write out the line commands 'su' and then 'Detach -id' (had to manually add the youtube package name to Detach to get it to work properly). Can someone explain how I can have an app do that for me automatically every hour? I'm computer literate but not a programmer...
[Android Software/Hacking General [Developers Only]] hinxnz:
I agree too.. :good::cool:
[Android Software/Hacking General [Developers Only]] hinxnz:
So you not happy with the G play way now lol..

Just loop script as said earlier and add....

sleep 1h
[Android Software/Hacking General [Developers Only]] marcsmv3:
Sorry I'm not a programmer. How do I add this 'loop script'?
[Android Software/Hacking General [Developers Only]] hinxnz:
For example..

(while [ 1 ]; do
blah blah..
sleep 1h
done &)
[Android Software/Hacking General [Developers Only]] bober10113:
some users are very particular... a no brainer solution is refused while a request is made for a more technical way then it is deemed "too difficult"...lol wow

talk about the need for spoon feed...
[Android Software/Hacking General [Developers Only]] Mobilism_hub:
miui eu 10.3.4 stable - rooted - magisk 19.3

I did everything on the module description and it didn't work and didn't hide YouTube from Google play, and when I use termux and write "su -c detach -id" or "su" > "detach -id", it said command not found !
[Android Software/Hacking General [Developers Only]] marcsmv3:
he gave me a script that i have 0 idea how to utilize and contains garbage code. What app to put it into, how it is associated with Detach, what to replace the garbage code with, is all left up to the imagination -- of which I have none. I barely know how to operate with Termux I only learn as I go. I am not a command prompt user I am a GUI user.

If spoon fed means step by step instructions then yes I am a user who needs to be spoon fed. I only am able to root my phone because of the step by step guides provided. Yes I realize I am asking for an ad hoc solution but I'm not really being given more than basic guidance. 'Write a script, it should look something like this' doesn't help me. Not everyone is a programmer...

Thankfully the newest Detach has task scheduling built in via a number of different methods (under Detach -t). Went with DJS magisk module and setup was a cinch, set it to.run every hour, will report back to see if it actually works...

---------- Post added at 04:39 AM ---------- Previous post was at 04:02 AM ----------

After typing 'su' and hitting enter for the very first time were you prompted and did you approve superuser access?

I skip the '-c' in the command. Try capitalizing the D in Detach also. If you just type in 'Detach' without any following commands it should run its own test to verify that you have Busybox installed via Magisk module, and then it should spell out all available commands that the app can perform.
[Android Software/Hacking General [Developers Only]] bober10113:
lol just disable auto updates man . its not rocket science.
[Android Software/Hacking General [Developers Only]] bmasgone:
I have to write "su - c detach - id" every 30 minutes to 1 hour, or to automate it with - t and then 1 hour.

Is there any permanent solution or this is the only one to detach app from Play Store, so every 30 minutes to hour, we should write the command in terminal or automate it (but I don't know how this thing affects the battery life)..?
[Android Software/Hacking General [Developers Only]] sudanking:
Install the Daily Job Scheduler magisk module... Then run the following command in your terminal: su -c Detach -t

Then select djs option.
[Android Software/Hacking General [Developers Only]] DiamondJohn:
Sqlite3 binary source

Sorry for the slightly OT.

A new ROM I am using does not have sqlite3 binary built as part of the ROM (NB: 32bit). So I checked the Magisk Repo and found one for 64b Arm. My device is 32b. I replaced the sqlite3 binary in the 64b Magisk module with the one from the Magisk detach module, which has the same MD5 as the one in the detach script here. ie they are the same binaries.

I don't wish to step on anyone's toes, so is it OK to use the binary in your files? as i haven't seen any reference to the original builder/source anywhere, so would assume either you guys built it from the open sources, or its free/public domain to use without referencing of the source?
[Android Software/Hacking General [Developers Only]] mauro_cbc:
That's a way to avoid this issue, but it have some implications, in my case I disabled auto update only on YouTube, but others app don't update automatically anymore too...

Seams that they stuck waiting to YouTube to be updated... Or something else...
[Android Software/Hacking General [Developers Only]] bober10113:
its something else. id also have issues after tring to use many revisions of the detach module. also having used the detach switch in the vanced zip. all in all it screwed up something. i cleaned installed and just untick the auto update on youtube and all is working A1.
[Android Software/Hacking General [Developers Only]] xt7xda:
I'm unable to detach poweramp.

Getting error.

Please guide.
[Android Software/Hacking General [Developers Only]] saoudien07:
Hi, is it possible to flash through TWRP, the zip "Detach-v3" downloaded with Magisk? Or I should use Detach-v2.6?

I want to detach an app from PlayStore, while device is rooted with SuperUser.

Thx
[Android Software/Hacking General [Developers Only]] z170i:
The module can't seem to detach com.google.android.as?
[Android Software/Hacking General [Developers Only]] ziggynlp:
I'm getting this errors when trying to run command detach -id

Detach 3.1, Magisk 20.0, Android 10

Any ideas how to solve it? I tried reinstalling module already.

grep: /Detach/module.prop: No such file or directory

==Detach

Detach work in progress...
touch: '/Detach/instant_run.sh': No such file or directory
chmod: /Detach/instant_run.sh: No such file or directory
/system/bin/detach[875]: /Detach/sqlite: inaccessible or not found
/system/bin/detach[875]: can't create /Detach/instant_run.sh: No such file or directory
/system/bin/detach[875]: can't create /Detach/instant_run.sh: No such file or directory
/system/bin/detach[875]: can't create /Detach/instant_run.sh: No such file or directory
sed: /Detach/service.sh: No such file or directory
/system/bin/detach[875]: can't create /Detach/instant_run.sh: No such file or directory
touch: '/Detach/first_detach_result.txt': No such file or directory
chmod: /Detach/first_detach_result.txt: No such file or directory
/system/bin/detach[875]: can't create /Detach/first_detach_result.txt: No such file or directory
grep: /Detach/first_detach_result.txt: No such file or directory

Done

Instant file ready to be executed, path of the file:
/Detach/instant_run.sh
[Android Software/Hacking General [Developers Only]] xda_lemar:
The same on Detach 3.1 Magisk 20.0 Android 9.

Where can i find Detach 3.0 zip for magisk?
[Android Software/Hacking General [Developers Only]] ziggynlp:
I made 3.1 fixed zip for magisk 20.0 :o
[Android Software/Hacking General [Developers Only]] xda_lemar:
Thank You :)
[Android Software/Hacking General [Developers Only]] dt0807:
Thanks for this. I had similar issues with Magisk v20.0 and it fixed them

Hopefully, the module in the repo gets fixed :highfive:
[Android Software/Hacking General [Developers Only]] ValeV008:
I tried this module and it broke my busybox (or something). Copied detach.txt file, in it I uncommnented 'Youtube', installed module in Magisk. First it said there is no detach.txt in sdcard. I went to TWRP and flashed the zip file of this module there, it was successful. Rebooted, went into magisk installed modules, where no modules were shown - magisk was broken. So I reinstalled magisk and all the modules (except Detach ofcourse) and now it's working again.

At least Youtube is still detached though.

EDIT: I used magisk 20.0, android 6.0.1 MM, latest version of detach in magisk modules.
[Android Software/Hacking General [Developers Only]] oufouf84:
thanks its working with magisk 20.0, I put 10min to understand, detach.txt be named detach, otherwise in /scard/ it call him detach.txt.txt and module magisk not find him.

I have question, should I keep detach.txt in scard after installation or not?

edit:

I've updated, I use 'all update'" and don't have problems, it works perfectly youtube not to have updated and not display in the store.
[Android Software/Hacking General [Developers Only]] cocachris89:
I've tried flashing the zip in TWRP however it just stays at "Detach work in progress" stage. Am I missing something?
[Android Software/Hacking General [Developers Only]] TiTiB:
First time trying this and it works.

Thanks dev!

- Samsung Galaxy Tab S6 (SM-T860)

- Magisk 19.3

- Magisk Manager 7.3.4

- Riru - Core v19.5

- Riru - EdXposed v0.4.5.1_beta(4463) (YAHFA)

Youtube (Vanced), and leedroiddevelopments.volumepanelads (Volume Panel Free) detached.
[Android Software/Hacking General [Developers Only]] mxxt01:
Detached Youtube today with Magisk module. Works great!

Mi9 with xiaomi.eu 9.11.7 beta - Android 10/MIUI11. Magisk 20.1.
[Android Software/Hacking General [Developers Only]] gatlinnewhouse:
Daily job scheduler isn't working
[Android Software/Hacking General [Developers Only]] Rom:
As I see that there are still active users here (while the original MOD has not been updated for...very long):

All problems, bug reports, suggestions, etc... posted here are NOT taken into account.

If you are using my module, please refer to the official link: t.me / Detach _ gms_ apps (remove spaces)

You can also get the link from the Magisk Manager app.
[Android Software/Hacking General [Developers Only]] gatlinnewhouse:
I'm not joining telegram (seriously? Another messaging app, no thanks) . I'll submit a GitHub issue instead.
[Android Software/Hacking General [Developers Only]] TheUndertaker21:
Any tutorial on how to detach vanced?

I can't get it to work :(
[Android Software/Hacking General [Developers Only]] ZaneZam:
this tried already? https://xdaforums.com/showpost.php?p=79696738&postcount=695
[Android Software/Hacking General [Developers Only]] kenny.lam:
I have successful detached the utube vance by comment the script, but after hours It gets back, any permanent solution please?

I am using Aosp rom, latest magisk, Android 9
[Android Software/Hacking General [Developers Only]] Krlos Eduardo:
not working at all.
[Android Software/Hacking General [Developers Only]] marciozomb13:
Xposed +Sudo Hide.
[Android Software/Hacking General [Developers Only]] xda67:
Android 8.1, Magisk 20.1, Magisk Manager 7.4

After flashing the .zip file, Detach.txt become like this, is this normal?

I want to detach YT Vanced also.

.Detach Market Apps Configuration -

.Remove comment (#) to detach an App.

#Contact.
#Gmai.
#Google.p.
#Google.lu.
#Hangout.
#Phon.
#Photo.
YouTub.
#Gboar.
#Cloc.
#Camer.
#Inbo.
#Duo
#Dropbo.
#PushBulle.
#Calenda.
#Kee.
#Telegra.
#Swiftke.
#Translat.
#Faceboo.
#Pandor.
#Twitte.
#Slac.
#Meg.
#WhatsAp.
#Voic.
#Driv.
#Netfle.
#Pixel.aunche.
#Wallpaper.
#Captur.
#Google.onnectivit.Services
#Google..Services
#Google.la.Services
#Google.arrie.Services
[Android Software/Hacking General [Developers Only]] marciozomb13:
Normal. Apps without # will be detached.
[Android Software/Hacking General [Developers Only]] hinxnz:
Are you guys keen for an update?
[Android Software/Hacking General [Developers Only]] Timmmmaaahh!:
Apparently not, lol. But I'll take one! [emoji16]

Wrapped with delicious Fajita [emoji896]
[Android Software/Hacking General [Developers Only]] djdarkknight96:
It's against the rules to ask for updates.....lmao

I joke I joke keep those flames away! :angel:
[Android Software/Hacking General [Developers Only]] Wolfcity:
Thanks for that alternative, I just tried it out but it seems it doesn't work after a reboot and waiting 60 seconds. Maybe I'm doing something wrong.

I copied the script from GitHub and pasted it to

/data/adb/post-fs-data.d with a random name (ytv_detach.sh) and 755 permissions, also I created an empty file named enable_detach in /cache with the same permissions.

I have no other detach mods installed.

Anything else to do?

Magisk 18.1 (never change a running system)

Moto G5+ stock android 8.1

Edit:

Ok, I should have waited a bit longer than exactly 60 seconds before posting, now YT is detached.:)

Thanks!
[Android Software/Hacking General [Developers Only]] kenny.lam:
Actually Youtube Vance is quite not detached, It is just temporary removed in short time, after some hours this returns back to Play Store, and I have to reflash this module again and again, it is so annoy !!!! And there is no solution up to now :( (I dont want to use tasker or any app to make scheduling to flash the module)
[Android Software/Hacking General [Developers Only]] garylawwd:
You don't use tasker to flash anything. You use it to run the script every few mins. Completely done in the background without you even knowing.

If you use xposed/edxposed you can use sudohide module which is the only clear cut way to detach vanced
[Android Software/Hacking General [Developers Only]] ZaneZam:
:good: nice happy that it work for u too!

HINT1: u don't have to download the script if u use the magisk module it's already included. u just have to put the enable_detach file to /cache dir and reboot.

HINT2: u can overwrite a delay in seconds to whatever u want into that file. eg. i have 30 seconds and driving very well with it. i almost never see the yt update

and if then only for about 30 seconds *g*

yes yes yes there is no 100% solution, and it might be that we never get this. anyway the thing u can try is to DISABLE app-auto-update in playstore (yes that's mandatory to avoid forced updates!)

and then use the detach method and as mentioned above put a lower delay into the enable_detach file (like 30 secs or so). the only "disadvantage" is that u have to tab on "update apps" in playstore

once there are updates (which anyway is the better way in my opinion. i never used auto update since using android, but thats just me not liking beeing "forced benefitted" on any system i use)

maybe u can live with that? i can confirm non annoyingness with this method. :)
[Android Software/Hacking General [Developers Only]] DiamondJohn:
I havent used it myself, but those using the exposed method have been reporting it works 100%

My understanding is that you cannot use the "disable updates" and the detach. The "disable auto-updates" is stored in the database record that the detach script explicitly deletes. So as soon as the detach script runs, you loose you "disable auto-updates" setting, and it will be re-inserted with the default value of auto-updates enabled. Its kind of one or the other.
[Android Software/Hacking General [Developers Only]] marciozomb13:
Not true, at least for me, it always worked perfectly, and when occasionally I see YouTube reattached, it took only 3 minutes for the script to run and make it disappear again. And never updates itself too. Using "enable_detach method.
[Android Software/Hacking General [Developers Only]] DiamondJohn:
You missed the point. You "can" use both, however, the detach script will cancel out your "disable auto-update" selection. Next time you see YouTube back in your list of apps to be updated (ie it has to be there then disappear then re-appear), check the auto-update setting, you will see that it has switched auto-updates back on. The detach, cancels out your disabling of auto-update setting.

The detach deletes this record where it is stored, and when it gets re-inserted, it will be reinserted as on.
[Android Software/Hacking General [Developers Only]] quorn23:
Any teaser what you have planned? :)
[Android Software/Hacking General [Developers Only]] ZaneZam:
oooh i missed that.... looking forward to it! :fingers-crossed:

indeed u r right no no, no exceptions we should report him! :D

me too! :D

hey [MENTION=4841620]Timmmmaaahh[/MENTION] i report [MENTION=1909299]hinxnz[/MENTION] for teasing and not bringing the indirectly promised update, its been 3 days already!! :D

yeah for me too since some good amount of time, but i should have been more concrete: i have disabled auto update completely! i guess u have done that too?

yeah THAT can be the per-app auto-update setting gets lost after detaching.

but lets see with what [MENTION=1909299]hinxnz[/MENTION] comes up with...
[Android Software/Hacking General [Developers Only]] marciozomb13:
You are right. Disabled updates globally, i always read changelogs before update anything.

---------- Post added at 11:10 AM ---------- Previous post was at 11:05 AM ----------

I disable updates globally, never update apps without reading the changes.
[Android Software/Hacking General [Developers Only]] hinxnz:
Sorry guys, I actually still having hiccups right now after apps I detached, reattached after more time than expected.

I need more time, my bad. Almost like clockwork it takes two days for it to reset for me, so testing actually taking awhile, seems like forever because I cant replicate the event.

I also only have one device at the moment with root and no access to data while in recovery but not too much of an issue because that just installer side, I can figure that out.

Localappstate set to 2 on package name should disable auto update for that app if auto update enabled, the entry doesn't get overwritten as far as I know but will get reinserted if not located I presume.
[Android Software/Hacking General [Developers Only]] kevintm78:
I might be misunderstanding how your mod works, but I haven't been able to get the per app update settings to work for the last couple months using a stock 6.0.1 rom with pre-installed ğapps. I had always just installed vanced directly to the system and turned off auto update for Youtube only while the global settings were set to auto update. For the longest time that did the trick and it never got updated, but now, with that same setup, youtube will update several times a day. After the update I would check the settings and it would still be set to not auto update, but it's like that setting is just being ignored. The global setting still works so it's not a big deal to me but I wonder if that's affecting your results in some way.

Just to clarify, I haven't been using any detach scripts or mods and the only Magisk module I have is busybox. I don't think there's anything on my end that's triggering that auto update.
[Android Software/Hacking General [Developers Only]] Timmmmaaahh!:
Banned of course, we don't accept teasing :silly:

[MENTION=1909299]hinxnz[/MENTION] Thanks for your efforts nonetheless! Take as much time as you need (but don't keep [MENTION=3279788]ZaneZam[/MENTION] waiting too long, lol). I'm not sure what impact this may have or if it's even possible (what isn't possible on here?) but perhaps something can be hooked in boot so the desired apps can be detached every time upon every reboot. Or daily with some scheduler method. Just thinking out loud here :good:
[Android Software/Hacking General [Developers Only]] TotallyAnxious:
Could you train water bears to be xda users? They should be able to survive longer without an update or eta!

(Didn't know we have South Park resident as a forum moderator until now)
[Android Software/Hacking General [Developers Only]] Tirofog:
Delete
[Android Software/Hacking General [Developers Only]] dviree:
Can anyone update the auto detach apk ?
[Android Software/Hacking General [Developers Only]] dimm0k:
This is happening to me too! My Detach.txt is getting modified in the same exact way when I flash the module to apply changes! Notice the modifications to the original default entries with truncation and insertion of ".", which does not seem to happen to the manual entries I've entered. any ideas why this is happening?
[Android Software/Hacking General [Developers Only]] lottarake:
Module works great temporarily for me, seems to last around 8 hours or so before the Play Store will unhide YouTube in the update list. Detach.txt is unaltered as well, not quite sure why it's reappearing.
[Android Software/Hacking General [Developers Only]] jaggillararla:
Do you get the same error as I ?

This happens on all phones
[Android Software/Hacking General [Developers Only]] kurtschmeichel:
Same here. The Detach script works fine, but has to be repeated once or twice a day.

I'll have to take a look at how to make this a cron task.
[Android Software/Hacking General [Developers Only]] Wolfcity:
This works like a charm for me on different devices with several magisk versions:

https://xdaforums.com/android/softw...-links-theme-ready-apps-t3447494/post79696738
[Android Software/Hacking General [Developers Only]] DiamondJohn:
I wouldn't worry spending too much time on setting up a cron job.

I have modified my vendor dB such that it is impossible for the records that are inserted to ever be present in the database table (ie the ones the detach script deletes). However, it will still appear randomly after some time in the list of apps to be updated; even though its definitely not in the database.

But, maybe the killing of finsky will alleviate matters.:confused:

For me, if it appears, I simply kill the play store and re-open it, and it isn't there the second time, so I can do a bulk app update if need be. Maybe killing the playstore if its a background task, would do the above automatically for me.
[Android Software/Hacking General [Developers Only]] hinxnz:
The only way at the moment in my mind, besides installing edxposed and sudohide module is to disable auto app update for your app and set an app or service etc to run script when you open playstore. I do come back to this time to time and try further it but the devs have basically narrowed it down to not let this happen anymore, sorry guys.
[Android Software/Hacking General [Developers Only]] DiamondJohn:
Actually, more and more, if there is more than just YouTube in the list, even when it does randomly appear on the list, I press the "Update All" and then quickly press the cancel on Youtube, thus allowing the rest of the apps to update in bulk. This helps out well if there a number of apps in the list to be updated.
[Android Software/Hacking General [Developers Only]] rodken:
I haven't implemented your script as of yet on, but it looks promising and more reliable than the actual Magisk Module. Seems like I need see if I can do a few changes within the script to see if I can utilize this script with other apps.
[Android Software/Hacking General [Developers Only]] thecoolkid:
The module doesn't work on Canary build of magisk
[Android Software/Hacking General [Developers Only]] garylawwd:
Sounds more like an issue with magisk and not this module
[Android Software/Hacking General [Developers Only]] thecoolkid:
I don't think so. It installs fine, but when I run su -c detach -t from terminal it says magisk version not supported, so it's a check built into this script, not magisk fault.
[Android Software/Hacking General [Developers Only]] takobaba:
I am getting unsupported magisk version
[Android Software/Hacking General [Developers Only]] sekk:
to resume, is this mod still working nowadays? I intend to use on oneplus 7 android 10, but don't want to try if it's not working properly
[Android Software/Hacking General [Developers Only]] DiamondJohn:
Out of interest, may I ask which apps you are trying to detach?

And also, which version of Android you are running
[Android Software/Hacking General [Developers Only]] sekk:
Youtube Vanced, since the new way to install it got a little more complicated, I guessed the old detach file wouldn't work
[Android Software/Hacking General [Developers Only]] dimm0k:
FFS!! really?
[Android Software/Hacking General [Developers Only]] sekk:
ffs?
[Android Software/Hacking General [Developers Only]] wavedashdoc:
On Magisk 20.4. The detach file and command "su -c detach -id" are no longer detaching apps from the Play Store. Was working fine until about 2 days ago when it stopped working out of the blue. Even remade the detach file after it corrupted itself. I wonder if Google patched this work around.