Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From f7e1329871001d88ffd88a26ac9627a1ec94965c Mon Sep 17 00:00:00 2001
- From: LinuxCT <linuxct@github.com>
- Date: Sat, 14 Oct 2017 22:38:15 +0200
- Subject: [PATCH] Pixel Launcher P-4275643 from Google Pixel 2
- ---
- AndroidManifest.xml | 6 +++---
- apktool.yml | 6 +++---
- res/layout-land/launcher.xml | 2 +-
- res/layout-port/launcher.xml | 2 +-
- res/layout-sw720dp-v13/launcher.xml | 2 +-
- res/layout/qsb_hotseat_content.xml | 6 +++---
- res/values/colors.xml | 1 +
- res/values/styles.xml | 5 +++--
- res/xml/launcher_preferences.xml | 7 ++++---
- smali/com/android/launcher3/LauncherAppState.smali | 4 ++--
- smali/com/google/android/gms/common/internal/zzu$zza.smali | 2 +-
- 11 files changed, 23 insertions(+), 20 deletions(-)
- diff --git a/AndroidManifest.xml b/AndroidManifest.xml
- index a4f9fc4..f464599 100644
- --- a/AndroidManifest.xml
- +++ b/AndroidManifest.xml
- @@ -28,7 +28,7 @@
- <data android:scheme="package"/>
- </intent-filter>
- </receiver>
- - <receiver android:enabled="@bool/notification_badging_enabled" android:name="com.google.android.apps.nexuslauncher.reflection.NewAppInstallReceiver$V26">
- + <receiver android:enabled="true" android:name="com.google.android.apps.nexuslauncher.reflection.NewAppInstallReceiver$V26">
- <intent-filter>
- <action android:name="android.content.pm.action.SESSION_COMMITTED"/>
- </intent-filter>
- @@ -111,7 +111,7 @@
- <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
- <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS"/>
- <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
- - <uses-feature android:name="com.google.android.feature.PIXEL_EXPERIENCE" android:required="true"/>
- + <uses-feature android:name="com.google.android.feature.PIXEL_EXPERIENCE" android:required="false"/>
- <permission android:description="@string/permdesc_install_shortcut" android:label="@string/permlab_install_shortcut" android:name="com.android.launcher.permission.INSTALL_SHORTCUT" android:permissionGroup="android.permission-group.SYSTEM_TOOLS" android:protectionLevel="dangerous"/>
- <uses-permission android:name="android.permission.CALL_PHONE"/>
- <uses-permission android:name="android.permission.SET_WALLPAPER"/>
- @@ -121,4 +121,4 @@
- <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
- <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
- <uses-permission android:name="android.permission.INTERNET"/>
- -</manifest>
- \ No newline at end of file
- +</manifest>
- diff --git a/apktool.yml b/apktool.yml
- index 466839e..7a4c788 100644
- --- a/apktool.yml
- +++ b/apktool.yml
- @@ -1,5 +1,5 @@
- !!brut.androlib.meta.MetaInfo
- -apkFileName: pixel_P-4275643-ori.apk
- +apkFileName: pixel_P-4275643.apk
- compressionType: false
- doNotCompress:
- - arsc
- @@ -8,7 +8,7 @@ packageInfo:
- forcedPackageId: '127'
- renameManifestPackage: null
- sdkInfo:
- - minSdkVersion: '21'
- + minSdkVersion: '20'
- targetSdkVersion: '26'
- sharedLibrary: false
- unknownFiles:
- @@ -21,4 +21,4 @@ usesFramework:
- version: 2.3.0
- versionInfo:
- versionCode: '301'
- - versionName: P-4275643
- + versionName: P-4275643-mod
- diff --git a/res/layout-land/launcher.xml b/res/layout-land/launcher.xml
- index c0b148d..0455b42 100644
- --- a/res/layout-land/launcher.xml
- +++ b/res/layout-land/launcher.xml
- @@ -11,4 +11,4 @@
- <include android:id="@id/apps_view" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/all_apps" />
- <com.android.launcher3.pageindicators.PageIndicatorCaretLandscape android:theme="@style/HomeScreenElementTheme" android:layout_gravity="bottom|center|left" android:id="@id/page_indicator" android:layout_width="@dimen/dynamic_grid_min_page_indicator_size" android:layout_height="@dimen/dynamic_grid_min_page_indicator_size" />
- </com.android.launcher3.dragndrop.DragLayer>
- -</com.android.launcher3.LauncherRootView>
- \ No newline at end of file
- +</com.android.launcher3.LauncherRootView>
- diff --git a/res/layout-port/launcher.xml b/res/layout-port/launcher.xml
- index 9adf81e..50c6486 100644
- --- a/res/layout-port/launcher.xml
- +++ b/res/layout-port/launcher.xml
- @@ -11,4 +11,4 @@
- <include android:id="@id/widgets_view" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/widgets_view" />
- <include android:id="@id/apps_view" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/all_apps" />
- </com.android.launcher3.dragndrop.DragLayer>
- -</com.android.launcher3.LauncherRootView>
- \ No newline at end of file
- +</com.android.launcher3.LauncherRootView>
- diff --git a/res/layout-sw720dp-v13/launcher.xml b/res/layout-sw720dp-v13/launcher.xml
- index a56ea4c..1813429 100644
- --- a/res/layout-sw720dp-v13/launcher.xml
- +++ b/res/layout-sw720dp-v13/launcher.xml
- @@ -11,4 +11,4 @@
- <include android:id="@id/widgets_view" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/widgets_view" />
- <include android:id="@id/apps_view" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" layout="@layout/all_apps" />
- </com.android.launcher3.dragndrop.DragLayer>
- -</com.android.launcher3.LauncherRootView>
- \ No newline at end of file
- +</com.android.launcher3.LauncherRootView>
- diff --git a/res/layout/qsb_hotseat_content.xml b/res/layout/qsb_hotseat_content.xml
- index 1c9c176..f4e6943 100644
- --- a/res/layout/qsb_hotseat_content.xml
- +++ b/res/layout/qsb_hotseat_content.xml
- @@ -1,6 +1,6 @@
- <?xml version="1.0" encoding="utf-8"?>
- <merge
- xmlns:android="http://schemas.android.com/apk/res/android">
- - <ImageView android:layout_gravity="start|center" android:id="@id/g_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="?gIcon" />
- - <ImageView android:layout_gravity="end|center" android:id="@id/mic_icon" android:background="?android:selectableItemBackgroundBorderless" android:clickable="true" android:layout_width="48.0dip" android:layout_height="fill_parent" android:layout_marginTop="-6.0dip" android:layout_marginBottom="-6.0dip" android:src="?micIcon" android:scaleType="center" android:contentDescription="@string/label_voice_search" />
- -</merge>
- \ No newline at end of file
- + <ImageView android:layout_gravity="start|center" android:id="@id/g_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_super_g_color" />
- + <ImageView android:layout_gravity="end|center" android:id="@id/mic_icon" android:background="?android:selectableItemBackgroundBorderless" android:clickable="true" android:layout_width="48.0dip" android:layout_height="fill_parent" android:layout_marginTop="-6.0dip" android:layout_marginBottom="-6.0dip" android:src="@drawable/ic_mic_color" android:scaleType="center" android:contentDescription="@string/label_voice_search" />
- +</merge>
- diff --git a/res/values/colors.xml b/res/values/colors.xml
- index 5c83b57..dbfd338 100644
- --- a/res/values/colors.xml
- +++ b/res/values/colors.xml
- @@ -39,4 +39,5 @@
- <color name="qsb_background">#ffffffff</color>
- <color name="qsb_icon_shadow_color">#20000000</color>
- <color name="qsb_dark_icon_tint">#ff757575</color>
- + <color name="quantum_panel_text_color">#ff666666</color>
- </resources>
- diff --git a/res/values/styles.xml b/res/values/styles.xml
- index 8a22e1c..2f41fcd 100644
- --- a/res/values/styles.xml
- +++ b/res/values/styles.xml
- @@ -7,6 +7,7 @@
- <item name="android:colorBackgroundCacheHint">@null</item>
- <item name="android:keyboardLayout">@layout/search_container_all_apps</item>
- <item name="android:colorEdgeEffect">#ff757575</item>
- + <item name="android:colorPrimary">#fff5f5f5</item>
- </style>
- <style name="BaseLauncherThemeWithCustomAttrs" parent="@style/BaseLauncherTheme">
- <item name="allAppsScrimColor">#ddffffff</item>
- @@ -70,8 +71,8 @@
- <item name="android:elevation">3.0dip</item>
- </style>
- <style name="AllAppsNavBarProtection">
- - <item name="android:background">@color/default_shadow_color_no_alpha</item>
- - <item name="android:alpha">?android:spotShadowAlpha</item>
- + <item name="android:background">?android:colorPrimary</item>
- + <item name="android:alpha">0.6</item>
- </style>
- <style name="BaseIcon">
- <item name="android:textColor">?android:textColorSecondary</item>
- diff --git a/res/xml/launcher_preferences.xml b/res/xml/launcher_preferences.xml
- index 66e5f0d..a5b8c90 100644
- --- a/res/xml/launcher_preferences.xml
- +++ b/res/xml/launcher_preferences.xml
- @@ -1,7 +1,7 @@
- <?xml version="1.0" encoding="utf-8"?>
- <PreferenceScreen android:persistent="false" android:key="preference_screen"
- xmlns:android="http://schemas.android.com/apk/res/android">
- - <com.android.launcher3.views.ButtonPreference android:persistent="false" android:title="@string/icon_badging_title" android:key="pref_icon_badging" android:widgetLayout="@layout/notification_pref_warning">
- + <com.android.launcher3.views.ButtonPreference android:persistent="true" android:title="@string/icon_badging_title" android:key="pref_icon_badging" android:widgetLayout="@layout/notification_pref_warning">
- <intent android:action="android.settings.NOTIFICATION_SETTINGS">
- <extra android:name=":settings:fragment_args_key" android:value="notification_badging" />
- </intent>
- @@ -11,12 +11,13 @@
- <SwitchPreference android:title="@string/title_show_google_app" android:key="pref_enable_minus_one" android:summary="@string/pref_show_google_now_summary" android:defaultValue="true" />
- <SwitchPreference android:title="@string/title_app_suggestions" android:key="pref_show_predictions" android:summary="@string/summary_app_suggestions" android:defaultValue="true" />
- <SwitchPreference android:title="@string/allow_rotation_title" android:key="pref_allowRotation" android:defaultValue="@bool/allow_rotation" />
- - <ListPreference android:persistent="false" android:entries="@array/icon_shape_override_paths_names" android:title="@string/icon_shape_override_label" android:key="pref_override_icon_shape" android:summary="%s" android:defaultValue="" android:entryValues="@array/icon_shape_override_paths_values" />
- + <ListPreference android:persistent="true" android:entries="@array/icon_shape_override_paths_names" android:title="@string/icon_shape_override_label" android:key="pref_override_icon_shape" android:summary="%s" android:defaultValue="" android:entryValues="@array/icon_shape_override_paths_values" />
- <PreferenceScreen android:persistent="false" android:title="@string/about" android:key="about_screen">
- <Preference android:persistent="false" android:title="@string/about_app_version" android:key="about_app_version" />
- + <Preference android:persistent="false" android:title="Mod version" android:key="iamlinuxct" android:summary="5" />
- <Preference android:persistent="false" android:title="@string/app_info_drop_target_label" android:key="app_info">
- <intent android:action="android.settings.APPLICATION_DETAILS_SETTINGS" android:data="package:com.google.android.apps.nexuslauncher" />
- </Preference>
- <Preference android:persistent="false" android:title="@string/pref_open_source_licenses_title" android:key="open_source_licenses" android:fragment="com.google.android.apps.nexuslauncher.SettingsActivity$OpenSourceLicensesFragment" />
- </PreferenceScreen>
- -</PreferenceScreen>
- \ No newline at end of file
- +</PreferenceScreen>
- diff --git a/smali/com/android/launcher3/LauncherAppState.smali b/smali/com/android/launcher3/LauncherAppState.smali
- index 41b5351..1d92ccc 100644
- --- a/smali/com/android/launcher3/LauncherAppState.smali
- +++ b/smali/com/android/launcher3/LauncherAppState.smali
- @@ -332,7 +332,7 @@
- .catchall {:try_start_1 .. :try_end_1} :catchall_2
- .line 165
- - if-eqz v1, :cond_0
- + if-nez v1, :cond_0
- :try_start_2
- invoke-virtual {v1}, Landroid/content/ContentProviderClient;->close()V
- @@ -376,7 +376,7 @@
- move-object v0, v3
- :goto_2
- - if-eqz v1, :cond_2
- + if-nez v1, :cond_2
- :try_start_4
- invoke-virtual {v1}, Landroid/content/ContentProviderClient;->close()V
- diff --git a/smali/com/google/android/gms/common/internal/zzu$zza.smali b/smali/com/google/android/gms/common/internal/zzu$zza.smali
- index caed54f..5e5d5cd 100644
- --- a/smali/com/google/android/gms/common/internal/zzu$zza.smali
- +++ b/smali/com/google/android/gms/common/internal/zzu$zza.smali
- @@ -11,7 +11,7 @@
- const/4 v0, 0x0
- - if-eqz p0, :cond_1
- + if-nez p0, :cond_1
- const-string/jumbo v0, "com.google.android.gms.common.internal.IGmsServiceBroker"
- --
- 2.14.2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement