android-install-apk

Android apk install: How to clear files from old version?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-05 17:55:27
When I install a new version of my .apk, this overwrites the old version without deleting it: In the new version, I deleted some files (libraries generated with NDK) --- but on the device, the old files are still there. How can I ensure that whenever a new version is installed, all old files will be deleted before the installation? Edit/Clarification: This question asks for a solution for existing users of my application. I know that I can clean up the application myself by uninstalling it before installing the new version. But other users will not do this --- keeping the old files on their

how to get access of android root directory (/system/app) programatically?

五迷三道 提交于 2019-12-05 07:08:52
问题 I have an apk file in asset folder. Now I need to create a program which will install that apk file as system application. Manually it is possible by copying that apk file into sdcard with following steps, $ adb push MyApk.apk /sdcard/ $ adb shell $ su $ mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system $ cat /sdcard/MyApk.apk > /system/app/MyApk.apk $ pm install /system/app/MyApk.apk But is it possible to do through code? 回答1: Refer the below code to move user app apk into system

Changing the package name of an upgraded Android application

孤人 提交于 2019-12-04 20:16:24
问题 During the upgrade of my android application, I changed the package name. But Android market doesn't allow to upload the changed package name application as an upgrade. If I upload the application as a new application, will the user have two applications on his/her device? How can I make sure that the user doesn't have to download the application again from scratch without reverting the change of my package name? 回答1: two package = two different application in market place. Once you upload

how to get access of android root directory (/system/app) programatically?

 ̄綄美尐妖づ 提交于 2019-12-03 21:45:29
I have an apk file in asset folder. Now I need to create a program which will install that apk file as system application. Manually it is possible by copying that apk file into sdcard with following steps, $ adb push MyApk.apk /sdcard/ $ adb shell $ su $ mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system $ cat /sdcard/MyApk.apk > /system/app/MyApk.apk $ pm install /system/app/MyApk.apk But is it possible to do through code? Refer the below code to move user app apk into system app apk in rooting device with the help of RootTools method . PackageInfo paramPackageInfo = null; try {

Android: how to install apk on device, without using android sdk tools

安稳与你 提交于 2019-12-03 13:25:07
问题 I have built my app into a signed SDK. I would like for beta testers to be able to install this on their devices without having to install and use the android sdk tools (I realize the apk can be installed with command line tools, but would prefer that not be necessary). I tried manually installing it, but it failed. I have an android tablet that I am using for testing. I copied the apk to my device's sdcard, and clicked on it. Which gave the option to install it with the App Manager.

Delta update for Android App updates

喜夏-厌秋 提交于 2019-12-03 12:42:32
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. Based on your question, it looks like you are looking for some kind of patching system. Normally Google play store takes of managing this. When you upload a new version of APK, it only download the difference on client

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

不羁岁月 提交于 2019-12-03 09:40:47
This question already has an answer here: Android differences between signed and unsigned .apk files? 2 answers 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) chrylis -on strike- Signing Android apps is just like signing any other application; it provides the user with some level of assurance that the code hasn't been tampered with since you released it. Unsigned apps should be

How can I make android delete old native libraries?

偶尔善良 提交于 2019-12-03 09:14:05
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 deleting some really big libraries, and second, if I leave the System.load(...) statement the app is still

Take backup of all install apk file into sdcard programmatically in Android [duplicate]

↘锁芯ラ 提交于 2019-12-03 04:38:47
问题 This question already has answers here : How to get the .apk file of an application programmatically (3 answers) Closed 5 years ago . I want to take back up of my all install application in my sdcard so I write below code public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); final Intent mainIntent = new Intent(Intent.ACTION_MAIN, null); mainIntent.addCategory

Android: how to install apk on device, without using android sdk tools

久未见 提交于 2019-12-03 03:26:36
I have built my app into a signed SDK. I would like for beta testers to be able to install this on their devices without having to install and use the android sdk tools (I realize the apk can be installed with command line tools, but would prefer that not be necessary). I tried manually installing it, but it failed. I have an android tablet that I am using for testing. I copied the apk to my device's sdcard, and clicked on it. Which gave the option to install it with the App Manager. Unfortunately the install fails with message "Application not installed". Is there a way to manually install an