linuxct

Android O's Pixel Launcher OMR1-4113793 SMALI MODIFICATIONS

Jul 25th, 2017
3,659
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 8.92 KB | None | 0 0
  1. From c9f946899747efe7e6a92cb924fa42518e31f589 Mon Sep 17 00:00:00 2001
  2. From: LinuxCT <[email protected]>
  3. Date: Wed, 26 Jul 2017 01:49:23 +0200
  4. Subject: [PATCH] OMR1-4113793
  5.  
  6. ---
  7. AndroidManifest.xml                                        | 6 +++---
  8.  apktool.yml                                                | 6 +++---
  9.  res/values/colors.xml                                      | 1 +
  10.  res/values/styles.xml                                      | 5 +++--
  11.  res/xml/launcher_preferences.xml                           | 7 ++++---
  12.  smali/com/android/launcher3/LauncherAppState.smali         | 4 ++--
  13.  smali/com/google/android/gms/common/internal/zzu$zza.smali | 2 +-
  14.  7 files changed, 17 insertions(+), 14 deletions(-)
  15.  
  16. diff --git a/AndroidManifest.xml b/AndroidManifest.xml
  17. index b499f11..c82195c 100644
  18. --- a/AndroidManifest.xml
  19. +++ b/AndroidManifest.xml
  20. @@ -51,7 +51,7 @@
  21.              </intent-filter>
  22.          </activity>
  23.          <service android:exported="false" android:name="com.android.launcher3.dynamicui.ColorExtractionService" android:permission="android.permission.BIND_JOB_SERVICE" android:process=":wallpaper_chooser"/>
  24. -        <service android:enabled="@bool/notification_badging_enabled" android:name="com.android.launcher3.notification.NotificationListener" android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
  25. +        <service android:enabled="true" android:name="com.android.launcher3.notification.NotificationListener" android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
  26.              <intent-filter>
  27.                  <action android:name="android.service.notification.NotificationListenerService"/>
  28.              </intent-filter>
  29. @@ -87,7 +87,7 @@
  30.      <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
  31.      <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS"/>
  32.      <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
  33. -    <uses-feature android:name="com.google.android.feature.PIXEL_EXPERIENCE" android:required="true"/>
  34. +    <uses-feature android:name="com.google.android.feature.PIXEL_EXPERIENCE" android:required="false"/>
  35.      <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"/>
  36.      <uses-permission android:name="android.permission.CALL_PHONE"/>
  37.      <uses-permission android:name="android.permission.SET_WALLPAPER"/>
  38. @@ -97,4 +97,4 @@
  39.      <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
  40.      <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
  41.      <uses-permission android:name="android.permission.INTERNET"/>
  42. -</manifest>
  43. \ No newline at end of file
  44. +</manifest>
  45. diff --git a/apktool.yml b/apktool.yml
  46. index 572e01e..7626017 100644
  47. --- a/apktool.yml
  48. +++ b/apktool.yml
  49. @@ -1,5 +1,5 @@
  50.  !!brut.androlib.meta.MetaInfo
  51. -apkFileName: NexusLauncherPrebuilt-3.apk
  52. +apkFileName: NexusLauncherPrebuilt.apk
  53.  compressionType: false
  54.  doNotCompress:
  55.  - arsc
  56. @@ -8,7 +8,7 @@ packageInfo:
  57.    forcedPackageId: '127'
  58.    renameManifestPackage: null
  59.  sdkInfo:
  60. -  minSdkVersion: '21'
  61. +  minSdkVersion: '20'
  62.    targetSdkVersion: '26'
  63.  sharedLibrary: false
  64.  unknownFiles:
  65. @@ -21,4 +21,4 @@ usesFramework:
  66.  version: 2.2.3
  67.  versionInfo:
  68.    versionCode: '205'
  69. -  versionName: OMR1-4113793
  70. +  versionName: OMR1-4113793-mod
  71. diff --git a/res/values/colors.xml b/res/values/colors.xml
  72. index 6aa4468..0ee3748 100644
  73. --- a/res/values/colors.xml
  74. +++ b/res/values/colors.xml
  75. @@ -28,6 +28,7 @@
  76.      <color name="workspace_icon_text_color">#ffffffff</color>
  77.      <color name="workspace_edge_effect_color">#ffffffff</color>
  78.      <color name="default_shadow_color_no_alpha">#ff000000</color>
  79. +    <color name="quantum_panel_text_color">#ff666666</color>
  80.      <color name="outline_color">#ffffffff</color>
  81.      <color name="spring_loaded_panel_color">#40ffffff</color>
  82.      <color name="spring_loaded_highlighted_panel_border_color">#ffffffff</color>
  83. diff --git a/res/values/styles.xml b/res/values/styles.xml
  84. index eafd080..db8b8c6 100644
  85. --- a/res/values/styles.xml
  86. +++ b/res/values/styles.xml
  87. @@ -6,6 +6,7 @@
  88.          <item name="android:windowShowWallpaper">true</item>
  89.          <item name="android:colorBackgroundCacheHint">@null</item>
  90.          <item name="android:colorEdgeEffect">#ff757575</item>
  91. +        <item name="android:colorPrimary">#fff5f5f5</item>
  92.      </style>
  93.      <style name="LauncherTheme" parent="@style/BaseLauncherTheme" />
  94.      <style name="WidgetContainerTheme" parent="@android:style/Theme.DeviceDefault.Settings">
  95. @@ -27,8 +28,8 @@
  96.          <item name="android:elevation">3.0dip</item>
  97.      </style>
  98.      <style name="AllAppsNavBarProtection">
  99. -        <item name="android:background">@color/default_shadow_color_no_alpha</item>
  100. -        <item name="android:alpha">?android:spotShadowAlpha</item>
  101. +        <item name="android:background">?android:colorPrimary</item>
  102. +        <item name="android:alpha">0.6</item>
  103.      </style>
  104.      <style name="BaseIcon">
  105.          <item name="android:textColor">?android:textColorSecondary</item>
  106. diff --git a/res/xml/launcher_preferences.xml b/res/xml/launcher_preferences.xml
  107. index d197eb5..34aa12f 100644
  108. --- a/res/xml/launcher_preferences.xml
  109. +++ b/res/xml/launcher_preferences.xml
  110. @@ -4,8 +4,8 @@
  111.      <SwitchPreference android:title="@string/title_app_suggestions" android:key="pref_show_predictions" android:defaultValue="true" />
  112.      <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" />
  113.      <SwitchPreference android:persistent="true" android:title="@string/auto_add_shortcuts_label" android:key="pref_add_icon_to_home" android:summary="@string/auto_add_shortcuts_description" android:defaultValue="true" />
  114. -    <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" />
  115. -    <Preference android:persistent="false" android:title="@string/icon_badging_title" android:key="pref_icon_badging">
  116. +    <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" />
  117. +    <Preference android:persistent="true" android:title="@string/icon_badging_title" android:key="pref_icon_badging">
  118.          <intent android:action="android.settings.NOTIFICATION_SETTINGS">
  119.              <extra android:name=":settings:fragment_args_key" android:value="notification_badging" />
  120.          </intent>
  121. @@ -13,6 +13,7 @@
  122.  <SwitchPreference android:title="@string/allow_rotation_title" android:key="pref_allowRotation" android:defaultValue="@bool/allow_rotation" />
  123.      <PreferenceScreen android:title="@string/about">
  124.          <Preference android:persistent="false" android:title="@string/about_app_version" android:key="about_app_version" />
  125. +        <Preference android:persistent="false" android:title="Mod version" android:key="iamlinuxct" android:summary="4" />
  126.          <Preference android:persistent="false" android:title="@string/pref_open_source_licenses_title" android:key="open_source_licenses" />
  127.      </PreferenceScreen>
  128. -</PreferenceScreen>
  129. \ No newline at end of file
  130. +</PreferenceScreen>
  131. diff --git a/smali/com/android/launcher3/LauncherAppState.smali b/smali/com/android/launcher3/LauncherAppState.smali
  132. index 74e45e7..99866c7 100644
  133. --- a/smali/com/android/launcher3/LauncherAppState.smali
  134. +++ b/smali/com/android/launcher3/LauncherAppState.smali
  135. @@ -340,7 +340,7 @@
  136.      .catchall {:try_start_b .. :try_end_11} :catchall_3a
  137.  
  138.      .line 167
  139. -    if-eqz v1, :cond_16
  140. +    if-nez v1, :cond_16
  141.  
  142.      :try_start_13
  143.      invoke-virtual {v1}, Landroid/content/ContentProviderClient;->close()V
  144. @@ -384,7 +384,7 @@
  145.      move-object v0, v3
  146.  
  147.      :goto_23
  148. -    if-eqz v1, :cond_28
  149. +    if-nez v1, :cond_28
  150.  
  151.      :try_start_25
  152.      invoke-virtual {v1}, Landroid/content/ContentProviderClient;->close()V
  153. diff --git a/smali/com/google/android/gms/common/internal/zzu$zza.smali b/smali/com/google/android/gms/common/internal/zzu$zza.smali
  154. index 2a62471..7c5bc94 100644
  155. --- a/smali/com/google/android/gms/common/internal/zzu$zza.smali
  156. +++ b/smali/com/google/android/gms/common/internal/zzu$zza.smali
  157. @@ -11,7 +11,7 @@
  158.  
  159.      const/4 v0, 0x0
  160.  
  161. -    if-eqz p0, :cond_12
  162. +    if-nez p0, :cond_12
  163.  
  164.      const-string/jumbo v0, "com.google.android.gms.common.internal.IGmsServiceBroker"
  165.  
  166. --
  167. 2.13.3
Advertisement
Add Comment
Please, Sign In to add comment