[Q] questions for dev's - Droid Incredible Q&A, Help & Troubleshooting

Alright...when I was running my hero, I learned an extreme amount of developing. Since the hero was HTC, a lot of what I've learned seems to be relevant to the DINC. Now the programs I used was from a posting made by papa smurf called everything Android. Some of the programs don't work and are now are outdated. So my question is, if any dev has the time, could you share what programs(or even a posts to a thread you know of) you use for things such as :
xml to text and xml editing
creating flashable zips and signing
Everything else I already got programs and know how to do. I would really appreciate it.

Apktook and dsixda kitchen. These are two great tools at our desposle. Apktool can be used to decompile an APK. The decompiled APK can have the XML decompiled into readable format witjlh it. Dsixda kitchen can split boot images, repackage zips, unpack system.img. just check em out.
Sent from my Incredible using Tapatalk

Related

Ubuntu / Linux auto sign tool?

I have been toying with the idea of making a theme. Sounds like fun and the How To's here are really thorough (by the way, I appreciate that, those things must have been quite the labors of love).
As you can tell from the thread title, my OS of choice is obviously Ubuntu. The autosign tool sounds pretty convenient, but I notice it is for Windows. I've searched a bit, but honestly I am getting tired of thumbing through thread after thread looking for the answer and was hoping for a friendly nudge in the right direction.
Anyway, long way around to these questions:
1, when I re-sign an apk, do I use test-keys, do I create my own key, or do is that something JDK will create for me to use?
2, I don't want to create a theme that makes people need to wipe before switching, the template is up to date on the How To thread? Are there templates for JF ADP1.1, and maybe even RC8 as well? Or was there a thread I could read about taking the necessary parts of JF's update and building a template of mine own from that?
3, To actually resign an apk, you have to edit some hex code right? If there truly is NO tool for Linux, I could use some directions on where to find how to manually sign a file. Then hopefully I can find / convert / create a tool in Linux to handle the dirty work for me.
I guess this is what I get for coming in so late into the game.
Also, I am curious if anyone else creates themes in anything other than Windows... any *nix creators out there?
ok, first off to resign an apk or a zip you dont have to do any hex editing at all, in fact, to make a theme you dont have to do any hex editng.
2nd, use my default themes as in the stickies as a template to build your theme, it will not wipe.
3rd to resign in linux, which I haven't done, you will probably need the original signing tool which can be found in jf's recovery.img .zip[ he provided a while ago. I believe it is stickied on android development.
This is the command to resign them
java -jar testsign.jar >inputfile> <outputfile>
Hope this helps
Stericson
Thanks for the super quick reply
Ok, I'll give a search for "testsign.jar", that should get me in the right direction. Once I have that I guess it is time for some experimenting. It shouldn't be hard to develop a shell script that takes every file of xxx type, from a directory and then pass them as values to the testsign.jar app one by one. I had a shell script do something like this to rename all of my photos.
I resign the apk and zip files then.
Thanks Stericson, now I am off to find that testsign.jar, make sure I have the up-to-date default themes, and play around a bit.
EDIT:
SignApk.jar is a tool included with the Android platform source bundle.
testkey.pk8 is the private key that is compatible with the recovery image included in this zip file
testkey.x509.pem is the corresponding certificate/public key
Usage:
java -jar signapk.jar testkey.x509.pem testkey.pk8 <update.zip> <update_signed.zip>
Click to expand...
Click to collapse
This is what I need isn't it? I thought that sounded familiar, I had this downloaded from the whole "let's explore how to root my phone" process.
oh yea, ooops, that is right...sorry I have a custom version of the tool I use. Sowwy.
But that is right.
that cmd line will sign both apks and zips
Stericson

Making a theme?

I was wondering what it would take for me to start to make a theme, i have some basic understand of javascript visual basic, c++ and html//xml, or is there some sort of a program that i would use for it? if not is there some sort of a base example guide that i could use? Preferabbly dealing with cyanogen if its possible? Thanks.
Its as simple as downloading an existing theme, or even the stock one, and changing/overwriting the files in the System/App/Launcher, and Framework.apks and any other apps .apks you want to change. Only change the image files (jpg or png) in each "Drawable folder." .9.png files are different, look for the thread on those. I use Photoshop but any image editing program should work, whatever u use, then drag the modified files back into the theme.zip and resign and flash.
Some things you can find in here http://forum.xda-developers.com/showthread.php?t=468254
There used to be a guide for things but I can't find it. Brandenk originally had his guide in there which I think is the easiest to follow. He still does have it here http://alldroid.org/viewtopic.php?f=96&t=186

Trying to Decompile, not working... please help

Hello,
Im kind of new to developing for android....
But I did a bit of developing on blackberry in the previous years...
Ive been working on some soft buttons. I designed some buttons in a different thread that work great. But I wanted to edit my SystemUI.apk myself (navagation_bar.xml) so that I could edit a search soft key and the order of the soft key buttons myself....
I can't for the life of me, get this thing to decompile. If you open the navagation_bar.xml from within the SystemUI.apk (even in notepad ++), you get a bunch of random characters. I am assuming this is because I have to actually decompile the SystemUI.apk first.
- so I have downloaded apktools,
- I have it all setup correctly following the instructions for decompiling posted here: http://rootzwiki.com/topic/1836-guide-how-to-decompile-an-apk-updated-w-guide/
I used the framework-res.apk of the rom that I am currently using (Android Rev 2.1.2)
And then I place the SystemUI.apk in the folder to be modded, and go ahead and run the script, try an decompile it. And every single time I try it says "an error occurred, please check the log"
I check the log and nothing there makes any sense to me....
It just says an error occurred in "main" multiple resources....
and then it lists a whole bunch of (unkown source)
Super frustrated here, because I have found some coding and studied some coding and I know how to edit the navigation_bar.xml to my likings.... but I cant get the damn SystemUI.apk to decompile....
Can someone please help me here?
and ideas on what might be going wrong?
Thanks a lot
Replace the files in the "other" folder with these.
http://db.tt/1Cii8tGa
The guide you are using will only work for samsung phones running touchwhiz. You'll need to use the framework specific to the ROM you are working on.
You should be able to find all the necessary info in Brut.all's thread, although Ill admit it did take me a little while to get it all figured out myself.
[UTIL][08.12.11] Apktool v1.4.3 - a tool for reengineering apk files

A plea for all framework modding experts

Hey everyone,i've just started to learn more about the framework and stuff(to give back to this awesome community) by decompiling it and looking at the xmls and pngs within and one thing i found was really obvious that there is no bible of information that us new comers can consult for our questions
I would like to request all the brilliant minds here on xda to help me with a few things if this thread catches their attention.It would educate me and everyone else if our brilliant devs can share their info.I would like to start with a few questions and i really hope this thread takes off as the real reason we are all here is to learn
Questions:
1.The /res/anim folder in the framework has all the animations of the rom if i am not mistaken.But if i overwrite the xml files within with my own collection of xmls there are some files that are not overwritten and hence some animations of the rom donot change.The question here is this.How do find out what xml stands for what animation.Htc has removed the home button animation and i would be very grateful if someone can help me find it.Also app opening animations are still sense and i can't tell which xml to edit to find which one is the app opening one.
2.Recompiling the framework through apk-tool is giving me a lot of errors even when i don't modify anything.I'm using a custom rom framework so maybe thats the cause but still it should compile right.
3.Is it possible to decompile the framework in the phone(through an app i mean),add stuff to it,and then recompile it? Or is my only option to open it as a zip file and just replace and delete xmls .
I will update the thread with more questions and request anyone who has any info to please share it so we can all learn
Long live xda

[Q] Making a couple of apks

sorry to bother you but i'm getting crazy with all the apk unpacking tools
i followed every tutorial I was able to find around the internet for the apktool and other similar programs available to unpack & recompile apk files with no luck (java issues and other similar problems)
in this zip file i'm linking there are 3 folders containing 3 modified versions of systemUI.apk (extracted) with different styles of battery icons i like.
all i ask is for everyone that has 3 minutes of time to compile the 3 apks. probably a piece of cake for you guys but not for me here in noobville.
believe me i've tried to do this myself but i was unable to make any tool to even start.
thank you for your precious time and for your effort =)
link: https://mega.co.nz/#!4wwFxBiY!SbguGDPlCK-VO4gX39Tu_DPMzhweRwK3pYBD4-0PenE

Categories

Resources