Commit Graph

148 Commits

Author SHA1 Message Date
Christian Stadelmann
c6be36f553 Context: Fix typo 2024-11-14 19:52:14 +00:00
Mis012
ab114245bd ContentProvider: wrap in try/catch
Errors thrown here shouldn't be fatal, the app will often work just fine
without any ContentProviders (especially a mostly-native app probably
only uses them for ads)
2024-11-09 16:30:29 +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
Julian Winkler
b413f67932 implement ContentProvider.attachInfo() callback
This fixes a crash in NewPipes DownloadActivity
2024-10-31 16:41:46 +01:00
Mattéo Axelle
f5674faa4a PackageManager: always grant com.google.android.c2dm.permission.SEND 2024-10-31 13:18:38 +00:00
Daniel Panero
0efbee538a api-impl: Add DumpHeapProvider.java 2024-10-29 19:26:25 +00:00
Markuss Broks
24fab49a1c api-impl: misc stubs 2024-10-14 19:59:38 +03:00
Julian Winkler
a8ef5a533a implement passing a URI to open inside the application
Supported URI schemes will also be added to the .desktop file for --install

The URI is passed as named parameter --uri. This allows us to use unnamed parameters
for split APK apps in the future
2024-10-07 11:54:23 +02:00
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