linux特权级, linux通信机制, Dalvik, android binder
来源:互联网 发布:网上调车软件 编辑:程序博客网 时间:2024/06/05 19:12
Android Binder
Android Interprocess Communication
Thorsten Schreiber
First Advisor: Juraj Somorovsky
Second Advisor: Daniel Buβmeyer
在看《Android Binder》文档时,读到:
1. 特权级英文叫ring,并且是需要硬件支持的。Intel的硬件实现了4个特权级,linux只用0和3。
2. linux通信机制:信号,管道,套接字,消息队列,信号量,共享内存。
3. Native的含义是可以跑在具体机器平台上得程序,不同于跑在虚拟机上的Java。
4. Dalvik Vitual Machine:不同于JVM。JVM关注平台无关性,DVM关注Arm的适配、性能、功耗等。两者设计理念不同。
1. 特权级
More abstractly, the concept of security boundaries of an operating system introduces the term ring.
Note, that this must be a hardware supported feature of the platform. A certain group of rights is assigned to a ring.
Intel hardware supports four rings, but only two rings are used by Linux.
2. linux通信机制
Signals
Oldest IPC method. A process can send signals to processes with thesame uid and gid or in the same process group.
Pipes
Pipes are unidirectional bytestreams that connect the standard outputfrom one process with the standard input of another process.
Sockets
A socket is an endpoint of bidirectional communication. Two processescan communicate with bytestreams by opening the same socket.
Message queues
Processes can write a message to a message queue that is read-able for other Processes.
Semaphores
A semaphore is a shared variable that can be read and written bymany processes.
Shared Memory
A location in system memory mapped into virtual addressspaces of two processes, that each process can fully access.
3. Native Code
Programs compiled for a specific platform are called native.
Because Java is executed in a virtual machine with its own byte-code, no native code can be executed directly.
Due to the need to access low-level os mechanism like kernel calls, Java has to overcome this obstacle.
This is done by the Java native interface (JNI) , which allows Java to execute compiled code from libraries written in other languages, e.g. C++.
4. Dalvik
The Sun JVM is stack based, because a stack machine can be run on every hardware. Hardware and platform independence were major design principles of Java.
The DVM is register based for performance reasons and well adapted to ARM hardware. This is a different design principle, taking the advantage of hardware independence for high performance and less power consumption, which is essential for mobile purposes with limited battery capability.
The possibility to use the Java native interface weakens the security guarantying property of Java to implicit checking the bounds of variables and to encapsulate system calls and
the force to use JVM defined interfaces to the system.
The use of native libraries can allow bypassing the type and border checking of the virtual machine and opens the door to stack-overflow attacks.
- linux特权级, linux通信机制, Dalvik, android binder
- Android Binder通信机制
- Android Binder通信机制
- Linux与android进程间的通信及android Binder机制详解
- Android Java Binder 通信机制
- android中的binder通信机制
- Android Binder通信机制学习
- android中的binder通信机制
- Android Binder通信机制学习
- Android 进程通信-- Binder机制
- Android Binder通信机制学习
- Android Binder通信机制浅析
- Android的Binder通信机制
- 【Android--Binder】关于通信机制之Binder机制(上)
- Binder Android IPC Linux
- Android源码(7) --- Binder(1) Linux IPC 机制
- Binder---- Android 的IPC 通信机制
- Android进程间通信IPC机制Binder
- HTTP错误大全
- <Thinking in Java>读书进度贴
- iOS指南系列:关于进度条的问题
- Android异步双屏显示
- sql 日周月统计和
- linux特权级, linux通信机制, Dalvik, android binder
- Flex4.5CheckBox复选框组件运用
- 用wubi安装的ubuntu空间不足解决方案
- linux监控程序-程序自动重启方法
- 网站内容禁止别人复制
- 介绍一个小工具 Linqer
- GetFileTitle的误区
- 配置proxool不能实例化ProxoolConnectionProvider问题的解决
- JAVA守护线程