[Sony Cross-Device Development Themes and Apps] Hüttenkäse:
Lockscreen rotation bug

Hi serajr,

Just installed 3.1 and unfortunately, the lockscreen toggle screen rotation bug is not fixed for me. It still behaves the exact same way it did in 3.0 and 2.8. :confused:

Before you start poking me about this: As you can see from the log, I'm not using the Z3 Home backport. I'm assuming this doesn't matter because I've never enabled the "Home" section of your app config. All the other sections work fine. I hope you "support" this scenario because I'd rather keep the regular Z1 launcher? :fingers-crossed: In any case, this bug probably shouldn't be related to the launcher because it was already there in the 2.8 release.

Loading Xposed v54 (for Zygote)...
Running ROM '14.4.A.0.108' with fingerprint 'Sony/C6902/C6902:4.4.4/14.4.A.0.108/k___jQ:user/release-keys'
Loading modules from /data/app/com.serajr.xperia.xposed.kk-1.apk
Loading class com.serajr.xperia.xposed.kk.XperiaXposed
JELLYBEAN_LAUNCHER: false
KITKAT_LAUNCHER: true
NEW_KITKAT_LAUNCHER: false
Z3_KITKAT_LAUNCHER: false
LAUNCHER_HAS_ANIMATIONS: false
hooked com.sonymobile.home.desktop.DesktopPresenter all_constructors
hooked com.sonymobile.home.apptray.AppTrayPresenter all_constructors
hooked com.sonymobile.home.apptray.AppTray all_constructors
hooked com.sonymobile.home.desktop.Desktop all_constructors
hooked com.sonymobile.home.util.SystemUiExtensions getSystemUiBackgroundColor
hooked com.sonymobile.home.ui.widget.HomeAppWidgetManager getResizeMode
hooked com.sonymobile.home.ui.widget.HomeAdvWidget createAppWidgetInfo
hooked com.sonymobile.home.apptray.AppTraySorter filterItemsIfNeeded
hooked com.sonymobile.home.apptray.AppTrayPresenter getCategoryTitleFromSortMode
hooked com.sonymobile.home.apptray.AppTrayDrawerLoadHelper loadItemData
hooked com.sonymobile.home.apptray.AppTrayAdapter setModelItems
hooked com.sonymobile.home.apptray.AppTrayPresenter onAppTrayDrawerItemClicked
hooked com.sonymobile.home.apptray.AppTrayDrawerAdapter updateNumberOfDownloadedItems
hooked com.sonymobile.home.storage.StorageManager getBadgeManager
hooked com.sonymobile.home.apptray.AppTrayAdapter getPageCount
hooked com.sonymobile.home.transfer.TransferView all_constructors
hooked com.sonymobile.home.apptray.AppTraySorter sort
hooked com.sonymobile.home.apptray.AppTrayDrawerAdapter convertSortModeToItemType
hooked com.sonymobile.home.apptray.AppTrayDropZoneView all_constructors
hooked com.sonymobile.home.apptray.AppTrayDropZoneView updateConfiguration
hooked com.sonymobile.home.apptray.AppTrayDropZoneView onAddedTo
hooked com.sonymobile.home.apptray.AppTrayModel all_constructors
hooked com.sonymobile.home.apptray.AppTrayModel updateModelAndItems
hooked com.sonymobile.home.apptray.AppTrayModel getNumberOfDownloadedActivities
hooked com.sonymobile.home.apptray.AppTrayModel getTotalNumberOfActivities
hooked com.sonymobile.home.apptray.AppTrayModel removeGapsAndEmptyPages
hooked com.sonymobile.home.apptray.AppTrayModel getPageItemCount
hooked com.sonymobile.home.apptray.AppTrayModel getLastPage
java.lang.NoSuchFieldError: com.sonymobile.home.DisplayData#sStatusBarSize
at de.robv.android.xposed.XposedHelpers.findField(XposedHelpers.java:80)
at de.robv.android.xposed.XposedHelpers.getStaticIntField(XposedHelpers.java:906)
at com.serajr.xperia.xposed.kk.hooks.home.Home_FixDisplayData$1.afterHookedMethod(Home_FixDisplayData.java:91)
at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:645)
at com.sonymobile.home.DisplayData.updateConfiguration(Native Method)
at com.sonymobile.home.HomeFragment.onActivityCreated(HomeFragment.java:368)
at android.app.Fragment.performActivityCreated(Fragment.java:1708)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:912)
at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1066)
at android.app.BackStackRecord.run(BackStackRecord.java:684)
at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1455)
at android.app.Activity.performStart(Activity.java:5240)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2210)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2286)
at android.app.ActivityThread.access$800(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1246)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:212)
at android.app.ActivityThread.main(ActivityThread.java:5135)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:877)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:693)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
at dalvik.system.NativeStart.main(Native Method)

Not sure if this is useful, but here's an idea: Maybe the code you are using to toggle the lockscreen on/off is not taking the best approach? I'm now using this widget as a workaround. It toggles the lockscreen in a reliable manner and does not suffer from this bug. It also appears to be device-independent; it works on a Galaxy S2 JB 4.1 and I think I've even seen it running on a Galaxy S back in the Gingerbread days. It might be worth having a look at their code? Just guessing in the dark here...