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

bobovieri

Well-Known Member
OP
Newcomer
Joined
Nov 15, 2006
Messages
47
Trophies
0
XP
512
Country
Kazakhstan
Even if he is its useful to know:

System_data/priv/mms

Back up:

app.db
appcont.db
Hey KiiWii I tried to FTP the pkg from their installed directory to no avail.
1- if you browse to the directory of the installed PKGs, which is user/app/CUSA-----, you will see that they have 5 files, not just the pkg there:
a json, a bpm, a bpm backup, a xml and a PKG. The pkg size is NOT the same as the one you use to install it.
2- filezilla doesn't let me download the PKG. I managed to download the rest, the PKG is locked, it tells me "impossible to open app.pkg ion writing".

3 So I FTPed app.db and appcont.db, but they are the NEW app.db AFTER the ps4 has rebuilt the database, so they are not usefull for the old installed PKG.
 
  • Like
Reactions: KiiWii

KiiWii

Editorial Team
Editorial Team
Joined
Nov 17, 2008
Messages
16,641
Trophies
3
Website
defaultdnb.github.io
XP
27,084
Country
United Kingdom
Hey KiiWii I tried to FTP the pkg from their installed directory to no avail.
1- if you browse to the directory of the installed PKGs, which is user/app/CUSA-----, you will see that they have 5 files, not just the pkg there:
a json, a bpm, a bpm backup, a xml and a PKG. The pkg size is NOT the same as the one you use to install it.
2- filezilla doesn't let me download the PKG. I managed to download the rest, the PKG is locked, it tells me "impossible to open app.pkg ion writing".

3 So I FTPed app.db and appcont.db, but they are the NEW app.db AFTER the ps4 has rebuilt the database, so they are not usefull for the old installed PKG.

Thanks for testing, it was worth a check, shane it did not work.... wonder why...

I noticed Stooged has an android host for ps4 exploits and one of his payloads is to dump those files as backups in same location they exist.

May come in very handy in future.
 
  • Like
Reactions: peteruk

bobovieri

Well-Known Member
OP
Newcomer
Joined
Nov 15, 2006
Messages
47
Trophies
0
XP
512
Country
Kazakhstan
Thanks for testing, it was worth a check, shane it did not work.... wonder why...

I noticed Stooged has an android host for ps4 exploits and one of his payloads is to dump those files as backups in same location they exist.

May come in very handy in future.

I guess, I'm gonna just backup the app.db from now on, that should be my insurance.
Also, I did some further testing: I reinstalled one pkg that is still on the HDD as a "deleted" game.
The ps4 asked me if I wanted to reinstall the pkg, because it knew it was there. I said yes.

Then I checked the difference, from a filezilla search on the / directory(the root of the HDD), between this PKG entries and another "deleted" PKG.
Well, the two search results are a bit different: when a PKG is installed, the ps4 creates a bunch of directories with the CUSA----- name.
You can do the search too on filezilla, I searched for "03745", which is the PKG for last guardian which I reinstalled. The game works, of course, and it asked me if I wanted to continue, of course. Then I searched for 00303. I don't even know what that is.
Anyway, the difference in folders, is that the properly installed pkg have 5 more entries in the "av_contents" folder (which I cannot find on FTP, must be hidden)
and another 5 more entries in the "user/av_contents" folder (which I can browse to). So basically, the PS4 has deleted these folders when it rebuilt the database.
The entries have the same name on both folders, and are:
content_tmp
photo/NPXS20001
thumbnails/photo/NPXS20001
thumbnails/video/NPXS20001
video/NPXS20001

Well, if that's usefull info for somebody that knows how to tell the PS4 to rebuild the lost directories, we could have a solution.
 
  • Like
Reactions: KiiWii

GAMERZEROZ1

Member
Newcomer
Joined
Mar 7, 2018
Messages
9
Trophies
0
Age
33
XP
99
Country
United States
Hey KiiWii I tried to FTP the pkg from their installed directory to no avail.
1- if you browse to the directory of the installed PKGs, which is user/app/CUSA-----, you will see that they have 5 files, not just the pkg there:
a json, a bpm, a bpm backup, a xml and a PKG. The pkg size is NOT the same as the one you use to install it.
2- filezilla doesn't let me download the PKG. I managed to download the rest, the PKG is locked, it tells me "impossible to open app.pkg ion writing".

3 So I FTPed app.db and appcont.db, but they are the NEW app.db AFTER the ps4 has rebuilt the database, so they are not usefull for the old installed PKG.

It worked for me i used filezilla found one of my games app.pkg extracted it with filezilla and tred to install it it did give me an error the first time and then tried again later than it told me the that was already installed do you want to install again i don't know how i got this to work now tring a another game that i lost and it's working i did mesaround in the debug settings i don't know what i tried but it's working.
 
  • Like
Reactions: KiiWii

KiiWii

Editorial Team
Editorial Team
Joined
Nov 17, 2008
Messages
16,641
Trophies
3
Website
defaultdnb.github.io
XP
27,084
Country
United Kingdom
It worked for me i used filezilla found one of my games app.pkg extracted it with filezilla and tred to install it it did give me an error the first time and then tried again later than it told me the that was already installed do you want to install again i don't know how i got this to work now tring a another game that i lost and it's working i did mesaround in the debug settings i don't know what i tried but it's working.

Interesting findings :)
 

Sovikos

Well-Known Member
Member
Joined
Mar 17, 2018
Messages
127
Trophies
0
XP
389
Country
Canada
I JUST RETITLED AND MADE A NEW THREAD WITH NEWER INFO ON THIS.
IT'S THE REBUILD DATABASE FUNCION ON THE PS4 THAT MOVES THE PKGs IN PURGATORY. SO GO TO THAT THREAD IF YOU WANT TO HELP, THANKS<3<3<3

I just did this on 4.55 as the games have been having trouble loading up at boot or when saving/loading it will sometimes just hang there.

So where is the new thread? Could you link it?
 

Sovikos

Well-Known Member
Member
Joined
Mar 17, 2018
Messages
127
Trophies
0
XP
389
Country
Canada
Also if I reinstall all the games will my HDD say the right size again? I have 2 TB, and it now says I have 300 GB with like 2.71 GB used. So I would say I had around 1.7 TB of games installed. I have them all on my computer and on the USB Hard Drive I used to install them, so if I lose the ones I installed that is fine, but with it going to be like 8 hrs to install all those games and can be a pain in the ass lol. So basically what do I do from here to get my stuff back?

Should I just delete all folders from the /user/app/ folder?? And then just reinstall all the games?
 
Last edited by Sovikos,

shinichi999

Active Member
Newcomer
Joined
May 3, 2014
Messages
38
Trophies
0
Age
34
XP
404
Country
Chile
I just did this on 4.55 as the games have been having trouble loading up at boot or when saving/loading it will sometimes just hang there.

So where is the new thread? Could you link it?

I'm having the same problem. Is there any solution? Where's the other thread?
 

Sovikos

Well-Known Member
Member
Joined
Mar 17, 2018
Messages
127
Trophies
0
XP
389
Country
Canada
I'm having the same problem. Is there any solution? Where's the other thread?
I think this is the thread, and it has just be combined?? Anyways there isn't a solution yet except to just reinstall every game... but I have no idea if that fixes the HDD space? I have over 150 games installed, so there is no way I am going through and hitting "Yes" to overwrite each one. I am just going to try to save the save games and format and start fresh, as I haven't found any answers on if and where I can just delete the old games, and if it will reset the drive size? Then after I format I am going to see if I can FTP the save games back over and they'll work under the same User Name(s) they were played/saved under. If not thats okay, as it was just a few Minecraft games the kids have been playing basically.

Now to prevent this from happening, there is a payload that will backup your Database and then you can FTP over the backup if you ever need to do a rebuild database (or apparently if it happens automatically somehow). Supposedly it works if this has happened, but if you don't have the backup of your database first you are SOL.
 

fringle

Well-Known Member
Member
Joined
Apr 16, 2009
Messages
704
Trophies
1
XP
1,107
Country
Canada
I did this and the only way I could get my hdd to show the full 2tb after was to reinitialize the entire system and start over. The claim that you can't ftp the games to pc from their install folder on the ps4 and reinstall them is false as that is how I got all my games back afterwards.

--------------------- MERGED ---------------------------

Should also add that if you don't want to redownload all your games you have to ftp them to your pc before you reinitialize.
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,138
Country
United States
you may not need the save database. if you start the game, then save (so that they're added to the database), transfer over your original saves, then load each save to update the save database... that's my method of restoring saves (don't know about going from a format though). you can also rebuild the database after restoring each save. I think that will work as well.
 

safailla

Member
Newcomer
Joined
Jun 14, 2018
Messages
15
Trophies
0
Age
35
XP
94
Country
United States
Just throwing my 2cents of curiosity here, I followed through the entire thread and I didn't quite get how to properly install the app.db back into the system. I get using FTP and replacing the files, but for some reason I get an error message that says the Database is corrupted CE-33005-1 and the system then restarts and rebuilds the database again.

I backed up the App.db twice, once through ftp and the other through DB_SG Backup through the Kiiwiis Self host files, luckily minuets before the Database decided it needed to be rebuilt, but now neither seem to work. Everything was working previously on those app.db files so i must be missing a step or proper procedure.

DB_SG Backup did seem to save the the DB_backup and some UserData files. I have tried replacing those through FTP but again no luck. still I may be doing something wrong! wouldn't be the first time Haha!

Do you Gents have any thoughts?
 

chrisnasah

Well-Known Member
Member
Joined
Jun 14, 2018
Messages
101
Trophies
0
Age
45
XP
312
Country
United Kingdom
same issue happened here, installing pkg crashed decided to rebuild database and all games gone. Hard drive still got them but not recognised as game on PS4.
 

safailla

Member
Newcomer
Joined
Jun 14, 2018
Messages
15
Trophies
0
Age
35
XP
94
Country
United States
same issue happened here, installing pkg crashed decided to rebuild database and all games gone. Hard drive still got them but not recognised as game on PS4.

Did you manage to save your app.db before hand? still, sorry to hear i know what its like, the 2 steps forward and 5 steps back.
 

safailla

Member
Newcomer
Joined
Jun 14, 2018
Messages
15
Trophies
0
Age
35
XP
94
Country
United States
yeah, the app.db will tell you if the games are being read.

So what does that mean specifically? The app.db I backed up was functioning properly at the time it was backed up. Now when I attempt to FTP it I get a Database Corrupted error and it rebuilds my DB. Are you saying, specifically, that the DB is now corrupted (for sure) and i should simply reinitialize the ps4 and re-download my pkgs?

If thats where I am at then im okay with that, I was just hoping the app.db would be useful in reconnecting my symlinked files.
 

godreborn

Welcome to the Machine
Member
Joined
Oct 10, 2009
Messages
38,471
Trophies
3
XP
29,138
Country
United States
So what does that mean specifically? The app.db I backed up was functioning properly at the time it was backed up. Now when I attempt to FTP it I get a Database Corrupted error and it rebuilds my DB. Are you saying, specifically, that the DB is now corrupted (for sure) and i should simply reinitialize the ps4 and re-download my pkgs?

If thats where I am at then im okay with that, I was just hoping the app.db would be useful in reconnecting my symlinked files.

unknown. I've only injected my app.db on the vita, so I assume the same is true of the ps4. what I mean to say is to look in the app.db to see if the games are listed in there.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, Then i think people were talking about fallout 76
  • Xdqwerty @ Xdqwerty:
    that one was buggy too
  • BigOnYa @ BigOnYa:
    Yea you right there, fallout 76 was a letdown, but it not that bad now, they have fixed slot of issues they had at launch. Biggest issue with Fallout 76 is its a pay to advance further type of game, which sucks
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, I may probably download fallout 3 or new vegas on my ps3
  • Xdqwerty @ Xdqwerty:
    cuz I didnt like fallout 1 that much
  • BigOnYa @ BigOnYa:
    New Vegas is awesome, F3 was ok too.
  • Psionic Roshambo @ Psionic Roshambo:
    I played Fallout 4 on PC, I enjoyed it honestly. Not my favorite game on earth but at the same time I didn't hate it at all lol
  • BigOnYa @ BigOnYa:
    That's cool you got a ps3... Glad to hear. Game on!
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Ironic this was posted today lol
  • BigOnYa @ BigOnYa:
    I think the tv series has boasted play of, I did see they said playing of it Is up, way more than norm
    +1
  • BigOnYa @ BigOnYa:
    I've been playing the next gen version on Series X all day, I love it. :wub:
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Downloading some random stuff, damn almost 400GBs in like 4 hours lol
  • Psionic Roshambo @ Psionic Roshambo:
    Gonna be over 1TB this month.... damn lol
  • Xdqwerty @ Xdqwerty:
    good night
    +1
  • BigOnYa @ BigOnYa:
    At least you have some fast speeds. What a drag that used to be, I remb downloading 1 pic back in the day, and seeing line by line show
    +1
  • BigOnYa @ BigOnYa:
    Nighty night.
  • BigOnYa @ BigOnYa:
    Or worse, you downloading something, and someone calls your phone and interupts the download, good ole AOL. Of course that's before most you guys even were born yet.
  • Psionic Roshambo @ Psionic Roshambo:
    Lol I think my first modem was 48K but it had some sort of firmware or software update that let me get 56K
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I had EarthLink lol
  • Psionic Roshambo @ Psionic Roshambo:
    A bunch of NetZero accounts that I used for things... Lol
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    So glad I'm not in prison lol
  • BigOnYa @ BigOnYa:
    Yea marriage is a bitch sometimes...
  • Psionic Roshambo @ Psionic Roshambo:
    I legit think they passed the cyber terrorism laws from some of my hmm pranks lol
  • Psionic Roshambo @ Psionic Roshambo:
    I knocked the east coast backbone of EarthLink offline for like 6 hours one time, was on the news and everything well I mean I wasn't on the news.... Just they where having "technical difficulties" lol
    +1
    Psionic Roshambo @ Psionic Roshambo: I knocked the east coast backbone of EarthLink offline for like 6 hours one time, was on the... +1