Hacking Help with repacking system cias

  • Thread starter Thread starter lefthandsword
  • Start date Start date
  • Views Views 1,645
  • Replies Replies 2
  • Likes Likes 1

lefthandsword

Well-Known Member
Member
Joined
Apr 6, 2015
Messages
352
Reaction score
215
Trophies
0
Age
28
Location
root
XP
498
Country
Hong Kong
I was trying to make patched home menu/NS cias for region free on boot by patching the code.bin directly using offsets from free mutli patcher source:
Code:
int patchMenu() { // Set generell informations for patching static const char * titleId = "menu"; static const u32 startAddress = 0x00100000;
// patch Homemenu to show out of region applications // 9.0.0 Address: 0x00101B8C; static unsigned char originalcode[] = { 0x00, 0x00, 0x55, 0xE3, 0x01, 0x10, 0xA0, 0xE3, 0x11, 0x00, 0xA0, 0xE1, 0x03, 0x00, 0x00, 0x0A }; static char patchcode[] = { 0x01, 0x00, 0xA0, 0xE3, 0x70, 0x80, 0xBD, 0xE8 }; findAndPatchCode(titleId, 4, startAddress, 0x00100000, originalcode, patchcode, sizeof(patchcode));
return 0; }
hex.PNG

But I'm having a hard time with putting the patched code.bin and untouched RomFS back into a proper cia, makerom was asking for a rsf file (no idea how to make one for a system app) and googled up and down to no avail.


Maybe some of you who made sigpatched twl_firm can give me some insights? I fully understand it's risky to mess with system titles (that's why you make NAND backups:)), but I'm just doing it for science and any help would be appreciated.
 
  • Like
Reactions: Classicgamer
if you edit sysNAND, AL9H will be required for this to not end up causing a brick as the signature of the edited home menu will be invalid.

It may work on EmuNAND though but why bother if you can run free multi patcher.
 
Last edited by driverdis,
if you edit sysNAND, AL9H will be required for this to not end up causing a brick as the signature of the edited home menu will be invalid.

It may work on EmuNAND though but why bother if you can run free multi patcher.
I already know it'll work only in sigpatched environment (I have A9LH), but why not?
 

Site & Scene News

Popular threads in this forum