Unity Plugin for Apps from PS4 Home Screen Unjailed & Source Code
Thanks to LibHB developed and researched by @cfwprophet (Twitter), and with his support this morning we worked together and finally here it is.

I've built on my side the Unity Plugin to allow any developer escalate the privileges of the app running to ROOT. Obviously this will work for apps developed with Unity.

I will release source code (now available below) as soon as I've got it ready to use, and clean of testing garbage.

I will also release a new version of PS4-GBEmu but instead with the big list of ROMs, empty of roms, and with access to the USB0. So remember to plug your USB disk with ROMS in your PS4.

Here, a sneak peak with the Mediaplayer & File Manager PoC that I shown several days ago, but using USB0.

Running Unity App PS4 Unjail - Using LibHB - CFWProphet - RetroGamer

Thanks.

:arrow: Update: All of my sources released. Welcome Unity Developers to the PS4 Scene!

Hi everyone, as I promised, I did my best to bring to the scene all information as I can to make life easier for many developers, and make them enter into the scene to share their apps and make the scene growns.

So here I give you all my research and development. It is a set of apps, plugin, and tutorial to help you developing unjailed apps, emulators, payloads (yes payloads, you're unjailed, you're root), payloads with better User Interface, with parameters, and better communication with the user.

You got everything here. Hope you enjoy. And please come to help, come to develop.

From the README.md: PS4 Developing Homebrew Unity (Tested with 4.55 but you can build for other versions if you use the right *** and Unity versions)

PS4 Developing HomeBrew with Unity is set of apps and info I've prepared for you, if you're interested on developing homebrew.

So this is all information you've got available from my repos...
PS4 GBEmu: GameBoy Emulator (Beta) for PS4 by RetroGamer74
Hi guys, following my last update regarding the topic of a GameBoy Emulator for PS4 here is an early PS4 GBEmu Beta.

Previously PlayStation 4 developer @CTurt also made available a port of the Cinoop GameBoy emulator to PS4 via WebKit exploit for those following.

Still many things to fix. Even the sound is ok under Windows Unity Editor, it does not work well in PS4. It looks to be a problem of frequencies.

I'll have to check it. Here is a sneak peak.

Here is the PKG for downloading. I've included just one ROM which is Super Mario Land 2. Some more GB / GBC ROMs can be found courtesy of SCORPION1399 below:

Download: ED1685-NPXX51385_00-0000000000000000-A0100-V0100.pkg (58.8 MB) / GAMEBOY_1483_ROMS.rar (170.2 MB) / GBC_1005_ROMS.rar (GameBoy Color ROMs Pack - 462.8 MB) / ED1685-NPXX51385_00-0000000000000000-A0100-V0100.pkg (389.8 MB - Beta 2) / Passcode

There are 2 main things still under development:
  1. First one is File Manager integration to load ROMS. This is easy to do using the File Manager you could see some days ago. To complete this task it would be great some of you could do a big package of all ROMS as he can and make me available for download it. I will add it to the compilation.
  2. Second one will be fix the sound issue.
Hope you enjoy.
PS4-GBEmu Beta 2 - With Rom Loader -Tutorial - RetroGamer
Game Boy Emulator for PS4 by...
PS4 File Manager (PoC) Keyboard and Track Support by RetroGamer74
Hi guys, following my guide on Unity for all of you interested in a File Manager for PS4 HEN 4.55 this is a PoC (Proof-of-Concept).

I was adapting to PS4 one of my old projects. It works with joystick and track. Here is the PKG for all of you interested on testing.

Download: ED1634-NPXX51363_00-0000000000000000-A0100-V0100.pkg (111 MB) / MediaPlayer_FileManager.rar (87.1 MB - Source Code) by RetroGamer74

And I hope to release the full project in a couple of hours to give everybody the choice to improve it and contribute to the scene.

Here is a video.


Best regards.
From Pastebin:
Code:
    function ls(path)
    {
      var sep = "/"
      if (path[path.length-1]=="/") sep = "";
   
      var fd = p.syscall("sys_open", p.sptr(path), 0x1100004).low;
      if (fd == (-1 >>> 0))
      {
        print("open("+path+"): -1");
        return;
      }

      if (path.endsWith("sprx"))
      {
        var buffer32 = new Uint32Array(0x9000);
        var buffer = p.read8(p.leakval(buffer32).add32(0x10));
        while(ret = p.syscall("sys_read", fd, buffer, 0x9000).low > 0)
        {
          //alert(ret);
          alert(p.readStringLen(buffer.add32(0x20), 0x9000));
        }
      }
      print("Directory listing for " +path+":<br/>");
      var total = p.syscall("sys_getdents", fd, lsscrtch, 0x1000).low;
      if (total == (-1 >>> 0))
      {
        print("getdents("+path+"): -1");
        return;
      }

      var offset = 0;
      while (offset < total)
      {
        var cur = lsscrtch.add32(offset);
        var reclen = p.read4(cur.add32(4)) & 0xFFFF;
        var filepath = path + sep +...
How to Compile and Build with Unity for PS4 FPKG by RetroGamer74
Hi everyone, I was finally able to compile and run packages using Unity, many of you ask to me how to do it so I wrote a tutorial which can also be found below.

I hope many of you join to the PlayStation 4 scene and help developing PS4 homebrew, or follow THIS guide via VitaHex covering how to setup Unity to develop PS Vita games :)

Also @jocover has made available both a Space Shooter.pkg and tank.pkg HERE for those interested!

Let me know if everything goes fine.

Best regards.

How To Build With Unity PS4 FakePKG

In order to build with success using Unity PS4 you need to be sure your setup is complete.

Setup

1. Install PS4 ***. There is a release out there you have to look for. (Krome Mods)

2. Install Unity 2017.2.0p2. (You have to look for the version capable to build for 4.55 PS4 release).

3. Install Unity PS4 2017.2.0p2 for the same release than Unity 2017 release.

4. You can also install Monodevelop from the preferences menu option within Unity Editor. You can, anyway, install Visual Studio as IDE.

5. Once PS4 *** is installed you have to replace the Publishing Tools which are located in PATH_SDK/ORBIS/Tools/Publishing Tools/ with the FakePKG tools you can download from: Publishing Tools.zip (4.6 MB)

6.- Create a Unity account if you still don't have one.

7.- Set the license. You can do this in first Unity startup, or in the Help menu, by selecting Manage License. Then, select Activate License, and set yours.

Building

1.
Create a new project, or open an existing one, or just import one of the packages as samples you can also find out there.

2. When you ready to build the project select File -> Build Settings.

3. Set the window as show in next image.

4. Now click in Player Settings button on the bottom left side of the Build Settings window.

[ATTACH type="full" alt="How to...
Unity PS4 HEN Compilation Demo by RetroGamer74
Thanks for sharing Unity. I'm in :)

A sneak peak compilation demo video is below. Also here is ALPHA-V2.pkg (NPXS29111-app.rar) from LightningMods followed by v3-455.pkg (4.55) Alpha-V3.pkg (5.05) with changes outlined below and a Fake Version Patch by jocover as Unity 2017.2.0p2 requires 4.70 minimum.

Looking forward to seeing a lot more PS4 Homebrew coming soon for PS4 HEN with the recent Unity leak: How to Compile and Build with Unity for PS4 FPKG by RetroGamer74

ALPHA V2 HOMEBREW For PS4 (4.55 ONLY)

ALPHA-V2.pkg (341 MB)
MD5: 0845DF0E444B9318219A08711BB0335A

ADDED In ALPHA V2
  • File manager (touch pad only)
  • Page 2
  • Video Player with home button
  • Video Player Options
  • File manager OverLay
  • FTP Server Start (unavailable)
  • Sonic W.I.P
  • Video Player USB Compatibility (Disabled for V2)
  • Local Web Server (Just a PoC so it wont show a page but will show IP and Port)
  • Will pick a RANDOM OPEN PORT
ALPHA V2 Known Issues
  • Roll-a-Bal controls need to be fixed
  • File manager is Touch Pad only
  • File manager is SANDBOXED (will be unjailed in future release)
  • Local Web Server shows error because it cant find Index
Credits

Me, x41, ZeraTron_

ALPHA V3 HOMEBREW For PS4 (4.55 / 5.05)
  • v3-455.pkg (4.55)
  • Alpha-V3.pkg (5.05 - MD5: 101732493715DE9913831F9B3630C0EE)
ADDED In ALPHA V3
  • ONLY Works for 5.00+
  • Unjailed
  • Video Player with USB Support
  • Broken GameBoy Emu
  • Added more Bugs to fix later
Spoiler: Some Unity Leak Tweets
Back
Top