diff --git a/Manifests/Manifest_LAOS-14.1.xml b/Manifests/Manifest_LAOS-14.1.xml index 89d4dab3..751d28cf 100644 --- a/Manifests/Manifest_LAOS-14.1.xml +++ b/Manifests/Manifest_LAOS-14.1.xml @@ -13,6 +13,7 @@ + diff --git a/Patches/LineageOS-14.1/cm_platform_sdk/0001-Provision.patch b/Patches/LineageOS-14.1/cm_platform_sdk/0001-Provision.patch new file mode 100644 index 00000000..0efff4de --- /dev/null +++ b/Patches/LineageOS-14.1/cm_platform_sdk/0001-Provision.patch @@ -0,0 +1,39 @@ +From dc758da1d79c1717610564e6cb9258a2dc4a755f Mon Sep 17 00:00:00 2001 +From: Tad +Date: Wed, 25 Jan 2017 04:09:31 -0500 +Subject: [PATCH] Provision + +Change-Id: I67ffa548835499c063cc9e6349b06ddcc3e48494 +--- + .../src/org/cyanogenmod/cmsettings/CMDatabaseHelper.java | 8 ++------ + 1 file changed, 2 insertions(+), 6 deletions(-) + +diff --git a/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMDatabaseHelper.java b/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMDatabaseHelper.java +index 9b46847..606d2b9 100644 +--- a/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMDatabaseHelper.java ++++ b/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMDatabaseHelper.java +@@ -193,9 +193,7 @@ public class CMDatabaseHelper extends SQLiteOpenHelper{ + try { + stmt = db.compileStatement("INSERT INTO secure(name,value)" + + " VALUES(?,?);"); +- final String provisionedFlag = Settings.Global.getString( +- mContext.getContentResolver(), Settings.Global.DEVICE_PROVISIONED); +- loadSetting(stmt, CMSettings.Secure.CM_SETUP_WIZARD_COMPLETED, provisionedFlag); ++ loadSetting(stmt, CMSettings.Secure.CM_SETUP_WIZARD_COMPLETED, "1"); + db.setTransactionSuccessful(); + } finally { + if (stmt != null) stmt.close(); +@@ -378,9 +376,7 @@ public class CMDatabaseHelper extends SQLiteOpenHelper{ + CMSettings.Secure.ENABLED_EVENT_LIVE_LOCKS_KEY, + R.string.def_enabled_event_lls_components); + +- final String provisionedFlag = Settings.Global.getString(mContext.getContentResolver(), +- Settings.Global.DEVICE_PROVISIONED); +- loadSetting(stmt, CMSettings.Secure.CM_SETUP_WIZARD_COMPLETED, provisionedFlag); ++ loadSetting(stmt, CMSettings.Secure.CM_SETUP_WIZARD_COMPLETED, "1"); + } finally { + if (stmt != null) stmt.close(); + } +-- +2.9.3 + diff --git a/Scripts/LAOS-14.1_Patches.sh b/Scripts/LAOS-14.1_Patches.sh index 4fd9b875..d521d7ac 100644 --- a/Scripts/LAOS-14.1_Patches.sh +++ b/Scripts/LAOS-14.1_Patches.sh @@ -95,6 +95,7 @@ patch -p1 < $patches"android_packages_apps_FDroidPrivilegedExtension/0003-Test_K enter "vendor/cmsdk" git fetch https://review.lineageos.org/LineageOS/cm_platform_sdk refs/changes/21/148321/4 && git cherry-pick FETCH_HEAD #Network Traffic +patch -p1 < $patches"cm_platform_sdk/0001-Provision.patch" enter "vendor/cm" git fetch https://review.lineageos.org/LineageOS/android_vendor_cm refs/changes/01/156601/8 && git cherry-pick FETCH_HEAD #CustomTiles