'pm list packages --user 1' shows empty - Android Q&A, Help & Troubleshooting

Hi,
I have a Mi Max 1 gen with Lineage OS 14.1 recent nightly build installed. There's another user besides the default user, and I think it should be referred as user 1.
When I run:
Code:
adb shell pm list packages --user 0
It shows a list of packages.
When I run:
Code:
adb shell pm list packages --user 1
It shows nothing.
I think it shouldn't show nothing, although I haven't installed a third-party app.
So could you advise is it normal?
Thanks.

Related

How to remove Whats's New

Hey guys i tried to block the Whats New app as described in the Z3 Compact forum hoping it would work on the XX:
ikon8 said:
You can use ADB on unrooted devices to remove the "What's New" option from the NavRing and to remove the Small Apps Widget launcher from Recent Apps.
I will assume you know how to install and use ADB.
To remove the "What's New" option from the NavRing:
Code:
adb shell
pm block com.sonymobile.advancedwidget.entrance
exit
adb reboot
Make sure to reboot before proceeding if you're removing both items.
To remove the Small Apps Widget Launcher from the Recents screen:
Code:
adb shell
pm block com.sony.smallapp.launcher
pm block com.sony.smallapp.app.widget
exit
adb reboot
To revert changes substitute "unblock" for "block" in the command.
Click to expand...
Click to collapse
However it says the block command is not known.
I tried to use
Code:
pm hide com.sonymobile.advancedwidget.entrance
instead but it responses with:
Code:
Error: java.lang.SecurityException: Neither user 2000 nor current process has android.permission.MANAGE_USERS.
Altough i granted ADB shell access in SuperSu.
Does anybody know howto block or remove the What's new app?
pm uninstall -k --user 0 "package_name"
zokkii said:
pm uninstall -k --user 0 "package_name"
Click to expand...
Click to collapse
Thanks!
Code:
pm uninstall -k --user 0 com.sonymobile.entrance
did it for me :good:

Can't access ADB Shell - PM through command terminal

Phone: Samsung S6
Carrier: T-Mobile
I am unable to get PM to list any of the packages on my phone even though it's connected (I confirmed with adb devices). When I try to to run the command
Code:
pm list packages | grep '<OEM/Carrier/App Name>'
it simply loads another line to enter a command, and no packages are listed. I tried installing App Analyzer and getting the package names that way. After obtaining a package name for an app I wanted to uninstall, I tried entering the required command
Code:
pm uninstall -k --user 0 <app name>
Again, it just loads another line to enter a command, no success or fail message.

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