App gets rejected by Google Play because onyxsdk_pen depends on org.lsposed.hiddenapibypass:hiddenapibypass:4.3
Before submitting an issue, please check the following
- [x] I have searched for similar issues (both open and closed) and cannot find a duplicate
- [x] I agree to follow the Code of Conduct
Describe the bug
In the google play store, when I try to send my app for review, I get the following error on automatic checks:
We found some common issues that are preventing your app from being sent for review. You must address these issues before you can send your changes for review. Your app uses one or more unsupported APIs Your app uses API bypass SDKs that are affected by the latest updates to Android Runtime (ART). Your app may crash for users on the new Android Runtime, which is the default on Android 16 devices. Devices running Android 12 and higher (over 80% of devices) can also update to the new runtime.
Remove the following API bypass SDKs from your app:
org.lsposed.hiddenapibypass:hiddenapibypass
And when I searched for this hiddenapibypass dependency, I came about this line in onyxsdk_pen's build.gradle:
implementation("org.lsposed.hiddenapibypass:hiddenapibypass:4.3")
What is the workaround? Can the library work without it?
To reproduce
- Try to send an app with onyxsdk_pen as a dependency to Google Play store review
- See the error above
Expected behavior
For the app to pass automatic checks
Saber version
N/A
Device
- Device:
- OS:
Anything else?
No response
The bypass API seems to be required for Android 11+ support (https://github.com/saber-notes/saber/pull/1378). It's in Onyx's reference implementation here: DemoApplication.java.
I have no control over the SDK, so you should file an issue at https://github.com/onyx-intl/OnyxAndroidDemo. They should take it seriously if apps are getting rejected, but they don't seem particularly active unfortunately.
For now, I think the solution is:
- Try
onyxsdk_pen: ^1.2.5which updates toorg.lsposed.hiddenapibypass:hiddenapibypass:6.1 - If that doesn't work, add this stuff to your build.gradle: https://github.com/LSPosed/AndroidHiddenApiBypass#integration
Let me know if that fixes it!