01-04-2024, 06:09 AM | #1 | |
Guru
Posts: 771
Karma: 625816
Join Date: Sep 2013
Device: EnergySistemEreaderPro, Nook STG, Pocketbook 622, Bookeen Cybooks ...
|
Pocketbook installer files (pbi) - How to create them
Pocketbook installer files (extension pbi) are encrypted and renamed zipped files. They are handled by sysinstall.app.
The pbi-file can either be encrypted with a (known) public key or an (unknown) individual key. The encryption method is afaik zipcrypto, AES256 is not working. Inside the encrypted zip must allways be a file _scriptInstall and a folder \sinstall. The folder \sinstall contains all the files to install, the file _scriptInstall the commands for the installation. Known public encryption key is: Quote:
packageName= packageVersion= destDir= destAction= execAfter= destProtect= destNofop= destSpace= Additional suspected values (possibly for the tts installation) are: contentType contentVersion contentProvider contenttLang Additional information: 1) sysinstall.app is calculating the free space. 2) packageName can include blank spaces. 3) destAction can be: unpack,install,content (difference is unknown) 4) destDir=directory, where the content of \sinstall is copied, existing files with the same name are replaced, folders are merged. 5) destSpace defines the free minimum space at the destination otherwise the installation will fail. 6) If an additional file _scriptSerial is added beside _scriptInstall, with _scriptSerial containing only the serial number of the device as content, the packet will only be installable at the device with the in _scriptSerial defined serial number. Using only parts of the serial can be used to limit the installation to special device-type (f.i. YTMD=Inkpad4, YTRD=InkPad Color3, YTEA=Inkpad3, JZ2B=InkpadX, YT45=PB626, NX27=PB631 etc.). 7) Installation is working in /mnt/secure too (tested with dictionaries). 8) If an app or script is defined via execAfter, the installation will finish with executing it (f.i.:execAfter=/mnt/ext1/applications/demo.app). example.pbi is provided as an example and is encrypted with the known public key: >nD4Ar0CNc(#Gl/87A8q The content of the file _scriptInstall in example.pbi: packageName=example_test packageVersion=0.1.2.3 destDir=/mnt/ext1/test destAction=install example.pbi content: _scriptInstall \sinstall \sinstall\file1 \sinstall\dir1\file2 \sinstall\dir2\file3 Attention: I'm not aware of an uninstaller for Pocketbooks (with the exception of dictionaries and TTS-modules, which have some uninstall funcions scattered in the settings or elsewhere). This whole research is based on a forgotten source I stumbled over years ago. This source provided the example.pbi too. I added my own observations. Last edited by nhedgehog; 01-10-2024 at 02:56 AM. |
|
01-05-2024, 04:57 PM | #2 |
Connoisseur
Posts: 62
Karma: 87708
Join Date: Sep 2023
Location: Toulouse, France
Device: Vivlio Touch HD Plus
|
Thanks for your investigations. Looks interesting!
But from you message I don't understand how one is supposed to install a ".pbi" file... Should one connect via USB to a computer and copy (where? what file name?) to the reader or is it possible to install a ".pbi" file downloaded through the reader browser? |
01-05-2024, 05:20 PM | #3 | |
Guru
Posts: 771
Karma: 625816
Join Date: Sep 2013
Device: EnergySistemEreaderPro, Nook STG, Pocketbook 622, Bookeen Cybooks ...
|
Quote:
Examples for a tts installer: You can download a voice directly from pocketbook, links are provided on this side: https://cod-box.net/pocketbook-tts-t...gage-download/ F.i.: http://download.pocketbook-int.com/t...1.6.25.429.pbi How the filemananger is handling them, is dependend on the Pockebook firmware. Download directory works often, previously it had to be the image directory. If the filemanager shows the file in the device, click on it and installation routine should start. Last edited by nhedgehog; 01-06-2024 at 08:37 AM. |
|
01-07-2024, 10:32 AM | #4 |
Connoisseur
Posts: 62
Karma: 87708
Join Date: Sep 2023
Location: Toulouse, France
Device: Vivlio Touch HD Plus
|
What software do you use to generate Zip archives using ZipCrypto encryption? Under what OS?
I've tried on a Debian Bookworm host, but failed to identify a software supporting this kind of encryption anymore (minizip is supposed to if I understand well but it fails to extract from the archive it produces...). |
01-07-2024, 11:37 AM | #5 |
Guru
Posts: 771
Karma: 625816
Join Date: Sep 2013
Device: EnergySistemEreaderPro, Nook STG, Pocketbook 622, Bookeen Cybooks ...
|
7zip under Windows. The GUI is just giving me the option to either use ZipCrypto or AES-256.
Correct me if I'm wrong but afaik standard zip encryption is ZipCrypto, while AES encryption is rather unusual. Last edited by nhedgehog; 01-07-2024 at 11:46 AM. |
01-07-2024, 01:32 PM | #6 | |
Connoisseur
Posts: 62
Karma: 87708
Join Date: Sep 2023
Location: Toulouse, France
Device: Vivlio Touch HD Plus
|
Quote:
I was clearly wrong! 7z and zip seems to use ZipCrypto as a default, their documentation is just "vague": Using 7z I just build a ".pbi" installer for Taranis that works on my Vivlio Touch HD! Thank you! |
|
01-07-2024, 01:48 PM | #7 |
Guru
Posts: 771
Karma: 625816
Join Date: Sep 2013
Device: EnergySistemEreaderPro, Nook STG, Pocketbook 622, Bookeen Cybooks ...
|
Glad it is finally working for you.
|
01-07-2024, 05:04 PM | #8 |
Connoisseur
Posts: 62
Karma: 87708
Join Date: Sep 2023
Location: Toulouse, France
Device: Vivlio Touch HD Plus
|
It can be downloaded from here https://github.com/orontee/taranis/r...tag/v1.8.0-pre.
Feedback welcome! |
01-08-2024, 07:11 AM | #9 |
0000000000101010
Posts: 5,711
Karma: 11482159
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
|
FYI: the _scriptInstall value: destNofop=1
will prevent the log files (.inf and .fop) being written to /mnt/secure/pbpk/ during the installation of the .pbi. <installer_name>.fop - contains a log of files/filespaths the installer unpacks to. <installer_name>.inf - contains a copy of the _scriptInstall parameters. Last edited by neil_swann80; 03-08-2024 at 02:54 AM. |
01-09-2024, 09:01 AM | #10 |
Guru
Posts: 771
Karma: 625816
Join Date: Sep 2013
Device: EnergySistemEreaderPro, Nook STG, Pocketbook 622, Bookeen Cybooks ...
|
I got some interesting feedback about limiting the installer to certain devices. First post, additional information point 6 was updated.
|
01-09-2024, 09:06 AM | #11 | |
0000000000101010
Posts: 5,711
Karma: 11482159
Join Date: Mar 2023
Location: An island off the coast of Ireland
Device: PB632 [HD3]
|
Quote:
|
|
01-09-2024, 09:09 AM | #12 |
Guru
Posts: 771
Karma: 625816
Join Date: Sep 2013
Device: EnergySistemEreaderPro, Nook STG, Pocketbook 622, Bookeen Cybooks ...
|
|
01-13-2024, 04:25 PM | #13 | |
Sorry for my English
Posts: 464
Karma: 3009894
Join Date: Aug 2018
Location: France.Besancon
Device: KOBO.PocketBook.ONYX
|
Quote:
I wanted to create a similar alternatives to Audiobook for plex... but based on Python + Django (they have very good libraries and optimization for fast database creation) as a multiplatform client. Last edited by Michal Jancik; 01-13-2024 at 04:55 PM. |
|
01-13-2024, 09:45 PM | #14 | |
Connoisseur
Posts: 62
Karma: 87708
Join Date: Sep 2023
Location: Toulouse, France
Device: Vivlio Touch HD Plus
|
Tangent discussion
Quote:
I don't have many audio books, only two or three. They're just collection of mp3's, like an album or a podcast. As such they're indexed by Mopidy and discoverable, playable using Argos. It's not clear to me what is specific to audio books... Feel free to email me if you're looking into information on Mopidy; There's also a discourse website with kind people... |
|
Tags |
installer, pbi, pocketbook |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Trying to create PocketBook Cloud account | alehel | PocketBook | 1 | 08-10-2021 02:32 AM |
Installer CoolReader sur PocketBook | PhunkyBob | PocketBook | 4 | 03-06-2013 11:15 AM |
How to install .pbi? | johanp | PocketBook | 5 | 01-10-2013 01:07 PM |
how do you create your application installer for Windows. | KevinH | Calibre | 4 | 01-07-2011 10:04 PM |
Extracting pdb files from Palm Installer | bpwhistler | Alternative Devices | 0 | 11-15-2008 04:07 PM |