Yes, that isn’t the right base16 tool. The right one is part of a package called BaseZ , and in Debian / Ubuntu based Linux distributions you can install it with:
Hello @mrsarm
Thank you for your response.
Can I get BaseZ on OSX or in order to have this running I would need Debian / Ubuntu based Linux distributions?
Hello @mrsarm
An update on the process so far. I was able to download the source code and install it as per the instructions in the guide you shared.
Running the command again make org=echis_production_go_ke keygen, the BASE16 error is cleared but now I have another error. See the screenshot
Not sure about this first one: head: can't combine line and byte counts
And for the second one, keytool error: java.lang.Exception: Keystore password must be at least 6 characters
I don’t know why we are getting this error. The password I used to generate my keystore file is 10 characters long. It is the same one set in my environment $ANDROID_KEYSTORE_PASSWORD
Any suggestion on what I could be going wrong?
Thank you
Hey @Kymoraa, your password that you specify with -storepass is indeed < 6 characters (blank in this case). I doubt your ANDROID_KEYSTORE_PASSWORD is set.
Try run the following, just to experiment to check if you get the same error.
The issue stems from the head error above, which should set your password, see L168.
For a quick check, running base16 /dev/urandom | head -n 1 -c 16 should get you a 16-character random string that gets passed as the password.
Running base16 /dev/urandom | head -n 1 -c 16 doesn’t generate the 16-character random string which is the expected behaviour.
Instead we still get the error head: can't combine line and byte counts
Which leads me to think the issue with base16 might still be existing… Not sure though
@Kymoraa confirmed that base16 was successfully installed, but stuck with head: can't combine line and byte counts. Unfortunately, I don’t have a Mac. It works smoothly on Ubuntu 20.04.
Thanks @Kymoraa , your feedback is very valuable, we found that one of the command arguments in the Makefile was redundant and incompatible with OSX. The fix was merged, so please pull the latest changes from master and try again.
Thank you @mrsarm and @kitsao
I can confirm that the merged fix done was just what we needed to get past the errors generated from running make org=new_brand keygen
Coming across another error though while executing make keyprint-aab
Hey @derick
Thanks for your response
There is no deviation between my Makefile and upstream. We rebased against the cht-core master just today in order to pick the merged fixes. It’s actually at par…
@Kymoraa , sorry, that is because the name of the task is wrong here , the right name ends with -bundle, not -aab:
$ make keyprint-bundle
We have created an issue in the cht-android repo to fix and merge the documentation of both the repo and the docs (in the cht-android guides the name of the task is the right one).