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
9 changed files
with
56 additions
and
35 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://bit.do/osm0) | ||
* [Sponsor](https://github.com/sponsors/osm0sis) | ||
* [Donate](https://www.paypal.me/osm0sis) | ||
check convert-to-vim.zsh to see the steps | ||
|
||
### Description | ||
An installer to push my own static Android ARM build of the nano editor and required files to /system/xbin/ and /system/etc/terminfo/, with a wrapper adding a --term option to try terminfo profiles more easily. Detects and supports SuperSU/Magisk systemless installs. Can then be used from Terminal while booted. | ||
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. | ||
|
||
When flashed in recovery also allows temporary recovery use by pushing a script to /sbin/nano with the required setup, so you can trigger it from adb shell or TWRP Terminal. Makes it extremely easy and worry-free to tweak and mod on the go, knowing you can edit the faulty build.prop or startup 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,24 @@ | ||
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/README.md' | rg '\* Vim \(' | sed 's#* Vim (##; s#)##') | ||
vimversioncode=$(sed 's#v##; s#\.##g' <<< $vimversion) | ||
rm bin/nano.bin | ||
fd -E convert-to-vim.zsh -E README.md -E vim.bin -t f -x sed -i 's/nano/vim/gi' {} | ||
fd 'nano$' -x mv {} {//}/vim | ||
sed 's/vim.bin/vim.bin -C/' bin/vim # see issue #2 | ||
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 rm update.json | ||
git add -A | ||
git commit -m "migrated to vim $vimversion" | ||
git push -f origin master | ||
zip magisk-vim-ndk.zip $(fd -E .git -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,10 +1,10 @@ | ||
id=nano-ndk | ||
name=Nano for Android NDK | ||
version=7.2 | ||
versionCode=7201 | ||
author=osm0sis @ xda-developers | ||
description=Static ARM nano binary for Android built with the NDK | ||
updateJson=https://raw.githubusercontent.com/Magisk-Modules-Repo/nano-ndk/master/update.json | ||
id=vim-ndk | ||
name=vim for Android NDK | ||
version=v9.0.1447 | ||
versionCode=901447 | ||
author=mirsella's fork of osm0sis @ xda-developers | ||
description=Static ARM vim binary for Android built with the NDK | ||
updateJson=https://raw.githubusercontent.com/Magisk-Modules-Repo/vim-ndk/master/update.json | ||
support=https://forum.xda-developers.com/t/tools-zips-scripts-osm0sis-odds-and-ends-multiple-devices-platforms.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
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,6 +1,6 @@ | ||
{ | ||
"version": "7.2", | ||
"versionCode": "7201", | ||
"zipUrl": "https://forum.xda-developers.com/attachments/update-nano-terminal-editor-v7-2-signed-zip.5816099/", | ||
"changelog": "https://raw.githubusercontent.com/Magisk-Modules-Repo/nano-ndk/master/README.md" | ||
"zipUrl": "https://forum.xda-developers.com/attachments/update-vim-terminal-editor-v7-2-signed-zip.5816099/", | ||
"changelog": "https://raw.githubusercontent.com/Magisk-Modules-Repo/vim-ndk/master/README.md" | ||
} |