android-install-apk

Delta update for Android App updates

老子叫甜甜 提交于 2019-12-09 11:36:22
问题 I am trying to setup my own Server to host apk files which will be available for installs and updates in the client App. On new version update of apk, only the updated part should get downloaded at the client end. I am able to generate a patch file using "bsdiff" at the server end. But at the client, how should I merge the patch file with the original apk and install the update. 回答1: Based on your question, it looks like you are looking for some kind of patching system. Normally Google play

How to have both Debug and Release apk on same device?

回眸只為那壹抹淺笑 提交于 2019-12-09 07:46:32
问题 While continuing to develop my application and test it on a real phone, I need to have the release version of it on the same phone, for demonstration purposes (the release version is much more responsive, thanks to no-logs). The problem is that the only way to make two applications co-exist on the same device in Android is by having different package names. But package names require re-factoring and lots of propagating manual fixes... not to mention that this confuses version control...

Can we do silent updation for android application?

我们两清 提交于 2019-12-08 14:37:36
Is there any way to make automatic silent update for corporative app? We have an app that working only with local network and WEB-service. Tablets works thru Wi-Fi, but has no access to internet because of security. We need to get something like this functionality: Administrator put some updates to server. App downloads files and automaticly update itself without any additional action of users. Is there any way to do this? Emmanuel Touzery Such an upgrade without the android market is possible only if the device is rooted, see: https://stackoverflow.com/a/15085540/516188 It depend on exactly

APK not working made from Android Studio V 2.3.3

醉酒当歌 提交于 2019-12-08 11:24:31
问题 I have updated my Android Studio from 2.3.2 to 2.3.3. Now, when I try to install APK generated in \app\build\outputs\apk, the App gets installed but it just flicks and exists. It used to work fine before but it's not working since yesterday, and I have tried 2-3 different projects also but no use. 回答1: Your manual way of generating APK is not generating the correct APK, so i am Suggesting these way to generating APK for Manual Install: For Debug Build Delete you build folder inside the App

Application not installed when i try to autoupdate

喜欢而已 提交于 2019-12-08 09:41:38
问题 I have an auto update on my app that update itself, I launch the activity that way: Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse("file://"+ruta+"NameApp.apk"), "application/vnd.android.package-archive"); intent.addFlags(intent.FLAG_ACTIVITY_NEW_TASK); mContext.startActivity(intent); the problem is when I try to install it it said "Application not installed" I searched information about this and the people said that I must change version code and version name

Understanding how android app is installed by PackageManagerService

橙三吉。 提交于 2019-12-08 01:30:24
问题 So I've been digging around AOSP trying to figure out how an android app is installed. So far this is where I'm at: The apk File will be sent from PackageInstallerActivity to InstallAppProgress where it invokes the PackageManager method installPackage(). The previous call to PackageManager gets directed to the PackageManagerService, with the magic of AIDL (took some time for me to understand this). In the core method installPackageWithVerification() an instance of the PackageHandler gets

Set “installer” package value as returned in getInstallerPackageName()

我只是一个虾纸丫 提交于 2019-12-07 05:35:29
问题 I have an Android app that uses a WebView to enable users to install applications. Historically, applications installed from Android Market will have the installer value set to "com.google.android.feedback". With Google Play, this value is now "com.android.vending". This value can be obtained by: PackageManager pm = context.getPackageManager(); String installer = pm.getInstallerPackageName(pname); The apps installed by my WebView have an installer value set to null. How can I set my own

How to manage installation from Unknown Sources in Android Oreo?

冷暖自知 提交于 2019-12-06 18:30:09
问题 In Android Oreo (8.0), several changes where made on how to allow the installation of apps from Unknown Sources (from the user's point of view) and to the process of getting permission to install them (from the developer's point of view). Since I found it particularly hard to find all the steps necessary on the developer side, I thought it to be useful to ask here for the solution and answer the question myself, now that I found the answers, for future reference to those, who are facing the

Apk File download Error using Java in Android

情到浓时终转凉″ 提交于 2019-12-06 01:37:00
.I followed this tutorial and getting errors "PARSING ERROR THERE IS A PROBLEM PARSING THE PACKAGE" . I have check the result in Android Device Samsung Galaxy S3. package com.mrfs.android.surveyapp.activities; import java.io.File; import java.io.FileOutputStream; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.URL; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.AsyncTask; import android.os.Bundle; import android.os.Environment; import android.util.Log; public class ApkFileAsync

Android : programmatically copying apk to /system/app

 ̄綄美尐妖づ 提交于 2019-12-05 23:50:26
问题 I am trying to install a system app from my java code, and so far, I haven't had any success. Following is what I have done so far: My device is rooted. My "installer" app is installed as a system app. (copied it manually to /system/app) I have signed the installer apk with platform key, and I have android:sharedUserId="android.uid.system" in the Manifest. I have been trying (and trying, and then some more) for Runtime.getRuntime.exec("su") . I intend to mount the system partition as rw , do