Android/app/src/main/java/tw/edu/kuas/wifiautologin/libs/Utils.java
/**
	 * The above WRITE_SETTINGS checks are only required for 6.0
	 */
The above WRITE_SETTINGS checks are only required for 6.0
The above WRITE_SETTINGS checks are only required for 6 . 0
@TargetApi(Build.VERSION_CODES.M)
	public static boolean checkSystemWritePermission(Context context) {
		if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && Build.VERSION.RELEASE.equals("6.0")) {
			return Settings.System.canWrite(context);
		}
		return true;
	}
@ TargetApi ( Build . VERSION_CODES . M ) public static boolean checkSystemWritePermission ( Context context ) { if ( Build . VERSION . SDK_INT >= Build . VERSION_CODES . M && Build . VERSION . RELEASE . equals ( "6.0" ) ) { return Settings . System . canWrite ( context ) ; } return true ; }
The above WRITE_SETTINGS checks are only required for 6.0
The above WRITE_SETTINGS checks are only required for 6 . 0
// This is no longer needed in Android 6.0.1 or lower than Android 6.0 version