I am trying to connect an HL7648 to an imx8m running Android 9. I am using the latest RIL drivers. I have the modem connecting to the network, getting an ip address. About 1 sec later the modem disconnects.
Here is the logcat -b radio output. Any idea of what could be causing this?
I am running se linux in permissive mode. I am using the instructions from your RIL integration guide.
Here is the code I added to init.rc for the service. Also, the script is present in /vendor/bin
Blockquote
service sierra_config_ip /vendor/bin/init.config.ip
class main
user root
group radio cache inet misc dhcp
capabilities BLOCK_SUSPEND NET_ADMIN NET_RAW
disabled
oneshot
I am unable to used disabled. I tried to pass it to the kernel, but it does not work.
I am now trying to add the sepolicy file for the service, but I get an build error. The domain name is not a member of the allowed domains.
No need to regenerate ninja file
No need to regenerate ninja file
[ 25% 29/112] Install: out/target/product/evk_8mm/vendor/lib/libfslextractor.so
-rwxrwxr-x 1 cargt cargt 74100 Jul 13 14:32 out/target/product/evk_8mm/vendor/lib/libfslextractor.so
[ 26% 30/112] Install: out/target/product/evk_8mm/vendor/lib64/libfslextractor.so
-rwxrwxr-x 1 cargt cargt 68952 Jul 13 14:32 out/target/product/evk_8mm/vendor/lib64/libfslextractor.so
[ 27% 31/112] build out/target/product/evk_8mm/obj/ETC/sepolicy.recovery_intermediates/sepolicy
out/host/linux-x86/bin/checkpolicy: loading policy configuration from out/target/product/evk_8mm/obj/ETC/sepolicy.recovery_intermediates/sepolicy.recovery.conf
out/host/linux-x86/bin/checkpolicy: policy configuration loaded
out/host/linux-x86/bin/checkpolicy: writing binary representation (version 30) to out/target/product/evk_8mm/obj/ETC/sepolicy.recovery_intermediates/sepolicy.tmp
[ 29% 33/112] build out/target/product/evk_8mm/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows
FAILED: out/target/product/evk_8mm/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows
/bin/bash -c “(rm -f out/target/product/evk_8mm/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows ) && (ASAN_OPTIONS=detect_leaks=0 out/host/linux-x86/bin/checkpolicy -M -c 30 -o out/target/product/evk_8mm/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows out/target/product/evk_8mm/obj/ETC/sepolicy_neverallows_intermediates/policy.conf )”
libsepol.report_failure: neverallow on line 1004 of system/sepolicy/public/domain.te (or line 11248 of policy.conf) violated by allow sierra_config_ip toolbox_exec:file { execute execute_no_trans };
libsepol.report_failure: neverallow on line 1004 of system/sepolicy/public/domain.te (or line 11248 of policy.conf) violated by allow sierra_config_ip dhcp_exec:file { execute execute_no_trans };
libsepol.report_failure: neverallow on line 1004 of system/sepolicy/public/domain.te (or line 11248 of policy.conf) violated by allow sierra_config_ip shell_exec:file { execute execute_no_trans };
libsepol.report_failure: neverallow on line 871 of system/sepolicy/public/domain.te (or line 10997 of policy.conf) violated by allow sierra_config_ip net_data_file:dir { search };
libsepol.report_failure: neverallow on line 843 of system/sepolicy/public/domain.te (or line 10944 of policy.conf) violated by allow sierra_config_ip dhcp_data_file:file { create setattr lock map unlink rename open };
libsepol.report_failure: neverallow on line 843 of system/sepolicy/public/domain.te (or line 10944 of policy.conf) violated by allow sierra_config_ip net_data_file:file { open };
libsepol.check_assertions: 6 neverallow failures occurred
Error while expanding policy
out/host/linux-x86/bin/checkpolicy: loading policy configuration from out/target/product/evk_8mm/obj/ETC/sepolicy_neverallows_intermediates/policy.conf
Same error after updating the domain.te in /system/sepolicy/public/doman.te
Do you have an source of a successful build you can share?
FAILED: out/target/product/evk_8mm/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows
/bin/bash -c “(rm -f out/target/product/evk_8mm/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows ) && (ASAN_OPTIONS=detect_leaks=0 out/host/linux-x86/bin/checkpolicy -M -c 30 -o out/target/product/evk_8mm/obj/ETC/sepolicy_neverallows_intermediates/sepolicy_neverallows out/target/product/evk_8mm/obj/ETC/sepolicy_neverallows_intermediates/policy.conf )”
libsepol.report_failure: neverallow on line 998 of system/sepolicy/public/domain.te (or line 11233 of policy.conf) violated by allow sierra_config_ip toolbox_exec:file { execute execute_no_trans };
libsepol.report_failure: neverallow on line 998 of system/sepolicy/public/domain.te (or line 11233 of policy.conf) violated by allow sierra_config_ip dhcp_exec:file { execute execute_no_trans };
libsepol.report_failure: neverallow on line 998 of system/sepolicy/public/domain.te (or line 11233 of policy.conf) violated by allow sierra_config_ip shell_exec:file { execute execute_no_trans };
libsepol.report_failure: neverallow on line 866 of system/sepolicy/public/domain.te (or line 10986 of policy.conf) violated by allow sierra_config_ip net_data_file:dir { search };
libsepol.report_failure: neverallow on line 839 of system/sepolicy/public/domain.te (or line 10935 of policy.conf) violated by allow sierra_config_ip dhcp_data_file:file { create setattr lock map unlink rename open };
libsepol.report_failure: neverallow on line 839 of system/sepolicy/public/domain.te (or line 10935 of policy.conf) violated by allow sierra_config_ip net_data_file:file { open };
libsepol.check_assertions: 6 neverallow failures occurred
Error while expanding policy