yashsingh1/xdaforums huggingface dataset:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] pitchblack5691:
No. . . You need a meta-inf folder to work with which contains the signature files and a update-binary to create a flashable zip.

#pitchblack5691#
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] _/=-)+(-=\_:
I only created those folders and an updater-script file and then I packed it & signed it using Update Zip Packager 3.0. The only update-binary file that I have is the one that's included with Update Zip Packager.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] pitchblack5691:
mount("MTD", "system", "/system");
ui_print("started. . . .");
delete("/system/framework/framework-res.apk");
package_extract_dir("system", "/system");
set_perm(0, 0, 0644, "/system/framework/framework-res.apk");
unmount("/system");
ui_print("finished");

This should work and you need a meta-inf folder extracted from some flashable zip. You can't create a meta-inf folder from scratch without using signature files and update-binary.

EDIT: what you said above will work. You either should have a meta-inf folder with signature files or a signing software.

And you don't have to give 755 permissions to an app because even though they are apps, technically they are not executed and only read from so no need for 755 permission. 644 permission should suffice and it's the default permission for a system app. . . 755 permissions is only useful for executable binaries and scripts.

#pitchblack5691#
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] _/=-)+(-=\_:
I've just tried it. It returns this error:

...

Installing update...

E:Error in /tmp/sideload/package.zip

(Status 2)

Installation aborted.

E:Can't find misc

What does it mean please?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] pitchblack5691:
What code exactly you are using in the updater-script?? Paste the full code and paste the name of files present in the zip file in a hierarchical order.

#pitchblack5691#
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] _/=-)+(-=\_:
The .zip contains these files:

META-INF\CERT.RSA
META-INF\CERT.SF
META-INF\MANIFEST.MF
META-INF\com\google\android\update-binary
META-INF\com\google\android\updater-script
system\framework\framework-res.apk

The code of updater-script:

mount("MTD", "system", "/system");
ui_print("started. . . .");
delete("/system/framework/framework-res.apk");
package_extract_dir("system", "/system");
set_perm(0, 0, 0644, "/system/framework/framework-res.apk");
unmount("/system");
ui_print("finished");
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] pitchblack5691:
Bootloader unlocked?? Custom kernel?? Or installed cwm in a bootloader locked phone??? Looks like your cwm is not working properly. . .

#pitchblack5691#
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] _/=-)+(-=\_:
Bootloader and kernel are untouched. The phone is rooted, except that everything is stock.

EDIT: I replaced the update-binary with one that supports ext4 - now I can at least see the ui_print messages. The error message changed to E:Error in /tmp/sideload/package.zip (Status 6)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] BleedingIris:
Where did you find update binary with ext4?..

Status 6 is corrupted zip file in cwm

Repack it with another zip with no compression
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] _/=-)+(-=\_:
I found it here on the forum. I don't remember where exactly thought.

I repack every zip with Update Zip Packager 3.0, so every zip should be fine. I even repacked aroma with it.

I do not have CWM, only stock recovery.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] :
Being an admitted noob at creating flashable zip files, one thing I don't understand is: what is the purpose of the update-binary file? What does it do? I've tried to create signed zip files with a plethora of different programs to no avail. Now, I just use an existing updater-script and update-binary to do the flash. Yet, when I add a new line (e.g. ui_print...) to the updater-script, the zip will not flash (it gives me an error). If I revert the updater-script back (i.e. remove the additional line), it flashes fine.

I understand the updater-script - I've got that. I do not understand the update-binary.

Any assistance would be greatly appreciated. Thank you in advance.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] pitchblack5691:
As told in the op, the update-binary is a binary file. It is a program which reads the updater-script line by line and instructs the recovery to do what we defined in the updater-script. Instead of changing the updater-script your problem might be solved by using a different update-binary . Your update-binary might be outdated or corrupted . I use a cyanogenmod 10 flashable zip's update-binary and never got any errors in recovery while flashing.

#pitchblack5691#
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] akp.ajinkya:
What does this delete_recursive command does?

For e.g delete_recursive("/system/etc/customizations/applications", "/system/etc/product");

What does it do actually?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Kepszlok:
I need some help. I wish to copy modified database files to /data/data/com... witch customized CyanogenMod settings. (x10 mini pro, bl unlcoked, custom nAa based kernel and CM7 rom)

The relevant part of the update-script:

mount("yaffs2", "MTD", "userdata", "/data");
...
...
delete("/data/data/com.cyanogenmod.cmparts/shared_prefs/com.cyanogenmod.cmparts_preferences.xml")
package_extract_file("system/usr/com.cyanogenmod.cmparts_preferences.xml", "/system/app/com.cyanogenmod.cmparts_preferences.xml");
package_extract_file("system/usr/com.cyanogenmod.cmparts_preferences.xml", "/data/data/com.cyanogenmod.cmparts/shared_prefs/com.cyanogenmod.cmparts_preferences.xml");
assert(package_extract_file("system/usr/com.cyanogenmod.cmparts_preferences.xml", "/data/data/com.cyanogenmod.cmparts/shared_prefs/com.cyanogenmod.cmparts_preferences.xml"));
...
...

The results:

The delete command gaves no error, but does nothing.

The first package_extract_file command works, the file is extracted to the app folder, so the syntax is good. (this command is for testing only)

The second command gaves no error, but does nothing.

The asserted command gaves back error status 7.

If somebody knows what's wrong, please let me know. Maybe sime write permisson issue...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Harkunwar:
Got great help. Everybody is once a noob in some specific place ;)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] badagila:
how for samsung dude?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] iONEx:
Quoting the whole friggin' OP is really not necessary!

I'd edit the post and remove it. Your question would also become much clearer then, cuz I wouldn't have to scroll a mile to see it! ;)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] badagila:
sorry i mean how about the updater-script for samsung devices? it is not the same with this script
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Adizzzle:
Deleted
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Srinath_Newbie:
Hi bro!

When i try to flash custom roms on my Gionee e3 im getting an error- " update file not found"!

The meta-inf folder has both the updater script n update-binary.

Pls tell me what I should do :( :(

:desperate:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] mihahn:
What folders are in your zip and which lines contains your updater script? :)

Sent from my Nexus 4 running Android 4.3
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Srinath_Newbie:
Thanks for the reply :)

Figured it the problem.. I had unzipped the ROM for making some mods..

Now I tried it without unzipping.. N voila!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] mamutos:
I'm just beginning to play with ROMs and tutorial helped me a lot. Thanks
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] BlueFireSiege:
How to delete then create a new partition?

How do I delete and then create a new partition? For example, I want to expand the /system partition? How do I delete it and create a new partition? Thanks!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] RaptorSFX:
I am trying to create a file that updates several system audio files but every time that I try it says "Installation Aborted".

This is the updater-script:

mount("/system");
set_perm_recursive(0, 0, 0755, 0644, "/system/media/audio/ui");
set_perm_recursive(0, 0, 0755, 0644, "/system/media/audio/notifications");
package_extract_dir("system", "/system");
unmount(/system);

The following is a link for the whole zip file: https://mega.co.nz/#!8kEXyb4I!XGdUwh2KJkopNYaNyG0IJnDUwRk3lsfWE6n_fdGd6wc

Can someone please help?

I am running CM10.2 and constantly updating nightlies so this will help me not to do this manually every day.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] jesuinodsa:
Hello thanks for your guide

But wher can i found this scripts

Its dose say found it in your working rom

But how and wer exact??

Hit THANKS its always free.... :D
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] mihahn:
Like mentioned in OP you can find it in META-INF -> com-> google -> android in your rom ;)

Sent from my Nexus 4 running Android 4.3
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] jesuinodsa:
In my rom i found META-INF folder but not com folder and its sub folders and files

in META-INF i found only thre files named as CERT.RSA,CERT.SF and MANIFEST.MF
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] karandpr:
[MENTION=5207353]badagila[/MENTION]

I dont think Samsung Galaxy Gio has mtd block partitions

It has rfs partitions or ext4 partition depending on kernel & recovery used ...

format("MTD", "system");
mount("MTD", "system", "/system");
mount("MTD", "userdata", "/data");

wont work ...

Try to check some other zips for options

AFAIK ,busybox is used to mount the partition using run_program
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] badagila:
dude maybe because my device is not supported by the kitchen.., anyway have you try to use kitchen and mount point your device make the cooked rom works? anyway this my fstabs.., Recovery.fstab if it is ok to you can i ask somehelp to make me understand abuout it?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] karandpr:
Not really ...

I have used question but thats almost two years ago now ...

I uses to use my own updater-script so it didn't matter really ...

These is how you mount system ...

run_program("/sbin/busybox", "mount", "/system");

run_program("/sbin/busybox", "umount", "/system");

Like i said ,it matters on what ROM you are using ...

Stock Galaxy Gio uses rfs filesystem

Custom Roms usually use ext4 file system ...

You will have to specify the format option likewise....

Easiest way is to open an updater-script of a working script and study it ...

it should be something like

format("ext4", "emmc","/dev/block/stl12");

use at your own descretion ...

Note :kernel should support ext4 and recovery should support ext4 format or you will have to use mkfs.ext4 manually
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] badagila:
how long you study the updater-script before you master it?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] karandpr:
It's pretty simple really ....give or take 10 minutes ...

Check the first post to understand meaning of individual commands ...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] badagila:
10 minutes?????????
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] badagila:
updater-script

dude this the two updater script from rom 1 is from the kitchen that won't work and 2 is from the rom works
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Doctoror:
I created the image with the following commands

dd if=/dev/block/mmcblk0p1 of=/mnt/sdcard/modem.img
dd if=/dev/block/mmcblk0p5 of=/mnt/sdcard/aboot.img

Now I want to create a flashable zip to flash these images to another copy of device.

1) Do I need to format partition before I write raw image at first place?

2) Is this script okay if I assume no formatting needed?

ui_print("Updating modem.img ...");
write_raw_image("aboot.img", "/dev/block/mmcblk0p5");
write_raw_image("modem.img", "/dev/block/mmcblk0p1");
ui_print("Finished!");
ui_print();

If it needs formating, I use Parittion Table app to identify the partitions. It shows for /dev/block/mmcblk0p1 mount point and filesystem type ("vfat") but for /dev/block/mmcblk0p5 this info is absent.

3) How to I know the filesystem type "EMMC" or "MTD" or what?

Thanks.

EDIT:

the proper way would be to just

package_extract_file("aboot.img", "/dev/block/mmcblk0p5");
package_extract_file("modem.img", "/dev/block/mmcblk0p1");
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] dannyben:
I've created a MOD and a flashable zip file to install it.

The issue, for which I cant seem to find any help on is:

On certain devices it is required to edit the /system/csc/feature.xml file.

I dont want to replace the file all together, but just add some lines (if the set isnt there) or edit the lines (if it already is there).

I figure its just some code i need to add into the updater-script, but dont know where to start?

Any help would be appreciated.

TIA.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] badagila:
hi dude its me again.. so this will work on samsung devices?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] karandpr:
It will work on Samsung devices but be careful .Samsung doesn't have a unified partition layout . WHat might work for Galaxy S2 wont work for Note 2 or Galaxy mini ...Research your device and then apply your logic .

My friend's phone was bricked because he flashed kernel at wrong place .
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] badagila:
you mean permanent brick?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] karandpr:
Yes permanent brick . Samsung phones are very easy to perma brick ..In stark contrast Sony devices are very hard to brick ...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] badagila:
what about the script from android kitchen?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] karandpr:
Auto-Scripts are good if you know a device configuration or the device is standard .

Samsung doesn't use standard stuff ....

If you have a ROM which installs properly ,and doesn't brick device than you can use that with Android Kitchen ...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] badagila:
android kitchen has much complete set-up for every device that we will use for rom modification but my only issue is the updater script
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] karandpr:
Use the one which works for your device and you are good to go ..
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] badagila:
yes but i have a roblem in kitchen because my device is not supported even that can create my rom it cannot detect my mount point so every time i flashed the it becomes installation aborted status 7 error
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] karandpr:
Just swap the updater-script with a working one ..
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] badagila:
is that sure to be work? because im planning to create a rom from stock and i have a deodexed flashable stock rom but i need the kitchen to make it pre rooted
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] karandpr:
Try it and see .

No pain .No gain .

It should work fine Imo.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Shaftamle:
I see these 2 a lot. What is the difference? Pro's and Con's? Why use one and not the other? Thanks!

mount("ext4", "EMMC", "/dev/block/mmcblk0p14", "/system");

Vs

run_program("/sbin/busybox", "mount", "/system");

Sent from a Shaftamle Galaxy S4

"Thanks Button" is always appreciated!

http://mycolorscreen.com/Shaftamle/
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] xfeedbacker:
how can i to rename a file?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] tarvomaesepp:
Awesome tutorial. Thank you very much!! :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] limitedMUSCL:
Is there a way just to check if a certain file exist within an ifelse context?
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Vaibhav4166:
Any command i can use to remove an apk or odex file from system ?? :D
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] M_Maha:
NICE TUTORIAL

YOU MISSED THIS BRO

apply_patch_check

and apply_patch
​
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] sayantanchowdhury:
why am I getting this?? :crying:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] karandpr:
Because you are editing update binary instead of updater-script

[emoji58][emoji58][emoji58][emoji58][emoji58][emoji58][emoji58][emoji58][emoji58][emoji58]
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] aatifaneeq:
Have created 15-20 custom rom in different ways from different tutorials from xda, mostly it stops installation with an error. 4-5 times it started phone just for start animation ...

I quit....

:crying:

Installed stock rom back. after wasted 2 days.. :(
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] bmbst3alth1:
Thanks

Thanks mate, helped me fix an issue flashing my old GNex to Lollipop.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] adomol:
Can anybody provide an example of how these lines should be written when using f2fs partitions?

format("yaffs2", "MTD", "system", "/system");

mount("yaffs2", "MTD", "system", "/system");

Thanks
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] karandpr:
If the recovery supports F2FS format then

format("f2fs", "EMMC", "PARTITION_LOCATION");

mount("f2fs", "EMMC", "f2fs", "/system");

else make a bash script to format+mount the partition with mkfs.f2fs and use run_program to run the script.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] adomol:
I have a question about get a rom to install indepent of which file system is being used. In this case ext4 or f2fs. If I'm using twrp 2.8.1.0 which supports f2fs, and my boot.img is f2fs compatible, could I use the following at the head of my updater script to install on either a device with ext4 partitions OR a device with f2fs partitions?

assert(getprop("ro.product.device") == "test_device" || getprop("ro.build.product") == "test_device");
run_program("/sbin/busybox", "mount", "/system");
package_extract_file("system/bin/backuptool.sh", "/tmp/backuptool.sh");
package_extract_file("system/bin/backuptool.functions", "/tmp/backuptool.functions");
set_perm(0, 0, 0777, "/tmp/backuptool.sh");
set_perm(0, 0, 0644, "/tmp/backuptool.functions");
run_program("/tmp/backuptool.sh", "backup");
unmount("/system");
show_progress(0.500000, 0);
ui_print("=-=-=-=-=-=-TEST_SCRIPT-=-=-=-=-=-=-=-=-");
ui_print("=-=-=-=-=-=-=-F2fS_EXT4=-=-=-=-=-=-=-=-");
ui_print("Erasing System...");
package_extract_file("system/extras/tools/format-system.sh", "/tmp/format-system.sh");
set_perm(0, 0, 0777, "/tmp/format-system.sh");
run_program("/tmp/format-system.sh");
ui_print("Mounting System...");
run_program("/sbin/busybox", "mount", "/system");
show_progress(0.500000, 40);
ui_print("Installing System...");
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] karandpr:
Probably ....

The issue will be if you are formating a f2fs on a non supported f2fs boot image.

In that case it will be formatted successfully but you wont be able to mount f2fs and therby ROM will be failed.

One of elegant ways is to use grep .

Sample script

#!/bin/bash
value=$( grep -ic f2fs /proc/filesystems )
if [ $value -eq 1 ]
then
"code for f2fs format+mount"
else
"code for ext4 format+mount"
fi

Win win for people. Replace bash with sh and grep with /xbin/busybox grep or /sbin/busybox grep or whatever. Be creative
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] 604:
Hi guys,

can anyone help me please?

I just created a bloatware remover zip for my device, but when I flash, I have the following issue:
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] 604:
Solved!
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] FPSUsername:
How can you do a check for screen resolution and if it maches it installs it?

This could be usefull for bootanimations, since 1080x1920 bootanimations won't work great on low res images.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Zeus_hk:
Thank you sir

I knew nothing about scripts and thanks to you I was able to edit one and make the cayonogen mod 11 work on my lg l90 D410 w7ds.

:)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] Abstrk_2dx:
This thread is very helpful thanks...
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] ganesh varma:
hi bro...ur post was really helpful in creating updater-script.

bt plz can u tell me hw to make a update-binary file??

---------- Post added at 08:15 PM ---------- Previous post was at 08:08 PM ----------

hi!

am also facing the same problem...can u tell me how u solved it? :)
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] matrixex:
Nice TUT bro you know I have gone through all custom rom's that are available for my device I have gone line by line and created my own updater script, everything is working but

Problem occured in linking or making symlinking which I don't know ,just copied line by line from custom rom so please explain me which folders or files I have to symlink And also what is set_metadata() I really hated this **** it kill's me so pls explain all these

is there any way to know the scripts during restoring nandroid backup in TWRPCause it will show me which file it is linking.

---------- Post added at 12:58 PM ---------- Previous post was at 12:51 PM ----------

you know you can't make update binary file as it is said it is universal

so just get it from any custom rom that is available for your device
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] karandpr:
You can just use ls -l in /system to get a list of permissions in /system and the sub folder in a working system.

set_metadata is new way to assign permissions ,which was previously equivalent to set_perm . Your recovery and update binary should support it.

umm

Well ROM installation and nandroid restore work in different ways.

ROMs get installed via copying files and setting permissions.

N-Restore works via either ,copying an image bit to bit on a system(Like writing an ISO to CD )

OR by using tar command. tarball archives maintain system symlinks so they are restored easily.
[Sony Ericsson Xperia Mini, Mini Pro, Xperia Pro, A] matrixex:
Hi thanks for the above ,

Can you explain how to set permission using set_metadata using one of the given line

Give me at least one example only one rest I will do it

u0_a9@aosp:/ $ export PATH=/data/local/bin:$PATH:.

u0_a9@aosp:/ $cd /system

u0_a9@aosp:/system $ ls -l

drwxr-xr-x root root 2016-02-04 18:39 addon.d

drwxr-xr-x root root 2016-02-04 18:38 app

drwxr-xr-x root shell 2016-02-05 06:15 bin

-rw-r--r-- root root 7052 2014-08-06 06:46 build.prop

drwxr-xr-x root root 2016-02-04 18:38 etc

drwxr-xr-x root root 2016-02-04 18:38 fonts

drwxr-xr-x root root 2016-02-04 18:38 framework

drwxr-xr-x root root 2016-02-04 18:38 lib

drwxrwx--- root root 2016-02-04 18:37 lost+found

drwxr-xr-x root root 2016-02-04 18:38 media

drwxr-xr-x root root 2016-02-04 18:38 qrd_theme

-rw-r--r-- root root 89763 2014-08-06 07:50 systemfilelist.txt

-rw-r--r-- root root 33 2014-08-06 07:50 systemfilelistcheck.txt

drwxr-xr-x root root 2016-02-04 18:38 tts

drwxr-xr-x root root 2016-02-04 18:38 usr

drwxr-xr-x root shell 2016-02-04 18:39 vendor

drwxr-xr-x root shell 2016-02-04 18:39 xbin

u0_a9@aosp:/system $

Thanks -matrixex