[ZenFone 2 Android Development] LSS4181:
Some further issues with recent Nanodroid package.

At first I tried a clean flash of NutOS, HoloN kernel, Magisk, then Nanodroid, all in one TWRP run, and when I booted, the Magisk was totally missing (no root, and no Magisk Manager). Interestingly, when I restore the old system backup I made before flashing, Magisk disappeared from there, too (apps complained about no root, Magisk Manager was there, but showing Not Installed), though I was able to restore it through re-flashing Magisk.

This time I install only NutOS, HoloN kernel and Magisk, and let the setup wizard finish, and it seems Magisk is there and things look fine. But after I flash Nanodroid, Package Manager starts FCing, making me unable to install any packages from there, though I'm still able to use "pm install" command from a root shell to sideload packages.

The logcat probably related to the error looked like this:

05-16 23:06:20.061 4008 4154 E AndroidRuntime: FATAL EXCEPTION: InstallThread
05-16 23:06:20.061 4008 4154 E AndroidRuntime: Process: com.android.packageinstaller, PID: 4008
05-16 23:06:20.061 4008 4154 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.AppOpsManager.checkPackage(int, java.lang.String)' on a null object reference
05-16 23:06:20.061 4008 4154 E AndroidRuntime:	at android.os.Parcel.readException(Parcel.java:1690)
05-16 23:06:20.061 4008 4154 E AndroidRuntime:	at android.os.Parcel.readException(Parcel.java:1637)
05-16 23:06:20.061 4008 4154 E AndroidRuntime:	at android.content.pm.IPackageInstaller$Stub$Proxy.createSession(IPackageInstaller.java:249)
05-16 23:06:20.061 4008 4154 E AndroidRuntime:	at android.content.pm.PackageInstaller.createSession(PackageInstaller.java:297)
05-16 23:06:20.061 4008 4154 E AndroidRuntime:	at com.android.packageinstaller.InstallAppProgress.doPackageStage(InstallAppProgress.java:278)
05-16 23:06:20.061 4008 4154 E AndroidRuntime:	at com.android.packageinstaller.InstallAppProgress.-wrap2(InstallAppProgress.java)
05-16 23:06:20.061 4008 4154 E AndroidRuntime:	at com.android.packageinstaller.InstallAppProgress$5.run(InstallAppProgress.java:379)
05-16 23:06:20.061 4008 4154 E AndroidRuntime:	at android.os.Handler.handleCallback(Handler.java:751)
05-16 23:06:20.061 4008 4154 E AndroidRuntime:	at android.os.Handler.dispatchMessage(Handler.java:95)
05-16 23:06:20.061 4008 4154 E AndroidRuntime:	at android.os.Looper.loop(Looper.java:154)
05-16 23:06:20.061 4008 4154 E AndroidRuntime:	at android.os.HandlerThread.run(HandlerThread.java:61)
05-16 23:06:20.062 695 893 W ActivityManager: Force finishing activity com.android.packageinstaller/.InstallAppProgress

EDIT: Nope... the Play Store still FCs (having enabled signature spoofing on both Play Store and microG)... The cause seems to be similar, so either the crash from Package Installer is causing Play Store to FC, or the other way around.

0:14.344 2567 2673 E AndroidRuntime: FATAL EXCEPTION: PackageInstallerImpl
05-17 00:10:14.344 2567 2673 E AndroidRuntime: Process: com.android.vending, PID: 2567
05-17 00:10:14.344 2567 2673 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.app.AppOpsManager.checkPackage(int, java.lang.String)' on a null object reference
05-17 00:10:14.344 2567 2673 E AndroidRuntime:	at android.os.Parcel.readException(Parcel.java:1690)
05-17 00:10:14.344 2567 2673 E AndroidRuntime:	at android.os.Parcel.readException(Parcel.java:1637)
05-17 00:10:14.344 2567 2673 E AndroidRuntime:	at android.content.pm.IPackageInstaller$Stub$Proxy.getMySessions(IPackageInstaller.java:385)
05-17 00:10:14.344 2567 2673 E AndroidRuntime:	at android.content.pm.PackageInstaller.getMySessions(PackageInstaller.java:406)
05-17 00:10:14.344 2567 2673 E AndroidRuntime:	at com.google.android.finsky.cu.g.run(SourceFile:4)
05-17 00:10:14.344 2567 2673 E AndroidRuntime:	at android.os.Handler.handleCallback(Handler.java:751)
05-17 00:10:14.344 2567 2673 E AndroidRuntime:	at android.os.Handler.dispatchMessage(Handler.java:95)
05-17 00:10:14.344 2567 2673 E AndroidRuntime:	at android.os.Looper.loop(Looper.java:154)
05-17 00:10:14.344 2567 2673 E AndroidRuntime:	at android.os.HandlerThread.run(HandlerThread.java:61)
05-17 00:10:14.348 693 1815 W ActivityManager: Process com.android.vending has crashed too many times: killing!
05-17 00:10:14.349 693 1815 I ActivityManager: Killing 2567:com.android.vending/u0a58 (adj 0): crash
05-17 00:10:14.350 693 1815 D ActivityManager: cleanUpApplicationRecord -- 2567

Will be reverting to my old system backup for now, will try again when simple fixes could be found...