Consider what features/functionalities
- Debug
- Release
This can leave more flexibility to future API changes without breaking the APIs exposed in earlier versions.
| #ifndef __dbg_h__ | |
| #define __dbg_h__ | |
| #include <stdio.h> | |
| #include <errno.h> | |
| #include <string.h> | |
| // Debug tag | |
| #define DTAG "DBG" |
| import org.spongycastle.asn1.ASN1Encodable; | |
| import org.spongycastle.asn1.ASN1Primitive; | |
| import org.spongycastle.asn1.pkcs.PrivateKeyInfo; | |
| import org.spongycastle.asn1.pkcs.RSAPrivateKey; | |
| import org.spongycastle.crypto.params.AsymmetricKeyParameter; | |
| import org.spongycastle.crypto.params.RSAKeyParameters; | |
| import org.spongycastle.jcajce.provider.asymmetric.rsa.KeyFactorySpi; | |
| import org.bouncycastle.util.io.pem.PemObject; | |
| import org.bouncycastle.util.io.pem.PemWriter; |
| #!/bin/bash -ex | |
| # NOTE: ANDROID_HOME must be configured as an environment variable. | |
| # Kill all the existing adb servers and start over a new adb server. | |
| function restart_adb_server() { | |
| echo "********************* Restarting adb ... *********************" | |
| adb kill-server | |
| sleep 2 | |
| adb start-server | |
| sleep 2 |
| static inline __attribute__((always_inline)) void foo() { | |
| } |