PS4 Universal Plugin Originally by @zecoxao
To start you will need to do a DLL Import in unity (universal.prx needs to be placed inside Assets\Plugins\PS4)
[DllImport("universal")]
//Custom Funciton to be added like below
private static extern UInt16 get_firmware();
private static extern int FreeUnjail(int FWVersion);
//Will unjail the current process (you're game or app)
//can be combined with the GetFirmware funciton to auto unjail
FreeUnjail(get_firmware());
private static extern int Temperature();
//Will return temp in ÂşC
private static extern int FreeFTP();
//Will enable FTP on the console
private static extern int FreeMount();
//Allows full rw
private static extern void SetTemperature(int celsius);
//allows you to set the temprature
Click to expand
private static extern void SetDebuggerTrue()
//Shows a debug notifications good old printf testing
Click to expand
private static extern int SendMessageToPS4(string Message)
//Shows a notification on the PS4
Methods that can be used for save data click to expand
private static extern int MountSaveData(string TITLEID,string fingerprint)
//mounts save data on the PS4 if using save mounter patches please use zero's for fingerprint
private static extern int UnMountSaveData()
//Unmounts all mounted save data
Click to expand
private static extern bool LoadExec(string path, string argv)
//Calls and opens an application
private static extern string GetIDPS()
//Gives you you're IDPS
private static extern string GetPSID()
//Gives you you're PSID
private static extern UInt16 get_firmware();
// should return as XXX e.g 505, 702 or 755
private static extern int get_fw()
//gets the version as an int (reads from kern.sdk_version) can be spoofed
private static extern string GetCallableList()
//Designed to show you all items you can call on the syste,
private static extern string GetListOfServices()
//Designed to show you all services you can call on the syste,
private static extern string KernelGetOpenPsId()
//Not sure why this call exists
private static extern string firmware_version_kernel()
//Get the firmware version on the kernel (but can be spoofed !)
private static extern string firmware_version_kernel()
//Get the firmware version by libc (for prevent from kernel spoof)
//Should no longer be required thanks to LM
Click to expand
private static extern string GetUsername()
//returns the current username
private static extern string GetUserId()
//returns the current userid
Click to expand
private static extern int UnlockTrophies(string TitleId,string Titleidsecret )
//returns the current username
private static extern int MakeCusaAppReadWrite()
//returns the current userid
Click to expand
private static extern int Change_Controller_Color(int r,int g,int b)
//Changes controler collor to RBG provided
Click to expand
private static extern int TakeScreenShot()
//Should take a screenshot of the current screen