B4A Library Install/Uninstall in background application

imgsimonebiliato

Well-Known Member
Licensed User
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:
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:

Silv

Member
Licensed User
Is anybody have an idea why i can't compile it?
Compiling generated Java code. Error
javac 1.7.0_67
src\b4a\example\cameraexclass.java:68: error: cannot find symbol
public b4a.example.silentapp _silentapp = null;
^
symbol: class silentapp
location: package b4a.example
Note: src\b4a\example\cameraexclass.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

Thanks.
 

JakeBullet70

Well-Known Member
Licensed User
I
Is anybody have an idea why i can't compile it?
Compiling generated Java code. Error
javac 1.7.0_67
src\b4a\example\cameraexclass.java:68: error: cannot find symbol
public b4a.example.silentapp _silentapp = null;
^
symbol: class silentapp
location: package b4a.example
Note: src\b4a\example\cameraexclass.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

Thanks.
I am running into the same problem. :(
 

Reids

Member
Licensed User
So that I didn't need to click on a bunch of OK's to test run my program when running on wifi.
you can use adb over wifi instead B4A bridge to working, just connect your phone hover wifi and type adb connect yourip, it wont request bunch of ok while compiling app to device
 

KingEdem

Member
Licensed User
Is anybody have an idea why i can't compile it?
Compiling generated Java code. Error
javac 1.7.0_67
src\b4a\example\cameraexclass.java:68: error: cannot find symbol
public b4a.example.silentapp _silentapp = null;
^
symbol: class silentapp
location: package b4a.example
Note: src\b4a\example\cameraexclass.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

I am also facing similar error... any solution ?
 
Top