Skip to content

Instantly share code, notes, and snippets.

@aman-tiwari
Created September 17, 2017 20:47
Show Gist options
  • Save aman-tiwari/66df4950531f04138b37cb6eca4efa6c to your computer and use it in GitHub Desktop.
Save aman-tiwari/66df4950531f04138b37cb6eca4efa6c to your computer and use it in GitHub Desktop.
Diff of change needed to allow WebARonARCore run on all devices. Use with `patch -p1 < supported_device.patch`
index df7f8cb..46cdd7b 100644
--- a/android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellActivity.java
+++ b/android_webview/test/shell/src/org/chromium/android_webview/shell/AwShellActivity.java
@@ -429,7 +429,7 @@ public class AwShellActivity extends Activity implements OnRequestPermissionsRes
super.onCreate(savedInstanceState);
// If the device is not supported, show an alert and quit.
- if (!SupportedDevices.isSupported(this))
+ if (false)
{
createAlertDialog(AwShellActivity.this, "ERROR", "This device is not currently supported by WebARonARCore.", new DialogInterface.OnClickListener()
{
@aman-tiwari
Copy link
Author

Use with patch -p1 < supported_device.patch in the src folder after cloning WebARonARCore. Here's one I compiled earlier: https://drive.google.com/file/d/0B-7CCAaMeqWDN2xpR2E2ZldOaEk/view?usp=sharing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment