Commit Graph

155 Commits

Author SHA1 Message Date
Mis012
df074bd2b4 api-impl: add misc stubs/impls 2024-06-22 14:22:37 +02:00
Mis012
92e2c06347 make sure the apk path is reliably set in the PackageInfo 2024-06-19 22:35:50 +02:00
Julian Winkler
bb50bbfa91 add lots of java APIs needed for Whatsapp 2024-06-16 08:45:31 +02:00
Julian Winkler
2a10196bc5 Context: cache SharedPreferences
OsmAnd renderer reads SharedPreferences for every frame. Use cached
objects instead of reading it from disk every time
2024-06-15 00:01:51 +02:00
Mis012
795c76f144 android/content/Context: misc cleanup 2024-06-13 20:54:21 +02:00
Mis012
4fd7e2cbb1 AssetManager: fix up AssetInputStream 2024-06-13 20:37:35 +02:00
Julian Winkler
2efa545e73 fix application_info.dataDir getting overwritten by PackageParser 2024-06-13 20:07:10 +02:00
Mis012
fee9302e17 api-impl: fix uses of dummy aux Drawable class 2024-06-13 12:15:50 +02:00
Julian Winkler
931497689c add Intent.getParcelableArrayListExtra() 2024-06-12 23:04:54 +02:00
Julian Winkler
b15bf203a7 remove custom AndroidManifest.xml parsing and instead use PackageParser
This has the advantage, that AndroidManifest.xml is only parsed once.
2024-06-12 23:03:20 +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
639a786056 PackageInfo: handle Resources.NotFoundException gracefully 2024-04-27 15:15:40 +02:00
Mis012
188df3e454 PackageInfo: handle non-string metadata 2024-04-26 18:11:29 +02:00
Mis012
30a9f66c4a api-impl: misc stubs for stupid ad stuff in SubwaySurfers 2024-04-26 18:11:29 +02:00
Mis012
a1df6a43e5 api-impl: stubs to make OsmAnd allow OpenGL renderer
it doesn't render anything sadly
2024-04-14 21:48:19 +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
Julian Winkler
540071e97e ColorStateList: load color with obtainStyledAttributes() 2024-04-09 18:19:46 +02:00
Julian Winkler
ce6b83ad81 AssetManager: load style with parser.getAttribute(null, "style")
This way, we get the type as well and can check for it being an
attribute properly.
2024-04-09 18:19:44 +02:00
Julian Winkler
2f4cd3917f implement some APIs needed for OctoDroid 2024-04-09 18:19:13 +02:00
Mis012
0352a307b9 AssetManager: applyStyle: use loadResourceBagValue instead of creating a temporary theme 2024-04-08 18:28:18 +02:00