Having issues removing system apps in Kitkat? - Xperia SP General

Since having an xperia arc, I have used system tuner pro/es file explorer/titanium backup in order to remove system apps.
However in CM11, I have been having difficulty removing system apps, I get the messages "could not remove application" or "failed to remove application" etc etc depending what app I was trying to remove things with.
I've just discovered why this happens and how to solve it easily.
This may help others in same situation.
So... from googleing a bit I found this thread:
http://forum.xda-developers.com/showthread.php?t=2602670
Which led to this thread:
http://forum.xda-developers.com/showthread.php?t=2592456
Which led to this thread:
http://forum.xda-developers.com/showthread.php?t=2524485
So from what I've read, Kitkat has introduced some security features... I'll cut and paste the rest.
Remember to go say thanks to the dev!
"There are lots of folks around who already has KitKat on their devices. But kitkat comes with new secutity enhancement, SELinux, put into "enforcing mode". Maybe This thing is good from the point of security, but it breaks some Root Apps, like my Ultimate Dynamic Navbar, so I created this app.
What does it do? This app can change modes of SELinux:
Run app, give root access, select the mode you want SELinux to be in(permissive or enforcing) and that's all. Every time you reboot your device app will execute the script to change SELinux to the mode you've selected. Simple and stupid."
http://forum.xda-developers.com/showthread.php?t=2524485

Related

LG G2. I just rooted, what now?

So I just rooted using this tutorial on theunlockr
This is my first time rooting an android phone. I used to root the old iphones way back in 07 and 08 and it would put an app on homescreen to access apps.
I have no idea what to do now on the LG. Is there something else I download.
Where can I get apps?
What is this ROM Gummy stuff I keep reading about?
Thanks again
Rooting on Android is basically like getting 'administrator access'. Some applications require root access to perform certain functions. It doesn't really add a new 'app store' like Cydia. You can find applications in the form of .apk files and install them by copying them to your phone and running them (Google is your friend). You don't need root to actually install the application, but some apps require root access to function.
Some apps that need root access are Titanium Backup (for hiding/deleting un-installable apps like the AT&T/Verizon junk) or Xposed Framework. Xposed framework, along with the G2 Xposed app lets you tweak certain aspects of the UI - something that normally LG doesn't allow. You can change the Menu button to a Recent Apps button (more like stock Android) or remove the Volume/Brightness sliders from the Notification Slider since they take up a lot of visible space.
Alternatively, you can now follow the tutorial for installing TWRP recovery on your phone. TWRP is an enhanced recovery mode that will let you flash custom ROM's or other mods to your phone. It also has a handy backup function (commonly called a Nandroid backup) which basically saves an 'image' of your phone in its current state. This way if you screw up flashing a new ROM and end up on a blank screen with Android not loading, you can always boot into Recovery mode and restore the Nandroid backup to get your phone working again.
Flashing something through TWRP requires getting a zip file of the ROM/Mod, copying it your phone's storage and then booting into Recovery. From here you'll be able to flash the zip. You can find custom ROM's in the appropriate Android Development subforum. You can also find certain mods like the SplitWindow mod - which has been ported from another LG phone (and requires Root access). It basically lets you run two applications side-by-side in a split-screen view.
get exposed framework and add modules to change apps native dpi, change privacy options off apps.
Search on safe to delete bloatware and slim phone down.
but before all this nandroid plus backup efs everywhere.
if feeling daring, go custom roms and void warrantee even more
Sent from my LG-D802

[SM-P905][SM-P907A] Debloating bloatware after rooting + Power On sound removal

** DISCLAIMER: I AM NOT A DEVELOPER. I DO THIS AS A HOBBY AND SHARE MY FINDINGS IN CASE SOMEONE ELSE FINDS THEM USEFUL. **
** THIS WORKED ON MY DEVICE BUT IT MAY NOT WORK ON YOURS. APPLY AT YOUR OWN RISK **​** These scripts are written for Kitkat. Do not use on Lollipop. **​ What is new (9/7/2014)
Version 4 provides more Samsung bloat removal, Google bloat removal, and as a bonus it can disable the power on sound.
Background
Samsung has a program running on most of its devices that pushes "Security Updates" onto the device. If you make the mistake of accepting this security update, even after you root your tablet, it will patch the hole and you will never be able to use towelroot or any other know exploit as of June 2014 to root your it again. So this must be immediately disabled after a successful rooting.
Your tablet is also equipped with Knox. One component of Knox is in the bootloader and checks the integrity of the recovery and kernel. If it sees anything has changed at that level it trips the knox flag immediately, which is irreversible. That component can almost never be touched. The second component runs when the OS is up and running and its main task is to monitor the activities of the apps in your system and shut them down if they act "suspiciously". When you are rooted and install SuperSU, this element of Knox keeps detecting the background root activities and shuts them down and gives you warnings. There is therefore a high level of risk there if you let root and knox exist concurrently. So after rooting, this second component of Knox should normally be disabled.
Finally, there are useless junk apps that most of us agree Samsung should have never shipped with the tablet, or even if they are useful we want them gone to get a better battery life.
I will call all of the above (updaters, Knox, and useles junk) bloatware. The scripts attached here can disable or enable the bloatware on your tablet, which comes in handy if you do not have Titanium Backup Pro to freeze or remove bloatware. And since someone will ask at some point, no, it won't trip your Knox!
Please read below and understand what this script disables before you use it. There may be an app on the list that you may actually want to keep.
Requirements:
Rooted Samsung Note Pro 12.2, SM-P905 international model.
Android Terminal Emulator: https://play.google.com/store/apps/details?id=jackpal.androidterm&hl=en
The international version (P905) is tested with baseband P905XXUANA7, build P905XXUANC3 .
The ATT version (P907A) is tested with build KOT49H.P907AUCU1AND7 (thanks to @gerard0986 for testing the script)
Makes sure you download the version that is suitable for your tablet. It may work to varying extents for other models and firmwares.You try and tell me
If you are using models other than P905 or P907A, I can make a new script for you if you provide me with a "ls -R -l" dump of your /system, or even better, if you post your firmware somewhere online.
Download link:
Attached below
Instructions:
Generally speaking, you should always have a Nandroid backup before trying anything new. Also have a flashable ROM handy. I am not responsible if you brick your device while using these scripts.
To debloat:
1- Unzip the attachment and copy debloat.sh to your phone at /sdcard
2- Run the terminal emulator and type the following:
su
cd /sdcard
sh debloat.sh​3- Choose what you want to disable, or exit.
4- If you choose not to exit, the code does its thing and reboots your tablet. The bloat is gone now
To restore the bloatware:
1- Unzip the attachment and copy enbloat.sh to your phone at /sdcard
2- Run the terminal emulator and type the following:
su
cd /sdcard
sh enbloat.sh​3- The code will warn you:
Are you sure you want to restore the security/firmware/software updaters, and Knox?
They may immediately patch your system and make the existing root methods impossible to apply.
Then you can choose what to enable, or just exit.
4- If you choose not to exit, the code does its thing and reboots your tablet. The bloat is back now
Note that while running the debloat script you may get force-closing popups. This is normal; after all you are disabling these applications!
Limitations:
If you have previously removed bloat using other means this script CANNOT recover it for you. enbloat.sh can only restore what debloat.sh has disabled.
If you have debloated using an older version of this code and you want to try a newer version of it, first use enbloat from the older version to return everything to the original configuration and then use the newer version.
When you are restoring the bloat, it is best to enable "airplane mode" so that your tablet does not try to patch your system with a security update without your knowledge. You can disable the airplane mode after you debloat again.
Change log
V5:
Typos fixed.
=============
V4:
Option to disable all Google services except Youtube, search, map, and TTS
Option to disable/enable Power on sound
=============
V3:
The scripts give separate options to enable/disable these groups of bloatware:
1- Updater/knox
Firmware Upgrader, Local FOTA, Security Manager, FOTA Client, Security Update Client, Samsung Push Client, Samsung Software Update, Knox and its related apps
2- Samsung bloat
ANT, Blurb, ELM Agent, Samsung Apps apk and widget, Job Manager, Samsung cloud backup files, Context Provider, S Finder, S Voice, Samsung Account Service, aaIgnite_1.5.15_singtel, weplay_1.3.162, PCWClientS18
3- Other bloatware
Accuweather, Bloomberg, Dropbox, Evernote, Flipboard, NY Times, Remote PC, ,Travel Service, Twitter, WebEx, Line, Pinboard Scratch book, SNS, eMeeting
=============
V2:
The scripts give options to enable/disable updater/knox and other bloatware separately.
Added these to the disable list of V1:
SecurityManagerService, aaIgnite_1.5.15_singtel, weplay_1.3.162
=============
V1:
The script disables the following:
Firmware Upgrader, Local FOTA, FOTA Client, Security Update Client, Samsung Push Client, Samsung Software Update, Knox and related apps, ANT, Blurb, ELM Agent, Remote PC, Samsung Apps apk and widget,Travel Service, Twitter, WebEx, Line, Samsung cloud backup files
PCWClientS18, Scratch book, S Finder, SNS, Samsung Account, eMeeting
Would this work for the T-900 version too?
What do I need to get the info required to get a script made for the sm-p907a model? I read above post but the list of things required were above my head lol.
Sent from my SAMSUNG-SM-P907A using XDA Free mobile app
iNiREALiZED said:
What do I need to get the info required to get a script made for the sm-p907a model? I read above post but the list of things required were above my head lol.
Sent from my SAMSUNG-SM-P907A using XDA Free mobile app
Click to expand...
Click to collapse
1- What is your firmware version?
2- Open the terminal emulator and type the following commands in there:
su
cd /system
ls -R -l > /sdcard/sysdump.txt
Then pm the file sysdump.txt which is saved on your sdcard to me.
thank you
Thank you najoor for the neat script, it executed successfully on my sm-p905 (UANE1 rom) & removed the useless software, it saves a lot of time removing them manually.
Nice work
Hope to see a version for the SM-P907 soon.
Rockytop00 said:
Would this work for the T-900 version too?
Click to expand...
Click to collapse
I think the only existing models are SM-P900, SM-P905, SM-P907A and SM-P905V. I don't know what T-900 is.
If you are referring to model P900 (wifi only) this code may partially work but a lot of files are different between the two models so the outcome is a partial debloat. If you want, you can make a system dump file as I suggested in this post http://forum.xda-developers.com/showpost.php?p=55029414&postcount=5 and send it to me so I can make a custom code for you.
Edit: It appears that T900 is the Tab pro model which is a different device. This thread is for Note pro 12.2 and since I do not own a Tab Pro I cannot answer this question. Perhaps help can be found in the XDA's Tab Pro forum at http://forum.xda-developers.com/galaxy-tab-pro-12-10-8. or try these scripts as they are and see if it works for you.
Hey najoor, Im hoping that you can help me debloat my galaxy tab pro 12.2 sm-t900. I just bought it today and am shocked at the amount of bloatware thats included lol.
Basically I want everything removing that I can install through googleplay, leave the default browser.
Here is the log that you mentioned to the other guy also:-
View attachment sysdump.txt
Ill try to pm it also, really hope you can help out.
Pixel
Debloat method
I used this method but i accidentally uninstalled all google services, and google play store was apart of that, is that normal? And if it is are there ways to get it back?
stockerrodney said:
I used this method but i accidentally uninstalled all google services, and google play store was apart of that, is that normal? And if it is are there ways to get it back?
Click to expand...
Click to collapse
Yes, that is part of bloat removal. To get Google bloat back run the enbloat.sh script and hit y when it prompts you about restoring Google bloat.
stockerrodney said:
I used this method but i accidentally uninstalled all google services, and google play store was apart of that, is that normal? And if it is are there ways to get it back?
Click to expand...
Click to collapse
najoor said:
Yes, that is part of bloat removal. To get Google bloat back run the enbloat.sh script and hit y when it prompts you about restoring Google bloat.
Click to expand...
Click to collapse
If i do the enbloat method will i have to reinstall knox ? Or will i still be able to keep it off?
When you use the enbloat.sh you only restore the stuff you choose. You don't have to restore everything. In your case you leave knox and other things out and only answer yes when it asks you if you want Google bloat to be restored.
The script is very user friendly. Just run it and follow the instruction. And just to give you peace of mind, these scripts do not delete anything from your system permanently so don't worry about breaking your system.
Any chance you could add the option to remove individual items?
http://forum.xda-developers.com/android/software/debloater-remove-carrier-bloat-t2998294
Debloat v5.0 removed Scrapbook from Air Command
The debloat worked fine but the Scrapbook app in Air Command is now showing error "no application found to handle this actions".
Please advise.
mojoe said:
The debloat worked fine but the Scrapbook app in Air Command is now showing error "no application found to handle this actions".
Please advise.
Click to expand...
Click to collapse
Removing apps is what a debloating script does. If you want your app back just run the enbloat script. All the instruction you need is provided in the original post.
najoor said:
Removing apps is what a debloating script does. If you want your app back just run the enbloat script. All the instruction you need is provided in the original post.
Click to expand...
Click to collapse
Appreciated. I wanted to debloat but did not expect the scrapbook app to be debloated. Is there any way that I can retrieve this one app, without the rest of the garbage that will return if I "enbloat".
I recall finding the app the last time and renaming from .bak to .apk and it worked.
Can you tell me where to find the apk.
mojoe said:
Appreciated. I wanted to debloat but did not expect the scrapbook app to be debloated. Is there any way that I can retrieve this one app, without the rest of the garbage that will return if I "enbloat".
I recall finding the app the last time and renaming from .bak to .apk and it worked.
Can you tell me where to find the apk.
Click to expand...
Click to collapse
The app is either in /system/app or /system/priv-app. Rename app.apk.bac and app.odex.bac if it exists to app.apk and app.odex and reboot. I don't remember exactly which app is the one you need.
najoor said:
The app is either in /system/app or /system/priv-app. Rename app.apk.bac and app.odex.bac if it exists to app.apk and app.odex and reboot. I don't remember exactly which app is the one you need.
Click to expand...
Click to collapse
Thank you. I will return with the name once I find it.

[Q] Knox hindering setting Security Enhanced to permissive!

Hello,
First I'm sorry to post in the S4 Section but the Forums for the S4 VE somehow don't accept any new posts.
I've rooted my GT-I9515 running Lollipop 5.0.1 a few days ago and am pretty happy with the features.
Seeing that my WhatsApp Media Folder takes to much space on sd0 I used Folder Mount to put it on ext.
It seemed fine till WhatsApp wasn't able to download Pictures anymore only showing the Thumbnail and stating the file is not on the SD.
This is a Bug with Folder Mount on Lollipop 5.0.1 and is fixable with setting the Security Enhanced Linux to "permissive".
I first tried that with the App for it, the author wrote that it doesn't work well with Knox.
I researched and frooze the Knox Application with Titanium (no effect), after that I removed them and rebooted my system (No effect but theyre not there anymore), as a last resort I downloaded Android Terminal Emulator and tried it with "su pm disable com.sec.knox.seandroid".
After the reboot I tried it with the App but it didn't work, I tried it via "su setenforce 0" but it also had no effect.
Right now it shows under About Device like the uploaded image.
i.imgur. com/RWNqtYw.png (Sorry for the format am new user!)
I don't know what to do, how can I remove Knox to set SE to permissive?
It still gets displayed under About Device.
Thanks for help!
Install a custom kernel, as the custom kernels are all set to permissive.
Strephon Alkhalikoi said:
Install a custom kernel, as the custom kernels are all set to permissive.
Click to expand...
Click to collapse
I heard that I can only use the i9515 Kernel otherwise Touch, WiFi, Bluetooth and etc. won't work.
I only found a Kernel for the i9515 here (http://forum.xda-developers.com/galaxy-s4/i9505-develop/kernel-s4-value-edition-i9515-t3031044) but it says it's a stock Kernel so I guess it wouldn't help me with my problem right?
Right. You'll need to find someone who can either modify the stock kernel so SELinux is permissive, or create a kernel from source.

[SOLVED] Need help to remove/uninstall Malware app.. Any suggestion..

[SOLVED] It was installed in the Secure Folder.. that's why I couldn't find it. I managed to install Avast, and then install it on the Secure Folder. Following that I ran Avast scan inside the secure folder and it found the apk and removed it. Pesky app..
Recently downloaded an apk that locked my phone.. I noted that it had the Draw over other apps permissions but didn't think it could cause this..
Anyway, this app fills the whole screen and can not remove it. I was able to turn off the phone by long pressing the power and volume buttons and when restarting I discovered that I was able to use the phone for a couple minutes before the malware appeared again.
During this time I was able to power off phone and get to Safe Mode. I disabled all the apps which had the overlay permission and also apps that affect system configuration.
But I am currently not being able to find it and uninstall it. Although doing the above steps the malware still appears and locks my screen when I enter normal mode.
**Is there a way to find the latest app installed and remove it without root? Otherwise, would it be possible to remove it via ADB? I've never used it but I believe it could be useful this time.. the only thing is I am not sure what's the .apk name..
I'm using a Galaxy S8 international version without root
Thanks in advance for your help!!!!
SOLVED IT.
Name: VideoChat.apk
It was installed in the Secure Folder.. that's why I couldn't find it. I managed to install Avast, and then install it on the Secure Folder. Following that I ran Avast scan inside the secure folder and it found the apk and removed it. Pesky app..
If i were you, i would factory reset, even if you did successfully remove that app.

Q: Bloatware on boost mobile E4. I need help removing them.

I have tried uninstalling them through multiple apps in the playstore and it always says failed. I am rooted and I want to use the stock rom for now until the data issues are patched. I have disabled the apps I just don't want the on my phone. The facebook apps you can't disable the update. I don't trust facebook and I don't want anything to do with it on my phone so if anyone know's how to remove them please let me know. Thank you.
bluemoonlight said:
I have tried uninstalling them through multiple apps in the playstore and it always says failed. I am rooted and I want to use the stock rom for now until the data issues are patched. I have disabled the apps I just don't want the one my phone. The facebook apps you can't disable the update. I don't trust facebook and I don't want anything to do with it on my phone so if anyone know's how to remove them please let me know. Thank you.
Click to expand...
Click to collapse
BEFORE READING, MAKE A BACKUP PRIOR TO THIS ANSWER:
I'm sorry to say, but it would need to be done using the file manager via TWRP. It is a lil tricky because it lacks concise deletion. So it is best to use a rooted file explorer (es file explorer is beneficial for this) and look around these locations:
/system/app
/system/priv-app
/oem/app
/oem/priv-app
Each folder holding the apk must be deleted individually in TWRP's file manager, or you WILL face a possible soft-brick.
Good luck.
(The reason why is, because the oem section is more secure to avoid a break of the phone itself, so it will freeze everytime while the actual OS is in use. Doing it via TWRP ensures deletion and avoiding a freeze bc the recovery OS is different from stock OS)

Categories

Resources