Murder case caused by a space in Build.MODEL

There is a space in the Build.MODEL of Redmi, such as readmi k30.
The project requires WebView to spell the phone model when loading the url, so URLEncode is required and then spelled on the url, and the space will be encoded as a plus sign. This plus sign will redirect to a very strange address after loading the url, such as https:xxx/https:/xxx, two protocols, and the second protocol has only one "/", which causes an error.
Solution:
Replace all spaces in Build.MODEL, and then URLEncode

Guess you like

Origin blog.csdn.net/u011656025/article/details/112990944