yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] Koognod:
I tried but it still wasn't removed. I can see it in the list of custom apps when i flash. I know I spelled it correctly because I copied and pasted the name from app info (com.dd.doordash). is there a log maybe somewhere I can check to help troubleshoot. Maybe you can try this app and see if it works for you. I dunno, I'm running out of ideas😅
[Android Software/Hacking General [Developers Only]] nadeemakhtar1994:
I am using detach from a few weeks. Have enabled the Crond scheduler to run command at every 30 mins. How much battery does this drain?
[Android Software/Hacking General [Developers Only]] markfm:
Samsung S20+, Android 11.

My configuration file just has the base youtube file and youtube music (I originally tried it with just the default youtube app).

installing the module from magisk, the onscreen log gets to "reading configuration file", not further. After a handful of seconds the phone restarts.

I tried the troubleshooting path from OP, uninstalled, restarted, visited Play Store my apps, then new install - same results (not seeing it doing anything with the two apps in the configuration file, phone restarts)

No logfile is showing in my Internal Memory\Download folder.
[Android Software/Hacking General [Developers Only]] hinxnz:
UPDATE: Detach3 v3.10

https://xdaforums.com/t/module-detach3-detach-market-links

Changelog

- Removed package check (Some users have had issues, reboots etc.)

- Removed scheduler (Not needed for now)

- Removed unnecessary coding

- Added new method to prevent detached apps repopulating

- Added disabling of Play store trackers

- Other minor alterations in installer script

- Cleaned up installer script for new method

Note

Disable scheduler and uninstall previous version before installing this version.

Not necessary to disable play protect any longer.

Backup your existing configuration file if needed as uninstalling deletes it.

If you get a termux notification "Termux Plugin Execution Error ". Enter code below in Termux.

termux-job-scheduler --cancel --job 99
[Android Software/Hacking General [Developers Only]] arcsnim:
With latest version it's working very well. I tried with vanced and didn't got update prompt since.

Thank you
[Android Software/Hacking General [Developers Only]] k1984228:
I am using Detach3 v3.10, the detached apps appear again after few hours, how to fix that🙏
[Android Software/Hacking General [Developers Only]] hinxnz:
No problem here. Try again, follow trouble shooting in first post.
[Android Software/Hacking General [Developers Only]] djdelarosa25:
Flashed 3.10 and a few hours later, YouTube is still not showing up on the Play Store. The one on the Magisk Repo works for a while... until it doesn't. Thanks a lot for this.
[Android Software/Hacking General [Developers Only]] Koeties:
On my phone the detached Youtube shows up on the Play Store after a couple of days. Then I just flash the module again (no reboot). But it doesn't stick permanently.
[Android Software/Hacking General [Developers Only]] paour:
Same here, every once in a while I have to reflash. No big deal.
[Android Software/Hacking General [Developers Only]] n0j0e:
A Tasker profile that automatically re-install the Detach module with the help of Magisk/root if an update is available on the Play Store.

Tasker Share

taskernet.com

Edit: In the Detach task/shell command change the path to the place of the Detach.zip manually!
[Android Software/Hacking General [Developers Only]] Koeties:
This works well!
[Android Software/Hacking General [Developers Only]] n0j0e:
Forgot to write that everybody needs to change the path of the debloat.zip in the task/shell command! Sry.
[Android Software/Hacking General [Developers Only]] EthanG_1988:
When I try to use this tasker profile, I am encountering an error...any ideas how to fix this? Screenshots attached of the log output, and what the tasker task says after running. I changed the directory to where the detach module is prior to running the task.

Thanks in advance!
[Android Software/Hacking General [Developers Only]] n0j0e:
Sure that Tasker gains root correctly? Maybe try another path for the Detach.zip.
[Android Software/Hacking General [Developers Only]] DiamondJohn:
I do not use the detach module. However, I do know it uses the databases of the playstore. One of which is the "library" database. check it exists, is in the place the script expects and is a valid sqlite db.
[Android Software/Hacking General [Developers Only]] EthanG_1988:
It does have root properly. I can run other root tasks successfully. I will delete the SU permission in Magisk though, so that tasker prompts for access again just to be safe. Thanks!
[Android Software/Hacking General [Developers Only]] EthanG_1988:
Interesting! When I open the install.sh file in the module, I can see that it does go look for a specific .db file, but that directory is either hidden, or non-existent. When I flash this module inside Magisk, it works great, so something is being done differently when flashed using tasker.
[Android Software/Hacking General [Developers Only]] n0j0e:
Check in recovery! Solid Explorer is not a full root filemanager anymore.. :(

Or use...

File Manager - Apps on Google Play

Simple File Manager

play.google.com
[Android Software/Hacking General [Developers Only]] EthanG_1988:
Thanks! I am using a pixel 6, and there is no TWRP at this point as far as I know. I used the file manager that you linked to, and I can see that the file does indeed exist in the correct directory (library.db).

I am now thinking that tasker cannot access that directory, but Magisk manager can. There may not be a way around this issue at this point.
[Android Software/Hacking General [Developers Only]] DiamondJohn:
I know I have to change magisk root to Global to enable my File Manager (MiX) to see /data/data/* paths on newer Androids. Maybe Termux is also beholden to this same root restriction.
[Android Software/Hacking General [Developers Only]] EthanG_1988:
You solved it! Changing root mode to "global namespace" in Magisk manager allowed tasker to run the shell command successfully! Thank you!
[Android Software/Hacking General [Developers Only]] n0j0e:
Strange for me on DerpFest A12 AOSP it works with inherent setting.
[Android Software/Hacking General [Developers Only]] DiamondJohn:
It also works for @EthanG_1988

what did not work is running the script from Termux.
[Android Software/Hacking General [Developers Only]] n0j0e:
Ah ok, with the "Material Terminal" app the script works if inherent.
[Android Software/Hacking General [Developers Only]] DiamondJohn:
whoops... he said tasker. Same issue, but different app.
[Android Software/Hacking General [Developers Only]] hinxnz:
UPDATE: Detach3 v3.11

https://xdaforums.com/t/module-detach3-detach-market-links

Changelog

- Added ignore GET_USAGE_STATS in AppOps
[Android Software/Hacking General [Developers Only]] porotikos:
hi guys. i installed detach via magisk. i then temoved youtube via adb. i did all this so i could install youtube with lower version number, so i could then install youtube vanced. but when i tried to intall the youtube apk i needed, i got error that i already have a new youtube version installed... even when i dont have youtube installed. any idea what the problem is? cheers
[Android Software/Hacking General [Developers Only]] ShadowJP88:
I uninstalled YouTube with SD maid, so it removed the apps from the system application. I then reinstall vanced YouTube and it worked fine.
[Android Software/Hacking General [Developers Only]] porotikos:
will try it. it is in play store right? cheers
[Android Software/Hacking General [Developers Only]] ShadowJP88:
Yes you can download it back from the play store.

With the detach script, it isn't :)

So ... That should be good until the next Android update
[Android Software/Hacking General [Developers Only]] porotikos:
i downloaded it. unfortunately it doesnt let me uninstall youtube because this si a paid feauture it says... bummer. but thank you
[Android Software/Hacking General [Developers Only]] porotikos:
found a premium apk of SDmaid but still cant install premium version of youtube even after uninstalling it via sd maid. bummer
[Android Software/Hacking General [Developers Only]] hinxnz:
Normally you don't need to remove youtube to install vanced. Make sure your using the correct vanced manager to install it from https://github.com/YTVanced/VancedManager/releases

If you must, you could use a root file manager to delete youtube from your system apps.
[Android Software/Hacking General [Developers Only]] porotikos:
you are right, but believe me that nothing works. i think it has to do with the miui update i got. in this miui, youtube was installed that was higher version than the vanced manager youtube version. somehow, even if i remove youtube, its version is embedded somewhere in miui and it doesnt let you install lower version youtube. i dont know why. but nothing works unfortunately... anyway i will wait for new vanced. whenever it appears
[Android Software/Hacking General [Developers Only]] TKruzze:
Thanks for this module!

I'm one of those strange birds that actually reads and tries to follow instructions. Because the instruction above (from the OP) said that "/storage/emulated/0/Android/detach.cfg" was a directory, I took it literally and created it as a directory and placed my config file in there, but it never worked. It was always completely ignored.

Only when I created it as a FILE (NOT a directory), did it work as intended. It's up to you whether it's worth clarifying in the OP, but I thought I'd share how I (mis)interpreted the instructions. Thanks, again, for sharing!
[Android Software/Hacking General [Developers Only]] n0j0e:
detach.cfg must be placed in /storage/emulated/0/Android
[Android Software/Hacking General [Developers Only]] SubjectGinger:
Has anyone tried this on A12?
[Android Software/Hacking General [Developers Only]] blinoff82:
Yes, works fine.
[Android Software/Hacking General [Developers Only]] slmklc:
attaching apps after some time sadly...
[Android Software/Hacking General [Developers Only]] bzz11g:
doesn't work for me on Pixel 6, YouTube still show update in play store
[Android Software/Hacking General [Developers Only]] slmklc:
uninstall of module in magisk is enough to complete removal of detach right?
[Android Software/Hacking General [Developers Only]] onimorza:
Try the Magisk module "systemless debloater (REPLACE)" to "remove" the newer YouTube version from system.

Then you don't need to install an older YouTube version but just install Vanced right away.

Then combine this all with detach3 to get rid of the YouTube playstore updates.
[Android Software/Hacking General [Developers Only]] DiamondJohn:
I am pretty sure there are changes to the playstore that do not revert if the Magisk module is removed. However, the playstore has many ways to try and correct itself.
[Android Software/Hacking General [Developers Only]] hinxnz:
Everything is reverted and deleted, a reboot is needed after uninstalling or removing the module for the process to complete. No traces are left.

Playstore data gets cleared when rebooting after uninstalling too.
[Android Software/Hacking General [Developers Only]] hinxnz:
UPDATE: Detach3 v3.12

https://xdaforums.com/t/module-detach3-detach-market-links

Changelog

- Updated sqlite binaries

- Removed disabling of fallback receiver

- Added disabling of alarm manager background service
[Android Software/Hacking General [Developers Only]] Jleeblanch:
I just wanna say thanks for this, much appreciated!

Currently using it with the latest TBO v29.6 update.

Also, I made a couple edits to include GBoard (Google Keyboard) as that is also included in the Theme Ready GApps zip. Made it so it's included automatically if no "detach.txt" file is found, or selectively if one is, as you have already done with the other standard/included apps. Maybe you could add that in for a future update?

Can't say thank you enough. I'm still learning to code, but am catching on quick ?. The other options for doing the same thing aren't quite as reliable and seem to either 'reset' on reboot or just simply cause "FC's" randomly.

# My Device Setup for reference #

--> Moto G4 (xt1625)

--> Resurrection Remix 5.8.1 (Android 7.1.1)

--> TBO GApps v29.6 arm Aroma Install
[Android Software/Hacking General [Developers Only]] hinxnz:
Your welcome, I'll add google keyboard in next update. What apps are resetting or force closing so I can test them. I'm hopefully going to update to 7.1.1 tonight and to the latest theme ready apps, haven't had much time lately.
[Android Software/Hacking General [Developers Only]] Jleeblanch:
I haven't had any issues with your mod, even with adding in Google Keyboard myself. I've had issues using other options tho, random FC's, issues with it still showing needing updating. Your mod is working flawlessly on 7.1.1 for me ☺️
[Android Software/Hacking General [Developers Only]] oppodi:
Hey I'm new to this

I'm on AOSP aex 7.1.1 with embedded SuperSU

So I just have to flash the zip to stop play store update? Is it safe?
[Android Software/Hacking General [Developers Only]] hinxnz:
Great but I'm not sure what you mean by your issue your having with random FC's and what is showing an update for you? Possibly the play store entry in mod needs updating but I can't tell as yet until I update my phone to the latest theme ready apps myself, should be able to later tonight.

Yes it's safe. If you don't want any other theme ready app to update, then use the detach.txt file and don't remove any of the comments in it.
[Android Software/Hacking General [Developers Only]] Jleeblanch:
I think you're misunderstanding me. I'm am NOT having ANY issues with your mod, period. It's working for me WITHOUT issues. ?
[Android Software/Hacking General [Developers Only]] hinxnz:
Update: Detach_v2.3.zip + detach.txt

Added Gboard, Clock, Camera, Google Connectivity Services, Google VR Services & Google Play Services.
[Android Software/Hacking General [Developers Only]] HamsterHam:
[MENTION=1909299]hinxnz[/MENTION] - can you take a look at why the google app isn't detached. It's the only app that doesn't detach for me. Apart from that all good. Thanks
[Android Software/Hacking General [Developers Only]] kantjer:
weird, for me Google APP is detached but GBoard is not :confused:
[Android Software/Hacking General [Developers Only]] HamsterHam:
[MENTION=3306843]kantjer[/MENTION] - I think my issue was that I was enrolled in the beta for the google app. Once I left the beta and restarted it was gone!
[Android Software/Hacking General [Developers Only]] kantjer:
[MENTION=1909299]hinxnz[/MENTION], it seems Gboard is missing in the script, thats the reason It's not getting detached.
[Android Software/Hacking General [Developers Only]] hinxnz:
When you say missing, did you forget to remove the comment in the detach.txt or did you flash it without the detach.txt and it's just missing?
[Android Software/Hacking General [Developers Only]] kantjer:
Let me try to explain in more detail

In the detach.txt file I selected 4 app's to be detached (I'm using a slimmed down TBO.zip)

- Detach Market Apps Configuration -

- Remove comment (#) to detach an App.

#Contacts
#Gmail
Google App
Google Plus
Hangouts
#Phone
#Photos
#YouTube
Gboard
#Clock
#Camera
#Inbox
#Duo
#Dropbox
#PushBullet
#Calendar
#Keep
#Telegram
#Swiftkey
#Translate
#Facebook
#Pandora
#Twitter
#Slack
#Mega
#WhatsApp
#Voice
#Drive
#Netflex
#Pixel Launcher
#Wallpapers
#Capture
#Google Connectivity Services
#Google VR Services
#Google Play Services

After flashing the Detach-2.3.zip I notiched only 3 apps where detached from GPlay, GBoard was still there as installed app.

I then checked the magisk/Detach/post-fs-data.sh file and noticed Gboard was not in there

#!/system/bin/sh

# Detach Apps from Market by hinxnz

# Playstore database and SQLite directory
PLAY_DB_DIR=/data/data/com.android.vending/databases
SQLITE=/magisk/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.dailyhygiene.DailyHygiene$DailyHygieneService'

# Stop playstore to make changes
am force-stop com.android.vending

# Change directory
cd $SQLITE

# Detach following apps from market

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

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

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

# Exit
exit; fi
done &)

EDIT: my bad, I accidentally downloaded and flashed Detach-2.2, now with 2.3 everything is OK
[Android Software/Hacking General [Developers Only]] Wolfcity:
Is it possible to detach other apps than tbo from playstore? I've flashed the Motorola camera on my 7.1.1 ROM and an update will break it's functionality.

So I would like to expand the script with com.motorola.camerone.
[Android Software/Hacking General [Developers Only]] sjamie:
[MENTION=1909299]hinxnz[/MENTION], I would also like to detach Google Maps/Navigation and Google Street View. Is this possible? I added those entries to detach.txt but that had no effect. Detaching YouTube worked like a charm. :good:
[Android Software/Hacking General [Developers Only]] sjamie:
I guess the bigger question is how to detach apps that are not listed in detach.txt? Simply adding them to the file does not detach them from the Play Store.
[Android Software/Hacking General [Developers Only]] kantjer:
I haven't tried it but my guess would be you also need to add the app to the "META-INF\com\hinxnz\script" file in the detach.zip.

Just adding it to the detach.txt won't work, you need to tell the script what to do.
[Android Software/Hacking General [Developers Only]] sjamie:
I'll check that out. Thanks!
[Android Software/Hacking General [Developers Only]] Wolfcity:
Sure. But I'm not a big coder so it's difficult for me to check out where to add the apps I want to detach. I will try but if someone can guide me a bit it would be helpful.
[Android Software/Hacking General [Developers Only]] Wolfcity:
So I tried to detach my flashed Moto camera from playstore. I canged the detach.txt file and the script found in META-INF\com\hinxnz\script.

It didn´t work, what I am doing wrong (see attached screenshots)

Have I to rename the MotCamera? That´s how the folder is named. And the app is called com.motorola.camera one.

edit: I removed the space between com.motorola.cameraone but still no sucess.
[Android Software/Hacking General [Developers Only]] n0j0e:
Great, thanks! Please add the updateJson string (Magisk v24.x) for the Magisk Modules Alternative Repository.
[Android Software/Hacking General [Developers Only]] DiamondJohn:
I remember looking at an earlier version,l and I was sure it had some delete statements against the Playstore data. But as I said, the playstore would eventually clean that up and reinsert, eventually. A reboot will not necessarily delete data. And if you are talking about uninstalling the detached app, I think when I was looking into it, in the cases I tested, the data was not deleted From the playstore, but simply flagged as not installed.
[Android Software/Hacking General [Developers Only]] hinxnz:
I'll have a look at it when I have some time, are you wanting it submitted to the repo or just the string added to the module.prop?

Oh okay, it edits a database in playstore data and disables some of its components. I use an uninstall script to revert the disabled components and to clear the playstore data too, so all databases are rebuilt. This runs on boot if the module is uninstalled or removed.
[Android Software/Hacking General [Developers Only]] DiamondJohn:
Its been a while since I looked at the script, so it may of changed; or I remember incorrectly. But from memory, you delete a record in at least one of the tables, and back then you were not making a backup of the row that you deleted, so I dont see how you would be able to revert the data you had deleted, since some of it is cryptic to understand.
[Android Software/Hacking General [Developers Only]] doc411:
Thanks you
[Android Software/Hacking General [Developers Only]] enskje:
installing module breaks at a glance widget weather updates
[Android Software/Hacking General [Developers Only]] hinxnz:
No it doesn't. It has nothing to do with the google now app and its 'at a glance' widget.
[Android Software/Hacking General [Developers Only]] enskje:
yes it does on my pixel 4 xl. I've tried module few times with different apps. tried to disable optimization on Google app without any luck. after phone enter deep idle, weather updates breaks.

P.S. module also prevents Adaptive audio from disappearing in settings, but that's a welcome feature.
[Android Software/Hacking General [Developers Only]] hinxnz:
It just a coincidence, it not related.

At a glance weather refreshes every 6 hours I think..
[Android Software/Hacking General [Developers Only]] DiamondJohn:
Try checking it after starting the Playstore, and then doing reboot.
[Android Software/Hacking General [Developers Only]] SiNCERiTy2:
Hi. So, I use YT Vanced and YT Music Vanced. And, I've used this before to disable YT Vanced's auto-update, and it had worked before. This time however, I got the auto-update for YT Music Vanced. I flashed "detach-3.12.zip" through Magisk, but weirdly, it only detects YT, and not YT Music. I tried flashing "detach-3.11.zip" and "detach-3.08.zip". Still doesn't work. YT Music still has the update reminder.

Edit : So, I've managed to fix this problem. I noticed that there's a "detach.cfg" at /sdcard/Android, and on that file, I added YT Music, and I flashed "detach-3.12.zip" through Magisk, and it works.
[Android Software/Hacking General [Developers Only]] AnyNameYouWish:
I wanted to report something similar but was waiting for it to happen again in order to join a screenshot.

I removed Youtube by clearing cache and user data and updates, then using debloat and then detach (3.12) com.google.android.youtube. After that, I installed YT Vanced.

Sometime Play Store suggests update for YT but with a little warning /!\ sign and it seems it can't proceed, yet I didn't tried it.

Flashing Detach again make it disappear again, but eventually it comes back just like the T-800
[Android Software/Hacking General [Developers Only]] xFaultx:
Android auto keeps reattaching and updating. Anyone know a fix?
[Android Software/Hacking General [Developers Only]] AnyNameYouWish:
@DiamondJohn messaged me to suggest to use his app :

You could try, adapting the solution to android auto.

I haven't tried it yet as the problem randomly pops up, and it didn't occured since my last message 🤞
[Android Software/Hacking General [Developers Only]] xFaultx:
Gonna give it a go. The only thing is there are 2 'Invalidate the Data' options, I wasnt sure which to pick. Trying the '...and reverse the data' not the option with 'elicit an error'
[Android Software/Hacking General [Developers Only]] cahir1495:
I can't detach Messenger app. I added Instagram and Messenger to the list, but only Instagram is detached.
[Android Software/Hacking General [Developers Only]] hinxnz:
Check the package name is correct in the config file, I removed the package check in the mod.

Otherwise uninstall the module, reboot, open playstore and navigate to Manage apps and device section, playstore will then populate. Then try installing module again to detach your apps.

If that fails, you could send me your "library.db" found in "/data/data/com.android.vending/databases/" so I can have a look at it. It contains your gmail address and your past and present apps, so you can send it via pm if you like.