Huawei mate 20 pro adb connected? - Huawei Mate 20 Pro Questions & Answers

Hi there
Is there an way to get the files of apps with adb shell?
Without root?
"just copy /cust/app/HwCallRecorder to /system/app/ and reboot
make sure permissions are correct.
after reboot enable it in dialer setting"
Sent from my LYA-L29 using Tapatalk

How to delete default apps with adb shell?

Bump
Verstuurd vanaf mijn LYA-L29 met Tapatalk

3 posts and I still don't know what you would like to do. If you haven't got root access, you cannot copy files into system folders.
You can uninstall apps via adb, but they are not really gone.
go into shell with:
Code:
adb shell
uninstalling:
Code:
pm uninstall -k --user 0 [pkg]
where [pkg] is something like com.huawei.search (for uninstalling HiSearch)
re-installing:
Code:
cmd package install-existing [pkg]

Related

How to uninstall apps

We can uninstall apps from the watch.I tried and it works.Be carefully what kind of app you erase!!!
You can uninstall without problem the following aplications:Alipay(system),ximalayasound(system),hmtvhelper(system) and 3rd party (or non-system).
You need installed adb!!!
Firts you need to have root acces to watch!
type in adb-
Code:
adb root
To list all the installed packages on device, use the following syntax.
Code:
adb shell pm list packages
To list only the system packages, use the “-s” option.
Code:
adb shell pm list packages -s
To list only 3rd party (or non-system) packages, use the “-3” option.
Code:
adb shell pm list packages -3
To uninstal use the:
Code:
adb uninstall -k --user 0 (name of the package)
Example:
Code:
adb uninstall -k --user 0 com.alipay.android.hmwatch
krepsz said:
We can uninstall apps from the watch.I tried and it works.Be carefully what kind of app you erase!!!
You can uninstall without problem the following aplications:Alipay(system),ximalayasound(system),hmtvhelper(system) and 3rd party (or non-system).
You need installed adb!!!
Firts you need to have root acces to watch!
type in adb-
Code:
adb root
To list all the installed packages on device, use the following syntax.
Code:
adb shell pm list packages
To list only the system packages, use the “-s” option.
Code:
adb shell pm list packages -s
To list only 3rd party (or non-system) packages, use the “-3” option.
Code:
adb shell pm list packages -3
To uninstal use the:
Code:
adb uninstall -k --user 0 (name of the package)
Example:
Code:
adb uninstall -k --user 0 com.alipay.android.hmwatch
Click to expand...
Click to collapse
Is it safe to uninstall mi home app? What package is it?
Enviado desde mi Mi-4c mediante Tapatalk
Yes you can.
siba01 said:
Is it safe to uninstall mi home app? What package is it?
Enviado desde mi Mi-4c mediante Tapatalk
Click to expand...
Click to collapse
Yes,you can uninstall Mihome app without problem.I did too.Use the -s command from the first post to found it in system app list.
krepsz said:
Yes,you can uninstall Mihome app without problem.I did too.Use the -s command from the first post to found it in system app list.
Click to expand...
Click to collapse
I tried to find it... But I didn't see the package...
Enviado desde mi Mi-4c mediante Tapatalk
siba01 said:
I tried to find it... But I didn't see the package...
Enviado desde mi Mi-4c mediante Tapatalk
Click to expand...
Click to collapse
Do the command and make screenshot from that. Put here and we have a look. Make it also from 3rd part apps.Maybe its there.
Is it possible to install mihome on a watch with US firmware?
nembal said:
Is it possible to install mihome on a watch with US firmware?
Click to expand...
Click to collapse
I don't know. Wanna give it a try?
Sure, I have a few Xiaomi products in my household.
Hi! Is it possible to reinstall app which previuosly installed? eg Smart Home ?
luqsus said:
Hi! Is it possible to reinstall app which previuosly installed? eg Smart Home ?
Click to expand...
Click to collapse
If you are on custom rom, just reflash it, or you can found in update.zip-apps map. Unzip and flash it by adb.
siba01 said:
I tried to find it... But I didn't see the package...
Click to expand...
Click to collapse
It's com.huami.smarthome
Hello
I need your help
I want to uninstall some app but I have this message :
Last login: Sat Nov 11 09:24:19 on ttys000
iMac:~ lazouille83$ adb devices
List of devices attached
0dfa2905 device
iMac:~ lazouille83$ adb uninstall -k --user 0 com.huami.watch.ximalayasound
The -k option uninstalls the application while retaining the data/cache.
At the moment, there is no way to remove the remaining data.
You will have to reinstall the application with the same signature, and fully uninstall it.
If you truly wish to continue, execute 'adb shell pm uninstall -k'
.iMac:~ lazouille83$adb shell uninstall -k --user 0 com.huami.watch.ximalayasound
/system/bin/sh: uninstall: not found
iMac:~ lazouille83$
Click to expand...
Click to collapse
Last login: Sat Nov 11 10:05:33 on ttys000
iMac:~ lazouille83$ adb devices
List of devices attached
0dfa2905 device
iMac:~ lazouille83$ adb root
adbd is already running as root
iMac:~ lazouille83$ adb shell
[email protected]:/ # adb shell uninstall -k --user 0 com.huami.watch.ximalayasound
/system/bin/sh: uninstall: not found
[email protected]:/ #
Click to expand...
Click to collapse
What can I do ? I'm running on MAC OSX
And where is the folder on MAC to put the files as update.zip, Before I used windows and it was easy but now I don't know
thank you
thanks
great help
Help guys! I have windows 10 os so when holding shift key + Right Click i have "Open power shell windows here" and after it opened. No promt allowing computer to grant.
Or is there other way to uninstall pre installed apps in Samsung android phones?
deathnote08 said:
Help guys! I have windows 10 os so when holding shift key + Right Click i have "Open power shell windows here" and after it opened. No promt allowing computer to grant.
Or is there other way to uninstall pre installed apps in Samsung android phones?
Click to expand...
Click to collapse
Yes, there is (not actually uninstall, but disable). But this is the wrong forum and an old thread. Search in your phone model's forum and I am sure you'll find out how.
lfom said:
Yes, there is (not actually uninstall, but disable). But this is the wrong forum and an old thread. Search in your phone model's forum and I am sure you'll find out how.
Click to expand...
Click to collapse
Thanks man for the info. Already hitted thanks
i use apkinstaller to uninstall, work well!

How to install / get back uninstalled Apps (APKs) with ADB.

A lot of people searched for a way to uninstall bloat or APKs using ADB because a lot of OEMs don't allow uninstalling many of preinstalled apps.
Tested on Pie and Oreo.
BUT most of the articles if not all of them ( couldn't find any article saying otherwise ) say that after using the command "adb shell pm uninstall -k --user 0 <name of package here>" to uninstall an app, you have to factory reset your phone to get these packages back which Is NOT TRUE.
First method :-
you can simply use "adb shell cmd package install-existing <package name>" in ADB and you'll get the package back .
Examples:-
adb shell pm uninstall -k --user 0 com.android.something
adb shell cmd package install-existing com.android.something
Tested and working on Android pie and Oreo on Samsung devices.
Second method HERE
Seems like some people can't get it to work with no helpful information so we can't help much.
Articles like https://www.xda-developers.com/uninstall-carrier-oem-bloatware-without-root-access/
Hi, doesn't works
Code:
/system/bin/sh: cmd: not found
It does work. Thank you!
Hi! Does this work on huawei p smart 2019 with android pie? Will ota work after that?
jazzh said:
Hi! Does this work on huawei p smart 2019 with android pie? Will ota work after that?
Click to expand...
Click to collapse
Has nothing to do with OTA. That code only installs apk.
JaviLerma said:
Hi, doesn't works
Click to expand...
Click to collapse
I need a screenshot or I can't be sure what you did wrong.
Vordx said:
Has nothing to do with OTA. That code only installs apk.
Click to expand...
Click to collapse
Gr8.
I successfully applied this in p smart 2019.
Not work
it doesn't work
barjani said:
it doesn't work
Click to expand...
Click to collapse
You typed install, not uninstall
jazzh said:
You typed install, not uninstall
Click to expand...
Click to collapse
i just copy paste command from the text above except the packages that i want to install again
"you can simply use "adb shell cmd package install-existing <package name>" in ADB and you'll get the package back ."
is it this thread to install back again packages or to uninstall packages?
i want to install back my packages, which I using command "adb shell pm uninstall -k --user 0 <name of package>" to uninstall it.
Try to find that apk and put in the folder of the command prompt call from pc.
barjani said:
i just copy paste command from the text above except the packages that i want to install again
"you can simply use "adb shell cmd package install-existing <package name>" in ADB and you'll get the package back ."
is it this thread to install back again packages or to uninstall packages?
i want to install back my packages, which I using command "adb shell pm uninstall -k --user 0 <name of package>" to uninstall it.
Click to expand...
Click to collapse
What version of Android are you running? What's the output of "ls -l /system/bin/cmd"?
jcmm11 said:
What version of Android are you running? What's the output of "ls -l /system/bin/cmd"?
Click to expand...
Click to collapse
android ver. 5.1.1 and android ver 7.1.2
on ver. 5.1.1 got "No such file or directory" but on ver 7.1.2 got "-rwxr-xr-x 1 root shell 21964 2019-03-07 12:23 /system/bin/cmd"
i want to re-install app on android ver 5.1.1.
is it posible to install back on 5.x.x? after seing output from 'ls' command on terminal
barjani said:
android ver. 5.1.1 and android ver 7.1.2
on ver. 5.1.1 got "No such file or directory" but on ver 7.1.2 got "-rwxr-xr-x 1 root shell 21964 2019-03-07 12:23 /system/bin/cmd"
i want to re-install app on android ver 5.1.1.
is it posible to install back on 5.x.x? after seing output from 'ls' command on terminal
Click to expand...
Click to collapse
You sure it's uninstalled using ADB and not root ?
Vordx said:
You sure it's uninstalled using ADB and not root ?
Click to expand...
Click to collapse
Yups ... it's uninstalled with ADB command, i just follow from this article https://www.xda-developers.com/uninstall-carrier-oem-bloatware-without-root-access/ to unistall and no root access.
Sent from my L697 using Tapatalk
Im also having similar problem, uninstalled through adb, but when i try to reinstall it, it gives error
/system/bin/sh: CMD: not found
djinn_tyagi said:
Im also having similar problem, uninstalled through adb, but when i try to reinstall it, it gives error
/system/bin/sh: CMD: not found
Click to expand...
Click to collapse
It works for me (windows cmd prompt), should be the same in linux terminal:
type
1) adb shell
and within the shell type:
2) cmd package install-existing <name of package>
alternatively type directly from command prompt:
adb shell cmd package install-existing <name of package>
Tried running this on Android 6 on my moto G4, install-existing is NOT a listed argument for pm, and now my phone is dead since I can't reinstall a removed app. Wonderful.
the OP should update thier post that this is ONLY for Android versions 7 and higher. It will not work on android 6 or lower.
For you guys getting this error:
"/system/bin/sh: cmd: not found"
Not all android versions have the "cmd" utility in "/system/bin".

Xiaomi mibox MDZ-20-AA Chinese version to International

Hello Guys my wife bought a xiaomi mibox MDZ-20-AA , chinese language, i know that is possible to root it and change it on international version, i have an old tuto for the MDZ-19-AA, is it the same way for the 20-AA or is there a tutorial for my version.
Thanks for your answers
Yannis
I tried rooting it, but I was worried of bricking it so I went with the safest option.
I know it's not the best option but at least makes it bearable.
Step 1:
Download a third-party launcher, my recommendations are ATV launcher or TVlauncher.
Step 2:
Find Settings (in the new launcher look for system settings)
and install ADB with this guide: https://www.xda-developers.com/install-adb-windows-macos-linux/
Step 3:
Connect via USB or WiFi
1. Connect your PC with a Male-to-Male USB cord. Give the command
Code:
adb devices
in cmd to see if your device has been connected successfully.
2. Connect the devices with the same WiFi and find the IP in the box and give the command in cmd
Code:
adb connect (Your.IP.Address)
Confirm you connection with the command
Code:
adb devices
.
Step 4:
App Store
adb shell pm uninstall --user 0 com.xiaomi.mitv.appstore
Mi Home
adb shell pm uninstall --user 0 com.xiaomi. smarthome.tv
Xiaomi Store
adb shell pm uninstall --user 0 com.xiaomi.mitv.shopXiaomi
Payment
adb shell pm uninstall --user 0 com.xiaomi.mitv.paymentXiaomi
Wallet
adb shell pm uninstall --user 0 com.mipay .wallet.tv
Game center
adb shell pm uninstall --user 0 com.xiaomi.mibox.gamecenterXiaomi
MiTv settings
adb shell pm uninstall --user 0 com.xiaomi.mitv.settings
If you want to see what else is installed on your mibox, just type:
Simple view:
pm list packages
Detailed view:
pm list packages -f
Step 4:
Now all the xiaomi launcher and apps are uninstalled find other apps
Launchers:
1. Atv Launcher(confirmed)
2. TvLauncher(confirmed)
3. HALauncher(confirmed)
4. Top TV Launcher 2(unconfirmed)
Youtube alternatives:
SmartYoutubeTV(confirmed)
Market Store:
1. Aptoide(confirmed)
2. APKPure(needs mouse)(confirmed)
3. F-Doid(needs mouse)(confirmed)
Browsers:
Puffin Browser(confirmed)
DuckDuckGo Browser(unconfirmed)
TVWeb Browser(unconfirmed)
Movies:
1. Stremio
2. PopcornTime
3. PopcornFlix (if u live in the US)
4. Kodi
For more apps check Aptoide tv
Anyways if you want to root anyways you can use this video (Russian language) for reference:
(link to youtube) watch?v=ZqPr6Vq0fUw
files:
(link to google drive) open?id=1Ki7p56otzAh31jYzMV7BKkxNYhjWZCWL
(if it works please tell me)
Screensaver
I am with a problem with the screensaver, when I am watching a movie it keeps working. Somebody know how to stop it?
I removed with "adb shell pm uninstall --user 0 com.xiaomi.mibox.lockscreen" but it continues, maybe is not this
servimo said:
I am with a problem with the screensaver, when I am watching a movie it keeps working. Somebody know how to stop it?
I removed with "adb shell pm uninstall --user 0 com.xiaomi.mibox.lockscreen" but it continues, maybe is not this
Click to expand...
Click to collapse
That happened to me too try "adb shell pm uninstall --user 0 com.xiaomi.mibox.screensaver"
I'm not sure for the package name but anyways try the pm list packages in adb and search for screensaver and remove it.
Mi box 4c saya hard brick
Ada yg tau rom yg bagus buat mi box 4c

Debloat/Disable System Apps

So you got your new shiny realme device but you hate bloatware or want to disable system apps so you can use 3rd party apps instead?
Follow the steps below:
THIS DOES NOT REQUIRE ROOT HOWEVER MAKE SURE NOT TO DISABLE IMPORTANT SYSTEM APPS. WIPE DATA/FORMATTING RE-ENABLES ALL SYSTEM APPS. THIS DOES NOT MESS WITH OTAs.
WHAT YOU NEED:-
ADB/Fastboot Drivers
Windows: https://dl.google.com/android/repository/platform-tools-latest-windows.zip
Linux: https://dl.google.com/android/repository/platform-tools-latest-linux.zip
DEBLOAT:-
1. Enable developer options by tapping on the build number 7 times and enable USB Debugging.
2. Plug in your phone.
3. Goto the folder where ADB is installed, hold shift and right click, and click on open command window here(windows).
4. Type
in CMD
Code:
adb devices
in Powershell
Code:
./adb devices
.
5. This should return the ID of your device and show if its authorised. Enable debugging Promt on your Phone if it shows unauthorised (allow this computer).
6. Type
in cmd
Code:
adb shell
in Powershell
Code:
./adb shell
.
7. This should display a prompt, something like RMXxxxx:/ $
8. To uninstall type
Code:
pm uninstall -k --user 0 <name of the package>
To disable type
Code:
pm disable-user --user 0 <name of the package>
eg: pm uninstall -k --user 0 com.heytap.browser / pm disable-user --user 0 com.heytap.browser
9. Done!
To reinstall uninstalled apps type
Code:
pm install-existing <name of the package>
To enable disabled apps type
Code:
pm enable <name of the package>
Some apps do not uninstall such as market and gamecenter, disabling is the only option.
here is a way you can delete system without pc without root

Debloat/Disable System Apps

So you got your new shiny realme device but you hate bloatware or want to disable system apps so you can use 3rd party apps instead?
Follow the steps below:
THIS DOES NOT REQUIRE ROOT HOWEVER MAKE SURE NOT TO DISABLE IMPORTANT SYSTEM APPS. WIPE DATA/FORMATTING RE-ENABLES ALL SYSTEM APPS. THIS DOES NOT MESS WITH OTAs.
WHAT YOU NEED:-
ADB/Fastboot Drivers
Windows: https://dl.google.com/android/repository/platform-tools-latest-windows.zip
Linux: https://dl.google.com/android/repository/platform-tools-latest-linux.zip
DEBLOAT:-
1. Enable developer options by tapping on the build number 7 times and enable USB Debugging.
2. Plug in your phone.
3. Goto the folder where ADB is installed, hold shift and right click, and click on open command window here(windows).
4. Type
in CMD
Code:
adb devices
in Powershell
Code:
./adb devices
.
5. This should return the ID of your device and show if its authorised. Enable debugging Promt on your Phone if it shows unauthorised (allow this computer).
6. Type
in cmd
Code:
adb shell
in Powershell
Code:
./adb shell
.
7. This should display a prompt, something like RMXxxxx:/ $
8. To uninstall type
Code:
pm uninstall -k --user 0 <name of the package>
To disable type
Code:
pm disable-user --user 0 <name of the package>
eg: pm uninstall -k --user 0 com.heytap.browser / pm disable-user --user 0 com.heytap.browser
9. Done!
To reinstall uninstalled apps type
Code:
pm install-existing <name of the package>
To enable disabled apps type
Code:
pm enable <name of the package>
Some apps do not uninstall such as market and gamecenter, disabling is the only option.
thanks. It was much needed.
Won't it be better if you have created list of removable apps? Other than sharing guide which everyone knows

Categories

Resources