Home > Mobile >  Init: Service awdebug does not have a SELinux domain defined.
Init: Service awdebug does not have a SELinux domain defined.

Time:09-25

Due to access problems, in the init. Rc add script, when a particular value for a property, perform a service
Init. Rc related content in the following
 
Service awdebug/system/bin/awdebug. Sh
The class main
The user root
Group root
Oneshot

On the property: sys. Debuggable=1
Start awdebug 1

On the property: sys. Debuggable=0
Start awdebug 0


When sys. Debuggable to 1 executive/system/bin/awdebug. Sh

After su to root test script, use the command start awdebug, will quote
 init: Service awdebug does not have a SELinux domain defined. 


To solve this problem, changed the system/sepolicy file_contexts and service. The te, the relevant modification for
 
The diff - git a/b/file_contexts file_contexts
The index of 085 a57b.. B270f7c 100644
- a/file_contexts
+ + + b/file_contexts
@ @ + 218-218, 6, 7 @ @
/system/bin/idmap u: object_r: idmap_exec: s0
/system/bin/update_engine u: object_r: update_engine_exec: s0
/system/bin/bspatch u: object_r: update_engine_exec: s0
+/system/bin/awdebug. Sh -- -- u: object_r: shell_exec: s0

# # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Vendor files
Diff -- git a/service. Te b/service. Te
The index 0 fce743.. 1 a93efe 100644
- a/service. Te
+ + + b/service. Te
@ @ - 19, 6 +, 7 @ @ type radio_service, service_manager_type;
Type surfaceflinger_service service_manager_type;
Type system_app_service service_manager_type;
Type update_engine_service service_manager_type;
+ type awdebug_service service_manager_type;

Added relevant tee documents, the following
 
Type awdebug domain;
Type awdebug_exec, exec_type file_type;
Permissive awdebug;
Init_daemon_domain (awdebug)

But will still be reported no domain definition

See a lot of relevant information, but it's still unresolved
About this problem to get the following results:
1.
to solve the problem2. The debug method of
3. What data see

The great spirit guide, thank you very much

The information I have ever seen:
1. https://blog.csdn.net/innost/article/details/19299937
2. https://blog.csdn.net/xzx208/article/details/85375403
3. https://blog.csdn.net/l460133921/article/details/72891678

CodePudding user response:

His top!!!!!!
  • Related