Revert UsageStatsDatabase to version 3

Change-Id: I650caeaed954ff2d0921b88a000c8f2be37df078
Fixes: 117177943
Bug: 117224541
Test: run google/template/local --template:map test
google/continuous/boot-successive  --no-first-boot --successive-boot
--boot-count 2 --granular-boot-info  -f
SystemServerTiming_StartUsageService    (See go/run-boottest)
(cherry picked from commit 3efa16d29f62477e2656b922f05b9ccf3dc74954)
diff --git a/services/usage/java/com/android/server/usage/UsageStatsDatabase.java b/services/usage/java/com/android/server/usage/UsageStatsDatabase.java
index c616685..8946d25 100644
--- a/services/usage/java/com/android/server/usage/UsageStatsDatabase.java
+++ b/services/usage/java/com/android/server/usage/UsageStatsDatabase.java
@@ -79,7 +79,7 @@
  * and downgrades have taken place. The original file version denotes how to parse the file.
  */
 public class UsageStatsDatabase {
-    private static final int DEFAULT_CURRENT_VERSION = 4;
+    private static final int DEFAULT_CURRENT_VERSION = 3;
 
     // Current version of the backup schema
     static final int BACKUP_VERSION = 1;
@@ -856,6 +856,9 @@
             Slog.e(TAG, "UsageStatsDatabase", e);
             throw e;
         }
+        // If old version, don't bother sanity checking
+        if (version < 4) return;
+
         // STOPSHIP: b/111422946, b/115429334
         // Everything below this comment is sanity check against the new database version.
         // After the new version has soaked for some time the following should removed.