From 72e49c878bb8c1021003ca2a78876ed19195a3a2 Mon Sep 17 00:00:00 2001 From: Ivan Vlasov Date: Wed, 4 Dec 2019 22:17:37 +0300 Subject: [PATCH] Fixed typo in word 'writable' --- rootbeerlib/src/main/java/com/scottyab/rootbeer/Const.java | 2 +- rootbeerlib/src/main/java/com/scottyab/rootbeer/RootBeer.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rootbeerlib/src/main/java/com/scottyab/rootbeer/Const.java b/rootbeerlib/src/main/java/com/scottyab/rootbeer/Const.java index 64d6854..981646f 100644 --- a/rootbeerlib/src/main/java/com/scottyab/rootbeer/Const.java +++ b/rootbeerlib/src/main/java/com/scottyab/rootbeer/Const.java @@ -64,7 +64,7 @@ private Const() throws InstantiationException { }; - public static final String[] pathsThatShouldNotBeWrtiable = { + public static final String[] pathsThatShouldNotBeWritable = { "/system", "/system/bin", "/system/sbin", diff --git a/rootbeerlib/src/main/java/com/scottyab/rootbeer/RootBeer.java b/rootbeerlib/src/main/java/com/scottyab/rootbeer/RootBeer.java index bffffd0..5f1e63f 100644 --- a/rootbeerlib/src/main/java/com/scottyab/rootbeer/RootBeer.java +++ b/rootbeerlib/src/main/java/com/scottyab/rootbeer/RootBeer.java @@ -282,7 +282,7 @@ public boolean checkForDangerousProps() { } /** - * When you're root you can change the permissions on common system directories, this method checks if any of these patha Const.pathsThatShouldNotBeWrtiable are writable. + * When you're root you can change the permissions on common system directories, this method checks if any of these patha Const.pathsThatShouldNotBeWritable are writable. * @return true if one of the dir is writable */ public boolean checkForRWPaths() { @@ -310,7 +310,7 @@ public boolean checkForRWPaths() { String mountPoint = args[1]; String mountOptions = args[3]; - for(String pathToCheck: Const.pathsThatShouldNotBeWrtiable) { + for(String pathToCheck: Const.pathsThatShouldNotBeWritable) { if (mountPoint.equalsIgnoreCase(pathToCheck)) { // Split options out and compare against "rw" to avoid false positives