How to make an apk with zip inside? - Android Software Development

Hi everyone
I'm a newbie, and I want to find/make an apk with this function:
For example, the apk name is MyApp.apk
- There is a zip-file inside the apk with name MyZip.zip
- When I install MyApp.apk, it will automatically extract MyZip.zip into a pre-define folder, such as "Android/MyZip/" or any folder name I can setup on the apk.
Sorry about my bad English, because I'm not English-speaker.
Can you understand my question? Please leave a comment or answer my question. Thanks for reading my thread...

Related

[Q] deodex problem

5. IMPORTANT: After you have run option 3, you MUST navigate to the xUltimate folder and find "origi_frame" folder, and delete "guava.odex". It's a bad file, and interferes with deodexing process.
Can someone tell me where I find this file, lol I just cant find it.
8. Go back into the xUltimate folder and copy "done_frame", and "done_app", and move them to the root of the sdcard.
I cant find these files either, I also did step 4 without deleting the guava.odex file, once I find out where the files are should I just start over or what. I know this is probably a stupid question but Im lost and I have searched for the answer everywhere before asking.
chris6551 said:
5. IMPORTANT: After you have run option 3, you MUST navigate to the xUltimate folder and find "origi_frame" folder, and delete "guava.odex". It's a bad file, and interferes with deodexing process.
Can someone tell me where I find this file, lol I just cant find it.
8. Go back into the xUltimate folder and copy "done_frame", and "done_app", and move them to the root of the sdcard.
I cant find these files either, I also did step 4 without deleting the guava.odex file, once I find out where the files are should I just start over or what. I know this is probably a stupid question but Im lost and I have searched for the answer everywhere before asking.
Click to expand...
Click to collapse
1. It's located in the same folder you ran the "Main" application from, once you finished option 3, locate "origi_frame" folder and navigate to "guava.odex" file to delete it, its right between framework-tests file and ime file.
2. The "done_app" & "done_frame" is located in the same location as the "Main" application.
dr154 said:
1. It's located in the same folder you ran the "Main" application from, once you finished option 3, locate "origi_frame" folder and navigate to "guava.odex" file to delete it, its right between framework-tests file and ime file.
2. The "done_app" & "done_frame" is located in the same location as the "Main" application.
Click to expand...
Click to collapse
These done_app and done_frame is simply not in the xultimate zip anywhere, I have been looking for them for like 6 hrs now can someone please please help me Im loosing my mind because everyone seems to find them without issue and they are just not in there. I have the 2.2.2 version too. so please please help me.
chris6551 said:
These done_app and done_frame is simply not in the xultimate zip anywhere, I have been looking for them for like 6 hrs now can someone please please help me Im loosing my mind because everyone seems to find them without issue and they are just not in there. I have the 2.2.2 version too. so please please help me.
Click to expand...
Click to collapse
They are not in the .zip... they are generated after some of the steps are done in the cmd and placed where ever the file was placed when you unzipped it and started with step 1. PM me and I will help you on gtalk
chris6551 said:
These done_app and done_frame is simply not in the xultimate zip anywhere, I have been looking for them for like 6 hrs now can someone please please help me Im loosing my mind because everyone seems to find them without issue and they are just not in there. I have the 2.2.2 version too. so please please help me.
Click to expand...
Click to collapse
sheelanagig said it best:
sheelanagig said:
In the directory/folder that you unzipped xUltimate to and where the "Main.exe" executable is that you are running (most likely called xUltimate-v2.2.2), it should have created the following sub-directories:
(after successfully pulled the original system files by selecting option 1 & 2 of "main.exe")
origi_app
origi_frame
(after deodex was successfully run in option 3 & 4 of "main.exe")
done_app
done_frame
Click to expand...
Click to collapse
if you truely having trouble just forget all that and come ova to my thread and get the files there... >>> Main Thread <<< or files post >>> "Done Files Post" <<<
problem solved
I got it thanks for all the help.

[Q] howto make cwm.zip files for ram builds?

Hi guys,
how i can make a cwm.zip file for RAM-builds? I created a file but it doesnt make any effect the old symbols stay!
any help?
plz i need help.
i need a cmr.zip file which extract a file to this folders:
System/app
System/ram/app
ramfiles/app
can someone make this for me? I tried it with 7.zip but it doesnt work correctly!
Read the rom thread you are using.it probably has instructions, on applying files.

Theme chooser other rom's

Hi, Sorry for my bad English. The question is simple,
Theme Chooser you can install other rom? Thank you and
sorry if I do not speak English well
edit: I found this guide but does not work on my desireHD, is for Motorola Droid:
the way I did it (because I don't know where else to get a copy) was:
1. download a copy of ultimatedroid 3
2. extract it to your sdcard
use Root Explorer from here down:
3. go into your newly extracted UD folder's system/app folder
4. find themechooser.apk and thememanager.apk
5. copy them to your system's system/app folder
6. run them both so they install themselves
7. done
Help me please

Building And APK.

Hi All,
Just a quick question if I may - I've decompiled my framework-res.apk file to edit an icon, but how do I go about re-compiling the .apk?
Any help is greatfully appreciated,
Regards
SWFlyerUK said:
Hi All,
Just a quick question if I may - I've decompiled my framework-res.apk file to edit an icon, but how do I go about re-compiling the .apk?
Any help is greatfully appreciated,
Regards
Click to expand...
Click to collapse
For simple icon editing, I'd just rename the .apk to .zip and extract the icon to be changed, then re-store it into the archive. No need to decompile/recompile for image changes as they are just stored as-is.
Hi mate,
Thanks for the reply.
I changed framework-res.apk to a .zip and changed some of the image files, then re-packed to a .apk - I tested to see if it would install and I got "Error Parsing Package" on my tablet, is this supposed to be the case with the framework apk?
Many thanks.

[Q] How to create an flashable .zip file

Hello all,
I am looking for a good comprehensive guide to creating my own .zip files to flash certain changes I like to make when flashing a rom or just adding files.
Now I have found a few good guides here on XDA but they seem to no longer apply as the update script needs to be in edify and not amend. This is the issue I am having so if anyone can point me to a walk through that explains this type of thing I would appreciate it.
Anyone?
lol, i dont think developers/people-with-knowledge would go into a Q&A sub-forum .
I'm neither on of them, however here is my would-be-successful attempt p) :
1- Make all your modifications and finalize them, the root folder must be /system/ .
2- use apktool to recompile as an apk (apktool b system)
3- sign that .apk.
4- rename extension to zip and violla
theoretically, it should work.
Not shure if this can help you, but i created a zip (original Script is from dungphp) to replace files on my device from CWM:
http://forum.xda-developers.com/showthread.php?t=1241244

Categories

Resources