Skip to content

Commit

Permalink
Fixed permissions not getting set
Browse files Browse the repository at this point in the history
  • Loading branch information
DSteve595 committed Oct 30, 2014
1 parent c89c015 commit 026a8af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Emoji Switcher/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
defaultConfig {
minSdkVersion 19
targetSdkVersion 21
versionCode 8
versionName "1.6"
versionCode 9
versionName "1.6.1"
}

compileOptions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 026a8af

Please sign in to comment.