# AndroidAppProcess **Repository Path**: yelam2022/AndroidAppProcess ## Basic Information - **Project Name**: AndroidAppProcess - **Description**: No description available - **Primary Language**: Unknown - **License**: LGPL-3.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-03-29 - **Last Updated**: 2024-03-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Android AppProcess Encapsulation of Android app_process, you can use it just like Android Service. ![Maven Central](https://img.shields.io/maven-central/v/io.github.iamr0s/AndroidAppProcess) ### How to use it ### Import library ```gradle implementation 'io.github.iamr0s:AndroidAppProcess:' ``` ### 1. New Process - Default ```java AppProcess process = new AppProcess.Default(); process.init(context.getPackageName()); ``` - Root ```java AppProcess process = new AppProcess.Root(); process.init(context.getPackageName()); ``` ### 2. Use it. - Remote Binder Transact ```java AppProcess process = new AppProcess.Root(); process.init(context.getPackageName()); IPackageManager manager = android.os.ServiceManager.getService("package"); IBinder binderWrapper = process.binderWrapper(manager.asBinder()); IPackageManager managerWrapper = IPackageManager.Stub.asInterface(binderWrapper); managerWrapper.uninstall(...) // will call it in root. ``` - More > See the demo. ### 3. Close > You must close the AppProcess after use it. ```java process.close() ```