222 Commits

Author SHA1 Message Date
matt begoghina
f7700fa398 Return Android devices with Turnkey, and Editor Platforms menu update
The goal of this update is to have valid Android devices not showing with a Warning in the Platforms menu.

To allow this, the AndroidPlatformSDK now return the list of connected devices and their SDK Versions.
The change in TurnkeySupportModule ensures we are stripping the cook flavor from the DeviceId which would fail to verify the SDK.

Regarding the Editor `Platforms` menu, the code was adjusted to have devices listed outside of a submenu when `Platform->SupportsFeature(ETargetPlatformFeatures::ShowAsPlatformGroup)` returns false.
Another addition was a new `ETargetPlatformFeatures::ShowAggregateDevice` to allow platforms to not list the aggregate device (ex: `All_Android_on...`)

#review-36072549
#jira UE-223262
#rb adam.kinge, Chris.Babcock, Josh.Adams

[CL 37262963 by matt begoghina in 5.5 branch]
2024-10-18 09:28:09 -04:00
chris babcock
a75726d56d Additional threading protections for background downloading
Save mapping.txt file
Turn back on Samsung S23/S24 bgdl

#android
[REVIEW] [at]Ben.Temple
#rb ben.temple

[CL 36749107 by chris babcock in 5.5 branch]
2024-10-01 18:02:55 -04:00
TroutZhang
11fbe78c35 Add additional location to check for Android Studio binary
#jira UE-212068
#android
#11740
[REVIEW] Ben.Temple
#rb Ben.Temple

[CL 34720307 by TroutZhang in ue5-main branch]
2024-06-27 15:44:44 -04:00
joe kirchoff
72a8c5996d Fix various XML comment issues in AutomationTool and various scripts (non-functional change)
#rnx

[CL 34263204 by joe kirchoff in ue5-main branch]
2024-06-10 21:51:45 -04:00
jon olick
c212eb5c54 Use AFS instead of ADB when available.
[CL 33043921 by jon olick in ue5-main branch]
2024-04-17 14:46:09 -04:00
chris constantinescu
7c5095a408 LLT Android support
#rb Chris.Babcock, sebastian.lewicki
#jira UE-210332

[CL 32714226 by chris constantinescu in ue5-main branch]
2024-04-03 18:39:56 -04:00
rafa lecina
881b698a18 Scape '(' and ')' in the session name when launching on Android.
Otherwise it will fail to launch from project launcher since session name is like `DeviceName (SerialNumber)` with the error `/system/bin/sh: syntax error: unexpected '('`

[REVIEW] [at]Chris.Babcok

#rb Chris.Babcock

[CL 30922981 by rafa lecina in ue5-main branch]
2024-01-26 09:49:05 -05:00
dmytro ivanov
31966efe00 Use correct AFS in the push script
#jira UE-186383
#rb Allan.Bentham

[CL 29133672 by dmytro ivanov in ue5-main branch]
2023-10-26 10:05:17 -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
chris babcock
b0178ba83c Update install scripts and deploy for future AndroidFileServer changes
Remove unused AFS receiver

#jira UE-192822
#android
[REVIEW] [at]Ben.Temple
#rb Ben.Temple

[CL 27162726 by chris babcock in ue5-main branch]
2023-08-16 20:47:28 -04:00
chris babcock
9bd1cb5b98 Archive additional APK products from Gradle
#android
[REVIEW] [at]Ben.Temple
#rb Ben.Temple

[CL 27022400 by chris babcock in ue5-main branch]
2023-08-11 00:52:06 -04:00
jack porter
6f8e904888 Fix logging issue
#rb trivial

[CL 25948733 by jack porter in ue5-main branch]
2023-06-13 08:31:06 -04:00
jack porter
9111d0a28d Support for arbitrary number of OBB overflow files
Set current maximum to 10 in ini file
#rb Allan.Bentham

[CL 25912082 by jack porter in ue5-main branch]
2023-06-10 23:02:11 -04:00
dmytro ivanov
15a6f27a3e Pass RunCommandline during launch to improve iteration times on mobile by not needing to rebuild .apk every time, because they are not passed via staged build anymore.
#jira UE-185550
#rb adam.kinge

[CL 25868747 by dmytro ivanov in ue5-main branch]
2023-06-08 08:25:43 -04:00
Chris Babcock
a7b817d8ca Upgrade Android Studio and Gradle (OpenJDK 17 from 2202.2.1 and Gradle 7.5)
#jira UE-182869
#android
#review @Jack.Porter
#rb Ben.Temple

#preflight https://horde.devtools.epicgames.com/job/6470fd1fd729def34b72a8ff

[CL 25651882 by Chris Babcock in ue5-main branch]
2023-05-26 16:03:01 -04:00
Wojciech Krywult
9fe0243168 AutomationTool: Fixed 'Launch failed' messages in the editor after terminating a successfully launched game.The problems was caused by us treating all non-zero results as errors while some platforms return different non-zero codes to provide additional information.
Resolved by adding IProcessResult::bExitCodeSuccess virtual property which may be overridden on the affected platforms to explicitly indicate which exit codes are allowed.

#preflight 6462a07a592448f08bde34e4
#rb David.Harvey
#jira UE-178885
#rnx

[CL 25497459 by Wojciech Krywult in ue5-main branch]
2023-05-16 16:56:31 -04:00
Chris Babcock
baa892e6aa Only archive AAB if bundle enabled for Android
#jira UE-183354
#android
#review @Jack.Porter
#rb Jack.Porter

#preflight https://horde.devtools.epicgames.com/job/6446e99c27014596f3901328

[CL 25171429 by Chris Babcock in ue5-main branch]
2023-04-24 17:12:55 -04:00
Chris Babcock
a4eb7223df Use /sdcard/Android/obb for OBBs for all build types
#jira UE-183941
#android
#review @Jack.Porter
#rb Jack.Porter

#preflight https://horde.devtools.epicgames.com/job/6442ec8df030f684d5297cc5

[CL 25169834 by Chris Babcock in ue5-main branch]
2023-04-24 15:48:01 -04:00
chris babcock
23bd4315be Add Overflow 3 and 4 for Android OBB files
OverflowOBBFileLimit project setting to set number allowed (up to 4, default 2)

#android
[REVIEW] [at]Peter.Sauerbrei
#rb Peter.Sauerbrei

[CL 25035555 by chris babcock in ue5-main branch]
2023-04-13 20:29:30 -04:00
Ben Marsh
7e26c34d2b EpicGames.Core: Deprecate legacy log methods to prefer structured logging interface.
#preflight 640a23d928026468d9de7cbd

[CL 24580590 by Ben Marsh in ue5-main branch]
2023-03-09 14:51:40 -05:00
Ben Marsh
e141cb6196 More UAT structured logging fixes.
#preflight 6408dee3b0544ef0b4bca696

[CL 24564590 by Ben Marsh in ue5-main branch]
2023-03-08 14:32:15 -05:00
Ben Marsh
235eb77726 Change to structured logging in other AutomationTool projects.
#preflight 6408c4478c0039bbf750e861

[CL 24562553 by Ben Marsh in ue5-main branch]
2023-03-08 12:43:35 -05:00
chris babcock
c04d687e32 Fix AAB archiving issue (incorrectly added '-' when architecture not specified)
#jira UE-176695
#android
[REVIEW] [at]Brandon.Schaefer
#rb Brandon.Schaefer

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

[CL 24110677 by chris babcock in ue5-main branch]
2023-02-09 19:37:25 -05:00
josh adams
1610c3bee3 UnrealArch/UnrealArchitectures changes
- Creates the UnrealArchitectures class, which wraps a list of UnrealArch objects
 - UnrealArch is a single architecture, expandable enum-like struct
 - There is no more concept of "no/default architecture", there is always a valid active architecture when building
 - Most uses of "string Architecture" are replaced with one of the two above, depending if multiple architectures are supported or not
 - UnrealArch has some platform-extensions for platform-specific naming (like Linux adds in LinuxName that turns, for instance, Arm64 -> aarch64-unknown-linux-gnueabi, which is used in folder names, etc)
 - UnrealArch has bIsX64 which can be used determine intel instruction set (as opposed to arm)
 - TargetRules class has an "Architecture" accessor that will return a single architecture if the active architectures is a single architecture, or throw an exception if multiple. This is useful in a majority of the cases where a paltform can only have a single architecture active in TargetRules (microsoft platforms, for instance, will create separate targets when compiling multiple architectures at once)
 - Added UnrealArchitectureConfig class, which contains all the architecture information for a platform (what architectures are supported, what ones are currently active for given project, etc)

#preflight 63c81fb5b065224750a1759e
#rb mike.fricker,roman.dzieciol,joe.kirchoff,dmytro.vovk,brandon.schaefer [various parts]
#p4v-preflight-copy 23562471

[CL 23829977 by josh adams in ue5-main branch]
2023-01-24 09:30:28 -05:00
Josh Adams
e1e330be49 Fixed up Androd installation via Turnkey:
- Moved running AndroidStudio to install the commandline tools into the InstallSDKfunction, out of the Prerequisites, which now just now makes sure AndroidStudio is installed
- Added direct AndroidStudio download to Turnkey, usable by all licensees (no need to host the installer at each studio now)
#preflight 63cea450976daa618c0498ec
#rb chris.babcock

[CL 23812459 by Josh Adams in ue5-main branch]
2023-01-23 10:42:04 -05:00