Skip to content

Commit

Permalink
Fix compatibility issue for android 16 device.Fixes #22294 (#22295)
Browse files Browse the repository at this point in the history
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 5939d07
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 5939d07

Please sign in to comment.