mmieher Active Member Licensed User Longtime User Jul 6, 2022 #1 Is there a way yet to uninstall App on all the unrooted devices out there? Foreground would be ideal. https://www.b4x.com/android/forum/threads/install-uninstall-in-background-application.50567/#content (very early draft)
Is there a way yet to uninstall App on all the unrooted devices out there? Foreground would be ideal. https://www.b4x.com/android/forum/threads/install-uninstall-in-background-application.50567/#content (very early draft)
Solution Erel Jul 7, 2022 1. Manifest editor: Code: AddPermission(android.permission.REQUEST_DELETE_PACKAGES) 2. Code: Private Sub Button1_Click Dim in As Intent in.Initialize("android.intent.action.UNINSTALL_PACKAGE", "package:" & Application.PackageName) StartActivity(in) End Sub
1. Manifest editor: Code: AddPermission(android.permission.REQUEST_DELETE_PACKAGES) 2. Code: Private Sub Button1_Click Dim in As Intent in.Initialize("android.intent.action.UNINSTALL_PACKAGE", "package:" & Application.PackageName) StartActivity(in) End Sub
Erel B4X founder Staff member Licensed User Longtime User Jul 7, 2022 #2 1. Manifest editor: Code: AddPermission(android.permission.REQUEST_DELETE_PACKAGES) 2. Code: Private Sub Button1_Click Dim in As Intent in.Initialize("android.intent.action.UNINSTALL_PACKAGE", "package:" & Application.PackageName) StartActivity(in) End Sub Upvote 0 Solution
1. Manifest editor: Code: AddPermission(android.permission.REQUEST_DELETE_PACKAGES) 2. Code: Private Sub Button1_Click Dim in As Intent in.Initialize("android.intent.action.UNINSTALL_PACKAGE", "package:" & Application.PackageName) StartActivity(in) End Sub
mmieher Active Member Licensed User Longtime User Jul 7, 2022 #3 Erel said: 1. Manifest editor: Code: AddPermission(android.permission.REQUEST_DELETE_PACKAGES) 2. Code: Private Sub Button1_Click Dim in As Intent in.Initialize("android.intent.action.UNINSTALL_PACKAGE", "package:" & Application.PackageName) StartActivity(in) End Sub Click to expand... Of course it works. I am still on the fence about it asking for PERMISSION. Does App have to ask? It was also educational for me, that in DEBUG, "uninstalling" just means I need to Clean before next run. Upvote 0
Erel said: 1. Manifest editor: Code: AddPermission(android.permission.REQUEST_DELETE_PACKAGES) 2. Code: Private Sub Button1_Click Dim in As Intent in.Initialize("android.intent.action.UNINSTALL_PACKAGE", "package:" & Application.PackageName) StartActivity(in) End Sub Click to expand... Of course it works. I am still on the fence about it asking for PERMISSION. Does App have to ask? It was also educational for me, that in DEBUG, "uninstalling" just means I need to Clean before next run.
DonManfred Expert Licensed User Longtime User Jul 7, 2022 #4 mmieher said: Of course it works. I am still on the fence about it asking for PERMISSION. Click to expand... as it is not a dangerous permission and you do not use runtimepermissions at all (not needed) it seems to be an Android permission-system. It is the user (not the app) which have to decide to accept permission or not. You can not overcome this i guess. Upvote 0
mmieher said: Of course it works. I am still on the fence about it asking for PERMISSION. Click to expand... as it is not a dangerous permission and you do not use runtimepermissions at all (not needed) it seems to be an Android permission-system. It is the user (not the app) which have to decide to accept permission or not. You can not overcome this i guess.
mmieher Active Member Licensed User Longtime User Jul 7, 2022 #5 DonManfred said: as it is not a dangerous permission and you do not use runtimepermissions at all (not needed) it seems to be an Android permission-system. It is the user (not the app) which have to decide to accept permission or not. You can not overcome this i guess. Click to expand... Accept the things you cannot change. Upvote 0
DonManfred said: as it is not a dangerous permission and you do not use runtimepermissions at all (not needed) it seems to be an Android permission-system. It is the user (not the app) which have to decide to accept permission or not. You can not overcome this i guess. Click to expand... Accept the things you cannot change.