Skip to content

Instantly share code, notes, and snippets.

@trevd
Last active August 29, 2015 14:02
Show Gist options
  • Save trevd/bee0a911f1b35b277e02 to your computer and use it in GitHub Desktop.
Save trevd/bee0a911f1b35b277e02 to your computer and use it in GitHub Desktop.
Permission to run
android@android:/vendor/rasppi/android/frameworks$ a l /
Total:4 - [0:sh]=shell [1:fv]=ls [2:fv]=-la [3:pa]=/
-rwxr-xr-x root root 165204 2014-06-14 10:05 Looper_test
dr-xr-xr-x root root 1970-01-01 00:00 acct
drwxrwxrwx root root 1970-01-01 00:00 bootloader
drwxrwx--x system cache 1970-01-01 00:00 cache
dr-x------ root root 1970-01-01 00:00 config
lrwxrwxrwx root root 1970-01-01 00:00 d -> /sys/kernel/debug
drwxrwx--x system system 1970-01-01 00:00 data
-rw-r--r-- system system 203 2014-06-14 09:42 default.prop
drwxr-xr-x root root 1970-01-01 00:00 dev
lrwxrwxrwx root root 1970-01-01 00:00 etc -> /system/etc
-rw-r--r-- system system 9713 2014-06-14 09:42 file_contexts
-rw-r--r-- system system 984 2014-06-14 09:42 fstab.bcm2708
-rwxrwxr-x system system 281924 2014-06-14 09:42 init
-rw-r--r-- system system 1403 2014-06-14 09:42 init.bcm2708.rc
-rw-r--r-- system system 6246 2014-06-14 09:42 init.cm.rc
-rw-r--r-- system system 956 2014-06-14 09:42 init.environ.rc
-rw-r--r-- system system 21625 2014-06-14 09:42 init.rc
-rw-r--r-- system system 2483 2014-06-14 09:42 init.recovery.bcm2708.rc
-rw-r--r-- system system 301 2014-06-14 09:42 init.superuser.rc
-rw-r--r-- system system 1795 2014-06-14 09:42 init.trace.rc
-rw-r--r-- system system 3915 2014-06-14 09:42 init.usb.rc
drwx------ system system 1970-01-01 00:00 lost+found
drwxrwxr-x root system 1970-01-01 00:00 mnt
dr-xr-xr-x root root 1970-01-01 00:00 proc
-rw-r--r-- system system 2161 2014-06-14 09:42 property_contexts
drwxrwxr-x system system 2014-06-14 09:42 sbin
lrwxrwxrwx root root 1970-01-01 00:00 sdcard -> /storage/sdcard
-rw-r--r-- system system 660 2014-06-14 09:42 seapp_contexts
-rw-r--r-- system system 93266 2014-06-14 09:42 sepolicy
drwxr-x--x root sdcard_r 1970-01-01 00:00 storage
dr-xr-xr-x root root 1970-01-01 00:00 sys
drwxr-xr-x system system 2014-06-14 07:52 system
-rw-r--r-- system system 338 2014-06-14 09:42 ueventd.bcm2708.rc
-rw-r--r-- system system 7275 2014-06-14 09:42 ueventd.rc
lrwxrwxrwx root root 1970-01-01 00:00 vendor -> /system/vendor
android@android:/vendor/rasppi/android/frameworks$ a l /
alias android-fix-permissions='find -maxdepth 1 -type f ! -executable -exec sudo chmod -v 644 {} \;'
In the root fs partition run android-fix-permissions, also system build.prop need to be 644'd aswell
/system:
-rw-r--r-- system system build.prop
/
-rw-r--r-- system system default.prop
-rw-r--r-- system system file_contexts
-rw-r--r-- system system fstab.bcm2708
-rwxrwxr-x system system init
-rw-r--r-- system system init.bcm2708.rc
-rw-r--r-- system system init.cm.rc
-rw-r--r-- system system init.environ.rc
-rw-r--r-- system system init.rc
-rw-r--r-- system system init.recovery.bcm2708.rc
-rw-r--r-- system system init.superuser.rc
-rw-r--r-- system system init.trace.rc
-rw-r--r-- system system init.usb.rc
-rw-r--r-- system system property_contexts
drwxrwxr-x system system sbin
-rw-r--r-- system system seapp_contexts
-rw-r--r-- system system sepolicy
-rw-r--r-- system system ueventd.bcm2708.rc
-rw-r--r-- system system ueventd.rc
sbin:
-rwxrwxr-x system system adbd
-rwxrwxr-x system system healthd
lrwxrwxrwx system system ueventd -> ../init
lrwxrwxrwx system system watchdogd -> ../init
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment