https://github.com/sickcodes/droid-ndk-extractor
Android NDK Extractor - Extract ARM native bridge libndk translation libraries for use in any Android derivative.
https://github.com/sickcodes/droid-ndk-extractor
android arm libndk ndk
Last synced: about 1 year ago
JSON representation
Android NDK Extractor - Extract ARM native bridge libndk translation libraries for use in any Android derivative.
- Host: GitHub
- URL: https://github.com/sickcodes/droid-ndk-extractor
- Owner: sickcodes
- License: gpl-3.0
- Created: 2021-09-14T00:28:50.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-20T20:38:52.000Z (about 4 years ago)
- Last Synced: 2025-03-15T22:00:19.428Z (about 1 year ago)
- Topics: android, arm, libndk, ndk
- Language: Shell
- Homepage:
- Size: 16.6 KB
- Stars: 51
- Watchers: 2
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Droid-NDK-Extractor
Android NDK Extractor - Extract ARM native bridge translations for use in any Android derivative.
System Requirements:
```
p7zip
binwalk
git
```
`./android-extract-ndk.sh`
```bash
#!/bin/bash
# Author: sickcodes
# Contact: https://twitter.com/sickcodes
# Repo: https://github.com/sickcodes/Droid-NDK-Extractor
# Copyright: sickcodes (C) 2021
# License: GPLv3+
ARCH="${1}"
ARCH="${ARCH:="x86_64"}"
mkdir ./working
cd ./working
git clone https://gitlab.com/android-generic/android_vendor_google_emu-x86.git
yes | ./android_vendor_google_emu-x86/download-files.sh "${ARCH}"
yes | unzip "${ARCH}-*-linux.zip"
7z e x86_64/system.img
binwalk -e \
--depth 1 \
--count 1 \
-y 'filesystem' \
super.img # only search for filesystem signatures
# 1048576 0x100000 \
# Linux EXT filesystem, blocks count: 234701, \
# image size: 240333824, rev 1.0, ext2 filesystem data, \
# UUID=31e7cd0f-5577-515b-bea5-c836952b952b, volume name "/"
mkdir extracted
cd extracted
yes | 7z x ../_super.img.extracted/100000.ext
find system \( -name 'libndk_translation*' -o -name '*arm*' -o -name 'ndk_translation*' \) | tar -cf native-bridge.tar -T -
pwd
stat native-bridge.tar
echo "${PWD}/native-bridge.tar"
# move native-bridge.tar somewhere, and remove the ./working folder as it is no longer required.
```