hey guys can anyone help me.
i have a z5 compact with the latest firmware etc.
i have the adb files on my computer, i have usb debugging enabled.
but each time i run the commands to hide the small apps
"adb shell
pm hide com.sony.smallapp.launcher
pm hide com.sony.smallapp.app.widget
exit
adb reboot"
i get this
1|[email protected]:/ $ pm hide com.sony.smallapp.launcher
pm hide com.sony.smallapp.launcher
Error: java.lang.SecurityException: Neither user 2000 nor current process has an
droid.permission.MANAGE_USERS.
1|[email protected]:/ $
the phone is not rooted (nor do i want it to be) and the funny thing is many months ago i was able to do this and it works (just cant remember if i had this message before)
Related
hey guys i got a way to enable multi user support on 4.2.x roms on phone. all you need is a working adb shell and the know how to use copy and past.
type or copy these commands hitting enter after each line
adb shell
su
pm get-max-users
setprop fw.max_users 8
pm create-user usernameyouwanthere
now go to settings and you should see users. and it will reboot a couple times dont worry
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:
The thing is that I'm fed up of some stock adware apps on my Micromax phone and want to disable them for good. So, as per this Android SE answer, I used adb shell to disable the app, but I'm getting the following error:
Code:
[email protected]:/ $ pm hide com.micromax.trendingapps
Error: java.lang.SecurityException: Neither user 2000 nor current process has android.permission.MANAGE_USERS.
1|[email protected]:/ $
The error message indicates that I need android.permission.MANAGE_USERS to achieve that. So I even tried granting that permission to the shell app, but no use!
Code:
[email protected]:/ $ pm grant com.android.shell android.permission.MANAGE_USERS
Operation not allowed: java.lang.SecurityException: Package com.android.shell has not requested permission android.permission.MANAGE_USERS
1|[email protected]:/ $
Is there any other way to get myself that permission?
Finally, the smart-phone is Micromax Q4260 running Marshmallow, if that matters. This could probably be solved by rooting, but I don't have any intention of doing it as it could be risky on this little known model.
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.
Run this with adb-tools
Code:
adb shell pm disable-user com.sonymobile.uiccdetection
Restore:
Code:
adb shell pm enable com.sonymobile.uiccdetection
Remenber to restore it if you plan to change your SIM card.
Thanks! I really appreciate this command! I always hated the reboot procedure after the sim card change.
Also, I have another adb command for the heads up notifications as stock ROM doesn't have a general heads up disable option as Lineage OS.
adb shell settings put global heads_up_notifications_enabled 0