yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] gonsa:
Summing up:

- Placed the file detach.custom.txt on the / of the Internal Memory (without the # on Youtube)

- Flashed Busybox for Android NDK from Magisk repos

- Flashed Detach v2.6.4

- Reboot

Still getting Youtube update showing up in the Playstore..
[Android Software/Hacking General [Developers Only]] garylawwd:
im presuming you are using YouTube Vanced.

you dont need the detach module for vanced. it's built into YouTube vanced newer versions now, all you need to do is place an empty file named "enable_detach" into the cache folder in the root directory of your device like in the screenshot
[Android Software/Hacking General [Developers Only]] akeshma:
you are right :good:
[Android Software/Hacking General [Developers Only]] gonsa:
thank you so much!
[Android Software/Hacking General [Developers Only]] Rom:
Can you common on the tg group please ? MODERATOR NOTICE: LINK DELETED

Per the forum rules, posting social media invites is not allowed.

I would liketo check some things with u.

And finaly YT is detached from the PS for you ?

It's not exactly, i made a compatibility for iYTBP module.

If you install my magisk module, my one will automaticaly make all tasks to hide Youtube app in the PS.
[Android Software/Hacking General [Developers Only]] toolhas4degrees:
Is there any chance someone could just make a zip for just Facebook and Facebook messenger?

I don't want to detach Google or anything else besides those 2 apps
[Android Software/Hacking General [Developers Only]] Rom:
If you use Magisk, You can use the detach.txt file, uncomment Facebook in it and put it in your /sdcard folder.

About Messenger, you have to use the detach.custom file, write 'com.facebook.orca' (delete ' symbols), and put this file in your /sdcard folder.

Finaly as i said if you use Magisk, u could flash my module (t. me / joinchat / ElFVDxJDgCkDt5Zr_qblGQ (remove spaces)) :good:
[Android Software/Hacking General [Developers Only]] wodgey:
I'm getting daily automatic updates from play store for YouTube vanced. So annoying as I have to tribe the update and then reapply all my preferences.

I've got detach.txt on root of internal storage (should I also have in root of external affairs also?)

I've got enable_detach placed in /cache.

I'm using the latest vanced (I think from December) and detach 2.6.5 from a few days ago, in magisk.

Please help. How do I stop these updates from happening? Is my only option to set YouTube as a common user app rather than system?
[Android Software/Hacking General [Developers Only]] ZaneZam:
u actually don't need to use any additional detach module as the vanced one has a detach function included already which does apply every 180 sec per default so it should catch (almost)

all re-attachments. u did already enable it with "enable_detach" file but u still need to disable auto update otherwise u will for sure get auto updated as google play services do re-attach things

after some time (which we can't fix atm!) and then updates apps without asking u. so this is kinda essential anyway.
[Android Software/Hacking General [Developers Only]] wodgey:
Yeah disabled auto already. I've just had it auto update again though. Infuriatingly.

I'm going to convert it to user app and see if that does the trick
[Android Software/Hacking General [Developers Only]] surya_27895:
I have simillar issues too, but everything solved after added enable_detach and noloop_detach, i dont know what exactly happend
[Android Software/Hacking General [Developers Only]] wodgey:
I've just added noloop_detach. Hadn't seen that instruction before.

Couldn't convert app to user app so was going to uninstall and install non root variant.

I'll wait to see if this resolves it first
[Android Software/Hacking General [Developers Only]] wodgey:
Ok that's 3 times in less than 24 hours.

When I awoke this morning vanced had auto updated. Again at lunchtime and has just done it again, since I posted my reply about an hour ago.

Do I need to do anything special, like perform a reboot after downgrading? Sing "God save the Queen" whist hopping on one leg?
[Android Software/Hacking General [Developers Only]] surya_27895:
This my step, add enable_detach and noloop_detach > downgrade for sure > uncheck the youtube auto update on playstore > then reboot

Thats all, if still not work for you, im sorry i dont know anymore how to solve it.

In my case, youtube app still listed on PS after all step but not update automaticly now, just avoid update all button, for another app it still auto update except youtube
[Android Software/Hacking General [Developers Only]] wodgey:
Yeah, this is already the case. This is exactly how I have my phone already. Thanks anyway for your input.

If this doesn't work then I'll go with the non root variant
[Android Software/Hacking General [Developers Only]] wodgey:
No automatic update so far. Stay on target, stay on target

Edit. Still no automatic updates. Yay!
[Android Software/Hacking General [Developers Only]] th1nd:
How did you manage to do that? PS is still showing an update to stock YT even after creating empty enable_detach and noloop_detach files in /cache/. Also, I've already restarted twice, first after removing the "#YouTube" comment from the detach.txt file (that's provided in the module's descr.) and second after creating the aforementioned files. Still the effect is null. It's really infuriating!!!!!! ?
[Android Software/Hacking General [Developers Only]] surya_27895:
like i mentioned before, it will still listed on PS, but its all not a problem if the automatic update not run for the youtube apps, and avoid the update all button
[Android Software/Hacking General [Developers Only]] th1nd:
No that's not really a user-friendly approach. Cuz I almost never intend to do it manually, all updates are automatically executed silently in b/g as I've previously turned on auto updates over any network. So this will be frustrating to everytime omit the YT app and then manually update rest of the apps.
[Android Software/Hacking General [Developers Only]] surya_27895:
my auto updates work perfectly and excepting the youtube apps, i never update another apps manually,

just wait untill your ps update another apps automaticly, if you can't be patient manual update is a solution
[Android Software/Hacking General [Developers Only]] th1nd:
As I've implied earlier, it's not about patience, it's just the question of having a rugged, substantial solution.
[Android Software/Hacking General [Developers Only]] wodgey:
It's still showing as having an update available but it's not updated on its own yet.
[Android Software/Hacking General [Developers Only]] th1nd:
Hey everyone please try this very convincing method to check if the stock YT disappears from PS forever. I'm trying this now. https://android.gadgethacks.com/how...dating-play-store-no-computer-needed-0184063/
[Android Software/Hacking General [Developers Only]] wodgey:
That's interesting. I'll try to find the time to test it but it all makes sense.
[Android Software/Hacking General [Developers Only]] surya_27895:
hmm, im not recommended it since youtube is a system apps, it will break the system.

last time i try something like that, i need flashing my phone.

it not worth it at all.
[Android Software/Hacking General [Developers Only]] sunanulh:
Yes. I did it three times and still doesn't work.
[Android Software/Hacking General [Developers Only]] hinxnz:
Have a look if they're included in 99-detach.sh
[Android Software/Hacking General [Developers Only]] sunanulh:
There's no 99-detach.sh in etc/init.d

Edit: I found 99-detach.sh in /su.d and yes, they're included in it
[Android Software/Hacking General [Developers Only]] hinxnz:
Try wiping data for playstore and then reboot.
[Android Software/Hacking General [Developers Only]] sunanulh:
I moved 99-detach.sh to /etc/init.d, set the permission, and execute it in terminal and now it works! Thanks
[Android Software/Hacking General [Developers Only]] rony raj:
what the code for terminal to execute
[Android Software/Hacking General [Developers Only]] hinxnz:
You can call the detach script by entering:

su
/system/su.d/99-detach.sh

or

su
/system/etc/init.d/99-detach.sh
[Android Software/Hacking General [Developers Only]] return.of.octobot:
What about Play Store itself?

So this is a great initiative, and certainly goes a long way to help keep my OCD in check and avoid a headache when it comes to keeping my theme-ready installations in check. Is it possible, using this or similar method, to prevent Play Store itself from updating? I find this to be the biggest headache of all to deal with, considering that Google doesn't let you have any say in the matter and auto-updates Play Store on boot if an older version is detected without asking for consent. The only way to prevent it is to anticipate this and quickly tap cancel when the update download notification appears, and no matter how vigilant you are, it always slips through the cracks and updates itself eventually.
[Android Software/Hacking General [Developers Only]] RED ZMAN:
This will keep the play store from updating.
[Android Software/Hacking General [Developers Only]] Namoi:
If it is question (question mark where are you?) the answer is AFAIK no, and it won't prevent google play service to update itself either.
[Android Software/Hacking General [Developers Only]] RED ZMAN:
I was answering the guy above me, but kept mine from updating. Google Play services updates automatically.
[Android Software/Hacking General [Developers Only]] sunanulh:
Can you please add "wallpapers" to the list?

I'm using purenexus 7.1.1 and sometimes the updates still there. Rebooting phone can fix it?
[Android Software/Hacking General [Developers Only]] hinxnz:
Do you mean Google Wallpapers? I could add it but I'm curious to why?

Reboot should do the trick, did you flash mod while doing a clean install? Updates for the apps you selected shouldn't show at all in the my apps section unless you remove mod or wipe data for play store.
[Android Software/Hacking General [Developers Only]] sunanulh:
Yes, google wallpapers

Yup, reboots do the trick. I flashed it after setting up the phone.

I don't know why but it seems it's working fine now.
[Android Software/Hacking General [Developers Only]] JaylanPHNX:
[MENTION=1909299]hinxnz[/MENTION], I'm having an issue where certain detached apps keep randomly showing back up in the Play Store and updating. I'll remove the script with the detach.remove, clear play store data, re-add the mod so that everything is working as it should, and then later in the week or the next week, bam, updated Gmail, or Photos, or YouTube. I don't know if it's due to something in 7.1.1, or maybe the way I'm updating my ROM (I usually just reflash everything instead of relying on backup scripts).
[Android Software/Hacking General [Developers Only]] hinxnz:
Just had a look and it's related to the new playstore app, I'll fix it in next update.
[Android Software/Hacking General [Developers Only]] JaylanPHNX:
Thanks.
[Android Software/Hacking General [Developers Only]] RED ZMAN:
Okay, not just me, I thought I was going crazy as my detached apps kept popping back up.

[MENTION=1909299]hinxnz[/MENTION]

Could I add something like the GoPro app to this list too? The latest updates require you to create an account and log in, and I'll be damned if I want any of that. Who wants to have to try to get signal on vacation to do something like that?
[Android Software/Hacking General [Developers Only]] hinxnz:
Yeah sure I could add that, do you mean app in link below?

https://play.google.com/store/apps/details?id=com.gopro.smarty

So extra apps I'll add so far are Wallpapers, Pixel Launcher and Capture (GoPro).

Also I'll make it Magisk compatible, fix the reappearing apps and the init.d script not applying if ROM supports it.
[Android Software/Hacking General [Developers Only]] RED ZMAN:
I appreciate it but you adding that to the list might screw it up for other people that don't want it detached. I was just asking if I could use the same method to keep that one detached with the text file. I haven't tried that yet but I figured it might work.
[Android Software/Hacking General [Developers Only]] th1nd:
That's the reason I haven't tried it yet. Please please help me and others get a rock-solid solution.
[Android Software/Hacking General [Developers Only]] surya_27895:
the only way i've thinked about is,

flashing a new rom without the google play service, something "like" chinese rom or stock rom and install opengapps with micro package or less and then install the YT with twrp or magisk module.

the other is, if you find the way to uninstall completely the all google service without flashing it, and after that install opengapps and the YT.

it's just my theory, i haven't try it yet, all step above is very risky, but if you want me to decide, I will choose the first one, coz the second one is very very wasting time to face the error.
[Android Software/Hacking General [Developers Only]] th1nd:
That seems stupid but no offense.
[Android Software/Hacking General [Developers Only]] surya_27895:
yeah, i know,

but maybe that the only way to get clean YTVanced without error or problem,

so far there is no solution to get YTVanced without update issue in root ver,

and the YTVanced non root need microG if want to login.

also if remove completely the stock YT will break the system.

thats all, what we need is just a "compromise".
[Android Software/Hacking General [Developers Only]] th1nd:
There was this single reason to choose root over non-root: I didn't get any notifications on the non root ver.
[Android Software/Hacking General [Developers Only]] surya_27895:
thats weird, last time i try the non root, i get multiple notification, from the stock and YTV.

maybe something wrong with the microG?

=============================================================================

I think i found the solution but it might affecting the peformance.

The default loop for enable_detach is 3 minutes!! that enough to make youtube update, now im try changing that loop time to every 30 sec!!!

wish me luck, i will report the progress later.

if you want try it yoursef you can add enable_detach like usual then edit the file and add value in second like 30, 60 up to you, then save> reboot, done
[Android Software/Hacking General [Developers Only]] wodgey:
M'eh it's not a crucial app though.
[Android Software/Hacking General [Developers Only]] surya_27895:
Yeah but i had error on my system after remove the app and can't recover it altough installed the app again or use non-root ver

My error is, it causing shuttering lag and won't play normally, no way to solve it so i decide to flash,

That the only choice.
[Android Software/Hacking General [Developers Only]] B2Pi:
How can the script be run manually now? I need to figure out why this isn't working for Wheresmydroid (com.alienmanfc6.wheresmyandroid), and the earlier locations that I can find are no longer accurate (/magisk/..., etc)
[Android Software/Hacking General [Developers Only]] ZaneZam:
there never was a real solution only shaky hacks. they worked till G did change stuff in the play services. there is no newer hack yet so

we have to live with that.

for that notification problem exists a workaround, search in the vanced thread for it. u have to install some older vanced version then update from there to newest.

yes indeed as G did change something in the api and microg didn't get updated since ages. so further issues expected in the future, till someone maintains microg again and fixes stuff again.

and yah u can shorten the default of 3 mins for the check interval but i doubt u get a performance influence, it would be more a "keep the phone more awake issue" which then can affect the

energy consumption. even tho that i didn't try with 30 secs during testing i don't expect that it has a much bigger influence with such an interval.
[Android Software/Hacking General [Developers Only]] joluke:
Guys I'm loving this module. Is there a way to put the Detach script in Tasker to detach every hour?
[Android Software/Hacking General [Developers Only]] marcdw:
Search. Tasker. First.

Moto G5S Plus XT1806, MSM-Xtended v2.5 ROM, MultiROM, XDA Legacy
[Android Software/Hacking General [Developers Only]] joluke:
Found it:

https://xdaforums.com/showpost.php?p=78168774&postcount=498

Thank you very much :D
[Android Software/Hacking General [Developers Only]] badflife:
Wenn using the su Detach command i get an error.

Using Magisk 18.1 and Detach zip 2.6.5.
[Android Software/Hacking General [Developers Only]] Isma_OMG:
Hi. It's a really great work, but I have a problem. After install the module, my wifi connection doesn't work. I don't know the reason. I just deactivated the module and it works again.

If can help, I've got a Huawei P8lite with Persona78 stock based ROM and latest magisk. If need any other details, just tell me.

Sorry if I made any mistake, my English is not very good, I know XD.

I'll activate it again and get logcat, I hope I can find the problem
[Android Software/Hacking General [Developers Only]] juda iskariotsky:
I cannot flash the module anymore, magisk says syntax error on line 186 and TWRP says error 2.

DAFUQ is wrong with my phone?
[Android Software/Hacking General [Developers Only]] Isma_OMG:
Prrobably you already did it, but, sounds like the file is corrupt, just delete it from de download section and download it again.., then try to flash it.
[Android Software/Hacking General [Developers Only]] marcdw:
Provide more info. What else does it show on screen besides Error 2. Are you using the same Magisk as before or did you update (Magisk 19 uses new templates which modules need to be updated for).

You can generate a recovery.log via TWRP's Advanced menu and have a look see at why it errors. As mentioned it could also be a bad download, too.

ZTE Axon 7 A2017U, AospExtended v4.6 ROM, Radioactive v2.4 Kernel, microG (NoGapps), Multiboot, XDA Legacy
[Android Software/Hacking General [Developers Only]] joluke:
The error Detach 2.6.5 shows is this:

Something was changed in the zip file because I've been using it for the past 2 months without a single issue when flashing and starting from the past week (because i had to re-download the zip) I can't flash it on magisk 18.1.

I didn't format my phone or anything. Can't flash the module
[Android Software/Hacking General [Developers Only]] bober10113:
i cant flash 2.6.5 either

it fails right after mounting system and vendor.

So i check the error log and lie 186 has double && && , so i removed one set of '&&' and its working.

heres the modded install.sh within updated zip for anyone that wants to use it:

https://1drv.ms/f/s!AhXVLDDj8g3AgfF_foOqxHWwjitN_A

flash at your own risk.
[Android Software/Hacking General [Developers Only]] joluke:
Working flawlessly! I think you did update it but forgot to bump the version from 2.6.5 to 2.6.6 and made some changes!

Its working now for me! 2.6.5.1 working normally :D

Edit:

And again you forgot to edit the zip and it shows 2.6.5 instead of 2.6.5.1, which might induce people in mistake!

Can you please fix the zip that you posted? The 2.6.5.1 with the correct version number? :)
[Android Software/Hacking General [Developers Only]] bober10113:
i just tested it with YouTube and i still see youtube as having an update in the playstore. so mayne it is not fixed after all.

can you confirm if detach actually works?
[Android Software/Hacking General [Developers Only]] giants8058:
After removing the extra && characters and getting it installed, it still doesn't detach even after running the shell commands. It actually never really permanently detached any app for me, but I always try when new versions are released hoping it would eventually work. It used to work for a couple hours or so, but the newest version doesn't detach at all.
[Android Software/Hacking General [Developers Only]] joluke:
2.6.5.1 isn't detaching any app from play google!
[Android Software/Hacking General [Developers Only]] bober10113:
oh well... guest we need to wait for dev to figure it out
[Android Software/Hacking General [Developers Only]] joluke:
Weirdly it does detach snapchat because i added the package name to: detach.custom.txt

And its detached. Youtube isn't. Going to try adding the youtube name package and see if it works and i'll update this post with the answer.

Edit:

My steps to test are:

Remove the module, reboot once to system.

modify detach.txt and add "#" to Youtube so it stays like: #Youtube

Modify detach.custom.txt and add the following package name: com.google.android.youtube

Reboot into, recovery, reflash 2.6.5.1 and reboot into System and try it on Terminal with:

su

Detach

Press "d" and Enter

And i'll post the result! One minute

Edit2:

Didn't work at all and it doesn't detach snapchat after all lol

we'll have to wait until OP comes by
[Android Software/Hacking General [Developers Only]] bober10113:
lol thanks for trying tho!
[Android Software/Hacking General [Developers Only]] bober10113:
so i manged to get it working. but i cant replicate. i deleted a few things to start fresh and now i cant get it to work...
[Android Software/Hacking General [Developers Only]] joluke:
Damn it. :(
[Android Software/Hacking General [Developers Only]] bober10113:
ok so flash detach2.6 from OP

its the only package that creates the 99-detach script in etc/init.d

once its created it will work.
[Android Software/Hacking General [Developers Only]] bober10113:
so its blocking youtube!
[Android Software/Hacking General [Developers Only]] marcdw:
That's the one I use on my (old) daily driver. Items have been detached for almost two years now (using versions up to 2.6). That one indeed works, as long as init.d is supported/working.

Essential PH-1, /e/ 0.5-n ROM, microG (NoGapps), XDA Legacy
[Android Software/Hacking General [Developers Only]] appman1234:
Try the latest version 2.7 from Magisk today but no script created in init.d and hence not working.

Switched back to v2.6 and ok!
[Android Software/Hacking General [Developers Only]] ZaneZam:
just to de-confuse "enable_detach" and detach.log indicates that u are using the detach method which is included in the vanced module(s)

so u seem to use both a detach script in init process AND bundled vanced detachment which is done by post-fs handling of magisk and not by 99-detach script.

so i would suggest to remove one of the detach methods just to avoid side effects. one good thing tho is that your situation reminds me of putting

in checks into magisk vanced detachment method so that this can't happen anymore (as we talked about here already :) )

will address that in upcoming versions.
[Android Software/Hacking General [Developers Only]] bober10113:
yeah they are residue of the included detach in vanced, which dosent work btw
[Android Software/Hacking General [Developers Only]] ZaneZam:
eh now i'm confused :)

sry but then why u showed this residue off topic information? the logs have nothing to do with the provided detach magisk module/scripts in this thread

beside of that i'm using a similar but still based of method of detach in a loop it's actually 2 pair of shoes. anyway may i ask why u think it doesn't work with vanced bundled ?

because u still see update notification from time to time (it should be about once a week or after every boot) or because the log shows "NOT FOUND"?

both is normal as stated. It does work very well here on multiple devices and different roms (OOS9x and LOS14/15/16) I'm always eager for reports and feedback if it still

doesn't work for others so maybe u can give again some more info (better via pn as its off topic ;) ). on the other hand if u r happy with your current setup and it's

working i'm totally fine with it. just snatching for infos to improve stuff ;)
[Android Software/Hacking General [Developers Only]] bober10113:
your telling me that the detach.log is not generated by the 99-detach script?
[Android Software/Hacking General [Developers Only]] ZaneZam:
exactly :)

EDIT: its coming from this https://github.com/Magisk-Modules-Repo/iYTBP-Vanced-Magisk-Repo/blob/master/common/post-fs-data.sh

which is bundled into vanced magisk module