Applet Manager services: Difference between revisions

 
(26 intermediate revisions by 3 users not shown)
Line 280: Line 280:
|-
|-
| 30 || [12.0.0+] [[#OpenCradleFirmwareUpdater]]
| 30 || [12.0.0+] [[#OpenCradleFirmwareUpdater]]
|-
| 100 || [S2]
|}
|}


Line 338: Line 340:
==== OpenCradleFirmwareUpdater ====
==== OpenCradleFirmwareUpdater ====
No input, returns an [[#ICradleFirmwareUpdater]].
No input, returns an [[#ICradleFirmwareUpdater]].
==== Cmd100 ====
No input, returns an output handle.


=== ICradleFirmwareUpdater ===
=== ICradleFirmwareUpdater ===
Line 636: Line 641:
|-
|-
| 100 || [15.0.0+] SetApplicationCoreUsageMode
| 100 || [15.0.0+] SetApplicationCoreUsageMode
|-
| 110 || [S2]
|-
| 111 || [S2]
|-
| 112 || [S2]
|-
| 113 || [S2]
|-
| 114 || [S2]
|-
| 115 || [S2]
|-
| 116 || [S2]
|-
| 117 || [S2]
|-
| 118 || [S2]
|-
| 119 || [S2]
|-
| 120 || [S2]
|-
| 121 || [S2]
|-
| 122 || [S2]
|-
| 123 || [S2]
|-
| 124 || [S2]
|-
| 130 || [S2]
|-
| 131 || [S2] [20.0.0+]
|-
| 135 || [S2] [20.0.0+]
|-
| 140 || [S2]
|-
| 150 || [S2]
|-
|-
| 160 || [18.0.0+] [[#GetNotificationReceiverService|GetNotificationReceiverService]]
| 160 || [18.0.0+] [[#GetNotificationReceiverService|GetNotificationReceiverService]]
|-
|-
| 161 || [18.0.0+] [[#GetNotificationSenderService|GetNotificationSenderService]]
| 161 || [18.0.0+] [[#GetNotificationSenderService|GetNotificationSenderService]]
|-
| 170 || [S2]
|-
| 171 || [S2]
|-
| 200 || [S2]
|-
| 210 || [S2]
|-
| 211 || [S2]
|-
| 220 || [S2]
|-
| 221 || [S2]
|-
| 230 || [S2]
|-
| 231 || [S2]
|-
| 250 || [S2]
|-
| 251 || [S2]
|-
| 252 || [S2]
|-
| 253 || [S2]
|-
| 260 || [S2]
|-
| 271 || [S2] [20.0.0+]
|-
| 280 || [S2] [20.0.0+]
|-
| 290 || [S2] [20.0.0+] RequestChatProhibition
|-
| 291 || [S2] [20.0.0+] RequestChatExpirationCheckSkip
|-
|-
| 300 || [17.0.0+] GetCurrentApplicationId
| 300 || [17.0.0+] GetCurrentApplicationId
Line 666: Line 747:
|-
|-
| 370 || [22.0.0+] GetGpuErrorEventForApplet
| 370 || [22.0.0+] GetGpuErrorEventForApplet
|-
| 2000 || [S2]
|-
| 2010 || [S2]
|-
| 3000 || [S2] [20.0.0+]
|-
| 3010 || [S2] [20.0.0+]
|}
|}


Line 741: Line 830:
! Cmd || Name
! Cmd || Name
|-
|-
| 0 ||  
| 0 || AddSource
|-
|-
| 1 ||  
| 1 || RemoveSource
|-
|-
| 2 ||  
| 2 || GetEvent
|-
|-
| 3 ||  
| 3 || Receive
|-
|-
| 4 ||  
| 4 || ReceiveWithTick
|}
|}
===== GetEvent =====
Unofficial name.
No input, returns an Event handle.
===== ReceiveWithTick =====
Unofficial name.


=== ISenderService ===
=== ISenderService ===
Line 776: Line 873:
! Cmd || Name
! Cmd || Name
|-
|-
| 0 ||  
| 0 || Send
|-
|-
| 1 ||  
| 1 || GetUnreceivedMessageCount
|}
|}


Line 1,097: Line 1,194:
|-
|-
| 60 || [19.0.0+]  
| 60 || [19.0.0+]  
|-
| 61 || [S2]
|-
|-
| 70 || [21.0.0+]  
| 70 || [21.0.0+]  
Line 1,107: Line 1,206:
|-
|-
| 101 || [5.0.0+] [[#BeginToObserveHidInputForDevelop]]
| 101 || [5.0.0+] [[#BeginToObserveHidInputForDevelop]]
|-
| 110 || [S2]
|-
| 1000 || [S2]
|}
|}


Line 1,258: Line 1,361:
| 202 ||  
| 202 ||  
|-
|-
| 210 ||  
| 210 || [20.0.0+]
|-
|-
| 220 ||  
| 220 || [20.0.0+]
|}
|}


Line 1,271: Line 1,374:
==== ILibraryAppletAgent ====
==== ILibraryAppletAgent ====
This is "nn::am::service::ILibraryAppletAgent".
This is "nn::am::service::ILibraryAppletAgent".
This is exclusive to Switch 2.
{| class="wikitable" border="1"
|-
! Cmd || Name
|-
|}
==== IFocusableLayer ====
This is "nn::am::service::IFocusableLayer".


This is exclusive to Switch 2.
This is exclusive to Switch 2.
Line 1,298: Line 1,390:
|-
|-
| 4 ||  
| 4 ||  
|-
| 5 ||
|-
|-
| 10 ||  
| 10 ||  
|-
| 11 ||
|-
|-
| 20 ||  
| 20 ||  
|-
|-
| 21 ||  
| 21 ||  
|-
| 31 ||
|-
|-
| 32 ||  
| 32 ||  
|-
|-
| 33 ||  
| 33 ||  
|-
| 34 ||
|-
| 35 ||
|-
|-
| 40 ||  
| 40 ||  
Line 1,316: Line 1,414:
|-
|-
| 42 ||  
| 42 ||  
|-
|}
| 50 ||  
 
|-
===== Cmd0 =====
| 51 ||
No input, returns an [[#IStorage|IStorage]].
|-
 
| 60 ||
===== Cmd1 =====
|-
Takes an unknown input interface, no output.
| 70 ||
 
|-
===== Cmd2 =====
| 71 ||
No input, returns an [[#IStorage|IStorage]].
|}
 
===== Cmd3 =====
Takes an unknown input interface, no output.
 
===== Cmd10 =====
No input, returns an [[#IStorage|IStorage]].
 
===== Cmd20 =====
Takes an unknown input interface, no output.
 
===== Cmd21 =====
Takes an unknown input interface, no output.
 
==== IFocusableLayer ====
This is "nn::am::service::IFocusableLayer".


== IApplicationProxy ==
This is exclusive to Switch 2.
This is "nn::am::service::IApplicationProxy".


{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Cmd || Name || Notes
! Cmd || Name
|-
| 0 ||
|-
| 1 ||  
|-
|-
| 0 || GetCommonStateGetter || Returns an [[#ICommonStateGetter]].
| 2 ||  
|-
|-
| 1 || GetSelfController || Returns an [[#ISelfController]].
| 3 ||  
|-
|-
| 2 || GetWindowController || Returns an [[#IWindowController]].
| 4 ||  
|-
|-
| 3 || GetAudioController || Returns an [[#IAudioController]].
| 10 ||  
|-
|-
| 4 || GetDisplayController || Returns an [[#IDisplayController]].
| 11 ||  
|-
|-
| 10 || GetProcessWindingController || Returns an [[#IProcessWindingController]].
| 20 ||  
|-
|-
| 11 || GetLibraryAppletCreator || Returns an [[#ILibraryAppletCreator]].
| 21 ||  
|-
|-
| 20 || GetApplicationFunctions || Returns an [[#IApplicationFunctions]].
| 32 ||  
|-
|-
| 1000 || GetDebugFunctions || Returns an [[#IDebugFunctions]].
| 33 ||
|-
| 40 ||
|-
| 41 ||
|-
| 42 ||
|-
| 50 || [20.0.0+]
|-
| 51 || [20.0.0+]
|-
| 60 || [20.0.0+]
|-
| 70 || [20.0.0+]
|-
| 71 || [20.0.0+]
|}
 
== IApplicationProxy ==
This is "nn::am::service::IApplicationProxy".
 
{| class="wikitable" border="1"
|-
! Cmd || Name || Notes
|-
| 0 || GetCommonStateGetter || Returns an [[#ICommonStateGetter]].
|-
| 1 || GetSelfController || Returns an [[#ISelfController]].
|-
| 2 || GetWindowController || Returns an [[#IWindowController]].
|-
| 3 || GetAudioController || Returns an [[#IAudioController]].
|-
| 4 || GetDisplayController || Returns an [[#IDisplayController]].
|-
| 10 || GetProcessWindingController || Returns an [[#IProcessWindingController]].
|-
| 11 || GetLibraryAppletCreator || Returns an [[#ILibraryAppletCreator]].
|-
| 20 || GetApplicationFunctions || Returns an [[#IApplicationFunctions]].
|-
| 40 || [S2] || Returns an [[#IPerformanceFunctions|IPerformanceFunctions]].
|-
| 60 || [S2] || Returns an [[#IGraphicsScalingParametersFunctions|IGraphicsScalingParametersFunctions]].
|-
| 1000 || GetDebugFunctions || Returns an [[#IDebugFunctions]].
|}
|}


Line 1,486: Line 1,647:
|-
|-
| 220 || [20.0.0+] [[#SetAudioOutputPolicy|SetAudioOutputPolicy]]
| 220 || [20.0.0+] [[#SetAudioOutputPolicy|SetAudioOutputPolicy]]
|-
| 230 || [S2] [20.0.0+] IsTensorRtSupported
|-
|-
| 300 || [19.0.0+] [[#CreateMovieWriter]]
| 300 || [19.0.0+] [[#CreateMovieWriter]]
Line 1,492: Line 1,655:
|-
|-
| 320 || [20.0.0+]
| 320 || [20.0.0+]
|-
| 321 || [S2] [20.0.0+]
|-
|-
| 330 || [20.2.0+] IsLanguageSelectionLimited
| 330 || [20.2.0+] IsLanguageSelectionLimited
Line 1,848: Line 2,013:
==== GetLayerHandle ====
==== GetLayerHandle ====
No input, returns an output u64.
No input, returns an output u64.
=== IPerformanceFunctions ===
This is "nn::am::service::IPerformanceFunctions".
This is exclusive to Switch 2.
{| class="wikitable" border="1"
|-
! Cmd || Name
|-
| 0 || IsCpuOverclockEnabled
|-
| 1 || SetCpuOverclockEnabled
|}
=== IGraphicsScalingParametersFunctions ===
This is "nn::am::service::IGraphicsScalingParametersFunctions".
This is exclusive to Switch 2.
{| class="wikitable" border="1"
|-
! Cmd || Name
|-
| 10 || GetGraphicsScalingParameters
|-
| 1000 || SetSupportingGraphicsScalingParametersForDebug
|-
| 1010 || SetGpuQuotaForDebug
|-
| 1020 || ClearGpuQuotaForDebug
|-
| 1030 || SetScreenRatioForDebug
|-
| 1040 || ClearScreenRatioForDebug
|-
| 1050 || SetGraphicsScaleChangedNotificationEnabled
|}


== ILibraryAppletCreator ==
== ILibraryAppletCreator ==
Line 1,936: Line 2,139:
|-
|-
| 60 || [10.0.0+] [[#PresetLibraryAppletGpuTimeSliceZero]] ||
| 60 || [10.0.0+] [[#PresetLibraryAppletGpuTimeSliceZero]] ||
|-
| 70 || [S2] ||
|-
|-
| 80 || [19.0.0+] RequestForLibraryAppletToGetForeground ||
| 80 || [19.0.0+] RequestForLibraryAppletToGetForeground ||
Line 2,109: Line 2,314:
| 120 || [13.0.0+] GetAppletLaunchedHistory
| 120 || [13.0.0+] GetAppletLaunchedHistory
|-
|-
| 130 || [21.0.0+]
| 130 || [21.0.0+] EnableStartupLogoDisappearedMessage
|-
|-
| 200 || [7.0.0+] [[#GetOperationModeSystemInfo]]
| 200 || [7.0.0+] [[#GetOperationModeSystemInfo]]
Line 2,132: Line 2,337:
|-
|-
| 611 || [22.0.0+]
| 611 || [22.0.0+]
|-
| 650 || [S2] BeginUsingCameraResource
|-
| 651 || [S2] EndUsingCameraResource
|-
|-
| 900 || [11.0.0+] [[#SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled]]
| 900 || [11.0.0+] [[#SetRequestExitToLibraryAppletAtExecuteNextProgramEnabled]]
Line 2,148: Line 2,357:
|-
|-
| 1005 || [21.0.0+] GetPanelResolutionForSpecificTitle
| 1005 || [21.0.0+] GetPanelResolutionForSpecificTitle
|-
| 2000 || [S2] SetRtcModeChangedMessageEnabled
|-
| 2010 || [S2] GetCurrentDisplayLayoutRatio
|}
|}


Line 2,517: Line 2,730:
|-
|-
| 2200 || [S2] SetSharingLayerEnabled
| 2200 || [S2] SetSharingLayerEnabled
|-
| 2300 || [S2] [20.0.0+] SetCopyrightLayerEnabled
|-
| 2400 || [S2] SetRtcScreenSharingAudioEnabled
|-
| 2401 || [S2] [20.0.0+] SetStreamPlayMirroringAudioEnabled
|-
| 2402 || [S2] [20.0.0+]
|}
|}


Line 3,162: Line 3,383:
! Cmd || Name
! Cmd || Name
|-
|-
| 0 ||  
| 1 ||  
|}
|}


=== Cmd0 ===
=== Cmd1 ===
No input. Returns an [[#IApplicationObserver]].
No input. Returns an [[#IApplicationObserver]].


Line 3,186: Line 3,407:
|-
|-
| 30 ||  
| 30 ||  
|-
| 40 || [S2] [20.0.0+]
|}
|}


Line 3,239: Line 3,462:
{| class="wikitable" border="1"
{| class="wikitable" border="1"
|-
|-
! Cmd || Name || Notes
! Cmd || Name
|-
| 1 ||  
|-
|-
|}
| 102 ||
|-
| 103 ||
|-
| 104 ||
|-
| 110 ||
|-
| 120 ||
|-
| 121 ||
|-
| 130 ||
|-
| 140 || [20.0.0+]
|-
| 141 || [20.0.0+]
|-
| 200 ||
|-
| 201 ||
|-
| 210 || [20.0.0+]
|-
| 220 || [20.0.0+]
|}


== IDebugFunctions ==
== IDebugFunctions ==
Line 3,300: Line 3,550:
| 300 || [16.0.0+] TerminateAllRunningApplicationsForDebug
| 300 || [16.0.0+] TerminateAllRunningApplicationsForDebug
|-
|-
| 400 || [S2]
| 400 || [S2] LaunchDebugAppletForDebug
|-
|-
| 401 || [S2]
| 401 || [S2] TerminateDebugAppletForDebug
|-
|-
| 402 || [S2]
| 402 || [S2] IsDebugAppletLaunchedForDebug
|-
|-
| 403 || [S2]
| 403 || [S2]
Line 3,322: Line 3,572:
| 910 || [20.0.0+]
| 910 || [20.0.0+]
|-
|-
| 2000 || [S2]
| 2000 || [S2] [20.0.0+]
|-
|-
| 10000 || [S2]
| 10000 || [S2]
Line 3,495: Line 3,745:
|-
|-
! Cmd || Name
! Cmd || Name
|-
| 2000 || [S2] [[#OpenCompatApplicationFunctions|OpenCompatApplicationFunctions]]
|-
|-
| 0 || [[#OpenApplicationProxy]]
| 0 || [[#OpenApplicationProxy]]
|-
| 10 || [S2] [[#OpenApplicationProxy2|OpenApplicationProxy2]]
|}
|}


Line 3,505: Line 3,759:


On failure, official user-processes will retry using this command in a loop while the retval is 0x19280, with svcSleepThread(10000000) being called first.
On failure, official user-processes will retry using this command in a loop while the retval is 0x19280, with svcSleepThread(10000000) being called first.
== OpenApplicationProxy2 ==
Unofficial name.
Takes an input u32, an u64 pid_reserved, a PID, and a process copy-handle (cur-proc handle alias). Returns an [[#IApplicationProxy]].


= idle:sys =
= idle:sys =
Line 3,733: Line 3,992:


This was added with [8.0.0+].
This was added with [8.0.0+].
[S2] Official sw no longer uses this (stubbed out).


{| class="wikitable" border="1"
{| class="wikitable" border="1"
Line 3,977: Line 4,238:
Unofficial name.
Unofficial name.


No input. Returns an output TIPC handle to [[Switch_2:_GSV_services|GraphicsSupervisor]]..
No input. Returns an output TIPC handle to [[Switch_2:_GSV_services|GraphicsSupervisor]].


Same as [[#GetGraphicsSupervisor]] but for compat mode.
Same as [[#GetGraphicsSupervisor]] but for compat mode.
Line 4,105: Line 4,366:
|-
|-
| 0x00000013
| 0x00000013
| 0x010000000000100A
| [22.0.0+] 0x0100000000001043 ([1.0.0-21.2.0] 0x010000000000100A)
| [[Internet_Browser#010000000000100A|LibraryAppletWeb (web)]]
| [[Internet_Browser#010000000000100A|LibraryAppletWeb (web)]]
|-
|-
Line 4,125: Line 4,386:
|-
|-
| 0x00000018
| 0x00000018
| 0x0100000000001010
| [22.0.0+] 0x0100000000001042 ([1.0.0-21.2.0] 0x0100000000001010)
| [[Internet_Browser#Whitelisted_Applets|LibraryAppletLoginShare (loginShare)]]
| [[Internet_Browser#Whitelisted_Applets|LibraryAppletLoginShare (loginShare)]]
|-
|-
| 0x00000019
| 0x00000019
| 0x0100000000001011
| [22.0.0+] 0x0100000000001043 ([1.0.0-21.2.0] 0x0100000000001011)
| [[Internet_Browser#WifiWebAuthApplet|LibraryAppletWifiWebAuth (wifiWebAuth)]]
| [[Internet_Browser#WifiWebAuthApplet|LibraryAppletWifiWebAuth (wifiWebAuth)]]
|-
|-
Line 4,177: Line 4,438:
|-
|-
| 0x00000035
| 0x00000035
| [17.0.0+] 0x0100000000001010 ([16.0.0-16.1.0] 0x0100000000001042)
| [22.0.0+] 0x0100000000001042 ([17.0.0-21.2.0] 0x0100000000001010, [16.0.0-16.1.0] 0x0100000000001042)
| [17.0.0+] LibraryAppletLhub ([16.0.0-16.1.0] ) ([[Internet_Browser#Whitelisted_Applets|LibraryAppletLoginShare (loginShare)]] in NX)
| [17.0.0+] LibraryAppletLhub ([16.0.0-16.1.0] ) ([[Internet_Browser#Whitelisted_Applets|LibraryAppletLoginShare (loginShare)]] in NX)
|-
|-
| 0x00000036
| 0x00000036
| [17.0.0+] 0x0100000000001010 ([16.0.0-16.1.0] 0x0100000000001042)
| [22.0.0+] 0x0100000000001042 ([17.0.0-21.2.0] 0x0100000000001010, [16.0.0-16.1.0] 0x0100000000001042)
| [17.0.0+] LibraryAppletLogin ([16.0.0-16.1.0] ) ([[Internet_Browser#Whitelisted_Applets|LibraryAppletLoginShare (loginShare)]] in NX)
| [17.0.0+] LibraryAppletLogin ([16.0.0-16.1.0] ) ([[Internet_Browser#Whitelisted_Applets|LibraryAppletLoginShare (loginShare)]] in NX)
|-
|-
| 0x00000037
| 0x00000037
| [17.0.0+] 0x0100000000001010 ([16.0.0-16.1.0] 0x0100000000001042)
| [22.0.0+] 0x0100000000001042 ([17.0.0-21.2.0] 0x0100000000001010, [16.0.0-16.1.0] 0x0100000000001042)
| [17.0.0+] LibraryAppletShare ([16.0.0-16.1.0] ) ([[Internet_Browser#Whitelisted_Applets|LibraryAppletLoginShare (loginShare)]] in NX)
| [17.0.0+] LibraryAppletShare ([16.0.0-16.1.0] ) ([[Internet_Browser#Whitelisted_Applets|LibraryAppletLoginShare (loginShare)]] in NX)
|-
|-
Line 4,199: Line 4,460:
| 0x0100000000001007
| 0x0100000000001007
| [18.0.0+]
| [18.0.0+]
|-
| 0x00000052
| 0x0100000000001001
| [22.0.0+]
|-
|-
| 0x00000064
| 0x00000064
| 0x0100000000001048
| 0x0100000000001048
| [20.0.0+] [[Splay_Applet|splay]]
| [20.0.0+] [[Splay_Applet|splay]]
|-
| 0x00000066
| 0x0100000000001054
| [21.0.0+]
|-
|-
| 0x000003E8
| 0x000003E8
Line 4,263: Line 4,532:
| 0x010000000000D60E
| 0x010000000000D60E
| [10.0.0-16.1.0] AppletILA2
| [10.0.0-16.1.0] AppletILA2
|-
| 0x0100000A
|
| [[Auth_Applet|LibraryAppletAuth]]
|-
| 0x0100000B
|
| [[Cabinet_Applet|LibraryAppletCabinet]]
|-
| 0x0100000C
|
| [[Controller_Applet|LibraryAppletController]]
|-
| 0x0100000D
|
| [S2]
|-
|-
| 0x0100000E
| 0x0100000E
Line 4,279: Line 4,564:
|  
|  
| [S2] Swkbd
| [S2] Swkbd
|-
| 0x01010012
|
| [S2] [[MiiEdit_Applet|LibraryAppletMiiEdit]] (for ShowMiiEdit)
|-
| 0x01020012
|
| [S2] [[MiiEdit_Applet|LibraryAppletMiiEdit]] (for AppendMii)
|-
| 0x01070012
|
| [S2] [[MiiEdit_Applet|LibraryAppletMiiEdit]] (for CreateMii)
|-
| 0x01080012
|
| [S2] [[MiiEdit_Applet|LibraryAppletMiiEdit]] (for EditMii)
|-
|-
| 0x01000013
| 0x01000013
Line 4,287: Line 4,588:
|  
|  
| [S2] LibraryAppletShop
| [S2] LibraryAppletShop
|-
| 0x01000015
|
| [S2] [[Album_Applet|Album]]
|-
| 0x01000017
|
| [S2] LibraryAppletOffline (for Gen0)
|-
| 0x01000018
|
| [S2] [[Internet_Browser#Whitelisted_Applets|LibraryAppletLoginShare]] (for Lobby)
|-
| 0x0100001A
|
| [S2] [[MyPage_Applet|MyPageApplet]]
|-
|-
| 0x01000022
| 0x01000022
|  
|  
| [S2] LibraryAppletPromoteQualification
| [S2] LibraryAppletPromoteQualification
|-
| 0x01000024
|
| [S2] SplayApplet
|-
| 0x01030024
|
| [S2] SplayApplet
|-
|-
| 0x01010025
| 0x01010025
|  
|  
| [S2] SaveDataBackup
| [S2] SaveDataBackup (System Settings menu for Save Data Cloud)
|-
|-
| 0x01020025
| 0x01020025
|  
|  
| [S2] SaveDataBackup
| [S2] SaveDataBackup (Same as above except with ApplicationId specified)
|-
| 0x01000028
|
| [S2] Eula
|-
|-
| 0x01000032
| 0x01000032
Line 4,331: Line 4,660:
|  
|  
| [S2] PlayerSelect
| [S2] PlayerSelect
|-
| 0x01000065
|
| [S2] Chat (ForChatStart)
|-
| 0x01010065
|
| [S2] Chat (ForCameraConfiguration)
|-
| 0x01020065
|
| [S2] Chat (ForFullScreen)
|-
| 0x01030065
|
| [S2] Chat (ForCameraSharingGuide)
|-
|-
| 0x700000C8
| 0x700000C8