android-install-apk

How to install/update/remove APK using “PackageInstaller” class in Android L?

对着背影说爱祢 提交于 2019-11-27 04:14:39
问题 Plz check below classe & give me the suggestion for how to use them https://developer.android.com/reference/android/content/pm/PackageInstaller.html https://developer.android.com/reference/android/content/pm/PackageInstaller.Session.html So please give me an example to install/update/remove app. Can it be possible that the new application will install in device profile owner? 回答1: It is possible without System permissions from Android M onwards. if ((mPm.checkUidPermission(android.Manifest

Programatically install apk from assets folder in android

不想你离开。 提交于 2019-11-27 01:43:14
问题 I am trying to install apk programatically from assets folder but not success, Please help me. I am using following code for that. thank you. Intent intent = new Intent(Intent.ACTION_VIEW) .setData(Uri.parse("file:///android_asset/youtuberanjit.apk")) .setType("application/vnd.android.package-archive"); startActivity(intent); 回答1: AssetManager assetManager = getAssets(); InputStream in = null; OutputStream out = null; try { in = assetManager.open("myapk.apk"); out = new FileOutputStream("

Android Failed to install HelloWorld.apk on device (null) Error

我的梦境 提交于 2019-11-27 00:12:24
I am new to Android. When I am running my android application in eclipse I am getting these messages in the console: [2011-03-08 12:57:35 - HelloWorld] ------------------------------ [2011-03-08 12:57:35 - HelloWorld] Android Launch! [2011-03-08 12:57:35 - HelloWorld] adb is running normally. [2011-03-08 12:57:35 - HelloWorld] Performing com.oreilly.helloworld.HelloWorldActivity activity launch [2011-03-08 12:57:35 - HelloWorld] Automatic Target Mode: Preferred AVD 'MY_AVD' is not available. Launching new emulator. [2011-03-08 12:57:35 - HelloWorld] Launching a new emulator with Virtual Device

Silent install apk programmatically by system app (without root)

半城伤御伤魂 提交于 2019-11-26 22:31:02
问题 I have system-level app with android:sharedUserId="android.uid.system" (UID: 1000). Device is not rooted! INSTALL_PACKAGES permission is included to Manifest. Can I install downloaded *.apk silently? 回答1: I`ve found the issue. Added " android.permission.INSTALL_PACKAGES " permission. I signed my application using " signapk.jar " with certificate that I`ve got from manufacturer of my device. And now this app can install others using " pm install /.../app.apk " without "su". It works! P.S.

Cannot install signed apk to device manually, got error “App not installed”

杀马特。学长 韩版系。学妹 提交于 2019-11-26 17:15:26
I'd like to publicate my app to GooglePlay but first i would like to do a last testing with the signed apk to ensure that all of the used API keys are working correctly with the release version (GMaps, Facebook, etc) So i just made a signed version of my app with our release key and when i try to install the app to the device i got an error: I have tried to copy the apk to the device and install it with an apk installer app. Strange thing is when i do the same process with debug signing key, all is well, I can install and run the app. Here are the steps of the procedure: I select the release

Android Failed to install HelloWorld.apk on device (null) Error

风格不统一 提交于 2019-11-26 09:19:50
问题 I am new to Android. When I am running my android application in eclipse I am getting these messages in the console: [2011-03-08 12:57:35 - HelloWorld] ------------------------------ [2011-03-08 12:57:35 - HelloWorld] Android Launch! [2011-03-08 12:57:35 - HelloWorld] adb is running normally. [2011-03-08 12:57:35 - HelloWorld] Performing com.oreilly.helloworld.HelloWorldActivity activity launch [2011-03-08 12:57:35 - HelloWorld] Automatic Target Mode: Preferred AVD \'MY_AVD\' is not available

Android Install on Device Failure [INSTALL_CANCELED_BY_USER]

时间秒杀一切 提交于 2019-11-26 09:18:58
问题 I\'m using Android Studio to connect to run app in my Xiaomi Redmi Note 3G device. My device is already found in the Choose Device Dialog , but I keep getting the [INSTALL_CANCELED_BY_USER] error : Waiting for device. Target device: xiaomi-hm_note_1w-SSE6Y97PFYQCRK45 Uploading file local path: C:\\Users\\Anthony\\AndroidStudioProjects\\UASProject\\app\\build\\outputs\\apk\\app-debug.apk remote path: /data/local/tmp/com.si.UASPROJECT Installing com.si.UASPROJECT DEVICE SHELL COMMAND: pm

Cannot install signed apk to device manually, got error “App not installed”

我只是一个虾纸丫 提交于 2019-11-26 06:18:01
问题 I\'d like to publicate my app to GooglePlay but first i would like to do a last testing with the signed apk to ensure that all of the used API keys are working correctly with the release version (GMaps, Facebook, etc) So i just made a signed version of my app with our release key and when i try to install the app to the device i got an error: I have tried to copy the apk to the device and install it with an apk installer app. Strange thing is when i do the same process with debug signing key,

How to Sign an Already Compiled Apk

风流意气都作罢 提交于 2019-11-26 04:58:19
问题 I\'ve decoded an APK with apktool (as the original source code was lost) so I could fix some issues with the layout xml files. I\'ve then rebuilt it back up with apktool and when I tried to install it on my device (using adb: adb install appname.apk) it gave me this error: [INSTALL_PARSE_FAILED_NO_CERTIFICATES] the original apk however was signed by a keystore (on eclipse IDE), this one isn\'t, how can I sign it properly with it\'s original keystone file outside Eclipse!? 回答1: create a key

Android App Not Install. An existing package by the same name with a conflicting signature is already installed

爱⌒轻易说出口 提交于 2019-11-26 03:53:49
问题 In my emulator, when I try to do an upgrade of my apk programmatically. I get: Android App Not Install. An existing package by the same name with a conflicting signature is already installed I\'m still in the testing phase of this upgrade, so the file I download is a signed apk of a previous version, which I think should work without any issues. From the suggestion in: an existing package by the same name with a confilcting signature is already installed I tried to run the emulator both in