我已经在函数open_driver中的ProcessStat.cpp中添加了日志。 我看到的是,每当我打开多个应用程序时,我都会得到相同的ID。 以下是我尝试打开一些应用程序时打印的日志。 有些应用程序返回fd = 44,而某些返回fd = 8。
为什么我看到同样的fd返回?
04-29 18:49:06.647 12651 12651 E ProcessState: => ProcessState.cpp => open_driver = /dev/binder
04-29 18:49:06.647 12651 12651 E ProcessState: => ProcessState.cpp => open_driver fd= 44
04-29 18:49:16.655 12741 12741 E ProcessState: => ProcessState.cpp => open_driver = /dev/binder
04-29 18:49:16.655 12741 12741 E ProcessState: => ProcessState.cpp => open_driver fd= 8
04-29 18:49:23.387 12813 12813 E ProcessState: => ProcessState.cpp => open_driver = /dev/binder
04-29 18:49:23.387 12813 12813 E ProcessState: => ProcessState.cpp => open_driver fd= 44
04-29 18:49:36.907 12874 12874 E ProcessState: => ProcessState.cpp => open_driver = /dev/binder
04-29 18:49:36.907 12874 12874 E ProcessState: => ProcessState.cpp => open_driver fd= 8
04-29 18:49:42.586 12947 12947 E ProcessState: => ProcessState.cpp => open_driver = /dev/binder
04-29 18:49:42.586 12947 12947 E ProcessState: => ProcessState.cpp => open_driver fd= 8
04-29 18:49:45.476 12981 12981 E ProcessState: => ProcessState.cpp => open_driver = /dev/binder
04-29 18:49:45.477 12981 12981 E ProcessState: => ProcessState.cpp => open_driver fd= 8
04-29 18:55:36.138 14287 14287 E ProcessState: => ProcessState.cpp => open_driver = /dev/binder
04-29 18:55:36.138 14287 14287 E ProcessState: => ProcessState.cpp => open_driver fd= 44
04-29 18:55:43.231 14376 14376 E ProcessState: => ProcessState.cpp => open_driver = /dev/binder
04-29 18:55:43.233 14376 14376 E ProcessState: => ProcessState.cpp => open_driver fd= 8
04-29 18:55:46.498 14410 14410 E ProcessState: => ProcessState.cpp => open_driver = /dev/binder
04-29 18:55:46.498 14410 14410 E ProcessState: => ProcessState.cpp => open_driver fd= 8
04-29 18:56:05.675 14510 14510 E ProcessState: => ProcessState.cpp => open_driver = /dev/binder
04-29 18:56:05.675 14510 14510 E ProcessState: => ProcessState.cpp => open_driver fd= 8
04-29 18:56:05.766 14529 14529 E ProcessState: => ProcessState.cpp => open_driver = /dev/binder
04-29 18:56:05.766 14529 14529 E ProcessState: => ProcessState.cpp => open_driver fd= 8
04-29 18:56:13.349 14605 14605 E ProcessState: => ProcessState.cpp => open_driver = /dev/binder
04-29 18:56:13.349 14605 14605 E ProcessState: => ProcessState.cpp => open_driver fd= 8