Mis012
d97c3ee048
AssetManager: update to use v2 of libandroidfw C api
2025-02-27 22:44:55 +01:00
Mis012
ca39c81224
Drawable: fix theme not getting passed to newly inflated drawables
...
When Theme support was added, not everything was immediately updated
to use theme information properly. This was fixed in a lot of places
since then, but it seems not here.
2025-02-27 22:44:55 +01:00
Julian Winkler
b22001adbf
TypedArray: revert getColor hack
2025-01-11 23:23:53 +01:00
Julian Winkler
dfa1662033
Theme.obtainStyledAttributes() set theme of returned TypedArray
...
This is needed to infalte ColorStateLists properly
2025-01-11 23:23:53 +01:00
Julian Winkler
7700d8bf11
replace VectorDrawable with AOSP implementation from Android 6
...
This way, we can avoid librsvg which causes stack overflows on
Alpine/postmarketOS, because of musl's limited stack size.
2025-01-11 23:23:53 +01:00
Julian Winkler
54aaa42d86
ViewGroup: prevent NotFoundException caused by log message
2025-01-11 22:42:25 +01:00
Mis012
279c95becb
borrow relevant parts of AOSP commit dbee9bb342cdfaa5155b1918f90262c05e2464cb
...
Our SVG-based VectorDrawable implementation still relies on `getDefaultColor`
but exceptions are no longer thrown when parsing VectorDrawable xml files
which use gradients as colors.
2025-01-02 22:25:13 +01:00
Mis012
7d59407138
AssetManager: implement resolveAttrs
2025-01-02 22:18:45 +01:00
Pierre-Hugues Husson
c81442321e
api-impl: stubs and fixes for latest WhatsApp version
2025-01-01 11:33:16 +01:00
Mis012
060ea72f94
AssetManager: use AndroidManifest.xml to identify apks
...
resources.arsc may be missing in rare cases
2024-12-20 00:12:01 +01:00
Julian Winkler
0e078894ce
make K-9 Mail launch
2024-12-16 17:54:15 +01:00
Mis012
d5bc4ea9a6
implement instrumentation
2024-11-30 18:57:03 +01:00
Daniel Panero
e541d87fc2
api-impl: misc stubs and fixes for Spotify
2024-11-02 17:03:53 +00:00
Julian Winkler
acdd3c88cc
AssetManager: fix resource loading if APK path contains spaces
...
Spaces will get encoded to %20 by the ClassLoader. We need to decode
them again to get the original path.
2024-11-01 17:49:20 +01:00
Mis012
df074bd2b4
api-impl: add misc stubs/impls
2024-06-22 14:22:37 +02:00
Julian Winkler
bb50bbfa91
add lots of java APIs needed for Whatsapp
2024-06-16 08:45:31 +02:00
Mis012
4fd7e2cbb1
AssetManager: fix up AssetInputStream
2024-06-13 20:37:35 +02:00
Mis012
92bb75d19f
AssetManager: fix open and openNonAsset not throwing exception on error
2024-05-27 14:01:43 +02:00
Julian Winkler
71717edc58
AssetManager: fix Asset XML file not found error on 32bit
...
The xmlBlock variable is now a pointer with the recent changes.
So, we shouldn't compare it with >= 0.
The error went unnoticed, because it was only tested on 64bit until now
2024-05-26 16:20:48 +02:00
Julian Winkler
ff3c103377
SoundPool: explicitly extract soundfile asset
...
With the recent changes assets are no longer extracted by default
2024-05-26 16:20:48 +02:00
Mis012
4374ac01ad
AssetManager: use libandroidfw to read assets straight from the apk file
...
they can still be put on the filesystem and will be read from there
preferentially, though overriding assets in this way can confuse
some creatively written apps and cause them to crash.
2024-05-26 00:10:16 +02:00
Julian Winkler
778d19f268
remove remaining dependencies on ARSClib
2024-05-23 23:30:03 +02:00
Julian Winkler
cc5d4a3cb3
use libandroidfw for resource XML parsing
...
androidfw is implemented in native code and has much better performance
than ARSClib
2024-05-12 16:49:14 +00:00
Mis012
30a9f66c4a
api-impl: misc stubs for stupid ad stuff in SubwaySurfers
2024-04-26 18:11:29 +02:00
Mis012
2802aaa28d
api-impl: add stubs / simple stuff for OsmAnd
...
without native libs present, launches and renders white square
in map view; with native libs present, segfaults in bundled skia
2024-04-13 15:22:38 +02:00