Commit Graph

106 Commits

Author SHA1 Message Date
ahmed siddique
79fccbac98 Refactoring onCreate for GameActivity and switching nativemain to use AndroidMain, also updating ASISStub to properly handle activity change and theme change.
Also added gradle build files for ASISStub to make it easier to use the sample android app to test Android Single Instance
Also fixes for Jira: UE-205628
Jira UEHMI-316
#android
#rb Chris.Babcock, matthew.sorrels
#jira UE-205628

[CL 31101181 by ahmed siddique in ue5-main branch]
2024-02-01 16:04:43 -05:00
ahmed siddique
2af857e2c1 Android SingleInstanceService fixes for crash and activity switching.Also updated ASISStub and output ASISProject
#rb Chris.Babcock, matthew.sorrels
#android

[CL 31009144 by ahmed siddique in ue5-main branch]
2024-01-30 11:45:19 -05:00
ahmed siddique
d70352cd9b Android SingleInstance Service
Tested on Android with Lyra and also preflight checks.

#android
#rb chris.babcock

[CL 30244258 by ahmed siddique in ue5-main branch]
2023-12-11 13:59:52 -05:00
wei liu
ef3db73069 Fix the Safezone updated incorrectly issue, the SafeFrameChangeEvent needs to be triggered after the orientation changed.
Fix the Gyro broken issue.


#rb Allan.Bentham, Chris.Babcock

[CL 27434423 by wei liu in ue5-main branch]
2023-08-28 22:30:51 -04:00
nicolas potvin
1aeafcc15d Fix for [Mobile] [Luna Controller] The left and right triggers are not functional
-> Added a name check for Luna controllers, to enable using the threshold to consider pulling triggers as "button presses".
   -> Added controller info to GameActivity

[REVIEW] [at]Mathieu.Roy [at]Ghislain.Theriault [at]Bernard.Lambert [at]Chris.Babcock

#rnx

[CL 26771341 by nicolas potvin in ue5-main branch]
2023-08-02 10:21:05 -04:00
allan bentham
dbe9022ae5 Add alternative method to determine the native screen DPI when calculating the scale factor required to achieve the requested Android.WindowDPI.
#rb chris.babcock
[REVIEW]

[CL 26746178 by allan bentham in ue5-main branch]
2023-08-01 13:49:32 -04:00
wei liu
b9cd7267df Fix the screen resolution (on mobile) stretched issue when casted to a larger screen with a USBC to HDMI cable.
#b Chris.Babcock, Allan.Bentham

[CL 26602466 by wei liu in ue5-main branch]
2023-07-26 06:46:11 -04:00
maxime zobenbueler
af38cac466 Changed how configrules safezones values are evaluated and applied.
#tests Tested on the following affected devices Pixel 3 XL, Nokia 8, OnePlus 7, OnePlus 8T, Samsung S8+, Samsung S10


[REVIEW] [at]Fourat.Jellouli [at]Nicolas.Potvin
#rb Allan.Bentham Michel.Champoux
#rnx

[CL 26024170 by maxime zobenbueler in ue5-main branch]
2023-06-15 16:10:55 -04:00
wei liu
c53c069cf8 Tentative fix for android safe zone.
#rb Chris.Babcock
#preflight 64547812d02ea5289fa6a8a3

[CL 25349049 by wei liu in ue5-main branch]
2023-05-05 01:47:29 -04:00
christopher fiala
57129aa917 Fix packaged Quest loading hang due to recent changes in FAndroidWindow::GetScreenRect and the OpenXR depth swapchain view rect initialization.
The FAndroidWindow::GetScreenRect change left us with a (0,0) resolution when using Quest, so the HMD wouldn't even try to render.
The depth swapchain changes cause the depth swapchain ViewRect to be uninitialized, resulting in an XR_ERROR_SWAPCHAIN_RECT_INVALID error.

#jira UE-181076
#rb robert.srinivasiah
#preflight 6430871cdf6c5c78fc2bb08d

[CL 24970602 by christopher fiala in ue5-main branch]
2023-04-07 17:25:37 -04:00
jack porter
6fc650c101 Update Swappy to the latest from https://android.googlesource.com/platform/frameworks/opt/gamesdk, modified to always use the Java DisplayManager and refresh rate selection
Enable Swappy on Android by default
Fixed: Swappy VK initialization which was missing a WindowHandle
Remove old GoogleGameSDK files that are no longer needed
Removed Java version of MemAdvisor
#rb Dmitriy.Dyomin
#jira UE-181102
#preflight 64302326285518071799c243

[CL 24965637 by jack porter in ue5-main branch]
2023-04-07 12:06:20 -04:00
allan bentham
af7e41dca5 Fix assert when Android 3d scene DPI is clamped by Android.3DSceneMinDPI.
- set secondary screen percent cvar from GT only.
#rb none
#preflight 6421d793c42c7fd1cb9708ec

[CL 24811082 by allan bentham in ue5-main branch]
2023-03-27 18:31:08 -04:00
allan bentham
2128af84cf Fix downstream cis
#rb none

[CL 24672190 by allan bentham in ue5-main branch]
2023-03-16 11:48:25 -04:00
allan bentham
e9c3559bf2 Fix downstream cis
#rb none

[CL 24672114 by allan bentham in ue5-main branch]
2023-03-16 11:45:30 -04:00
allan bentham
c0e8a0cb55 Android DPI window resolution selection cvars
- Android.WindowDPI, set a DPI to achieve when calculating the app's screen resolution.
 - Android.3DSceneMaxDesiredPixelCount, set a target pixel count for the 3D scene color resolution.
 - Android.3DSceneMinDPI, set a forced minimum DPI for the 3D scene color resolution, useful to ensure a minimum resolution quality on low DPI devices.
#rb Chris.babcock

[CL 24671989 by allan bentham in ue5-main branch]
2023-03-16 11:41:14 -04:00
chris babcock
ddbeafd4c3 Less frequent update to intensity for on device vibrator
#android
[REVIEW] [at]Peter.Sauerbrei
#rb Peter.Sauerbrei

[CL 24551994 by chris babcock in ue5-main branch]
2023-03-07 19:11:03 -05:00
chris babcock
a2e6292e96 Update force feedback support on Android
- Use VibrationEffect for intensity control
- Forward feedback to controller(s) if Android.UseControllerFeedback non-zero (defaults to 1)
- Fix issue with fingerprint scanner false detection as controller
- Does not continue feedback when backgrounded

#jira UE-168579
#android
[REVIEW] [at]Jack.Porter
#rb Jack.Porter

#preflight https://horde.devtools.epicgames.com/job/63e2ff10c11233cdcab34b6e

[CL 24068849 by chris babcock in ue5-main branch]
2023-02-08 01:41:47 -05:00
dmitriy dyomin
205f5e4947 Enable Swappy and NonVSync framerates on Android by default
#rb jack.porter

[CL 23964729 by dmitriy dyomin in ue5-main branch]
2023-02-02 01:25:48 -05:00
chris babcock
6a609b5bff Fix XBox and Razer wired controllers on Android 12+
#android
[REVIEW] [at]Peter.Sauerbrei
#rb Peter.Sauerbrei
#preflight

[CL 23939499 by chris babcock in ue5-main branch]
2023-01-31 17:20:43 -05:00
chris babcock
2ee9d41108 Update Android controllers
#android
[REVIEW] [at]Josh.Adams
#rb Josh.Adams

[CL 23832046 by chris babcock in ue5-main branch]
2023-01-24 11:32:33 -05:00
mathieu chamberland
82f520c8db AndroidInputInterface - PS5 controller now has the correct mapping for Android Version less than 12 and triggers are working correctly on Android 12.
#rb chris.babcock, maxime.vaillancourt, ghislain.theriault

[CL 23747935 by mathieu chamberland in ue5-main branch]
2023-01-17 18:37:50 -05:00
devin doucette
49fb379c64 Logging: Removed FFeedbackContext overrides that are now covered by the base
#jira UE-152840
#preflight 63b46f1e202bee5e2795f603
#rb Zousar.Shaker
#rnx

[CL 23570239 by devin doucette in ue5-main branch]
2023-01-03 16:41:11 -05:00
Josh Adams
5615b1a14d - Fixed Android warnings found with some upcoming toolchain changes
- Allow GoogleARSDK for x64 architecture
#rb chris.babcock
#preflight 638a5343976b1644cb6d9c01

[CL 23377164 by Josh Adams in ue5-main branch]
2022-12-02 14:45:19 -05:00
Wei Liu
031203ae2d Fix a bug of android safezone not updated if orientation changes from landscape to reverse landscape.
#jira UE-170632

#rb Chris.Babcock, Dmytro.Vovk
#preflight 637f87b2fa053c489a0b4e60

[CL 23259804 by Wei Liu in ue5-main branch]
2022-11-24 10:41:07 -05:00
mathieu dunlay
1896e2a23b Adding a remap type on android 12 and up.
[CL 22536080 by mathieu dunlay in ue5-main branch]
2022-10-14 17:50:33 -04:00