百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
J

Jiagu

> 编程语言
开源

Android apk教程

398 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

Android apk教程

中文文档


APK reinforcement

  • Support Android 5.0 and above (tested on 5.1, 7.1, 8.1, 10.0, 11.0 real machines)
  • Support multi-dex reinforcement
  • Adopt no-landing loading dex scheme

I. Module description

Tool development debugging use

  • app: the source code for test
  • jiagu: used to generate shell dex
  • pack: java executable for packaging the hardened app

Release tools

  • JigguTool: package of hardening tools, if you only need to use the hardening function, you can directly use the tools in this directory

II. Script description

Tool development debugging use

  • Jiagu_app.bat: compile and package the app, the packaged application is used for hardening test
  • Jiagu_build.bat: compile and generate hardening tools
  • Jiagu_input.bat: harden the apk under input directory

Release tool

  • Jiagu_update.bat: update the tools compiled by Jiagu_build to the JiaguTool directory

III. Instructions for use

Method 1 (tool development and debugging use).

    1. Execute the script Jiagu_build.bat to generate the hardening tool
    1. Put the application to be reinforced into the input folder, execute the script Jiagu_input.bat to reinforce it, and the reinforced application will be exported to the output folder.

Method 2 (Release tool).

  • The hardening environment will be packaged to JiaguTool, you can use jiaguTool to harden the application directly
  • If you modify the code of the reinforcement tool, you can execute Jiagu_updata.bat to repackage the reinforcement tool

IV. Hardening principle

1. Hardening tool processing

  • Get the application name of the app
  • Modify the application of the app's AndroidManifest.xml to the dex shell application
  • Shell dex and source dex are spliced into one dex in the following format.
    • shell dex + (1 byte application name length + app's application name + 4 bytes source dex size + source dex) + 4 bytes source dex2 size + [source dex2] + 4 bytes source dex3 size + [source dex3] + ... + 4-byte shell dex size
    • AES encryption for the first 512 bytes of data in parentheses
    • dex header for data in middle brackets (i.e., first 112 bits for iso-or)
  • Packaged signed app

2. Shell dex processing

  • decrypt the application name and dex of the app
  • Load the app's dex
    • Android8.0 below use call libart's OpenMemory function to load dex in memory
    • Android8.0 and above use the InMemoryDexClassLoader provided by the system to load the dex in memory
  • replace shell application with application of app

Issues· 27 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Java

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言