APT:GetProgramInfo

APT:GetProgramInfo

Request #

Index WordDescription
0Header code [0x00480100]
1-4Program Info

Response #

Index WordDescription
0Header code
1Result code
2u8, System Mode
3FIRM Program ID Low

Description #

This obtains info mainly used for launching FIRM. For TWL titles, the output Program ID Low is 0x102 for TWL_FIRM, however for CTR titles this is loaded from the first 4-bytes of the exheader_arm11systemlocalcaps.flags(“Core Version”). For non-TWL titles when a certain NS state flag is set, the output flag is the value from config-mem APPMEMTYPE.