[BACKPORT][6.0.1+] Pixel Launcher O-3952143 v2

Status
Not open for further replies.
Search This thread

BatZzn

Senior Member
Nov 20, 2011
547
130
@linuxct I hope ive done everything right and you can see what's the problem in the log I attached.
 

Attachments

  • 2017-05-26-22-38-22.txt
    12.9 KB · Views: 78
  • Like
Reactions: linuxct

linuxct

Recognized Contributor & Social Contributor
@linuxct I hope ive done everything right and you can see what's the problem in the log I attached.

Code:
05-26 22:37:24.581 W/OpenGLRenderer(4382): Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
05-26 22:37:24.581 W/OpenGLRenderer(4382): Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
05-26 22:37:26.650 I/ActivityManager(896): Start proc 21161:com.google.android.googlequicksearchbox:crash_report/u0a49 for broadcast com.google.android.googlequicksearchbox/com.google.android.apps.gsa.silentfeedback.SilentFeedbackReceiver
05-26 22:37:26.755 E/AndroidRuntime(19668): FATAL EXCEPTION: main
05-26 22:37:26.755 E/AndroidRuntime(19668): Process: com.google.android.googlequicksearchbox:search, PID: 19668
05-26 22:37:26.755 E/AndroidRuntime(19668): java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources$Theme android.content.Context.getTheme()' on a null object reference
05-26 22:37:26.755 E/AndroidRuntime(19668): 	at android.app.AlertDialog.resolveDialogTheme(AlertDialog.java:222)
05-26 22:37:26.755 E/AndroidRuntime(19668): 	at android.app.AlertDialog$Builder.<init>(AlertDialog.java:452)
05-26 22:37:26.755 E/AndroidRuntime(19668): 	at com.google.android.apps.gsa.plugins.recents.monet.b.o.onValueChanged(Unknown Source)
05-26 22:37:26.755 E/AndroidRuntime(19668): 	at com.google.android.apps.gsa.plugins.recents.monet.shared.a.b.a(SourceFile:62)
05-26 22:37:26.755 E/AndroidRuntime(19668): 	at com.google.android.libraries.gsa.monet.tools.a.f.onModelUpdate(SourceFile:2)
05-26 22:37:26.755 E/AndroidRuntime(19668): 	at com.google.android.libraries.gsa.monet.internal.shared.a.aZ(SourceFile:28)
05-26 22:37:26.755 E/AndroidRuntime(19668): 	at com.google.android.apps.gsa.shared.monet.g.onServiceEvent(SourceFile:112)
05-26 22:37:26.755 E/AndroidRuntime(19668): 	at com.google.android.apps.gsa.search.shared.service.ag.call(SourceFile:7)
05-26 22:37:26.755 E/AndroidRuntime(19668): 	at com.google.android.apps.gsa.search.shared.service.af.run(SourceFile:2)
05-26 22:37:26.755 E/AndroidRuntime(19668): 	at android.os.Handler.handleCallback(Handler.java:751)
05-26 22:37:26.755 E/AndroidRuntime(19668): 	at android.os.Handler.dispatchMessage(Handler.java:95)
05-26 22:37:26.755 E/AndroidRuntime(19668): 	at android.os.Looper.loop(Looper.java:154)
05-26 22:37:26.755 E/AndroidRuntime(19668): 	at android.app.ActivityThread.main(ActivityThread.java:6186)
05-26 22:37:26.755 E/AndroidRuntime(19668): 	at java.lang.reflect.Method.invoke(Native Method)
05-26 22:37:26.755 E/AndroidRuntime(19668): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
05-26 22:37:26.755 E/AndroidRuntime(19668): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
...
Code:
05-26 22:37:28.578 D/ActivityManager(896): cleanUpApplicationRecord -- 19668
05-26 22:37:28.579 W/ActivityManager(896): Scheduling restart of crashed service com.google.android.googlequicksearchbox/com.google.android.apps.gsa.nowoverlayservice.DrawerOverlayService in 10510ms
05-26 22:37:28.580 W/ActivityManager(896): Scheduling restart of crashed service com.google.android.googlequicksearchbox/com.google.android.apps.gsa.search.core.service.SearchService in 20510ms
05-26 22:37:28.640 W/InputDispatcher(896): channel '76be0d6 com.google.android.apps.nexuslauncher/com.google.android.apps.nexuslauncher.NexusLauncherActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
05-26 22:37:28.640 E/InputDispatcher(896): channel '76be0d6 com.google.android.apps.nexuslauncher/com.google.android.apps.nexuslauncher.NexusLauncherActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
05-26 22:37:28.641 I/WindowManager(896): WIN DEATH: Window{76be0d6 u0 com.google.android.apps.nexuslauncher/com.google.android.apps.nexuslauncher.NexusLauncherActivity}
05-26 22:37:28.642 W/InputDispatcher(896): Attempted to unregister already unregistered input channel '76be0d6 com.google.android.apps.nexuslauncher/com.google.android.apps.nexuslauncher.NexusLauncherActivity (server)'

Fault's on Google's side, I'm afraid. It's GoogleQuickSearchBox that crashes, not the launcher. Are you running a beta version of Google Search?
 

dramalicious

Senior Member
Jul 10, 2014
297
80
33
Ploiesti
@linuxct Hi man. I use an Nexus5 device, latest DU. I really like the Pixel Launcher but here, i have only 4 icon collumns. And icons seams really big. All pictures of Pixel Launcher show 5 columns and smaller icons. Can i do something about this? Tnx in advance :)
 

linuxct

Recognized Contributor & Social Contributor
@linuxct Hi man. I use an Nexus5 device, latest DU. I really like the Pixel Launcher but here, i have only 4 icon collumns. And icons seams really big. All pictures of Pixel Launcher show 5 columns and smaller icons. Can i do something about this? Tnx in advance :)

It's because of your DPIs, try to make them smaller (with Android's built-in option is fine, if you're running N) and it should go 5 columns instead of 4.
 
  • Like
Reactions: dramalicious

ainaz

Senior Member
Apr 25, 2013
178
33
Tasikmalaya (Indonesia)
Any one here know how to change color of app drawer background on preview 2 O-3952143???

(Sorry about this topic)
Sent from my htc_m8 using XDA Labs
 
Last edited:

linuxct

Recognized Contributor & Social Contributor
Any one here know how to change color of app drawer background on preview 2 O-3952143???

You mean, change the blueish color to white in Assmung Samsung devices? That's already fixed in v2.
Also, if you've a look in the SMALI MODIFICATIONS v2 link, you can check all the files that were modified in order to get that white background (styles.xml, colors.xml, etc).
 
  • Like
Reactions: Sachin

ainaz

Senior Member
Apr 25, 2013
178
33
Tasikmalaya (Indonesia)
You mean, change the blueish color to white in Assmung Samsung devices? That's already fixed in v2.
Also, if you've a look in the SMALI MODIFICATIONS v2 link, you can check all the files that were modified in order to get that white background (styles.xml, colors.xml, etc).
Yea, I mean is change the color app background to be transparency. The screenshot below is pixel launcher which I downloaded from playStore 7.1.1 and I modify with apktooll : res/values/color.xml, line all_apps_container_color. that i have changed to 55% transparency. But on preview 2 I don't find it.
Sorry for my explanation and my bad English :D

Sent from my htc_m8 using XDA Labs
 

ainaz

Senior Member
Apr 25, 2013
178
33
Tasikmalaya (Indonesia)
You mean, change the blueish color to white in Assmung Samsung devices? That's already fixed in v2.
Also, if you've a look in the SMALI MODIFICATIONS v2 link, you can check all the files that were modified in order to get that white background (styles.xml, colors.xml, etc).
Yea, I mean is change the color app background to be transparency. The screenshot below is pixel launcher which I downloaded from playStore 7.1.1 and I modify with apktooll : res/values/color.xml, line all_apps_container_color. that i have changed to 55% transparency. But on preview 2 I don't find it.
Sorry for my explanation and my bad English :D


Sent from my htc_m8 using XDA Labs
 

Attachments

  • Screenshot_20170527-121553.jpg
    Screenshot_20170527-121553.jpg
    160.9 KB · Views: 420

anuraganasane

Senior Member
Feb 8, 2017
790
151
Yea, I mean is change the color app background to be transparency. The screenshot below is pixel launcher which I downloaded from playStore 7.1.1 and I modify with apktooll : res/values/color.xml, line all_apps_container_color. that i have changed to 55% transparency. But on preview 2 I don't find it.
Sorry for my explanation and my bad English :D
How did u change the transparency to 55%? Elaborate please.
 
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 163
    Once again... The title says it all.
    This is my second attempt to make a fully functional backport of the Google Pixel launcher from Android O Public Beta 1 (a.k.a. Developer Preview 2). Like last time, I saw people complaining in APKmirror's Disqus thread, and even got some PMs asking me to please port the launcher, so here it is.

    This hasn't been a 'quick backport' like last time, because turns out Google Play Services now verifies the signature of the packages (yes, you can't mod anything that was originally signed by Google anymore), and, if the signature doesn't match, gms makes the app crash. Providing this, I had to reverse-engineer the gms portion included inside the Launcher with no help from the stacktrace at all, since it displays (Unknown source) inside it. Have this as example:
    Code:
    05-18 10:57:13.561  9540  9540 E AndroidRuntime: java.lang.SecurityException: Signature check failed for com.google.android.apps.nexuslauncher
    05-18 10:57:13.561  9540  9540 E AndroidRuntime:        at android.os.Parcel.readException(Parcel.java:1620)
    05-18 10:57:13.561  9540  9540 E AndroidRuntime:        at android.os.Parcel.readException(Parcel.java:1573)
    05-18 10:57:13.561  9540  9540 E AndroidRuntime:        at [B]com.google.android.gms.common.internal.o.zza[/B](Unknown Source)
    05-18 10:57:13.561  9540  9540 E AndroidRuntime:        at [B]com.google.android.gms.common.internal.x.fs[/B](Unknown Source)
    05-18 10:57:13.561  9540  9540 E AndroidRuntime:        at com.google.android.gms.internal.cy.yQ(Unknown Source)
    05-18 10:57:13.561  9540  9540 E AndroidRuntime:        at com.google.android.gms.internal.bQ.run(Unknown Source)
    05-18 10:57:13.561  9540  9540 E AndroidRuntime:        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)
    05-18 10:57:13.561  9540  9540 E AndroidRuntime:        at java.util.concurrent.FutureTask.run(FutureTask.java:237)
    05-18 10:57:13.561  9540  9540 E AndroidRuntime:        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
    05-18 10:57:13.561  9540  9540 E AndroidRuntime:        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
    05-18 10:57:13.561  9540  9540 E AndroidRuntime:        at com.google.android.gms.internal.bk.run(Unknown Source)
    05-18 10:57:13.561  9540  9540 E AndroidRuntime:        at java.lang.Thread.run(Thread.java:818)
    05-18 10:57:13.562  2070  2952 W ActivityManager:   Force finishing activity com.google.android.apps.nexuslauncher/.NexusLauncherActivity
    I started working on com.google.android.gms.common.internal.o.zza with barely any luck, when, modifying a single const/v4 made Android reject the class, and revealing the actual class that was calling it inside a new stacktrace, which was actually com.google.android.gms.common.internal.zzu$zza. From there I just made the function not to jump inside the call to ...internal.o.zza, and voilà. It works with no signature verification. I had to spend almost 2 hours, but it's been worth it :victory:

    I've tested the application in my SHIELD Tablet running official LineageOS 13.0 nightlies, as well as in my Wileyfox Swift 2 with Android 7.1.1, and seems to be working like a charm with latest Google Play Services installed.
    However, like last time I'd like to roll call all of you to please, test it and report back with any issue you find.

    A NEW VERSION HAS BEEN RELEASED, FIXING THE BLUE BACKGROUND ISSUE AS WELL AS SOME FEATURES, CHECK IT OUT HERE!

    DOWNLOAD LINK
    SMALI MODIFICATIONS (v2)

    NOTE:
    - DO NOT MIRROR MY FILES, please.
    - The background color of the App Drawer might be blue in some ROMs. This is not a bug on my side, and it's how Google did it. Fixed in v2.
    - The apk, like last time, has been signed with my own key, so uninstall any previous versions before installing this one ;)
    - Do you want to get Android O emojis too? Check this out.
    - ... and no, there's no reflection.engine crashes anymore :laugh:

    Special thanks to P4Block for having to hear me screaming when the code doesn't work, and Jose (in case you read this), now you know why I was freaking out early today :silly:
    38
    NEW VERSION v2 NOW AVAILABLE!!

    Hello everyone,

    After a busy weekend I've finished a new version (v2) of the Pixel Launcher O-3952143 backport. Please, note the following:
    All Android O features have been "enabled" by changing the isAtLeastO boolean method to always "yes", but due to API limits, they are NOT working.
    You can have a look in the Android Developer website regarding both Custom Icons as well as why Notification Dots aren't ever going to work unless you have O.

    However, I've also (hopefully) fixed the blue background color of the app drawer bug. Now it's the same as in previous versions.

    DOWNLOAD LINK
    SMALI MODIFICATIONS (v2)

    Enjoy!
    17
    Why only Android 6 ???
    The original APK is for Android 5
    Why ??? Android 5 doesn't exist or WTF ??
    thats why alcohol/weed is bad for health ;)
    15
    Status update:

    z4uOOch.png



    I'm starting to get things working now. Customizable icons probably won't work for now because of this: https://developer.android.com/reference/android/graphics/drawable/AdaptiveIconDrawable.html
    I'm still trying to look for a solution. Also, I'm enabling everything that is "Android O only" in the code by changing all references to isAtLeastO.
    Next thing I'll try is notification dots, and after that, adress the blue background (I have an idea on how to fix it, but no promises).
    14
    Discussion will continue in the new version thread: Pixel Launcher ODR-4023749 backport.
    I'll close this thread, but it can be reopened upon request PMing me.