Closed GoogleCodeExporter closed 8 years ago
Any more information?
a) What's the line of text that you see before it crashes?
b) Does it just immediately close the entire thing?
c) Operating system?
d) Possibly upload the folder that you are trying to make into a zip?
The program can only exit in one of three ways:
1) The folder you dragged/dropped doesn't contain a system or data folder -->
error msg and exit
2) There was a problem creating the zip using 7zip --> error msg and exit
3) Successful creation of zip --> normal termination
Original comment by lange.co...@gmail.com
on 26 Aug 2011 at 1:47
It closes too quick i cant see the error
The folder I am trying to zip is for a theme, the folder name is system and has
sub-directories for both app and framework.
I am using windows 7
Original comment by jgrimber...@gmail.com
on 26 Aug 2011 at 2:00
I found the problem. I forgot to add a pause for you to see the error in the
standalone version. I'm fixing it now. Also, you don't want to drag "system"
into the window. You need to drag the "YourThemeNameHere" folder into the
window. "YourThemeNameHere" should have the system folder inside it. Ex
hierarchy:
YourThemeNameHere
system
app
stuff
framework
data
app
stuff
Original comment by lange.co...@gmail.com
on 26 Aug 2011 at 2:04
Got it, I will try it again. Do i need to set permissions for the
framework.res etc?
Justin T Grimberg
On Aug 25, 2011, at 10:05 PM,
Original comment by jgrimber...@gmail.com
on 26 Aug 2011 at 2:16
[deleted comment]
I've never had to change permissions with the APK's that were in my zips.
However, I never did framework-res either. Always do a nandroid first though.
With framework, you wouldn't be able to change permissions anyway because at
least on my Droid X if the framework-res is messed up, the phone just bootloops
with no ADB.
Zips made with the tool have been working for me, but I never want to give 100%
approval since *bad* things can happen.
Original comment by lange.co...@gmail.com
on 26 Aug 2011 at 2:22
I tried it again and it seemed to work but when i try and open the zip it says
it is corrupted also there is a java exception? attached is a screenshot
Original comment by jgrimber...@gmail.com
on 26 Aug 2011 at 2:26
Attachments:
The out of memory error looks interesting... By default, the program asks for
128MB of heap space from the Java VM. How much memory do you have on your PC?
Also, the Java error is from the signing process that uses signapk.jar.
As far as the corrupted zip goes, that might be a side effect of the signing
process. The command that gets executed to do the zip creation is on line 119
of:
http://code.google.com/p/android-customization-autotool/source/browse/trunk/src/
standalones/UpdateZipWizard/CreateUpdateZip.py
All it does is execute:
7za a -tzip -mx0 .\generatedZips\gg.zip inputFolder\*
I'm changing the code to actually print all output. I had removed it for
cleanliness issues, only printing output if 7zip exited abnormally, but it'll
probably help to have it all there.
For now, I'd try to execute the 7zip command manually. I'll probably be
changing the heap size too. I've only got 2GB of memory on my laptop, but the
process probably doesn't need 128MB anyway.
Original comment by lange.co...@gmail.com
on 26 Aug 2011 at 2:38
I have about 12gigs of ram so i don't think that is the issue?
On Thu, Aug 25, 2011 at 10:39 PM, <
android-customization-autotool@googlecode.com> wrote:
Original comment by jgrimber...@gmail.com
on 26 Aug 2011 at 2:47
Do I need to have 7zip installed?
Original comment by jgrimber...@gmail.com
on 26 Aug 2011 at 2:51
I figured as much, 128MB shouldn't be the issue, but I had to ask.
Can you run the signapk.jar file manually without problems?
java -Xmx128m -jar signapk.jar -w testkey.x509.pem testkey.pk8 gg.zip
signedgg.zip
or this?
java -jar signapk.jar -w testkey.x509.pem testkey.pk8 gg.zip signedgg.zip
Original comment by lange.co...@gmail.com
on 26 Aug 2011 at 2:52
Shouldn't need 7zip installed since I've included the stand-alone in the
package. On my machine, I have 7zip installed, but it's not in my PATH
environment variable, so the program is using that stand-alone I included.
Original comment by lange.co...@gmail.com
on 26 Aug 2011 at 2:54
Do i just run that command at terminal? it tried that and it says unable to
acces jarfile.signapk.jar
On Thu, Aug 25, 2011 at 10:53 PM, <
android-customization-autotool@googlecode.com> wrote:
Original comment by jgrimber...@gmail.com
on 26 Aug 2011 at 3:01
It's at the terminal. The jar file needs to be in the current directory. So
from the root directory with all the files in it type:
java -jar signapk.jar -w testkey.x509 testkey.pk8 .\generatedZips\blah.zip
signedblah.zip
Just replace blah with the name of the zip you generated.
Original comment by lange.co...@gmail.com
on 26 Aug 2011 at 3:08
I've updated the code, still need to put it in a distributable format (besides
just a raw python script), but here's the new output. This is what it "should"
look like:
http://android-customization-autotool.googlecode.com/svn/trunk/docs/UpdateZipWal
kthrough/1.png
Original comment by lange.co...@gmail.com
on 26 Aug 2011 at 3:17
Code here:
http://code.google.com/p/android-customization-autotool/source/browse/#svn%2Ftru
nk%2Fsrc%2Fstandalones%2FUpdateZipWizard
If you have python installed and in your PATH, just copy the files into the
same folder as the previous EXE and just run:
python CreateUpdateZip.py
Original comment by lange.co...@gmail.com
on 26 Aug 2011 at 3:19
I don't think I have python installed? Where do I get it?
Justin T Grimberg
On Aug 25, 2011, at 11:22 PM,
Original comment by jgrimber...@gmail.com
on 26 Aug 2011 at 3:38
Make sure you get 2.7:
http://www.python.org/download/
Working on the .exe and doing some preliminary testing. Hopefully get it
published tonight.
Original comment by lange.co...@gmail.com
on 26 Aug 2011 at 3:41
Also note that Python isn't needed with the .exe since the interpreter is
included in the .exe (which is why it's so large)
Original comment by lange.co...@gmail.com
on 26 Aug 2011 at 3:42
Thanks man! This will definitely be a handy tool!
Justin T Grimberg
On Aug 25, 2011, at 11:45 PM,
Original comment by jgrimber...@gmail.com
on 26 Aug 2011 at 4:02
Python is pretty much the best programming language I've ever used in terms of
quick prototyping and built-in, easy to use, power. That, and it's interpreted
so you don't need to compile something just to test a snippet.
I'm having issues with the .exe generation for now. If you get it to work, let
me know what the problem was so I can close the issue and jot it down on the
Wiki. If you keep having problems, keep posting and I'll keep helping you as
much as I can.
The biggest "problem" with the tools I've written is that they don't actually
*do* much. Instead they use other tools (like the jar and 7zip) to execute a
procedure for you. What that means is that if you have any problems getting the
individual parts to work (i.e you can't get the jar to work by itself from the
command-line) then you have bigger problems outside the scope of the tool. I
can still offer some assistance there, but there's not really any code edits I
can do for you (outside of changing parameters).
Keep me in the loop. Good luck for now.
Original comment by lange.co...@gmail.com
on 26 Aug 2011 at 4:10
I am not sure I understand, so did you make a .exe?
Justin T Grimberg
On Aug 26, 2011, at 12:11 AM,
Original comment by jgrimber...@gmail.com
on 26 Aug 2011 at 4:15
No luck with the .exe yet. I'm having some runtime import issues. If you
downloaded Python, then you should be able to run the updated version from the
repository (links above) using 'python CreateUpdateZip.py' at the command line.
I'll hopefully have an .exe tomorrow, I just need to figure out the problem.
Only used py2exe a handful of times.
Original comment by lange.co...@gmail.com
on 26 Aug 2011 at 4:36
I noticed that there is not a updater-script in the zip after it finished,
isnt that needed? are the zips flashable with CMR 3.0> or edified?
On Fri, Aug 26, 2011 at 12:37 AM, <
android-customization-autotool@googlecode.com> wrote:
Original comment by jgrimber...@gmail.com
on 26 Aug 2011 at 2:49
It won't generate one if you have a META-INF folder that already exists in your
folder. If you didn't have a META-INF folder when you started, the script is
located in:
META-INF/com/google/android
Did you get the prompt to view the script? I would delete the META-INF folder
if it exists and try again. Off to work...
Original comment by lange.co...@gmail.com
on 26 Aug 2011 at 2:59
Made a new .exe. Its on the downloads page.
Original comment by lange.co...@gmail.com
on 27 Aug 2011 at 1:09
It works now, signs the zip fine!
Is there any way to make it so the zip is flashable in CM Recovery 3.0+, edify?
Original comment by jgrimber...@gmail.com
on 27 Aug 2011 at 2:39
Clockwork Mod right? You should just be able to find it on your sdcard and
select it. Not sure about edify, only used Clockwork.
Original comment by lange.co...@gmail.com
on 27 Aug 2011 at 2:43
Original issue reported on code.google.com by
jgrimber...@gmail.com
on 26 Aug 2011 at 1:37