termux-api
termux-api copied to clipboard
termux-telephony-deviceinfo for dual-SIM setup
I have a dual SIM setup with both SIMs active. when I run termux-telephony-deviceinfo, I only get the information for the first one. Is it possible to get both, and also to learn which of the two SIMs are being used for data?
I think the code has to be then significantly refactored, as SubscriptionManager instead of TelephonyManager provides such information, and the services require quite a complex decision tree based on Android API level to determine the availability of different APIs.