diff options
author | jt1134 <jt1134@gmail.com> | 2012-08-05 03:54:35 -0500 |
---|---|---|
committer | jt1134 <jt1134@gmail.com> | 2012-08-05 03:54:35 -0500 |
commit | 90ef971e1b99c4fda7652b4fe4f1b90d0767592a (patch) | |
tree | 0e2633d95e46f3048376df49358cae0fdf396917 /AriesParts/src/android/hardware | |
parent | 7bb18221eff6cb5ca9ef792328ebd2830035070a (diff) | |
download | device_samsung_aries-common-90ef971e1b99c4fda7652b4fe4f1b90d0767592a.zip device_samsung_aries-common-90ef971e1b99c4fda7652b4fe4f1b90d0767592a.tar.gz device_samsung_aries-common-90ef971e1b99c4fda7652b4fe4f1b90d0767592a.tar.bz2 |
AriesParts: disable tvout options on devices missing tvouthack
Change-Id: Ib5a945ddb6097fc16b1221089bac211478d5d85f
Diffstat (limited to 'AriesParts/src/android/hardware')
-rw-r--r-- | AriesParts/src/android/hardware/TvOut.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/AriesParts/src/android/hardware/TvOut.java b/AriesParts/src/android/hardware/TvOut.java index 6c0936e..349b987 100644 --- a/AriesParts/src/android/hardware/TvOut.java +++ b/AriesParts/src/android/hardware/TvOut.java @@ -1,5 +1,6 @@ package android.hardware; +import java.io.File; import java.lang.ref.WeakReference; import android.graphics.Bitmap; @@ -49,6 +50,12 @@ public class TvOut { public native void _setTvoutCableConnected(int paramInt); + private static final String FILE = "/system/bin/tvouthack"; + + public static boolean isSupported() { + return new File(FILE).exists(); + } + static { System.loadLibrary("tvout_jni"); } @@ -67,4 +74,4 @@ public class TvOut { Log.d(TAG, "Native Event: " + what + " " + arg1 + " " + arg2); } -}
\ No newline at end of file +} |