yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] hinxnz:
Yeah but make sure you have the detach.txt without editing it on the root of your sdcard or internal storage.
[Android Software/Hacking General [Developers Only]] eongab:
thanks. what if a new blackout theme for play store come and I will update it do I have to flash the detach zip again. also when I dirty flash my ROM?

EDIT: nevermind just read the OP.
[Android Software/Hacking General [Developers Only]] eongab:
sorry but it's not working mate. play store update itself after reboot.
[Android Software/Hacking General [Developers Only]] hinxnz:
Uninstall playstore so it removes the updated one, seems to me that it updated itself before the script executed on first run.
[Android Software/Hacking General [Developers Only]] eongab:
still the same. after reboot play store is updated. will try to add in detach.custom
[Android Software/Hacking General [Developers Only]] zoolly:
Please help me uninstall it and restore Google play

I can't get any updates. I tried to uninstall, followed the instructions :renamed detach.txt to detach.remove and re install detach-v2.6 but still google play not functioning..

Help please
[Android Software/Hacking General [Developers Only]] Luq4dmin:
[MENTION=1909299]hinxnz[/MENTION] i cant flash the detach.zip file on my x86 zenfone 2 device and getting error 255 even its already properly downloaded. Here i attach the recovery log. Hope u could solve this for our device :)
[Android Software/Hacking General [Developers Only]] Adhil Rahman:
Same here.i am using Zenfone 2
[Android Software/Hacking General [Developers Only]] DirkStorck:
Hi,

I have tried to detach 2 custom apps. This is how my detach.custom file looks like

com.starfinanz.smob.android.sbanking
com.google.android.youtube

YouTube got detached, but my banking app still shows up in PlayStore.

Any advice please?

Thank you!
[Android Software/Hacking General [Developers Only]] RSDamasceno:
there is something like this module that works for non-magisk user?
[Android Software/Hacking General [Developers Only]] JaylanPHNX:
It works with SuperSU as well.
[Android Software/Hacking General [Developers Only]] rezono:
I installed black playstore but it turned white after playstore updated itself. Some idiot at Team Blackout suggested I fix this by installing this mod and then uninstalling playstore updates. I did that but now my playstore is gone. Wtf is this??? What do I do now????
[Android Software/Hacking General [Developers Only]] djdarkknight96:
So I'm an idiot now? Seriously trying to help you and now I'm an idiot? Screw you pal!
[Android Software/Hacking General [Developers Only]] rezono:
Wat are you talking about? I aint even referring to you.
[Android Software/Hacking General [Developers Only]] Timmmmaaahh!:
We interrupt this thread for a word from our sponsors!

Sizzled with Bacon ?
[Android Software/Hacking General [Developers Only]] JaylanPHNX:
That's the correct advice. Don't know why your Play Store would be gone (curious how you "uninstalled Play Store updates"). Have you tried reflashing the black Play Store zip?
[Android Software/Hacking General [Developers Only]] rezono:
Hi jaylan. I dont know what you mean when you say youre curious how I uninstalled play store updates. Do you not know how to do this by any chance? Thats when you go into settings > application manager > play store. In the upper right corner are 3 dots where you click on and gives an option to uninstall updates.

Anyway I did try to flash the play store apk back (current version). It installed but I cant download apps and the "uninstall updates" in the play store app in application manager is gone. So I dont know what to do.

Would appreciate advice. Thanks.
[Android Software/Hacking General [Developers Only]] Spannaa:
Calling someone an idiot and then being sarcastic to another isn't the best way to get help...

Did you use a flashable zip to install the (current version of) the playstore apk, or did you just install the apk.

Did you try clearing it's cache & data via settings?

There won't be an uninstall updates option in settings if there's only one version of playstore installed. The option only appears if a system/app is updated and the new version is installed to /data/app.
[Android Software/Hacking General [Developers Only]] rezono:
Hold up. That comment was over mistaken identity and I won't explain further. And aint no sarcasm so i dont know what you is talking about. Accusing people with few facts won't get you far.

Yes I done flashed the current version of playstore apk. I cleared cache and datas and it dont work.

But its weird cuz after I flashed playstore and tried opening it, it FCed. But after I removed then re-enabled my account I was able to get it to work. But now it won't download any apps, its just pending forever. And when I go to settings in playstore it FC.

And I uinstalled the mod as instructed by renaming detach.txt to detach.remove. Then I flashed the detach.zip. But it don't work. Did I have to rename it to detach.remove or detach.remove.text?

Let me know what you suggest. Appreciate it.
[Android Software/Hacking General [Developers Only]] scoobyjenkins:
A good root file explorer like Mixplorer may come in handy. To delete the system app to try install fresh, you can use the file explorer to delete the app from system/priv-app. To remove updates, you can look for com.android.vending in data/app and delete that folder and contents. If it's not there, then there shouldn't be an update present. If you're still having issues, a clean install of your ROM may help. You can also try clear app data for play services and play store, reboot and add your account again.
[Android Software/Hacking General [Developers Only]] rezono:
Hey scoobyjenkins. I went to system/priv-app but couldn't find the system app. I didn't see any folder there that said 'playstore' or 'google playstore.' Maybe I'm not looking for the right folder. Would you know the name of that folder?
[Android Software/Hacking General [Developers Only]] Spannaa:
/system/priv-app/Phonesky
[Android Software/Hacking General [Developers Only]] insany:
I got the same issue as rezono. I also deleted phonesky and com.android.vending and it doesnt work. What do you suggest?
[Android Software/Hacking General [Developers Only]] Spannaa:
Nowhere near enough info!

Device, rom, gapps, extras, what you did exactly...
[Android Software/Hacking General [Developers Only]] insany:
I installed the mod but playstore disappeared. I then installed the playstore apk from apk mirror. It installed but it crashes when I open playstore settings. As I said I also removed phonesky and com.android.vending. But didn't work either.

I also uninstalled the mod. But still my playstore has this issue.

I got samsung J7 (US version). I got a rooted non-custom stock rom. No gapps. What do I do?
[Android Software/Hacking General [Developers Only]] marciozomb13:
Play Store is not a simple app, it needs some additional files which might be lost or corrupted. You might want to install a (small) gapps package to try to solve this problem.
[Android Software/Hacking General [Developers Only]] micgeb:
On my LG G6, Nougat 7.0 don't work the detach mod. I see still Youtube in the playstore.
[Android Software/Hacking General [Developers Only]] insany:
And from where do I download gapps (small not big) from? I need to make sure its from an official source.
[Android Software/Hacking General [Developers Only]] marciozomb13:
You could try beans or OpenGapps, search here in Xda, they have tiny options.
[Android Software/Hacking General [Developers Only]] insany:
I just need marshmallow gapps for play store only. But I can't find it on xda. Could you gelp me?

Do I uninstall the stock play store from my phone before installing gapps play store?
[Android Software/Hacking General [Developers Only]] otonieru:
Search again, its everywhere in xda

And guy before you stating it clearly : opengapps

Have you actually try to google it first ? ;)
[Android Software/Hacking General [Developers Only]] cpthero:
People these days are actually too dumb to type something into google... smh
[Android Software/Hacking General [Developers Only]] insany:
People nowadays are too feminine and coward to say things to someone's face... smfh

---------- Post added at 02:25 PM ---------- Previous post was at 02:19 PM ----------

Matter fact I did. But its not from xda and looks suspect like it doesn't look official.

Also some sites have it listed for arm or arm64 processor which I'm not sure which I got for sure. Look at the screenshot showing my system info and let me know which I got. Thanks.
[Android Software/Hacking General [Developers Only]] storm68:
Arm64
[Android Software/Hacking General [Developers Only]] insany:
I'm confused now. Someone in another thread said I got ARM64. Here's this post..

https://xdaforums.com/showthread.php?p=74140356
[Android Software/Hacking General [Developers Only]] storm68:
I stand corrected... Here's mine. Mine is 64 as you can see using same app. Yours is arm. I apologize.
[Android Software/Hacking General [Developers Only]] insany:
To uninstall this mod, do I need to rename detach.txt to 'detach.remove' or to 'detach.remove.txt'?
[Android Software/Hacking General [Developers Only]] JaylanPHNX:
detach.remove
[Android Software/Hacking General [Developers Only]] sanguinesaintly:
Maybe you have something in common with rezono and whatever you did with your respective phones. Pity he's not around as he may have been able to help you. What an sad coincidence that his account was deleted just before yours was created.

*edit*

Now you've gone too - what will your next name be I wonder ?
[Android Software/Hacking General [Developers Only]] djdarkknight96:
Yes same troll
[Android Software/Hacking General [Developers Only]] bkkzak:
Seems to be broken with the latest play store: 8.3.41.U-all [0] [FP] 170066753

I was using the detach.txt for swiftkey and YouTube, and the detach.custom for snapchat and discord
[Android Software/Hacking General [Developers Only]] otonieru:
It always stop working when play services or play store is updated,

Need to reflash the module all over again, and it will start working again
[Android Software/Hacking General [Developers Only]] djdarkknight96:
Good info!
[Android Software/Hacking General [Developers Only]] nacos:
Thank you so much, it works like a charm on a Samsung S8. I've been looking for something like that for a long time.

For others looking to adopt this solution, yes, Titanium Backup has the ability of detaching the apps from the market, however, the link is recreated after each reboot so it's just a temporary solution. Also, signing the apk using your own signature works with many rregular applications, however Google and other applications are notorious for miss behaving or not working at all after doing that.
[Android Software/Hacking General [Developers Only]] furchtlos76:
Does not work for me. Does nothing after flash. When i start it in shell it does show the output in the screenshot. Any idea?
[Android Software/Hacking General [Developers Only]] furchtlos76:
Mhh after some more testing it looks like it hides youtube but not whatsapp. is there any trick to hide whatsapp in installed apps in playstore?
[Android Software/Hacking General [Developers Only]] Similarion:
Is it not working for anyone anymore? I uninstalled and reinstalled multiple times and Youtube is still in my play store update list...
[Android Software/Hacking General [Developers Only]] sjamie:
Yep, this mod is the only solution that works every time for me. Just set it and forget it! I usually reflash this mod after each ROM update for good measure. I never have a problem with it.
[Android Software/Hacking General [Developers Only]] rickysidhu_:
Working fine for me
[Android Software/Hacking General [Developers Only]] Ellipsis_:
Yes, this has stopped working for me now too. I've had it working for quite a while and am used to having to re-apply it after each upgrade but now, even when I re-flash the detach zip from recovery, YouTube still appears in my updates list. OnePlus 3 Android 7.1.1.
[Android Software/Hacking General [Developers Only]] micgeb:
It's working fine. Reinstall detach.
[Android Software/Hacking General [Developers Only]] Similarion:
Doesn't work
[Android Software/Hacking General [Developers Only]] Ellipsis_:
I really don't know how you can read my post and not conclude I already tried that but just to be absolutely clear I have tried reinstalling it. Multiple times. I've checked my detach.custom and made sure it's in the root before reflashing detach from twrp. I'm familiar with this process having done it many times in the past

For good measure I have also tried clearing Play Stores cache before and after detaching and rebooting to no avail.
[Android Software/Hacking General [Developers Only]] an0therus3r:
Same issue here, not working.
[Android Software/Hacking General [Developers Only]] 3lMghraby:
I want only to detach youtube without detaching any other app

could someone tell me how ?
[Android Software/Hacking General [Developers Only]] C114:
Make it a system app. Then you can always uninstall unwanted updates.
[Android Software/Hacking General [Developers Only]] Vtrendzzy:
I read the OP but the installation instructions have gone over my head. If anyone can explain a little bit that would be helpful.
[Android Software/Hacking General [Developers Only]] MBDdk:
Which steps exactly are you having difficulties with?

Basically, you should add the detach.txt file to the root of your SD card and edit it by removing the comment (The prefixed "#") before the apps you want detached. Then flash the zip through the recovery. Keep in mind that after a phone reboot, the pending updates on the Play Store will disappear after about 60 seconds. I hope this helps and feel free to ask if this isn't what you needed (if you're using magisk i.e.) :)
[Android Software/Hacking General [Developers Only]] jimger:
Guys I can't make it work now... Does anybody knows a terminal command I can write to a script to detach YouTube market link?
[Android Software/Hacking General [Developers Only]] ToDream:
Have you tried reinstalling using the settings in detach.txt file?
[Android Software/Hacking General [Developers Only]] jimger:
Yes of course. But doesn't work. As others mentioned above. Both detach.txt and detach.custom using youtube's package name
[Android Software/Hacking General [Developers Only]] xd4d3v:
Same here!!
[Android Software/Hacking General [Developers Only]] micgeb:
Youtube is already detach after install the module.
[Android Software/Hacking General [Developers Only]] nanunoran:
Youtube Reattaches to Play Store

While I totally agree with you that initially when installed, youtube is already detached from Play store, somehow latest version always picks up Youtube as installed and tries to update it. I had to manually uninstall updates and turn off auto update. Now its daily reminder to update the app. I am on Oreo ROM ColtOS to be specific on N6. Please let me know what can I do to detach from play store permanently if someone knows a way.
[Android Software/Hacking General [Developers Only]] rafikowy:
Spent last night on trying to detach YT from Play Store (tried different methods found on xda, but not only) - no success. I can only assume, there is no way to detach YT from Play Store for now.
[Android Software/Hacking General [Developers Only]] micgeb:
Can anybody confirm does the detach 2.6 don't work anymore with the new Appstore?

I have already reflash detach.
[Android Software/Hacking General [Developers Only]] IlD4nX:
Tried it too and, no, is not working anymore...
[Android Software/Hacking General [Developers Only]] inb4after:
also not working here
[Android Software/Hacking General [Developers Only]] ja1235:
Works for me for now.

-Installed iYTBP by magisk

-place detach file to the root of SD card

-reboot to recovery

-install zip

-reboot

After reboot shown at play store but after minute disappeared.

Few reboots later notice that iYTBP is not active. But after uninstall actualisation from Google play manually( by using find) works like charm

Wysłane z mojego EVA-L09 przy użyciu Tapatalka
[Android Software/Hacking General [Developers Only]] J_M_V_S:
Working here too:

-Installed iYTBP by magisk

-place detach file to the root of internal memory

-reboot to recovery

-install zip

-reboot

OP3T OOS 5.0 (Oreo)
[Android Software/Hacking General [Developers Only]] micgeb:
Don't work on my LG G6.

For few days ago it was working fine.
[Android Software/Hacking General [Developers Only]] J_M_V_S:
Keeps working just fine here. Double check your detach.txt is in good order.
[Android Software/Hacking General [Developers Only]] hurray:
[MENTION=1909299]hinxnz[/MENTION]: Thank you very much for the script! It works very nice with Magisk from v14 to v14.5. Sadly it stopped working after updating Magisk to 14.6. I flashed "Detach-v2.6.zip" again but it don't work anymore.

I even tried to execute the script itself in a rooted terminal ( it is under /sbin/.core/img/Detach/post-fs-data.sh ) but that wont work either.

Later I will be trying every single command in the post-fs-data.sh one by one to see if there is a problem.

My current guess is that the issue is due to changes in the folders of magisk (/magisk is only a softlink in magisk 14.6 and the files itself are under /sbin/.core/ now).

Edit: I have rewritten the script so it echos every command. This is the output:

OnePlus3:/sbin/.core/img/Detach # ./detach.sh
Disable service that populates database
Component {com.android.vending/com.google.android.finsky.hygiene.DailyHygiene$DailyHygieneService} new state: disabled
Stop playstore to make changes
Change directory
/sbin/.core/img/Detach
Detach following apps from market
Detach Tapatalk
[B]Error: UNIQUE constraint failed: ownership.account, ownership.library_id, ownership.backend, ownership.doc_id, ownership.doc_type, ownership.offer_type[/B]

I don't know if it is a magisk issue or something has changed with sqlite and/or the playstore-db.

I have appended the changed script so my changes are visible. Just rename the ending to ".sh" and copy it to /sbin/.core/img/Detach to have the same situation as I am have.
[Android Software/Hacking General [Developers Only]] Imperial.mack:
Version 2.6 stopped working for me on AEX 8.1 and magisk 15.1 on note4x but I detached YouTube successfully using titanium backup.
[Android Software/Hacking General [Developers Only]] :
V2.6 works like a charm! Thanks buddy!

Edit:

After a few days, some updates it doesn't work anymore...

Don't know what causes the issue.
[Android Software/Hacking General [Developers Only]] FuTChY:
Hi,

I wanted to uninstall the mod. I created the .remove file and I flashed v2.6 again.

The .remove file is removed, yet the init.d file still shows in the init.d folder and it can't be removed as it's a read-only file. Shouldn't it be removed ? and how to do so ?

---------------------------------------------------------------------------

Sorry, checking again after a few minutes. It was removed successfully.

Many thanks.
[Android Software/Hacking General [Developers Only]] micgeb:
Boot in recovery, mount system rw. Then you can browse with file manager from twrp and you can delete, what you want.

Or you use the root explorer from the AppStore.
[Android Software/Hacking General [Developers Only]] Zanzibar:
I looked at the script you uploaded, but I have not tried it. I wanted to ask you about it first. Did this fix the situation for you? I have noticed that I have been getting the same error on most apps I try to detach from the Playstore.

# YouTube
./sqlite $PLAY_DB_DIR/library.db "UPDATE ownership SET library_id = 'u-wl' where doc_id = 'com.google.android.youtube'";

# Facebook
./sqlite $PLAY_DB_DIR/library.db "UPDATE ownership SET library_id = 'u-wl' where doc_id = 'com.facebook.katana'";

Error: UNIQUE constraint failed: ownership.account, ownership.library_id, ownership.backend, ownership.doc_id, ownership.doc_type, ownership.offer_type

# Custom Packages
./sqlite $PLAY_DB_DIR/library.db "UPDATE ownership SET library_id = 'u-wl' where doc_id = 'com.snapchat.android'";

Error: UNIQUE constraint failed: ownership.account, ownership.library_id, ownership.backend, ownership.doc_id, ownership.doc_type, ownership.offer_type

./sqlite $PLAY_DB_DIR/library.db "UPDATE ownership SET library_id = 'u-wl' where doc_id = 'org.zwanoo.android.speedtest'";

Error: UNIQUE constraint failed: ownership.account, ownership.library_id, ownership.backend, ownership.doc_id, ownership.doc_type, ownership.offer_type

I find it odd that it works OK for YouTube, but not for the other three apps. If the script you uploaded doesn't fix it, and is only an example using the new path and some echo commands, did you ever find a solution to this? Using Titanium Backup, I am able to detach the apps from the Playstore, but as we know, they still re-appear after a reboot.
[Android Software/Hacking General [Developers Only]] hurray:
No, I have currently no solution for the error. My script only shows a little bit better what is going on if the script runs.

I have read that the error "Error: UNIQUE constraint failed:" is a sqlite related error which means that the entry which is to change is not unique identifiable. But I have no clue how to solve this problem.

If I have a little more time I will investigate this more. The script was very useful when it works.
[Android Software/Hacking General [Developers Only]] Rom:
Hello,

For those whose MOD does not work properly with Magisk v15.X:

I had the same problem and i just have to edit a small part of the shell code so that the Magisk module is generated correctly during the install stage.

I also edited the "PACKAGES" var so that the filename quoted:

https://xdaforums.com/showpost.php?p=72194332&postcount=147

Corresponds exactly to the one indicated by its creator (otherwise you must delete the extension ".txt").

I did not change anything else

(if you still have doubts, use a tool like Github can serve in this case, i say that, i say nothing...).

I tested myself on Nougat phone (info about my custom ROM in my description) with Magisk v15.3, the MOD works perfectly again for me. About v15.4, i think it will works because there are no significant changes regarding magisk module compatibility, just try it.

Personally I only used the file "detach.custom.txt" (which i had already taken care to re-create myself) where i had written different names of pamages desired.

Edit: just reuploaded the renamed (Data.zip to Detach.zip, nothing more).

All credits obviously go to @hinxnz for his wonderful work.:good::cool:
[Android Software/Hacking General [Developers Only]] hurray:
Thank you very much! I will test it and give feedback. I am very interested about your changes in the script. :)
[Android Software/Hacking General [Developers Only]] hurray:
I tried the moded version but sadly it won't work. My custom apps where I want to prevent updates are listed as usual I the play store.

I deinstalled the original version, rebooted and then tried the moded version.
[Android Software/Hacking General [Developers Only]] Rom:
Hello,

Can you try this new modded version and feedback after please ?
[Android Software/Hacking General [Developers Only]] hurray:
I tried the new version but it won't work either. :( sorry
[Android Software/Hacking General [Developers Only]] Rom:
Have you any logfile of your flash install ?

Wich config file have u used ?