• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 root {
2    device_info {
3        match_attr = "hdf_manager";
4        template host {
5            hostName = "";
6            priority = 100;
7            uid = "";
8            gid = "";
9            caps = [""];
10            template device {
11                template deviceNode {
12                    policy = 0;
13                    priority = 100;
14                    preload = 0;
15                    permission = 0664;
16                    moduleName = "";
17                    serviceName = "";
18                    deviceMatchAttr = "";
19                }
20            }
21        }
22        platform :: host {
23            hostName = "sample_host";
24            priority = 50;
25            caps = ["DAC_OVERRIDE", "DAC_READ_SEARCH"];
26            sample_device :: device {
27                device0 :: deviceNode {
28                    policy = 2;
29                    priority = 100;
30                    preload = 2;
31                    moduleName = "libsample_driver.z.so";
32                    serviceName = "sample_driver_service";
33                }
34            }
35        }
36        bluetooth :: host {
37            hostName = "blue_host";
38            priority = 50;
39            uid = "root";
40            gid = "system";
41            caps = ["DAC_OVERRIDE", "DAC_READ_SEARCH"];
42            bluetooth_device :: device {
43                device0 :: deviceNode {
44                    policy = 2;
45                    priority = 100;
46                    moduleName = "libbluetooth_hdi_server.z.so";
47                    serviceName = "BtHciService";
48                }
49            }
50        }
51        audio_bluetooth :: host {
52            hostName = "a2dp_host";
53            priority = 50;
54            uid = "root";
55            gid = "system";
56            caps = ["DAC_OVERRIDE", "DAC_READ_SEARCH"];
57            bluetooth_device :: device {
58                device0 :: deviceNode {
59                    policy = 2;
60                    priority = 100;
61                    preload = 2;
62                    moduleName = "libaudio_bluetooth_hdi_adapter_server.z.so";
63                    serviceName = "audio_bluetooth_hdi_service";
64                }
65            }
66        }
67        usb :: host {
68            hostName = "usb_host";
69            priority = 50;
70            caps = ["DAC_OVERRIDE", "DAC_READ_SEARCH"];
71            usb_device :: device {
72                device0 :: deviceNode {
73                    policy = 2;
74                    priority = 100;
75                    moduleName = "libusbd.z.so";
76                    serviceName = "usbd";
77                }
78            }
79        }
80        usbfnMaster :: host {
81            hostName = "usbfnMaster_host";
82            priority = 50;
83            caps = ["DAC_OVERRIDE", "DAC_READ_SEARCH"];
84            usb_pnp_manager_device :: device {
85                device0 :: deviceNode {
86                    policy = 2;
87                    priority = 70;
88                    moduleName = "libusb_pnp_manager.z.so";
89                    serviceName = "usb_pnp_manager";
90                }
91            }
92            usbfn_device :: device {
93                device0 :: deviceNode {
94                    policy = 2;
95                    priority = 80;
96                    moduleName = "libusbfn_master.z.so";
97                    serviceName = "usbfn_master";
98                    deviceMatchAttr = "usbfn_master_driver";
99                }
100            }
101            ecm_device :: device {
102                device0 :: deviceNode {
103                    policy = 2;
104                    priority = 81;
105                    moduleName = "libusbfn_cdcecm.z.so";
106                    serviceName = "usbfn_cdcecm";
107                    deviceMatchAttr = "usbfn_cdcecm_driver";
108                }
109            }
110            acm_device :: device {
111                device0 :: deviceNode {
112                    policy = 2;
113                    priority = 100;
114                    moduleName = "libusbfn_cdcacm.z.so";
115                    serviceName = "usbfn_cdcacm";
116                    deviceMatchAttr = "usbfn_cdcacm_driver";
117                }
118            }
119        }
120        power :: host {
121            hostName = "power_host";
122            priority = 50;
123            uid = "system";
124            gid = "system";
125            caps = ["DAC_OVERRIDE", "DAC_READ_SEARCH"];
126            power_device :: device {
127                device0 :: deviceNode {
128                    policy = 2;
129                    priority = 100;
130                    moduleName = "libpower_driver.z.so";
131                    serviceName = "power_interface_service";
132                }
133            }
134            battery_device :: device {
135                device0 :: deviceNode {
136                    policy = 2;
137                    priority = 100;
138                    moduleName = "libbattery_driver.z.so";
139                    serviceName = "battery_interface_service";
140                }
141            }
142            thermal_device :: device {
143                device0 :: deviceNode {
144                    policy = 2;
145                    priority = 100;
146                    moduleName = "libthermal_driver.z.so";
147                    serviceName = "thermal_interface_service";
148                }
149            }
150        }
151        wlan :: host {
152            hostName = "wifi_host";
153            priority = 50;
154            caps = ["DAC_OVERRIDE", "DAC_READ_SEARCH"];
155            wifi_device :: device {
156                device0 :: deviceNode {
157                    policy = 2;
158                    priority = 100;
159                    moduleName = "libwifi_hdi_device.z.so";
160                    serviceName = "wlan_hal_service";
161                }
162            }
163        }
164		wifi :: host {
165            hostName = "wifi_c_host";
166            priority = 50;
167            caps = ["DAC_OVERRIDE", "DAC_READ_SEARCH"];
168            wifi_c_device :: device {
169                device0 :: deviceNode {
170                    policy = 2;
171                    priority = 100;
172                    moduleName = "libwifi_hdi_c_device.z.so";
173                    serviceName = "wlan_hal_c_service";
174                }
175            }
176        }
177        audio :: host {
178            hostName = "audio_hdi_server_host";
179            priority = 50;
180            caps = ["DAC_OVERRIDE", "DAC_READ_SEARCH"];
181            audio_device :: device {
182                device0 :: deviceNode {
183                    policy = 2;
184                    priority = 100;
185                    moduleName = "libhdi_audio_server.z.so";
186                    serviceName = "audio_hdi_service";
187                }
188            }
189        }
190        hdi_server :: host {
191            hostName = "camera_mpp_host";
192            priority = 50;
193            uid = "root";
194            gid = "system";
195            caps = ["DAC_OVERRIDE", "DAC_READ_SEARCH"];
196            camera_device :: device {
197                 device0 :: deviceNode {
198                     policy = 2;
199                     priority = 100;
200                     moduleName = "libcamera_hdi_impl.z.so";
201                     serviceName = "camera_service";
202                 }
203             }
204
205	    display_device :: device {
206                device0 :: deviceNode {
207                    policy = 2;
208                    priority = 120;
209                    moduleName = "libhdi_video_layer_service.z.so";
210                    serviceName = "hdi_video_layer_service";
211                }
212            }
213        }
214
215        input_hal :: host {
216            hostName = "input_user_host";
217            priority = 50;
218            caps = ["DAC_OVERRIDE", "DAC_READ_SEARCH"];
219            input_device :: device {
220                device0 :: deviceNode {
221                    policy = 2;
222                    priority = 150;
223                    moduleName = "libhdf_input_hotplug.z.so";
224                    serviceName = "input_service";
225                }
226            }
227        }
228
229        display_gralloc :: host {
230            hostName = "display_gralloc_host";
231            priority = 40;
232            caps = ["DAC_OVERRIDE", "DAC_READ_SEARCH"];
233            input_device :: device {
234                device0 :: deviceNode {
235                    policy = 2;
236                    priority = 160;
237                    moduleName = "libhdi_display_gralloc_stub.z.so";
238                    serviceName = "hdi_display_gralloc_service";
239                }
240            }
241        }
242
243        codec :: host {
244            hostName = "codec_host";
245            priority = 50;
246            caps = ["DAC_OVERRIDE", "DAC_READ_SEARCH"];
247            codec_device :: device {
248                device0 :: deviceNode {
249                    policy = 2;
250                    priority = 200;
251                    moduleName = "libcodec_server.z.so";
252                    serviceName = "codec_hdi_service";
253                }
254            }
255        }
256        riladapter :: host {
257            hostName = "riladapter_host";
258            priority = 50;
259            caps = ["DAC_OVERRIDE", "DAC_READ_SEARCH"];
260            riladapter_device :: device {
261                device0 :: deviceNode {
262                    policy = 2;
263                    priority = 100;
264                    moduleName = "libhril_hdf.z.so";
265                    serviceName = "cellular_radio1";
266                }
267            }
268        }
269        sensor_dal :: host {
270            hostName = "sensor_dal_host";
271            priority = 50;
272            caps = ["DAC_OVERRIDE", "DAC_READ_SEARCH"];
273            sensor_dal_device :: device {
274                device0 :: deviceNode {
275                    policy = 2;
276                    priority = 100;
277                    moduleName = "libsensor_driver.z.so";
278                    serviceName = "sensor_interface_service";
279                }
280            }
281        }
282        vibrator_dal :: host {
283            hostName = "vibrator_dal_host";
284            priority = 50;
285            caps = ["DAC_OVERRIDE", "DAC_READ_SEARCH"];
286            vibrator_dal_device :: device {
287                device0 :: deviceNode {
288                    policy = 2;
289                    priority = 100;
290                    moduleName = "libvibrator_driver.z.so";
291                    serviceName = "vibrator_interface_service";
292                }
293            }
294        }
295        light_dal :: host {
296            hostName = "light_dal_host";
297            priority = 50;
298            caps = ["DAC_OVERRIDE", "DAC_READ_SEARCH"];
299            light_dal_device :: device {
300                device0 :: deviceNode {
301                    policy = 2;
302                    priority = 100;
303                    moduleName = "liblight_driver.z.so";
304                    serviceName = "light_interface_service";
305                }
306            }
307        }
308    }
309}
310