blixt-wallet
blixt-wallet copied to clipboard
Android SDK 30
https://developer.android.com/preview/overview
Known compatibility issues:
- [ ] SELinux restriction causing crash by gomobile (https://github.com/golang/go/issues/40569)
- [x] Blixt requests legacy storage which won't be allowed in SDK 30
Maybe relevant https://developer.android.com/preview/privacy/package-visibility
Currently crashes on Android R devices when compiling with SDK 30:
I/GoLog: 2020-07-31 14:18:51.889 [INF] LTND: REST API is disabled!
2020-07-31 14:18:51.889 [INF] LTND: Listening on the p2p interface is disabled!
I/GoLog: 2020-07-31 14:18:51.891 [INF] LTND: Version: 0.10.99-beta commit=clock/v1.0.0-246-g22cd1203fe96a1417b428a009f4e28d31f921d85, build=development, logging=default
I/GoLog: 2020-07-31 14:18:51.891 [INF] LTND: Active chain: Bitcoin (network=testnet)
2020-07-31 14:18:51.891 [INF] LTND: Opening the main database, this might take a few minutes...
2020-07-31 14:18:51.893 [INF] CHDB: Checking for schema update: latest_version=17, db_version=17
I/GoLog: 2020-07-31 14:18:51.894 [INF] LTND: Database now open (time_to_open=3.09258ms)!
I/GoLog: 2020-07-31 14:18:51.895 [INF] RPCS: Generating TLS certificates...
2020-07-31 14:18:51.895 [ERR] LTND: unable to load TLS credentials: route ip+net: netlinkrib: permission denied
W/Thread-2: type=1400 audit(0.0:254): avc: denied { bind } for scontext=u:r:untrusted_app:s0:c155,c256,c512,c768 tcontext=u:r:untrusted_app:s0:c155,c256,c512,c768 tclass=netlink_route_socket permissive=0 b/155595000 app=com.example.lndtest
AFAICT this is related to SELinux.
Upstream ticket has been filled https://github.com/golang/go/issues/40569
Can confirm targeting SDK 30 gave me the same error, and switching to target SDK 29 seems to work.