Git Product home page Git Product logo

android-nougat-service's Introduction

android-nougat-service

This is an example system service for Android 7.1 Nougat. There are no updated examples for Nougat and onward, so I thought I would contribute for everyone. This is for AOSP development, not application development

Look at the commit "Foo system service init" to see an excellent Diff of the implementation.

How-To

Add the necessary files. Ensure that you modify the files that already exist in your system, do not just overwrite them! For instance, /frameworks/base/Android.mk needs one line added to your system.

You must clean your build before building to ensure the selinux files take hold. Build. Then also update the api! That should do it!

make clean
make -j8
make update-api

Test your system

After booting your new system, you can test out your new service independent of an application by the following command:

service call foo 1

This will call the first function listed in the aidl file. 2 for the second function and so on. It will return a Parceable object containing the return value!

Enjoy!

android-nougat-service's People

Contributors

rrmhearts avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

taphier

android-nougat-service's Issues

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.