Modding Apps to turn into APK's? - Android Q&A, Help & Troubleshooting

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!

Related

Editing ROMs

Hi all,
I am relatively new to the android community, so I don't feel confident playing around with large parts of ROMs, however I am interested in trying to edit a ROM so that it has as many of my apps and things as default to save room.
Idealy I would like my ROM to:
-Have only the apps I want and need, so I have started stripping out some I don't
-Have my background of choice and no others
-Have a custom launcher (I am looking at LauncherPro, although i understand this only works on android 2.0 and above so cant intergrate this yet)
I am using the stock T-mobile 1.5 custom ROM uploaded by Paul onto Modaco as the ROM I am editing (Sorry I cannot post a link as this is my first post)
Once I have completed this project I would like to create a tutorial to help other people new to the Android scene, who, like me, don't have the knowledge or confidence to edit the ROM majorly.
My first step is remove the unwanted apps and replace them with the ones I do want. So my first question is what apps are vital to androids running that I wont be able to delete. Also, where can I get the .apks of the apps I want to add in?
Any other help in this project will be greatly appreciated.
Thanx
Aaron
well you can check the wiki for refrence but i due know that you can remove apps like google apps gmail email market market updater .... just remeber not to delete them like remove them and move them to a safe folder on your desk top in case you removed a vital app ok thats what i do
djm25 said:
well you can check the wiki for refrence but i due know that you can remove apps like google apps gmail email market market updater .... just remeber not to delete them like remove them and move them to a safe folder on your desk top in case you removed a vital app ok thats what i do
Click to expand...
Click to collapse
Thanx. I have a copy of the original ROM and the one im editing just in case. Is it just a case of trying it out to see if it works and what i can and cant delete then?
Thanx
Aaron
more or less but its better to know what your removing so check this site shttp://source.android.com/
http://forum.androidcentral.com/hacking/6037-general-rom-faq.html
You have to be careful what you are removing and changing. Removing google talk basically dissables the market which I am not sure why but it does. THere are other apps that are linked that you would not think about. You also must know how to resign the rom zip file. There is an app here called autosign and it works pretty good. Its for themers but it works for moding a rom too. If you want to replace the launcher simply delete the launcher.apk and add in the one you want. The wallpaper backgrounds are usually in the launcher.apk unless you are using a sense rom. Sense uses Rosie.apk and the wallpapers are all in htc.widgetpicker.apk (i think thats what its called).

Configure Sense

Hello
I want to configure all of Sense tabs to use the widgets I want, in my rom after a hard reset or after a new flash, so I dont have to configure it over and over again.
I know that /system/customize/MNS/default.xml edits some of the favorites bookmarks and such, but I cant configure all tabs.
Coming for WM, all I had to do then, was to set sense as I wanted, export the reg entries, and cook it in my new rom.
Can I do something similar in Android?
Does Sense builds some XML file that I can cook in my kitchen?
Thanks for helping a noob cook.
madsurfer1 said:
Hello
I want to configure all of Sense tabs to use the widgets I want, in my rom after a hard reset or after a new flash, so I dont have to configure it over and over again.
I know that /system/customize/MNS/default.xml edits some of the favorites bookmarks and such, but I cant configure all tabs.
Coming for WM, all I had to do then, was to set sense as I wanted, export the reg entries, and cook it in my new rom.
Can I do something similar in Android?
Does Sense builds some XML file that I can cook in my kitchen?
Thanks for helping a noob cook.
Click to expand...
Click to collapse
so far i know of a few settings that u can setup if u decompile some apk's.
settingsprovider is one of them...
u change some values bool.xml and recompile.
and yes... default.xml is an easy way to change up things... the only issue i had with that is that i can only switch around between htc apps... i could never get for example "fancywidget" to load instead of htc clockwidget.
i also setup the system to accept "non market apps installations" because that way u can basically get rid of everything stock and have everything else working instead. for example once u set it like that u can use any keyboard that u'd like instead of htc_ime by simply putting the app inside /data/app or system/app and removing clicker.apk and htc_ime.apk... then the sys will pick your keyboard and u wont get fc's and such.
there are a bunch of other tiny tricks u can do... u can basically setup the rom anyway u want by decompiling apk's and changing colors/bools(settings)/ringtone/notifications sounds/animations etc... it's not so hard also... but u gotta know what u looking for.
im not sure how much experience u got... but i would recommend apktools by brut... or lookup apkmanager which is sort of a gui for doing all that stuff and simply start experimenting with some stuff.
p.s.
the only way i got my sense to be exactly the way i want it to at first flash is by adding a bunch of files from /data/data in th update.zip and making sure to set permissions the right way.
since im not a linux or android specialist i figured that looking up the permission of the files and folders using rootexplorer and adding them to the update script will work... and they did.
u can also add a "fix_permission" script to your boot sequence that would take care of things like that.
a lot of things to explain... but i personally do things the hard way cuz i like to figure stuff out for myslef... so my insight is only from personal experience and probably not more than 50 pages that i had to read to figure some things out.
maybe someone else knows a better way to do things like what im talking about. so it would be interesting to see who else reply to your post.
Thank you for the info my friend
I'll try that an report later.
very thanks!

Looking for Theme help.

I have been around the Android game for quite some time. More of an enthusiast per se. I have reached a point where I want to give back to the community. I have gained a pretty good knowledge of the inner workings of Android and have an advanced understanding of PCs. I am just trying to start of small and advance progressively from there. Looking for someone that doesnt care to answer a few questions I am having.
I want to start by porting themes to my current device, Epic Touch 4G. We haven't received official ICS as of yet but we have quite a few leaks and ports. I figure if I learn enough now, when we receive our official release, I can give back. Now, I know porting a theme isnt considered true dev work but it is a start. If I can gain enough knowledge porting, I hope to physically start making my own themes.
As it stands right now, I have successfully learned how to decompile/recompile apks. And that is where things have gotten tough. I cant seem to implement the ported theme without creating a bootloop. Just not sure what the problem could be. The theme I am trying to port is capable of being flashed to my device and works but when I try to actually take the themed items from the flashable zip and directly implement them into the rom, it bootloops. It may just be something simple I am overlooking but after speaking to a few people, I still havent come to a conclusion.
So far I have tried taking the theme zip and pull the themed apks from it using 7zip, then copying them over into the rom.
Then I tried decompiling the themed apk, decompiling the stock apk and then moving the files from the themed apk over to the stock apk and then recompile.
I even tried just moving the individual pngs from each seperate folder over and then recompiling.
All created the bootloop.
So in closing, I have the ability and learn quickly, just need a push in the right direction. If you are interested in assisting me, it would be much appreciated.

[Q] Development questions

Hi,
I am slowly getting through the basics of apk decompiling, Editing, Debugging & recompiling.
Using tools like Apk Tool, Winrar, Notepad++ Winmerge, Adb .
first time I have touched an android or even done any kind of stuff like this was Early August 2012. So not long at all, now i have a question to the more experienced Devs. Eg; Lets just say I dont want increasing ringtone How do you pin point where in the apk to start editing i mean there are heaps of files its like looking for a needle in a haystack. One way I came close and pin pointed it is using a previous made mod and then used Winmerge to compare the differences, Problem is the differences in these to Apks is not just the Increasing ringtone, so when I winmerged them it picked out out the other differences Now this deffinatley narrowed it down. I have a feeling it has something to do with the Callnotifier.xml is this the only Xml?
Also Lets just say you dont have another apk to compare it to , how to you find out this stuff..
Another thing is I want to cook up a rom, but the way I want to do it is modding my own rom untill I am happy with it and then creating something like a nandroid without my personal data. then making it flashable for people. What tools is best used for this? I was thinking editing my nandroid and adding it to a cwm flash. but I think there is an easier way.
Thanks for you help

Modifying Game APK. Help please.

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?

Categories

Resources