Online backup software has downloaded a lot of phone applications on existing functionality. Will this thing how to achieve it.
Directly to the appropriate folder to read the file out on it yet?
Reply:
Which friends have done this function you
Reply:
In such find themselves without meaningful questions, always customary paste this sentence came to help the landlord to Top
Reply:
Thank Bangding. If you can help me solve the problem even more thanks to you! ~
Reply:
Apk data should be backed up after installing this apk itself and the corresponding directory in the data below
Reply:
Feeling that some of the data in the data backup catalog it, such as database files ah and the like. When the backup, copy these files to SDcard directory, and then restore it, and then copied back to the original position.
Reply:
Perhaps I did not describe it well enough. So misunderstanding on the 5th floor 4th floor.
I mean the application is installed on the mobile phone users backup is a backup APK package, the internal data is not backed up applications.
Reply:
Reply:
Posts hung a day not yet been solved. .
This feature is not done yet master
Reply:
If
backup users to download applications that can be doneThe principle is very simple and that is scanning sdcard and flash the above file and determine suffix
If it is stored directly on the APK PM or call interface to judge is not a valid APK application file and then save
What you say is this it?
Reply:
Users install their own applications when installed will install the program copied to the / data / app directory, you can, you can directly backup the entire folder, but looks like this directory requires root privileges to access it ...
Reply:
10th floor saying is right, I would have done before similar functionality, but must have ROOT privileges phone to support
Reply:
System Application packages are under / sys / app,,
Reply:
Reply:
Backup is user-installed applications.
I am more optimistic about the program have this feature, but did not use root privileges ah
Reply:
If you just copy it, you can not ROOT, and, under no circumstances ROOT files are read-only status
Reply:
Problem solved. Think that simple. I put the key code posted backups coming:
private void backupApp (String packageName) throws IOException {
File in = new File ("/ data / app /" + packageName + "apk.");
File out = new File ("/ sdcard / BackupApp /" + packageName + "apk.");
out.createNewFile ();
FileInputStream fis = new FileInputStream (in);
FileOutputStream fos = new FileOutputStream (out);
int count;
byte [] buffer = new byte [256 * 1024];
while ((count = fis.read (buffer))> 0) {
fos.write (buffer, 0, count);
}
fis.close ();
fos.flush ();
fos.close ();
}
As for access to the package name is not tired of installed programs described it.
Does not require any additional settings and permissions. As long as the package name to get all the programs first, and then turn passed to the above function.
Of course, because I put the program back up to the sdcard, so the need to apply for permission to read and write memory cards.
Reply:
In this case the data is not backed up ~ ~
Reply:
Ah, but I do not require backup data. As long as the backup application.
My demand is relatively simple.
Data Backup Is there any way you
Reply:
Thank you for sharing
Reply:
In fact, can be extended to increase the data. Hey, in order to increase demand
Reply:
Some people do know how to back up data
Reply:
Data related applications in the / data / data / directory, you can do it as a backup application modeled
Reply:
Backing up data is not necessary to root ah
Reply:
I try to back up phone qq data. Found that there are five root directory folder 2 files
Only lib folder files can be read. The other four folders returned file list is null. The other two can not read the contents of the file.
Is not backup data must be backed up with a shell command ah
Reply:
. . . . This can be backup? ? Simulator then have root privileges, you can read apk data / app down, but not also the root of the phone is not readable?
Reply:
/ Data / app is readable. Backup user installed applications already. Code, see 16 floor.
It is not clear that data backup / data / data under how to engage.
Reply:
More simple shell command may be able to use
Reply:
I ask you this code and direct copy of the original apk file to the destination folder What is the difference? Thank you
No comments:
Post a Comment