1 Star 0 Fork 0

quck/weidongshan / APP_0004_Binder_CPP_App

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Test app for Binder, wrote by C++ language.

compile:

a. 文件放入frameworks/testing/APP_0004_Binder_CPP_App
b. cd /work/android-5.0.2/
. setenv
lunch //选择23. full_tiny4412-eng
c. cd frameworks/testing/APP_0004_Binder_CPP_App
mmm .

test:

####a. rebuid zImage to support NFS
make menuconfig
<*> NFS client support | |
[*] NFS client support for NFS version 3 | |
[*] NFS client support for the NFSv3 ACL protocol extension | |
[*] NFS client support for NFS version 4 | |
[*] NFS client support for NFSv4.1 (EXPERIMENTAL)

make zImage, use zImage to boot the board

####b. mount nfs
su
ifconfig eth0 192.168.1.100
busybox mount -t nfs -o nolock,vers=2 192.168.1.123:/work/nfs_root /mnt

####c. run test_server, test_client
logcat HelloService:* GoodbyeService:* TestService:* *:S &
./test_server &
./test_client hello
./test_client hello 100ask.taobao.com
./test_client hello weidongshan@qq.com
./test_client goodbye
./test_client goodbye wds

####d. v5: use binder to transfer file descriptor
test:
su
busybox mount -t nfs -o nolock,vers=2 192.168.1.123:/work/nfs_root /mnt
logcat HelloService:* GoodbyeService:* TestService:* *:S &
echo asfsdfasdf > 1.txt
./test_server 1.txt &
./test_client readfile

####e. v6: use binder and socketpair for bidirectional transfer
test:
su
busybox mount -t nfs -o nolock,vers=2 192.168.1.123:/work/nfs_root /mnt
logcat HelloService:* GoodbyeService:* TestService:* *:S &
./test_server&
./test_client readfile

空文件

简介

APP_0004_Binder_CPP_App 支持3288 9.0 编译运行 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/quck-weidongshan/APP_0004_Binder_CPP_App.git
git@gitee.com:quck-weidongshan/APP_0004_Binder_CPP_App.git
quck-weidongshan
APP_0004_Binder_CPP_App
APP_0004_Binder_CPP_App
master

搜索帮助