Last active
April 27, 2017 13:48
-
-
Save fi01/7092643 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/system/core/include/private/android_filesystem_config.h b/system/core/include/private/android_filesystem_config.h | |
index 68b5dbb..1d4f28d 100644 | |
--- a/system/core/include/private/android_filesystem_config.h | |
+++ b/system/core/include/private/android_filesystem_config.h | |
@@ -208,6 +208,7 @@ static struct fs_path_config android_dirs[] = { | |
{ 00755, AID_ROOT, AID_SHELL, "system/xbin" }, | |
{ 00755, AID_ROOT, AID_ROOT, "system/etc/ppp" }, | |
{ 00777, AID_ROOT, AID_ROOT, "sdcard" }, | |
+ { 00755, AID_ROOT, AID_SHELL, "vendor" }, | |
{ 00755, AID_ROOT, AID_ROOT, 0 }, | |
}; | |
@@ -267,6 +268,7 @@ static struct fs_path_config android_files[] = { | |
{ 00750, AID_ROOT, AID_SHELL, "sbin/fs_mgr" }, | |
{ 00640, AID_ROOT, AID_SHELL, "fstab.*" }, | |
{ 00755, AID_ROOT, AID_SHELL, "system/etc/init.d/*" }, | |
+ { 00755, AID_ROOT, AID_SHELL, "vendor/bin/*" }, | |
{ 00644, AID_ROOT, AID_ROOT, 0 }, | |
}; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
過去にCWM対応させた物はビルド用のデバイス定義を android_device_sharp_xxx というリポジトリで置いてあります。 | |
多分参考になると思います。 | |
recovery/root/init.recovery.qcom.rcが肝で、ここに機種依存の設定を書きます。 | |
これを仕上げるのが結構大変です。 | |
adbやCWMの動作に必要な、/systemにあるサービスのバイナリと使用するライブラリはproprietary-files.txtに書いてextract-files.shを実行してツリーに取り込みます。 | |
これらのファイルはramdiskの/vendor配下に展開されます。 | |
そのままでは/vendorに置いても動作しないので、extract-files.shは取り込みを行う際に/vendorで動く様にパッチします。 | |
また、/vendor/binに実行権限が付与されないのでadd_permission_for_vendor.patchを適用する必要があります。 | |
ここにあるkernelはブートイメージから抜いたカーネルにMIYABI等を解除した物です。 | |
カーネルはソースからビルドする様にしても良いでしょう。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment