APK-structure - Android Software/Hacking General [Developers Only]

Dear comunity,
is anyone here who can tell me how to find out which files are necessary for a uncertain apk?
This question might look strange but I'm asking because I try to get an apk from a 4.0.x firmware to a 4.1.x and it doesn't work.
The apk I'm talking about is the Snote.apk from the N8010 device and this apk needs a lot of lib's and other fils to run.
So to get it run on other firmwares I need e.g. a tool that shows me which files are in cooperate with Snote. Or otherwise in which file into the apk are these information written?
This question might be helpfully for all android-users who want to find out which files are needed for an apk they want to port.
Thank you

Related

Modifying a ROM

Hi guys, I was wondering how you would go about personalizing ROMs for your own use. Nothing code-wise, but installed programs and such. Opening up the zip files of downloaded ROMs I see the apk files and the system apk files - is it really as easy as just removing those you don't want and plotting in the ones that you do?
If this rom is from the same board as you, can say so.
But, .. you still need to run a linux terminal the code to sign the package that you previously made with same special files..
Just the search tools and you'll find it!
...You can easily too start porting rom's too...

[Q] Extracting source from APK

Hi, I am trying to get the source code of the ToggleWidgets.apk that cames with my Motorola Defy+. I already read many things (since I am new user, I am not able to post outside links) but I was not succesful on doing it. What I did so far:
Copied the frame moto-res.apk, framework-res.apk, and blur-res.apk from my Rom.
Installed it on the apktool, apktool if ...
Runned apktool d ToggleWidgets.apk and it was correctly extracted into the dir ToggleWidgets
Now I was expecting to find a classes.dex file. But there is not, and I got stuck. If someone knows what should I do, or a link with things to clarify, I would be thankful.
I just renamed one of my apps with .zip and opened it, and the classes.dex file was in there. not sure if that helps or not.
@ronaldguilmet: It was the very first thing I tried. Interesting that in my case the file present. Thanks!
I guess the class files generated with the Android SDK uses obfuscation through Proguard. I think you cannot disassemble it.
PS: If you approved the previous answer please click on thanks.
thgramos said:
I guess the class files generated with the Android SDK uses obfuscation through Proguard. I think you cannot disassemble it.
PS: If you approved the previous answer please click on thanks.
Click to expand...
Click to collapse
I do not know why ToggleWidgets.apk does not include classes.dex file. But when I tried different applications, I could get the source code using dex2jar, and then jdgui.
eduardomucelli said:
I do not know why ToggleWidgets.apk does not include classes.dex file. But when I tried different applications, I could get the source code using dex2jar, and then jdgui.
Click to expand...
Click to collapse
did you manage to deodex it? if so, can you tell me how? I've tried differents methods with no success. My ultimate goal is to be able to use the Toggle Widgets in a custom ROM like CM9, I don't even know if this is possible without using the motoblur launcher. Could it be that you are trying to do the same thing? it's just that I like those widgets so much and I would like to keep them in a different ROM.

[Q] How to verify APK signature

Hello.
I want to know how can I verify the digital signature of an APK file.
I'm currently downloading what calims to be a leaked Nexus 4 system dump.
When I right click->Properties on an exe file (on Windows), I can see Digital Signatures tab and there I can see certificates etc.
I want to do something similiar to APK files. In my current situation, I want to make sure apps I'll find on the download are actually unmodified, Google-made thing.
This will also come in handy in other situations.
Solutions that work on Windows are great, solutions that work on Android are also OK.
Thanks.

[Q] How to create odex from apk?

I've done a lot of searching for how to odex an apk and the only way I could find involves downloading a binary called "dexopt-wrapper" from a file host or attachment. I don't think it's a really good idea to run unverified binaries downloaded from the internet as root ...
Does anyone know where this program comes from, if the source code is available or how to build it?
Is there any way to create an odex using AOSP tools? I know there is a file in AOSP called /system/bin/dexopt but I can't figure out how to use it.

[Q] Any option to detect changes in apk files

Hello guys.
I am wondering if there's any option/programme/app that can detect changes in apk files.
For example:
A dev releases a mod for something, let's say swaps a .png files to a custom .png and shares the mod in a thread.
And i want the same mod but in a different .png.
Now i can ofcourse ask the dev to do it, which is easy but i wont learn anything.
So i decide to try to make it for myself, but having no past experience with android i don't know how to do it.
And here's where the app/programme comes in (if there is one, ofc). A software that can detect any kinds of changes after decompiling apk files. Now many of you know that apk files have several folders inside, and inside those folder are various files.
So this software (if it exists) could be able to detect changes in the modded apk compared to my unmodded apk, and tell me where exactly the change(s) have been made.
In this way i don't need to bother a dev, and i maybe start to learn how to mod special areas of my phones UI.
Thanks for any reply!
Good day!

Categories

Resources