Romain Vimont
5a2b929aac
hack_virtual_display
2024-10-06 19:14:21 +02:00
Romain Vimont
9434718970
dpi
2024-10-06 19:05:36 +02:00
Romain Vimont
f69ac40534
Reorganize server imports
...
Moving classes into subpackages changed the expected imports order.
Reorganize them all at once automatically to avoid spurious changes in
future commits.
2024-09-20 08:43:42 +02:00
Romain Vimont
e84db2914d
Reorganize server packages
...
There are now a lot of classes in the server, reorganize them into
subpackages.
2024-07-11 22:38:00 +02:00
wuderek
be3f949aa5
Adapt to display API changes
...
The method SurfaceControl.createDisplay() has been removed in AOSP.
Use DisplayManager to create a VirtualDisplay object instead.
Fixes #4646 <https://github.com/Genymobile/scrcpy/issues/4646 >
Fixes #4656 <https://github.com/Genymobile/scrcpy/issues/4656 >
PR #4657 <https://github.com/Genymobile/scrcpy/pull/4657 >
Signed-off-by: Romain Vimont <rom@rom1v.com >
2024-02-10 10:01:22 +01:00
Romain Vimont
f7b4a18b43
Catch generic ReflectiveOperationException
...
This exception is a super-type of:
- ClassNotFoundException
- IllegalAccessException
- InstantiationException
- InvocationTargetException
- NoSuchFieldException
- NoSuchMethodException
Use it to simplify.
2024-02-10 10:00:28 +01:00
Romain Vimont
05b5deacad
Move service managers creation
...
Create the service managers from each manager wrapper class rather than
from their getter in ServiceManager.
The way a wrapper retrieve the underlying service is an implementation
detail, and it must be consistent with the way it accesses it, so it is
better to write the creation in the wrapper.
2024-02-10 10:00:26 +01:00
SeungHoon Han
597703b62e
Fix DisplayInfo parsing for Android Q
...
The DisplayInfo dump format has slightly changed in AOSP:
<1039ea50f3 >
PR #3573 <https://github.com/Genymobile/scrcpy/pull/3573 >
Ref #3416 <https://github.com/Genymobile/scrcpy/pull/3416 >
Signed-off-by: Romain Vimont <rom@rom1v.com >
2022-11-12 18:15:45 +01:00
SeungHoon Han
949b64dff2
Add fallback to get DisplayInfo
...
PR #3416 <https://github.com/Genymobile/scrcpy/pull/3416 >
Signed-off-by: Romain Vimont <rom@rom1v.com >
2022-09-25 16:22:51 +02:00
Derek Wu
9c1722f428
Use DisplayManagerGlobal instance
...
Use the client instance to communicate with the DisplayManager server.
Fixes #3446 <https://github.com/Genymobile/scrcpy/issues/3446 >
Signed-off-by: Romain Vimont <rom@rom1v.com >
2022-08-19 18:03:38 +02:00
e_vigurskiy
4150eedcdf
Add display id parameter
...
Add --display command line parameter to specify a display id.
PR #1238 <https://github.com/Genymobile/scrcpy/pull/1238 >
Signed-off-by: Romain Vimont <rom@rom1v.com >
2020-04-02 21:02:52 +02:00
Romain Vimont
e55e42a442
Apply Genymobile rules for Android projects
...
Apply Genymobile checkstyle and gradle build files organization.
2018-02-07 20:58:18 +01:00
Romain Vimont
b67907e24e
Convert server to an Android project
...
To simplify the device server-side build, use gradle to create an APK,
even if we use it as a simple jar, by running its main() method.
2018-01-30 12:01:36 +01:00