
These days i'm trying to make my own supla-android app.
I don't want to conflic my phone with the native Supla Android app, so I need to change the applicationid and repertory in Android Studio.
So, i did the refactor thing for folders, and changed all the directories (org/supla/android -> com/adelo/android for example), same in manifest and gradle.
(for informations, i'm running on Ubuntu 18 x64)
My app keeps crashing on virtual device and i understood i have to generate my own libsuplaclient.so with my directories/applicationid in it.

To preceed, i understood i need to generate files with open-ssl-for-android and then, generate files with supla-core/supla-client/Android/build_android.sh (and edited supla_client_jni.c)
So, i've downloaded from supla github the Open-SSL-for-Android files, edited the build_android.sh with my needs.
All folders are in /home/dev/ , chmod ok

But when i'm running openssl build_android.sh, i've trouble when it comes to patch termios:

This is the header of my build_android.sh:
Code: Select all
#!/bin/sh
WORKDIR=`pwd`"/work"
OPENSSL="openssl-1.0.2r"
OPENSSLURL="https://www.openssl.org/source/openssl-1.0.2r.tar.gz"
NDKDIR="/home/dev/ndk-r14b"
TOOLCHAIN="arm-linux-androideabi-4.8"
PLATFORM="android-12"
archs=(armeabi armeabi-v7a arm64-v8a x86 x86_64)
#archs=(arm64-v8a)
.................
Many thanks and have a good day!