• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[PIE][PORT][Non-root][PILL] Xperia 10 and 10 plus launcher + Fo Xperia XA2 Pie

Search This thread

serajr

Recognized Developer / Recognized Themer
Apr 21, 2011
5,022
18,618
São Paulo - SP
Launcher works flawlessly sir one more thing can u add swipe down to show notification bar?
Thank you so much for your feedback! :good:
The mention feature was supposed to work. I actually didn't try it out (my bad).
I rooted my phone again, so I need a logcat. Please try to generate it right after swiping down on the home screen (even without any apparent problems). Maybe something still needs to be fixed.
 

raziel zarafan

Senior Member
Nov 23, 2014
192
51
31
México
Thank you so much for your feedback! :good:
The mention feature was supposed to work. I actually didn't try it out (my bad).
I rooted my phone again, so I need a logcat. Please try to generate it right after swiping down on the home screen (even without any apparent problems). Maybe something still needs to be fixed.

bro i found another fc when entry to any app then press home button launcher fc heres the logcat

---------- Post added at 03:15 PM ---------- Previous post was at 03:10 PM ----------

Thank you so much for your feedback! :good:
The mention feature was supposed to work. I actually didn't try it out (my bad).
I rooted my phone again, so I need a logcat. Please try to generate it right after swiping down on the home screen (even without any apparent problems). Maybe something still needs to be fixed.

heres the logcat when a swipedown on homescreen
 

Attachments

  • catlog2.txt
    505.8 KB · Views: 11
  • swipedownlogcat.txt.zip
    92.1 KB · Views: 8
Last edited:
  • Like
Reactions: serajr

serajr

Recognized Developer / Recognized Themer
Apr 21, 2011
5,022
18,618
São Paulo - SP
bro i found another fc when entry to any app then press home button launcher fc heres the logcat

---------- Post added at 03:15 PM ---------- Previous post was at 03:10 PM ----------



heres the logcat when a swipedown on homescreen

Thanks mate!
Fixed fc only for the moment ok. New and fixed apk will always stay >> here <<
Gonna verify swipe down action when possible!

Also, great news to android 9 users. I got it working on my wife's XA2 Ultra. Gonna release it soon (at the same android 10 post).
 
Last edited:

Twistabeatz

Member
Jul 18, 2019
14
4
Thanks mate!
Fixed fc only for the moment ok. New and fixed apk will always stay >> here <<
Gonna verify swipe down action when possible!

Also, great news to android 9 users. I got it working on my wife's XA2 Ultra. Gonna release it soon (at the same android 10 post).


same problem here. everytime I return on the home screen after opening an app it crashes. here my logcat.

02-23 18:58:38.412 13862 13862 E AndroidRuntime: FATAL EXCEPTION: main
02-23 18:58:38.412 13862 13862 E AndroidRuntime: Process: com.android.launcher3, PID: 13862
02-23 18:58:38.412 13862 13862 E AndroidRuntime: java.lang.NoSuchMethodError: No static method createHardwareBitmap(Landroid/graphics/GraphicBuffer;)Landroid/graphics/Bitmap; in class Landroid/graphics/Bitmap; or its super classes (declaration of 'android.graphics.Bitmap' appears in /system/framework/framework.jar)
02-23 18:58:38.412 13862 13862 E AndroidRuntime: at com.android.systemui.shared.recents.model.ThumbnailData.<init>(ThumbnailData.java:36)
02-23 18:58:38.412 13862 13862 E AndroidRuntime: at com.android.systemui.shared.system.TaskStackChangeListeners$H.handleMessage(TaskStackChangeListeners.java:250)
02-23 18:58:38.412 13862 13862 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:107)
02-23 18:58:38.412 13862 13862 E AndroidRuntime: at android.os.Looper.loop(Looper.java:359)
02-23 18:58:38.412 13862 13862 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7418)
02-23 18:58:38.412 13862 13862 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
02-23 18:58:38.412 13862 13862 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
02-23 18:58:38.412 13862 13862 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)
02-23 18:58:38.414 1801 7009 D ActivityManager: New dropbox entry: com.android.launcher3, data_app_crash, 9d02083e-8033-405f-a2c3-947169f1023d
02-23 18:58:38.414 1801 7009 W ActivityTaskManager: Force finishing activity com.android.launcher3/com.sonymobile.launcher.XperiaLauncher
02-23 18:58:38.414 1801 13900 I DropBoxManagerService: add tag=data_app_crash isTagEnabled=true flags=0x2
02-23 18:58:38.417 13862 13862 I Process : Sending signal. PID: 13862 SIG: 9
02-23 18:58:38.424 1801 1835 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
02-23 18:58:38.424 1801 1835 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
02-23 18:58:38.426 1287 1388 I chatty : uid=1000(system) Thread: Generic expire 27 lines
02-23 18:58:38.444 1801 3962 I ActivityManager: Process com.android.launcher3 (pid 13862) has died: vis TOP
 
  • Like
Reactions: serajr

raziel zarafan

Senior Member
Nov 23, 2014
192
51
31
México
Thanks mate!
Fixed fc only for the moment ok. New and fixed apk will always stay >> here <<
Gonna verify swipe down action when possible!

Also, great news to android 9 users. I got it working on my wife's XA2 Ultra. Gonna release it soon (at the same android 10 post).

Thanks bro for u quickly answer I found another Fc here's the logcat
 

Attachments

  • newlocat.txt
    224.5 KB · Views: 7
  • Like
Reactions: serajr

user26335377

Member
Jan 13, 2020
30
7
Also, great news to android 9 users. I got it working on my wife's XA2 Ultra. Gonna release it soon (at the same android 10 post).

Hello, serajr and big thanks for your work!
I tried to recompile your latest apk (12) with min sdk changed to 28 and installed it on my XZ1C with last stock Pie firmware. Launcher works, but I have some questions:
1. What about gestures on Pie? I know, that you can't get gestures on Q, but the Sahaab's port replaces stock recent's provider with its own. We can get something similar using quickswitch module on rooted devices, but it means that it's possible to use another recent's provider without root.
2. Option to change icon shape is unavailable in launcher's settings. Was it removed in the new launcher?
Thanks in advanced
 

serajr

Recognized Developer / Recognized Themer
Apr 21, 2011
5,022
18,618
São Paulo - SP
Hello, serajr and big thanks for your work!
I tried to recompile your latest apk (12) with min sdk changed to 28 and installed it on my XZ1C with last stock Pie firmware. Launcher works, but I have some questions:
1. What about gestures on Pie? I know, that you can't get gestures on Q, but the Sahaab's port replaces stock recent's provider with its own. We can get something similar using quickswitch module on rooted devices, but it means that it's possible to use another recent's provider without root.
2. Option to change icon shape is unavailable in launcher's settings. Was it removed in the new launcher?
Thanks in advanced
All the time spent here on coding is trying to provide users with a non-root version of the latest xperia 5 android 10 launcher.
If you're on a rooted device, you don't even have to change the apk package name! Hacks go in the other files, and everything works great (take a look at my magisk module, some pages ago)!
I'm still waiting for Sahaab's answer (as you can see a few pages ago), but nothing!
I also changed the name and permissions of the provider in the manifest file (look for serajr in the xml)!
I didn't remove anything from the launcher, but I changed/replaced some functions, in several smali files.
Are you on a root device (android 9)?

Wanna know why gestures won't work on android 10 with custom launchers, without root?
The function isGestureNavSupportedByDefaultLauncher literally just checks if the launcher is a system app or not!
(taken from android 10 SystemUI's code, as you can see >> here <<)
PHP:
/**
     * Returns null if there is no default launcher set for the current user. Returns true if the
     * current default launcher supports Gesture Navigation. Returns false otherwise.
     */
    private Boolean isGestureNavSupportedByDefaultLauncher(Context context) {
        final String defaultLauncherPackageName = getDefaultLauncherPackageName(context);
        if (DEBUG) {
            Log.d(TAG, "isGestureNavSupportedByDefaultLauncher:"
                    + " defaultLauncher=" + defaultLauncherPackageName
                    + " contextUser=" + context.getUserId());
        }
        if (defaultLauncherPackageName == null) {
            return null;
        }
        if (isSystemApp(context, defaultLauncherPackageName)) {
            return true;
        }
        return false;
    }

    private String getDefaultLauncherPackageName(Context context) {
        final ComponentName cn = context.getPackageManager().getHomeActivities(new ArrayList<>());
        if (cn == null) {
            return null;
        }
        return cn.getPackageName();
    }

    /** Returns true if the app for the given package name is a system app for this device */
    private boolean isSystemApp(Context context, String packageName) {
        try {
            ApplicationInfo ai = context.getPackageManager().getApplicationInfo(packageName,
                    PackageManager.GET_META_DATA);
            return ai != null && ((ai.flags & SYSTEM_APP_MASK) != 0);
        } catch (PackageManager.NameNotFoundException e) {
            return false;
        }
    }

Yes, it was removed. But in Android 10, icons shape can be changed in the developper options.
Exactly!
 
Last edited:

user26335377

Member
Jan 13, 2020
30
7
Are you on a root device (android 9)?
No, I'm on stock latest firmware without root and with locked bootloader.
When I mentioned about magisk module I want say, that with this module users even on Pie can run gestures from Q.
I think that if with this module users can replace default recent's provider to another from launcher and if in the Sahaab's port recent's provider also replaced, it's possible to replace default recent's provider and navigation bar with your port to. I know that in Q gesture settings was changed and can't be enabled without root, but what about Pie?
 
  • Like
Reactions: serajr

serajr

Recognized Developer / Recognized Themer
Apr 21, 2011
5,022
18,618
São Paulo - SP
No, I'm on stock latest firmware without root and with locked bootloader.
When I mentioned about magisk module I want say, that with this module users even on Pie can run gestures from Q.
I think that if with this module users can replace default recent's provider to another from launcher and if in the Sahaab's port recent's provider also replaced, it's possible to replace default recent's provider and navigation bar with your port to. I know that in Q gesture settings was changed and can't be enabled without root, but what about Pie?
"Sahaab's port recent's provider also replaced" that's why I asked him for help. But if you know where/what needs to be changed, please, let me know.
I remember I've also changed at least 3 smali files to get the launcher working on android 9, along with minSdkVersion to 28 ofc.
Here is the apk to android 9 as I mentioned before. Good luck!

Edit. I needed to remove the apk to avoid confusing the android version!
 
Last edited:
  • Like
Reactions: user26335377

Doume®®®

Member
Jun 12, 2016
48
8
Paris
"Sahaab's port recent's provider also replaced" that's why I asked him for help. But if you know where/what needs to be changed, please, let me know.
I remember I've also changed at least 3 smali files to get the launcher working on android 9, along with minSdkVersion to 28 ofc.
Here is the apk to android 9 as I mentioned before. Good luck!
Hello,
I tried this apk on my XZ3 with android 10. And it's working
 

serajr

Recognized Developer / Recognized Themer
Apr 21, 2011
5,022
18,618
São Paulo - SP
same problem here. everytime I return on the home screen after opening an app it crashes. here my logcat.

02-23 18:58:38.412 13862 13862 E AndroidRuntime: FATAL EXCEPTION: main
02-23 18:58:38.412 13862 13862 E AndroidRuntime: Process: com.android.launcher3, PID: 13862
02-23 18:58:38.412 13862 13862 E AndroidRuntime: java.lang.NoSuchMethodError: No static method createHardwareBitmap(Landroid/graphics/GraphicBuffer;)Landroid/graphics/Bitmap; in class Landroid/graphics/Bitmap; or its super classes (declaration of 'android.graphics.Bitmap' appears in /system/framework/framework.jar)
02-23 18:58:38.412 13862 13862 E AndroidRuntime: at com.android.systemui.shared.recents.model.ThumbnailData.<init>(ThumbnailData.java:36)
02-23 18:58:38.412 13862 13862 E AndroidRuntime: at com.android.systemui.shared.system.TaskStackChangeListeners$H.handleMessage(TaskStackChangeListeners.java:250)
02-23 18:58:38.412 13862 13862 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:107)
02-23 18:58:38.412 13862 13862 E AndroidRuntime: at android.os.Looper.loop(Looper.java:359)
02-23 18:58:38.412 13862 13862 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7418)
02-23 18:58:38.412 13862 13862 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
02-23 18:58:38.412 13862 13862 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
02-23 18:58:38.412 13862 13862 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)
02-23 18:58:38.414 1801 7009 D ActivityManager: New dropbox entry: com.android.launcher3, data_app_crash, 9d02083e-8033-405f-a2c3-947169f1023d
02-23 18:58:38.414 1801 7009 W ActivityTaskManager: Force finishing activity com.android.launcher3/com.sonymobile.launcher.XperiaLauncher
02-23 18:58:38.414 1801 13900 I DropBoxManagerService: add tag=data_app_crash isTagEnabled=true flags=0x2
02-23 18:58:38.417 13862 13862 I Process : Sending signal. PID: 13862 SIG: 9
02-23 18:58:38.424 1801 1835 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
02-23 18:58:38.424 1801 1835 W BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x10 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
02-23 18:58:38.426 1287 1388 I chatty : uid=1000(system) Thread: Generic expire 27 lines
02-23 18:58:38.444 1801 3962 I ActivityManager: Process com.android.launcher3 (pid 13862) has died: vis TOP

Thanks bro for u quickly answer I found another Fc here's the logcat
New apk (post #519).
 

user26335377

Member
Jan 13, 2020
30
7
  • Like
Reactions: serajr

Doume®®®

Member
Jun 12, 2016
48
8
Paris

Attachments

  • Screenshot_20200224-152659.jpg
    Screenshot_20200224-152659.jpg
    172.3 KB · Views: 419

SemoB

New member
Feb 24, 2020
1
0
Hi, is there any way to retain the search bar and Dock in Recent Apps while using a 3rd party launcher? I want to use Nova because the Xperia 10 launcher doesn't support resizing Widgets, but I also want to have the Dock and search bar in the Recent Apps page.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 85
    Xperia finally updated their launcher!

    Hey, so it has been a long long time since I have posted or even ported anything.

    Finally, xperia updated the launcher and it was a must port for me.

    The launcher should theoretically work on all xperia devices with android Pie (and sony software). I have currently tested it on Xperia XZP. You can also activate pill via an adb command.

    Steps

    Simply install the apk and then install the wallpaper apk and then reboot

    If you want pill, you must use adb with your device.
    I will not be explaining how to use adb, there are many guides out there.
    But to activate pill simply use this adb command
    Code:
    adb shell settings put secure swipe_up_to_switch_apps_enabled 1

    p.s the launcher will not override sony's built in launcher. But you cannot use Launcher3(Quickstep launcher) with it. The package name is com.android.launcher3.

    FOR XPERIA XA2

    Devices:
    Working :-
    Xperia XZ1
    Xperia XZP
    Xperia XZ2
    Xperia XZ3

    Not Working :- (Testing needs to be done to get the app working on these, logcats also need to be provided)
    Known bugs :-
    Split screen causes force closeFixed v1.1
    Force Close on rotating Fixed v1.2
    More than 1 page in folder FC on rearrange Fixed v1.5
    App split shortcut not working

    VERSIONS
    v1.3 If you plan on using pill with this launcher, this one might be the most stable option for you. Navbar replacement/shortcut apps should work with this as long as this launcher is the default (App close animation had to be slightly altered).

    v1.4.1 first of all, both have recents working without pill

    v1.4.2 second version has recents working with other launchers, but to do this, i had to remove app opening animation(not the gesture) from the recent, so If this is something you cant live without, go with v1.4.1, but if you wanna use other launchers, then this is the version you want


    Hope you all enjoy it as much as i am.

    Don't forget thanks button and feel free to donate

    Thanks @TakuyaZ for providing the apks from the system dumps (and motivating me ;) )

    Lastly, please do not use or repost my work without authorization, as this port was done for me and for a friend, took me at least 8 hours of constant work to get it to work properly and was not as easy and simple as copying from a system dump and uploading it and simply calling it a port.
    11
    how can i root my xz2?
    1st - https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/
    2nd - https://forum.xda-developers.com/xperia-xz2/how-to/how-to-root-xz2-probably-xz2c-android-10-t4030775
    (android 10)

    here is my logcat bro i hope it helps
    Thank you so much. Ofc it helps (gonna check it out) :good:
    Maybe today I may fresh install my xz2 and keep it unrooted, in order to try fixing all the remaining issues!

    Edit. Got launcher working on my unrooted XZ2. Stay tunned!

    Edit 2. Attached below is the working Xperia 5 Launcher for non-rooted android 10 devices (XZ2/C/P and XZ3 - Sony stock firmware ONLY), as well the proper WallpaperPicker.apk (11/12/13/... in the apk's title means the quantity of fixes I've made on it)!
    But I can't get the two buttons and/or gestural modes working (commands >> here <<)! Maybe someone could help on this.

    If you face any other fc/issue, please, do report with the "how to reproduce the issue" and the proper logcat, otherwise I cannot help out!

    Some reports are welcome, please do that!
    Enjoy it.
    6
    @Sahaab
    I ported the Xperia 5 android Q (10) launcher to work on non-rooted devices, but I couldn't get the gestures (pill) to work. Did you change anything in the sources (smali) to make the pill work?
    In addition, I got the launcher working on my XZ1 running Android Pie (9) - distinct apk version.
    I may share the apks later, if I get everything working.

    With root, it's easy to make it work, as you can see here (My exposed module will be released soon).

    Tia!
    5
    Update
    v1.3

    - Can launch recents via other apps (e.g some shortcut manager or nav bar apps, etc)
    - Recents launch from other launchers does not FC anymore, and it opens up, but clicking on a recent says that App isnt available, so other launcher support still not there
    4
    I myself have noticed the split screen bug, i will fix it tomorrow