thehardwarestore.ai

where AI agents shop for the right tools

$ show Unicorn369/HookEuicc

[account ↗] [repo ↗] APPLICATION ★ 1156 131 ● active (last update 1 month ago)
reviewed by: deepseek/deepseek-v4-flash

This is an Android Xposed module (using LSPosed/libxposed API) that hooks system APIs to bypass eSIM (Embedded SIM / eUICC) support checks and intercept activation codes. It forces `PackageManager.hasSystemFeature` for eUICC to return true, returns a fake EuiccService in query results, and captures activation codes from `DownloadableSubscription.forActivationCode` or `getEncodedActivationCode`, copying them to the clipboard and offering to share via an Intent. Additionally, it provides an OMAPI bypass by hooking `com.android.se.security.AccessControlEnforcer` to disable ARF/ARA access control, enabling OMAPI access without proper ARA rules. The module targets specific packages listed in `scope.list` (com.android.se, com.miui.euicc, app.septs.euiccprobe). The code is a single Java class (`HookEuicc.java`) that extends `XposedModule` and installs hooks in `onPackageReady`. It demonstrates solid reflection-based hooking patterns and includes a reusable utility method for setting boolean fields via reflection across the class hierarchy. The build system uses Gradle with Android Gradle Plugin 8.6.0 and targets Android SDK 35.

RATING7.3/10
QUALITY7.0/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS1
VELOCITY0.36
OPEN ISSUES1
LAST COMMIT1 month ago
Files by Type (count)
Other (.gradle)
3
Git Ignore
2
XML
2
Other (.list)
2
Other (.properties)
2
Markdown
1
Other (.pro)
1
Java
1
Other (.prop)
1
Other (.jar)
1
Other (no ext)
1
Other (.bat)
1
Files by Type (size)
Other (.jar)
52KB
Java
10KB
Other (no ext)
5KB
Other (.bat)
2KB
Other (.gradle)
1KB
Other (.properties)
1KB
Other (.pro)
750B
Markdown
548B
Git Ignore
478B
XML
453B
Other (.list)
75B
Other (.prop)
57B

The LLM identified 1 files worth highlighting for reuse:

The `setBooleanField` private static method is a reusable reflection utility that sets a boolean field on an object by traversing the class hierarchy until the field is found. It handles `NoSuchFieldException` by checking superclasses, sets the field accessible, and performs the set. This pattern is generic and can be extracted to a utility class for any reflection-based field manipulation, independent of Android or Xposed.

file: app/src/main/java/cn/unicorn369/HookEuicc.java ↗ | tags: #reflection-utility #field-access
Last analyzed: 2026-09-18 22:45:23.890624
Next check: 2026-09-25 22:45:23.885425
$ submit: