Is it possible to programmatically uninstall a package in Android

后端 未结 4 1028
长发绾君心
长发绾君心 2020-12-01 12:16

Can a package uninstall itself? Can a package uninstall another package if they share the same userId and signature?

4条回答
  •  感情败类
    2020-12-01 12:29

    Third Party app cannot Uninstall App Silently!

    Either you need to become System App to get DELETE_PACKAGES Permission else you need to show Uninstall Popup (User Confirmation)

    Alternatively, you can take Accessibility permission and then by showing an Accessibility Overlay you can tell your service to click on Uninstall button! But that will be privacy violation.

提交回复
热议问题