@YashdSaraf
Tested (ARM64). Not working.
Same error. Please check screenshot.
Log file content
#Mon Jan 11 17:15:10 CST 2010
#Ignore umount errors!
Wrong architecture -- Looking for arm64 -- Found
It seems that didn't find the operation to check value for architecture (found is empty)
I attached a zip file that contain /system/build.prop & /default.prop file of the device.
i'm using an arm64 selinux enabled version that i obtained on 4th april or so with md5: d3bea86e970e2a813edd235cc17abec1. but, the one that is available here is seen to have been uploaded on 6th april and has a different md5. should i switch to the 'newer' one?
is this meant for everyone? is this worth trying?....gotten rid of most of the primitive usage of grep in these installers.
http://afh.co/c/arm-beta, http://afh.co/c/arm64-beta..
@YashdSaraf
Tested ARM64 busybox (v. 06.05.-23015) same error.
I found the problem and the possible solution.
Your recovery script check the value
ro.product.cpu.abi
ro.product.cpu.abi2
ro.product.cpu.abilist
with getprop. It read the value from deafult.prop of recovery image.
But this value if is not correct your batch stop the installation also the file in /system/build.prop are correct.
The value in /system/build.prop are always the correct value.
For test to check the right reading I added these lines to your script
FOUNDARCH1=$(getprop ro.product.cpu.abi)
FOUNDARCH2=$(getprop ro.product.cpu.abi2)
FOUNDARCH3=$(getprop ro.product.cpu.abilist)
ui_print "cpu.abi = $FOUNDARCH1"
ui_print "cpu.abi2 = $FOUNDARCH2"
ui_print "cpu.abilist = $FOUNDARCH3"
then i copied and install the new zip with new script and I checked that no arm64 was not found.
Then I unpacked the images of the recovery and I found the problem.
The recovery default.prop didn't contain the right strings fro cpu architecture.
I believe that the problem is that your script read cpu architecture value by recovery default.prop file instead by /system/default.prop file.
For test I modified the default.prop file of the recovery, repacked and reinstalled the recovery and flash your original zip and now it works.
Then please if you can modify your script to read always the CPU architecture value form /system/build.prop.
I tested theese changes in the script and it worked
--- Original part of the script
FOUNDARCH=$(getprop ro.product.cpu.abi)
: ${FOUNDARCH:=$(getprop ro.product.cpu.abi2 2>/dev/null)}
: ${FOUNDARCH:=$(getprop ro.product.cpu.abilist 2>/dev/null)}
: ${FOUNDARCH:=$(grep -Eo -m1 "ro.product.cpu.abi(2)?=.+" /system/build.prop /default.prop 2>/dev/null | grep -Eo "[^=]*$")}
: ${FOUNDARCH:=none}
--- My changes
${FOUNDARCH:=$(grep -Eo -m1 "ro.product.cpu.abi?=.+" /system/build.prop /default.prop 2>/dev/null | grep -Eo "[^=]*$")}
: ${FOUNDARCH:=$(grep -Eo -m1 "ro.product.cpu.abi2?=.+" /system/build.prop /default.prop 2>/dev/null | grep -Eo "[^=]*$")}
: ${FOUNDARCH:=$(grep -Eo -m1 "ro.product.cpu.abilist?=.+" /system/build.prop /default.prop 2>/dev/null | grep -Eo "[^=]*$")}
: ${FOUNDARCH:=$(grep -Eo -m1 "ro.product.cpu.abi(2)?=.+" /system/build.prop /default.prop 2>/dev/null | grep -Eo "[^=]*$")}
: ${FOUNDARCH:=none}
Those are meant for bovirus as he has been facing issues with the installers attached in the OP.
That sounds like some really hard work.
Actually, in the original installers, I used the code to check both /system/build.prop and default.prop but I was stupid enough to be mounting system after checking for architecture in /system/build.prop. My bad.
Sorry you had to go through all the trouble just to make me realize my foolishness.
Here are the fixed zips,
http://afh.co/c/arm-beta
http://afh.co/c/arm64-beta
I also optimized cleaning time in them.:good:
Those are meant for bovirus as he has been facing issues with the installers attached in the OP.
You can try them out if you wish, but if you already have my busybox build installed, there is no need to try them out.
@YashdSaraf
followed the link in OP for toolchain link leads to your private file manager on AFH.
Here is public url
https://www.androidfilehost.com/?w=files&flid=50435
Hey,@YashdSaraf
Need ssl_helper for wget to be able to use https
can you build
Busybox itself contains no SSL code. wget will spawn a helper program to talk over HTTPS. ssl_helper is a tool which can be built statically from busybox sources against a small embedded SSL library. Please see networking/ssl_helper/README.
I'm glad you got it to compile I've been trying all day and was unable to get it doneHey,
I managed to build ssl_helper using wolfssl (ssl_helper.c wasn't updated for the latest matrixssl release).
Here's the link to the zip containing ssl_helper for all archs - https://dl.dropboxusercontent.com/s/jqjhze4li9z53xx/ssl_helper.zip
Just copy the one appropriate to your device to /system/xbin or /su/xbin whichever you prefer and give it executable permissions rwxr-xr-x(755) and your'e good to go.
I tested wget with https links and it worked for me.
Do report back if it works for you so I can update the op. :good:
selinux=0
selinux=1
installdir=/data/local/xbin
noclean
selinux=1
su
sh /sdcard/Busybox-installer-arm.bin
sh <script_name> -oc --installdir=/data/local/xbin
I do not have any logs to attach, but a while ago (a month or less) I tested your Busybox (1.26 I think) on Android 6.0 and after that selinux became disabled
Ahh nice, I also need x86 and x86_64, but you can take your time.
I can wait for your complete release, I'm not in rush
BTW, I saw you have some issues with zip signing, here is a guide that might help you out
https://xdaforums.com/android/software-hacking/dev-complete-shell-script-flashable-zip-t2934449