Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [{"code":"/*-JX4UA2y_f1OckjjvxWI.bQwRei-sLEsBmds7ArsRfi0xSFEP3Php97kjdMCs5ed\n\u003e[\"public class\"]\n\u003e0\n\u003e0\n\u003e0\n\u003efind-replace-first\nimport android.Manifest;\r\nimport android.content.pm.PackageManager;\r\nimport java.nio.file.Files;\r\nimport java.io.File;\r\nimport java.io.IOException;\npublic class\nBpWI8U4flOpx8Ke66QTlZYBA_NEusQ7BN-D0wvZs7ArsRfi0.EP3Php97kjdMCs*/\r\n/*AXAVajPNTpbJjsz-NGVTp08YDzfI-04kA7ZsuCl4GHqTQQiuWL45sV6Vf4gwK\n\u003e[\"\u003capplication\"]\n\u003e0\n\u003e0\n\u003e0\n\u003einsert\n\u003eAndroidManifest.xml\n\t\u003cuses-permission android:name\u003d\"android.permission.WRITE_EXTERNAL_STORAGE\" /\u003e\r\n\t\u003cuses-permission android:name\u003d\"android.permission.READ_EXTERNAL_STORAGE\" /\u003e\nUi5_PNTJb21WO6OuGwQ3psk3su1LIvyXo_OAol-kVQBC5jtN_DcPLaRCJ0yXp*/\r\n/*-JX4UA2y_f1OckjjvxWI.bQwRei-sLEsBmds7ArsRfi0xSFEP3Php97kjdMCs5ed\n\u003e[\"private void initialize\"]\n\u003e0\n\u003e0\n\u003e0\n\u003einsert\n public static void main(String[] args) {\n String sP \u003d \"\";\n String dP \u003d \"\";\n\n try {\n copyDirectory(new File(sP), new File(dP));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n public static void copyDirectory(File sourceDir, File destDir) throws IOException {\n if (!destDir.exists()) {\n destDir.mkdirs();\n }\n\n File[] children \u003d sourceDir.listFiles();\n if (children !\u003d null) {\n for (File sourceChild : children) {\n String name \u003d sourceChild.getName();\n File destChild \u003d new File(destDir, name);\n if (sourceChild.isDirectory()) {\n copyDirectory(sourceChild, destChild);\n } else {\n Files.copy(sourceChild.toPath(), destChild.toPath());\n }\n }\n }\n }\nBpWI8U4flOpx8Ke66QTlZYBA_NEusQ7BN-D0wvZs7ArsRfi0.EP3Php97kjdMCs*/\r\nif (Build.VERSION.SDK_INT \u003e\u003d 23) {if (checkSelfPermission(android.Manifest.permission.WRITE_EXTERNAL_STORAGE) \u003d\u003d android.content.pm.PackageManager.PERMISSION_DENIED) {\n\t\trequestPermissions(new String[] {android.Manifest.permission.WRITE_EXTERNAL_STORAGE},1000);\n\t}\n\telse {\n\t\t \n\t}}","color":"#FFFF0000","name":"librarybr","typeName":"","palette":"63","type":" ","spec":"Backup AddData Library onCreate","spec2":"onError (e)"},{"code":"String sP \u003d \"/data/user/0/\".concat(getApplicationContext().getPackageName().concat(\"/\"));\nString dP \u003d %1$s;\ntry {\ncopyDirectory(new File(sP), new File(dP));\n%2$s\n} catch (IOException e) {\n%3$s\n}","color":"#FFFF0000","name":"xj_copy25","typeName":"","palette":"63","type":"e","spec":"Backup AddData to Storage Folder%s onSuccess","spec2":"onError (e)"},{"code":"String sP \u003d \"/data/user/0/\".concat(getApplicationContext().getPackageName().concat(\"/\"));\nString dP \u003d %1$s;\ntry {\nFileUtil.deleteFile(sP);\ncopyDirectory(new File(dP), new File(sP));\n%2$s\n} catch (IOException e) {\n%3$s\n}","color":"#FFFF0000","name":"Restore","typeName":"","palette":"63","type":"e","spec":"Restore AddData From Storage Folder%s onSuccess","spec2":"onError (e)"}]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement