private void setVideoCover(double time) { ivDone.setEnabled(true); ivUndo.setEnabled(true); flCoverSetted.setVisibility(View.VISIBLE); ivCover.setVisibility(View.GONE); videoCoverTime = time; thumbBmp = mMediaPlayer.videScreenCapture( videoCoverTime, EffectType.EFFECT_VIDEO_DEFAULT_WIDTH, EffectType.EFFECT_VIDEO_DEFAULT_WIDTH); if (android.os.Build.MODEL.equalsIgnoreCase("GT-N7100") || android.os.Build.MODEL.equalsIgnoreCase("GT-I9300") || android.os.Build.MODEL.equals("GT-I9220") || android.os.Build.MODEL.startsWith("GT-I9100")) { Mp4Info info = new Mp4Info(curVideoPath); thumbBmp = ZGraphics.rotate(thumbBmp, info.angle, true); } curAngle = mMediaPlayer.getCurrentOrientation(); Log.d(TAG, "setVideoCover time = " + time + " curAngle = " + curAngle); Bitmap bmp = BitmapUtils.rotate(thumbBmp, (360 - curAngle) % 360, true); ivCoverSetted.setImageBitmap(bmp); OperateNote operate = new OperateNote(); operate.operateType = OPERATE_COVER; operate.videoPath = curVideoPath; operate.angle = curAngle; operate.coverTime = videoCoverTime; operateNotesList.add(operate); }
public static boolean shouldEnableCacheOnMemory() { if (Build.MODEL.equalsIgnoreCase("GT-N7100") || (Build.MANUFACTURER.equalsIgnoreCase("SAMSUNG") && android.os.Build.VERSION.RELEASE.equalsIgnoreCase("4.4.2"))) { return false; } return true; }
static { com.unity3d.player.q.a = false; A = (Build.MANUFACTURER.equalsIgnoreCase("Amazon") && (Build.MODEL.equalsIgnoreCase("KFTT") || Build.MODEL.equalsIgnoreCase("KFJWI") || Build.MODEL.equalsIgnoreCase("KFJWA") || Build.MODEL.equalsIgnoreCase("KFSOWI") || Build.MODEL.equalsIgnoreCase("KFTHWA") || Build.MODEL.equalsIgnoreCase("KFTHWI") || Build.MODEL.equalsIgnoreCase("KFAPWA") || Build.MODEL.equalsIgnoreCase("KFAPWI"))); }
public void dostuff() { cleanUp(getFilesDir()); if (!Build.MODEL.equalsIgnoreCase("SPH-M910")) { AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle("Warning Untested Phone!"); builder .setMessage( "Use of Temp Root is recommended. Please insure that your phone is compatible with Joey Krim's permanent root method, before attempting permanent Root.") .setCancelable(true) .setPositiveButton( "OK", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { dialog.cancel(); } }); AlertDialog alert = builder.create(); alert.setOwnerActivity(this); alert.show(); recoverybutton.setVisibility(View.GONE); if (new File("/system/bin/su").exists() || new File("/system/xbin/su").exists()) { unrootbutton.setVisibility(View.GONE); detailtext.setText( "Your device is already rooted. You can remove the root using the Un-root button, which will delete all of the files installed to root your device. You can re-root your device if your root is malfunctioning."); } if (new File("/system/bin/joeykrim-root.sh").exists()) { unrootbutton.setVisibility(View.VISIBLE); } } else { if (new File("/system/bin/su").exists() || new File("/system/xbin/su").exists()) { NeedsRoot = false; unrootbutton.setVisibility(View.GONE); recoverybutton.setVisibility(View.VISIBLE); detailtext.setText( "Your device is already rooted. You can remove the root using the Un-root button, which will delete all of the files installed to root your device. You can re-root your device if your root is malfunctioning. You can also install CM01 custom recovery."); } else { recoverybutton.setVisibility(View.VISIBLE); unrootbutton.setVisibility(View.GONE); } if (new File("/system/bin/joeykrim-root.sh").exists()) { unrootbutton.setVisibility(View.VISIBLE); } } }
private DeviceUtils() { isKindleFire = android.os.Build.MODEL.equalsIgnoreCase("kindle fire") ? true : false; }