I can add a jar file into the apk package, however if multiple apps are using the same jar, ideally it should placed under /system.
The jar file is not really activities (so using intents/providers is not applicable here) but may contain some commonly utils by my apps.
This is somewhat similar to OSGI, but more modest.
Any pointers ..
-Dan
Related
real.apk = what I want to install
front.apk = just a "front"
Is it possible for front.apk to simply have a link to the real.apk within its resources, to install real.apk?
For example, I install front.apk, and it just has instructions, and a clickable box that says "Install 1: <asdf>"-
*It runs real.apk in the resources, and starts the installation process (asks the user for permission, etc.)
I'm wondering because I want to make a "compilation" of .apks, and one "master" .apk file. If this is not possible, is there any other way to do this?
I tried one method, and it didn't work at all:
*Using PhoneGap, put the real.apk inside the www directory (with the index.html), and create a code within the index.html that references to the real.apk (Install 1: <asdf>), and it didn't work at all...
dam you way smarter than me on that
By "resources", I mean the real.apk is within the front.apk, and I physically don't have to download anything more than just front.apk (as real.apk is included inside front.apk).
So I can just have one "master" 'front.apk' file (that's several tens of megs probably) all with click-to-install .apks.
Note: I don't care if it has to pop up permissions for every "apk" installation. I just want to have ONE master .apk file. Would this be, at all, possible? If not with simple .APKs, would it be possible to decompile APK -> .JAR -> .JAVA and somehow put all this inside one "master" file using eclipse?
Hope you guys can give me some much sought advice.
I've been attempting to build a JAR file that packages it's own JARs as internal class dependencies, but without exposing those inner JAR dependencies to the outside world. I'm guessing this needs to happen, otherwise the link process for building an Eclipse Android project would fail if not.
So my problem is such:
If I have an internal dependency on say dom4j-1.6.1.jar, I don't want to prevent someone from being able to add my JAR to an Eclipse Android project and including their own dom4j package dependency (possibly a different version). If the internal JAR dependency is exposed they will experience a duplicate resource conflict when attempting to build their project.
e.g. java.lang.IllegalArgumentException: already added: Lcom/google/gson/DefaultTypeAdapters$ByteTypeAdapter;
Here is what I tried to date:
So I have a regular Android project in Eclipse which adds in my packaged JAR as an dependency.
I refered to the Oracle docs, however there is a footnote about the inclusion of JAR files within JARs.
Note: The Class-Path header points to classes or JAR files on the local network, not JAR files within the JAR file or classes accessible over internet protocols. To load classes in JAR files within a JAR file into the class path, you must write custom code to load those classes. For example, if MyJar.jar contains another JAR file called MyUtils.jar, you cannot use the Class-Path header in MyJar.jar's manifest to load classes in MyUtils.jar into the class path.
So I decided to try the Fat Jar Eclipse Plug-In from SourceForge.
It's an Eclipse Plug-In for deploying a project into one "fat" executable jar file containing all referenced libraries. References are taken from the project settings, so no manual configuration is necessary.
I did manage to execute my build using this method, however did have to manually hack the packaged JAR file to remove the reference to the annotations package which was causing a conflict with my Android test project by being referenced twice.
So now I am left with a project that builds and executes, but exposes those inner JAR dependency packages to my Android project.
I would appreciate any advice you guys can provide. I hope my explanation is clear enough.
I use Bluestacks 0.9.11.4119 . I Install android applications and games, from root folder (i.e. device/android/data/data) i copy all the folders to windows directory (i.e. publicfolder/pictures), now many of the apps or games have two type of similar files and i need to see what's inside of the files,
1st.- .so files and database files
2nd.- some of the files have no extension so if i open it on notepad then it comes in Alphanumeric symbolic format,i think its encrypted so i am not able to see even i have tried many language decrypter but failed
3rd.- how to dissemble the apk file and how to modify it.
4th.- how to read XML file of android apps, when i open it on notepad or Microsoft XML it shows error.
I want to learn something so please help me with these issues, and thank you for previous help
To edit any apk is necessary Apktool. Look this guide and try edit:
http://www.xda-developers.com/decompile-edit-and-recompile-in-one-tool-with-apk-studio/
gamer22881 said:
I use Bluestacks 0.9.11.4119 . I Install android applications and games, from root folder (i.e. device/android/data/data) i copy all the folders to windows directory (i.e. publicfolder/pictures), now many of the apps or games have two type of similar files and i need to see what's inside of the files,
1st.- .so files and database files
2nd.- some of the files have no extension so if i open it on notepad then it comes in Alphanumeric symbolic format,i think its encrypted so i am not able to see even i have tried many language decrypter but failed
3rd.- how to dissemble the apk file and how to modify it.
4th.- how to read XML file of android apps, when i open it on notepad or Microsoft XML it shows error.
I want to learn something so please help me with these issues, and thank you for previous help
Click to expand...
Click to collapse
In addition to apktool (thanks, @kaiodduarte), you're also going to need a good text editor (I use Notepad++), an archive manager (like 7zip or WinRAR), and the ZipSigner app for your device.
ИΘΘK¡€ said:
In addition to apktool (thanks, @kaiodduarte), you're also going to need a good text editor (I use Notepad++), an archive manager (like 7zip or WinRAR), and the ZipSigner app for your device.
Click to expand...
Click to collapse
thank you for the advice but i have 1 worries
if the text file or a file is encrypted the how is notepad++ is going to help me..??
gamer22881 said:
thank you for the advice but i have 1 worries
if the text file or a file is encrypted the how is notepad++ is going to help me..??
Click to expand...
Click to collapse
It will help you with actually being able to make edits to text files without screwing up all of the line endings and encoding.
Hello guys,
I am modding an apk to bypass an update check.
I have this outdated APK that functions fine since the URL and query and site address remains same but whenever it checks for and update it crashes. The thing is the developer made it topnotch but since then left and his site was recently taken down so check update query crashes it totally. What I need to do is update just the one function where it brings up the GUI after start. Otherwise it keeps saying download update or crashes randomly at time of starting up.
Now I have been browsing for a day or two for all the tutorials and right now I`m hell lot of confused. I have downloaded many tools and dependencies but I dont know how to proceed. I will tell you guys what I have and what I need.
I have de-compiled the APK using "dex2jar", I had a .JAR file which I decomplied using JD-GUI-Windows now after saving source I have .ZIP file in which I made the necessary editing. Next I downlaoded APKTool.JAR and extracted resource files and XML files that can be read in text editor. Along with some .SMALI files.
Now I am not familier with SMALI language at all and editing in it seems rather complicated and on the other side I have the .JAR file that decomlied all the classes just fine.
MY QUESTION IS:
How do I recompile the files I have ? I have the main coding extraced using dex2jar so in java format and JD-Gui to in .ZIP files, and resources/XML files also decoded using APKTools. What do I do next to recompile the APK ?
In short I have plain text based java source code and plain text XML and other resource file. How do I recompile it ?
Hi,
I'm trying to deodex and decompile some manufacturer specific apps from a Android car head unit (PX5 RockChip).
I've "pulled" the apps as I have ADB root to the device, and there is an APK (for each app), but that only contains the xml files.
With the apk, there is an oat folder, and inside that is arm64, which contains both odex and vdex files.
(I'm not sure why it has both odex and vdex. The vdex files seem to be about 4 times the size of the odex)
Anyway ... ApkEasyTool (which uses Baksmali) has errors when trying to decode the odex files, as it reports invalid opcodes
I've done a search on the various deodexers, but nothing seems that up to date, and most threads seem to end with people asking whether the deodexer supports Marshmallow or Lollipop, without any response from the tool developer.
Can anyone recommend any other tools, (apart from ApkEasyTool) which may be able to deodex a Oreo APK.
Or should I be using a tool to deodex the vdex files instead ?