Code Monkey home page Code Monkey logo

frankendk's Introduction

FrankeNDK

Support SDK: 14 - 28
Host Platform: Linux, macOS, Windows
Host Arch: x86_64
Target Arch: ARMv7, ARM64, x86, x86_64 (64 bit only on SDK 21+)

Downloads

Latest Release

Why FrankeNDK?

Starting from NDK r11, all built dynamically linked binaries will cause linker warning on Android 5.1 (details: android-ndk/ndk: #622). To overcome this issue, Magisk's binaries were always built with the extremely obsolete NDK r10e, which means all improvements in later NDKs like Unified Header, modern Clang, and C++17 cannot be used. This became more and more annoying.

Another reason is that newer NDK versions ship with significant larger static libraries (like libc.a) than the old ones. Magisk is optimized to build the smallest binary as possible, so we have to also find a way to overcome this.

How FrankeNDK?

First step is to strip out the unsupported DT entries in all shared libraries with elf-cleaner to prevent linker warnings. Then, we "Frankenstein" r10e's static platform libraries, forcing the build system to use super small static libraries when building static binaries.

Notes

The latest FrankeNDK (r2) is based on official r17c because it is the last version with GCC included (BusyBox requires GCC to compile properly). Only SDK 16 and 21 have the static libraries replaced with r10e's, as these are the 2 SDK targets Magisk will be using. For other SDK versions, the only difference from official NDK is the stripped out DT entries.

frankendk's People

Contributors

topjohnwu 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.