yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] sjamie:
Your updated mod works perfectly for me for YouTube; however, it is not hiding Instagram, IGTV, Maps, and Street View from the Play Store. I added the following package names to detach.custom, re-zipped and flashed.

com.google.android.apps.maps

com.google.android.street

com.instagram.android

com.instagram.igtv

Does anything have to also be added to detach.txt? What else might I be missing?
[Android Software/Hacking General [Developers Only]] Marvino.:
Thanks, I'll try to change it to internal SdCard/Android/Data.
[Android Software/Hacking General [Developers Only]] 3lMghraby:
hey how to rerun detach script after boot from terminal emulator with magisk installation ?

edit it is this command /sbin/.core/img/Detach/post-fs-data.sh
[Android Software/Hacking General [Developers Only]] Rom:
Hello, anyone for those it works could send his sh file here plz i get difficulty to make it working again after a complete wipe of my phone, thanks.
[Android Software/Hacking General [Developers Only]] OSheden:
The latest script doesn't work on my end. OnePlus 3T OmniDragon Oreo 8.1. YouTube update is always there...
[Android Software/Hacking General [Developers Only]] Rom:
So apparently the method used by @hinxnz don't works anymore, can someone could make a test please ?
[Android Software/Hacking General [Developers Only]] edzamber:
Try this one, Working.

You have to force close playstore after flash and sometimes Wait some some minutes for it apply.

https://www.mediafire.com/download/rzkbve6dxc2771w
[Android Software/Hacking General [Developers Only]] sjamie:
Although the script gets stuck at "rebooting" and the device must be physically rebooted, this script works well for hiding YouTube but doesn't seem to work for detaching apps that I add to detach.custom. I followed your instructions by adding the following package names to detach.custom, re-zipped and flashed.

com.google.android.apps.maps

com.google.android.street

com.instagram.android

com.instagram.igtv

Does anything also have to be added to detach.txt? What else should I try to detach the apps mentioned above?
[Android Software/Hacking General [Developers Only]] Rom:
Thank you, your modded zip file works only for Youtube, not for any others.

So i have modded the final post-fs-data.sh file by adding my several other packages names and rename the final into service.sh to avoid to having a while loop working in the background from the post-fs-data stage to the android service stage.

Finally, I was able to help Toto's zip to make the MOD work again.
[Android Software/Hacking General [Developers Only]] sjamie:
Is there any way you could walk me through making similar changes for detaching Google Maps, Street View, Instagram and IGTV? Or could you make a modded zip that will detach those apps for me? Either way, I'd greatly appreciate your help! :fingers-crossed:
[Android Software/Hacking General [Developers Only]] Rom:
I have edit the sh file manually while waiting i'm working to make the magisk module working, for u the content of the service.sh file will must to be:

#!/system/bin/sh
# Detach Apps from Market by hinxnz
# Playstore database and SQLite directory
PLAY_DB_DIR=/data/data/com.android.vending/databases
SQLITE=/sbin/.core/img/Detach
# Wait till boot has completed
(while [ 1 ]; do
if [ `getprop sys.boot_completed` = 1 ]; then sleep 60
# Disable service that populates database
pm disable 'com.android.vending/com.google.android.finsky.hygiene.DailyHygiene$DailyHygieneService'
# Stop playstore to make changes
am force-stop com.android.vending
# Change directory
cd $SQLITE
# Detach following apps from market
# Google Maps

./sqlite $PLAY_DB_DIR/library.db "UPDATE ownership SET library_id = 'u-wl' where doc_id = 'com.google.android.apps.maps'";
# Street View
./sqlite $PLAY_DB_DIR/library.db "UPDATE ownership SET library_id = 'u-wl' where doc_id = 'com.google.android.street'";
# Instagram
./sqlite $PLAY_DB_DIR/library.db "UPDATE ownership SET library_id = 'u-wl' where doc_id = 'com.instagram.android'";
# IGTV
./sqlite $PLAY_DB_DIR/library.db "UPDATE ownership SET library_id = 'u-wl' where doc_id = 'com.instagram.igtv'";
# Exit
exit; fi
done &)

NOTE: U can add newline between each cmd lines if u want, just don't break the commands or the script will be breaked.

So in you /magisk/Detach/ dir, u must to have theses following files to make the MOD works:

- module.prop

- sqlite

- service.sh
[Android Software/Hacking General [Developers Only]] 3lMghraby:
hey I have a problem

the script runs fine and works after boot

but after sometimes apps gets reattached and shows in my apps tab
[Android Software/Hacking General [Developers Only]] Rom:
Wich Play Store version are u running ?
[Android Software/Hacking General [Developers Only]] 3lMghraby:
v11.3.15

and that happened with that version only I guess

I added playsgore to greenify shallow hibernation list and the problem is now gone
[Android Software/Hacking General [Developers Only]] sjamie:
Yes, I've also noticed this, unfortunately.
[Android Software/Hacking General [Developers Only]] OSheden:
The latest zip doesn't work either. I'm about to give up...
[Android Software/Hacking General [Developers Only]] garylawwd:
Then give up.

No point moaning about it here you will receive no sympathy.

Works just fine for me and many other users so it's either your device, or your doing something wrong.

You should have given your device and firmware types along with magisk version.

He isn't a magician.

Without knowing whats goin wrong for you how is he supposed to fix it.
[Android Software/Hacking General [Developers Only]] OSheden:
You are right but it was more a distress towards Google than OP.

OnePlus 3T - Firmware 5.0.4 stable.

Google Play Store 11.2.14-all [0] [PR] 207207134

OmniDragon Oreo 8.1

Magisk v16.0

Doing something wrong? I simply flashed the zip file and force closed Google Play. YouTube update was no longer available yesterday but after upgrading a few apps this morning, YouTube appeared again.
[Android Software/Hacking General [Developers Only]] garylawwd:
Try it with magisk 16.7 beta maybe?
[Android Software/Hacking General [Developers Only]] sjamie:
Actually, it was working for me before I upgraded to Magisk v16.7 beta. Now YouTube disappears and reappears in the Play Store. I can't seem to get any other apps to detach at all. (OP5, OOS 5.1.4, xXx 3.1 Magisk Mod)
[Android Software/Hacking General [Developers Only]] 3lMghraby:
found a workaround for the apps getting reattached

-add playstore to greenify shallow hibernation list and ignore running state.

-remove this line from root/magisk/detach/post-fs-data

[Wait till boot has completed] and the lines till the previous hashtag mark.

-now you can reapply the script anytime after boot without restarting.

-download and open terminal emulator

-type those codes

$su

$sbin/.core/img/Detach/post-fs-data.sh

without the dollar mark.

-profit
[Android Software/Hacking General [Developers Only]] sjamie:
I believe the goal is to not have to do anything after reboots and apps remain detached. Everything worked properly for me until I upgraded from Magisk 16.3 to Magisk 16.7. I may downgrade and see if the original mod works again.
[Android Software/Hacking General [Developers Only]] 3lMghraby:
the workaround is for latest play store version

which in my case reattaches the apps
[Android Software/Hacking General [Developers Only]] Marvino.:
Tried this and caused the device to stuck on boot screen.

Android version : 7.1.2

Magisk : 16.6

Playstore : 11.2.14-all [0] [PR] 207207134
[Android Software/Hacking General [Developers Only]] kanno_miho:
same here. any solution?
[Android Software/Hacking General [Developers Only]] OSheden:
Nope.

This may help for user apps though: https://android.gadgethacks.com/how...dating-play-store-no-computer-needed-0184063/
[Android Software/Hacking General [Developers Only]] an0therus3r:
You mention Greenify, is this with Xposed or Magisk (+ Greenify module) only?
[Android Software/Hacking General [Developers Only]] 3lMghraby:
I use magisk

but I don't think there will be a big difference
[Android Software/Hacking General [Developers Only]] Timei:
can u reupload please?
[Android Software/Hacking General [Developers Only]] edzamber:
https://www.mediafire.com/download/p7d6r75wwqfrr7b
[Android Software/Hacking General [Developers Only]] Rom:
Hello, i have a problem: when i reboot my device the script of the MOD works perfectly, Play Store is in swallow hibernation by Greenify, but when i update several other apps through PS, the hide apps appear again.

Anyon have this bug too ?
[Android Software/Hacking General [Developers Only]] Mogetto:
hi ! Same problem !
[Android Software/Hacking General [Developers Only]] joluke:
Same here

Enviado do meu SM-N950F através do Tapatalk
[Android Software/Hacking General [Developers Only]] Rom:
Hi, after several tests, it seems to works by set the swallow hibernation to the play store app, but avoid to set the default hibernation setting again to PS app and reboot, it will break the MOD.
[Android Software/Hacking General [Developers Only]] domi223:
Thks:good:
[Android Software/Hacking General [Developers Only]] big_edd:
Is there a problem with 2.7? All of the links posted to it are down.
[Android Software/Hacking General [Developers Only]] edzamber:
Here it is

I have reduce boot complete waiting time to 3 seconds for applying mod instead of 60 :)

https://www.mediafire.com/download/w653hjkhzrz0gv9
[Android Software/Hacking General [Developers Only]] djdelarosa25:
Just tried it and it doesn't seem to work anymore.
[Android Software/Hacking General [Developers Only]] edzamber:
Did you Force close Playstore (by Remove from recent apps) then launch it again ? Is YouTube appears in your installed apps ?
[Android Software/Hacking General [Developers Only]] djdelarosa25:
Yep, I did just that and it's still there.
[Android Software/Hacking General [Developers Only]] edzamber:
Try this

https://www.mediafire.com/download/55ljmimgav58kig
[Android Software/Hacking General [Developers Only]] big_edd:
Flashed 2.7 yesterday. Been working since then including a couple reboots.

AICP & Magisk 16.7 on Nexus 6P
[Android Software/Hacking General [Developers Only]] sjamie:
Have you tried detaching apps other than YouTube?
[Android Software/Hacking General [Developers Only]] sjamie:
For me, it seems to be working for YouTube only but not the other apps I declared in detach.custom.
[Android Software/Hacking General [Developers Only]] djdelarosa25:
Still won't work :( I think a new Play Store update broke it. I'm on 11.4.16-all [0] [PR] 209796717
[Android Software/Hacking General [Developers Only]] big_edd:
Same ps version here
[Android Software/Hacking General [Developers Only]] djdelarosa25:
Really strange. I remember it worked for me before.
[Android Software/Hacking General [Developers Only]] djdelarosa25:
Nevermind, it works after a reboot :) Thanks [MENTION=4507636]edzamber[/MENTION]

EDIT: Whoops, it's broken again.
[Android Software/Hacking General [Developers Only]] sjamie:
Nope, even YouTube eventually comes back! Oh well...
[Android Software/Hacking General [Developers Only]] sjamie:
I can confirm SudoHide works successfully. Thank you! :good::good::good:
[Android Software/Hacking General [Developers Only]] djdelarosa25:
Oh well. After updating to Magisk v17, it stopped working again. Might was well try SudoHide.

EDIT: SudoHide works.
[Android Software/Hacking General [Developers Only]] bsg411:
Where do you get sudohide from?
[Android Software/Hacking General [Developers Only]] sjamie:
https://xdaforums.com/xposed/modules/mod-sudohide-prevent-apps-detected-apps-t3384559/page18
[Android Software/Hacking General [Developers Only]] bsg411:
Thanks.... But wasn't interested in installing Xposed just to hide an app from play store
[Android Software/Hacking General [Developers Only]] sjamie:
Then no sudohidey for you. :laugh:
[Android Software/Hacking General [Developers Only]] djdelarosa25:
It's at the Xposed Repo.
[Android Software/Hacking General [Developers Only]] kolki:
not working on Play store version 11.4.16
[Android Software/Hacking General [Developers Only]] Yusei:
Not here.

P20 with latest Magisk 17.1.
[Android Software/Hacking General [Developers Only]] mani169:
Hi, if you want to detach youtube vanced from play store, follow those steps :

1) Disable auto-update from the official youtube app, then remove it.

2) Now install YouTube vanced (I suggest you magisk version)

3) Then use a root explorer like ES explorer to go to the /cache folder. In this folder, create a file and name it "enable_detach"

4) Reboot and wait about 1min.

5) Enjoy
[Android Software/Hacking General [Developers Only]] djdelarosa25:
Only to see it return after a few days.
[Android Software/Hacking General [Developers Only]] Timmmmaaahh!:
I have successfully tried this method yesterday but this morning it seemed to have found a way to reattach itself. I tried to start a video and an ad started playing: THE HORROR! :eek:

Uninstalled the update and disabled auto updates again :)
[Android Software/Hacking General [Developers Only]] sjamie:
Using the SudoHide Xposed module seems to be the only consistently working method now. Since I've installed it a few weeks ago, my selected apps have remained detached from the Play Store even after numerous reboots.
[Android Software/Hacking General [Developers Only]] garylawwd:
Thanks a lot for that! Wrecking my head the last month trying to get it to detach again. Works a charm
[Android Software/Hacking General [Developers Only]] RootedLee:
After all other options failed, I still don't manage to hide YouTube vance and my banking app (old Xposed friendly version) from appearing with updates in Play Store, not even with SudoHide :(

sjamie, can you be as specific as possible, step-by-step? How did you do it? Also, which Play Store version are you using?
[Android Software/Hacking General [Developers Only]] sjamie:
You should be able to open SudoHide, select the app you want to hide from the Play Store, then on the next screen type "Google Play Store". You won't find the Play Store if you don't type Google first. Select Google Play Store. Repeat process for each app to hide. For me, certain apps would automatically get deselected for some reason and therefore updates remained in the Play Store. After repeating the process a few times for those apps, the setting eventually sticks and Play Store updates disappear!

Look mom, no updates! :laugh:
[Android Software/Hacking General [Developers Only]] RootedLee:
Thanks for the manual, sjamie, indeed, it's WORKING now, yee-haah :) I force-quit Google Play Store, removed cache, went back in, BOOM, look dad, no mo updates !!!!

I also chose Google Play Services to be sure, but maybe that's not necessary.
[Android Software/Hacking General [Developers Only]] sjamie:
SUPER CONGRATULATIONS! ??

FYI: Selecting Google Play Services is not required.
[Android Software/Hacking General [Developers Only]] surya_27895:
I try detach 2.6 but its not working and broke my PS

How to fix it? Renaming detach.txt to detach.remove not affect anything my PS still broke

Already FC and cer cache
[Android Software/Hacking General [Developers Only]] sjamie:
Remove Google account, reboot then re-add Google account.
[Android Software/Hacking General [Developers Only]] marcdw:
Just a generic comment, no problems.

On my old but daily driver PAC-MAN, detach 2.6 has been holding steady. Even after a device replacement and ROM restore. Pretty cool.

Anyone use Yalp Store (alternative to Play Store for those without GApps)? I install it on all ROMs because it allows me to save installed apps to a local apk. Comes in handy sometimes given that old items keep disappearing from the Play Store. Some not even available from apkmirror. Also allows for installing older versions of an app from the Store.

Anyway, besides Google stuff I also have some third party apps detached. Only now I just noticed that detached apps are listed in Yalp as blacklisted. That's pretty cool. I assume that would be the same if using Aurora Store (based on Yalp). I think I'll test detaching something on ROMs without GApps (microG, with or w/out Play Store but with Yalp/Aurora) and see what happens.

LG G3 D851, PAC-MAN LP ROM, MultiROM, XDA Legacy
[Android Software/Hacking General [Developers Only]] underflash:
How to detach Revolut app? Hate new layout.
[Android Software/Hacking General [Developers Only]] Rom:
Magisk v17+ Module port

Hello,

I have port this MOD as a Magisk Module to works only with Magisk v17+.

It can to be blashed through the Magisk Manager nor custom recovery (like CWM, TWRP,...).

Anyone could test it and feedback please ?
[Android Software/Hacking General [Developers Only]] hsiehboss:
No effect

我從使用 Tapatalk 的 Nexus 6P 發送
[Android Software/Hacking General [Developers Only]] Rom:
Do you use the Detach.txt or the detach.custom ?

Send logfile.
[Android Software/Hacking General [Developers Only]] hsiehboss:
Yes,i use the detach.txt on sdcard florer.

where to find the logfile?

我從使用 Tapatalk 的 Nexus 6P 發送
[Android Software/Hacking General [Developers Only]] Rom:
Ok, say wich app u have uncomment in the Detach.txt file and screen the /sbin/.core/img/Detach/service.sh file.

The logfile is located in the Download folder on your internal storage.
[Android Software/Hacking General [Developers Only]] hsiehboss:
I have install magisk mod to detach youtube apk and it effect now.

I can not find logfile in download florder.

:)

我從使用 Tapatalk 的 Nexus 6P 發送
[Android Software/Hacking General [Developers Only]] Rom:
Great if it works for you, but according to your screen, it's not my last module, my one have a different version number and details.
[Android Software/Hacking General [Developers Only]] henningsieh:
It fails very early, during install. Any hints?

--- EDIT ---

Installing via TWRP worked and my only configured app seems to be detached. :):svetius:
[Android Software/Hacking General [Developers Only]] Rom:
Telegram group - support

Hello,

I just create a Telegram group of support for my Maigks module portage: https://t.me/joinchat/ElFVDxJDgCkDt5Zr_qblGQ

My portage is unofficial, but it works.

Edit: You can check the first update in attachment.
[Android Software/Hacking General [Developers Only]] kamilmirza:
tried v2.6.3 and it fails as v2.6.2, even with text files on sdcard root

my custom apps detach file is empty

attaching Magisk install log
[Android Software/Hacking General [Developers Only]] Rom:
I have take a look at your logfile, are you sure that the detach.custom file haven't got extension like ".txt" ?

I'm working on an improvment for this type of case.
[Android Software/Hacking General [Developers Only]] kamilmirza:
well I'll be damned :eek:

it was with .txt :silly:

removed .txt and it installed successfully

EDIT: detachs perfectly after reboot :good:
[Android Software/Hacking General [Developers Only]] Rom:
I'm glad that it works great for you, enjoy now! :good:
[Android Software/Hacking General [Developers Only]] andre0005:
[MENTION=5332893]Rom[/MENTION]

Can i remove the detach.txt from my root folder after installing the module? I hate cluttering my root folder. If not could you maybe rework it to read the files from the magisk manager folder?
[Android Software/Hacking General [Developers Only]] mani169:
I removed the file and apps get re-attached.
[Android Software/Hacking General [Developers Only]] Rom:
If you remove detach.txt or detach.custom files from /scard/ folder and you flash the module again, you will loose your module setup.
[Android Software/Hacking General [Developers Only]] 3lMghraby:
those who are facing problem with hiding

it's the playstore v10 and up

it rechecks for installed apps and adds them even after detach

so the best way to maintain the script is by hibernating the play store it won't always work but you should get some detach time
[Android Software/Hacking General [Developers Only]] rickysidhu_:
What I do is run the script every hour using Tasker. It hasn't had any noticeable effect on battery life and it keeps my one app detached.
[Android Software/Hacking General [Developers Only]] hsiehboss:
how to do it?

我從使用 Tapatalk 的 Nexus 6P 發送
[Android Software/Hacking General [Developers Only]] TriATK:
Works very well to hide the Youtube Vanced from Magisk:)
[Android Software/Hacking General [Developers Only]] tassos_chry:
Here you go View attachment 4636768
[Android Software/Hacking General [Developers Only]] rickysidhu_:
[MENTION=5282944]tassos_chry[/MENTION] beat me to it, but yes that's how I've done it as well. You can also copy and paste the script content and put it in a shell command.
[Android Software/Hacking General [Developers Only]] karnasw:
This works only for some time. After few hours for my example YouTube app appears in Play Store. I have to restart phone to hide it again. (I have newest version from Magisk and OpenKirin Android 8.1 ROM).
[Android Software/Hacking General [Developers Only]] henningsieh:
Same here... for me it doesn't matter if I use the YouTube vanced included mechanism or this one.

It always works for several hours but suddenly YouTube reappears, although the module works as designed (with *.bak-disabling YouTube vanced detach script and so on.)

But: I use this module to detach com.plexapp.android too, and that works stable instead!
[Android Software/Hacking General [Developers Only]] calchung:
Are you using Android O?

I am trying the tasker method by [MENTION=5282944]tassos_chry[/MENTION], hope youtube wouls not appear on the update list tomorrow. Usually the app would re-attach during 3 or 4am. Will report the result.
[Android Software/Hacking General [Developers Only]] tassos_chry:
I'm on Android Pie
[Android Software/Hacking General [Developers Only]] djparent:
Not working to hide YouTube, Huawei P20 Pro on Oreo 8.1, using detach.txt method. Has no effect at all even waiting 1 minute after reboot. Have tried reinstalling and rebooting. Anyone have luck on this model?
[Android Software/Hacking General [Developers Only]] mrbox23:
How?
[Android Software/Hacking General [Developers Only]] TriATK:
1.use the detach.txt and uncomment Youtube

2.install detach module from magisk and reboot

3.done！

I'm in Android 8.1，can confirm this module works
[Android Software/Hacking General [Developers Only]] calchung:
I am on android 8.0, it works but it will reattach every day, i hv to use tasker to run the script to prevent that.
[Android Software/Hacking General [Developers Only]] calchung:
At first, I used detach.custom.txt to put it in the root of sd, then flash the module in magisk, and it didnt work. So I renamed the file to detach.custom without .txt and uninstall the module. After that reflash the module again, then it works.

---------- Post added at 06:03 PM ---------- Previous post was at 06:01 PM ----------

However, it closes the Play Store when running the script. I tried to run the script in tasker to every 2 mins, but Play Store closes every 2 mins :laugh:
[Android Software/Hacking General [Developers Only]] rickysidhu_:
I don't think it's necessary to run it every two minutes, that seems a bit excessive. It probably isn't helping battery life either.

I have it set to run every hour, and that way, not only is it better for battery life, but it won't be a big deal if the Play Store closes every hour opposed to every two minutes.
[Android Software/Hacking General [Developers Only]] djparent:
I was only using the detach.txt method but I re downloaded the file from the OP and uninstalled and reinstalled the module as per your advice and that seemed to work for now. Thanks!

Could someone please explain the script to be run in Tasker for me, like what it does? I'm expert at Tasker but novice at shell script. My phone is a pain so I'm sure I'll need to run the script to keep YouTube detached. I got lost in the conversation trying to follow this thread lol.