[Q] How to Protect APK with .Pack files - Android Q&A, Help & Troubleshooting

When I decompile an Apk, I saw the files with the .pack extension. I searched about it and found the file is pack200 (I think).
In your opinion, How do I create this file?
I used the jdk but not work.
they locate in assets\image folder and they are texture of apk.

I posted the question here
Then I move the answer to the original topic

no idea?

Related

[Q] nuub question, can an .apk be lightly modified like this?

I am sure this would be a WTF for some people thats why I'm asking in the Q&A section.
I've noticed that .apk files can be renamed to .rar and, once decompressed, we can find files in a normal-structure in their real format (images, sounds, xmls, etc).
So I wonder, let's say, we want to modify one of the images inside the .apk. We would change it for another with the same name/size so no probs with that.
Could we decompress the .apk as a .rar, change the file, recompress it to a .rar and rename it to .apk, or we would **** permissions or something in the way?
Otherwise it needs some compiler or something I guess right? But then I wouldn't understand why it can be plainly decompressed as a .rar..
This should get you started;
To unpack/repack etc .apk use Apk Manager 4.9 - Makes Modifying Ur Apk A Breeze (Windows/Linux)
To modify .xml files, use Notepad++
UpInTheAir said:
This should get you started;
To unpack/repack etc .apk use Apk Manager 4.9 - Makes Modifying Ur Apk A Breeze (Windows/Linux)
To modify .xml files, use Notepad++
Click to expand...
Click to collapse
Thanks a lot mate! Very appreciated

Extracting Certain Files from APK's

hey all, i was just wondering if anyone knew how to extract some files from an apk?
specifically, i like riptide gp's background music and was wondering if anyone knew how to extract those music files from the apk or something. let me know! thanks!
I already tried opening the apk on both my computer and NT and couldn't find any music files anywhere... starting to think its not possible, but it can't be because in order for a game to have music its gotta have music files somewhere in the installation file just like any other game on any platform...
Just to get the most basic question out of the way, so sorry if I seem pedantic, but did you just change the extension of the .apk to .zip or did you use APKTool to unpack the .apk?
SG Pillar said:
Just to get the most basic question out of the way, so sorry if I seem pedantic, but did you just change the extension of the .apk to .zip or did you use APKTool to unpack the .apk?
Click to expand...
Click to collapse
i've already tried extracting the apk by conventional means, aka using winrar to extract the contents, but no luck in finding any files resembling that of a music file type. i've also tried apktool but after decompiling the apk, i couldn't find any music files either...
after decompiling through apktool i just saw a lot of .smali files. there was one files called base.apf but not sure how to decompile that....
Check out apktool to extract apks. I've used it on system files to open them up and edit what's inside.
https://code.google.com/p/android-apktool/

[Q] [Help] Can you edit .Tex files in an APK for android?

Hi,
I really want to edit an app as a joke for my friends and i have downloaded the APK and viewed the files.
All of the images seem to be .TEX format, i have googled how to edit them but cant find a solution.
How can i edit them and put my own image in?
Thanks in advance,
You need to decompile the apk, edit the images (using the same filenames) and recompile again.

[Q] Unable to re-compile (using autoapktool / apktool)

** I dont have enough posts yet so cannot start thread in the correct section, so posted it below here in general **
I have all the content ready to add to an app and been searching for the right template and came across an app that has the look and feel I want.
I used autoapktool2.0.0 and it dissasembles the app fine so you can access the xml and other files. I am also able to edit a test apk and recompile and sign it with the above software fine. It creates 2 different folders one build which has a created classes file and one called dist that has the completed recompiled apk
however, when i try one specific apk I am able to decompile it fine, but when it comes to recompiling it after making a tiny test edit it will not do it.
I creates the classes file fine but it does not recompile the whole source files into an apk, so the dist folder is not created.
Why will it not recompile the whole thing?, is there something I am doing wrong or is the thing protected?
can someone test it for me using same methods I done and see what their result is?
(no errors were given when recompiling, it acted as if it was complete but it was not, as no apk created)

[Q] editing .so file

Howdy.
I'm trying to modify a .so file (libflashplayer.so), but have run into a few problems:
I first tried editing the file after it was installed from an .apk. This appears to work at first, but the edited file is quickly replaced with the original.
I then tried editing the file in the .apk package. This causes the package to fail to install (I'm guessing because the md5 in the certificates no longer matches)
Aldo tried moving a folder with the .so files from the .apk (com.adobe.flashplayer-1 which is what is created when the .apk installs correctly) directly into /data/app-lib/.The directory was created successfully but appears to be immediately deleted.
Is there a way to accomplish what I'm trying to do? If so how?
Other possibly relevant info:
My device is rooted
I did not write the code for anything in the .apk, I got it from a link on xda (pretty dubious i know but I couldn't find another option)
I'm using cyanogenmod 10.2 (based on android 4.2 I believe).
I'm editing the file with a hex editor to change a a few characters ("AND" to "WIN")

Categories

Resources