iamr0s/AndroidAppProcess

Run Android app_process just like Android Service.

59

stars

38

commits

Java

primary language

Jan 26, 2026

updated

README

Android AppProcess

Encapsulation of Android app_process, you can use it just like Android Service.

Maven Central

How to use it

Import library

implementation 'io.github.iamr0s:AndroidAppProcess:<version>'

1. New Process

  • Default
AppProcess process = new AppProcess.Default();
process.init(context);
  • Root
AppProcess process = new AppProcess.Root();
process.init(context);

2. Use it.

  • Remote Binder Transact
AppProcess process = new AppProcess.Root();
process.init(context);

IBinder manager = 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.

process.close()

Contributors

iamr0s

34 commits

s1204IT

2 commits

iamr0s/AndroidAppProcess

Run Android app_process just like Android Service.

59

stars

38

commits

Java

primary language

Jan 26, 2026

updated

README

Android AppProcess

Encapsulation of Android app_process, you can use it just like Android Service.

Maven Central

How to use it

Import library

implementation 'io.github.iamr0s:AndroidAppProcess:<version>'

1. New Process

  • Default
AppProcess process = new AppProcess.Default();
process.init(context);
  • Root
AppProcess process = new AppProcess.Root();
process.init(context);

2. Use it.

  • Remote Binder Transact
AppProcess process = new AppProcess.Root();
process.init(context);

IBinder manager = 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.

process.close()

Contributors

iamr0s

34 commits

s1204IT

2 commits

Languages

Java

98.4%

AIDL

1.6%