Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

大佬们我有个疑问,就是比如我通过系统源码编译出一个test可执行文件,然后我通过adb执行./test,这个test能通过IGunder::getservice () 获取到服务?那是不是就意味着这些hidl的动态库其实都是在用户进程中有加载的?,也就是我普通app也能jni去通过IGunder::getservice ()访问吗? #48

Open
yuandaimaahao opened this issue Jun 16, 2023 · 2 comments

Comments

@yuandaimaahao
Copy link
Owner

No description provided.

@yuandaimaahao
Copy link
Owner Author

可以,但是要配置selinux
硬件操作,常规套路是在SystemServer 里面加一个Java binder服务,这个服务再通过jni调用hal
App获取到 system server 的服务,来操作硬件
驱动,hal, framework, app 写一遍就基本懂了,套路都一样

@yuandaimaahao
Copy link
Owner Author

一般服务接口的调用 都会检查调用者的uid的
你自己定义的 如果不校验权限 也是可以的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant