Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

launch command for ppssppgold on android missing and ppsspp not working #282

Open
djay opened this issue Mar 25, 2023 · 10 comments
Open

launch command for ppssppgold on android missing and ppsspp not working #282

djay opened this issue Mar 25, 2023 · 10 comments

Comments

@djay
Copy link
Contributor

djay commented Mar 25, 2023

I had thought it was in the list but now can't find it and ppsspp launch command doesn't seem to work.

Update: 2a5d566 I can see it was removed here.

But the other change is PPSSPP doesn't work at all now. At least on firestick.

@djay djay changed the title support launch command for ppssppgold support launch command for ppssppgold on android Mar 25, 2023
@djay djay changed the title support launch command for ppssppgold on android launch command for ppssppgold on android missing and ppsspp not working Mar 25, 2023
@zach-morris
Copy link
Owner

PPSSPP with retroarch, or a separate emulator?

@djay
Copy link
Contributor Author

djay commented Mar 25, 2023

@zach-morris separate emulator

@IAmAGitHubb
Copy link

Same issue

@zach-morris
Copy link
Owner

zach-morris commented Mar 28, 2023

Trying to figure it out, but I'm having the same trouble.
The format is:

StartAndroidActivity("{application}", "{intent}", "{dataType}", "{dataURI}", "{flags}", "{extras_json}", "{action}", "{category}", "{className}")'

In the current external command, that equates to:

"org.ppsspp.ppsspp","android.intent.action.VIEW","","","270532608","[{"key":"org.ppsspp.ppsspp.Shortcuts","value":"file://%ROM_PATH%","type": "string"}]","","",".PpssppActivity"

These commands in the past have been helpful to try and figure out what the command needs to be.

Perhaps @chrisism has some ideas or has run into this with AKL?

@djay
Copy link
Contributor Author

djay commented Apr 28, 2023

@zach-morris whats the reason the old command can't be used? That was working on my system until I did a reinstall.

@zach-morris
Copy link
Owner

zach-morris commented Apr 28, 2023

The old method of launching using subprocess is prevented in newer Android OS's by the OS itself. The new method of launching uses an internal Kodi function (StartAndroidActivity) which is given permission to launch other apps.

If you have an old Android OS, you can change the advance setting in IAGL to use the old method by turning off 'Use StartAndroidActivity'. The new method and old method should work on old OS's though. The new method would work with these apps, if i could figure out what the command format needed is, but thus far, i can't figure it out

@djay
Copy link
Contributor Author

djay commented May 17, 2023

@zach-morris does this help?

hrydgard/ppsspp#17416

@djay
Copy link
Contributor Author

djay commented Jun 1, 2023

@zach-morris is there something I can help with?

@djay
Copy link
Contributor Author

djay commented Jun 12, 2023

@zach-morris I can confirm both of the following commands work on my system

am start -n org.ppsspp.ppsspp -a .PpssppActivity  -a android.intent.action.VIEW -e org.ppsspp.ppsspp.Shortcuts $FILE
am start -n org.ppsspp.ppsspp/.PpssppActivity -a android.intent.action.VIEW -c android.intent.category.DEFAULT -d $FILE -t application/octet-stream --activity-clear-task  --activity-clear-top  --activity-no-history

But I can't work out how to modify to the PSP_ZachMorris.xml to work.

I get the following in the log

2023-06-12 22:31:28.690 T:17431    info <general>: IAGL:  Lets Play!
2023-06-12 22:31:30.901 T:17431    info <general>: IAGL:  Post processing complete for ...
2023-06-12 22:31:31.250 T:17431   error <general>: IAGL:  Launcher None is unknown, defauling to RETROPLAYER
2023-06-12 22:31:31.294 T:5591    error <general>: StartActivity: ExceptionOccurred launching org.ppsspp.ppsspp

The xml looks like

		<emu_launcher>external</emu_launcher>
		<emu_default_addon>none</emu_default_addon>
		<emu_ext_launch_cmd>"org.ppsspp.ppsspp","android.intent.action.VIEW","","","270532608","[{"key":"org.ppsspp.ppsspp.Shortcuts","value":"file://%ROM_PATH%","type": "string"}]","","",".PpssppActivity"</emu_ext_launch_cmd>

so I can't work out why the command is not getting recognised as external.

@djay
Copy link
Contributor Author

djay commented Jun 23, 2023

@zach-morris the main problem seems to be with ".PpssppActivity". it needs to be the full version ie "org.ppsspp.ppsspp.PpssppActivity"
I can't see where to make the change so I can submit a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants