Imsdroid encountered registration problems (Xiaomi 3 Android4.4)

Source: Internet
Author: User

Recently in the study of video calls, with open source project Imsdroid compiled to test, it is very unfortunate, with the Millet 3 Android4.4 system is not registered on the dead .... Later through the log analysis and ask the great God, found that Xiaomi changed the system API AH (i 艹. )。 The following two analysis logs:

I'll use Xiaomi 3 Android4.4 to get the native IPV4 address.
There's two of them.
192.168.132.42
10.0.2.15
Instead of the other phones only get to the beginning of the 192 ....
(Forum: http://bbs.csdn.net/topics/390855028)

Xiaomi mobile phone modified the API, if we get through the Android API, will be connected with the external network and the intranet IP display, and like the kind of Huawei does not have this problem.

After adding the shielding code: (I am currently in the Intranet test, so the first simple string matching masked out)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.