This repository was archived by the owner on Jan 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
android/ScriptingLayerForAndroid
src/com/googlecode/android_scripting/activity Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
33 package=" com.googlecode.android_scripting" android : installLocation =" auto"
4- android:versionCode=" 602 " android : versionName =" 6x02 " >
4+ android:versionCode=" 603 " android : versionName =" 6x03 " >
55 <uses-permission android : name =" android.permission.RECEIVE_SMS" />
66 <uses-permission android : name =" net.dinglisch.android.tasker.PERMISSION_RUN_TASKS" />
77 <uses-permission android : name =" com.android.launcher.permission.INSTALL_SHORTCUT" />
Original file line number Diff line number Diff line change @@ -113,6 +113,15 @@ public void onCreate(Bundle savedInstanceState) {
113113 super .onCreate (savedInstanceState );
114114 CustomizeWindow .requestCustomTitle (this , "Scripts" , R .layout .script_manager );
115115 if (FileUtils .externalStorageMounted ()) {
116+ File sl4a = mBaseDir .getParentFile ();
117+ if (!sl4a .exists ()) {
118+ sl4a .mkdir ();
119+ try {
120+ FileUtils .chmod (sl4a , 0755 ); // Handle the sl4a parent folder first.
121+ } catch (Exception e ) {
122+ // Not much we can do here if it doesn't work.
123+ }
124+ }
116125 if (!FileUtils .makeDirectories (mBaseDir , 0755 )) {
117126 new AlertDialog .Builder (this )
118127 .setTitle ("Error" )
You can’t perform that action at this time.
0 commit comments