From 026a8afd80f4e4c09e8941e5c9e92d851cac37dc Mon Sep 17 00:00:00 2001 From: Steven Schoen Date: Thu, 30 Oct 2014 09:02:01 -0400 Subject: [PATCH] Fixed permissions not getting set --- Emoji Switcher/build.gradle | 4 ++-- .../com/stevenschoen/emojiswitcher/EmojiSwitcherUtils.java | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Emoji Switcher/build.gradle b/Emoji Switcher/build.gradle index a98a4b3..6d2b8db 100644 --- a/Emoji Switcher/build.gradle +++ b/Emoji Switcher/build.gradle @@ -7,8 +7,8 @@ android { defaultConfig { minSdkVersion 19 targetSdkVersion 21 - versionCode 8 - versionName "1.6" + versionCode 9 + versionName "1.6.1" } compileOptions { diff --git a/Emoji Switcher/src/main/java/com/stevenschoen/emojiswitcher/EmojiSwitcherUtils.java b/Emoji Switcher/src/main/java/com/stevenschoen/emojiswitcher/EmojiSwitcherUtils.java index 846af99..c322eb4 100644 --- a/Emoji Switcher/src/main/java/com/stevenschoen/emojiswitcher/EmojiSwitcherUtils.java +++ b/Emoji Switcher/src/main/java/com/stevenschoen/emojiswitcher/EmojiSwitcherUtils.java @@ -78,11 +78,12 @@ public void installEmojiSet(Context context, EmojiSet emojiSet) { } public static void applyPermissions(final Activity activity, String permissions, String path) { - Shell shell; try { - shell = RootTools.getShell(true); + RootTools.remount(path, "RW"); + Shell shell = RootTools.getShell(true); CommandCapture commandPermission = new CommandCapture(0, "chmod " + permissions + " " + path); shell.add(commandPermission); + shell.close(); } catch (TimeoutException e) { activity.runOnUiThread(new Runnable() { @Override