yashsingh1/xdaforums huggingface dataset:
[Sony Cross-Device Development Themes and Apps] kevindeoz:
I have a logcat for you sir View attachment logcat.zip

I've found this, maybe is useful

02-20 05:42:44.118 21375 21375 E AndroidRuntime: FATAL EXCEPTION: main
02-20 05:42:44.118 21375 21375 E AndroidRuntime: Process: com.android.launcher3, PID: 21375
02-20 05:42:44.118 21375 21375 E AndroidRuntime: java.lang.NoSuchMethodError: No static method setContextPriority(I)V in class Landroid/view/ThreadedRenderer; or its super classes (declaration of 'android.view.ThreadedRenderer' appears in /system/framework/framework.jar!classes3.dex)
02-20 05:42:44.118 21375 21375 E AndroidRuntime:	at com.android.systemui.shared.system.ThreadedRendererCompat.setContextPriority(ThreadedRendererCompat.java:31)
02-20 05:42:44.118 21375 21375 E AndroidRuntime:	at com.android.quickstep.QuickstepProcessInitializer.init(QuickstepProcessInitializer.java:65)
02-20 05:42:44.118 21375 21375 E AndroidRuntime:	at com.android.launcher3.MainProcessInitializer.initialize(MainProcessInitializer.java:34)
02-20 05:42:44.118 21375 21375 E AndroidRuntime:	at com.android.launcher3.LauncherProvider.onCreate(LauncherProvider.java:135)
02-20 05:42:44.118 21375 21375 E AndroidRuntime:	at android.content.ContentProvider.attachInfo(ContentProvider.java:2092)
02-20 05:42:44.118 21375 21375 E AndroidRuntime:	at android.content.ContentProvider.attachInfo(ContentProvider.java:2066)
02-20 05:42:44.118 21375 21375 E AndroidRuntime:	at android.app.ActivityThread.installProvider(ActivityThread.java:7045)
02-20 05:42:44.118 21375 21375 E AndroidRuntime:	at android.app.ActivityThread.installContentProviders(ActivityThread.java:6590)
02-20 05:42:44.118 21375 21375 E AndroidRuntime:	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6485)
02-20 05:42:44.118 21375 21375 E AndroidRuntime:	at android.app.ActivityThread.access$1300(ActivityThread.java:225)
02-20 05:42:44.118 21375 21375 E AndroidRuntime:	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1865)
02-20 05:42:44.118 21375 21375 E AndroidRuntime:	at android.os.Handler.dispatchMessage(Handler.java:107)
02-20 05:42:44.118 21375 21375 E AndroidRuntime:	at android.os.Looper.loop(Looper.java:359)
02-20 05:42:44.118 21375 21375 E AndroidRuntime:	at android.app.ActivityThread.main(ActivityThread.java:7418)
02-20 05:42:44.118 21375 21375 E AndroidRuntime:	at java.lang.reflect.Method.invoke(Native Method)
02-20 05:42:44.118 21375 21375 E AndroidRuntime:	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
02-20 05:42:44.118 21375 21375 E AndroidRuntime:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)
[Sony Cross-Device Development Themes and Apps] serajr:
Edit!
[Sony Cross-Device Development Themes and Apps] Animangacolor:
what can i do with logout?
[Sony Cross-Device Development Themes and Apps] raziel zarafan:
Bro the app don't work don't show any crashes but when I want to use like home old home is activated
[Sony Cross-Device Development Themes and Apps] serajr:
Thanks for the feedback. If the launcher is not showing up, something's still happening, even in background, and I still need the logcat to try fix things up!

Anyone else (same behavior)? 35+ downloads...
[Sony Cross-Device Development Themes and Apps] Doume®®®:
Hello,

For me, XZ3, same issue.

I can install, but crashes.

How to have the logcat?

Thanks a lot for your work
[Sony Cross-Device Development Themes and Apps] ZZ1268:
I have rooted my phone and installed QuickSwitch. The Launcher that you have sent works flawlessly.
[Sony Cross-Device Development Themes and Apps] serajr:
Yeah mate, on rooted phones it does work great!

But for my rooted XZ2 I've created a magisk module which also enables navigation gestures in settings, and more.

If you wanna give it a try, uninstall the modded apk and reboot your phone.

Install my magisk module from >> here <<.

I'll also release my xposed module with a bunch of new home launcher features, as you can see >> here << (stay tuned)!
[Sony Cross-Device Development Themes and Apps] serajr:
Thanks mate! Gonna check it out!
[Sony Cross-Device Development Themes and Apps] Animangacolor:
How can i root my xz2?
[Sony Cross-Device Development Themes and Apps] Nitid_boss:
II want to turn on Android gestures in a non-root XZ2.
[Sony Cross-Device Development Themes and Apps] serajr:
Thank you!

Fixed version attached, please give it a try! Last chance?

Edit. Apk removed!
[Sony Cross-Device Development Themes and Apps] Doume®®®:
Thanks a lot for your work.

Not working on my XZ3.

I can install it. But when I select it, nothing happen. And after 2 or 3 times select it crashes.

Sorry, I don't know how to get the logcat with adb command on my computer.
[Sony Cross-Device Development Themes and Apps] raziel zarafan:
The same for me bro on xz2 premium
[Sony Cross-Device Development Themes and Apps] Doume®®®:
With the first port Xperia 10 launcher. Wallpaper picker was needed.

For xperia 5 launcher, maybe we need an app more like this
[Sony Cross-Device Development Themes and Apps] serajr:
You can install the wallpaper picker as you mentioned, but it won't help at all (at least for the moment).

The problem is that, on non rooted phones, some functions in the launcher - which call other internal/shared android functions - are not allowed by the system!

So basically my work on fixing up things here is, to rewrite/bypass those functions and try calling only public api. Waiting for some logs.
[Sony Cross-Device Development Themes and Apps] raziel zarafan:
here is my logcat bro i hope it helps
[Sony Cross-Device Development Themes and Apps] Animangacolor:
how can i root my xz2?
[Sony Cross-Device Development Themes and Apps] Nitid_boss:
I want luncher on Android 10 gestures in a non-root XZ2.
[Sony Cross-Device Development Themes and Apps] serajr:
1st - https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/

2nd - https://xdaforums.com/xperia-xz2/how-to/how-to-root-xz2-probably-xz2c-android-10-t4030775

(android 10)

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.
[Sony Cross-Device Development Themes and Apps] raziel zarafan:
Launcher works flawlessly sir one more thing can u add swipe down to show notification bar?
[Sony Cross-Device Development Themes and Apps] serajr:
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.
[Sony Cross-Device Development Themes and Apps] raziel zarafan:
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
[Sony Cross-Device Development Themes and Apps] serajr:
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).
[Sony Cross-Device Development Themes and Apps] Twistabeatz:
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
[Sony Cross-Device Development Themes and Apps] raziel zarafan:
Thanks bro for u quickly answer I found another Fc here's the logcat
[Sony Cross-Device Development Themes and Apps] user26335377:
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
[Sony Cross-Device Development Themes and Apps] nreuge:
Yes, it was removed. But in Android 10, icons shape can be changed in the developper options.
[Sony Cross-Device Development Themes and Apps] serajr:
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 <<)

/**
* 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;
}
}

Exactly!
[Sony Cross-Device Development Themes and Apps] user26335377:
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?
[Sony Cross-Device Development Themes and Apps] serajr:
"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!
[Sony Cross-Device Development Themes and Apps] Doume®®®:
Hello,

I tried this apk on my XZ3 with android 10. And it's working
[Sony Cross-Device Development Themes and Apps] serajr:
New apk (post #519).
[Sony Cross-Device Development Themes and Apps] nreuge:
And does gestures work ??
[Sony Cross-Device Development Themes and Apps] serajr:
Please, do use always Android_10_ONLY.apk on android 10 devices!
[Sony Cross-Device Development Themes and Apps] user26335377:
Big thanks for your work!
[Sony Cross-Device Development Themes and Apps] Doume®®®:
No gesture. Maybe with adb command.
[Sony Cross-Device Development Themes and Apps] raziel zarafan:
Thanks bro , only left swipe down to see notification bar
[Sony Cross-Device Development Themes and Apps] serajr:
Thanks for the feedback. Gonna check it out asap!
[Sony Cross-Device Development Themes and Apps] Doume®®®:
Yes, I know.

And don't worry, if I have some troubles on device, I don't blame you. It's my decision.

I will try with adb command later
[Sony Cross-Device Development Themes and Apps] SemoB:
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.
[Sony Cross-Device Development Themes and Apps] Doume®®®:
Hello,

Gesture not working with your tip :(
[Sony Cross-Device Development Themes and Apps] raziel zarafan:
Bro i found another fc and other bug i can use google page swiping left side heres the logcat of fc and google app
[Sony Cross-Device Development Themes and Apps] serajr:
Thanks for the log! :good:

Hope it has been fixed now >> #519 << (everyone using it should update, too)!
[Sony Cross-Device Development Themes and Apps] serajr:
Thank you for this!

I fear that no matter what we mod to try making the gestures work, it may be useless, because of what I stated >> here << (loor for isGestureNavSupportedByDefaultLauncher)

Anyways, gonna check it out!
[Sony Cross-Device Development Themes and Apps] raziel zarafan:
Thaks bro, still fc and swipe donw to see notification bar and swipe left to see google app doesnt work and when u r on drawer search option is activated by default heres the logcat
[Sony Cross-Device Development Themes and Apps] serajr:
Thanks again for the log.

Let's try something different this time. Please, run these three adb commands:

adb shell settings put global hidden_api_policy_pre_p_apps 1
adb shell settings put global hidden_api_policy_p_apps 1
adb shell settings put global hidden_api_policy 1

Ensure commands were successfully received (no errors). I guess the last command is the only one actually needed, but...

Reboot, and let me know if fcs got fixed.
[Sony Cross-Device Development Themes and Apps] Twistabeatz:
The launcher is working fine. But when I try to activate with adb comands the gestural navigation Everything works except the "home button". After rebooting it turns to the normal 3 button navigation
[Sony Cross-Device Development Themes and Apps] raziel zarafan:
thanks bro but still fc with the commands heres the logcat
[Sony Cross-Device Development Themes and Apps] serajr:
Weird! Please, uninstall the app, reboot and reinstall it again using the signed_14_ apk.
[Sony Cross-Device Development Themes and Apps] raziel zarafan:
Is the same bro when I restarted the phone installed the home then restarted again entry to an app then go back fc again
[Sony Cross-Device Development Themes and Apps] serajr:
Ok, last try >> signed_15 <<

I haven't removed the signed_14 yet, because the signed_15 is a "shot in the dark", so if something goes wrong with the signed_15, go back to signed_14.

I suggest that you uninstall the app again, reboot, and proceed to install the new one.
[Sony Cross-Device Development Themes and Apps] Twistabeatz:
The signed_15 is working without problems for now. What should we do to add the gestures?
[Sony Cross-Device Development Themes and Apps] serajr:
Thank you for the feedback! Let's wait till more users say the same, so I can remove signed_14.

Regarding gestures, there is a good reading in post #546.
[Sony Cross-Device Development Themes and Apps] Twistabeatz:
As I understood there are no possibilities to have gestures on nonroot phones,right?
[Sony Cross-Device Development Themes and Apps] serajr:
That's what the SystemUI.apk code tells us!
[Sony Cross-Device Development Themes and Apps] raziel zarafan:
Thanks mate the app works fine no more fc! Only swipe down and to see notification bar and swipe right to see Google app is not working and search bar on drawer is activated by default when u swipe up on home to see drawer
[Sony Cross-Device Development Themes and Apps] serajr:
Thanks for the feedback!

Swipe gestures not working on workspace (aka home screen) may be related to SystemUI restrictions, as I stated before, anyways, I will check that out when I have some spare time.

The visible search bar on top of the drawer is the default design/behavior (not an issue).
[Sony Cross-Device Development Themes and Apps] raziel zarafan:
No I mean is like u selected search bar on drawer without touch it

Here's a video that I mean

http://https://youtu.be/5NYpINWpUlg
[Sony Cross-Device Development Themes and Apps] serajr:
Oh, thx... got it! The drawer search bar automatically gets the focus, even without tapping on it.

Regarding workspace swipe down gesture to show up notifications panel, maybe I could get it working with api reflections (will try something when possible).

Edit. I've created a simple app to test the opening of the notifications and settings panels, via reflection. Could you please check it out and report back when possible?

For those interested in how to do that (java):

private boolean expandNotificationsPanel(Context context) {
try {
Object service = context.getSystemService(Context.STATUS_BAR_SERVICE);
Class<?> manager = Class.forName("android.app.StatusBarManager");
Method m = manager.getMethod("expandNotificationsPanel");
m.invoke(service);
return true;
} catch (ClassNotFoundException e0) {
Log.v("xx_log", e0.getMessage());
} catch (NoSuchMethodException e1) {
Log.v("xx_log", e1.getMessage());
} catch (IllegalAccessException e2) {
Log.v("xx_log", e2.getMessage());
} catch (InvocationTargetException e3) {
Log.v("xx_log", e3.getMessage());
}
return false;
}

private boolean expandSettingsPanel(Context context) {
try {
Object service = context.getSystemService(Context.STATUS_BAR_SERVICE);
Class<?> manager = Class.forName("android.app.StatusBarManager");
Method m = manager.getMethod("expandSettingsPanel");
m.invoke(service);
return true;
} catch (ClassNotFoundException e0) {
Log.v("xx_log", e0.getMessage());
} catch (NoSuchMethodException e1) {
Log.v("xx_log", e1.getMessage());
} catch (IllegalAccessException e2) {
Log.v("xx_log", e2.getMessage());
} catch (InvocationTargetException e3) {
Log.v("xx_log", e3.getMessage());
}
return false;
}

Tia.
[Sony Cross-Device Development Themes and Apps] raziel zarafan:
Thanks bro the app works well show notification bar and expand all notifications
[Sony Cross-Device Development Themes and Apps] Guinis:
Hi

I'm new in this thread, and after reading how you made it, the work done is amazing.

I got a Xperia XZ2 and I wanted a new launcher after updating to 10, and this save me from hating the stock one.

Now, I wanted to know something. You said pages ago that gesture navigation is not available in 10 without root. But after rooting, what do i need to do to get it work? you know how?

Thank you for making this happend! Hope you can help me
[Sony Cross-Device Development Themes and Apps] Doume®®®:
Hello,

Check this post page 51
[Sony Cross-Device Development Themes and Apps] serajr:
Thank you!

Still needing help on this?

Thanks for the reply!

I need review my magisk module. I guess I need to update it to latest magisk module template. But its contents (all apks) are working flawlessly on rooted devices (need to push folders/apks manually to destination and set proper permissions).

Edit: Magisk v20+ compatible module attached >> here <<
[Sony Cross-Device Development Themes and Apps] user26335377:
That's on 10. But what about pie?

Is it possible to enable gesture navigation and QuickSwitch provider from your mod instead stock, like Xperia 10 port?
[Sony Cross-Device Development Themes and Apps] serajr:
I don't know mate, believe me, It's not an easy task!
[Sony Cross-Device Development Themes and Apps] serajr:
Nova Launcher official statement regarding gestures on android 10!