aboutsummaryrefslogtreecommitdiffstats
path: root/nandroid.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix usage of stat vs statfsKoushik Dutta2013-06-191-7/+8
| | | | | | | Change-Id: Id59b79f079c587630f5f6ed0418a45f2b8cd99ff Conflicts: nandroid.c
* fix stat usageKoushik Dutta2013-06-181-1/+1
| | | | Change-Id: Iab3290adca1602a23fc407d2b3f50b9aeac60389
* recovery: Fix adb backupThiago Vinícius Freire de Araújo Ribeiro2013-05-211-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using http://goo.gl/6AQ3u might fail. The resulting backup consists of a tarball of the filesystem being backed up, but it might end up truncated, for reasons yet unknown. Issuing adb backup data, for instance, causes recovery to call tar, streaming it's stdout <a> through a socket <b>. The adb client reads from <b> and copies what it to the final backup file. Somehow, sometimes, not all the content generated at <a> is read at the adb client, which causes a truncated tar file to result. I'm unsure why this happens: Doesn't <a> get flushed before <b> is closed? Or is it that <b> is closed with outstanding data in its buffers, which never make it to the other side? Either calling sync() or sleep() seems to remedy the issue, but I'm not sure if sync() has any effect on sockets or pipes. I also understand that sleeping for some time is not the best solution to a race condition. Therefore, I'm adding calls to sync() and sleep() and waiting for reviews from someone who knows better how these calls work. Patch set 2: Remove sync() call Change-Id: If4733066fdad809eb73e87c670f37acc4debe82d
* revert mmcutils. cleanups and fixes.henry j. mason2013-05-091-30/+195
| | | | Change-Id: I2b0c3918528e5f7e6f4d2f8df1592c55f98317d3
* nandroid: backup: save recovery logChirayu Desai2013-03-241-1/+4
| | | | Change-Id: Id9e73317a6b46ddc0ec0c3005bfc9ef55cf7bf0d
* Blocked cached Google Music files from nandroidNathan Grebowiec2013-03-071-1/+1
| | | | | | Patchset 1) initial patch Change-Id: I76719bdd90be716f1beaeac293c5158eddf3a240
* Do not attempt to back up .android_secure if it is on /data/mediaKoushik Dutta2012-12-281-4/+2
| | | | Change-Id: Id252dd3fdd528ff2b87816a0f1947f2a54d5200a
* nandroid: Fix nonexistent backup format type bug.Koushik Dutta2012-12-281-0/+1
| | | | Change-Id: Ia5d6832137700b542c88b3c8d14efdd470bd195d
* nandroid: Fix nonexistent backup format type bug.Koushik Dutta2012-12-281-2/+3
| | | | Change-Id: I008d18e613e6a34099dc577d0452790f29a67169
* fix default backup format selection menuJames Sullins2012-12-121-0/+9
| | | | | | | | | | * Change "choose backup format" to "choose default backup format" to clarify that the change is persistent * Change the default backup format selection such that it correctly shows the current default format (instead of always showing tar) Change-Id: I4fe4bd9a07633f8fc4d335c424e20aea99f90f85
* actually properly change hte default backup handlerKoushik Dutta2012-12-041-1/+1
| | | | Change-Id: I3b3b85e2eec3a81fd50aa4bdba531def607a6bfc
* Switch the default backup format to tar.Koushik Dutta2012-11-281-3/+3
| | | | Change-Id: I65990d21657bc11367269186b8efde63778fb611
* fix for backup completion log:Koushik Dutta2012-11-181-1/+2
| | | | | | https://github.com/CyanogenMod/android_bootable_recovery/commit/77013ccee7c0c4570fad84f854b5b6a44bee6a73#commitcomment-2172624 Change-Id: I3383ff66eb44b2507674f91ab0e20f30246b969b
* More logging around backup completeion.Koushik Dutta2012-11-171-1/+3
| | | | Change-Id: Ic9dcb1745f4172919da9d33fa6961bee3bef3b15
* allow customization of the backup formatKoushik Dutta2012-08-081-1/+1
| | | | Change-Id: I0e75d71c496d64153d9a1b0da79865b3b0367264
* rename dedupe_gc to nandroid_dedupe_gcKoushik Dutta2012-08-081-8/+20
| | | | Change-Id: Ibd144703050ca33378b0af2eec63d8c8440c7a23
* Rename Nandroid to backup/restore. Allow configuration of default backup ↵Koushik Dutta2012-08-041-2/+19
| | | | | | handlers. Change-Id: I0df52b3929ea3aaf179e1c572b80841c89879ca8
* dedupe: use realpath instead of get_full_path which fails when dir does not ↵Koushik Dutta2012-07-201-10/+8
| | | | | | | | | exist. nandroid: fix strftime usage mess caused by duplicate var names. dedupe: verify paths exist and fail properly. Change-Id: I06f3389a8b30d6c05aceff9f08cdaa83d032692a
* Add support for backup deletion. Add support for manual dedupe garbage ↵Koushik Dutta2012-07-201-10/+14
| | | | | | collection. Change-Id: I419184acaf9e5656ee02fb7ddbf19dc4a5e7304f
* recovery: fix yaffs2 backup/restorePawit Pornkitprasan2012-07-191-2/+2
| | | | | | | | | we need to be in the directory we want to backup, not the parent directory Patchset 2: fix filename of yaffs2 image Change-Id: Ibf9576bc93d5b61c5f8608212bf68de05d5eb4a4
* more hacks for file permsKoushik Dutta2012-07-171-1/+1
| | | | Change-Id: Ieed4764b595f7a545b9e2113c34d7360e078ff4e
* fix perms on backupsKoushik Dutta2012-07-171-0/+2
| | | | Change-Id: I9680881f88d7d8b56fc544ac79f032647cd2f49f
* fix file perms on backup directories. show directory name in file picter.Koushik Dutta2012-07-161-2/+2
| | | | Change-Id: I697e04aedeb48ad4895a61fa303336ae3e98cdbd
* Add a background texture. Animate during nandroids. Fix dir count.Koushik Dutta2012-07-151-1/+2
| | | | Change-Id: I9d03f72453d20ba8647b6f81821bf71004621011
* fix up yaffs backup/restoreKoushik Dutta2012-07-151-4/+33
| | | | Change-Id: I3e57f4d038d6a5e2657c06c6de26d303a37fd2b3
* rename variables to a more appropriate nameKoushik Dutta2012-07-151-13/+13
| | | | | | | | Change-Id: Ifdd37cf6f7109e55f0ab168bb8386e93a7751d94 Conflicts: nandroid.c
* forward port CWM to jellybeanKoushik Dutta2012-07-151-20/+85
| | | | Change-Id: Ibd66afe03c9a2c183e4c7db35fe34adf0f5e24ff
* fixup backup and restore statusKoushik Dutta2012-07-041-8/+6
| | | | Change-Id: I2065755c26a2b49f09ac8592c61faa9474ce2f57
* fix up tar restoreKoushik Dutta2012-07-041-1/+1
| | | | Change-Id: Ia3b89aa8a05a882f8e2bea6e1375df08e17e2b00
* Split the tar files into 1GB pieces. Fixes backup and restore onto vfat (2gb ↵Koushik Dutta2012-07-031-3/+3
| | | | | | max files). May also address busybox large fs issues. Change-Id: I1f5a5d717ac55ae6cf053ceaa1bf0b4e0061f00a
* Rewrite the code that throttles UI updates to be in ui_print itself.Koushik Dutta2012-07-021-1/+1
| | | | Change-Id: I4fc59efc42991bdcf4fcd09feacfeb6fd984d58c
* This is a good commit, but was breaking logging. The proper place to do ui ↵Koushik Dutta2012-07-021-42/+8
| | | | | | | | | | refresh limitation is in ui_print itself. Revert "Only update UI at 1 Hz during nandroid backup/restore" This reverts commit 04076f0722381ca68420c3b9172dac78d3b91017.
* Fix nandroid restore exclusion for datamedia when there is a /sdcard path.Shareef Ali2012-06-301-1/+1
| | | | Change-Id: I966def8862a8c864bfc17834bf5a2363b290bf0c
* support datamedia on any one volumeKoushik Dutta2012-06-171-13/+8
| | | | Change-Id: I198e789ee01e8a5b10eee33ed59a2d828cfb096a
* Only update UI at 1 Hz during nandroid backup/restoreAndrew Dodd2012-06-131-8/+42
| | | | | | | | | | | | | | | On high-resolution devices such as the Galaxy Note, UI updates consume more CPU than all other operations. For example, a nandroid restore on Note pegs an entire core at 1.4 GHz for the recovery process while tar is using only 14% of the other core, and iowait times are low indicating the CPU is not simply waiting for IO. Nandroid backup/restore should be I/O bound, not CPU bound. This changes the update interval to 1 Hz during nandroid backup and restore. Change-Id: Ic021cd6dc453b92468396cab1a31bd693efb43e0
* add comments around /data/mediaKoushik Dutta2011-12-181-1/+1
| | | | Change-Id: I35ad822ed602e2b1018f1e1a0d67499867b60a40
* nandroid/root/extendedcommands: attenuate for /data not being auto in fstabPrashant Somashekar2011-12-181-2/+6
| | | | Change-Id: I0e7bec03bb29f1ae72f23321f89cf704e54ff4d9
* extendedcommands/nandroid: remove internal options if no sdcard and ↵Prashant Somashekar2011-12-181-0/+6
| | | | | | | | | | | | is_data_media -force /data as backup_path if volume for /sdcard is null and the same is true Change-Id: I927b723cde5b519d81402c6d841f2424627253e8 Conflicts: nandroid.c
* fix missing prebuilts in recovery. mmc bootloader message support. fix ↵Koushik Dutta2011-11-231-12/+14
| | | | segfault happening due to C structs not being zeroed out.
* support backup and restore on internal sdcardKoushik Dutta2011-10-261-6/+10
| | | | Change-Id: I6295b5bb7ada967ca223758be58d555c1a2ff462
* edited nandroid.c to include rfs in fs listsDonovan Bartish2011-09-291-1/+1
| | | | Change-Id: I403331df04d6a4cf75fd898af42dec7aab5a1b59
* cwr 5Koushik Dutta2011-09-051-24/+81
| | | | Change-Id: I70cbb4df78b0bbc9d227d19aa6d9434eba2b540d
* herpKoushik Dutta2011-07-201-1/+1
| | | | Change-Id: I4aace74f1d3638241939f842a4526f9724cf5dac
* fix crashKoushik Dutta2011-07-201-1/+1
| | | | Change-Id: I65be72b5cd8c0679fb328a78eb4016e2c89ec9b0
* Google Music stores their music cache /sdcard/Android...Koushik Dutta2011-07-131-13/+0
| | | | | | | | | | | | | | | | | Can't back this up unless we start selectively excluding apps, which is gross. Most apps only store interstitial files here, so it is not a huge deal. Apps need to be able to work properly without an SD card. (Oops ROM Manager). Revert "backup and restore of /sdcard/Android (see getExternalFilesDir)" This reverts commit 50732e3c67454e174f008ba5443b21070f360a56. Conflicts: Android.mk Change-Id: I3978c5521b4f29c4d709c3bb6a8fa7e53678a79e
* backup and restore of /sdcard/Android (see getExternalFilesDir)Koushik Dutta2011-07-071-0/+13
| | | | Change-Id: I6306464cdce4e3b48e0d109284e5606f65a84ee2
* Use the callback function in the call to mkyaffs2image() in _wrapperatinm2011-06-251-1/+1
| | | | Change-Id: Iee385a602e33a44dfa0deee8af49133f16f09d2c
* bug fixesKoushik Dutta2011-06-151-5/+5
| | | | Change-Id: I1125db9cb1a12a95060f7673965fd40994a78c5b
* cleanups for tar and /data/media supportKoushik Dutta2011-06-141-12/+6
| | | | Change-Id: I4afe3a8d4484f91b1e689d7b3aa4f137acd66e93
* make tar backups opt in.Koushik Dutta2011-06-101-0/+22
| | | | Change-Id: Ib01131f3a65ce4114e73abe2c7ba42263d281844