Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,810,194 Members 52,666 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Zipalign binary missing, help?

Tip us?
 
xxbgjhn159xx
Old
#1  
Member - OP
Thanks Meter 0
Posts: 45
Join Date: Oct 2011
Default [Q] Zipalign binary missing, help?

Ive been googling on the intranet machine :P for awhile now and cant find out how to get the binary for this or just zipalign my apks another way. I am using ROM toolbox pro.
 
Moon Shadow - NM
Old
#2  
Moon Shadow - NM's Avatar
Senior Member
Thanks Meter 494
Posts: 448
Join Date: Jul 2011
Location: Albuquerque

 
DONATE TO ME
Quote:
Originally Posted by xxbgjhn159xx View Post
Ive been googling on the intranet machine :P for awhile now and cant find out how to get the binary for this or just zipalign my apks another way. I am using ROM toolbox pro.

Download it and put it in /system/xbin. Then chmod it to 755. IF you need steps on how to do this, let me know.

http://dl.dropbox.com/u/34706306/zipalign
The Following 7 Users Say Thank You to Moon Shadow - NM For This Useful Post: [ Click to Expand ]
 
xxbgjhn159xx
Old
#3  
Member - OP
Thanks Meter 0
Posts: 45
Join Date: Oct 2011
Yea I do. Im not sure what chmod it to 755 means. I know how to dl it n put it in the /system/xbin. Anywhere in there Im guessing.
Will this run the whole thing? Or is this just the binary for it? Would I still use ROM Toolbox run zipalign? THANKS a lot Ive been trying to find a fix for awhile.
 
imchairmanm
Old
(Last edited by imchairmanm; 8th November 2011 at 03:14 PM.)
#4  
Member
Thanks Meter 27
Posts: 31
Join Date: Sep 2011
Quick explanation:

Open a terminal emulator, navigate to /system/xbin with the "cd" command, and type "chmod 755 whateverthefileis". That'll change the permissions. If you want an explanation of what you're actually doing, you can read below. It's not necessary if you're not interested though.

If you're curious:

I guess I'll attempt briefly explaining the chmod command and Linux (Unix, Android, etc) permission notation. What do you want the file's permissions to be? In Linux, a file has an owner (who is the most intimately tied to the file), a group (which allows you to assign fewer privileges than the owner, but more control than default) and other (which means anyone not specified by the previous 2 conditions). For each of these groups, you can assign read, write, and execute permissions. These are written as rwx triplets. The notation "rwx" means full read, write, and execute permissions to whatever category of user that triplet is referring to. If you want to deny one of those permissions, replace the letter by the "-" placeholder. So "r-x" would mean that category of users wouldn't have write permissions. Files have these permissions listed in rwx triplets for the owner first, then the group, then others and are lead by what will usually be an initial "-" placeholder. So a file with permissions listed as "-rwxrw-r--" has an initial "-" placeholder like usual, followed by full rwx permissions for the owner, read and write permissions for the group, and read permissions for everyone else. You can view the permissions of any file by opening a terminal emulator, navigating to the directory where it is located and typing "ls -l" which will list details about each file in the directory, including permissions.

The chmod command in the form that was mentioned above, condenses the triplet describing the permissions for each group into a single number. It does this by treating permissible operations in each triplet as a 1, and operations that are denied as a 0. So if the owner's permissions are described as "rw-", this would translate into "110". This number is then read as binary and converted to decimal. 110 in binary equals 6 in decimal. So what "chmod 755 whateverfile" means is change the permissions of whateverfile to allow the owner full rwx permissions, allow members of the group the file belongs to read and execute permissions. And allow everyone else read and execute permissions as well. So "755" means "111|101|101" if you expand those back to the binary. And if we replace each 1 with the number it is representing, it will look like "rwxr-xr-x".
The Following 5 Users Say Thank You to imchairmanm For This Useful Post: [ Click to Expand ]
 
Moon Shadow - NM
Old
#5  
Moon Shadow - NM's Avatar
Senior Member
Thanks Meter 494
Posts: 448
Join Date: Jul 2011
Location: Albuquerque

 
DONATE TO ME
Quote:
Originally Posted by imchairmanm View Post
Quick explanation:

Open a terminal emulator, navigate to /system/xbin with the "cd" command, and type "chmod 755 whateverthefileis". That'll change the permissions. If you want an explanation of what you're actually doing, you can read below. It's not necessary if you're not interested though.

I probably should check the threads I post assistance to a little more often. Thanks for responding. :)
The Following User Says Thank You to Moon Shadow - NM For This Useful Post: [ Click to Expand ]
 
xxbgjhn159xx
Old
#6  
Member - OP
Thanks Meter 0
Posts: 45
Join Date: Oct 2011
I cant put the file into my /system/xbin. It says error permission denied or something like that. I cant save it straight to there either.
 
imchairmanm
Old
#7  
Member
Thanks Meter 27
Posts: 31
Join Date: Sep 2011
Type "su" and then hit Enter. When the box comes up for allowing privileges, allow them. Now try again.

Sent from my DROID X2 using Tapatalk
The Following User Says Thank You to imchairmanm For This Useful Post: [ Click to Expand ]
 
xxbgjhn159xx
Old
#8  
Member - OP
Thanks Meter 0
Posts: 45
Join Date: Oct 2011
Hey everyone, I got this to work using ROM Toolbox Pro's root browser. Thanks for all the help!!!
 
fifty9dunes
Old
#9  
Junior Member
Thanks Meter 1
Posts: 25
Join Date: Apr 2011
how long did the script take? i'm already on about 30 minutes and am just curious if it'll be done before i leave the office @ 5.
 
Koraiem
Old
#10  
Junior Member
Thanks Meter 0
Posts: 12
Join Date: Dec 2011
Default works

Quote:
Originally Posted by Moon Shadow - NM View Post
Download it and put it in /system/xbin. Then chmod it to 755. IF you need steps on how to do this, let me know.

http://dl.dropbox.com/u/34706306/zipalign
Works! thanks..

Thread Tools
Display Modes