GithubHelp home page GithubHelp logo

litekite / android-aidl Goto Github PK

View Code? Open in Web Editor NEW
30.0 4.0 8.0 873 KB

A sample that makes Inter Process Communication (IPC) via Android Interface Definition Language (AIDL)

License: Apache License 2.0

Kotlin 90.35% AIDL 9.65%
android-aidl android aidl aidldemo aidl-android aidl-binder-rpc android-architecture android-application android-app android-studio

android-aidl's Introduction

Android-AIDL

Making Inter Process Communication (IPC) via Android Interface Definition Language (AIDL) that helps to communicate between two or more different apps that are running on different processes.

The other ways of communicating with other apps are using android intents, broadcasts and content providers based on the scenarios.

Getting Started

  1. Install Server and Client app apks on the device.

  2. Launch client app and perform login, sign-up, deposit and withdrawal operations. These operations are handled with AIDL Binders that are shared with client applications by server application.

  3. Server app runs a BankService, a service that shares AIDL binders with the client applications which are all bound with the service.

  4. Server app stores and maintains user credentials in a Database.

  5. Connector library has AIDL interfaces that are commonly shared with server and client app.

  6. Client app binds with the BankService with the help of BankServiceController and BankServiceConnector from Connector library that handles service connections, requests and responses with the BankService.


AIDL Login Screen AIDL Sign Up AIDL Home

please note that, due to background restrictions on Android running API level 30 and above, third-party application can no longer start or bind with the service that belongs to another process or app.

You may need to start or bind a service as a foreground service for Android API level 29.

It is recommended to start or bind with the service that are present in the same application.

If you are developing system level android apps for a custom android system, there will be no restrictions applied.

A Messenger Object can also be used as a Binder instead of AIDL Binder.

Libraries Used

Data Binding Library -> for updating, handling views from layouts with ViewModels.

Lifecycle Components -> LiveData for observing changes and ViewModel for MVVM Architecture.

Room Persistence Storage -> An ORM for SQLite Database.

Hilt DI -> Dependency Injection Library for Android.

Kotlin Coroutines Library -> A light-weight concurrency thread handles async and blocking works.

Support

If you've found an error in this sample, please file an issue: https://github.com/LiteKite/Android-AIDL/issues

Patches are encouraged, and may be submitted by forking this project and submitting a pull request through GitHub.

Like this project?, Always support...

License


Copyright 2021 LiteKite Startup

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, 
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

android-aidl's People

Contributors

svignesh93 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

android-aidl's Issues

how to run server app

hi,
After install server app, I don't know how to run it.I try to run it from common line
I use "adb shell am startservice -n com.litekite.server/.service.BankService", but I get this error
Error: Requires permission com.litekite.server.permission.BIND_BANK_SERVICE

btw, my phone is android 10
thank you very much!

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.