Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addHiddenApiExemptions() run time is 220x slower with v6.0 #56

Open
samlu opened this issue Jan 30, 2025 · 2 comments
Open

addHiddenApiExemptions() run time is 220x slower with v6.0 #56

samlu opened this issue Jan 30, 2025 · 2 comments

Comments

@samlu
Copy link

samlu commented Jan 30, 2025

You can check this issue with the following code snip.

val startTime = System.nanoTime()
try { HiddenApiBypass.addHiddenApiExemptions("") } catch (_: Throwable) {}
val endTime = System.nanoTime()

Log.d("HiddenApiBypass", "use time=" + ((endTime - startTime).toFloat() / 1000_000) + "ms")

Run the code on Pixel 7 with Android 15.

With AndroidHiddenApiBypass v6.0
use time=212.27913ms

With AndroidHiddenApiBypass v5.1
use time=0.855347ms

With AndroidHiddenApiBypass v4.3
use time=0.965088ms

@vvb2060
Copy link
Member

vvb2060 commented Feb 3, 2025

Try b6e3f67

@samlu
Copy link
Author

samlu commented Feb 4, 2025

The test result is
use time=18.38794ms

It's faster than v6.0 but still much slower than v5.1 or lower versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants