Install/Uninstall in background application

imgsimonebiliato

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

  • SilentApp_ex.zip
    497.5 KB · Views: 621
  • SilentApp_lib.zip
    2.6 KB · Views: 355
Last edited:

itgirl

Active Member
Licensed User
Longtime User
That's nice, thank you for this for sure i will give it a try ;)
 

Silv

Member
Licensed User
Longtime 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
Longtime 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
Longtime 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
 

westingenieria

Active Member
Licensed User
Longtime User
hi, @imgsimonebiliato , why when I download you library(SilentApp) , only have one file with extension xml, but not have correct file extension jar. I can´t open file jar.

thanks in advanced.
 

KingEdem

Member
Licensed User
Longtime 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 ?
 

DonManfred

Expert
Licensed User
Longtime User

KingEdem

Member
Licensed User
Longtime User
Which b4a version are you using?

Version 3.80

I observed that, the SilentApp.jar file is corrupt and having only "pk" written when opened in notepad, the file occupped only 22 bytes. Can anyone upload the same here please ....
 
Top