Help Resigning APK's and ZIP's - myTouch 3G, Magic Android Development

I've been looking for information on how to resign apks and update.zip files.
So far i've found a lot of tools for windows, the problem is that i use linux ubuntu.
I went ahead and tried JF's jar but i get this error
"Failed to load Main-Class manifest attribute from
testsign.jar"
Would like to know if anyone out there could guide me through the process or point me in the right direction as i've only found information regarding resigning under windows.
Thanks in advance,

Check whether you are running the correct version of Java.
What is the whole output of the Java back trace?

Cheesebaron said:
Check whether you are running the correct version of Java.
What is the whole output of the Java back trace?
Click to expand...
Click to collapse
I have Sun-JDK 6, openJDK and other java stuff installed... don't know if i need to remove or add anything...
This is what i've tried so far:
xxx:$ java testsign.jar Launcherr
Exception in thread "main" java.lang.NoClassDefFoundError: testsign/jar
Caused by: java.lang.ClassNotFoundException: testsign.jar
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
Could not find the main class: testsign.jar. Program will exit.
xxx:~/Desktop/testsign(2)(2)$
============================================================
xxx:~/Desktop/testsign(2)(2)$ sudo java -jar testsign.jar Launcherr
Failed to load Main-Class manifest attribute from
testsign.jar
xxx:~/Desktop/testsign(2)(2)$

try this:
java -classpath testsign.jar testsign input.zip output.zip

Deicist said:
try this:
java -classpath testsign.jar testsign input.zip output.zip
Click to expand...
Click to collapse
Worked perfectly with a zip file... heres the output =)
xxx:~/Desktop/testsign(2)(2)$ java -classpath testsign.jar testsign hero.zip
xxx:~/Desktop/testsign(2)(2)$
Now... when i have the apk extracted in a folder and modify it I assume i have to make the folder an APK file again and then try java -classpath testsign.jar testsign bla.apk... i think it might work, what i need to know is how do i make the folder an apk file... is it possible to make it a .zip file and then change the extension to .apk? will that work or I need a tool to make the apk?
EDIT1: Ok... i made a zip file from the folder, changed the extension to APK and resign... i will try to unpack an aplication and install it via ASTRO... let's see how that goes...
EDIT2: ok... edit1 method didn't work... tried installing with ASTRO didnt work, tried pushing it to the phone via adb... didn't work either... HEEEEEELP! hehe..
FIGURED IT OUT: ok... i figured it out... =) making a zip file and renaming the extension to apk and signing DOES work... i was making a mistake, while packing the zip file using archiver and the folder structure was changed... i did it manually and worked perfectly... now i know how to make apks and resign them... thanks to everybody who cooperated for the patience and support... =)

pep1t0 said:
I've been looking for information on how to resign apks and update.zip files.
So far i've found a lot of tools for windows, the problem is that i use linux ubuntu.
I went ahead and tried JF's jar but i get this error
"Failed to load Main-Class manifest attribute from
testsign.jar"
Would like to know if anyone out there could guide me through the process or point me in the right direction as i've only found information regarding resigning under windows.
Thanks in advance,
Click to expand...
Click to collapse
Hey any chance you could point me to the windows programs used to resign apk files, and do you know of any good walk throughs for resigning.
Thanks

pep1t0 said:
Worked perfectly with a zip file... heres the output =)
Click to expand...
Click to collapse
Now when you've learned how, could you make a "How to" for others?

the java testsign tool should work with windows, i think all you have to do is install the java sdk... the text line should be the same java -classpath testsign.jar testsign nameofthefile.apk/nameofthefile.zip
The zip files are... just zip files, can be made with 7zip (in windows) after you make the .zip if you want to make it an apk all you have to do is change the extension... maybe this works in cmd "copy zipedfile.zip newapkfile.apk"... if not... put it in the sdcard and do it via adb shell...
"adb shell /sdcard/nameofthezipfile.zip /sdcard/nameofthenewapk.apk"
I don't really have much time to make a tutorial and try things right now... i will try next week, in the meantime try these things... good luck...

Related

Signing the update.zip in Mac OS X?

I'm sure this has been asked before but after prolific searching of the forums and our friend Google I turn to you guys for help. As the title says I'm using OS X and I need a solution (that isn't dual booting to use XP) to signing the update.zip so that I can customise aspects of my ROM, I'm very eager to learn how to do this and this so far seems to be quite an annoying problem.
Thanks for your time in advance
tristyB said:
I'm sure this has been asked before but after prolific searching of the forums and our friend Google I turn to you guys for help. As the title says I'm using OS X and I need a solution (that isn't dual booting to use XP) to signing the update.zip so that I can customise aspects of my ROM, I'm very eager to learn how to do this and this so far seems to be quite an annoying problem.
Thanks for your time in advance
Click to expand...
Click to collapse
pm me............
korndub said:
pm me............
Click to expand...
Click to collapse
Hi korndub,
Cannot you post the answer here so everybody that uses OS X can also sign?
I'm also having problems signing full roms (update.zip files) with signapk.jar
Any help is appreciated
rommelin said:
Hi korndub,
Cannot you post the answer here so everybody that uses OS X can also sign?
I'm also having problems signing full roms (update.zip files) with signapk.jar
Any help is appreciated
Click to expand...
Click to collapse
i have a folder on the desktop which contains the signapk.jar and both sets of keys...put the Archive.zip that you have created and want to sign in this folder, then open terminal
in terminal, you type
$cd FOLDER-containing-files
$java -jar signapk.jar testkeys.x509.pem testkey.pk8 Inputfile.zip outputfile.zip
the outputfile.zip is your update which is signed....
OK, I do all that I think.
Heres my process.
Download ROM
Extract downloaded zip to folder eg update
Make changes to files
Compress folder back to zip eg update1.zip
java -jar signapk.jar testkeys.x509.pem testkey.pk8 update1.zip update_signed.zip
rename and copy the signed file to sd
reboot recovery
wipe and apply update
It doesn't moan about the signing (so I assume its ok) but I get an update script not found error and it doesn't install.
I haven't changed the update scripts, only the boot.img and one or two scripts in system.
Does every file I change have to be resigned as well? I muct be missing something here
on OSX 10.5
Signing has nothing to do with that error. Make sure that the update-script is in the correct path.
META-INF/com/google/android/update-script
it is, is a normal update.zip (ie cyanogen rom), and the only file I've changed is boot.img and a2sd in system/bin
i have a folder on the desktop which contains the signapk.jar and both sets of keys...put the Archive.zip that you have created and want to sign in this folder, then open terminal
in terminal, you type
$cd FOLDER-containing-files
$java -jar signapk.jar testkeys.x509.pem testkey.pk8 Inputfile.zip outputfile.zip
the outputfile.zip is your update which is signed....
Click to expand...
Click to collapse
Thank you so much, this works for me, I might try and build it into an automator workflow
Edit: I spoke too soon, I get the update script error also
Edit Again: my update-script is in the same place as it should be also
Wonder if this is a specific OSX problem? We do have apples 'interpretation' of java don't we?
dazcox5181 said:
Wonder if this is a specific OSX problem? We do have apples 'interpretation' of java don't we?
Click to expand...
Click to collapse
haha, yeah that's right, those crazy cats at Apple. but I assume that korndub also has Apples 'interptretation' so something else could be the problem also
perhaps the way we zip the archive?
dazcox5181 said:
perhaps the way we zip the archive?
Click to expand...
Click to collapse
sadly not, I just used a application that zips in a PC format (without mac hidden files) and no joy. Good idea though.
Edit: Just tried archiving the zip but not compressing. Thought I was on to something. I wasn't.
Another update, I have tried the same in Fedora 11 and again, getting the update script error message when I flash.
I signed modified update for 3 different builds on my Mac, everything worked w/o problems every time. I did everything like described in readme and several times here. So, it's not a global OS X problem.
BTW, I used muCommander to directly modify all zips.
neuro159 said:
I signed modified update for 3 different builds on my Mac, everything worked w/o problems every time. I did everything like described in readme and several times here. So, it's not a global OS X problem.
BTW, I used muCommander to directly modify all zips.
Click to expand...
Click to collapse
When I find the time later on I will give the muCommander a go. Fingers crossed.
dazcox5181 said:
OK, I do all that I think.
Heres my process.
Download ROM
Extract downloaded zip to folder eg update
Make changes to files
Compress folder back to zip eg update1.zip
java -jar signapk.jar testkeys.x509.pem testkey.pk8 update1.zip update_signed.zip
rename and copy the signed file to sd
reboot recovery
wipe and apply update
It doesn't moan about the signing (so I assume its ok) but I get an update script not found error and it doesn't install.
I haven't changed the update scripts, only the boot.img and one or two scripts in system.
Does every file I change have to be resigned as well? I muct be missing something here
on OSX 10.5
Click to expand...
Click to collapse
you dont archive (zip) the folder, this is where you are having the issue... say you extracted the rom to ROMFOLDER, what you need to do is go into that folder, select all, then right click or two finger click and choose Compress - you will end up with an archive that contains all sub folders, if you zip the folder then you have a folder within a folder and that is where all goes south..
korndub said:
you dont archive (zip) the folder, this is where you are having the issue... say you extracted the rom to ROMFOLDER, what you need to do is go into that folder, select all, then right click or two finger click and choose Compress - you will end up with an archive that contains all sub folders, if you zip the folder then you have a folder within a folder and that is where all goes south..
Click to expand...
Click to collapse
Oh my god, you're right. And I think I actually read that somewhere before now you've reminded me. Damn. Thanks though! Thanks a lot!
Awesome, knew it was me being stupid.
sure thing guys! glad i could help...
Always something stupid...

How to sign a file? (Need Help)

I am looking for a run down on signing a file.
So far, I have taken other people files and just edited images from the apk moved them back and signed using Kitchen (Only way I know how)
So I am at a stand still here...
I want to add
app\Rosie.apk
and
system\com.htc.resources.apk
to a file so that I can change things a little more.
But have not had luck.
Can someone give the rest of us some steps?
Thanks.
are you on windows? if so, then use this batch script. unzip it and get to signing
how would you sign a zip on a mac?
mrchu001 said:
how would you sign a zip on a mac?
Click to expand...
Click to collapse
firstly, install java. then look inside the batch script and you'll see the basic layout for signing files from terminal.
EDIT: what it inside the script is this basic layout for signing, "java -jar signapk.jar testkey.x509.pem testkey.pk8 update.zip update_signed.zip"
replace "update.zip" with your zip file and update_signed.zip with your zip file with "signed" or something so you know it's signed appended before the .zip
darchstar said:
are you on windows? if so, then use this batch script. unzip it and get to signing
Click to expand...
Click to collapse
Yes, I am running windows. Thanks for the file! I will give it a try.
So I see the Sign.bat All I know so far, (Sorry, still new)
My folder will be laid out like this.
<update.zip>
<system>
<app>Rosie.apk</app>
<framework>com.htc.resources.apk</framework>
</system>
<update.zip>
But I dont know where to go from there?
I wonder if we counted, how many threads do you think were started here with this EXACT same question?
chaos67731 said:
Yes, I am running windows. Thanks for the file! I will give it a try.
So I see the Sign.bat All I know so far, (Sorry, still new)
My folder will be laid out like this.
<update.zip>
<system>
<app>Rosie.apk</app>
<framework>com.htc.resources.apk</framework>
</system>
<update.zip>
But I dont know where to go from there?
Click to expand...
Click to collapse
run the batch script from command prompt
darchstar said:
run the batch script from command prompt
Click to expand...
Click to collapse
I dont know how to do that or what it does.
I unziped the folder to my desktop but really dont know where to go from there.
I also dont know command prompt at all for the most part.
Only little things {cd} {*} things like that but even than its just at sight.
I looked http://forum.xda-developers.com/showthread.php?t=618874 and there does not seem to be a wiki or anything on this.
make a new folder where you'll want to zip all your files
copy the autosign.zip to this folder
unzip it.
zip up your files and update-script, name the zip update.zip and put them in this folder
run the batch script from command prompt
Code:
Sign.bat
you will now have a new zip called update_signed.zip, which is you signed update.zip
Does flipzmode's Kitchen do the same thing?
I know there is a sign part to it.
I have used it but not sure if it does the same thing.
When doing this is get an error.
It says it can not find the update script?
mrchu001 said:
how would you sign a zip on a mac?
Click to expand...
Click to collapse
Unzip this. Place the testsign.jar in the root directory of your Mac. Not the home (user) directory, but should be "Macintosh HD" or something of the sort. Then place the Android-Sign.app in /Applications. Even easier to make a shortcut to it in the dock. Whenever you want to sign a file, drag it to the Android-sign app, and it will sign it and put it in the same directory as the original, with "signed" at the end so you'll know which one is which.
For Mac there is an auto-sign program. Just put testsign.jar on the root of your computer hard drive (Macintosh HD) and it works. To sign a ROM, open the rom folder, select all the contents, right-click, and click Conpress. Rename archive.zip to whateveer you want. Drag it onto the Android Sign program and then wait for the program to close (when the dot goes away). There should be another file in the ROM folder called Archive-signed.zip. That is your signed zip.
...That's what I just posted.
ajones7279 said:
...That's what I just posted.
Click to expand...
Click to collapse
We posted it at like the same time I think he figured out how to do the actual signing, but he zipped the folder and not the contents. So... It was rom.zip>rom>contents of rom.
ajones7279 said:
Unzip this. Place the testsign.jar in the root directory of your Mac. Not the home (user) directory, but should be "Macintosh HD" or something of the sort. Then place the Android-Sign.app in /Applications. Even easier to make a shortcut to it in the dock. Whenever you want to sign a file, drag it to the Android-sign app, and it will sign it and put it in the same directory as the original, with "signed" at the end so you'll know which one is which.
Click to expand...
Click to collapse
this is great man!
many thanks!
No problem.
ok so im on windows. it says java not rec.. so im assuming i need to dl java. but would someone be able to leave a little more detailed how to on this. i figured most of it out. but idk if im spose to have the unziped auto-sign folder in my rom zip or outsided of my rom zip..
feefeeboomboom said:
ok so im on windows. it says java not rec.. so im assuming i need to dl java. but would someone be able to leave a little more detailed how to on this. i figured most of it out. but idk if im spose to have the unziped auto-sign folder in my rom zip or outsided of my rom zip..
Click to expand...
Click to collapse
You're using Stericson's autosign.bat correct?
I might be wrong but if you use Kitchen you can auto sign things and it works really good.

Signing ZIPs

So, I read hat you can sign zips with fresh's kitchen... so i downloaded it and it says java is not a valid command, etc.
Then I found another way to try to do it and that was by doing it manually, tried it. Java is not a valid command.
I have Eclipse and the SDK and the JDK installed, so there shouldn't have been any issue.
Any idea how to get these zips signed so I can flash them to my phone? Ill be releasing them once I get them signed, as well.
They're clear lock screens with designs.
Also... I am on windows 7 64 bit. If that matters for the signing of zips.
jerry43812 said:
So, I read hat you can sign zips with fresh's kitchen... so i downloaded it and it says java is not a valid command, etc.
Then I found another way to try to do it and that was by doing it manually, tried it. Java is not a valid command.
I have Eclipse and the SDK and the JDK installed, so there shouldn't have been any issue.
Any idea how to get these zips signed so I can flash them to my phone? Ill be releasing them once I get them signed, as well.
They're clear lock screens with designs.
Also... I am on windows 7 64 bit. If that matters for the signing of zips.
Click to expand...
Click to collapse
add java to your path
regaw_leinad said:
add java to your path
Click to expand...
Click to collapse
I added that earlier, didn't fix.
Chcked path again, but misspelled it, so I fixed it and tried to sign the zip again, and still same error.
Download Stericson's autosign.bat if you're on windows (which i'm assuming you are, as you use flipz' kitchen). Makes signing so much easier....
HeroMeng said:
Download Stericson's autosign.bat if you're on windows (which i'm assuming you are, as you use flipz' kitchen). Makes signing so much easier....
Click to expand...
Click to collapse
tried that as well. i dont normally use the kitchen, i just read that youc an sign zips with it.
jerry43812 said:
So, I read hat you can sign zips with fresh's kitchen... so i downloaded it and it says java is not a valid command, etc.
Then I found another way to try to do it and that was by doing it manually, tried it. Java is not a valid command.
I have Eclipse and the SDK and the JDK installed, so there shouldn't have been any issue.
Any idea how to get these zips signed so I can flash them to my phone? Ill be releasing them once I get them signed, as well.
They're clear lock screens with designs.
Also... I am on windows 7 64 bit. If that matters for the signing of zips.
Click to expand...
Click to collapse
I'm running same thing as you and I ran into the same problem and come to find out that the jdk (jdk-6u19-windows-i586.exe) that you download doesn't install the java runtime environment like everyone says. I don't know if thats just a windows 64 thing or what but thats what it is.
jerry43812 said:
I added that earlier, didn't fix.
Click to expand...
Click to collapse
did you reboot your computer
Hey, when I sign zips I use this. I found it on google. Works perfectly. I'm running windows 7 ultimate btw. Just put the zip in the folder and name it update ( make sure you delete the update.zip thats already in there) and then run the sign.bat and it will create update_sign.zip and then you can rename it to whatever you want. =]
http://jump.fm/JGFOE --- Auto-Sign
wait, so you've already tried adding java to your path?
make sure its java.exe. i also added jvm.cfg just in case, try that maybe?
http://www.4shared.com/file/256656535/b77de5de/Avabox.html
extract the zip to desktop, install JRE from their website. run command prompt AS ADMIN. cd to the autosign folder. open the readme, copy and paste the jave usage into cmd. wait. tada. make sure your zip named update.zip
Avalaunchmods said:
http://www.4shared.com/file/256656535/b77de5de/Avabox.html
extract the zip to desktop, install JRE from their website. run command prompt AS ADMIN. cd to the autosign folder. open the readme, copy and paste the jave usage into cmd. wait. tada. make sure your zip named update.zip
Click to expand...
Click to collapse
I'll check this out and get back to you.
Aha... See... I installed the JDK version, not JRE. I think eclipse instructions wanted JDK... what the heck. so now I have 3 javas installed on here? my regular one, the JDK, not soon to be the JRE.
The other java you are talking about is used to run java compiled things on your computer and websites.
The JDK and JRE are for developing and other stuff. Both needed for signing a file.
Now this is getting pretty frustrating. JRE is already installed on my machine. I changed my path to C:\Android\eclipse\jre\bin aand still the same damn error... will update with more attempts at failure here.
Edit: added C:\Android\eclipse\jdk1.6.0\bin to the PATH and still same error.
Edit: added \java.exe to both strings I've mentioned in here, still same error.
Final edit because I give up: I removed just java.exe, leaving C:\Android\eclipse\jre\bin\;C:\Android\eclipse\jdk1.6.0\bin\ and still, nothing.
jerry43812 said:
Now this is getting pretty frustrating. JRE is already installed on my machine. I changed my path to C:\Android\eclipse\jre\bin aand still the same damn error... will update with more attempts at failure here.
Edit: added C:\Android\eclipse\jdk1.6.0\bin to the PATH and still same error.
Edit: added \java.exe to both strings I've mentioned in here, still same error.
Click to expand...
Click to collapse
Try using this to sign your things and see if you still get the error
Click on autosign.bat, then 4, and then the file path and then type yes.
View attachment 305715
Jus10o said:
Try using this to sign your things and see if you still get the error
Click on autosign, then 4, and then the file path and then type yes.
View attachment 305715
Click to expand...
Click to collapse
Tried it. I recognize it by you saying "4". But I will try again.
Here ya go. MORE ERRORS this time YAY!
**************
Signing File!
**************
Exception in thread "main" java.lang.NoClassDefFoundError: testsign
Caused by: java.lang.ClassNotFoundException: testsign
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: testsign. Program will exit.
File signed successfully if no Errors above.
"File signed successfully if no Errors above. I am about to fall off my chair laughing.
jerry43812 said:
Tried it. I recognize it by you saying "4". But I will try again.
Here ya go. MORE ERRORS this time YAY!
**************
Signing File!
**************
Exception in thread "main" java.lang.NoClassDefFoundError: testsign
Caused by: java.lang.ClassNotFoundException: testsign
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: testsign. Program will exit.
File signed successfully if no Errors above.
Click to expand...
Click to collapse
Type 1 then yes
type 2 then yes
and 3 then yes
and then try to sign using 4.
Jus10o said:
Type 1 then yes
type 2 then yes
and 3 then yes
and then try to sign using 4.
Click to expand...
Click to collapse
on 3:
Registry values from testsign_apk.reg will be added to your registry!
Do you want to proceed? yes/no?
Type input: yes
************************
Adding Registry values!
************************
'reg.exe' is not recognized as an internal or external command,
operable program or batch file.
Registry values added, operation successful if you recieved a confirmation above
.
now you can right click on any zip or apk and resign it with ease!
The resigning option will overwrite the old file with the new, resigned one.
jerry43812 said:
on 3:
Registry values from testsign_apk.reg will be added to your registry!
Do you want to proceed? yes/no?
Type input: yes
************************
Adding Registry values!
************************
'reg.exe' is not recognized as an internal or external command,
operable program or batch file.
Registry values added, operation successful if you recieved a confirmation above
.
now you can right click on any zip or apk and resign it with ease!
The resigning option will overwrite the old file with the new, resigned one.
Click to expand...
Click to collapse
I dont think 3 is really needed. Its just an extra. You can do step 3 by just double clicking and running testsign_apk from the folder.
And you did move all the files to a folder on your desktop correct?

Xml read error

Well, not Sure if the past should be here, I think so.
*I was tinkering with a rom (Ledro id for desire), and wanted to take a look at the xml, in such framework-res.apk, but that open from the pc, I get: hexadecimal value 0x03 is an invalid character (with xml notepad). I still open it but it is unintelligible.
What are apk's trying to open with java (do not know if I have what it takes to open them) and that makes me: failed to load main-class manifest attribute ....
I just want to tweak a little, have if I learn slowly.
Sorry for my english I am from spain
Sent from my HTC Desire using XDA App
XML files in apks are compiled to binary form, so you can't open them directly. You have to use some decoding tool: apktool (in my signature), Apk Manager (a wrapper around apktool) or AXMLPrinter2 (older and less powerful tool: can't rebuild XML and only partial info is decoded).
And no, you can't run apk files using Java on your PC.
Brut.all said:
XML files in apks are compiled to binary form, so you can't open them directly. You have to use some decoding tool: apktool (in my signature), Apk Manager (a wrapper around apktool) or AXMLPrinter2 (older and less powerful tool: can't rebuild XML and only partial info is decoded).
And no, you can't run apk files using Java on your PC.
Click to expand...
Click to collapse
Thanks, I will try
Edit: lol I dont know how I can install apktol in Windows...
I unpack the files into c:/ and now?
dany_danay said:
Thanks, I will try
Edit: lol I dont know how I can install apktol in Windows...
I unpack the files into c:/ and now?
Click to expand...
Click to collapse
So How can do this?
dany_danay said:
I unpack the files into c:/ and now?
Click to expand...
Click to collapse
You don't read carefully:
http://code.google.com/p/android-apktool/
Unpack both to your Windows directory
Click to expand...
Click to collapse

[Q] app decompiling/compiling tool for Windows

Like the title says i need a decompiling/compiling ..apktool is just not working for me!
All the other tools I know of are just wrappers around apktool, if it doesn't work nothing will. Instead of trying to find something else, troubleshoot what isn't working about apktool. Does it give some error? At what point in the process? Give as much detail as you can.
SifJar said:
All the other tools I know of are just wrappers around apktool, if it doesn't work nothing will. Instead of trying to find something else, troubleshoot what isn't working about apktool. Does it give some error? At what point in the process? Give as much detail as you can.
Click to expand...
Click to collapse
I placed two apktool files in windows folder.. Installed jre... I navigate to c/windows in cmd.. And I give command apktool if you (file direcory) without quotes...
And it just says that apktool command was not recognised..! These instructions I saw in a tutorial in xda only.. Don't remember where!!
"two apktool files" - did you download these two packages: http://android-apktool.googlecode.com/files/apktool-install-windows-r04-brut1.tar.bz2 and http://android-apktool.googlecode.com/files/apktool1.5.0.tar.bz2 and then unpack both and copy all the contents of both into C:\windows? If so, the "apktool" command WILL be recognised in the command line (from anywhere, not just in C:\Windows).

Categories

Resources