Timo Teräs
3b00c0dc80
adb: unify various interfaces to adb_m_process
...
Removes code duplication, and puts important checks in one place.
Support seamless decompression in adbdump.
2021-07-22 15:30:08 +03:00
Timo Teräs
2eba7f2af7
fixup some includes
...
- remove unneeded assert.h
- add needed limits.h
2021-06-19 14:25:54 +03:00
Timo Teräs
7c9f001cda
mkpkg: new applet to create v2 packages with basic functionality
2021-06-11 13:35:32 +03:00
Timo Teräs
1456296b43
add adbgen applet to generate databases from it's text dump
2021-06-02 22:35:58 +03:00
Timo Teräs
209201bc5d
add abstraction to adb "walking" - a sax like API to enumerate whole db
...
This converts 'adbdump' applet to generate adb_walk api callbacks,
and implement gentext backend to generate the yaml-like text output.
2021-05-26 12:47:48 +03:00
Timo Teräs
705e002bb0
rename adb_trust to apk_trust, and use it as package signature keystore too
2020-10-09 16:09:19 +03:00
Timo Teräs
a627ab8eb8
make apk_database optional for applets that don't need it
...
The new v3 applets don't use it, and eventually all applets will
use the new formats only.
This prepares the code for this, and moves trust, id_cache, and
root_fd to apk_ctx which is enough for v3 applets at this time.
The generic code is made to not initialize apk_database if it's
not needed.
2020-10-09 16:09:19 +03:00
Timo Teräs
354713d2f7
rename apk_db_options to apk_ctx, rework logging
...
makes apk_verbosity non-global
fixes #10682
2020-10-09 16:09:19 +03:00
Timo Teräs
2156107afc
minor performance improvements on build and code
2020-10-09 16:09:19 +03:00
Timo Teräs
efe0c4afec
adb: introduce apk-tools database format, and few applets
...
This is a flat buffers inspired format that allows fast
mmaped access to the data with low overhead, signature support
and relatively good forward support.
2020-10-09 16:09:19 +03:00