Difference between revisions of "Application Manager Services PXI"

From 3dbrew
Jump to navigation Jump to search
m (Added GetTicketLimitInfos)
m (Add anchors)
 
(29 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{Anchor|AMPXI}}{{Anchor|pxi:am9}}
 
=Application Manager Services PXI "pxi:am9"=
 
=Application Manager Services PXI "pxi:am9"=
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
Line 72: Line 73:
 
| 0x00110000
 
| 0x00110000
 
| [[1.0.0-0]]
 
| [[1.0.0-0]]
| [[AMPXI:InstallTitleAbort|InstallTitleAbort]]
+
| [[AMPXI:InstallTitleStop|InstallTitleStop]]
 
|-
 
|-
 
| 0x001200C0
 
| 0x001200C0
Line 104: Line 105:
 
| 0x00190000
 
| 0x00190000
 
| [[1.0.0-0]]
 
| [[1.0.0-0]]
| [[AMPXI:InstallContentAbort|InstallContentAbort]]
+
| [[AMPXI:InstallContentStop|InstallContentStop]]
 
|-
 
|-
 
| 0x001A0000
 
| 0x001A0000
 
| [[1.0.0-0]]
 
| [[1.0.0-0]]
| InstallContentAbortDSi (?)
+
| [[AMPXI:InstallContentAbort|InstallContentAbort]]
 
|-
 
|-
 
| 0x001B0040
 
| 0x001B0040
Line 136: Line 137:
 
| 0x002100C0
 
| 0x002100C0
 
| [[1.0.0-0]]
 
| [[1.0.0-0]]
| (unknown_u8, unknown_u64)
+
| [[AMPXI:GetNumImportContentContexts|GetNumImportContentContexts]]
 
|-
 
|-
 
| 0x00220102
 
| 0x00220102
 
| [[1.0.0-0]]
 
| [[1.0.0-0]]
| (count, unknown_u8, unknown_u64, ptrsize_count_mul_2, ptr)
+
| [[AMPXI:GetImportContentContextList|GetImportContentContextList]]
 
|-
 
|-
 
| 0x00230104
 
| 0x00230104
 
| [[1.0.0-0]]
 
| [[1.0.0-0]]
| (count, unknown_u8, unknown_u64, ptr1size_count_mul_2, ptr1, ptr2size_count_mul_24, ptr2)
+
| [[AMPXI:GetImportContentContexts|GetImportContentContexts]]
 
|-
 
|-
 
| 0x00240102
 
| 0x00240102
 
| [[1.0.0-0]]
 
| [[1.0.0-0]]
| (count, unknown_u8, unknown_u64, ptrsize_count_mul2, ptr)
+
| [[AMPXI:DeleteImportContentContexts|DeleteImportContentContexts]]
 
|-
 
|-
 
| 0x00250000
 
| 0x00250000
 
| [[1.0.0-0]]  
 
| [[1.0.0-0]]  
| GetContentCount (?)
+
| [[AMPXI:GetNumCurrentImportContentContexts|GetNumCurrentImportContentContexts]]
 
|-
 
|-
 
| 0x00260042
 
| 0x00260042
 
| [[1.0.0-0]]
 
| [[1.0.0-0]]
| GetContentIds (?)
+
| [[AMPXI:GetCurrentImportContentContextList|GetCurrentImportContentContextList]]
 
|-
 
|-
 
| 0x00270044
 
| 0x00270044
Line 164: Line 165:
 
| 0x00280000
 
| 0x00280000
 
| [[1.0.0-0]]
 
| [[1.0.0-0]]
| InstallTitleAbortDSi (?)
+
| [[AMPXI:InstallTitleAbort|InstallTitleAbort]]
 
|-
 
|-
 
| 0x00290000
 
| 0x00290000
Line 172: Line 173:
 
| 0x002A00C2
 
| 0x002A00C2
 
| [[1.0.0-0]]
 
| [[1.0.0-0]]
| [[AMPXI:InstallTitlesFinish|InstallTitlesFinish]]
+
| [[AMPXI:CommitImportPrograms|CommitImportPrograms]]
 
|-
 
|-
 
| 0x002B....
 
| 0x002B....
Line 232: Line 233:
 
| 0x00390146
 
| 0x00390146
 
| [[1.0.0-0]]
 
| [[1.0.0-0]]
| (size2, size3, unknown_u64, size1, ptr1size_size1, ptr1, ptr2size_size2, ptr2, ptr3size_size3, ptr3)
+
| [[AMPXI:Sign|Sign]]
 
|-
 
|-
 
| 0x003A0146
 
| 0x003A0146
Line 264: Line 265:
 
| 0x00410000
 
| 0x00410000
 
| [[1.0.0-0]]
 
| [[1.0.0-0]]
|?
+
| [[AMPXI:DeleteAllTemporaryPrograms|DeleteAllTemporaryPrograms]]
 
|-
 
|-
 
| 0x00420142
 
| 0x00420142
Line 280: Line 281:
 
| 0x00450108
 
| 0x00450108
 
| [[2.0.0-2]]
 
| [[2.0.0-2]]
| (size1, size3, size2, unknown_u8, ptr1size, ptr1, ptr2size, ptr2, ptr3size, ptr3, ptr4size_size2, ptr4) (DecryptDSiWareData)
+
| [[AMPXI:DecryptDSiWareData|DecryptDSiWareData]]
 
|-
 
|-
 
| 0x00460182
 
| 0x00460182
Line 308: Line 309:
 
| 0x004C0042
 
| 0x004C0042
 
| [[2.0.0-2]]
 
| [[2.0.0-2]]
| (count, ptrsize_count_mul_24, ptr)
+
| [[AMPXI:GetPersonalizedTicketInfoList|GetPersonalizedTicketInfoList]]
 
|-
 
|-
 
| 0x004D0144
 
| 0x004D0144
Line 316: Line 317:
 
| 0x004E00C0
 
| 0x004E00C0
 
| [[2.0.0-2]]
 
| [[2.0.0-2]]
| InstallTitleBeginDSi (?) (unknown_u64, u8_optype) The optype must be 5 or 11, but it's not used after validating it. Disabling using this in AM-sysmodule breaks DSiWare-importing. This is used right before [[AMPXI:InstallTmdBegin|InstallTmdBegin]] in AM-sysmodule.
+
| [[AMPXI:BeginInstallDSiWareExport|BeginInstallDSiWareExport]]
 
|-
 
|-
 
| 0x004F00C0
 
| 0x004F00C0
Line 324: Line 325:
 
| 0x00500044
 
| 0x00500044
 
| [[2.0.0-2]]
 
| [[2.0.0-2]]
| (count, ptr1size_count_mul_8, ptr1, ptr2size_count_mul_4, ptr2)
+
| [[AMPXI:GetTwlProgramListForReboot|GetTwlProgramListForReboot]]
 
|-
 
|-
 
| 0x00510000
 
| 0x00510000
 
| [[2.0.0-2]]
 
| [[2.0.0-2]]
|?
+
| [[AMPXI:DeleteAllTwlUserPrograms|DeleteAllTwlUserPrograms]]
 
|-
 
|-
 
| 0x00520040
 
| 0x00520040
 
| [[2.0.0-2]]
 
| [[2.0.0-2]]
| (unknown_u8)
+
| [[AMPXI:DeleteAllExpiredUserPrograms|DeleteAllExpiredUserPrograms]]
 
|-
 
|-
 
| 0x00530084
 
| 0x00530084
Line 352: Line 353:
 
| 0x00570042
 
| 0x00570042
 
| [[4.0.0-7]]
 
| [[4.0.0-7]]
| [[AMPXI:InstallTitleSetContentIndices|InstallTitleSetContentIndices]]
+
| [[AMPXI:CreateImportContentContexts|CreateImportContentContexts]]
 
|-
 
|-
 
| 0x005800C0
 
| 0x005800C0
Line 368: Line 369:
 
| 0x005B0000
 
| 0x005B0000
 
| [[4.0.0-7]]
 
| [[4.0.0-7]]
| ?
+
| [[AMPXI:GetNumCurrentContentInfos|GetNumCurrentContentInfos]]
 
|-
 
|-
 
| 0x005C0044
 
| 0x005C0044
 
| [[4.0.0-7]]
 
| [[4.0.0-7]]
| ?
+
| [[AMPXI:FindCurrentContentInfos|FindCurrentContentInfos]]
 
|-
 
|-
 
| 0x005D0082
 
| 0x005D0082
 
| [[4.0.0-7]]
 
| [[4.0.0-7]]
| ?
+
| [[AMPXI:ListCurrentContentInfos|ListCurrentContentInfos]]
 
|-
 
|-
 
| 0x005E0102
 
| 0x005E0102
Line 384: Line 385:
 
| 0x005F0080
 
| 0x005F0080
 
| [[4.0.0-7]]
 
| [[4.0.0-7]]
| ?
+
| [[AMPXI:GetNumTicketsOfProgram|GetNumTicketsOfProgram]]
 
|-
 
|-
 
| 0x00600102
 
| 0x00600102
Line 392: Line 393:
 
| 0x00610142
 
| 0x00610142
 
| [[4.0.0-7]]
 
| [[4.0.0-7]]
| ?
+
| [[AMPXI:ExportLicenseTicket|ExportLicenseTicket]]
 
|-
 
|-
 
| 0x00620044
 
| 0x00620044
 
| [[4.0.0-7]]
 
| [[4.0.0-7]]
| [[AMPXI:GetTicketLimitInfos]]
+
| [[AMPXI:GetTicketLimitInfos|GetTicketLimitInfos]]
 
|-
 
|-
 
| 0x00630042
 
| 0x00630042
 
| [[4.0.0-7]]
 
| [[4.0.0-7]]
| ?
+
| [[AMPXI:UpdateImportContentContexts|UpdateImportContentContexts]]
 
|-
 
|-
 
| 0x006400C0
 
| 0x006400C0
 
| [[4.0.0-7]]
 
| [[4.0.0-7]]
| ?
+
| [[AMPXI:GetInternalTitleLocationInfo|GetInternalTitleLocationInfo]]
 
|-
 
|-
 
| 0x006500C0
 
| 0x006500C0
Line 416: Line 417:
 
| 0x00670082
 
| 0x00670082
 
| [[4.0.0-7]]
 
| [[4.0.0-7]]
| ?
+
| [[AMPXI:DeleteProgramsAtomically|DeleteProgramsAtomically]]
 
|-
 
|-
 
| 0x006801C2
 
| 0x006801C2
Line 432: Line 433:
 
| 0x006B0142
 
| 0x006B0142
 
| [[4.0.0-7]]
 
| [[4.0.0-7]]
| ?
+
| [[AMPXI:ListExistingContentInfos|ListExistingContentInfos]]
 
|-
 
|-
 
| 0x006C00C0
 
| 0x006C00C0
 
| [[5.0.0-11]]
 
| [[5.0.0-11]]
| (u8 [[Mediatypes|Mediatype]], u64 programID)
+
| [[AMPXI:InstallTitleBeginForOverwrite|InstallTitleBeginForOverwrite]]
 
|-
 
|-
 
| 0x006D0184
 
| 0x006D0184

Latest revision as of 10:51, 18 September 2024

Application Manager Services PXI "pxi:am9"[edit]

Command Header Available since system version Description
0x00010040 1.0.0-0 GetTitleCount
0x00020082 1.0.0-0 GetTitleList
0x00030084 1.0.0-0 GetTitleInfo
0x000400C0 1.0.0-0 DeleteTitle
0x000500C0 1.0.0-0 GetTitleProductCode
0x000600C0 1.0.0-0 GetTitleExtDataId
0x00070080 1.0.0-0 DeletePendingTitles
0x00080080 1.0.0-0 InstallFIRM
0x00090000 1.0.0-0 InstallTikBegin
0x000A0042 1.0.0-0 InstallTikWrite
0x000B0000 1.0.0-0 InstallTikAbort
0x000C0000 1.0.0-0 InstallTikFinish
0x000D0080 1.0.0-0 DeleteTicket
0x000E0000 1.0.0-0 GetTicketCount
0x000F0082 1.0.0-0 GetTicketList
0x00100100 1.0.0-0 InstallTitleBegin
0x00110000 1.0.0-0 InstallTitleStop
0x001200C0 1.0.0-0 InstallTitleResume
0x00130000 1.0.0-0 InstallTmdBegin
0x00140042 1.0.0-0 InstallTmdWrite
0x00150000 1.0.0-0 InstallTmdAbort
0x00160040 1.0.0-0 InstallTmdFinish
0x00170040 1.0.0-0 InstallContentBegin
0x00180042 1.0.0-0 InstallContentWrite
0x00190000 1.0.0-0 InstallContentStop
0x001A0000 1.0.0-0 InstallContentAbort
0x001B0040 1.0.0-0 InstallContentResume
0x001C0000 1.0.0-0 InstallContentFinish
0x001D0080 1.0.0-0 GetPendingTitleCount
0x001E00C2 1.0.0-0 GetPendingTitleList
0x001F0084 1.0.0-0 GetPendingTitleInfo
0x002000C0 1.0.0-0 DeletePendingTitle
0x002100C0 1.0.0-0 GetNumImportContentContexts
0x00220102 1.0.0-0 GetImportContentContextList
0x00230104 1.0.0-0 GetImportContentContexts
0x00240102 1.0.0-0 DeleteImportContentContexts
0x00250000 1.0.0-0 GetNumCurrentImportContentContexts
0x00260042 1.0.0-0 GetCurrentImportContentContextList
0x00270044 1.0.0-0 GetCurrentImportContentContexts
0x00280000 1.0.0-0 InstallTitleAbort
0x00290000 1.0.0-0 InstallTitleFinish
0x002A00C2 1.0.0-0 CommitImportPrograms
0x002B.... 1.0.0-0 Stubbed.
0x002C.... 1.0.0-0 Stubbed.
0x002D.... 1.0.0-0 Stubbed.
0x002E.... 1.0.0-0 Stubbed.
0x002F.... 1.0.0-0 Stubbed.
0x0030.... 1.0.0-0 Stubbed.
0x0031.... 1.0.0-0 Stubbed.
0x0032.... 1.0.0-0 Stubbed.
0x0033.... 1.0.0-0 Stubbed.
0x0034.... 1.0.0-0 Stubbed.
0x0035.... 1.0.0-0 Stubbed.
0x0036.... 1.0.0-0 Stubbed.
0x0037.... 1.0.0-0 Stubbed.
0x0038.... 1.0.0-0 Stubbed.
0x00390146 1.0.0-0 Sign
0x003A0146 1.0.0-0 Stubbed.
0x003B0042 1.0.0-0 GetCTCert
0x003C0000 1.0.0-0 GetDeviceID
0x003D0108 1.0.0-0 SetCertificates
0x003E0042 1.0.0-0 SetCertificate
0x003F0040 1.0.0-0 IsImportDatabaseInitialized
0x00400040 1.0.0-0 DoCleanup
0x00410000 1.0.0-0 DeleteAllTemporaryPrograms
0x00420142 1.0.0-0 InstallTitlesFinishFIRM
0x004301C8 2.0.0-2 VerifyDSiWareFooter
0x004400C4 2.0.0-2 This does basically nothing: after checking the two buffers' mem-ranges successfully(on failure it executes svcBreak like all other Process9 code for that), this just returns 0x0.
0x00450108 2.0.0-2 DecryptDSiWareData
0x00460182 2.0.0-2 WriteTWLSavedata
0x00470080 2.0.0-2 InitializeTitleDatabase
0x00480040 2.0.0-2 ReloadDBS
0x00490080 2.0.0-2 GetNumTicketIds
0x004A0102 2.0.0-2 GetTicketIdList
0x004B0100 2.0.0-2 DeleteTicketId
0x004C0042 2.0.0-2 GetPersonalizedTicketInfoList
0x004D0144 2.0.0-2 ExportDSiWare
0x004E00C0 2.0.0-2 BeginInstallDSiWareExport
0x004F00C0 2.0.0-2 GetDSiWareExportSize
0x00500044 2.0.0-2 GetTwlProgramListForReboot
0x00510000 2.0.0-2 DeleteAllTwlUserPrograms
0x00520040 2.0.0-2 DeleteAllExpiredUserPrograms
0x00530084 2.0.0-2 ValidateDSiWareMovableSedHash
0x00540000 2.0.0-2 GetTWLPartitionInfo
0x005500C4 2.0.0-2 ValidateDSiWareSectionMAC
0x005600C0 2.0.0-2 CheckContentRights
0x00570042 4.0.0-7 CreateImportContentContexts
0x005800C0 4.0.0-7 GetNumContentInfos
0x00590104 4.0.0-7 FindContentInfos
0x005A0142 4.0.0-7 ListContentInfos
0x005B0000 4.0.0-7 GetNumCurrentContentInfos
0x005C0044 4.0.0-7 FindCurrentContentInfos
0x005D0082 4.0.0-7 ListCurrentContentInfos
0x005E0102 4.0.0-7 DeleteContents
0x005F0080 4.0.0-7 GetNumTicketsOfProgram
0x00600102 4.0.0-7 ListDataTitleTicketInfos
0x00610142 4.0.0-7 ExportLicenseTicket
0x00620044 4.0.0-7 GetTicketLimitInfos
0x00630042 4.0.0-7 UpdateImportContentContexts
0x006400C0 4.0.0-7 GetInternalTitleLocationInfo
0x006500C0 4.0.0-7 MigrateAGBtoSAV
0x0066.... 4.0.0-7 Stubbed starting with 4.0.0-7.
0x00670082 4.0.0-7 DeleteProgramsAtomically
0x006801C2 4.0.0-7 GetItemRights
0x006900C0 4.0.0-7 IsDataTitleInUse
0x006A00C0 4.0.0-7 GetNumExistingContentInfos
0x006B0142 4.0.0-7 ListExistingContentInfos
0x006C00C0 5.0.0-11 InstallTitleBeginForOverwrite
0x006D0184 11.8.0-41 ExportTicketWrapped

Errors[edit]

Error-code Description
0xC8A0802B This indicates the the dbs image(.db) does not exist, or opening the .db file failed.
0xC8E083FC This error indicates that the title is already installed, with the same title-version as the title being installed?
0xD8E08027 Invalid title-version, or the title-version of the title being installed is older than the currently installed title-version.
0xD8A08004 Wrong installation state.
0xD8E08020 CIA file is empty.
0xD8E08025 Invalid NCCH. returned from InstallContentFinish
0xD8A08029 Error-type 1
0xD8E08065 Error-type -1
0xD8E08065+1 / 0xD8E08066 Error-type -2
0xD8E08065+2 / 0xD8E08067 Error-type -3. Returned when a CIA header is invalid.
0xD8E08065+3 / 0xD8E08068 Error-type -4
0xD8E08065+4 / 0xD8E08069 Error-type -5
0xD8E08065+5 / 0xD8E0806A Error-type -6. Returned when a function returns error -2011: signature or hash check for cert(TMD/TIK/cert-chain, ...) failed.
0xD8E08065+6 / 0xD8E0806B Error-type -7
0xD8E08065+7 / 0xD8E0806C Error-type -8
0xD8E08065+8 / 0xD8E0806D Error-type -9
0xD8E08065+9 / 0xD8E0806E Error-type -10
0xD8E08065+10 / 0xD8E0806F Error-type -11
0xD8E08065+11 / 0xD8E08070 Error-type -12
0xD8E08065+12 / 0xD8E08071 Error-type -13
0xD8E08065+13 / 0xD8E08072 Error-type -14
0xD8A083FA Invalid titleID(?) / the specified title(s) don't exist.
0xE0E0802C AM module returns this error when the system-title bit is set for the input CTR/TWL titleID-high, for AM:DeleteApplicationTitle.