Coder Social home page Coder Social logo

sp-stray / android-binder-native-helloworld Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yrzroger/android-binder-native-helloworld

0.0 0.0 0.0 398 KB

build binder service(HelloWorldService)based on Android Native Service Framework

C++ 85.07% Makefile 14.93%

android-binder-native-helloworld's Introduction

android-binder-native-helloworld

test on Android Q platform

build binder service(HelloWorldService)based on Android Native Service Framework

工程简介: 在Android平台中,Service Framework大致由两大部分构成,一部分是使用C++语言编写的本地服务框架,另一部分是使用Java语言编写的Java服务框架。该工程基于本地服务框架写作了HelloWorldService,基于Binder IPC机制实现Android平台中的进程间通信。

HelloWorldService基本结构:

使用方法:

  1. 将工程源码拷贝到Android源码android\external目录下;

  2. 编译后生成 HelloWorldService动态库:libhelloworld.so 客户端可执行档: main_client 服务端可执行档: main_server

  3. 将上一步骤中生成的动态库push到android平台/system/lib目录下 将上一步骤中生成的执行档push到android平台/system/bin目录下

  4. 在command line下执行main_server,启动服务

    main_server

  5. 在另一个session中command line下执行main_client,呼叫服务

    main_client

    可以看到执行main_server的一端会输出 Hello world !

android-binder-native-helloworld's People

Contributors

yrzroger avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.