diff --git a/android/app/src/main/java/com/messenger/MainActivity.java b/android/app/src/main/java/com/messenger/MainActivity.java index 01d6738b40..69247d8ecd 100644 --- a/android/app/src/main/java/com/messenger/MainActivity.java +++ b/android/app/src/main/java/com/messenger/MainActivity.java @@ -17,14 +17,20 @@ public class MainActivity extends ReactActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); + + // Required for android-16 (???) System.loadLibrary("gethraw"); System.loadLibrary("geth"); + + // Required because of crazy APN settings redirecting localhost Properties properties = System.getProperties(); properties.setProperty("http.nonProxyHosts", "localhost|127.0.0.1"); properties.setProperty("https.nonProxyHosts", "localhost|127.0.0.1"); + + // Launch! new Thread(new Runnable() { public void run() { - Geth.run("--ipcdisable --nodiscover --rpc --rpcapi \"db,eth,net,web3\" --fast --datadir=" + getFilesDir().getAbsolutePath()); + Geth.run("--shh --ipcdisable --nodiscover --rpc --rpcapi \"db,eth,net,web3\" --fast --datadir=" + getFilesDir().getAbsolutePath()); } }).start(); }