A library that encapsulates commonly used system functions for Android system applications.
- Provides access to hidden system APIs with
@UnsupportedAppUsage
annotation - Compatible with Android 15 and below
- Pre-built binary distribution for easy integration
- Requires system privileges and system signature
- System signature (platform.jks)
android.uid.system
shared user ID
maven {
url 'https://github.com/h4de5ing/SystemFunction/raw/master/SystemLib_repository'
}
implementation 'com.android.systemlib:systemlib:1.0-20221223'
signingConfigs {
sign {
storeFile file("platform.jks")
storePassword 'android'
keyAlias 'android'
keyPassword 'android'
}
}
<manifest android:sharedUserId="android.uid.system" />
// Example of using system functions
SystemLibHelper helper = new SystemLibHelper(context);
helper.callHiddenSystemApi();
-
System Signature Required:
- You must have the platform signature file (platform.jks)
- The APK must be signed with this signature
-
System Privileges:
- Your app must declare
android:sharedUserId="android.uid.system"
- Your app must be installed in the system partition
- Your app must declare
-
Version Compatibility:
- The library maintains separate implementations for Android 12 and below
- Check version compatibility before upgrading
-
ProGuard Rules:
-keep class com.android.systemlib.** { *; }
If you encounter any problems, please follow these guidelines when reporting issues:
- Check Existing Issues: Search existing issues to avoid duplicates
- Provide Details:
- Android version (e.g. Android 12)
- Device model (if relevant)
- Complete error logs
- Steps to reproduce the issue
- Code Samples: Include minimal code that reproduces the issue
- Screenshots: If applicable, add screenshots to help explain the problem
Please avoid:
- Vague descriptions like "it doesn't work"
- Multiple unrelated issues in one report
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a new Pull Request
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.