Modifying Game APK. Help please. - Android Q&A, Help & Troubleshooting

So after fiddling around with theming and getting comfortable decompiling, recompiling and pushing system apk's to my phone I figured I would try to mod one of my games. The game is called chess time and is a free online pvp chess game. I am trying to find the movement permissions to the specific pieces. I have had no luck. I decompiled the apk and checked all the xml's and cannot find anything that seems relevant. Would anyone have any idea as to where those would be? If it would be in any of the smali files than I have more reading to do since I have no idea how to modify those. Here's the apk:

Im extracting APKs too, but I cant find the darn pictures. What did you to / where are the images of APKs?

xologist said:
Im extracting APKs too, but I cant find the darn pictures. What did you to / where are the images of APKs?
Click to expand...
Click to collapse
Pictures, icons etc are usually in the drawable-hdpi folder for my device.

bump. anyone?

Related

[Q] My Framework Edits = Force Closes

I'll try to provide as much detail as possible. I am no expert (probably obvious) at theming, but I'm interested in learning. So I decided to try my hand at adding an accurate battery to Eugene373's Ginger Clone R2. Here's what I did:
1. Decompiled the framework-res.apk using the Android Theming & Tweaking v2 Alpha5 tool. This resulted in missing chunk errors with the quick_panel_list_stroke_01.9.png, status_bar_background.9.png, and status_bar_close_on.9.png.
2. I grabbed the 3 9patch files from a stock JK6 rom to replace the corrupted ones.
3. I replaced the battery icons, stat_sys_battery.xml, and stat_sys_battery_charge.xml with the ones neccessary for the mod.
4. I recompiled the apk with the same tool.
Now the battery mod works, so I doubt any of those files caused the issue, but I did notice two things. First, the file is now almost a full meg smaller than before. Second, the directory structure inside the new framework-res.apk is completely different than previously. Eugene's framework has a "-v4" extention at the end of all the drawable directories (ex: drawable-hdpi-v4 instead of drawable-hdpi).
I have a feeling that there's some fundamental difference between my compilation and Eugene's, but I had no errors at all when compiling the apk. I've tried to find the answer without bothering anyone, but all my searches have resulted in no answers. Hopefully someone out there can help with this.
TLDR version: What the heck is the difference between drawable-hdpi and drawable-hdpi-v4 (and similar directories) and is this the cause of my force closes?
Shameless bump
any one have the answer to this?
i cant find much but this help some http://forum.androidcentral.com/fascinate-roms-hacks/45526-framework-res-apk-utility.html
roscoenr said:
i cant find much but this help some http://forum.androidcentral.com/fascinate-roms-hacks/45526-framework-res-apk-utility.html
Click to expand...
Click to collapse
I have to say this guy seems to have the answer. I was unable to build a working framework at all until using this guy's app. Thank you very much for bringing it to my attention!
MWBehr said:
I have to say this guy seems to have the answer. I was unable to build a working framework at all until using this guy's app. Thank you very much for bringing it to my attention!
Click to expand...
Click to collapse
Your welcome I just hope it works I'm the same problems have not tried this to much
Sent from my unrEVOked using xda app
roscoenr said:
Your welcome I just hope it works I'm the same problems have not tried this to much
Sent from my unrEVOked using xda app
Click to expand...
Click to collapse
Well I had to manually add the "-v4" extensions to his .bat, but it really seems to be working well. Apparently it's all about packaging the new .apk, but then copying over all the new images, xmls, etc. to the original apk. Whatever it is he's doing, I applaud him for it I was just about to give up framework edits before you found this. Thanks again!
I'm glad it works cause I was in the same boat
Sent from my unrEVOked using xda app

App isn't fitting screen.

Hello. Im a complete noob and im not sure if im posting in the right section but it seemed like it would be, so here i go.
My rock band app isn't fitting properly on my evo 3d. It works perfecetly control wise and game play. it just doesnt fit my screen and i was wondering if any of you guys no how to make it fit? Ive already tried the spare parts and compadabilty mode thing but no luck. :/ halp?
It isn't an easy fix... It would need the proper coding in the smali and xml of the .apk.
Hopefully the developers of the app are updating to qhd resolution.
Sent from my PG86100 using XDA App
That's another problem. The devs stopped working on this app along time ago. It's not even in the market anymore. :/ is there anyway I can edit the smali and xml?
quarantinedmemory said:
That's another problem. The devs stopped working on this app along time ago. It's not even in the market anymore. :/ is there anyway I can edit the smali and xml?
Click to expand...
Click to collapse
If you decompile it you can but some of the smalis you wont be able to edit because they are read only meaning they are the core java and cant be changed through normal editting. You would have to use eclipse but I dont think you can import an .apk to edit in eclipse (I might be wrong on that).
If you send me the .apk I will look at it but I cant promise anything because me and smalis dont like eachother very much ...
send it to my email. [email protected]
jkrough0728 said:
If you decompile it you can but some of the smalis you wont be able to edit because they are read only meaning they are the core java and cant be changed through normal editting. You would have to use eclipse but I dont think you can import an .apk to edit in eclipse (I might be wrong on that).
If you send me the .apk I will look at it but I cant promise anything because me and smalis dont like eachother very much ...
send it to my email. [email protected]
Click to expand...
Click to collapse
alright, will do. If you cant it's okay. I was just wondering if its possible. And i would like it to fit my screen cause its one of my favorite apps.
Was this ever solved as I have the same issue
If you guys fiXd this app then dont forget to post this updated .apk here....jus for others to benifit...
"SeXxy Virus"
so... bump?

[Q] XML Questions for my apk ...

Hi,
I've been trying to make this app mostly for personal use.
I actually am just changing/designing the images to just skin it really.
Feel free to check it out ( http://db.tt/qfFVq7uz ) (see attached as well), but I have a question or two about the xml stuff.
In the settings, I want to change the links that are inside there that go to other site to basically reroute them to our website.
I have tried looking at the xml files, I'm assuming that's where the link gets it's info, but not 100% sure.
Can anyone point me in the right direction on how to change these links. Changing the images and signing the apk is no problem for me so far.
Just a little help needed with the xml stuff. I can see it with an xml reader/editor, but it all looks foreign when I open it. I know html and what should do what, so I'm not completely useless when looking at it!
Thanks so much!
The links for the buttons are not going to be in the XML files. XML is just going to be the visual stuff, anything that does anything is going to be the java files. I know how to edit XML in apps, but I have no clue how to do smali edits, which is what you'd have to do in order to get the results you want.
Thank you. I have no idea how to edit them yet either! Doesn't mean I can't learn. I've decompiled the classes file to get to the smalis, but that's where I've stopped for now.
Sent from my HTC6435LVW using xda app-developers app

[REQUEST] Modify AOSP Camera for 16:9 Resolution

Can any devs help with this? I'm not a dev, but this should be an easy mod. I tried using apktool and the framework from CM, but I get errors in styles.xml (which I didn't even touch) when building.
If a dev can point me in the right direction, it would be greatly appreciated. (If you take it upon yourself to do it, can you at least tell me what you did. Its been driving me crazy.)
I'm not sure of the other resolutions, but 8MP should be 4128x2322. I found the entries in arrays.xml, but because of the styles.xml errors, I can't go much further.
Thanks.
SonicJoe said:
Can any devs help with this? I'm not a dev, but this should be an easy mod. I tried using apktool and the framework from CM, but I get errors in styles.xml (which I didn't even touch) when building.
If a dev can point me in the right direction, it would be greatly appreciated. (If you take it upon yourself to do it, can you at least tell me what you did. Its been driving me crazy.)
I'm not sure of the other resolutions, but 8MP should be 4128x2322. I found the entries in arrays.xml, but because of the styles.xml errors, I can't go much further.
Thanks.
Click to expand...
Click to collapse
I've been searching for months about this very same issue with 16:9 ratio photo's. I've tried compiling just as you have and I get the same error in styles.xml which I didn't touch at all...
bb12489 said:
I've been searching for months about this very same issue with 16:9 ratio photo's. I've tried compiling just as you have and I get the same error in styles.xml which I didn't touch at all...
Click to expand...
Click to collapse
It happens because the decompile is missing something. I've tried multiple versions of apktool and aapt on both Windows and Linux. I'm thinking that I need to get the source and modify there then rebuild. I just need to do a lot more reading before attempting that.
Its possible, because I have found threads where devs have modded it for other phones. Unfortunately, I can't find a single thread that explains how they did it.
SonicJoe said:
It happens because the decompile is missing something. I've tried multiple versions of apktool and aapt on both Windows and Linux. I'm thinking that I need to get the source and modify there then rebuild. I just need to do a lot more reading before attempting that.
Its possible, because I have found threads where devs have modded it for other phones. Unfortunately, I can't find a single thread that explains how they did it.
Click to expand...
Click to collapse
Something interesting I found out lastnight when I decompiled Gallery2.apk from CM 10.1 ( I'm on a Droid DNA btw) is that there are camera preference strings for up to 12.8mp, as well as 6mp. The only thing is, these never show up as selectable options on my rom. Definitely need a dev to step in and help..
Broke down, setup a CM build environment, found the file, and its compiling now. Seeing the source vs. what apktool spits out, I can see why it refuses to build.
After I test it myself, if I didn't break something, I will share.
Success! I have tested the 8MP pictures on the Verizon S4, and my new Gallery2.apk now takes full 16:9 pictures. I'll try to get a link up tomorrow nite, or, if anyone is willing to host it, send me a PM and I'll send you the file. Also, I'm not sure if any of the other resolutions are supposed to be 16:9. If they are, can someone either send me a sample of a picture on stock, or read me the resolution (e.g. 4128x2322)? I can make further changes.
If anyone is interested in a modified AOSP camera that takes 16:9 pics at 8MP(4128x2322), here's a link: http://db.tt/mC5LclAE
Sorry its not a flashable zip. Just copy it to /system/apps with root explorer or equivalent and set permissions to rw-r--r-- (644). Then reboot. Its a system app, so every time you update you'll need to do this again.
This was built from CM source, and I've tested it on the Verizon S4 running CM10.1 with no issues. I don't see any reason why it wouldn't work on any other carrier's S4, or on another AOSP based ROM, but do so at your own risk. You may want to backup your original Gallery2.apk to your SD Card first.

Modding Apps to turn into APK's?

Sorry for the noob question, but I just recently got into apk modding. I know how to decompile and recompile and modify the simple stuff (haven't figured out how to modify resource.car yet) but I'm trying to figure out how I can make the stuff I modded ingame backup to the apk so when someone installs it the data will be there. I already got toast notification and some images in game I changed I just don't know how I can make the data like money and diamonds or gems stuff like that be in the apk when it installs.
Thanks to anyone/everyone who responds and can help!

Categories

Resources