Trying to Decompile, not working... please help - Samsung Galaxy Nexus

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

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

help, hide nav bar / apktool

Hey,
I'm really desperate for help
If someone has a Framework-res.apk Edited and without the NAVIGATION BAR
It would really help.
my cell: galaxy nexus, 4.0.3, Open Kang 21
I was awake all night trying to remove the navigation bar on GALAXY NEXUS.
I searched every possible forum for a month and found no mods on that subject.
I found only a short guide that shows how to edit the FRAMEWORK-RES.APK
But after editing it, I could not RECOMPILE it.
I used APKTOOL
Maybe I'm missing something here (for the first time I was dealing with these files)
1. I copied the folder framework-res.apk
2. apktool if framework-res.apk
3. apktool d framework-res.apk
4. I edited in a word within a file folder and kept
5. apktool b framework-res
it did not build the file again and showed me "invalid resource directory name:" for many paths
Any ideas?
do I need to do something more before recompiling it?
if someone has already the Edited file or Mod in this topic it would help a lot!
Thank you.

[Q]decompile and edit home.apk

Hi all,
I`got a problem to decompile the stock home.apk.
Everytime i decompile i get a error saying i have the wrong framework installed but i have the right one installed manually.
I want to have rotate on homescreen only 3 screens and 3rd thing 6 rows and 6 cols. I have to change the folder res\values\ i think but how can i get it or better edit it.
Is their anyone out here who can give me a link or a little tutorial howto.
I have had a look at several pages and gave lot`s of promissing tools a go but nothing helped me out .....
so much moders can please only one share his knowledge
Your best bet would probably to ask someone like vr5411 who posted this thread: http://forum.xda-developers.com/showthread.php?t=1519742

[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

[Q] How to find methods and layouts to hook into without source code

I'd like to develop my first xposed module. So far I have worked through the official tutorial and compiled and read the examples. (I also made android apps before).
I want to make a module for the official Twitter app that removes certain content from the home timeline, such as "Who to follow", "While you were away" and sponsored tweets.
As a first step, I tried to change the color of these elements to red, which I didn't manage to do.
I unzipped and decompiled the app and looked for class and method names that seem helpful (most of them were obfuscated). I tried to hook into some of the methods, mostly nothing happend. I got some MedhotNotFoundExceptions and once the app crashed. I also tried to look for layouts to hook into with no success.
Do you have any hints on how to find the right point for my xposed hook?
Thank you
I also decompiled apps to hook them and it worked. You have to do so, because what's executed is the obfuscated code, and these are the names (classes, methods, variables) you need, even if you own the unobfuscated source code.
If you get MethodNotFoundExceptions, the problem must be somewhere else.
Decompile the apk with apktool. Then look throught the smali code (note that you have to know how the smali structure works, what does a method return, how are different parameters represented). For layouts I personally use DDMS' Hierarchy View. If you still have the method not found error, paste here how you are trying to hook and the original smali code.
Sent from my iPhone 6 Plus using Tapatalk
Check out this awesome tool. Converts smali back to java
https://github.com/google/enjarify
That's what i use

Categories

Resources