String packName = getContext().getPackageName();
AssetManager manager = getContext().getAssets();
String[] fileName = manager.list("paths");
/*for (String str : fileName) {
InputStream stream = manager.open("paths/path1/path2/" + str);
FileOutputStream outStream = new FileOutputStream(new File(
"/data/data/" + packName + "/app_scopy/" + str));
int len = 0;
byte[] buffer = new byte[1024];
while ((len = stream.read(buffer)) != -1) {
outStream.write(buffer, 0, len);
}
stream.close();
outStream.close();
}
AssetManager manager = getContext().getAssets();
String[] fileName = manager.list("paths");
/*for (String str : fileName) {
InputStream stream = manager.open("paths/path1/path2/" + str);
FileOutputStream outStream = new FileOutputStream(new File(
"/data/data/" + packName + "/app_scopy/" + str));
int len = 0;
byte[] buffer = new byte[1024];
while ((len = stream.read(buffer)) != -1) {
outStream.write(buffer, 0, len);
}
stream.close();
outStream.close();
}