android-install-apk

install apk in background using busybox

柔情痞子 提交于 2019-12-12 08:01:50
问题 can i install apk in background using busybox on rooted device ??? i see something like that but it doesn't work process install; CommandCapture command = new CommandCapture(0, "chmod 777 /data/app"); RootTools.getShell(true).add(command).waitForFinish(); CommandCapture command2 = new CommandCapture(0, "chmod 777 /system/xbin/busybox"); RootTools.getShell(true).add(command2).waitForFinish(); install = Runtime.getRuntime().exec("/system/xbin/busybox install " + Environment

What is the differences between `export signed` and `unsigned` .apk file? [duplicate]

梦想与她 提交于 2019-12-12 07:39:39
问题 This question already has answers here : Android differences between signed and unsigned .apk files? (2 answers) Closed 6 years ago . I'm building .apk file for my Android application using Android tools - Export... as guided here My question is what are signed and unsigned .apk file? How can we use usngined .apk file? (I tried to export an unsigned one but I cannot install it for my Galaxy Nexus) 回答1: Signing Android apps is just like signing any other application; it provides the user with

Run code only once after a fresh installation,Shared Preference is not a solution please see below description

倖福魔咒の 提交于 2019-12-12 07:16:10
问题 I want to run a specific code only once in my android application.Shared preferences solution is not the solution as when you go to application manager and perform Clear Data then shared preferences gets deleted so application treats it a new fresh installation. I even tried Application class that too failed,it works same as shared preferences. Any help except Shared preferences and Application Class will be appreciated. Thanks. 回答1: The answer hinges on what "only once" means. Once per

Solving install error dexopt

我的未来我决定 提交于 2019-12-11 16:21:44
问题 Even though there are several posts about dexopt errors none of them helped. I suddenly started to receive dexopt errors : Failure [INSTALL_FAILED_DEXOPT]. Ive tried uninstalling the app from my phone but it didnt help. Ive tried to wipe app data from /data/data/ and it didnt help either. However, if i run for second time after install failed dexopt error, i receive an Failure [INSTALL_FAILED_UID_CHANGED] error. After wiping /data/data again comes the same error sequence explained above. Ive

How to debug an app upgrade in Android Studio on a USB connected device

丶灬走出姿态 提交于 2019-12-11 07:58:34
问题 I have the production release of my Google Play Store app on my phone and have an updated version of the app in Android Studio. I would like to test the upgrade process , but have run into a versioning problem, then a logging problem. To get a "clean" install, I can go into my phone's settings Backup & reset > Automatic restore , turn that off, then de-install the app, and install it from the Play Store. Alternatively, I could download the production APK and install it from the adb command

How to install android application in android without using adb?

。_饼干妹妹 提交于 2019-12-11 03:35:42
问题 i have just android terminal i dont have adb to install apk . i dont have double click on apk and install that application. so is there any command available using that i can install application on android shell? 回答1: Yes, try this: pm install apk.apk 来源: https://stackoverflow.com/questions/12035526/how-to-install-android-application-in-android-without-using-adb

How to clear count badge after clearing data and uninstall application in android?

痞子三分冷 提交于 2019-12-11 03:17:00
问题 The problem is when I install application and use it, it shows count badge on application icon. Now when I un-install application (while count badge is being displayed on application icon), and re-install the application, it again shows badge count on application icon. (Note:- It iss showing last badge count when application was un-installed) My problem is : Why badge count is being displayed after re-installing application? Do un-installing an application not clear its whole data? Can I

How to use “libsu” library (or adb) to install split APK files on Android Q?

自作多情 提交于 2019-12-11 01:07:21
问题 Background Using root, I know that for a single APK file, we can use the "libsu" library (here) to install as such: val installResult = Shell.su("pm install -t \"$filePath\"").exec() And if that failed (fails on new Android versions, not sure from which), as such (written about this here): val installResult = Shell.su("cat \"$filePath\" | pm install -t -S ${apkSource.fileSize}").exec() I also know that things got quite messy when it comes to installing split APK files (as shown here). First

Android: INSTALL_FAILED_DEXOPT while install app on android 1.5

天涯浪子 提交于 2019-12-10 18:59:34
问题 I am developing app which bust run on both Android 1.5 and Andoroid 2.x platforms. When I install it on Android 2.2 all is OK, but on emulator with Android 1.5 I get an error: Failure [INSTALL_FAILED_DEXOPT] What is the problem may be? UPD That is Logcat output: 09-26 07:12:22.484: INFO/PackageManager(579): /data/app/vmdl23706.tmp changed; unpacking 09-26 07:12:22.494: DEBUG/installd(557): DexInv: --- BEGIN '/data/app/vmdl23706.tmp' --- 09-26 07:12:36.114: ERROR/dalvikvm(1362): LinearAlloc

How to Install android app programatically without prompt,

陌路散爱 提交于 2019-12-10 11:37:46
问题 I am trying to install the application programatically without prompt. Means, installing the app without showing the pop-up where user has to press install option. I followed THIS answer. But whenever I am running the code, it is throwing the error java.io.IOException: Error running exec(). Command: [su, -c, adb install -r /storage/emulated/0/update.apk] Working Directory: null Environment: null Caused by: java.io.IOException: Permission denied at java.lang.ProcessManager.exec(Native Method)