Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

installation with empty zrif - pkg (local license) #40

Open
tomazzz369 opened this issue Nov 24, 2017 · 6 comments
Open

installation with empty zrif - pkg (local license) #40

tomazzz369 opened this issue Nov 24, 2017 · 6 comments

Comments

@tomazzz369
Copy link

installation with empty zrif:
if i want to install pkg (local license) without zrif tool returns error - installation failed unfortunately when download is finished. better idea would be check pkg license type before installation

delete files if installation failed:
if installation failed all files are still present in ux0:pkgi/titleid and since we can't resume/reinstall after installation failed (download starts from the begining) they are not needed

@mmozeiko
Copy link
Owner

mmozeiko commented Nov 24, 2017

First one is already fixed in #38. It will be included in next release.

Second item will be improved in #11 and #22.
Not sure about automatically deleting files. It can take a long time. Deleting many small files can take minutes... It will be super annoying to wait a few minutes after getting error at installation. I'll think if I can resume just installation process.

@tomazzz369
Copy link
Author

tomazzz369 commented Nov 24, 2017

but this is nothing to do with TheRadziu issue. if pkg require license file and zrif is empty pkgi returns error before installation. we only waste of time for downloading game which will not work anyway for that reason i suggested to check pkg license type before download starts

@mmozeiko
Copy link
Owner

Hmm.. why would you leave zrif empty if pkg requires license?
I don't know if there is a way to automatically check if pkg file requires license or not. So currently I implemented simply not creating rif file if zrif is empty. You should leave it empty only if rif doesn't require license.

@tomazzz369
Copy link
Author

tomazzz369 commented Nov 24, 2017

of course we can:

Content ID..: EP3643-PCSB00437_00-DUKE3DHDEUVITA00
Title ID....: PCSB00437
PKG Size....: 4,33 MB (4541952 bytes)
License Type: Local
Firmware....: 03.15
APP Version.: 01.01
PKG Version.: 01.00
SHA1........: 7973D22995AAD01B6BCEFE24149329ABCCF64B09

Content ID..: UP4151-PCSE00039_00-FOOSBALL2012VITA
Title ID....: PCSE00039
PKG Size....: 647,61 KB (663152 bytes)
License Type: Free
Firmware....: 01.67
APP Version.: 01.01
PKG Version.: 01.00
SHA1........: B733B751E3BFF6C7664DF88157A5BF7D961A962F
Packaged by.: make_package_npdrm revision 1963

if i remember correctly first entry/item in pkg info is license type: 00000002 local - require license, 0000000D free license type, not require zrif/license (provided in temp.bin if i remember correctly)

regards

@mmozeiko
Copy link
Owner

mmozeiko commented Nov 24, 2017

Doesn't 13 also means install as "demo/trial"? I see a lot of pkg files for which we have zRIF strings, but they have DRM type 13. In total there are 232 pkg files on NPS with type 13.

And a lot of them have zRIF string. Here's one, for example: UP9000-PCSA00006_00-SSDELTA000000000.
The one you have also has zRIF: UP4151-PCSE00039_00-FOOSBALL2012VITA.

I just tried installing these two without work.bin file. And they refreshed correctly in VitaShell. I'm very confused now...

But I guess adding extra check (if type=2 then fail the download early) won't harm. That I can do.

@tomazzz369
Copy link
Author

tomazzz369 commented Nov 24, 2017

DRM type 13 is 0x0000000D (hex). means DRM Type free

both games you have mention have drm type free (13) and you can install them using vitashell without zrif/license, you can't install for example 10 Second Ninja X

http://zeus.dl.playstation.net/cdn/EP4395/PCSB00963_00/EP4395-PCSB00963_00-G000000000000885_bg_1_c0400230f1dcc3f446d2e455e4d2ccff5723ab13.pkg

why drm type free (13) packages have zrif?
thats because originall installation process always require license for installation. license is created probably in temp.dat with pdb project for all packages drm type local (02)/free (13) when you starts download game from store and use this license for installation

why vitashell don't need license for installation pkg drm type free (13)?
vitashell need license too, but if work.bin (license) is missing, vitashell uses license provided inside pkg drm type free (13) (sce_sys\package\temp.bin). off course if you don't use nonpdrm plugin you will get demo version, because license inside pkg is for demo and is provide only in packages drm type free (13)

regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants