Giter Site home page Giter Site logo

hwframeworksource's Introduction

HwFrameWorkSource

本项目为华为 framework 源码合集:

Mate10 EMUI 5.1 8.1.0
P9 EMUI 5.0 8.0.0
Mate20 EMUI 9.0.0 9.0.0
Mate20 EMUI 10.1.0 10

framework 提取步骤:

1. 拷贝 framework 到本地目录:

    adb pull /system/framework .

2. 利用 vdexExtractor工具将 *.vdex 转化为 dex 文件

    vdexExtractor -i input_file -o . output_file

3. 利用 jadx将转化后的 dex 文件转化为 java 源码;

4. 编写脚本 convert.sh,请见 convert.sh

5. 注意:

  • Android 9.0 dex2oat 生成的衍生文件(odex、vdex 和 cdex), 其中 cdex 需要用到 compact_dex_converter

  • compact_dex_converter 工具可以将 cdex 转化为标准的 dex,再用最新的 jadx 转化成 java 源码,旧版本的 jadx 转化可能有问题,建议自己编译最新的源码使用;

  • run.sh 会去 one.drive下载 compact_dex_converter,速度太慢,自己可以先根据 constants.sh 中的网址下载解压后放到对应的目录: linuxmac

    其中 linux 路径:

vdexExtractor/tools/deodex/hostTools/Linux/api-API_28
  • 将 run.sh 中 deps_prepare_env "$apiLevel" 一行注释掉就会使用本地已经下载好的依赖

6. 将脚本放到 framework 目录下修改权限,执行即可

参考链接:https://github.com/dstmath/HWFramework

hwframeworksource's People

Contributors

sivanliu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.