termux-api icon indicating copy to clipboard operation
termux-api copied to clipboard

termux-telephony-deviceinfo for dual-SIM setup

Open ddpasa opened this issue 8 months ago • 1 comments

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?

ddpasa avatar Mar 24 '25 13:03 ddpasa

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.

Wetitpig avatar Jun 05 '25 15:06 Wetitpig