mirror of
https://github.com/status-im/react-native.git
synced 2025-02-21 21:58:18 +00:00
Summary: Fix compatibility issue for android 16 device. Related issue https://github.com/facebook/react-native/pull/22295. pass all current ci. none [GENERAL] [ANDROID] [Fixed] - Fix compatibility issue for android 16 device Pull Request resolved: https://github.com/facebook/react-native/pull/22295 Differential Revision: D13084152 Pulled By: hramos fbshipit-source-id: 42459ddc6f84f870affdda5ba19bcd8bb27b56d7
This commit is contained in:
parent
aacb06c594
commit
5939d078a0
@ -7,6 +7,7 @@ package com.facebook.react.modules.systeminfo;
|
||||
|
||||
import java.io.BufferedReader;
|
||||
import java.io.InputStreamReader;
|
||||
import java.nio.charset.Charset;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.Locale;
|
||||
|
||||
@ -84,7 +85,7 @@ public class AndroidInfoHelpers {
|
||||
Runtime.getRuntime().exec(new String[] {"/system/bin/getprop", METRO_HOST_PROP_NAME});
|
||||
reader =
|
||||
new BufferedReader(
|
||||
new InputStreamReader(process.getInputStream(), StandardCharsets.UTF_8));
|
||||
new InputStreamReader(process.getInputStream(), Charset.forName("UTF-8")));
|
||||
|
||||
String lastLine = "";
|
||||
String line;
|
||||
|
Loading…
x
Reference in New Issue
Block a user