Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

arkdecompiler

> 前端框架
Open source

HarmonyOS NEXT Decompiler(纯血鸿蒙反编译器)

195 stars0 likes0 views
WebsiteGitHub

About

HarmonyOS NEXT Decompiler(纯血鸿蒙反编译器)

arkdecompiler

arkdecompiler is the decompiler for HarmonyOS NEXT(纯血鸿蒙反编译器), which takes Panda Binary File as input, parses Panda Bytecode, and then translates it into Panda IR. After having IR, we can do various analyses. Based on IR, we reversely construct the native ArkTS AST tree, and then we traverse the AST tree and translate it into native ArkTS source code.

  • 2025 Black Hat, USA
  • 2026 Black Hat, ASIA
  • 2026 Black Hat, USA

Developer Community

QQ Group: 122560868

Schedule

  • ✅ Support all instructions
  • ✅ Implement a basic cross-platform GUI
  • ⏳ Cover sufficient corner cases in the official compiler and test262

Cross-platform GUI

Decompilation is currently Linux-only, while disassembly is supported across all platforms. Please configure your environment's command-line tools before use; you may refer to the default parameters as a guide.

Download: Get the latest pre-compiled binaries for your platform from GitHub Releases

Installation

Tested platform

Ubuntu 22.04

In the future we will adapt to other development platforms such as (Windows, macOS).

Prepare environment

bash
./prepare.sh(It will create the root directory **harmonyos**)

Clone arkdecompiler in harmonyos

bash
cd harmonyos && git clone https://github.com/jd-opensource/arkdecompiler.git
  • directory structure
➜  harmonyos ls
ark.py  arkcompiler  arkdecompiler  build  developtools  docs  foundation  kernel  out  prebuilts  prebuilts_download.sh  third_party

Apply patches to arkcompiler and third_party

Apply patches to arkcompiler/runtime_core, arkcompiler/ets_frontend, and third_party/protobuf according to the patches.

Usage

Build the decompilation main program xabc

bash
./build.sh

Prepare the source code file

Create demo.ts(refer tests directory)

Compilation && Decompilation

./run.sh(It will invoke genlogs.sh)

detailed description

  • The compilation result is:demo.abc(generated by genlogs.sh)
  • The decompilation result is:arkdemo.ts

Demo

Decompile bytecode to arkTS

AST

…

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C++blackhatdecompilerharmonyos-nextreverse-engineering

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架