Bernardo Rufino
62863825e0
Fix file matching w/ full-backup rules xml
...
Documentation is pretty vague:
https://developer.android.com/guide/topics/data/autobackup#XMLSyntax .
But there were a couple of issues:
* It was prematurely returning false without consuming the rest of the
includes (cause of the bug linked).
* It was using string comparison for checking if a file is in a
directory, which ended up flagging directories such as "a/b" as
containing files "a/b.txt".
Reviewers,
* Please, pay full attention to test cases.
* Since this is code move + code change, set diff as 2..latest to check
changes to the function.
Bug: 110720194
Test: atest BackupUtilsTest
Test: Backup and restore app w/ multiple directory includes, verify
everything restored
Change-Id: Ic0fea43156ce8fb641af69ae73679289a20c291c
2018-06-29 07:18:26 +00:00
..
2018-06-22 18:44:27 +00:00
2018-03-07 19:24:45 +00:00
2018-06-29 07:18:26 +00:00
2018-03-27 08:41:42 -06:00
2018-06-12 13:38:39 -07:00
2018-06-01 17:16:09 +00:00
2018-06-12 15:33:35 +01:00
2018-02-12 15:15:13 +00:00
2018-06-21 10:28:47 +01:00
2018-06-21 17:00:07 -07:00
2018-06-06 14:26:49 -04:00
2017-12-13 20:05:36 -07:00
2018-06-27 10:42:15 +00:00
2018-04-20 12:58:49 -07:00
2018-06-26 15:41:40 -07:00
2018-06-22 14:26:24 -07:00
2018-01-03 09:16:56 +00:00
2018-06-06 18:26:21 -07:00
2018-06-06 18:26:21 -07:00
2018-06-12 13:38:39 -07:00
2018-06-12 13:38:39 -07:00
2018-06-11 14:04:24 -06:00
2018-04-25 13:55:48 -07:00
2018-03-30 09:57:36 -04:00
2018-03-14 13:04:28 -07:00
2018-04-30 20:33:36 +00:00
2018-06-26 13:20:37 -06:00
2018-06-27 11:31:03 -07:00
2018-05-14 11:29:43 -07:00
2018-04-04 16:39:24 -07:00
2018-05-02 18:40:59 -07:00
2018-06-12 13:38:39 -07:00
2017-11-14 12:31:11 -08:00
2018-06-07 21:18:10 -07:00
2017-12-20 18:16:40 +00:00
2018-03-07 01:54:15 +00:00
2017-11-13 10:55:59 -08:00
2017-12-20 18:16:40 +00:00
2017-12-20 18:16:40 +00:00
2017-12-20 18:16:40 +00:00
2017-12-20 18:16:40 +00:00
2017-12-20 18:16:40 +00:00
2017-12-20 18:16:40 +00:00
2018-01-25 11:04:29 -08:00
2018-01-25 11:04:29 -08:00
2018-06-26 14:12:14 -06:00
2018-06-21 15:11:21 -07:00
2018-02-16 22:11:35 +00:00
2018-06-11 15:48:46 +00:00
2017-11-14 12:39:21 -08:00
2018-01-25 09:28:55 +00:00
2018-01-31 14:00:18 -08:00
2018-04-18 14:10:19 -04:00
2018-03-01 10:03:05 -08:00
2018-06-12 13:38:39 -07:00
2017-10-06 16:34:43 -07:00
2017-11-30 13:02:14 -08:00
2017-11-22 20:59:14 -08:00
2018-01-04 21:36:00 -08:00
2018-06-12 13:38:39 -07:00
2017-12-05 15:44:26 +05:30
2017-12-20 18:16:40 +00:00
2018-06-04 15:31:47 +00:00
2017-12-20 18:16:40 +00:00
2018-02-09 07:56:49 -08:00
2018-06-11 17:40:56 +00:00
2018-06-22 09:35:10 -04:00
2018-03-29 16:39:06 -04:00
2018-04-26 12:48:04 +00:00
2018-06-08 06:08:56 -07:00
2018-04-05 17:21:11 -07:00
2018-06-28 15:42:06 -07:00
2018-02-15 13:43:55 -08:00
2018-01-25 23:03:11 +00:00
2018-04-05 21:22:51 +02:00
2018-05-15 19:46:57 +00:00
2018-05-22 10:52:40 +01:00
2017-11-27 18:15:49 -08:00
2018-06-12 13:38:39 -07:00
2018-03-05 16:59:21 -08:00
2017-09-29 15:03:47 -07:00
2018-01-05 18:02:30 -08:00
2018-05-21 17:40:56 -07:00
2018-05-31 09:49:48 -04:00
2018-06-25 18:47:39 +00:00
2018-02-03 02:11:45 +00:00
2017-10-13 14:25:26 -07:00
2017-11-13 12:49:44 +00:00
2018-05-21 09:55:32 -07:00
2017-11-30 13:02:14 -08:00
2017-12-13 20:05:36 -07:00
2018-05-02 17:40:47 -07:00
2018-05-02 17:40:47 -07:00
2018-05-02 17:40:47 -07:00
2018-06-07 16:33:09 -07:00
2017-12-18 11:28:16 -08:00
2018-06-21 15:57:07 -07:00
2018-06-22 16:05:16 +09:00