[GUIDE] [EMUI] Improve multitasking experience - General Topics

I stumbled across com.huawei.iaware thing when I was reading logcat on my Huawei device. As we all know, Huawei implemented their own very aggressive memory management on top of Android,and thus messing up multitasking experience. Even disabling Automatic Launch doesn't help, as background tasks are almost always killed. On my 2GB ram device, multitasking between only 2 apps has been a nightmare.
As seen on logcat, Iaware seems to mimic Android's Low Memory Killer but in the most aggressive way imaginable. This guide can also improve performance and battery (a little bit) as killing apps repeatedly is expensive
To disable com.huawei.iaware without root, assuming you have installed and setup adb, just run
Code:
adb shell pm uninstall -k --user 0 com.huawei.iaware
Note that doing the above command will not actually delete the app in any way and you can still receive Ota updates, but the only way to restore that app is by factory reseting your device
To disable com.huawei.iaware with root, just install Link2sd or any similar app you could think of that can disable system apps. Find com.huawei.iaware and disable it.

Mods, can you move this thread to Hacking and Development - > Android General? Thanks

Related

How to close Running Processes and Services

When i go in application mamangement, it just shows running apps not processes to kill. How do i find the application processes running like Google Services etc.
First, manually killing individual processes is generally a bad idea, as Android does a fine job of managing them. Plus, some processes will simply restart themselves if they're stopped unexpectedly. I'm not sure why you'd need to do this, but if you must, you can do it via adb.
To see all running processes:
Code:
adb shell PS
To kill a process:
Code:
adb shell kill <pid>
With <pid> being the process you want to kill.

Any task manager that actually works?

Hi!
I have tried various task managers from play store. They all show either nothing or just few app. Mostly they dont even display stuff that is running such as Firefox.
Sofar the only task manager that works for me is:
Code:
su -
top
But the problem is that it my phone has so many processes working that they dont all fit in one screen, and since top command is constantly updating, it scrolls back down. So I have to Ctrl - C to interrupt and then write kill -9 pid which is a bit annoying.
Is there any simple task manager out there that is graphical version of top command and that shows me absolutely everything, not only stuff that is currently active? To me it's important to see cpu usage next to pid.
sysctl said:
Hi!
I have tried various task managers from play store. They all show either nothing or just few app. Mostly they dont even display stuff that is running such as Firefox.
Sofar the only task manager that works for me is:
Code:
su -
top
But the problem is that it my phone has so many processes working that they dont all fit in one screen, and since top command is constantly updating, it scrolls back down. So I have to Ctrl - C to interrupt and then write kill -9 pid which is a bit annoying.
Is there any simple task manager out there that is graphical version of top command and that shows me absolutely everything, not only stuff that is currently active? To me it's important to see cpu usage next to pid.
Click to expand...
Click to collapse
No, task managers are crap, the native task killer that android has built in works fine. 3rd party task killers actually make the device work harder because they constantly reload the tasks that you kill.
Best option is root your device then uninstall unnecessary system apps, and use Greenify to freeze your other apps when they aren't in use.
All task managers, RAM savers, optimizers and battery savers are all junk, they actually do the opposite of what you think they do.
I DO NOT PROVIDE HELP IN PM, KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE
Dunno how with Android, but actually the 'top' command can be configurated to di what you want. Just read the top man page.
Sent from this galaxy
Clean Master is a good one. I got it mainly for it's ability to clear junk files, but the ram boosting ability is handy as well every now and then. It also has a mode that let's you launch games in "boosted" mode, which I think is just a clearing a ram when launching the game. Not sure if it maintains that or just just does a task kill at launch. Killed apps can often just restart soon after. Incidentally, I do that a lot for Iron Man 3.
ABSarah said:
Clean Master is a good one. I got it mainly for it's ability to clear junk files, but the ram boosting ability is handy as well every now and then. It also has a mode that let's you launch games in "boosted" mode, which I think is just a clearing a ram when launching the game. Not sure if it maintains that or just just does a task kill at launch. Killed apps can often just restart soon after. Incidentally, I do that a lot for Iron Man 3.
Click to expand...
Click to collapse
No, Cleanmaster is not a good one, none of the task killer/RAM optimizer apps are "good" they are actually counterproductive and make your device work harder in the long run.
Sent from my LGL84VL using Tapatalk
Instead of using a task manager that will probably not work, try Kernel Adiutor and try setting the Low Memory Killer to your wishes, following this guide.

List of packages safe to disable

Can anyone create a list of packages safe to disable or point me in the right direction. I've disabled alot of processes using BK package disabler. However I've been told that disabling things such as bixby processes can have negative effects on the battery.
To be honest, I've done a fair bit of reading on all of this.
I use Package Disabler Pro and it works well. I disable all Bixby and I cannot say I have suffered an battery related drain. For me the battery life is amazing when I compare it to my previous Note 3.
Have a look around, in 1 of the sections there is an extensive topic on packages and what to disable.
How much free memory does the phone require to run "smoothly"? After disabling 52 processes, there's about 1.2GB of free memory.

[ROOT] Stop system from killing apps on background

Hi! I've seen some threads regarding how bad memory management is on this device and I think I've found the culprit. I went to 'Low Memory Killer' tab on kernel adiutor and disable the 'Adaptive Low Memory Killer' and the apps stay on background even with multiple apps open at the same time! Unfortunately it seems to be impossible to do this without root but, for those with it, definately try this to see the results!
Eddie_53 said:
Hi! I've seen some threads regarding how bad memory management is on this device and I think I've found the culprit. I went to 'Low Memory Killer' tab on kernel adiutor and disable the 'Adaptive Low Memory Killer' and the apps stay on background even with multiple apps open at the same time! Unfortunately it seems to be impossible to do this without root but, for those with it, definately try this to see the results!
Click to expand...
Click to collapse
App is not more available on play store, i will try with hebf optimizer to see if i can change
Thanks man! Works really well
You are a legend
It works really good
Testing the way to do not use any third party apps for ®termux users! Script must be executed every boot!
Making bash files to easy run on boot:
Code:
echo 0 > enable_adaptive_lmk
echo "sudo cp enable_adaptive_lmk /sys/module/lowmemorykiller/parameters/" > boot
Running on each boot:
Code:
bash boot
Working!

Why can't I remove bloatware apps on secondary users in Android?

For context, I'm using stock Android 13 (rooted) on my Pixel 5, and I, for the life of me, cannot figure out how to remove preinstalled bloatware apps from the secondary users. To clarify, I'm not talking about apps from the primary admin user (i.e. --user 0 in ADB) or work profiles; I'm talking about secondary users in which only one can be used at a time. I have no issues with removing apps from the primary profile, but I actually want to use a secondary user profile without the bloatware. In ADB, the error I get is "Failure [DELETE_FAILED_USER_RESTRICTED]," which leads me to believe that it may be possible to change some parameters using ADB and pm, but I can't seem to find what I'm looking for. I also tried it on the device, since I have root, and that failed, too. As far as I'm aware, I'm one of the first people to inquire about this, so if anyone has any information that can help me with my issue, I would greatly appreciate it. Thanks for reading my post!
My theory. The secondary user is using a separate memory space and perhaps links to actual files (e.g. hard links) rather than real copies.
The purpose of creating a sub-user account is to limit its ability to make changes to the main system, which, as you can see from your analysis, has been achieved.
p.s.
Perhaps also the user id are different and have different permissions in the system.
An Android device can have multiple users, which are the equivalent of users on a computer, if device supports that feature: Note that user 0 isn't always identical with the device administator, it's the default system user - primary user - who exists on all Android installations, he is called root . Secondary users are Android users with separate apps and data saved between sessions will say it’s an entirely different profile with its own apps, settings, wallpaper, and the like.
Each user gets a workspace for installing and placing apps. No user has access to another user's app data. Each user can influence the installed apps for all users. An admin user can remove apps or even the entire workspace set up by secondary users.
Exception: OBB Folder (/sdcard/Android/obb) is used to share files and folder between the multi users, but OBB folder may not be shown in second user.
You manage these users with their specific user id like e..g. user 1027:
Example:
Code:
adb shell "su"
pm uninstall -user <USER-ID> <PACKAGE-NAME>
xXx yYy said:
Code:
adb shell "su"
pm uninstall -user <USER-ID> <PACKAGE-NAME>
Click to expand...
Click to collapse
This didn't work for me. I get the same error: "Failure [DELETE_FAILED_USER_RESTRICTED]." I was running as superuser from ADB. Do you know of any way to work around this?
I've figured out a solution. What I ended up doing was disabling and hiding the bloatware apps using ADB. Unfortunately, this requires root, but I was able to do this since I already had it. Here are the commands I used for each of the packages:
Code:
adb shell
su
pm disable --user USER_ID PACKAGE
pm hide --user USER_ID PACKAGE
If you don't have root, you can still do this for a similar effect:
Code:
adb shell
pm disable-user --user USER_ID PACKAGE
I hope this helps someone out in debloating Android apps from secondary user profiles.

Categories

Resources