Permalink
Browse files

Fix compatibility issue for android 16 device.Fixes #22294 (#22295)

Summary:
Fix compatibility issue for android 16 device. Related issue #22295.
pass all current ci.
none
 [GENERAL] [ANDROID] [Fixed] - Fix compatibility issue for android 16 device
Pull Request resolved: #22295

Differential Revision: D13084152

Pulled By: hramos

fbshipit-source-id: 42459ddc6f84f870affdda5ba19bcd8bb27b56d7
  • Loading branch information...
gengjiawen authored and facebook-github-bot committed Nov 15, 2018
1 parent aacb06c commit 5939d078a01edc9f83fce102317540ffbcac17c1
@@ -7,6 +7,7 @@

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 @@ private static synchronized String getMetroHostPropValue() {
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;

0 comments on commit 5939d07

Please sign in to comment.