Android : Install-time Extraction Of .apk Files?
Oct 21, 2010
I'm writing an application and would like to have some files extracted from the .apk during _installation_ time, as the files can be quite large and extracting them from the .apk during the first run results in a noticeable slowdown which I would prefer to avoid.
After lots of experimentation, I have found one way to make this work, but I'm unsure about the "long-term" ramifications of this approach, specifically: will this actually work in android-9 and later?
The approach is to name the files I want extracted at installation time as "lib*.so", and place them into the appropriate lib/ABI folder within the apk file, e.g. the .apk contains:
lib/armeabi/libMyLargeFile.dat.so and at installation time this is (nicely) installed as:
$APPDIR/lib/libMyLargeFile.dat.so
My concern is that 'libMyLargeFile.dat.so' is NOT an ELF shared library. This approach only works because PackageManagerService only checks for files matching the `lib/ABI/lib*.so` pattern (which is followed) and does not check the contents of the extracted file.
This approach works for Android 1.6 through Android 2.2. I'm wondering if this will continue to work in the future, or if I need to investigate an alternate mechanism.
View 4 Replies
Jul 29, 2009
To android working on eclipse with android 1.5 r2 version when i am running a basic program its showing a error .apk file not found.
View 2 Replies
View Related
Nov 2, 2009
I want to create the DB when the app is installed not the first time it runs the program, how i can do that? or maybe put the DB inside the apk? any sugestion?
This is Bunny. Copy and paste bunny into your (")_(")signature to help him gain world domination.
View 2 Replies
View Related
May 14, 2010
I try some method,but not success.
View 2 Replies
View Related
Sep 15, 2009
By any means, programmatically can I get the install date & time of the already installed apps on the android device. The ApplicationInfo doesn't provide this info. While digging through the /data folder through the DDMS perspective, I saw the installed apk's do contains the Date & time of when it was installed, but the sad part is that this /data folder is not accessible on the device programmatically.
View 3 Replies
View Related
Jun 27, 2010
Is there any way to determine programmatically the time at which an Android application was installed? I don't see anything in PackageInfo, etc.
--EDIT--
To clarify, App A is installed at Time X. At some later time, Time Y, App B is installed. Is there any way App B can know when App A was installed? The link http://stackoverflow.com/questions/2831333/how-to-get-app-install-time-from-android/2920310#2920310 indicates that reading the modify time on the source dir of the App is sufficient. Is this really correct? Why?
View 3 Replies
View Related
Dec 16, 2009
I want to know how to install .exe applications in HTC Magic mobile(Andriod OS)
View 4 Replies
View Related
Jun 10, 2010
I downloaded some really cool games and i was wondering was there a way to get the ipa file to work on the evo?
View 1 Replies
View Related
Jul 22, 2010
My app has a styles.xml file with various visual constants defined.
I'd like my users to be able to switch the entire app to an alternative visual theme. I'd like to provide an alternative styles2.xml file and switch at runtime (via the Settings).
Is this possible, and how? I suspect the style names' appearance in the generated R class does not bode well.
If it's not possible, what's my next best option?
View 1 Replies
View Related
Jul 22, 2010
Let's say I have 2 files on Desktop: (Note that I have another file than .apk application.)
.apk file
.zip file (wich contains a large of data that .apk must unizp and do some work with it).
I want to plug an Android device and programmatically copy these both files to Android.
The application must be visible to user and the .zip file must be "visible" to the application, wich will unzip it and do some work with it.
With PalmOS, I use HotSync API. With WinMobile I use ActiveSync (rapi) API. How to do it on Android?
View 1 Replies
View Related
May 4, 2009
Is there Any procedure to install the Older version .apk files in emulator
View 3 Replies
View Related
Sep 20, 2010
1) I am using Eclipse IDE and Android SDK 2.1 for my application. My application reads some data files from the File System, so using DDMS i push all the files in "/data/data/com.mypackage/" folder and run my application on emulator. I am able to see my desired output properly on the emulator.
2) Now i have Android device and i don't know how to push the files in the Internal memory of the phone. I have installed driver CD. But it only shows me the SD card directory.
3) Actually what i want is that the moment my application is installed and run it should read the data files from the file system. So there should be no added efforts to push the files in the file system.
4)Means can i pack my data files with my .apk file and when the apk is getting installed can the data files be placed directly in the internal memory(file system) i.e. "/data/data/com.mypackage/" folder. Is this possible ?
View 3 Replies
View Related
Jun 30, 2010
I have some apk files i want to put on my phone how do i install these apps?
View 6 Replies
View Related
Nov 5, 2010
I have a Samsung Galaxy Vibrant and all I want to do is upload my photos that I've taken. I plug in the phone in the USB and it tries to install the drivers. But each time Failed. What am I doing wrong? I've only had the phone a week. I am ready to take it back.
View 3 Replies
View Related
Oct 6, 2010
Do battery stats reset every time a install a new rom(not a restore just a fresh rom) or only when I clear them?
View 2 Replies
View Related
Aug 13, 2009
Can anyone tell me how to run or install a .JAD file on my hero please. I've downloaded an app from a website but the hero says it doesn't recognise the file type .
View 3 Replies
View Related
Feb 20, 2010
Ive read the specification sheet of the HTC Tattoo, and realized this feature:Java MIDP 2.0 - Yes
Then my question is, why cant I install .JAD nor .JAR files?
- ASTRO keeps opening the file, as some sort of text editor, and when uninstalling ASTRO, the phone tells me that its an unknown file type.I mean, if the phone supports Java MIDP 2, then it should be able to recognize the Java files... right?!
View 4 Replies
View Related
Feb 13, 2013
I have APK files in my download folder on Samsung Galaxy 3. I am having problems installing these files. How do I do this?
1. I click on the APK file and it gives me parsing error.
2. I then moved the files to the root directory in systemapps and tried from there. Didn't work. I get JAVA R2ME runtime error.
3. I have the J2ME files in my download folder. Where do I place them?
It's been two weeks and I am not having luck installing my APK files which are a few.
View 3 Replies
View Related
Jul 19, 2010
Trying to run WIFI TETHERING, but SU just sits there and doesn't seem to do anything, but maybe force close. Running Smash rom. Honestly, I would probably switch roms, but I don't know how to do that. Someone else rooted my phone. Also, I'd love to get rid of stock apps.
View 9 Replies
View Related
Sep 7, 2010
A lot of Android apps now display a modal dialog with the changelog (text) of the application (what's new in the latest version) the first time after it is installed or updated.
Does any one have example code on:
How to display a nice modal dialog suitable for scrollable text
How to make sure the dialog is only shown once
For 2. I assume SharedPreferences can be used for defining a preference "hasChangeLogBeenShownForVersionX" that is updated after the dialog has been shown. (though there might be a better way
View 2 Replies
View Related
Oct 12, 2012
When I do a restore, I'm able to copy files from my PC to phone, but the time/date of file is lost. The files on phone show the current date. I've tried copying via WiFi and USB with the same result. How to preserve the time/data info of file?
View 4 Replies
View Related
Apr 17, 2010
Can someone tell me how to install .jar files.
View 2 Replies
View Related
Jan 11, 2012
trying to install jar and tar files to a samsung galaxy s. my jar files converted to apk but get a parse error and the tar i cant convert.... been trying to one week already and nothing....
View 3 Replies
View Related
Mar 4, 2010
I am new to the whole rotting thing, I installed the bugless beast on my droid 2 days ago and everything went great and it worked fine, I'm just having an issue with it being really lagy at times and the biggest problem is that it freezes everytime I open or close the keyoard, I have to forse close and wait for it to load everything up again, a message is desplayed and it says:
The application launcher+(process android.process.acore) has stopped unexpectedly. Please try again. Then I hit forse close, it usually only happens when I open or close the keyboard but sometime it will happen at random. Does anyone know why this is happening and how to fix it.
View 3 Replies
View Related
Nov 20, 2010
Does anyone know how to get hero to recognize or install .jar or .jad files? I'm trying to install the bloover 2 if ya know anything about it can you throw me a bone here
View 1 Replies
View Related
Sep 7, 2010
What is the best (easiest) way to install an .apk file on the Epic? I took Gary's offer for a free "paid version" of the xScope browser to all Android Forum users but have never tried to install an apk file before.
BTW...Anyone wanting a copy just email Gary at xscopebrowser@gmail.com
View 16 Replies
View Related
Nov 14, 2010
UPDATE: Never Mind....Did the update without them and it worked fine....
Can anyone provide VzNav.odex and VZW_Skype.odex files so I can install the Nov OTA update?
You have to restore the Bloatware before you take the steps to install this update and I have all the original files I removed except for these two for some reason. I have their corresponding apk files but not the odex files.
View 2 Replies
View Related
Jan 21, 2014
installing an Android app without using the package installer.
Is there any way of installing an app through any other means than clicking on the .apk file in the folder?
Would it be possible to manually extract the apk archive and move the files to appropriate folders somewhere in /root/?
View 1 Replies
View Related
Dec 11, 2013
I would like to "deploy" .apk files to a set of tablets for student use in the school. Every now and then I will be required to install new apps across a range of devices. I have sorted out the transfer of the apk files to the tablets using an app called "FolderSync" so that the files will be local on the SD Card. Hopefully this part should not be problematic. Due to the fact that the tablets will be used by students, I want to make the process of installing the apps as automated as possible. Using the command "pm install <app.apk>" command I have achieved this step also. My trouble is that I will require the script to improvise and find all apk files in a folder and install them. So far I have tried the following:
Code:
su
cd /sdcard/FolderSync/
find *.apk -exec "pm install {}" ;
However this returns "find: pm install app.apk: No such file or directory" This may be more of a Linux issue than android, or maybe even just me missing something obvious, however I have tried adjusting the syntax here and there and can't figure out how to successfully install a directory of .apk files.
View 2 Replies
View Related
Jun 18, 2010
Please bear with me as I am a recent convert to Android having been with Nokia and their Symbian system for years It's soooo outdated compared to Android I have been trying to install both the Swype beta apk & the HTC keyboard apk files onto my X10 for the last couple of days. I followed the instructions to get the file on my SD card and when I go to try and install it (using Astro) the phone keeps on asking me if I want to install it . I have the option in 'Unknown Sources' ticked to allow installs NOT from the market. I was going to format the SD card to see if that helps but I don't know if that will lose any system files vital to the phone. Strange thing is that the ADW Launcher installed fine and I didn't get that from the market.
View 5 Replies
View Related