android - issue with permission in /system/bin files after updating the images built with security keys -
i built android secuirity keys taking reference below link:
http://www.kandroid.org/online-pdk/guide/release_keys.html
i got signed-img.zip. updated zip using fatboot. after rebooting getting errors in debug tool:
init: cannot execve('/system/bin/servicemanager'): permission denied init: cannot execve('/system/bin/mediaserver'): permission denied init: cannot execve('/system/bin/surfaceflinger'): permission denied init: cannot execve('/system/bin/dbus-daemon'): permission denied init: cannot execve('/system/bin/keystore'): permission denied
like files in system/bin getting permissions issue.
i debugged issue stage. found command:
make -j4 product-<product_name>-user dist
the command above creates file under out/dist called -target_files.zip. file need pass sign_target_files_apks script.
when extract zip file there system folder contain system image data. files under /bin didnt have executable permision. executable permission getting missed when copying files normal android system out folder target system folder using command acp in function product-copy-files in makefile.
can how fix file permission issue.
thanks, balakrishna
i know post old i'm posting reply in hope may else.
you'll see above errors if file system read only. needs read/write. encountered problem hard drive android mounting read because corrupt. puzzled since hard drive had worked in past , took me while figure out had gone wrong.
in case reformatted hard drive partitions , reinstalled android , worked again.
Comments
Post a Comment