Commit Graph

382 Commits

Author SHA1 Message Date
ahmed siddique
584f0e4a77 New: cleanup ASIS impact on GameActivity
QA: should check this change to ensure the 4 finger touch and other crashes are addressed.
#android
#rb ahmed.siddique

[CL 32513256 by ahmed siddique in 5.4 branch]
2024-03-26 12:37:57 -04:00
ahmed siddique
6c9863f704 [Backout] - CL32410244
[FYI] ahmed.siddique
Original CL Desc
-----------------------------------------------------------------
New: Cleanup and simplify GameActivity.java.template changes to be less intrusive and support ASIS.
BugFix: Cleanup Android engine source logic to have minimal impact when not using ASIS.

#ushell-cherrypick of 32146848 by ahmed.siddique
#rb Chris.Babcock
#jira UE-210348, FORT-720545

[CL 32512024 by ahmed siddique in 5.4 branch]
2024-03-26 12:17:12 -04:00
ahmed siddique
77d30fe295 New: Cleanup and simplify GameActivity.java.template changes to be less intrusive and support ASIS.
BugFix: Cleanup Android engine source logic to have minimal impact when not using ASIS.

#ushell-cherrypick of 32146848 by ahmed.siddique
#rb Chris.Babcock
#jira UE-210348, FORT-720545

[CL 32500419 by ahmed siddique in 5.4 branch]
2024-03-26 03:02:55 -04:00
chris babcock
adcb5e92eb Set input text to black on Android with new theme
#android
[REVIEW] [at]Peter.Sauerbrei
#rb Peter.Sauerbrei

[CL 31662631 by chris babcock in 5.4 branch]
2024-02-20 18:51:04 -05:00
chris babcock
c21cd07572 Update Android styles to more modern base theme
#jira UE-205231
#android
[REVIEW] [at]Ben.Temple
#rb Ben.Temple

[CL 31537343 by chris babcock in 5.4 branch]
2024-02-15 16:53:11 -05:00
ahmed siddique
6153da1c62 Merge from FN-29 Do cleanup in LaunchAndroid.cpp and remove any logic that was experimental
Cleanup runOnUiThread in SimpleContextWrapper.java
fixes bug for FORT-699059

#android
#rb chris.babcock



#changelist validated
#virtualized

[CL 31236018 by ahmed siddique in 5.4 branch]
2024-02-06 18:02:25 -05:00
allan bentham
fb45794d16 EGL's Robust context can change the result of GL's shader compiler/linker.
Make sure the robust context setting is replicated on the external compilers services and also changes OGL shader cache hash when enabled.
#rb Chris.Babcock, Peter.Sauerbrei
[REVIEW] [at]chris.babcock, [at]peter.sauerbrei

[CL 31165206 by allan bentham in 5.4 branch]
2024-02-04 20:09:19 -05:00
ahmed siddique
87d2f2298d 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 31101287 by ahmed siddique in 5.4 branch]
2024-02-01 16:06:33 -05:00
ahmed siddique
4ac4084b88 Android SingleInstanceService fixes for crash and activity switching.Also updated ASISStub and output ASISProject
#rb Chris.Babcock, matthew.sorrels
#android

[CL 31009235 by ahmed siddique in 5.4 branch]
2024-01-30 11:47:45 -05:00
rafa lecina
d7a9704a24 Update GooglePlay games dependencies. This includes
- Create our own JNI wrapper on top of latest play-services-games-v2 classes
 - Adapt OSSGooglePlay to use this wrapper
 - Remove deprecated/unsupported functionality
 - Fix some issues with JNI support

#jira UE-201481
[REVIEW] [at]Michael.Kirzinger, [at]Chris.Babcock, [at]Bertrand.Carre
#rb Chris.Babcock, Michael.Kirzinger, Sam.Zamani

[CL 30963411 by rafa lecina in 5.4 branch]
2024-01-29 03:41:27 -05:00
ahmed siddique
81e2dbfee7 Android SingleInstance Services fixes to address crash and activity/surface binding issues.
known issues remaining: have to pause before switching surface binding (should be handled internally eventually)
need to finish up the changes for compiling reference ASIS android studio project samlple. This will be in another submit.
#rb chris.babcock
#android

[CL 30685682 by ahmed siddique in ue5-main branch]
2024-01-18 11:23:13 -05:00
chris babcock
3dcdaa237d Fix usage of _activity errors
#android
[REVIEW] [at]Ben.Temple
#rb Ben.Temple

[CL 30342745 by chris babcock in ue5-main branch]
2023-12-14 22:26:25 -05:00
ahmed siddique
503fa43a47 Android Single Instance Service missing files for packaging and shortname for build.cs
#android
#rb Chris.Babcock
#jira UE-202407

[CL 30295656 by ahmed siddique in ue5-main branch]
2023-12-13 12:01:40 -05:00
chris babcock
3e9372f623 Add protection to InputDevice check for gamepads
#android
[REVIEW] [at]Allan.Bentham
#rb Allan.Bentham

[CL 30162138 by chris babcock in ue5-main branch]
2023-12-06 13:56:11 -05:00
dmytro ivanov
472be09f89 Enable memory tracing on Android
#jira UE-200096
#rb ionut.matasaru, Johan.Berg

[CL 29637861 by dmytro ivanov in ue5-main branch]
2023-11-10 08:42:29 -05:00
allan bentham
740be9fb4c Reduce PSO compiler service priority.
- reduces likelihood of PSO tasks starving application of cpu cycles.
#rb jack.porter

[CL 29041795 by allan bentham in ue5-main branch]
2023-10-24 06:20:37 -04:00
allan bentham
fd99ee36dc Android:
- Add engine access to java thermal headroom api.
 - Add 'thermal stress' to perf reports. (see powermanager.getthermalheadroom)
 - Add rss as separate property of android mem stats
#rb jack.porter

[CL 29032044 by allan bentham in ue5-main branch]
2023-10-24 02:40:54 -04:00
dmytro ivanov
32d57e9b28 Don't bundle libUnreal.so in .apk for faster iteration
#jira UE-186383
#rb Chris.Babcock

[CL 28967167 by dmytro ivanov in ue5-main branch]
2023-10-20 11:24:28 -04:00
allan bentham
bcf47fc734 Android: Update memory advisor to v2.0.1
- Add new total memory estimate to logs and crash context.
 - Add memory available estimate to logs and crash context.

#rb chris.babcock

[CL 28450956 by allan bentham in ue5-main branch]
2023-10-04 08:08:04 -04:00
allan bentham
f5e0f0b7ca Android: Add 'Product name' to android misc, gives access to the device's marketing/product name - if available.
#rb chris.babcock

[CL 28268625 by allan bentham in ue5-main branch]
2023-09-27 06:36:53 -04:00
thomas ross
c549d7a65d Android Studio build improvements:
- Allow pass through of BypassGradlePackaging argument in UBT
- Allow setting skippackage to actually skip packaging on Android in UBT
- Fix to Android Studio detection to skip build.gradle stomping when building in RunUAT or VisualStudio. Requires setting File > Settings > Build, Execution, Deployment > Build Tools > Gradle > "Generate *.iml files for modules imported from Gradle"
- Save RunConfiguration for app config in AndroidStudio so that we can load already having the debugger set to dual and the correct LLDB StartupCommand set.
#tests Android, Dev, Client, compile, mobile
#rb swarm

[CL 28206857 by thomas ross in ue5-main branch]
2023-09-25 17:28:13 -04:00
allan bentham
9abf69f0bd Android Vulkan external PSO compiler precache support
- currently default disabled.
 - external PSO compilers now pass shared memory blocks back and forth to the engine.
 - When precaching and external compilers are enabled the external compilers are created during RHI init.
 - Chunked Pipeline cache can do limited tests to check if a PSO is required before compiling (where EXTPipelineCreationCacheControl is supported)
 - added vulkan GetPrecachePSOHashVersion that should be updated if RHIComputePrecachePSOHash changes.
 - Updated vulkan's PrecachePSOHash.

#rb chris.babcock, Dmitriy.Dyomin
[FYI] jeannoe.morissette

[CL 28130863 by allan bentham in ue5-main branch]
2023-09-22 08:09:25 -04:00
chris babcock
4ad0ca0255 Add null clipboard item check
#jira UE-195530
#android
[REVIEW] [at]Ben.Temple
#rb Ben.Temple

[CL 27897216 by chris babcock in ue5-main branch]
2023-09-14 17:44:09 -04:00
allan bentham
93f523c936 Fix Android PSO program service initialization failure when application is backgrounded during engine init.
- service timeout error was thrown since connection does not complete when app is backgrounded.
#rb chris.babcock

[CL 27713622 by allan bentham in ue5-main branch]
2023-09-08 11:51:50 -04: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