I have been following the instructions from to remove bloatware (that actually kills FCM and blocks notifications.
However I encountered Failure [DELETE_FAILED_USER_RESTRICTED]. I have checked the current user is 0 by am get-current-user, and as far as i understand it is the root user. So why is the uninstallation failed? Any logs or further troubleshooting tips? Thanks very much as this is causing the phone not functioning properly.
PD2170:/ $ pm uninstall -k --user 0 com.iqoo.powersaving Success PD2170:/ $ pm list packages | grep pem package:com.vivo.pem PD2170:/ $ pm uninstall -k --user 0 com.vivo.pem Success PD2170:/ $ pm list packages | grep abe package:com.vivo.abe PD2170:/ $ pm uninstall -k --user 0 com.vivo.abe Failure [DELETE_FAILED_USER_RESTRICTED] 2 Answers
If the regular adb disable/uninstall commands do not work then-
For Android 13 try:
adb shell service call package 131 s16 com.abc.xyz i32 0 i32 0 For Android 12 try:
adb shell service call package 134 s16 com.abc.xyz i32 0 i32 0 Explanation: This is calling the function at line:134 (see more below) and passing three arguments to the function: com.abc.xyz (datatype: s16) 0 (datatype: i32) 0 (datatype: i32)
PS: This is tested on vivo/iqoo phones. For other brands the command number (131/134) for the uninstall function depends on decoding & decompiling the framework.jar file in /system/framework/framework.jar
PPS: Also com.vivo.abe & com.vivo.pushservice will not uninstall using this method, however the rest of the system bloatware can be removed.
3Some apps can only be removed by root on a rooted device. You can try disabling instead of uninstalling the app for similar results:
pm disable-user --user 0 com.vivo.abe You can find a full guide here:
4