sunilpaulmathew / De-Bloater

An application using the power of Magisk to debloat unwanted system apps!
https://sunilpaulmathew.github.io/De-Bloater/
GNU General Public License v3.0
421 stars 16 forks source link

system apps on system_ext #8

Closed Davpyu closed 3 years ago

Davpyu commented 3 years ago

are there any ways to remove system apps on system_ext/ ?

sunilpaulmathew commented 3 years ago

@Davpyu Impossible at this moment. However, definitely possible if Magisk allowed to systems-lessly replace folder/files from that folder. Do you think it's possible to test in your end? I do not have any apps inside that place (in my phone).

Davpyu commented 3 years ago

i can test it if you want. the other way i use to remove system apps on system_ext is using gapps trash remover via twrp, and i need to edit the script so i can remove some apps which is kinda annoying.

sunilpaulmathew commented 3 years ago

sing gapps trash remover via twrp,

In that case, can you do the following?

  1. Debloat some unwanted apps (at least one, to initiate debloater module) using the app. It will then create a new folder at "/data/adb/modules/De-bloater" (skip this step if you are already debloated something with this app).
  2. Inside that folder, create the following folder and files. system_ext/APP/APK.apk where i. APP is the name of the folder in which the apk file to be debloated is located and ii. APK.apk is the name of the APK file to be debloated.
  3. Reboot and check the specific app is removed.
Davpyu commented 3 years ago

sing gapps trash remover via twrp,

In that case, can you do the following?

  1. Debloat some unwanted apps (at least one, to initiate debloater module) using the app. It will then create a new folder at "/data/adb/modules/De-bloater" (skip this step if you are already debloated something with this app).
  2. Inside that folder, create the following folder and files. system_ext/APP/APK.apk where i. APP is the name of the folder in which the apk file to be debloated is located and ii. APK.apk is the name of the APK file to be debloated.
  3. Reboot and check the specific app is removed.

not working after all Screenshot_20210602-172443

sunilpaulmathew commented 3 years ago

sing gapps trash remover via twrp,

In that case, can you do the following?

  1. Debloat some unwanted apps (at least one, to initiate debloater module) using the app. It will then create a new folder at "/data/adb/modules/De-bloater" (skip this step if you are already debloated something with this app).
  2. Inside that folder, create the following folder and files. system_ext/APP/APK.apk where i. APP is the name of the folder in which the apk file to be debloated is located and ii. APK.apk is the name of the APK file to be debloated.
  3. Reboot and check the specific app is removed.

not working after all Screenshot_20210602-172443

I mean, can you replace that APK with an empty text file with the exact same name (Music.apk). Also, please note that everything is case sensitive.

Davpyu commented 3 years ago

I mean, can you replace that APK with an empty text file with the exact same name (Music.apk). Also, please note that everything is case sensitive.

i've tried like what you said, but it didnt work, also i've match the folder and app name because i know it would be case sensitive

sunilpaulmathew commented 3 years ago

I mean, can you replace that APK with an empty text file with the exact same name (Music.apk). Also, please note that everything is case sensitive.

i've tried like what you said, but it didnt work, also i've match the folder and app name because i know it would be case sensitive

Okay, just to confirm, can you check the respective app is uninstall-able? Because, sometimes, even the app was debloated, a local update will exist in the data folder. Thanks a lot for the testing, anyway.

Davpyu commented 3 years ago

it cant be uninstalled

sunilpaulmathew commented 3 years ago

it cant be uninstalled

Then, probably it is beyond the scope of Magisk (and hence this app too).

dimqua commented 3 years ago

@sunilpaulmathew I am able to debloat apps inside /system_ext using Debloater (Terminal Emulator) module by specifying a custom directory (such as /system/system_ext/priv-app/ or /system/system_ext/app/).

It can't debloat apps inside /system_ext/ directory directly though, but at least on my system (LineageOS 18.1), it's just a symlink to /system/system_ext/.

Could you add a possibility to debloat apps inside /system/system_ext/ directory, please?

Davpyu commented 3 years ago

oh yeah, thats how gapps trash remover remove from system_ext

sunilpaulmathew commented 3 years ago

@sunilpaulmathew I am able to debloat apps inside /system_ext using Debloater (Terminal Emulator) module by specifying a custom directory (such as /system/system_ext/priv-app/ or /system/system_ext/app/).

It can't debloat apps inside /system_ext/ directory directly though, but at least on my system (LineageOS 18.1), it's just a symlink to /system/system_ext/.

Could you add a possibility to debloat apps inside /system/system_ext/ directory, please?

You mean, /system_ext is symlinked to /system/system_ext? In that case, we can also do that? We are doing a similar technique for apps inside /products.

Davpyu commented 3 years ago

yes @sunilpaulmathew like that, mostly use symlink

sunilpaulmathew commented 3 years ago

yes @sunilpaulmathew like that, mostly use symlink

Then, I'll definitely have a look at it in the near future. Please stay tuned.

sunilpaulmathew commented 3 years ago

@Davpyu @dimqua Any chance to test and see if the attached version of APK is able to see and debloat application inside /system_ext/app and /system_ext/priv-app folders. I can't do it myself here. My phone even do not have that folder. Thank you.

sunilpaulmathew commented 3 years ago

Closing this issue with the hope that v0.17 will solve it. If not, feel free to reopen it.

dimqua commented 3 years ago

Works for me. Thanks!

Davpyu commented 3 years ago

it works on me too, thank you @sunilpaulmathew