Mis012
a9c72d58fd
api-impl: android/os/Process: handle self-kill
...
We don't currently implement sendSignal, however Unity uses killProcess to kill
its own process, which we can hadle with simple System.exit(0) and have Unity
games close cleanly
2024-03-01 15:38:46 +01:00
Julian Winkler
5dfadc9c59
Add some more methods needed by NewPipe. Mostly stubs
2024-02-18 10:08:43 +01:00
Julian Winkler
72a8b3a047
add more stubs
2023-11-12 12:16:23 +01:00
Julian Winkler
520d153c55
call View.onAttachedToWindow() method
2023-10-14 18:29:33 +02:00
Julian Winkler
b88707592a
add more stubs to make exoplayer not crash
2023-10-14 18:29:33 +02:00
Julian Winkler
c830abc5f3
add more API stubs for NewPipe
2023-10-14 18:29:33 +02:00
Julian Winkler
f5fc993484
add APIs needed for non legacy NewPipe version
2023-10-14 18:29:33 +02:00
Julian Winkler
2e0c18d755
add complete java side of sqlite implementation
...
Mostly taken from https://www.sqlite.org/android which is forked from
AOSPs implementation
2023-08-27 11:17:33 +02:00
Julian Winkler
fac8e6e7b5
fix Build.SDK constant
2023-08-22 19:39:57 +02:00
Julian Winkler
447041066e
add StatFs class from AOSP
2023-08-22 19:39:57 +02:00
Julian Winkler
82744e9e5e
add bunch of new java APIs: mostly stubs or copied from AOSP
...
Many of these classes are only needed to be subclassed by androidx
support library, which is used in many android apps
2023-08-22 15:53:09 +02:00
Mis012
4a1159f5cb
api-impl: add misc stubs
2023-08-12 13:09:33 +02:00
Julian Winkler
4491de7f63
MessageQueue: integrate with glib main loop
...
Adds a special treatment for the main Looper to not block in java code,
but instead return to glib managed thread loop. Timeouts in the mainloop
are now handled using g_timeout_add_full().
Also defer Activity construction, so that every thing is set up properly
when the constructor runs.
2023-08-08 14:18:20 +02:00
Mis012
ce32014fec
api-impl/android/os/AsyncTask: always run on UI thread (lifted from marshmallow)
2023-08-04 17:09:04 +02:00
Mis012
08998b0076
make Looper, Handler, and MessageQueue work properly
...
this for example makes Unity apps not steal the main thread,
hanging Gtk.
2023-07-25 14:27:21 +02:00
Mis012
0a9591c474
src/api-impl: fix up code style, mainly for code imported from AOSP
...
used the following (plus manual edits):
`clang-format --style="{BasedOnStyle: LLVM, IndentWidth: 8, UseTab: Always, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: true, ColumnLimit: 0}`
2023-06-22 11:45:46 +02:00
Julian Winkler
8047df5990
set Build.SDK_INT to GINGERBREAD
...
Flappy Birds tries to apply unnecessary workarounds if older API versions are
reported
2023-06-18 11:31:03 +02:00
Julian Winkler
0454dcbfd5
stub some APIs for Flappy Bird, mostly webview related
2023-06-18 11:28:40 +02:00
Mis012
b10bbaeae2
src/api-impl/android/os/Looper.java: avoid some crashes
2023-01-09 13:54:11 +01:00
Mis012
2e4590c4d8
src/api-impl: misc stubbing
2022-12-31 17:17:10 +01:00
Mis012
696fa5a192
make some Handler callback magic synchronous to avoid having to implement it properly
2022-12-31 17:17:10 +01:00
Nikita Travkin
d419d6d324
fixme-desc: add some stubs
2022-12-01 14:44:19 +01:00
Mis012
52ba443401
misc stubbing
2022-12-01 14:44:16 +01:00
Mis012
75187b01d5
implement/stub some stuff to make SmashHit launch
2022-11-24 16:05:38 +01:00
Mis012
b801f0fb3c
implement some stuff to make exaple SDL app run
...
NOTE: the main addition in this commit is WIP support for apps which
render on an EGL surface obtained using ANativeWindow_fromSurface
currently, this EGL surface is obtained by creating a 700x700 pixel
window with GLFW (the 700x700 size is hardcoded in several places)
and only Wayland is supported
ideally, we'd want to use a wayland subsurface to position the EGL
surface above the Surface widget it's associated with (and do
whatever for X11)
2022-10-26 18:39:04 +02:00