Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Error: Java API not available

未关闭
#397 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
冷清
技术栈
android, javascript
领域
mobile-dev

调研方向

该报告围绕 Java.perform()、Java.performNow() 以及 /frida/bridges/java.js 中的 _checkAvailable 路径展开;首先跟踪如何检测 Gadget 进程的 Java API 可用性。复现报告中的 Android 游戏设置及其列出的已加载模块,然后确定 API 不可用的原因,并记录已确认的加载条件或限制。

由索引模型根据 Issue 内容生成。

描述

I used objection to inject frida gadget to a game apk.
i could connect to it and execute some javascript scripts.
however when i try to use the javascript api i get the error that it is not available
I did enumerate the loaded modules and at first they were very little so i edited the smali to load the gadget around the end of the oncreate function of the main unity activity.
this did cause some more modules to appear like libunity and libmain (no il2cpp for some reason)
and still the java api is no where to be found
loaded modules: libdl.so ld-android.so libsigchain.so libunwindstack.so libc++.so libc.so libm.so libbase.so liblog.so liblzma.so libmain.so libunity.so libandroid.so libz.so libEGL.so libcutils.so libgraphicsenv.so libnativewindow.so libvndksupport.so [email protected] android.hardware.configstore-utils.so libhidlbase.so libnativebridge_lazy.so libnativeloader_lazy.so libutils.so libSurfaceFlingerProp.so libbinder.so libdl_android.so libui.so libbinder_ndk.so [email protected] [email protected] [email protected] libapexsupport.so android.hardware.graphics.common-V5-ndk.so android.hardware.graphics.allocator-V2-ndk.so [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] libgralloctypes.so libsync.so [email protected] android.hardware.common-V2-ndk.so

the error
[Remote::Gadget ]-> Java.performNow(); Error: Java API not available at _checkAvailable (/frida/bridges/java.js:8) at performNow (/frida/bridges/java.js:8) at <eval> (<input>:1) [Remote::Gadget ]-> Java.perform(); Error: Java API not available at _checkAvailable (/frida/bridges/java.js:8) at perform (/frida/bridges/java.js:8) at <eval> (<input>:1) [Remote::Gadget ]->

主要语言
JavaScript
星标
414
派生
174
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

frida/frida-java-bridge 的其他 Issue

查看 frida/frida-java-bridge 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。