Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Userland Vita Loader

From GameBrew
Revision as of 03:26, 5 December 2022 by HydeWing (talk | contribs) (Text replacement - "GameBrew!" to "GameBrew")
Userland Vita Loader
Userlandvitaloadervita.jpg
General
Authoryifanlu
TypeExploits
Version1.0
LicenseApache-2.0
Last Updated2018/01/05
Links
Download
Source

UVLoader (Userland Vita Loader) is an exploit for loading unsigned executables on your Vita.

UVLoader - What is this?

In short, this is a loader that allows running homebrew games on the Vita using save-file exploits or similar methods where there is no access to the system loader functions (which are found in the kernel). UVL does this by hooking on to functions and API calls imported by the running game and passing them to the homebrew being loader.

This is not a way to run backups or pirated games as that is not only wrong to do, but also because UVL does not and can not decrypt content nor can it do dynamic linking or other sophisticated things that the system loader does.

How do I run UVLoader?

UVL is designed to work with any userland exploit with little configuration. However, you should check with the developer of the exploit who ported UVL to see how to use it. UVL cannot do anything by itself, it is simply a payload that is executed by an exploit to run homebrews unmodified.

Screenshot

Userlandvitaloadervita.jpg

How can I call UVLoader API functions from my homebrew?

Make sure $VITASDK points to where the toolchain is installed. Then run make install_lib to install the UVL stub library to the right place. Then you can include psp2/uvl.h into your project and build with -lUVLoader_stub. Finally to create the resulting VELF, you need to pass the UVL JSON database as the parameter to vita-elf-create ($(VITASDK)/share/uvloader.json). See the documentation for details on the exported functions and when to use them. The library exposes functions for logging and dynamic code generation that is otherwise missing from the SDK.

How do I port UVLoader?

If you have an exploit for the Vita (not the PSP emulator as UVL does not work on that), then you should be able to port the exploit by finding a couple of memory addresses for some API calls and passing them to the config file. More information will be available when the time comes...

How do I compile UVLoader?

First of all, be aware that it is impossible to use UVL without an exploit, but once you have that and need a payload, all you need to do is modify the Makefile to point to your ARM toolchain and run "make". The toolchain that is tested with is https://launchpad.net/gcc-arm-embedded/+download.

Who's responsible for this?

This project is based heavily off of Half Byte Loader for the PSP. Some code is ripped from the Bionic libc project. The project is started by Yifan Lu with thanks to the following people for their contribution. (Apologies for those forgotten.)

Changelog

1.1.0

  • Added Unity PSM cleanup code (thanks Netrix)

1.0.1

  • Added support for multiple loads (stacked homebrew loading)

1.0.0

  • Relocatable ELF (ET_SCE_RELEXEC) support
  • ARM relocation resolving
  • SceLibKernel NID cache database (for NID poison bypass)
  • Library reloading (another NID antidote technique)
  • UVL custom exports (code alloc, icache flush, logging via USB)

0.1.0

  • Initial release

Thanks To

  • Davee for many ideas and help
  • Proxima for module reloading NID antidote method
  • naehrwert for some code snippets and programming help
  • roxfan for finding structures
  • Netrix for Unity cleanup code
  • anyone in #vitadev who answered my stupid questions

External links

Advertising: