>>242
(詳細説明に付き、長文です)
何故、地獄と言うかとの理由は、
2のWそんなtype知らんWエラーについて下記の2つの方法を試すも正しい修正方法がわからないからです。

参考までにエラー発生の順番は
app_domain(domain)
rfs_access.te
location_app.te
isolated_app.te
app_neverallows.te
domain.te
ですね。

app_domainはマクロで、本体のコードは
te_macros というマクロファイル中の
neverallow { appdomain -shell -$1 } $1:file no_rw_file_perms;
でエラー発生。
実際には
device/qcom/sepolicy-legacy/ssg/ssg_app.te の34行目の
app_domain(ssg_app)
がエラーと出ますが
app_domain($1)
として考えて下さい。