Rephone doesn't see sim card

I figured it out… I always called the api from a sub thread, but some api’s can only be called from the main thread, my sim card is now detected correctly.