resigning zips - Hero CDMA General

im having trouble resigning zip files and apks. can anyone help. i tried using fresh kitchen and also JF autosigning files. with fresh kitchen i get jave not recognized as an internal or external command. With JF i just get ERROR. HELP

So what are you trying to sign? And do you have Java installed? We need more details to help you.

Make sure that PATH variable is set to 'C:\Program Files\Java\jre6\bin' or whatever your install location is.
Assuming you're running Vista or 7, you can set this under:
My Computer>Properties>Advanced system settings>Environment Variables

obannvi said:
So what are you trying to sign? And do you have Java installed? We need more details to help you.[/QUOTE
here is what i did...
i opened up the clear keyboard file from the zip i downloaded. I copied the two files i needed to get it to work in dc 2. I took the keyboard app from dc v2.05 and replaced the two files. then ziped the apk file. I then went to flips kitchen and went to tools and tried to resign the zip file. I have java installed. I installed it last night from the link on the sticky about theming. i get the error...java is not recognized as in internal or external command, operable program or batch file.
I also tried using the JF auto sign but couldnt get it to work
Click to expand...
Click to collapse

cbarlan said:
obannvi said:
So what are you trying to sign? And do you have Java installed? We need more details to help you.[/QUOTE
here is what i did...
i opened up the clear keyboard file from the zip i downloaded. I copied the two files i needed to get it to work in dc 2. I took the keyboard app from dc v2.05 and replaced the two files. then ziped the apk file. I then went to flips kitchen and went to tools and tried to resign the zip file. I have java installed. I installed it last night from the link on the sticky about theming. i get the error...java is not recognized as in internal or external command, operable program or batch file.
I also tried using the JF auto sign but couldnt get it to work
Click to expand...
Click to collapse
Need to install the java runtime environment.
http://androidforums.com/developer-101/8665-how-signing-roms.html
Here's a good signing guide
Click to expand...
Click to collapse

regaw_leinad said:
cbarlan said:
Need to install the java runtime environment.
http://androidforums.com/developer-101/8665-how-signing-roms.html
Here's a good signing guide
Click to expand...
Click to collapse
thanks downloaDING NOW. FEEL STUPID. new to this but hope to be able to contribute some new ideas of my own. no roms but customizations o plenty lol
Click to expand...
Click to collapse

thread can close now lol. got it to work. yea...expect to lots of me now

Related

NASCAR Sprint Cup Mobile for Mogul Working

Hello All,
I found this on another board for my friend who is a BIG NASCAR fan and got it to work on her Mogul by following the included instructions. I have tested and it is working. The final test will be during this weekends race. Keep in mind that it's a Java App and you will need Java installed. The stylis isn't used, you have to use the arrow keys to control.
Enjoy, I will try to support it any way I can, but no promises.
http://rapidshare.com/files/116171004/NASCAR_Sprint_Cup_Mobile.zip
i dont have a windows folder on my mogul?
never mind, I found it...it was hidden
confirmed, this is working on my mogul also!!!! awesome I have been waiting for this!
Can someone make a cab file for this application
I installed this on mt VZW xv6800 and it works great. I probably cant get the subscription stuff being on VZW but i will test the rest of it on race day.
sliverr7x said:
Can someone make a cab file for this application
Click to expand...
Click to collapse
I don't think this is possible because of the procedure to get it working. A cab file cannot determine what the file name of the file created is, (At least as far as I know).
i must have done something wrong. I followed the instructions correctly I thought.
Using the second set of files that Brett posted I was able to get it to work and I'm not even a sprint customer. Here is what I did:
1. Copied the following files from Brett's zip file into the \Windows\Appdb\ directory. s40__d0.db,s40__d1.db,s40__d2.db,s40_suite.jar,s40 _suite.utf.
Click to expand...
Click to collapse
I had no appdb directory, so I created one, then copied all 5 files into it. I didnt however copy the bin directory over, since it didnt mention that....
I also tried copying with the folder and running things from inside the folder....
Excluding the above files make a note of the highest set of numbered files that starts with an s.
Click to expand...
Click to collapse
I had no files in there.....
2. Using my phones file explorer I browsed to \windows\appdb and opened s40_suite.jar.
3. I went through the normal install steps and received the same error that everyone did.
4. Closed java.
Click to expand...
Click to collapse
that worked fine, java ran, but it never got to an error. Just a white screen with exit and pause on the soft keys.
5. On your phone browse to the \windows\appdb\ folder.
6. There should be 2 new .jar and .utf files that that start with 's' and are one number higher then the number you made a note of earlier.
Click to expand...
Click to collapse
there were a bunch of s0 fies
7. On you PC rename all 5 files by replacing the 40 in each file's name with the number of the new file that was created.
Click to expand...
Click to collapse
went back to the original files from the zip file and renamed them all to s0
8. Copy all 5 files to \windows\appdb
Click to expand...
Click to collapse
copied everything back over and overwrote whatever files it asked to
9. Open java and launch app.
Click to expand...
Click to collapse
Went back to Resco and ran the s0 jar file that I had just copied back over.
No good. I get a 955 error
corey113888 said:
I installed this on mt VZW xv6800 and it works great. I probably cant get the subscription stuff being on VZW but i will test the rest of it on race day.
Click to expand...
Click to collapse
Capture some videos please. I wanna see 'em.

(Dev) Here goes nothing

This is my attempt to get some more creativity, innovation, and roms here on xda. alot of people here have incredible skills but they cant be harnessed because they dont know what to do. if you are an artist we need you make icon packs. you have made 30 roms but you cant sign them. blah blah.
so no one abuse this but i attached a toolkit to do anything and everything with android on windows. im pushing this to be used for creating themes. hopefully it can help. but i thought it would be nice if everyone had this and the opensource community could start to grow even more.
i like this idea because it can help fellow Devs and even the watchers. everyone can get involved and give something to the community.
And now i present the Avabox
Any questions post them up.
OUTLINE------------------------------------------------------------
unyaffs-you have the ability to take system.img and data.img from you nandroids and get specific items from them.
Autosign- sign anything and everything. name your zip update.zip and follow the readme. roms themes, apps, anything.
Baksmali- put in apk in the folder. read readme. edit any icons wallpapers, anything. close it up and enjoy.
Perlscripts- this opens the boot.img for you.
Read the readme on all of these programs.
So this is going to be a quick tutorial Im gonna put up a video soon on how i got this to work on my computer
First things first download Avabox and unzip it in your C folder (same place you put androidsdk).
then get the java runtime from here not to be confused with the java development kit but since your there might as well grab it as well.
Install the java runtime then reboot
then open up avabox and click on autosign and place the zip you want signed in that folder and name it update.zip (dont add the .zip part it should already be a zip file).
then open up command prompt and type:cd\
cd Avabox/auto-sign
java -jar signapk.jar testkey.x509.pem testkey.pk8 update.zip update_signed.zip
After that last enter give it a second and look in your avabox/update file and you'll notice a new file called update_signed.zip
I know that this is almost word for word from the read me but a few differences can go along way expect a video shortly..... well around wednesday or whenever i can get someone to help with this
porting
im interested in learning how to port and combine different aspects of themes and other mods. will this do it or is there other software i need. I can do the work if shown the way. I read all the post everday with peopl;e asking for this and that and i do it myself. If shown I would help with requests as much as possible. HELP PLEASE
Thank you Avalaunch!!
so with this software, can i take a signed theme mod (like launcher or taskbar) and it will grab the images for me to edit, and then repack and sign to a flashable zip?
Everyone that knows how to use bak/smali, I have a question.
The modifications I made to the extracted pngs aren't getting transferred back to the original apk when I close it back up. Any Ideas? I'm getting really close to a breakthrough for 2.1. Any help would be appreciated
regaw_leinad said:
Everyone that knows how to use bak/smali, I have a question.
The modifications I made to the extracted pngs aren't getting transferred back to the original apk when I close it back up. Any Ideas? I'm getting really close to a breakthrough for 2.1. Any help would be appreciated
Click to expand...
Click to collapse
hm ill have to check into it. it should be making a new classes.dex too. i never really used it on edits.
Avalaunchmods said:
hm ill have to check into it. it should be making a new classes.dex too. i never really used it on edits.
Click to expand...
Click to collapse
It changes the classes.dex and resigns it it looks like, but doesn't copy the mods of the pngs to the apk.
regaw_leinad said:
Everyone that knows how to use bak/smali, I have a question.
The modifications I made to the extracted pngs aren't getting transferred back to the original apk when I close it back up. Any Ideas? I'm getting really close to a breakthrough for 2.1. Any help would be appreciated
Click to expand...
Click to collapse
What do you mean? Baksmali and Smali are for decompiling classes.dex and opening it up for the .smali files that are inside. Smali takes that output and recompiles it back into classes.dex for your .apk or .jar file.
You need to update the baksmali and smali .jar's. You have older versions and that will cause issues with certain .jar and .apk's when decompiling. baksmali-1.2.1.jar and smali-1.2.1.jar are the latest versions and will not require the BOOTCLASS PATH to be included...
Does the autosign work windows 7 (64 bit)? I've heard issues with other autosigns on 7. If it doesn't, no biggie I got xp in a VM... lol
obannvi said:
What do you mean? Baksmali and Smali are for decompiling classes.dex and opening it up for the .smali files that are inside. Smali takes that output and recompiles it back into classes.dex for your .apk or .jar file.
Click to expand...
Click to collapse
Yeah I get it now, after playing with it for a while.
Avalaunch, you should change the first post.
Baksmali- put in apk in the folder. read readme. edit any icons wallpapers, anything. close it up and enjoy.
Click to expand...
Click to collapse
that description is a little confusing to a person that NEVER used smali/baksmali before. It makes it seem like after you edit the unzipped files, you could just run smali and it will put al the changes in the new apk. I figured out that's not how it works lol I feel pretty stupid now looking back at my last question haha
regaw_leinad said:
Yeah I get it now, after playing with it for a while.
Avalaunch, you should change the first post.
that description is a little confusing to a person that NEVER used smali/baksmali before. It makes it seem like after you edit the unzipped files, you could just run smali and it will put al the changes in the new apk. I figured out that's not how it works lol I feel pretty stupid now looking back at my last question haha
Click to expand...
Click to collapse
What im trying to figure out is why would you even need to use baksmali/smali to edit .png's inside an .apk. All that needs to be done is opening of the .apk with 7zip, modify whats in /res/drawable etc then close...No need to sign .apks or anything. If anything, the script needs to contain something to extract /res/ * from the .apk to edit.
obannvi said:
What im trying to figure out is why would you even need to use baksmali/smali to edit .png's inside an .apk. All that needs to be done is opening of the .apk with 7zip, modify whats in /res/drawable etc then close...No need to sign .apks or anything. If anything, the script needs to contain something to extract /res/ * from the .apk to edit.
Click to expand...
Click to collapse
I'm actually doing more than that. I am changing the code to look for instead of <name of file>.jpg to <name of file>.png
While also putting the new png in the apk. Think that's possible? I changed all of the locations where that file comes up in the smali code.
regaw_leinad said:
I'm actually doing more than that. I am changing the code to look for instead of <name of file>.jpg to <name of file>.png
While also putting the new png in the apk. Think that's possible? I changed all of the locations where that file comes up in the smali code.
Click to expand...
Click to collapse
I gotcha. So you're looking in blah.smali for any reference to .jpgs and changing that reference to look for .png instead??
obannvi said:
I gotcha. So you're looking in blah.smali for any reference to .jpgs and changing that reference to look for .png instead??
Click to expand...
Click to collapse
yeah, not working too well atm, but working on it.
I think this is what I've been looking for. Downloading now.
Just noticed that ActivePerl was for 64bit. I am downloading 32bit as I have only have 32bit Vista Pro installed and not the 64bit.
regaw_leinad said:
Yeah I get it now, after playing with it for a while.
Avalaunch, you should change the first post.
that description is a little confusing to a person that NEVER used smali/baksmali before. It makes it seem like after you edit the unzipped files, you could just run smali and it will put al the changes in the new apk. I figured out that's not how it works lol I feel pretty stupid now looking back at my last question haha
Click to expand...
Click to collapse
i guess i need to explain more. i use baksmali to make apks easier to search through. for me at least. instead of changing the type and everything i just put it in the folder and baksmali then do changes and create a new archive. sign and change .apk. if you smali it back to apk then it wont save edits. sorry about that anyways has this helped people so far? i love showing that windows can be a dev platform
&RoidRage said:
I think this is what I've been looking for. Downloading now.
Just noticed that ActivePerl was for 64bit. I am downloading 32bit as I have only have 32bit Vista Pro installed and not the 64bit.
Click to expand...
Click to collapse
yes just google active perl i use win 7 64bit and when this toolbox was made, it was only made for certain people who had 64bit.
Sorry for the n00b question, but I have searched and haven't had much luck. Hopefully, this is the best place for this question. I just started editing .png's and updating some apk's files to customize some things on my phone for looks. However, I am really interested in modifying the taskbar and notification screen, but I have no clue where to start. Is there a guide somewhere I could follow to learn how to change them? What programs, if any additional ones will I need etc..?
Thanks for your help!
Figured it out on my own. framework.apk and resources.apk

[Q] editing framework-res.apk

Hey guys I need a bit of help..... I was trying to edit the drawables on my gf 's Eris in the framework-res.apk and when I recompiled the Rom and tried to flash my changes recovery tells me that the update script couldn't be verified due to framework-res.apk and aborts the installation.... what am I doing wrong? Do I need to sign this apk or something to make it work correctly? I did this on my Droid incredible the other day with no problem. I know there was another thread on this further down in Dec but unfortunately it didn't give me the answers I need...
Sent from my ADR6300 using XDA App
elixir911911 said:
Hey guys I need a bit of help..... I was trying to edit the drawables on my gf 's Eris in the framework-res.apk and when I recompiled the Rom and tried to flash my changes recovery tells me that the update script couldn't be verified due to framework-res.apk and aborts the installation.... what am I doing wrong? Do I need to sign this apk or something to make it work correctly? I did this on my Droid incredible the other day with no problem. I know there was another thread on this further down in Dec but unfortunately it didn't give me the answers I need...
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
I assume from reading your post that you updated the framework png's inside a Rom Zip package... You don't need to sign the framework, but you do have to resign the Rom Zip file. Try re-signing the rom file, that should get it working...
Macrodroid said:
I assume from reading your post that you updated the framework png's inside a Rom Zip package... You don't need to sign the framework, but you do have to resign the Rom Zip file. Try re-signing the rom file, that should get it working...
Click to expand...
Click to collapse
Any input on how to sign Rom files? I've never signed anything before
elixir911911 said:
Any input on how to sign Rom files? I've never signed anything before
Click to expand...
Click to collapse
You can sign it using gnarlycs kitchen.
Edit: another thing you could have done is just pushed your modded frameworkres to its folder and rebooted the phone.
Sent from my Incredible using Tapatalk
elixir911911 said:
Any input on how to sign Rom files? I've never signed anything before
Click to expand...
Click to collapse
find zip signer i believe its called u can use that
tazzpatriot said:
find zip signer i believe its called u can use that
Click to expand...
Click to collapse
Sterricson Zip Signer, or get SignApkTool from the market and sign it on your phone... Just make sure you use the test-keys for the rom file...
I used zip signer from the market.... is there anyway I can use this to sign apk 's like HTC messaging and HTC IME so that I can edit drawables in those apps?
Sent from my ADR6300 using XDA App
elixir911911 said:
I used zip signer from the market.... is there anyway I can use this to sign apk 's like HTC messaging and HTC IME so that I can edit drawables in those apps?
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
Y don't u just download the kitchen so u can do it easier and do a bunch together...I think someone said this already I forget lol I need to look haha
Well I know how to sign sips I just want to know if I can sign apps like HTC messaging so they'll install on my device.... if I unzip and rezip afile it won't install on my device... will signing it fix this?
Sent from my ADR6300 using XDA App
i could never get that **** to recompile correctly. i gave up.
I use apk manager to decompile, compile, and sign apks. Unless I'm adding pngs I'm which case I use apktool. If your just editing or replacing what already exists apk manager is the easiest way in my opinion.
Sent from my ERIS using XDA App
elixir911911 said:
Well I know how to sign sips I just want to know if I can sign apps like HTC messaging so they'll install on my device.... if I unzip and rezip afile it won't install on my device... will signing it fix this?
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
Those won't install...you need to push them to system/app and reboot. No need to sign them unless you resign a whole rom.zip
Conap said:
Those won't install...you need to push them to system/app and reboot. No need to sign them unless you resign a whole rom.zip
Click to expand...
Click to collapse
That's right.. thanks for adding that Conap. Also I was re-reading and just wanted to add as well that you don't want to unzip an apk to modify it and then zip it.. Use one of the other tools mentioned.. apktool or apkmanager
CondemnedSoul said:
That's right.. thanks for adding that Conap. Also I was re-reading and just wanted to add as well that you don't want to unzip an apk to modify it and then zip it.. Use one of the other tools mentioned.. apktool or apkmanager
Click to expand...
Click to collapse
Also for pc 7zip works good also. Just right click the file 7zip open archive drop your png where you want it. Close the apk and push it to system/app or where ever it came from.
If your on ubuntu just click your apk and drop your pngs. You don't even need an apk tool.
dinc¦rockin' the stock root
wildstang83 said:
Also for pc 7zip works good also. Just right click the file 7zip open archive drop your png where you want it. Close the apk and push it to system/app or where ever it came from.
If your on ubuntu just click your apk and drop your pngs. You don't even need an apk tool.
dinc¦rockin' the stock root
Click to expand...
Click to collapse
That does work as well but doing it that way you will need to optimize the .9's if you change them also. xultimate works great for that.
CondemnedSoul said:
That does work as well but doing it that way you will need to optimize the .9's if you change them also. xultimate works great for that.
Click to expand...
Click to collapse
Oh cool. I never really optimized any of them. What does that do?
dinc¦rockin' the stock root
ok big time mess up...I downloaded apk manager....I used the command prompt to adb pull Browser.apk. I put this in the modding folder and used the script.bat file to extract the apk....I edited my files annd hit re zip apk and chose the option to retain signature for system apps. Then when I adb push back it seems to work fine but when I reboot browser doesnt show up in my app list!!!!! help please!!! where did I mess up? I even tried to zip align to see if that would fix it.....If I try to use coommand prompt to adb push the original browser.apk back into place it says error read only file system.....I'm locked out! ah!
elixir911911 said:
ok big time mess up...I downloaded apk manager....I used the command prompt to adb pull Browser.apk. I put this in the modding folder and used the script.bat file to extract the apk....I edited my files annd hit re zip apk and chose the option to retain signature for system apps. Then when I adb push back it seems to work fine but when I reboot browser doesnt show up in my app list!!!!! help please!!! where did I mess up? I even tried to zip align to see if that would fix it.....If I try to use coommand prompt to adb push the original browser.apk back into place it says error read only file system.....I'm locked out! ah!
Click to expand...
Click to collapse
To push the original browser, /system needs to be mounted as r/w which can be done with the command "adb remount"
As for the problem with the modded browser not showing up, try this:
Code:
adb shell chmod 644 /system/app/Browser.apk
adb shell chown 0:0 /system/app/Browser.apk
#now reboot into recovery, wipe cache and dalvik-cache, and reboot
the string you typed for the modded browser....i type that into a normal command prompt not into apk manager correct? I tried to put my normal browser back with adb remount and it still doesnt show in my app list but if i look with a file explorer the apk is in the right place....why wont it show up?
OK i actually pushed my old browser successfully and it wouldnt show in my app list....I then followed your instructions and did adb shell chmod and chown and reboot wipe dalvik and cache and it still wouldnt show up. I really dont wanna have to flash a recovery image....
edit: If it has any importance this is actually on a droid incredible i was testing for my gf's eris. So idk if it changes anything that this is actually an inc.

[DEV] AndroidLib.dll Expansion Project

Description:
The AndroidLib Expansion Project was created to bring support of more Android devices to my AndroidLib.dll project I'm working on. This project is a Windows executable (compiled batch script) that you will run on your computer with your Android device connected. This will NOT run automatically; it will give you a prompt to run after opening.
The main purpose of this project is to collect data about new phones for AndroidLib.dll, not about your specific phone, but about how it transfers specific data through it's shell and through the Android Debug Bridge (ADB), and more importantly, how that output is formatted.
This information will not be shared with anyone other than myself, and will only be used for further developing AndroidLib.dll to support many more Android devices than it currently does.
Source Code is available under "Download Info"
What it does:
Starts an Adb server
Checks Device List
Checks Device Type
Checks Device Serial (only for unique .zip filename)
Checks For SU
Checks UID
Checks BusyBox
Checks File System
Checks Battery Statistics
Checks Running Processes
Checks /data/system/packages.xml for existance
Checks Build Properties
Checks Shell Environment
Creates Zip of Data Above
Opens Upload Form in Browser After Exiting
NOTE: Does NOT Upload Automatically
Usage:
Download the Windows Executable below and run from any directory on your computer with your Android device connected.
Requirements:
Windows Computer
Android device to test
Download Latest Release
AndroidLibExpansion.exe
Download Info
AndroidLibExpansion.exe MD5: 3a8971f452ab7e3da63e375a859033d4
VirusTotal Report
Source Code
No zip file on my desktop to send...
drcell said:
No zip file on my desktop to send...
Click to expand...
Click to collapse
Check the Desktop folder in %USERPROFILE%\Desktop as well instead of just the graphical desktop. I have tested it working on 5 different computers here...
Can you upload to another site
Like http://www.mediafire.com/
TarekNajem04 said:
Can you upload to another site
Like http://www.mediafire.com/
Click to expand...
Click to collapse
Yeah, you can, if you send me the link to it.. but I just wrote that upload script so it would just go straight to my server.. Upload it to mediafire if you would like.
I realize now that this exe may not have worked correctly. I've had 3 reports now of no zip being created on the desktop. I am working to solve this issue, as you see in the source.. it really has no reason not to be creating on the desktop.
I'll be glad to help, if only it created a zip file for me to upload.
EDIT: I checked the %USERPROFILE%/Desktop as well as running a search for anything containing "androidlib" in C:\Users... nothing.
2 things.
1st, it won't make a zip file for anyone that doesn't have 7zip or the required folder structure (there is no standard environment variable of %myfiles% - just use %temp% instead), and it's assuming subfolders exist for output of the adb commands.
2nd, why is it an exe file when it's a batch file? Please link the bat file instead of an exe. I'm running the bat file I copied and pasted from the source and it runs just fine.
Archer said:
2 things.
1st, it won't make a zip file for anyone that doesn't have 7zip or the required folder structure (there is no standard environment variable of %myfiles% - just use %temp% instead), and it's assuming subfolders exist for output of the adb commands.
2nd, why is it an exe file when it's a batch file? Please link the bat file instead of an exe. I'm running the bat file I copied and pasted from the source and it runs just fine.
Click to expand...
Click to collapse
Well, if you knew who I was or looked at anything else I have written, you'd realize that I know what I'm doing, and that I would not assume everyone has the standard environment variable %MYFILES% or have 7zip installed. I am assuming in this program, actually, that the end user does NOT have the android sdk set up (or in their path) and does NOT have any 7 zip binaries. I created a self extracting exe out of my batch file that includes adb.exe, the 2 required adb dlls, and the 7 zip binary, all in the global variable %MYFILES% (aTemp folder in %temp%). It works fine. Just need to figure out why it creates a zip on all of my computers, and not any of yours. I appreciate the feedback though.
FredFS456 said:
I'll be glad to help, if only it created a zip file for me to upload.
EDIT: I checked the %USERPROFILE%/Desktop as well as running a search for anything containing "androidlib" in C:\Users... nothing.
Click to expand...
Click to collapse
Thanks for letting me know you ran a full search and nothing came up still, that actually does help me out, telling me it didn't write to anywhere else. I'll have a working version for you guys in a little bit.
Ok guys, fixed the problem. Works great now. Check the source code and VirusTotal report in the first post if you need to. Thanks again for everyone helping with this! And special thanks to nebenezer for testing the new builds!
regaw_leinad said:
Well, if you knew who I was or looked at anything else I have written, you'd realize that I know what I'm doing, and that I would not assume everyone has the standard environment variable %MYFILES% or have 7zip installed. I am assuming in this program, actually, that the end user does NOT have the android sdk set up (or in their path) and does NOT have any 7 zip binaries. I created a self extracting exe out of my batch file that includes adb.exe, the 2 required adb dlls, and the 7 zip binary, all in the global variable %MYFILES% (aTemp folder in %temp%). It works fine. Just need to figure out why it creates a zip on all of my computers, and not any of yours. I appreciate the feedback though.
Click to expand...
Click to collapse
Lol - calm down mate. I wasn't criticising - I was trying to help. I get why it's an exe now you've explained and that makes sense. Glad you got it working anyway. I'll upload a couple of files for you later.
Archer said:
Lol - calm down mate. I wasn't criticising - I was trying to help. I get why it's an exe now you've explained and that makes sense. Glad you got it working anyway. I'll upload a couple of files for you later.
Click to expand...
Click to collapse
Ok thanks for clarifying. The way you presented your self in your post sounded like somewhat of "this n00b doesn't know what he's doing, and I'm gonna let him know that" lol I'm a pretty chill guy, I just don't appreciate when people do that.
And thank you for doing some uploads later! I appreciate it!
This is my upload link because i couldn't upload with your page. It says "The file you are trying to upload is not a .zip file. Please try again."
http://db.tt/0HoRAK11
It works and I have uploaded the zip
Burned from my laser torch using pencil cells
Uploaded .zip file.
regaw_leinad said:
Ok thanks for clarifying. The way you presented your self in your post sounded like somewhat of "this n00b doesn't know what he's doing, and I'm gonna let him know that" lol I'm a pretty chill guy, I just don't appreciate when people do that.
And thank you for doing some uploads later! I appreciate it!
Click to expand...
Click to collapse
Apologies if that's how I came across - it wasn't intended. I've just uploaded a couple of zip files for you.
Thank you to everyone who has uploaded a zip so far! This is really helping development on AndroidLib. I am still accepting more uploads, so if you feel like helping develpment of AndroidLib, feel free to download and run the exe! I'm needing a few more Samsung devices in particular, those seem to vary in output between themselves.
Have you got an upload from an Motor ATRIX 4g yet? If not ill see if I can sort it for you.
Sent from my MB860 using XDA
The-Milkybar-Kid said:
Have you got an upload from an Motor ATRIX 4g yet? If not ill see if I can sort it for you.
Sent from my MB860 using XDA
Click to expand...
Click to collapse
Nope haven't got one yet, that'd be awesome! Thanks!

[mod] ICS apk de/recompile script for APK Tool - Windows

ICS Framework-res.apk does not like to be decompiled and recompiled by APK tool.
The work around is to use 2 different versions of APK tool and keep swapping files for decompile and recompile.
I have put this in a handy little batch file package to manage all this. It really is basic stuff, but hopefully for those who are not quite sure, it will ease the pain a little.
Please feel free to test it. Enjoy:
This is an updated script to modify ICS *.apk using APK tool.
I take no credit for Apk tool or the process.
I have simply automated it for Windows as there are issues with ICS framework-res modification
Pre -requisites
1. WinRar
2. Java
Click to expand...
Click to collapse
Initial setup
1. Extract the apk folder from the .zip to the root of C:\
The structure should then look like c:\apk\ACTIONS
2. Go into c:\apk\ACTIONS\Install_files
3. Double click "Setup_Install.bat"
Click to expand...
Click to collapse
Usage
Simply double click START.bat and follow the instructions
Click to expand...
Click to collapse
Limitations
Can decompile any one .apk with any name at a time. Do not put any .apk files into the "in" folder until prompted to.
Click to expand...
Click to collapse
Thanks to Rob222 for confirming the method.
Updated the OP. Now can decompile / recompile any name .apk
Simple script. Double Click start and follow prompts.
hi!
got this problem
Ficheiro não encontrado
1 ficheiro(s) copiado(s).
Error: Unable to access jarfile C:\Windows\System32\\apktool.jar
Click to expand...
Click to collapse
any hint ?
i already made the java paths .. tryed java6 and java7
but always that error
ruizit0 said:
hi!
got this problem
any hint ?
i already made the java paths .. tryed java6 and java7
but always that error
Click to expand...
Click to collapse
What command did you run when you did that?
Did you run the setup file first?
You will need to be an administrator. Are you? If so try right click on the start script > Run as administrator
Just realised I somehow had left part of the usage instructions for the old version in the post by mistake. That maybe why some of you have issues.
Nice one bro... that was surely something that many have tried.. nice work..
Sent from my GT-I9300 using Tapatalk 2
Did not work
I set up the script as per the OP but I get the error attached
Think I need this. Getting errors trying to build apks.
Sent from my GT-I9300 using xda premium
Phone_Guru said:
I set up the script as per the OP but I get the error attached
Click to expand...
Click to collapse
Please walk me through, step by step what you did from downloading to receiving this error
Sent from my GT-I9300 using Tapatalk 2
Hey I'm a total noob with apktool on win. But I have unzipped apks on my phone using root explorer swapping res files and made working theme mods...
Could you guide to a good guide to doing this stuff on windows with a GUI I'm code illiterate virtually but know what's going on
Sent from my GT-I9300 using xda premium
I was able to get the CM 10 Framework-res to decompile and recompile using this version:
http://www.mediafire.com/?clk29i70rg7n8i9
The beauty of apks is that if you're swapping oranges for oranges, you don't need to decompile. You only really need to decompile if you're changing XML files.
To swap one image for another image with the same name is easy.
1)Download winrar (or 7zip - but I use winrar).
2)Open the apk with winrar (do NOT extract)
3)Delete the images you want to change
4)Drag the replacement images back in. When the window pops up with options, change "compression" to "store"
5)Close winrar
Sent from my GT-I9300 using Tapatalk 2
rootSU said:
The beauty of apks is that if you're swapping oranges for oranges, you don't need to decompile. You only really need to decompile if you're changing XML files.
To swap one image for another image with the same name is easy.
1)Download winrar (or 7zip - but I use winrar).
2)Open the apk with winrar (do NOT extract)
3)Delete the images you want to change
4)Drag the replacement images back in. When the window pops up with options, change "compression" to "store"
5)Close winrar
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
Oh... yeah cool so this automates replacing different images in the apk with the same location... I just use a vrtheme skeleton CMW.zip folder and zip it when done for flashing.
So how do you decompile the arsc archive and mess with deeper stuff?
Sent from my GT-I9300 using xda premium
thankssssssssssssssssssssss Alot
first i Run Setup_instal.bat as administrator in "C:\apk\ACTIONS\Install_Files"
after that my problem solve (i have problem like post 2 and 3)
and thats Awsome ,
graffixnyc said:
content removed
Click to expand...
Click to collapse
Kindly remove your link. This thread is about the mod I am sharing, which I scripted. It is not about other mods.
rlorange said:
Oh... yeah cool so this automates replacing different images in the apk with the same location... I just use a vrtheme skeleton CMW.zip folder and zip it when done for flashing.
So how do you decompile the arsc archive and mess with deeper stuff?
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
No, you don't use this at all if you're going to be changing images. This is for the deeper stuff.
rootSU said:
Please walk me through, step by step what you did from downloading to receiving this error
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
I did exactly what the OP says, extracted the files into the root of the C drive, ran the setup and clicked on the start.bat and followed instructions. I now ran the setup again and took a screenshot of what appeared because it was so fast I couldn't see it. It said access denied and 0 files copied. I then took ownership of the System32 folder and ran setup again and it said 1 file copied. I now ran the start.bat again and got the attached error.
So am I right in thinking that you can't simply merge folders/files and zip like you can with root explorer because windows is not a Linux system?
Sent from my GT-I9300 using xda premium
Phone_Guru said:
I did exactly what the OP says, extracted the files into the root of the C drive, ran the setup and clicked on the start.bat and followed instructions. I now ran the setup again and took a screenshot of what appeared because it was so fast I couldn't see it. It said access denied and 0 files copied. I then took ownership of the System32 folder and ran setup again and it said 1 file copied. I now ran the start.bat again and got the attached error.
Click to expand...
Click to collapse
can you try right clicking the start.bat and run as administrator please? You're still getting access denied messages.
rlorange said:
So am I right in thinking that you can't simply merge folders/files and zip like you can with root explorer because windows is not a Linux system?
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
You can swap anything like-for-like. You can put in a replacement folder, xml file or png as long as everything has the same name.
If you want to edit an existing XML, you cannot do this without decompiling as when an xml is compiled, it does not appear as plain text. Similarly if you want to add more pngs or xml files, resources changed so it has to be decompiled too.
But if its simply swapping like-for-like, you can just use winrar or 7zip as mentioned earlier.
rootSU said:
can you try right clicking the start.bat and run as administrator please? You're still getting access denied messages.
Click to expand...
Click to collapse
I tried that and still got the error messages.

Categories

Resources