Julian Winkler
f3092fd4bd
implement file sharing by file descriptor
...
Using custom gdbus code, as libportal doesn't expose the raw
org.freedesktop.portal.OpenURI.OpenFile method.
2024-10-03 15:57:44 +02:00
Julian Winkler
c492e1f03f
add Java APIs needed for WhatsApp MainActivity and ConversationActivity
2024-10-03 15:57:44 +02:00
Julian Winkler
e2e1f137bb
implement ContentResolver
...
ContentUris.java and UriMatcher.java are copied from AOSP
2024-08-05 23:00:50 +02:00
Julian Winkler
9084dddf03
HACK: set loglevel for Whatsapps custom log implementation
2024-08-01 22:06:27 +02:00
Julian Winkler
a8ba2f797a
PackageManager.GET_SIGNATURES use real apk signature instead of dummy
...
WhatsApp needs its own signature to generate a valid authentication token
2024-08-01 19:57:12 +00:00
Julian Winkler
50e8bcda22
copy Uri.java from AOSP
2024-08-01 19:57:12 +00:00
Julian Winkler
3c5a21357d
multiple additions and fixes for the Java APIs
...
Stuff needed for WhatsApp support
2024-08-01 19:57:12 +00:00
Julian Winkler
4ed3fbd385
implement PackageParser.getResourcesForApplication()
...
This method is needed for the FlowerFinder test APK
2024-07-31 18:21:14 +02:00
Julian Winkler
71bb6d96bd
implement Context.stopService()
2024-07-31 18:21:14 +02:00
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