android-install-apk

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

回眸只為那壹抹淺笑 提交于 2019-11-28 04:10:19
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? It is possible without System permissions from Android M onwards . if ((mPm.checkUidPermission(android.Manifest.permission.INSTALL_PACKAGES, installerUid) == PackageManager.PERMISSION_GRANTED) || (installerUid == Process

how to get source file from apk file

我们两清 提交于 2019-11-28 03:54:31
问题 in android there is any possibility to getting source file from .apk file. 回答1: It is possible. You need a decompiler for that. But be careful to consider the legal issues. I use Dedexer or dex2jar. Most times there are good results, but sometimes it is not possible to decompile all sources. 回答2: Well, normally you can't or shouldn't be able to, but you can try to 'reverse engineer' the apk (as its called) by using android-apktool: http://ibotpeaches.github.io/Apktool/ I have no experience

Error while uploading apk on playstore

▼魔方 西西 提交于 2019-11-27 23:53:01
问题 getting following error while uploading apk on playstore, please help. deactivation of this apk will result into your app being available for new installs on fewer types of devices. Thank you. 回答1: This message is a warning which says that your new apk will be available for a fewer number of devices. The reason is, you made changes which probably affected AndroidManifest.xml . You could add new permissions, feature, screen support etc. So this message will be helpful when you added one of

INSTALL_FAILED_DEXOPT error when trying to install application

╄→гoц情女王★ 提交于 2019-11-27 22:05:23
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.theisenp.blade has mismatched uid: 10023 on disk, 10073 in settings 08-02 09:47:48.910: INFO

Android Pie - 9 (API 28) : Installing APK … not successfully installing

守給你的承諾、 提交于 2019-11-27 19:32:12
问题 Recently I have updated OS to Android 9(Pie) and found that Whenever I try to install APK from android studio it does not work. As it just shows "Installing Apk..." and freezes at that point, After waiting too long it shows "Application Installation Failed" with "Installation failed with message null." Did anyone else is facing this issue? If yes then help, please. Here is the attached screenshot. Device and Enviornment Details : Device : MI A1 Android Studio : 3.2.1 Any Help, Idea,

Silent install apk programmatically by system app (without root)

自古美人都是妖i 提交于 2019-11-27 17:06:58
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? 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. Updating application using just "pm install" doesn`t replace existing application with new one, but returns exit

android programmatically update apk and see the result of the installation

浪尽此生 提交于 2019-11-27 11:42:33
问题 I'm writing an app updater for my app. After I make sure I have my apk on the device, this is what I do from within the app I'm trying to update: Intent promptInstall = new Intent(Intent.ACTION_VIEW); File f = new File(apkLocation); promptInstall.setDataAndType(Uri.fromFile(f), "application/vnd.android.package-archive"); _context.startActivity(promptInstall); This launches my installer which displays the app permissions and I am able to click "Install". But from here the app simply closes, I

Android application self-update [duplicate]

狂风中的少年 提交于 2019-11-27 10:11:17
问题 Possible Duplicate: Android: install .apk programmatically I need to update my android application. Internally the program, I download the new version. How can I replace the current version by that new was downloaded (programmatically)? URL url = new URL("http://www.mySite.com/myFolder/myApp.apk"); HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection(); try { FileOutputStream fos = this.getApplicationContext().openFileOutput("myApp.apk", Context.MODE_WORLD_READABLE|Context

How to zipalign the .apk file using eclipse?

a 夏天 提交于 2019-11-27 10:06:09
问题 Can anyone tell me how to zipalign my .apk file with using eclipse. I have made my .apk file by giving command like, Right Click on Project Folder Click on "Android Tools" option from menu. Click on "Export Signed Application Package..." and my .apk generated in given application alias. Now want to do zipalign for this above generated .apk file. Does any tool require to do so OR anything that can solve my problem. 回答1: If you did what you described above then Eclipse has already zipaligned

Error while installing application (INSTALL_FAILED_DEXOPT)

偶尔善良 提交于 2019-11-27 07:39:04
问题 I am working with ccr4j API in Android so when I run my project its thrown an error like: Error while installing application (INSTALL_FAILED_DEXOPT) I find from net and same site also, did all trying like, 1. Uninstalled same application from device. 2. Run Emulator with Wipe User Data. But still same error comes. So anyone know why its thrown this kind of error? 回答1: This most likely has to do with the size of classes.dex. On anything pre-ICS dexopt will fail on anything over 5mb. Check the