diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6fd0a37 --- /dev/null +++ b/.gitignore @@ -0,0 +1,41 @@ +# Compiled Lua sources +luac.out + +# luarocks build files +*.src.rock +*.zip +*.tar.gz + +# Object files +*.o +*.os +*.ko +*.obj +*.elf + +# Precompiled Headers +*.gch +*.pch + +# Libraries +*.lib +*.a +*.la +*.lo +*.def +*.exp + +# Shared objects (inc. Windows DLLs) +*.dll +*.so +*.so.* +*.dylib + +# Executables +*.exe +*.out +*.app +*.i*86 +*.x86_64 +*.hex + diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..9cdff5b --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2017 Silica + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..ad22091 --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +# CEX-2-REX +Installs REX (Retail-Debug) Firmware on a regular CEX Vita + +REX Is like Testkit FW But a few things dont work properly +What does work: +Debug Utility +Trophy App "Unlock All" +Package Installer +Set Auto-Time Off to Never or 60 seconds +Browser app has no "Playstation.com" +PS Store doesnt show up. (can still be added to app.db or launched with psns:) +Both Title Stores. +CMA "Copy Savedata Only" + +What doesnt work: +Checker +MiniSettingsForQA +Debug Settings +Downgrading +Testkit Activation (yay!) +Executing Unsigned Code. +Quick Sign Up + +Also PSN Spoofing breaks on REX FW. since Henkaku r4 + +Made in LPP +Makes use of VitaRW by Major_Tom, diff --git a/data.zip b/data.zip new file mode 100644 index 0000000..3cb3d35 Binary files /dev/null and b/data.zip differ diff --git a/eboot.bin b/eboot.bin new file mode 100644 index 0000000..549e34d Binary files /dev/null and b/eboot.bin differ diff --git a/index.lua b/index.lua new file mode 100644 index 0000000..00d0638 --- /dev/null +++ b/index.lua @@ -0,0 +1,25 @@ +-- Create a new color +white = Color.new(255,255,255,255) +if System.doesFileExist("ux0:step1done.txt") then +dofile("app0:step2.lua") +end +-- Main loop +while true do + System.powerTick() + -- Draw a string on the screen + Graphics.initBlend() + Screen.clear() + Graphics.debugPrint(5, 5, "WARNING: DO NOT TURN OFF YOUR SYSTEM OR EXIT THIS APP WHILE INSTALLING", white) + Graphics.debugPrint(5, 45, "X: Run VitaRW To Enable R/W Permissions To VS0", white) + Graphics.termBlend() + + -- Update screen (For double buffering) + Screen.flip() + + -- Check controls for exiting + if Controls.check(Controls.read(), SCE_CTRL_CROSS) then + fileStream = io.open("ux0:step1done.txt",FCREATE) + System.launchEboot("app0:vitarw.bin") + end + +end \ No newline at end of file diff --git a/reboot.bin b/reboot.bin new file mode 100644 index 0000000..d1dfb6c Binary files /dev/null and b/reboot.bin differ diff --git a/sce_sys/icon0.png b/sce_sys/icon0.png new file mode 100644 index 0000000..45359f6 Binary files /dev/null and b/sce_sys/icon0.png differ diff --git a/sce_sys/livearea/contents/bg.png b/sce_sys/livearea/contents/bg.png new file mode 100644 index 0000000..debbcf6 Binary files /dev/null and b/sce_sys/livearea/contents/bg.png differ diff --git a/sce_sys/livearea/contents/startup.png b/sce_sys/livearea/contents/startup.png new file mode 100644 index 0000000..a94f193 Binary files /dev/null and b/sce_sys/livearea/contents/startup.png differ diff --git a/sce_sys/livearea/contents/template.xml b/sce_sys/livearea/contents/template.xml new file mode 100644 index 0000000..a4d43f0 --- /dev/null +++ b/sce_sys/livearea/contents/template.xml @@ -0,0 +1,11 @@ + + + + + bg.png + + + + startup.png + + diff --git a/sce_sys/param.sfo b/sce_sys/param.sfo new file mode 100644 index 0000000..3dcb796 Binary files /dev/null and b/sce_sys/param.sfo differ diff --git a/shell.zip b/shell.zip new file mode 100644 index 0000000..41e9c30 Binary files /dev/null and b/shell.zip differ diff --git a/step2.lua b/step2.lua new file mode 100644 index 0000000..6c200f4 --- /dev/null +++ b/step2.lua @@ -0,0 +1,25 @@ +-- Create a new color +white = Color.new(255,255,255,255) + +-- Main loop +while true do + System.powerTick() + -- Draw a string on the screen + Graphics.initBlend() + Screen.clear() + Graphics.debugPrint(5, 5, "WARNING: DO NOT TURN OFF YOUR SYSTEM OR EXIT THIS APP WHILE INSTALLING", white) + Graphics.debugPrint(5, 25, "PROCEEDING WITH THE INSTALLATION WILL REPLACE FILES IN VS0!", white) + Graphics.debugPrint(5, 65, "X: Begin Installation", white) + Graphics.termBlend() + + -- Update screen (For double buffering) + Screen.flip() + + -- Check controls for exiting + if Controls.check(Controls.read(), SCE_CTRL_CROSS) then + System.deleteFile("ux0:step1done.txt") + Screen.clear() + dofile("app0:step3.lua") + end + +end \ No newline at end of file diff --git a/step3.lua b/step3.lua new file mode 100644 index 0000000..bea16a3 --- /dev/null +++ b/step3.lua @@ -0,0 +1,42 @@ +-- Create a new color +white = Color.new(255,255,255,255) +if System.getBatteryPercentage() > 25 then + +-- Main loop +while true do + System.powerTick() + -- Draw a string on the screen + Graphics.initBlend() + Screen.clear() + Graphics.debugPrint(5, 5, "INSTALLING REBUG...", white) + Graphics.debugPrint(5, 25, "DO NOT TURN OFF THE SYSTEM OR EXIT THIS APP!!!", white) + Graphics.debugPrint(5, 45, "THE PSVITA WILL AUTOMATICALLY REBOOT WHEN INSTALLATON IS DONE.", white) + Graphics.termBlend() + -- Update screen (For double buffering) + Screen.flip() + System.deleteDirectory("vs0:/app") + System.deleteDirectory("vs0:/data") + System.deleteDirectory("vs0:/sys") + System.deleteDirectory("vs0:/tool") + System.deleteDirectory("vs0:/vsh") + System.extractZIP("app0:app.zip","vs0:") + System.extractZIP("app0:data.zip","vs0:") + System.extractZIP("app0:sys.zip","vs0:") + System.extractZIP("app0:tool.zip","vs0:") + System.extractZIP("app0:vsh.zip","vs0:") + System.extractZIP("app0:shell.zip","ur0:") + System.launchEboot("app0:reboot.bin") + + + +end + +end +if System.getBatteryPercentage() < 25 then + + Graphics.initBlend() + Screen.clear() + Graphics.debugPrint(5, 5, "Battery Is Under 25% Cannot Install.", white) + Graphics.termBlend() + +end diff --git a/sys.zip b/sys.zip new file mode 100644 index 0000000..5b4578c Binary files /dev/null and b/sys.zip differ diff --git a/tool.zip b/tool.zip new file mode 100644 index 0000000..4954c43 Binary files /dev/null and b/tool.zip differ diff --git a/vitarw.bin b/vitarw.bin new file mode 100644 index 0000000..58c208b Binary files /dev/null and b/vitarw.bin differ diff --git a/vsh.zip b/vsh.zip new file mode 100644 index 0000000..ae1c357 Binary files /dev/null and b/vsh.zip differ