GithubHelp home page GithubHelp logo

paulononaka / android-installinbackgroundsample Goto Github PK

View Code? Open in Web Editor NEW
101.0 11.0 60.0 147 KB

๐Ÿ“ฒ A sample of how to install applications in background (without user interaction) on Android

Home Page: http://paulononaka.wordpress.com/2011/07/02/how-to-install-a-application-in-background-on-android/

Java 100.00%

android-installinbackgroundsample's Issues

Installing App in Background in Rooted Devices

I tested the above project in my rooted device(Android 6.0), but I am getting below error. Can you please help me on this.

java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at com.github.paulononaka.installapkinbackground.apihelper.ApplicationManager.installPackage(ApplicationManager.java:326)
at com.github.paulononaka.installapkinbackground.apihelper.ApplicationManager.installPackage(ApplicationManager.java:322)
at com.github.paulononaka.installapkinbackground.apihelper.ApplicationManager.installPackage(ApplicationManager.java:316)
at com.github.paulononaka.installapkinbackground.MainActivity$2.onClick(MainActivity.java:47)
at android.view.View.performClick(View.java:5207)
at android.view.View$PerformClick.run(View.java:21168)
at android.os.Handler.handleCallback(Handler.java:746)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5443)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
Caused by: java.lang.SecurityException: Neither user 10127 nor current process has android.permission.INSTALL_PACKAGES.
at android.os.Parcel.readException(Parcel.java:1620)
at android.os.Parcel.readException(Parcel.java:1573)
at android.content.pm.IPackageManager$Stub$Proxy.installPackage(IPackageManager.java:3436)
at android.app.ApplicationPackageManager.installCommon(ApplicationPackageManager.java:1400)
at android.app.ApplicationPackageManager.installPackage(ApplicationPackageManager.java:1339)

install app failed

Neither user 10059 nor current process has android.permission.INSTALL_PACKAGES.

Install AND Update?

Oi, este exemplo de instalador apenas instala pacotes novos ou tambem faz o update deles?

Obrigado!

Runtime exception

When i try to instantiate ApplicationManager iยดm getting a Runtime Exception, with following message: "Stub!"

The error throws here:

public abstract static class Stub extends android.os.Binder implements android.content.pm.IPackageInstallObserver {
public Stub() {
throw new RuntimeException("Stub!");
}

Could you help me?

Exception

java.lang.IllegalArgumentException

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.