I added my app's name as PRODUCT_PACKAGES += MyApp inside vendor/google_devices/panther/panther.mk, and created an .xml file in vendor/google_devices/panther/sysconfig/permissions, specifying same permissions requested in my app's AndroidManifest.xml (similar to how it's done in privapp-permissions-google-p.xml). After rebuilding the .img files and flashing them onto the device, now it goes into a bootloop.
Do I need to update any other configuration files for GrapheneOS to accept my app as its own?
(I suppose there is no way to read boot logs if the device is in "boot loop" - doesn't matter if i have user or userdebug build of GrapheneOS, so not exactly sure what's wrong, but I suppose it could be some permissions/whitelisting issue for the priviledged app?).
Here's Android.bp of my app:
android_app {
name: "MyApp",
privileged: true,
certificate: "platform",
srcs: ["src/**/*.java"],
resource_dirs: ["res"],
manifest: "AndroidManifest.xml",
platform_apis: true,
}