android-install-apk

How can I make android delete old native libraries?

霸气de小男生 提交于 2020-01-01 03:31:06
问题 I'm trying to delete some native libraries from my application because I don't use them anymore, but after I install the apk in my phone I can see that the native libraries are still there. As I've seen, android does copy/update native libraries correctly just by replacing the file in my libs/ directory, but apparently it doesn't delete them when they're not in the apk anymore. How do I know the libraries are still there? Well first of all the application's size remains the same and I'm

Pass param to app when installed from Google Play

自闭症网瘾萝莉.ら 提交于 2019-12-31 14:34:18
问题 I need to support the following scenario: User receives the e-mail with link to my app. If user already has the app installed the link should open the app passing some data in the intent to the launcher activity. If the app is not installed yet the e-mail link should act as campaign referrer: direct user to Google Play to install the app with referrer url that is passed to my app after installation in referrer broadcast receiver. 回答1: You need to intercept the com.android.vending.INSTALL

Android: When I try to install my signed app, it says “App not installed”

主宰稳场 提交于 2019-12-31 01:41:07
问题 When I try to install a signed apk file, the application installer says "App not installed". It happens to every app that I have made. Even if I create a brand new keystore, or if I set the build mode to debug. Although it does work if I install it through the Android Studio. But if I need to share it with my friends I can't. I tried to look for a question that can appeal my situation on this site, but I haven't found any. My application is working and (supposedly) signed. I can't find any

Android Install apk silently by busybox command-line

扶醉桌前 提交于 2019-12-30 03:34:11
问题 I want to install .apk silently in background by BusyBox command. I`ve seen some similar questions like THIS, but I still cant get working my code properly... I have: My .apk I need to install on /sdcard/download/app.apk Root BusyBox installed Code (not working): String sss = Environment.getExternalStorageDirectory() + "/download/" + "app.apk"; Process install; install = Runtime.getRuntime().exec("/system/xbin/busybox pm install " + sss); int success = install.waitFor(); If I use "install"

Android Install apk silently by busybox command-line

不羁的心 提交于 2019-12-30 03:34:05
问题 I want to install .apk silently in background by BusyBox command. I`ve seen some similar questions like THIS, but I still cant get working my code properly... I have: My .apk I need to install on /sdcard/download/app.apk Root BusyBox installed Code (not working): String sss = Environment.getExternalStorageDirectory() + "/download/" + "app.apk"; Process install; install = Runtime.getRuntime().exec("/system/xbin/busybox pm install " + sss); int success = install.waitFor(); If I use "install"

INSTALL_FAILED_DEXOPT error when trying to install application

大城市里の小女人 提交于 2019-12-28 05:58:15
问题 I have a similar problem to the ones listed here and here. I am getting an INSTALL_FAILED_DEXOPT error every time I try to install my app on my Motorola Xoom. Here is the error message from the console: [2011-08-02 09:34:43 - Blade] Installation error: INSTALL_FAILED_DEXOPT [2011-08-02 09:34:43 - Blade] Please check logcat output for more details. [2011-08-02 09:34:43 - Blade] Launch canceled! And here is the corresponding logcat: 08-02 09:47:48.910: ERROR/PackageManager(142): Package com

Rename Base.apk

ぃ、小莉子 提交于 2019-12-24 07:17:09
问题 I need to know about base.apk . When i run the following code: PackageInfo paramPackageInfo = null; try { paramPackageInfo = MainActivity.this.getPackageManager().getPackageInfo(MainActivity.this.getPackageName(), 0); } catch (PackageManager.NameNotFoundException e) { e.printStackTrace(); } ApplicationInfo localApplicationInfo = paramPackageInfo.applicationInfo; String str2 = localApplicationInfo.sourceDir; The value in Marshamallow of str2 is: /data/app/com.package.name-RY_AUYdNAwLZg==/base

App Refuses to Install - INSTALL_FAILED_MISSING_SHARED_LIBRARY

谁都会走 提交于 2019-12-24 04:25:23
问题 I am new to programming generally please I need some help! My app was installing successfully after every update until i decided to add the 'com.github.PhilJay:MPAndroidChart:v3.1.0-alpha' library to the app because i need the user to be able to view some data in form of statistical charts. The library was synced successfully and have used packages and classes therein successful. But when i try to install the app in my android device it returned this error: Installation failed with message

Error Execution failed for task ':app:mergeReleaseResources' building APK

两盒软妹~` 提交于 2019-12-24 01:59:08
问题 After trying to build APK once and fixing an error, I got an error executing ./gradlew assembleRelease again: Execution failed for task ':app:mergeReleaseResources' building APK 回答1: The problem occured becaused when I tried to build once, it has created drawables dirs on android/app/src/main/res/ . Then when I tried on second time, it has shown me this error Execution failed for task ':app:mergeReleaseResources' building APK I just deleted the drawable-* dirs and it worked. Hope it helps! rm

Xamarin Android 10 Install APK - No Activity found to handle Intent

℡╲_俬逩灬. 提交于 2019-12-23 10:13:48
问题 I want to install a 3rd party app from the filesystem from my xamarin android app. The code I used successfully before Android 10 was pretty straightforward and easy. Intent intent = new Intent(Intent.ActionView); Uri data = Uri.FromFile(file); intent.SetDataAndType(data, "application/vnd.android.package-archive"); context.StartActivity(intent); This code does not work on Android 10 because of ACTION_VIEW and ACTION_INSTALL_PACKAGE were deprecated in Android 10. Looks like we now need to use