Demo - Huawei Mate 20 Lite Questions & Answers

hi, i removed demo app but notify in statusbar still alive,
i can kill it via usb
adb shell am force-stop com.android.systemui/.DemoMode
but can't disable it from phone terminal.
Any way to kill com.android.systemui/.DemoMode from phone terminal without root? So i create app for kill it at every reboot

Related

[Q] adb install -r error

on CM7 nitely #64 w adb install issue:
adb install -r ${apkName} --CORRECTED THIS CMD WORKED FINE --
Above should replace. But I find that in order to force new app version that i have to do the following:
adb uninstall $PackageName
adb install ${apkName}
and that the first cmd ( uninstall ) deletes any sdcard data and any mySqlData bound to the app. It makes PIA to do alot of test cycles cause every time that the app cycles , you need to run a script to replace all the data.
My question ...
why isnt install -r actually doing a replace of the app?
Process Mgr does NOT show the app running. I dont know if its background cached or something. I always seem to pick up the old app version when i try to use 'install -r '

How To Guide How to debloat Galaxy Tab S8 ♻️

In this guide we will see step by step how to debloat the Galaxy Tab S8​
First of all we have to enable: Developer Options
Settings->About tablet->Software information->(tap 7 times)Build number
After that we will enable: OEM Unlocking & USB Debbuging
Settings->Developer Options->OEM Unlocking(ON) & USB Debbuging(ON)
On the next step we need to download & install : ADB & Fastboot tools
Once you install the tools, connect your {Tablet} - {PC}
Select: USB Debbuging & Open your: Terminal
We are almost there
Now i will make a short explanation in order to understand what are we doing exactly & how we will do it.
What is ADB?
ADB provides us with commands that can be used to debug Android devices,
installing or uninstalling apps and getting information about a connected device.
adb shell
This command activates the remote shell command console on the connected Android smartphone or tablet.
adb shell pm uninstall -k --user 0
Using this, you can easily uninstall the unwanted system apps. To be able to execute it, you must issue 'adb shell' command first.
You can then use 'pm uninstall -k --user 0' followed by the Android app package name as shown below.
pm uninstall -k --user 0 com.whatsapp_2.20.apk
This command can help you if you want to remove all the bloatware from your phone.
Please note that most system apps don't have the 'Uninstall' option on the device but this command works magically.
If you don't know the app package name for the apps you want to remove, you can use adb shell pm list packages to find it out.
adb shell pm list packages
Using the above ADB Shell command, you can print the list of the app package names for all apps installed on your Android device.
You can use this command with different parameters to get a more specific list of app packages.
For instance, if you want to list the system apps only, use
adb shell pm list packages -s
In order to list all third-party apps installed on your Android phone or tablet, you issue the following command.
adb shell pm list packages -3
Do you want ADB Shell to show the list of all enabled or disabled apps on your device,
try the command with '-d' (disabled apps) and '-e' (for enabled apps) parameter.
adb shell pm list packages -d
adb shell pm list packages -e
Now, if pm list command troubles you or you are unsure that you are making the right choice you should stop right there
(uninstalling the wrong app might harm your tablet's operating system) and use another method for identifying which app you want to uninstall.
(GUI method - Graphical User Interface) For example: APK Inspector will provide you with a detailed list of installed packages (plus their icon) on your device, once you select an app, extra details will be shown to you & that's how you will get the correct name.of.the.app
Thanks for your time ❤​
Reserved
I really appreciate this write-up it has been a big help..
I use my OnePlus 9 pro with ADB and fastboot for Android NDK to debloat..
and that application inspector is a God send so again. thank you
I don't know if it was just a fluke or what but when I rebooted after successfully deleting digital well-being my tablet booted up super fast...
either way I'm good.
Awesome thanks for the tip. Is using "install" put the app back if I screw up something?
So it really doesn't uninstall just uninstalls from your app draw?
striker59 said:
So it really doesn't uninstall just uninstalls from your app draw?
Click to expand...
Click to collapse
For the os, it is like it has been uninstalled. But you don't free disk space, as the data of the app are still there. They just been hidden from os. That's why you can have back the app again just with an adb command again.
Man I used this to shut down numerous apps on all of my Android devices. Samsung and Verizon apps. Thanks!
Went back in to uninstall more apps. Device is recognized but adb shell won't load. The last time I used adb it was for my phone.
Figured it out, had to revoke USB debugging on my tablet. Delete on the computer c:user.android and restart (actual path on the computer could be different than what I stated).
Hi there.
Can anyone confirm, if it is save to remove the phone app from the device since it is connected to this samsung feature "calls/ messages on other Galaxy devices"? Actually i fully wanne get rid of this feature and app since i don´t use a galaxy phone.
Can someone share experiences/ideas according this topic?
Stogie87 said:
Hi there.
Can anyone confirm, if it is save to remove the phone app from the device since it is connected to this samsung feature "calls/ messages on other Galaxy devices"? Actually i fully wanne get rid of this feature and app since i don´t use a galaxy phone.
Can someone share experiences/ideas according this topic?
Click to expand...
Click to collapse
I have Debloated it (adb frozen) months ago. Didn't have any problem. You can always enable it again.
Am I right? If i debloat I don't clean up the system space used from the os ?
nofear5888 said:
Am I right? If i debloat I don't clean up the system space used from the os ?
Click to expand...
Click to collapse
You won't earn more free space. Apps are still there after Debloating.
sosimple said:
For the os, it is like it has been uninstalled. But you don't free disk space, as the data of the app are still there. They just been hidden from os. That's why you can have back the app again just with an adb command again.
Click to expand...
Click to collapse
@striker59
You remove the app for the current user but its still inside system's root directory.
You don't gain storage.
What you can achieve tho if you remove/disable the unnecessary services without causing softbrik or error spamming 'service has stop working' is a lightweight $user who uses less ram, your phone's overall performance is better and the battery reduction is slower.

How To Guide Get the List of Vivo Pre-installed Apps using ADB

Get the List of Vivo Pre-installed Apps using ADB​
Please note that depending on your phone model and Android version, the list of Vivo system apps might differ. In case you want to get your own list of all app packages that come preloaded on your Vivo phone.
Whether you want to generate the list of pre-installed apps on your Vivo phone or want to uninstall them without root, you need to set up ADB and Fastboot on your PC first. Follow the steps below to learn how you can do that.
Download and extract the latest Android SDK Platform-tools.zip. You can also uninstall the system apps on your phone using ADB commands on your Android device itself without root.
Launch a Command Prompt window or Windows PowerShell from the ‘platform-tools‘ folder window.
Enable USB Debugging on your Vivo phone, You can do that by going to Settings > System management > Developer options.
Connect your Vivo phone to the computer and make sure to extend the screen lock timeout to 15 or 30 minutes.
It’s time now to verify that your phone and ADB can communicate with each other. Issue the following command to test the connection. adb devices
If you get the ‘adb is not recognized…‘ error, try the solution to fix ADB errors.
Now, type the following command and press the Enter key on your keyboard. adb shell
Make sure to authorize ADB on your Vivo phone by allowing USB debugging, or ADB won’t be able to detect your device.
To print the list of Vivo pre-installed apps, execute this command. pm list packages -s
As soon as you hit the Enter key, you’ll get a complete list of system apps preloaded on your Vivo phone.
You can copy this list using Ctrl+C and paste it into a text or Notepad file. You now have the package names of all Vivo system apps installed on your device. You can use them to remove bloatware on your Vivo phone.
Uninstall System Apps on Vivo without Root​
Now that you know how to execute ADB commands and have the package names of Vivo bloatware, you can uninstall or debloat your Vivo phone easily using the ADB Shell commands mentioned below. There’s also a command that lets you reinstall an app if you\removed it by mistake.
Launch the Command Prompt (Windows) or Terminal (Mac).
Connect your Vivo phone to the computer.
Type adb shell and press the enter key. Then use one of the following commands to disable or uninstall a system app.
Uninstall: pm uninstall -user 0 <package name>
Freeze: cmd appops set <package_name> RUN_IN_BACKGROUND ignore
Disable: adb shell pm disable-user --user 0 <package name>
Re-install: cmd package install-existing <package name>
For example, if you want to uninstall the Vivo Compass app, use the following command. In case you get a “Failure [not installed for 0]” message while trying to uninstall an app, it means the app package is not present on your phone. In such a case, proceed with removing the next app.
there is written a super detailed tutorial on uninstalling bloatware on Android devices with and without root. Please refer to that.
Credits to Technastic.com

A Magisk script to set ADB TCPIP port at startup without bricking my phone?

Hi guys. I've got a very old phone (LG K11 2017) running Android 7.1 Nougat. Currently I need to boot my phone, get to my home screen, fire up 'MTK Easy Su' in order to get temporary root access, then launch a terminal emulator and from there set up a port to ADB, stop it and then start it again. All of that is required so I can use SCRCPY over wi-fi.
It does not have the 'ADB over Wi-Fi' option under development options.
It's a chore to keep doing that, and it defeats the purpose of benefiting from the convenience of just leaving your phone away to charge while you're back at the desk and launching SCRCPY from your computer.
So I'd like to make a startup script that:
#1 Sets ADB port to 7612:
setprop service.adb.tcp.port 7612
#2 Stops ADB
stop adbd
#3 And finally, starts it up again:
start adbd
If that isn't done, the phone will just refuse connections from my computer:
~$ adb connect 192.168.1.101:7612
failed to connect to '192.168.1.101:7612': Connection refused
Question is, would that be possible to achieve with Magisk? If so, how?
Thanks in advance.
Came across this post googling the same question. It's may be quite late, but nevertheless you can achieve this by adding your commands into magisk's boot script:
Bash:
cat > /data/adb/service.d/adb.sh <<EOF
stop adbd
setprop service.adb.tcp.port 7612
start adbd
EOF
chmod +x /data/adb/service.d/adb.sh

Question X button doesn't close all apps

Hi there. My X Fold doesn't close all apps when I press "X" button in the backgrounds app menu.
It performs animations like closing all apps, but they still remain the same apps (if I ask to show the backround apps by navigation menu I see them all there....)
I suppose it may be related to debloat..but I did a light standard debloat...
Any ideas?
thank you
Does swiping up remove the running apps? Check to see if you have not "locked" those apps to stay running. In the floating all running apps screen, click on the title of app and see if lockdown is enabled.
Koysii said:
Does swiping up remove the running apps? Check to see if you have not "locked" those apps to stay running. In the floating all running apps screen, click on the title of app and see if lockdown is enabled.
Click to expand...
Click to collapse
Yes. If I swipe one at the time it's ok and it closes...
Lockdown is disabled in the app I have in background
It's a real mystery
Hmmm that is weird. Could it be the "autostart" feature in permissions with "startup" enabled. Or try reinstalling the app clearing cache etc
Koysii said:
Hmmm that is weird. Could it be the "autostart" feature in permissions with "startup" enabled. Or try reinstalling the app clearing cache etc
Click to expand...
Click to collapse
Yes, it's weird... It seems the button that close all apps have its action stuck.
This problem persists even after major updates and clearing all the caches...it happens for all the apps...reinstalling doesn't work...
I'm trying to figure out if developers options or some specific app need to be installed or reinstalled (debloat consequence case)
Solved: it was debloat operation
How u solved it?
I've restored all the apps I debloated (ivideo, browser, vivocloud, vivo.com, com.vivo.pem, jovi and a pair of vivo apk something like bbklog and baidu input ). Then I only re-debloated com.vivo.pem (the most important debloat ) and now the button it closes all the apps in background it works like a charm!
guybrush2099 said:
I've restored all the apps I debloated (ivideo, browser, vivocloud, vivo.com, com.vivo.pem, jovi and a pair of vivo apk something like bbklog and baidu input ). Then I only re-debloated com.vivo.pem (the most important debloat ) and now the button it closes all the apps in background it works like a charm!
Click to expand...
Click to collapse
Hi, quick question on pem debloat. Are you on Android 13? I see that pem is a system app and adb throws an error when I run the command.
gkarkala said:
Hi, quick question on pem debloat. Are you on Android 13? I see that pem is a system app and adb throws an error when I run the command.
Click to expand...
Click to collapse
Yes, I am on Android 13. Have you switched on debug mode? Have you installed adb drivers? Have you kept turned on display while you execute the command? Have you tried ADB AppControl from Windows?
guybrush2099 said:
Yes, I am on Android 13. Have you switched on debug mode? Have you installed adb drivers? Have you kept turned on display while you execute the command? Have you tried ADB AppControl from Windows?
Click to expand...
Click to collapse
I switched Developer option, turned on USB debug. Connected Vivo to the Windows 11 laptop via USB-A to Type C. Accepted the "Allow control" dialog on the phone.
Tried both ADB control AND powershell adb with the phone screen on.
shell pm uninstall --user 0 com.vivo.pem
Failure [DELETE_FAILED_USER_RESTRICTED]
adb shell service call package 131 s16 com.vivo.pem i32 0 i32 0 - also not working.
Use CMD (black background) and don't use PowerShell (blue background) to prompt the command. Use admin mode with the right mouse button on the CMD icon.
Then, try without the word shell before, thus write only:
pm uninstall --user 0 com.vivo.pem
Anyway you can try:
ADB AppControl
Official website of the ADB AppControl application. Free Download. Latest release. The ultimate applications manager and debloat tool for Android devices.
adbappcontrol.com
This windows app does everything with a few click
guybrush2099 said:
Use CMD (black background) and don't use PowerShell (blue background) to prompt the command. Use admin mode with the right mouse button on the CMD icon.
Then, try without the word shell before, thus write only:
pm uninstall --user 0 com.vivo.pem
Anyway you can try:
ADB AppControl
Official website of the ADB AppControl application. Free Download. Latest release. The ultimate applications manager and debloat tool for Android devices.
adbappcontrol.com
This windows app does everything with a few click
Click to expand...
Click to collapse
Thanks for your help. Unfortunately same issue.
I also used adbcontrol windows app to try this. I tested to uninstall two other apps, and it was able to uninstall one app, but both PEM and Albums gave the same error (based on appcontrol app).
BTW, you are on OrginOS 13 right and not funtouchOS right?
gkarkala said:
Thanks for your help. Unfortunately same issue.
I also used adbcontrol windows app to try this. I tested to uninstall two other apps, and it was able to uninstall one app, but both PEM and Albums gave the same error (based on appcontrol app).
BTW, you are on OrginOS 13 right and not funtouchOS right?
Click to expand...
Click to collapse
Very strange...Yes, I am on OriginOS 13...

Categories

Resources