[Virtuous Ten Studio] thantos2024:
here is the log catch for when everything crashes

E/System (1611): ******************************************
E/System (1611): ************ Failure starting core service
E/System (1611): java.lang.NullPointerException
E/System (1611):	at com.android.server.pm.PackageManagerService.grantPermissionsLPw(PackageManagerService.java:4885)
E/System (1611):	at com.android.server.pm.PackageManagerService.updatePermissionsLPw(PackageManagerService.java:4830)
E/System (1611):	at com.android.server.pm.PackageManagerService.<init>(PackageManagerService.java:1418)
E/System (1611):	at com.android.server.pm.PackageManagerService.main(PackageManagerService.java:875)
E/System (1611):	at com.android.server.ServerThread.run(SystemServer.java:206)
I/SystemServer(1611): Input Method Service
W/SystemServer(1611): ***********************************************
F/SystemServer( 1611): BOOT FAILURE starting Input Manager Service
F/SystemServer( 1611): java.lang.NullPointerException
F/SystemServer( 1611):	at android.app.PendingIntent.getBroadcast(PendingIntent.java:325)
F/SystemServer( 1611):	at com.android.server.InputMethodManagerService.<init>(InputMethodManagerService.java:589)
F/SystemServer( 1611):	at com.android.server.ServerThread.run(SystemServer.java:324)
E/AndroidRuntime(1611): Error reporting WTF
E/AndroidRuntime(1611): java.lang.NullPointerException
E/AndroidRuntime(1611):	at com.android.internal.os.RuntimeInit.wtf(RuntimeInit.java:367)
E/AndroidRuntime(1611):	at android.util.Log$1.onTerribleFailure(Log.java:103)
E/AndroidRuntime(1611):	at android.util.Log.wtf(Log.java:278)
E/AndroidRuntime(1611):	at com.android.server.ServerThread.reportWtf(SystemServer.java:104)
E/AndroidRuntime(1611):	at com.android.server.ServerThread.run(SystemServer.java:327)
I/SystemServer(1611): Accessibility Manager
W/SystemServer(1611): ***********************************************
F/SystemServer( 1611): BOOT FAILURE starting Accessibility Manager
F/SystemServer( 1611): java.lang.NullPointerException
F/SystemServer( 1611):	at android.app.ContextImpl.registerReceiverInternal(ContextImpl.java:1326)
F/SystemServer( 1611):	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1301)
F/SystemServer( 1611):	at android.app.ContextImpl.registerReceiver(ContextImpl.java:1295)
F/SystemServer( 1611):	at com.android.internal.content.PackageMonitor.register(PackageMonitor.java:65)
F/SystemServer( 1611):	at com.android.server.accessibility.AccessibilityManagerService.registerPackageChangeAndBootCompletedBroadcastReceiver(AccessibilityManagerService.java:278)
F/SystemServer( 1611):	at com.android.server.accessibility.AccessibilityManagerService.<init>(AccessibilityManagerService.java:172)
F/SystemServer( 1611):	at com.android.server.ServerThread.run(SystemServer.java:332)
F/SystemServer( 1611): BOOT FAILURE making display ready
F/SystemServer( 1611): java.lang.NullPointerException
F/SystemServer( 1611):	at com.android.server.ServerThread.run(SystemServer.java:352)
F/SystemServer( 1611): BOOT FAILURE performing boot dexopt
F/SystemServer( 1611): java.lang.NullPointerException
F/SystemServer( 1611):	at com.android.server.ServerThread.run(SystemServer.java:358)
W/dalvikvm(1611): threadid=11: thread exiting with uncaught exception (group=0x40b0a228)
D/Process (1611): killProcess, pid=1611
E/AndroidRuntime(1611): Error reporting WTF
E/AndroidRuntime(1611): java.lang.NullPointerException
E/AndroidRuntime(1611):	at com.android.internal.os.RuntimeInit.wtf(RuntimeInit.java:367)
E/AndroidRuntime(1611):	at android.util.Log$1.onTerribleFailure(Log.java:103)
E/AndroidRuntime(1611):	at android.util.Log.wtf(Log.java:278)
E/AndroidRuntime(1611):	at com.android.server.ServerThread.reportWtf(SystemServer.java:104)
E/AndroidRuntime(1611):	at com.android.server.ServerThread.run(SystemServer.java:335)
W/SystemServer(1611): ***********************************************
E/AndroidRuntime(1611): Error reporting WTF
E/AndroidRuntime(1611): java.lang.NullPointerException
E/AndroidRuntime(1611):	at com.android.internal.os.RuntimeInit.wtf(RuntimeInit.java:367)
E/AndroidRuntime(1611):	at android.util.Log$1.onTerribleFailure(Log.java:103)
E/AndroidRuntime(1611):	at android.util.Log.wtf(Log.java:278)
E/AndroidRuntime(1611):	at com.android.server.ServerThread.reportWtf(SystemServer.java:104)
E/AndroidRuntime(1611):	at com.android.server.ServerThread.run(SystemServer.java:354)
W/SystemServer(1611): ***********************************************
E/AndroidRuntime(1611): Error reporting WTF
E/AndroidRuntime(1611): java.lang.NullPointerException
E/AndroidRuntime(1611):	at com.android.internal.os.RuntimeInit.wtf(RuntimeInit.java:367)
E/AndroidRuntime(1611):	at android.util.Log$1.onTerribleFailure(Log.java:103)
E/AndroidRuntime(1611):	at android.util.Log.wtf(Log.java:278)
E/AndroidRuntime(1611):	at com.android.server.ServerThread.reportWtf(SystemServer.java:104)
E/AndroidRuntime(1611):	at com.android.server.ServerThread.run(SystemServer.java:360)
E/AndroidRuntime(1611): *** FATAL EXCEPTION IN SYSTEM PROCESS: android.server.ServerThread
E/AndroidRuntime(1611): java.lang.NullPointerException
E/AndroidRuntime(1611):	at com.android.server.ServerThread.run(SystemServer.java:364)
E/AndroidRuntime(1611): Error reporting crash
E/AndroidRuntime(1611): java.lang.NullPointerException
E/AndroidRuntime(1611):	at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:93)
E/AndroidRuntime(1611):	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
E/AndroidRuntime(1611):	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
D/Process (1611): dalvik.system.VMStack.getThreadStackTrace(Native Method)
D/Process (1611): java.lang.Thread.getStackTrace(Thread.java:599)
D/Process (1611): android.os.Process.killProcess(Process.java:813)
D/Process (1611): com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:104)
D/Process (1611): java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
D/Process (1611): java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
E/installd(1456): eof
E/installd(1456): failed to read size
I/Zygote (1451): Exit zygote because system server (1611) has terminated

this is the same error whether I change anything or just decompile and recompile without touching any files.

I had thought that maybe I hadn't done the checksignatures patch correctly, but I've modded the framework-res.apk once before and its been running fine, which would suggest that that isn't the problem.