Hi everyone,
this is my first simple library, named "SilentApp"
As title, with this library, you can install or uninstall an apk file in background, without the final user, manually accepts the installation.
I premise that, it works only on ROOTED DEVICE, so for the first time, you must set the root permission to the application.
HOW TO USE IT?
Simply call these methods:
Install:
Uninstall:
If the result is empty, then everything it's ok!
I provided an example that it works with the "apptest.apk" file.
N.B.: You have to copy this "apptest.apk" into your device
Enjoy!
this is my first simple library, named "SilentApp"
As title, with this library, you can install or uninstall an apk file in background, without the final user, manually accepts the installation.
I premise that, it works only on ROOTED DEVICE, so for the first time, you must set the root permission to the application.
HOW TO USE IT?
Simply call these methods:
Install:
B4X:
Dim r as string
r = SilentApp.InstallApk ( "/", "test.apk" )
Uninstall:
B4X:
Dim r as string
r = SilentApp.UninstallApk ( "packagename" )
If the result is empty, then everything it's ok!
I provided an example that it works with the "apptest.apk" file.
N.B.: You have to copy this "apptest.apk" into your device
Enjoy!
Attachments
Last edited: