PS Vita Hacking info... Henkaku

Just started playing with the latest exploits for the PlayStation Vita by way of henkaku.
Nothing really came up in a search here outside of shout box discussion so figured I'd start a thread to hold my own tinkering, research, and findings and let others add their own experiences. If there is one perhaps a mod can move this or combine threads.

Much of this is on other forums and pages but I'm hoping for more of a central place of my own and I like it here!
Feel free to recommend more info.


Firmware of the vita must be 3.60
On the Vita, browse to henkaku.xyz and click install
**Must install exploit every time vita is powered off, sleep does not count as power off**

Run shell and press select to start the first server.
Make note of IP address and port. Anonymous connection is fine.

Directory uX0 is the memory card. Upload there
Use shell to select and install applications emulators and homebrews in vpk format.

Retroarch ports work pretty well already and have nightly builds.
Emulators showcased on henkaku.xyz work really well.


List of retroarch builds and what they are for as of roughly September 22 2016

2048_libretro.vpk - 2048 core
desmume_libretro.vpk - DeSMuME, Nintendo DS Emulator
dosbox_libretro.vpk - DOSbox 2f5a, MS-DOS Emulator
fbalpha_libretro.vpk - FB Alpha v0.2.97.38, Arcade Machine Emulator (Various)
fbalpha2012_libretro.vpk - FB Alpha 2012 v0.2.97.30, Arcade Machine Emulator (Various)
fbalpha2012_cps1_libretro.vpk - FB Alpha 2012 CPS1 v0.2.97.28, CPS1 Emulator
fbalpha2012_cps2_libretro.vpk - FB Alpha 2012 CPS2 v0.2.97.28, CPS2 Emulator
fbalpha2012_neo_libretro.vpk - FB Alpha 2012 NeoGeo v0.2.97.30, SNK Neo-Geo AES/MVS Emulator
fceumm_libretro.vpk - FCEUmm (SVN), NES Emulator
fuse_libretro.vpk - Fuse 1.1.0, ZX Spectrum Emulator
gambatte_libretro.vpk - Gambatte v0.5.0, Game Boy Emulator
genesis_plus_gx_libretro.vpk - Genesis Plus GX v1.7.4, Sega Genesis/Master System Emulator
gpsp_libretro.vpk - gpSP, Game Boy Advance Emulator
gw_libretro.vpk - Game & Watch 1.0, G&W Game Player
handy_libretro.vpk - Handy 0.97, Atari Lynx Emulator
mame2000_libretro.vpk - MAME 0.37b5, Multiple Arcade Machine Emulator (Smallest ROMset, best performance)
mame2003_libretro.vpk - MAME 0.72, Multiple Arcade Machine Emulator (Bigger ROMset, less stable performance)
mednafen_ngp_libretro.vpk - MednaFen NeoPop v0.9.36.1, Neo-Geo Pocket (Color) Emulator
mednafen_pce_fast_libretro.vpk - MednaFen PCE Fast v0.9.38.7, PC-Engine/TurboGrafx 16 Emulator
mednafen_vb_libretro.vpk - MednaFen VB v0.9.36.1, Virtual Boy Emulator
mednafen_wswan_libretro.vpk - MednaFen WonderSwan v0.9.35.1, Bandai WonderSwan (Color) Emulator
nestopia_libretro.vpk - Nestopia v1.48-WIP, NES Emulator (Cycle-Accurate, highest accuracy)
nxengine_libretro.vpk - NXEngine 1.0.0.4, NXEngine (Cave Story/Doukutsu Monogatari) Player
pcsx_rearmed_libretro.vpk - PCSX ReARMed r22, PlayStation 1 Emulator
picodrive_libretro.vpk - PicoDrive 1.91, Sega Genesis Emulator
prboom_libretro.vpk - PrBoom v2.5.0, Doom Engine
prosystem_libretro.vpk - ProSystem 1.3e, Atari 7800 Emulator
quicknes_libretro.vpk - QuickNES v1, NES Emulator (Low Accuracy)
snes9x2002_libretro.vpk - Snes9X 2002 7.2.0, SNES Emulator (Previously known as PocketSNES, Lowest Accuracy)
snes9x2005_libretro.vpk - Snes9x 2005 v1.36, SNES Emulator (Formerly known as CatSFC)
snes9x2005_plus_libretro.vpk - Snes9x 2005 Plus v1.36, SNES Emulator + Improved Sound? (Formerly known as CatSFC+)
snes9x2010_libretro.vpk - Snes9x 2010 v1.52.4, SNES Emulator (Formerly known as Snes9x_Next, Highest Accuracy, slow!)
stella_libretro.vpk - Stella 3.9.3, Atari 2600 VCS Emulator
tgbdual_libretro.vpk - TGB Dual, Game Boy (Color) Emulator + Link Cable Support
tyrquake_libretro.vpk - TyrQuake v0.62, Quake Engine Player
vba_next_libretro.vpk - VBA Next v1.0.2, Game Boy Advance Emulator
vecx_libretro.vpk - VecX 1.2, Vectrex Emulator
yabause_libretro.vpk - Yabause, Sega Saturn Emulator (Proof-of-Concept)


Bios files required for some emulators.
Bios Files Required (Place in ux0:data/retroarch/system):
Reminder

The following directories are not safe to share under any circumstances (they include personal data)
tm0
vd0
ur0
ux0

The following are safe (do not include personal data)
os0 - do not touch this. your system will brick and never work again
sa0
pd0
ud0
vs0

I also typed this up some time ago. It's rough and not done because its so much to cover. Anyone is welcome to expand on it, but I request that you keep the formatting like such

Code:
I.
   1.-
      A.-
         i.-
         ii.-
      B.-
   2.-
Code:
TABLE OF CONTENTS (v1.1)
I. What this guide will cover
II. Important information
III-1. What is needed
III-2. Getting started
IV. What you can do
V. What you cannot do
VI. Testkit and Devkit users
VII. tl;dr and problem solving

Anything labeled 0.- is required learning. The rest you can read as you desire.

I. What this guide will cover
    0.-This will only be for Henkaku on Firmware 3.60
    1.-How to properly understand he current status of PS Vita homebrew
        A.-PS Vita
        B.-PSTV
    2.-What can and cannot be done at the date of typing this
        A.-Software modifications
        B.-Hardware modifications
        C.-Modifying files for games
    3.-How to use your homebrew without ruining your system
        A.-Read/Write only areas
    4.-Help those that don’t know where to look for resources

II. Important information
    0.-Filesystem – Learn these and what they’re for
        A.-app0: Current Application running (usually Molecule)
        B.-gro0: Game Card
        C.-grw0: Writable space on Game Card (if supported)
        D.-os0: Main operating system (Do not mess with this unless you want a brick)
        E.-pd0: Welcome Park (also Preinstall part of the update)
        F.-sa0: Fonts and handwriting
        G.-sd0: SD card slot. You will not have this. You are welcome to ignore it
        H.-savedata0: Save data
        I.-tm0: Related to PSN access. Do not touch or share this
        J.-ud0: Used for updates
        K.-ur0: User data on the system (like ux0: but internal)
        L.-ux0: User data on the Vita Memory Card.
        M.-vd0: System registry
        N.-vs0: Part of the OS. Has system apps, usually labeled NPXSXXXXX
    1.-Firmware MUST BE 3.60. No exceptions
        A.- 3.61 will not work for Henkaku until there is another exploit.
            i.-Any site that says it does is malicious. Don’t believe them.
        B.-Memory card is required for it. Internal memory is not supported
    2.-PS Vitas and PSTV systems are similar but have some software differences.
        A.-Most homebrew works on both.
        B.-Homebrew that works on Vita
        C.-Homebrew that works on PSTV
    3.-VPK files are installable packages. They’re essentially a zip file but renamed.
    4.-Dangers of data
        A.-The system is littered with your PSN credentials in many spots.
            i.-Avoid sharing data from tm0: ur0: ux0:
        B.-VPK files
            i.-Malicious homebrew can exist. Trust verified sources or compile it yourself
        C.-Henkaku does have PSN spoofing currently. Don’t be dumb and you wont get banned

III-1. What is needed
    0.-System Firmware version 3.60
        A.-If you are below this then follow this guide
            http://wololo.net/2016/08/09/manually-update-ps-vita-firmware-3-60/
        B.-If you are above 3.60 then you need to get a new system that has 3.60
    1.-A Vita or PSTV
    2.-An internet connection
    3.-A PC
    4.-The following programs
        A.-QCMA
        B.-Filezilla (or FTP program of choice)
        C.-PSProxy
        D.-Vita Update Blocker (not required but nice)
        E.-HxD
    5.-Henkaku – http://henkaku.xyz/ go there in the Vita/PSTV web browser to install it
        A.-Offline installer is very much recommended
        B.-Android installer also very useful
    6.-Your homebrew
        A.-Vita homebrew I suggest
            i.-VitaFTP (FTP built into Molecule, but backups are nice)
            ii.-Retroarch Nightlies (http://buildbot.libretro.com/nightly)
            iii.-PSVident (It does reveal personal info so don’t screenshot or show anyone)
            iv.-3.60 PKG installer (Not really homebrew but this will be noted later)
            v.-CEX2IDU (used in conjunction with the PKG installer)
        B.-PSTV homebrew I suggest
            i.-PSTV Whitelister (to play your blacklisted games on the PSTV)
            ii.-VitaFTP (FTP built into Molecule, but backups are nice)
            iii.-Retroarch Nightlies (http://buildbot.libretro.com/nightly)
            iv.-PSVident (It does reveal personal info so don’t screenshot or show anyone)
    7.-A brain

III-2. Getting started
    1.-Install the following on your Computer
        A.-QCMA (Windows/Mac/Linux versions exist)
            i.-You will use this for backing up data like saves and games from PSN
            ii.-If you have issues on Windows, set to run in Win7 mode
        B.-Filezilla (or FTP program of choice)
        C.-HxD
    2.-Create a folder for all your stuff. Stay organized
        A.-Folder for system backup (in case something goes wrong)
        B.-Folder for modified files (like app.db, commonly modified)
        C.-Folder for homebrew vpks
        D.-Folder for notes and tools
    3.-Power on your Vita or PSTV with memory card (memory card required. Size: whatever)
        A.-Immediately go to the web browser
    4.-Install Henkaku and the Molecule bubble (Offline and Android installers are different).
        A.-Go to http://henkaku.xyz/ in the system web browser and hit install
        B.-It will greet you wit “Welcome to Henkaku!”. Hit OK and let it continue
        C.-It will install the files and bubble for Molecule and send you back to the Live Area
        D.-You must redo this process every reboot. Standby mode is better.
    5.-Open Molecule
        A.-Begin FTP by hitting SELECT
        B.-Leave it running (background FTP is allowed) and load Filezilla
        C.-Connect in Filezilla [Vita IP]:1337 and create a folder on ux0: called VPK
        D.-Transfer your VPK to the memory card in the new folder
        E.-Once complete you can disconnect
        F.-In Molecule navigate to the VPK and hit X on it. Install it.
            i.-If it needs access to tm0: ur0: or ux0: it will ask if you trust it. Safety measure
        G.-Once installed return to Live Area and your homebrew bubble is ready
    6.-Use your homebrew
        A.-If it requires roms, repeat 5 for a rom folder
    7.-Configure the system to use Vita Update Blocker and PSProxy if desired

IV. What you can do
    1.-Use homebrew
    2.-Gets on PSN until the next patch (as of now this is still possible due to spoofing)
    3.-Pirate (don’t be that guy)
    4.-Modify the system software
    5.-Create themes
    6.-Install PKG Installer (guide here: http://wololo.net/talk/viewtopic.php?f=65&t=46701)
    7.-Activate your system (until PSN access is gone again)
    8.-Easy bubble modifying (https://anthe.studio/bubblestudio/ - this is trusted)
    9.-Create your own homebrew
        A.-Part 0: http://wololo.net/talk/viewtopic.php?f=65&t=46597
        B.-Part 1: http://wololo.net/talk/viewtopic.php?f=65&t=46669
        C.-Part 2: http://wololo.net/talk/viewtopic.php?f=65&t=46838
        D.-Part 3+ for when the author makes it
    10.-Change accounts for multiple regions (
    11.-Decrypt and edit save data (http://wololo.net/talk/viewtopic.php?f=65&t=46339)
    12.-Create your own VPKs (http://wololo.net/talk/viewtopic.php?f=65&t=46561)
    13.-Brick your system if you’re not careful
    14.-Vita HDMI out modification
    15.-Modify the ports to add a mini USB port (if you hate the proprietary port)

V. What you cannot do
    A.-Pirate PS1 or PSP games (yet, I know you’re all crafty and will find a way eventually)
    B.-Be immune from bans. Your activities are absolutely seen when online. Don’t be dumb.
    C.-Trust any sources (you can but it’s better not to since PSN credentials are in plain text)

VI. Testkit and Devkit users
    0.-If you have the DEM-3000XXX model, do not change anything. Please PM me.
    1.-Manual updating from storage is possible
        A.-Requires another system to do this if it’s a Testkit only. (Molecule supports them, may not be needed any longer)
            i.-Devkits can take the same method, but don’t have to
        B.-Get a system with Henkaku active and begin FTP
        C.-Create the following directory structure “ux0:data/PSP2/UPDATE/SEARCH”
            i.-Devkits can be updated via Neighborhood if needed
        D.-FTP your applicable update file to that directory (name can be anything)
            i.-You can also update and downgrade firmware freely
        E.-Once done turn off your system and take the memory card and transfer it in your kit
        F.-Power on and go to Settings>Update>Update Using Storage Media
        G.-It will display filenames. Pick the update you want (3.600.011 for Henkaku)
            i.-Don’t mix them up. Testkit and Devkit firmware are not the same
        H.-Install update, restart, install Henkaku
    2.-To use your homebrew you have to modify the eboots
        A.-Take whatever homebrew you want working and begin FTP in Molecule
        B.-Transfer the eboot.bin from “ux0:app/[ID]/eboot.bin” to wherever on your Computer
        C.-Open HxD and load the eboot
        D.-Go to offset 0x80 and you will see “......./” (01 00 00 00 00 00 00 2F - can also be 02 00 00 00 00 00 00 2F)
        E.-Replace that with “......./” (03 00 00 00 00 00 00 2F)
            i.-Safe mode is available as “xyzxyz..” (78 79 7A 78 79 7A 2E 2E)
        F.-Save the changes and transfer the file back to the Vita (overwrite or make a backup)
        G.-Close FTP connection, exit molecule, start your homebrew
    3.-You must do this for all homebrew til they come pre-packaged this way (Molecule is)
4.-Help the scene/wiki if you have a Devkit. Those with kits are open to help

VII. tl;dr and problem solving
    A.-What you skipped is the tldr. Go read it
    B.-If you get an error while installing Henkaku, reboot the system and try again
    C.-If you crashed your system installing it, you need a memory card. No exceptions.
Not true any more as of Henkaku R4.
R5 doesnt support modified shell.self either so R4 is still needed if you're someone that modifies things.

Original thread: https://assemblergames.com/threads/ps-vita-hacking-info-henkaku.63409/