diff --git a/.gitignore b/.gitignore index 694b40c7efc..85bd93af178 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ gradle/ build/ gradlew* .DS_Store +.settings diff --git a/Android.bp b/Android.bp index 13a926bc9e8..14b74dee75f 100644 --- a/Android.bp +++ b/Android.bp @@ -165,6 +165,8 @@ android_library { "com_android_wm_shell_flags_lib", "android.appwidget.flags-aconfig-java", "com.android.window.flags.window-aconfig-java", + "libGoogleFeed", + "SettingsLib", ], manifest: "AndroidManifest-common.xml", sdk_version: "current", @@ -178,7 +180,7 @@ android_library { // Build rule for Launcher3 app. // android_app { - name: "Launcher3", + name: "DerpLauncher", static_libs: [ "Launcher3ResLib", @@ -198,14 +200,19 @@ android_app { sdk_version: "current", min_sdk_version: min_launcher3_sdk_version, target_sdk_version: "current", + certificate: "platform", privileged: true, system_ext_specific: true, overrides: [ "Home", "Launcher2", + "QuickSearchBox", + ], + required: [ + "privapp_whitelist_com.android.launcher3", + "privapp_whitelist_com.android.launcher3-ext", ], - required: ["privapp_whitelist_com.android.launcher3"], jacoco: { include_filter: ["com.android.launcher3.**"], @@ -218,6 +225,13 @@ android_app { }, } +java_import { + name: "libGoogleFeed", + jars: [ + "libs/libGoogleFeed.jar", + ], +} + // Library with all the dependencies for building quickstep android_library { name: "QuickstepResLib", @@ -298,7 +312,7 @@ android_library { // Build rule for Quickstep app. android_app { - name: "Launcher3QuickStep", + name: "DerpLauncherQuickStep", static_libs: ["Launcher3QuickStepLib"], optimize: { @@ -309,14 +323,20 @@ android_app { min_sdk_version: "current", target_sdk_version: "current", + certificate: "platform", privileged: true, system_ext_specific: true, overrides: [ "Home", "Launcher2", "Launcher3", + "Launcher3QuickStep", + "QuickSearchBox", + ], + required: [ + "privapp_whitelist_com.android.launcher3", + "privapp_whitelist_com.android.launcher3-ext", ], - required: ["privapp_whitelist_com.android.launcher3"], resource_dirs: ["quickstep/res"], @@ -351,6 +371,7 @@ android_app { enabled: true, }, + certificate: "platform", privileged: true, system_ext_specific: true, overrides: [ @@ -358,8 +379,13 @@ android_app { "Launcher2", "Launcher3", "Launcher3QuickStep", + "Launcher3QuickStepGo", + "QuickSearchBox", + ], + required: [ + "privapp_whitelist_com.android.launcher3", + "privapp_whitelist_com.android.launcher3-ext", ], - required: ["privapp_whitelist_com.android.launcher3"], additional_manifests: [ "go/AndroidManifest.xml", @@ -387,6 +413,7 @@ android_app { enabled: true, }, + certificate: "platform", privileged: true, system_ext_specific: true, overrides: [ @@ -395,7 +422,10 @@ android_app { "Launcher3", "Launcher3QuickStep", ], - required: ["privapp_whitelist_com.android.launcher3"], + required: [ + "privapp_whitelist_com.android.launcher3", + "privapp_whitelist_com.android.launcher3-ext", + ], additional_manifests: [ "go/AndroidManifest.xml", @@ -408,3 +438,11 @@ android_app { include_filter: ["com.android.launcher3.*"], }, } + +prebuilt_etc { + name: "privapp_whitelist_com.android.launcher3-ext", + system_ext_specific: true, + sub_dir: "permissions", + src: "privapp_whitelist_com.android.launcher3-ext.xml", + filename_from_src: true, +} diff --git a/AndroidManifest-common.xml b/AndroidManifest-common.xml index 80d2eaca23c..f3427e71319 100644 --- a/AndroidManifest-common.xml +++ b/AndroidManifest-common.xml @@ -20,7 +20,9 @@ + package="com.android.launcher3" + coreApp="true" + android:sharedUserId="android.uid.system"> + + + + + + + + + android:exported="true" + android:writePermission="${packageName}.permission.WRITE_SETTINGS" + android:readPermission="${packageName}.permission.READ_SETTINGS" /> @@ -155,6 +166,54 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 517bd6d70e0..a68ba6b6d4e 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -19,6 +19,7 @@ --> - \ No newline at end of file + diff --git a/libs/libGoogleFeed.jar b/libs/libGoogleFeed.jar new file mode 100644 index 00000000000..158b76de405 Binary files /dev/null and b/libs/libGoogleFeed.jar differ diff --git a/privapp_whitelist_com.android.launcher3-ext.xml b/privapp_whitelist_com.android.launcher3-ext.xml new file mode 100644 index 00000000000..6186a7d4fbd --- /dev/null +++ b/privapp_whitelist_com.android.launcher3-ext.xml @@ -0,0 +1,24 @@ + + + + + + + + + + diff --git a/proguard.flags b/proguard.flags index 31edd8d88c5..d4b79f2c1c1 100644 --- a/proguard.flags +++ b/proguard.flags @@ -57,3 +57,7 @@ -keep class com.android.quickstep.** { *; } + +-keep class com.android.launcher3.lineage.trust.** { + *; +} diff --git a/quickstep/AndroidManifest-launcher.xml b/quickstep/AndroidManifest-launcher.xml index c6e2d8cb74b..e426bae3d72 100644 --- a/quickstep/AndroidManifest-launcher.xml +++ b/quickstep/AndroidManifest-launcher.xml @@ -30,7 +30,7 @@ android:fullBackupOnly="true" android:fullBackupContent="@xml/backupscheme" android:hardwareAccelerated="true" - android:icon="@drawable/ic_launcher_home" + android:icon="@mipmap/ic_launcher_home" android:label="@string/derived_app_name" android:theme="@style/AppTheme" android:largeHeap="@bool/config_largeHeap" @@ -65,6 +65,9 @@ + diff --git a/quickstep/AndroidManifest.xml b/quickstep/AndroidManifest.xml index bf198b605f8..a3df801c688 100644 --- a/quickstep/AndroidManifest.xml +++ b/quickstep/AndroidManifest.xml @@ -57,7 +57,7 @@ android:fullBackupOnly="true" android:fullBackupContent="@xml/backupscheme" android:hardwareAccelerated="true" - android:icon="@drawable/ic_launcher_home" + android:icon="@mipmap/ic_launcher_home" android:label="@string/derived_app_name" android:theme="@style/AppTheme" android:largeHeap="@bool/config_largeHeap" diff --git a/res/drawable/ic_launcher_home.xml b/quickstep/res/drawable/ic_clear_all.xml similarity index 58% rename from res/drawable/ic_launcher_home.xml rename to quickstep/res/drawable/ic_clear_all.xml index 7038775f355..00e8fd42a31 100644 --- a/res/drawable/ic_launcher_home.xml +++ b/quickstep/res/drawable/ic_clear_all.xml @@ -1,21 +1,19 @@ - - - - - - - + + + \ No newline at end of file diff --git a/quickstep/res/drawable/ic_kill_app.xml b/quickstep/res/drawable/ic_kill_app.xml new file mode 100644 index 00000000000..bb7036a6ac6 --- /dev/null +++ b/quickstep/res/drawable/ic_kill_app.xml @@ -0,0 +1,29 @@ + + + + + + diff --git a/quickstep/res/drawable/ic_lens.xml b/quickstep/res/drawable/ic_lens.xml new file mode 100644 index 00000000000..e372e83526c --- /dev/null +++ b/quickstep/res/drawable/ic_lens.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/quickstep/res/drawable/task_menu_item_bg.xml b/quickstep/res/drawable/task_menu_item_bg.xml index 588fe9ec25a..bd863f2bc42 100644 --- a/quickstep/res/drawable/task_menu_item_bg.xml +++ b/quickstep/res/drawable/task_menu_item_bg.xml @@ -15,7 +15,13 @@ limitations under the License. --> - - - - + + + + + + + + diff --git a/quickstep/res/layout/fallback_recents_activity.xml b/quickstep/res/layout/fallback_recents_activity.xml index f0ea09c1afe..4adbb282d3d 100644 --- a/quickstep/res/layout/fallback_recents_activity.xml +++ b/quickstep/res/layout/fallback_recents_activity.xml @@ -52,5 +52,8 @@ android:id="@+id/overview_actions_view" layout="@layout/overview_actions_container" /> + + diff --git a/quickstep/res/layout/meminfo.xml b/quickstep/res/layout/meminfo.xml new file mode 100644 index 00000000000..63c7eb882e6 --- /dev/null +++ b/quickstep/res/layout/meminfo.xml @@ -0,0 +1,12 @@ + + diff --git a/quickstep/res/layout/overview_actions_container.xml b/quickstep/res/layout/overview_actions_container.xml index fcd2e5495ae..7e4d0092a17 100644 --- a/quickstep/res/layout/overview_actions_container.xml +++ b/quickstep/res/layout/overview_actions_container.xml @@ -45,6 +45,37 @@ android:theme="@style/ThemeControlHighlightWorkspaceColor" android:visibility="gone" /> +