Hacking PS4.05 REBUILD DATABASE removes all PKGs from main menu. HOW TO REVERSE?

GordoFreeman

New Member
Newbie
Joined
May 25, 2019
Messages
1
Trophies
0
Age
29
XP
32
Country
Mexico
Hello.
I just had a similar problem, but in my case I caused it.

I'm selling my exploitable, or exploited, Ps4 slim, I need the money for payments. I made a backup with the backup option in al azif self hosted exploit.

When I was gonna delete my backups to leave the console clean, the buyer backed, so I just deleted the save data.

Trying to have it back I copied the contents through ps4 explorer and broke the data base, which got rebuilt after a restart and I lost the games and homebrew I had installed.

The system still recognizes space used, same I had before. So i re installed the fpkg of file explorer, the console told me it was already installed, through it I copied over my .db backups and boila!
Now I have the games again. Savedata is gone though.

So if you don't have that backup you will need to re installed the games again.
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,138
Country
United States
savedata has its own database. it works even if it has incorrect information in it. the information will be updated when you load a game and save. it even works without icons. I'm not sure if it's rebuilt when you normally rebuild the database, but it can be rebuilt while on the home screen. the original backup method backed up all databases and saved games. fpkg games may not be displaying due to the license, which I think uses a debug license, which deems as invalid. the way to fix this is to backup your app.db and reinject it. the game is still on the hdd, but its location, location of main executable, icon, etc. is unknown to the system. it works the same way on the ps3. you can't drop a pkg'd game on to the hdd and expect it to show up. it has to be added to the database. the vita works this way too. however, the ps4 and vita's are easier to read and manipulate with sqlite browser 3. I'm not sure how to manipulate the metadata file on the ps3. you can look at in hex though.
 
Last edited by godreborn,

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,138
Country
United States
replace app.db. if you didn't make a backup, there's probably no way to fix it but reinstalling. this isn't even possible on the vita or the ps3, making a new or custom database. it's probably reading the licenses as invalid.
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,138
Country
United States
yeah, the games are still there. they're just no longer indexed. I don't really know how to read the app.db on the ps4. the vita is much easier. the appicon table lists the games, the location of the icon0.png, and the page/position. if the page/position doesn't exist, nothing will appear. the ps4 seems to do things differently. I'm not really sure how it determines page/position. that's basically the game's location on the livearea. on the ps4 home screen, who knows?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Mondooooo @ Mondooooo: and my right eye is bloodshot from lack of sleep but damn. the full moon with the clouds is...