forked from Magisk-Modules-Repo/nano-ndk
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
48 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
# Nano for Android NDK | ||
### osm0sis @ xda-developers | ||
*Static ARM nano binary for Android built with the NDK* | ||
# vim for Android NDK | ||
vim version of osm0sis's vim-ndk modules, all credits to him. | ||
### [osm0sis nano-ndk](https://github.com/Magisk-Modules-Repo/nano-ndk) | ||
the vim binary i used is from Zackptg5 : [Cross-Compiled-Binaries-Android](https://github.com/Zackptg5/Cross-Compiled-Binaries-Android) | ||
|
||
### Links | ||
* [GitHub](https://github.com/Magisk-Modules-Repo/nano-Installer) | ||
* [Support](https://forum.xda-developers.com/showthread.php?t=2239421) | ||
* [Sponsor](https://github.com/sponsors/osm0sis) | ||
* [Donate](https://www.paypal.me/osm0sis) | ||
check convert-to-vim.zsh to see the steps | ||
|
||
### Description | ||
A simple installer to push my own static Android ARM build of the nano editor binary to /system/xbin/ along with the required files in /system/etc/terminfo/, and a wrapper with optional --term parameter to choose your terminfo profile. Detects and supports "systemless" install via SuperSU/Magisk as well. It can then be used from Terminal while booted from that point on. | ||
A simple installer to push static Android ARM build of the vim editor binary to /system/xbin/ along with the required files in /system/etc/terminfo/, and a wrapper with optional --term parameter to choose your terminfo profile. Detects and supports "systemless" install via SuperSU/Magisk as well. It can then be used from Terminal while booted from that point on. | ||
|
||
Each time you flash in recovery it also temporarily enables use in recovery by pushing a script to /sbin/nano with the required environment variables, so you can then trigger it from recovery shell or the console in amarullz' brilliant AROMA Filemanager. Makes it extremely easy and worry-free to tweak and mod on the go, knowing you can edit the faulty build.prop or init.d script if something goes wrong. | ||
Each time you flash in recovery it also temporarily enables use in recovery by pushing a script to /sbin/vim with the required environment variables, so you can then trigger it from recovery shell or the console in amarullz' brilliant AROMA Filemanager. Makes it extremely easy and worry-free to tweak and mod on the go, knowing you can edit the faulty build.prop or init.d script if something goes wrong. |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
mv README.md README.md.bak | ||
mv convert-to-vim.zsh convert-to-vim.zsh.bak | ||
git fetch https://github.com/Magisk-Modules-Repo/nano-ndk master | ||
git reset --hard FETCH_HEAD | ||
mv README.md.bak README.md | ||
mv convert-to-vim.zsh.bak convert-to-vim.zsh | ||
wget 'https://github.com/Zackptg5/Cross-Compiled-Binaries-Android/raw/master/vim/vim-arm64' -O bin/vim.bin | ||
vimversion=$(curl -s 'https://raw.githubusercontent.com/Zackptg5/Cross-Compiled-Binaries-Android/master/ccbins_files/includes.txt' | rg 'vim' | rg -o 'v(\d\.?)+') | ||
vimversioncode=$(sed 's#v##; s#\.##g' <<< $vimversion) | ||
rm bin/nano.bin | ||
fd -E convert-to-vim.zsh -E README.md -t f -x sed -i 's/nano/vim/gi' {} | ||
fd 'nano$' -x mv {} {//}/vim | ||
sed -i 's#nano#vim#gi; s#author=#author=mirsella'\''s fork of #' module.prop | ||
sed -i 's#version=.*#version='$vimversion'#; s#versionCode=.*#versionCode='$vimversioncode'#' module.prop | ||
git add -A | ||
git commit -m "migrated to vim $vimversion" | ||
git push -f origin master | ||
zip magisk-vim-ndk.zip $(fd -t f) | ||
gh config set prompt disabled | ||
gh release create "$vimversion" magisk-vim-ndk.zip -t "vim $vimversion (automatic release ⚠️)" | ||
gh config set prompt enabled | ||
rm magisk-vim-ndk.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
id=nano-ndk | ||
name=Nano for Android NDK | ||
version=5.7 | ||
versionCode=5700 | ||
author=osm0sis @ xda-developers | ||
description=Static ARM nano binary for Android built with the NDK | ||
id=vim-ndk | ||
name=vim for Android NDK | ||
version=v8.2.2886 | ||
versionCode=822886 | ||
author=mirsella's fork of osm0sis @ xda-developers | ||
description=Static ARM vim binary for Android built with the NDK | ||
support=https://forum.xda-developers.com/showthread.php?t=2239421 | ||
donate=https://www.paypal.me/osm0sis | ||
template=1500 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters