Closed loki666 closed 1 year ago
Appreciate any help with this
Performance and xbox toggle code is in here, it references some scripts that I've bundled into the os image: https://github.com/TheGammaSqueeze/retrogame_joypad_2_xbox/blob/382c6c2504dd917480665ebf1648b3385a990dc3/retrogamepad2xbox.c#L692
Be warned, it's messy!
Messy and CPU cycles hungry....
Anyway, let's assume I have an APK. How do I sign it with the build key and how do I include it in system image (maybe vendor is better option?)
I can't mount loop your image....
Feel free to optimize. It works fine for our purposes, and needs to be responsive enough to register inputs. Util is actually pretty low, check using top command.
You are just building an apk correct? Sign with any key. This image was not built from source, but rather modified an existing GSI. Nothing stopping me from building from source, but it takes forever and my changes are minimal anyway.
This is an erofs image, read only. Mount: mount -t auto -o ro .img mountfolder
Now if you want to modify, you will need to copy the mountfolder while preserving all selinux and other attributes.
cp -pdavr mountfolder yourworkingfolder/
To build from your working folder, cd into the mountfolder inside yourworkingfolder.
Use mkfs.erofs -z LZ4HC /home/blah/someotherdir/imagename.img .
to do this, make sure you are inside the actual yourworkingfolder/mountfolder/ when building the image, ensure the image is created outside of this folder.
Mmmh ok... I think I was missing the erofs driver.
I think for the app to have the system privileges (root) I need to sign it with the same key used for the ROM... But we'll see
Closing this for now, happy to reopen if there are any updates.
Like the Stock OS. I can help developping this, but I need to know how to interface with both services.
(If only your changes were open source...)