yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] hurray:
Sorry for the late reply! I have 2 states now:

- on my Oneplus 3 (under FreedomOS 3.x, which based on OxygenOS, Android 7.1.1) it works now. Maybe there was a parallel installation of the Playstore during my first try. It's hard to see if the Playstore is being updated in the background and there is the need to flash Detach again.

- on my Galaxy TabS 2 (Lineage OS 14.1, Android 7.1.2) it won't work even after multiple tries.

I used the same config files on both devices. I used a "detach.custom" with "com.quoord.tapatalkxdapre.activity" in it to prevent auto updates. The original "detach.txt" is in the sdcard root folder also but every entry is commented out with "#".

The script under "/sbin/.core/img/Detach/post-fs-data.sh" is being build correctly. Here is the important part:

"# Custom Packages

./sqlite $PLAY_DB_DIR/library.db "UPDATE ownership SET library_id = 'u-wl' where doc_id = 'com.quoord.tapatalkxdapre.activity'";"

I don't have logs. Flashing Detach works very well but on my TabS 2 Talpatalk will be always in the list of apps where an update is available.

But it's no problem for me as it works on my primary device.

Thank you for your modifications! :)
[Android Software/Hacking General [Developers Only]] Rom:
Np for the delay.

About the play store update(s) in background, it cannot be in "war" with the script, because the play store is setup to updating itself when the phone isn't used from a certain amont of time, so itsn't make any conflict with the system-less script who's started at each phone's startup.

Personally, I only use one of the two solutions proposed each time, so:

=> If i just want to detach one or more apps already included in the "detach.txt", i use this method.

=> If i want to detach one or more apps not included in the "detach.txt", i use the "detach.custom" method.

=> If i want to detach one or more apps already included in the "detach.txt" and another packages names, i write all desired packages names directly into the "detach.custom" file because shell is'nt perfect programmation language, the shell condition isn't writed in it, i saw that when i updated the shell for Magisk new versions, i was focused on the update and not the improvement in the first time.

It's an good sqlite command :cowboy::good:

Send here all files located in: "/system/addon.d/" please, maybe that some residues of file(s)/stuff are there.

Np, enjoy it :o
[Android Software/Hacking General [Developers Only]] hurray:
I have compared the files in /system/addon.d:

There are on both devices the same with one difference: on my TabS 2 there was a file named "blacklist" with 4 entries which looks like an md5 or other hash:

80f99c594f7b82c4cbe533e3f5447729

29f4bab6bae5959458678869350dc888

77d73f73da664f3592e712b7e7c107c1

a5019b358023a3a6ae8be3f3380ba5ca

I moved the file away from the folder, uninstalled and reinstalled Detach again but this doesn't change the behaviour. Tapatalk is still shown as updatable.

The other files in /system/addon.d/ are only "50-cm.sh", "70-gapps.sh" and "99-magisk.sh".

I don't know what is the origin of the "blacklist"-file but it seems that it has nothing to do with Detach.
[Android Software/Hacking General [Developers Only]] TotallyAnxious:
[MENTION=5332893]Rom[/MENTION] just wanted to say the first test you posted has been fantastic for me. With the one in the OP I would occasionally have to reapply the zip to get YouTube detached. Since using your first test I haven't had YouTube "reattach" itself. Even after cache clearing and such (usually what caused it to reattch). HTC 10 nougat with magisk 16.
[Android Software/Hacking General [Developers Only]] Rom:
I'm glad that my modded stuff has worked fine for u:good:

Hello,

Effectivly theses files aren't related to Detach scripts.

"50-cm.sh" is related to an cyanogen backup script.

"70-gapps.sh" is related to your Gapps installation.

"99-magisk.sh" is an part of Magisk survival script.

Are you absolutly sure about the package name of tapatalk ?

I ask that because you said that is "'com.quoord.tapatalkxdapre.activity", to be honest with your, it looks like pretty strange, it doesn't look like other package names, but after verification (https://play.google.com/store/apps/details?id=com.quoord.tapatalkHD) the app package name doesn't match.

Can you confirm that this is the application i have indicated?
[Android Software/Hacking General [Developers Only]] marcdw:
My old Tapatalk 4.9.5's name is "com.quoord.tapatalkpro.activity".

I have that in the custom file. When detach is working Tapatalk doesn't show up. Though I may have to re-verify on the ROM where detach is working.

When my Tapatalk was temporarily not connecting I installed the old XDA Premium / XDA Legacy app for testing (based on Tapatalk v4.x I believe). That one is "'com.quoord.tapatalkxdapre.activity".

EDIT: Reflashed Detach 2.6 on this ROM. Tapatalk is detached and not showing. So the first name I mentioned is the correct one I guess.

Regarding that blacklist file, I've seen that. It's included with some ROMs(?) it seems though I never bothered to find out what it was for.

LG G3 D851, PAC-MAN LP ROM, MultiROM, Tapatalk 4.9.5
[Android Software/Hacking General [Developers Only]] edzamber:
[MENTION=1909299]hinxnz[/MENTION]

Magisk v16.3 change Magisk img location.

So script need to be updated

Change

MAGIMG=/data/magisk.img

To

MAGIMG=/data/adb/magisk.img

:cool:
[Android Software/Hacking General [Developers Only]] Rom:
It's too bad, just for one more file in the path ^^

As you have written the precise change to be made, i suppose you have already seen exactly where it is necessary to do it.

I hope that @hinxnz will update by the time this stable channel change is passed by topjhonwu.
[Android Software/Hacking General [Developers Only]] edzamber:
You can easilly do it by yourself... Open script file with notepad++ and modify line.
[Android Software/Hacking General [Developers Only]] Rom:
Don't worry, i know how to make that change, and I didn't actually just do that, i will make necessary changes when the time will be coming.

Yours very much.
[Android Software/Hacking General [Developers Only]] Timmmmaaahh!:
Hi! I've edited the script file and tried detaching Vanced YouTube (same package name as official YT), which has worked for me in the past but fails to do so now. YouTube still appears in the Play Store.

TWRP log attached.
[Android Software/Hacking General [Developers Only]] edzamber:
Try this, i have modify script about sqlite binary location

Let me know...

https://www.mediafire.com/download/pbsa15uf7a011qc
[Android Software/Hacking General [Developers Only]] Timmmmaaahh!:
Immediately after boot YT was still present under 'Updates pending' in 'My apps & games' so I force closed Play Store and gave it a few minutes, then started it again and it looks like the detach is successful! When navigating to YT in the store I see an 'Update' and an 'Open' button but it's not in my 'Installed' list anymore. Thanks! Now I have to give it some time to see if auto update still works for other apps...
[Android Software/Hacking General [Developers Only]] edzamber:
Great !

Yes sorry, i forget to tell you that Force close Playstore is needed after flash. No need to wait few minutes to run it again.

All others app's auto update will working. It detach only YouTube :)

Here is my Attach patch if you want to attach back YouTube. Same thing, you will need to Force close Playstore to see YouTube again in installed apps and got updates.

https://www.mediafire.com/download/b0565bmc6c9qfyc
[Android Software/Hacking General [Developers Only]] edzamber:
Detach v2.6 updated to working with Magisk v16.3 and higher aviable :)

https://www.mediafire.com/download/cryhbf4b35om2dx
[Android Software/Hacking General [Developers Only]] Timmmmaaahh!:
Hi! Sorry for taking so long to follow up on this. Detaching does most definitely break auto updates for me. In a week time not a single update came through, even though I was connected to Wi-Fi and started Play Store manually often. Only a tap of the 'Update All' button initiated the updates. It's not a big deal, really, just figured I should mention it. I've now clean flashed another ROM and will just disable updates for YT in the Store.

If there's anything I can try to aid development on this, I remain at your disposal.
[Android Software/Hacking General [Developers Only]] sjamie:
Does your Play Store show certified, uncertified or nothing in Settings > Device Certification? I've found auto-updates work if my Play Store shows Certified. This detach Mod works perfectly for me in every way!
[Android Software/Hacking General [Developers Only]] Nidai Sennin:
Thanks man, worked perfect!
[Android Software/Hacking General [Developers Only]] Hirs_E_Fruit:
Unfortunately it doesn't work for me, YouTube still appears in play store.

Any help?
[Android Software/Hacking General [Developers Only]] edzamber:
Hi

Did hou force close playstore after flash ?

For Detach YouTube only you need to flash this

https://www.mediafire.com/download/pbsa15uf7a011qc

Not Detach v2.6
[Android Software/Hacking General [Developers Only]] Hirs_E_Fruit:
So i flash this in TWRP, reboot and then force close playstore and it should work?
[Android Software/Hacking General [Developers Only]] edzamber:
Yes it should...
[Android Software/Hacking General [Developers Only]] Darkoholic:
Thanks ?
[Android Software/Hacking General [Developers Only]] pkWhistle:
Tried the above but doesn't work unfortunately after installing new YouTube Vanced update :(
[Android Software/Hacking General [Developers Only]] zadox:
This used to work with Vanced Yourube 13.12.60 in Oreo 8.0 (Samsung Galaxy Note 8 on Dr Ketan's ROM and Magisk 16.3) until I lost Vanced after a reboot. I uninstalled YouTube, flashed back Vanced in TWRP but today YouTube shows up on Play Store. Flashing this Detach v2.6 again in TWRP didn't help :(

I tried this as well, YouTube still shows in Play Store :(
[Android Software/Hacking General [Developers Only]] pkWhistle:
The other alternative, as I'm sure has been mentioned is SudoHide, an xposed module which can hide any app from any app by ticking checkboxes.
[Android Software/Hacking General [Developers Only]] zadox:
Thanks for the alternative [MENTION=5947784]pkWhistle[/MENTION], I will consider it as it sounds interesting.

Anyway, things have sorted out themselves and Youtube is now not showing in Google Play (thanks [MENTION=4507636]edzamber[/MENTION]). Took me several reboots and desperate steps without even knowing what am I doing. At some point I cleared data/cache from Google Play Store and Google Play Services (then I had to use Titanium Backup's Market Doctor as everything was missing from Google Play's installed tab) :(
[Android Software/Hacking General [Developers Only]] Rom:
The internal database of your Play Store app data is corrupted.

At this time i haven't find the way to fix this problem, if you find how to do this trick, thanks in advance to describe here how u have make :)

For me, the only way i have found was to make a wipe of the data, and so naturally the cache and the dalvik too..

Think to backup your sensitive data before doing any WIPE by TWRP/CWM, PhilZ,...

About your problem:

Apparently u have a problem with your Magisk install, so just few suggestion about Magisk update/modules install:

- avoid to use Magisk BETA versions for daily usage (only suggested for testing)

- when u loose any installed module after having install any other Magisk module, make a fresh install of Magisk

- the next time u will have a problem related to magisk or/and modules, attach some logfiles, it could be helpfull

- check manually the "module.prop" file in the module zip, and compare it with the template one (i don't put the link to the right file directly to avoid my link to becoming a bad link (getting Github 404 error) when the official module template will be updating
[Android Software/Hacking General [Developers Only]] Imperial.mack:
Works perfectly. Thanks.
[Android Software/Hacking General [Developers Only]] mr.snax:
Today my playstore show youtube update :\
[Android Software/Hacking General [Developers Only]] Sjant:
Is it possible to install this without flashing it in TWRP? Like placing files with a root explorer app?
[Android Software/Hacking General [Developers Only]] an0therus3r:
Same here.

Tried several methods and flashable zips found here without luck, YT stays attached to Play Store.
[Android Software/Hacking General [Developers Only]] Rom:
No, because this tool is compatible with SuperSU and Magisk.

So, personally i made for me a portage of the flashable zip to a classic magisk module.
[Android Software/Hacking General [Developers Only]] Yusei:
Can you share it?
[Android Software/Hacking General [Developers Only]] Rom:
Yeah when i will come back at my home i will must find it again, i don't remember me in wich folders i put the zip ?

EDIT: I haven't find it again so i have make it again :angel:

EDIT2: zip script fixed.

See in attachment..
[Android Software/Hacking General [Developers Only]] an0therus3r:
Can you remove the reboot command from your scripts?

My phone locks up with it in blu_spark twrp.

Your version isn't working for me, can't flash via TWRP gives error
[Android Software/Hacking General [Developers Only]] Rom:
Need TWRP logfile.
[Android Software/Hacking General [Developers Only]] an0therus3r:
Updating partition details...

...done

Full SELinux support is present.

MTP Enabled

Installing zip file '/sdcard/Download/Detach_2.6.2_MAGMODULE.zip'

Checking for Digest file...

Skipping Digest check: no DIgest file found

- Mounting /system, /vendor

Updater process ended with ERROR: 2

Error installing zip file '/sdcard/Download/Detach_2.6.2_MAGMODULE.zip'

Updating partition details...

...done
[Android Software/Hacking General [Developers Only]] Rom:
I found my error, download again the .zip file and try again please, sorry.
[Android Software/Hacking General [Developers Only]] andre0005:
Could you please add chrome beta as a detachable app?
[Android Software/Hacking General [Developers Only]] Rom:
Yes, but as i don't use this app, idk which is the app package name ?

I could search but i am actually looking for another things on my phone that take much time..
[Android Software/Hacking General [Developers Only]] an0therus3r:
It seems that after every Magisk upgrade this module is broken.

Doesn't seem to work anymore for me with Magisk Manager 5.8.1 / Magisk 16.6
[Android Software/Hacking General [Developers Only]] Rom:
Why do u try to install that on the last Magisk beta version ?

The official ZIP isn't compatible with the last stable, and i haven't test my last ZIP (read few posts back) on this version because i don't use beta Magisk version.

Instead of installing anything at all goes on your phone that has nothing to ask anyone and then come complaining to you because something didn't work, at some point i think it would be smarter to just think 2 minutes. :rolleyes:
[Android Software/Hacking General [Developers Only]] an0therus3r:
[MENTION=5332893]Rom[/MENTION]

I'm not complaining just making a observation.

This time the updated manager seems to brake it because it always worked on beta for me.

Will downgrade to stable to see if it starts working again.
[Android Software/Hacking General [Developers Only]] Rom:
Ok, effectivly there are some major changes in the last Magisk beta version, as Jhon had annonce, the update for the stable version is imminent.

I will update my zip portage of the official one for Magisk if needed.
[Android Software/Hacking General [Developers Only]] edzamber:
All all

Here is Detach v2.7 updated to Working with last Magisk bêta 16.7 and unofficials Magisk releases (tested on [MENTION=3306843]kantjer[/MENTION] last one)

https://www.mediafire.com/download/p7d6r75wwqfrr7b

After flash, check Detach.txt on your internal memory, it is set to Detach YouTube so look in your installed app on Playstore, YouTube should be detached.

Enjoy [emoji4]
[Android Software/Hacking General [Developers Only]] Akoolive:
Works well, thanks champ.
[Android Software/Hacking General [Developers Only]] IlD4nX:
I had your detach script for YouTube and it was working perfectly for months. Now I tried this new complete version and I still see YouTube in the app update on Google play store.

I checked the text file and it seems to be correct.

Where I'm doing something wrong? (of course before I did a clean flash to remove all old stuff)
[Android Software/Hacking General [Developers Only]] edzamber:
First attach youtube

https://www.mediafire.com/download/8mlsv5enw277nsf

Then Detach again
[Android Software/Hacking General [Developers Only]] IlD4nX:
Wow, don't know what I did (removed detach script and used the attach script you provided me) and now is detached... Weird but ok ?
[Android Software/Hacking General [Developers Only]] iRoxas1:
I think I found a pretty major bug with this script.

If you clear your data from the play store, and then open it up again, your purchases and installed apps don't sync, and it can't check for updates.

Removing the script fixes this of course, since I just tested it.

Another thing I found was that if you flash 2.7 after editing the detach files, it overwrites them again with the defaults. I don't think it's supposed to do that so that's why I'm mentioning it.
[Android Software/Hacking General [Developers Only]] Lightdm123:
I tried this, but the attach script ends with "reboot" which apparently doesn't work on my phone (twrp 3.1.2 and lineageos 15.1). I thought about changing the script. I found the important bit (in /META-INF/com/google/android/updater-script) but I am scared of changing it myself, since although I know my way around tech enough to know which part, but I don't know if I have to change that anywhere else.

Could you either tell me what I have to do else than extract the zip, change the one part in updater-script, and zip it back up? Or if it is easier for you to just change it yourself and send me that? I would just reboot with the option given to me by twrp.

Thanks in advance.
[Android Software/Hacking General [Developers Only]] edzamber:
Hi

Remove line

run_program("/sbin/reboot");
[Android Software/Hacking General [Developers Only]] sunanulh:
Thanks, I did it before but the calendar is still in the update list. Then I went to the system/app/ and I saw that the name of my calendar is CalendarGooglePrebuilt, then I added a line and type Calendar Google Prebuilt and flash the zip again and it works!

May this will help someone :)
[Android Software/Hacking General [Developers Only]] hinxnz:
The script is located at /system/su.d/99-detach.sh or /system/etc/init.d/99-detach.sh

What do you mean by not populating? You need to flash mod again after editing detach.txt

After editing the txt file, you need to flash the mod again so it can detach them.

Adding your own entries into the detach.txt file won't do anything.
[Android Software/Hacking General [Developers Only]] rignfool:
So it does not work on a systemless install?

I am using Magisk... So I think I need to run it manual...

My su.d directory is in the su partition... Which I think is in my magisk partition...
[Android Software/Hacking General [Developers Only]] hinxnz:
It works with systemless supersu installed, you should still have /system/su.d, have a look.

You should have both su.d directories, I did when I tested systemless su, I haven't tried magisk yet.
[Android Software/Hacking General [Developers Only]] rignfool:
Interesting...

I didn't have that directory before your script...
[Android Software/Hacking General [Developers Only]] JaylanPHNX:
Unfortunately, this just hasn't worked for me. In fact, it's made things worse: even though I have my theme ready apps set to not auto update, I'm no longer prompted to allow or skip updating if I click Update All on the My Apps screen. I now have to quickly click each app and stop them from updating. (6p, PNMod, SuperSU)

From my Tab Pro 8.4
[Android Software/Hacking General [Developers Only]] hinxnz:
It must be how you have configured playstore (auto-update) beforehand, I'll look into that later when I have some time.

For now you could remove mod by renaming detach.txt to detach.remove on sdcard, flash detach.zip, reboot into android, wipe data for playstore and then open playstore and the 'my apps & games' section, then reboot into recovery and flash mod again, it will then work as intended.
[Android Software/Hacking General [Developers Only]] JaylanPHNX:
I'll give that a try. Thanks.

From my Tab Pro 8.4
[Android Software/Hacking General [Developers Only]] JaylanPHNX:
Finally got around to trying this and there doesn't seem to be any detach.txt to rename. Could I just remove the script from su.d, or is there more to it than that?

I have to 6p.
[Android Software/Hacking General [Developers Only]] hinxnz:
The detach.txt file is found in the OP or if you prefer just make a file on root of sdcard called detach.remove, then flash mod again. You need to do this instead of just removing the script from su.d because when removing with the mod, it also re-enables the service that the mod disables.
[Android Software/Hacking General [Developers Only]] JaylanPHNX:
Removing and reapplying seems to have worked. Thanks.

From my Tab Pro 8.4
[Android Software/Hacking General [Developers Only]] governmentissuejoe:
Any chance of making a version for magisk users? Currently not working for me using latest magisk.
[Android Software/Hacking General [Developers Only]] hinxnz:
I have never used magisk but if your not using supersu, you need to have init.d support. Does magisk launch scripts from a custom directory like supersu does?
[Android Software/Hacking General [Developers Only]] governmentissuejoe:
Yes, I believe magisk has it's own folder where it launches scripts
[Android Software/Hacking General [Developers Only]] rignfool:
It uses post-fs and post-data-fs and launching pads for scripts... Similar to init.d
[Android Software/Hacking General [Developers Only]] sunanulh:
Hi [MENTION=1909299]hinxnz[/MENTION], can you please add Inbox to the list?

Edit: sorry, I've just found Inbox there [emoji3]
[Android Software/Hacking General [Developers Only]] kurt.gomez:
Any chance you could whip up a Magisk Compatible version?
[Android Software/Hacking General [Developers Only]] hinxnz:
Yeah but I haven't had the time to look how exactly magisk works just yet
[Android Software/Hacking General [Developers Only]] sunanulh:
I've installed cm13 in my nexus 5, but keep and inbox still showed in update list.
[Android Software/Hacking General [Developers Only]] hinxnz:
Did you flash mod again after excluding them with the detach.txt file?
[Android Software/Hacking General [Developers Only]] Marvino.:
Hi. That's a great work from Edzamber. I'd like to suggest developing the whole thing and making it into a small app where we can check/uncheck the apps we want to detach or restore their market links, and most importantly the ability to update the app for the new fixes. That would be great really..
[Android Software/Hacking General [Developers Only]] edzamber:
Thanks but this is not my work but [MENTION=1909299]hinxnz[/MENTION] one. I have just adapt for last Magisk update.

Yes an app will be nice...
[Android Software/Hacking General [Developers Only]] sjamie:
How can I modify your script to also detach other apps like Google Maps and Street View?
[Android Software/Hacking General [Developers Only]] edzamber:
2 solutions :

Unzip Detach zip then look inside /data/media/0 there is 2 files : detach.txt and detach.custom

If app you need to Detach is in detach.txt, just Remove # before app name

If app don't exist in detach.txt, add Package name in detach.custom (as com.xxxx.xxx). Only one Package name by line. You can find Package names with Package Name Viewer on Playstore.

Then Re-zip and flash
[Android Software/Hacking General [Developers Only]] Marvino.:
What if I want to change the installing directory of files : detach.custom and detach.txt which file should I edit?
[Android Software/Hacking General [Developers Only]] edzamber:
You need to edit script itself into meta-inf/com/hinxnz
[Android Software/Hacking General [Developers Only]] sjamie:
Thank you! Also, what is the best way to reattach apps if necessary?