File tree Expand file tree Collapse file tree 4 files changed +13
-13
lines changed
Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 11id=nano-ndk
22name=Nano for Android NDK
3- version=6.4
4- versionCode=6400
3+ version=7.0
4+ versionCode=7000
55author=osm0sis @ xda-developers
66description=Static ARM nano binary for Android built with the NDK
77updateJson=https://raw.githubusercontent.com/Magisk-Modules-Repo/nano-ndk/master/update.json
Original file line number Diff line number Diff line change @@ -15,21 +15,20 @@ if [ "$suimg" ]; then
1515 minorx=1;
1616 [ -e /dev/block/loop1 ] && minorx=$( ls -l /dev/block/loop1 | cut -d, -f2 | cut -c4) ;
1717 i=0;
18- while [ $i -lt 16 ]; do
18+ while [ $i -lt 64 ]; do
1919 loop=/dev/block/loop$i ;
20- if [ ! -b $loop ]; then
21- mknod $loop b 7 $(( i * minorx)) ;
22- fi ;
23- losetup $loop $suimg 2> /dev/null && break ;
20+ [ -e $loop ] || mknod $loop b 7 $(( num * minorx)) ;
21+ losetup $loop $suimg 2> /dev/null;
2422 i=$(( i + 1 )) ;
23+ losetup $loop | grep -q $suimg && break ;
2524 done ;
26- mount -t ext4 -o loop,noatime $loop $mnt 2> /dev/null ;
25+ mount -t ext4 -o loop,noatime $loop $mnt ;
2726 if [ $? != 0 ]; then
2827 losetup -d $loop 2> /dev/null;
2928 fi ;
3029 fi ;
3130 [ $mnt == /magisk ] && magisk=/nano-ndk/system;
32- [ -e $magisk /product ] && magisk=/nano-ndk/system /product;
31+ [ -e $magisk /product ] && magisk=$magisk /product;
3332 etc=$mnt$magisk /etc;
3433 bin=$mnt$magisk /bin;
3534else
4746 [ -f /system/system/build.prop ] && system=/system/system;
4847 [ -e $system /product/bin/nano ] && system=$system /product;
4948 etc=$system /etc;
50- bin=$system /xbin;
49+ bin=$system /bin;
50+ [ -e $system /xbin ] && bin=$system /xbin;
5151 fi ;
5252fi ;
5353
Original file line number Diff line number Diff line change 11{
2- "version" : " 6.4 " ,
3- "versionCode" : " 6400 " ,
4- "zipUrl" : " https://forum.xda-developers.com/attachments/update-nano-terminal-editor-v6-4 -signed-zip.5760595 /" ,
2+ "version" : " 7.0 " ,
3+ "versionCode" : " 7000 " ,
4+ "zipUrl" : " https://forum.xda-developers.com/attachments/update-nano-terminal-editor-v7-0 -signed-zip.5766437 /" ,
55 "changelog" : " https://raw.githubusercontent.com/Magisk-Modules-Repo/nano-ndk/master/README.md"
66}
You can’t perform that action at this time.
0 commit comments