bucanero
Developer
Yes wMM allows to copy files in boot_init.txt or autoexec.bat
Maybe a more integrated solution would be to update HEN payload to make the copy when it's loaded.
EDIT:
For copy you can use sysLv2FsLink (syscall 810).
yes, I think that the best option would be to have this "act.dat restore" as part of the HEN payload:
- scan every user exdata folders (home/0000???/exdata/)
- if "act.bak" exists, and there's no act.dat, then copy home/0000123/exdata/act.bak to home/0000123/exdata/act.dat
- (repeat for each user)
I'll try to submit a pull-request on Github so it can be part of the PS3HEN payload, but as I don't know if it will be included or when a new version (3.04?) would be released, I'll keep the wMM autoexec workaround in Apollo for now.
Currently, Apollo detects if it's a HEN setup, and adds a line to the boot_init script:
copy /dev_hdd0/home/000000XX/exdata/act.bak=/dev_hdd0/home/000000XX/exdata/act.dat
Again, for CFW there's no need for all this, as the checks are patched and the act.dat never gets erased.
btw, any HEN user around that wants to test this new offline activation feature? @jcorrea are you free for some testing?