Commit Graph

364 Commits

Author SHA1 Message Date
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
ismael desouza
09299f3b2e Fix left/right triggers not functional when connecting over xbox one wired controller
-Added proper product and vendor IDs to the list of known XBox wired controllers

[CL 26991255 by ismael desouza in ue5-main branch]
2023-08-10 10:09:35 -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
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
dmytro ivanov
6531c32f20 Fixing broken .apk generation when iterating
#jira UE-188461
#rb Chris.Babcock

[CL 25946813 by dmytro ivanov in ue5-main branch]
2023-06-13 04:37:50 -04:00
Chris Babcock
cd98a42dbc Fix up Lyra warnings
#jira UE-187229
#android
#review @Ryan.Hummer
#rb Ryan.Hummer

#preflight https://horde.devtools.epicgames.com/job/6478f6e77a6aeda41b5a5ed2

[CL 25743610 by Chris Babcock in ue5-main branch]
2023-06-01 17:30:34 -04:00
dmytro ivanov
894b85c74c Removing emoji filtering on Android
Originally 25582853
#jira UE-186846
#rb Chris.Babcock
#preflight 647709e303438130a456974f

[CL 25698473 by dmytro ivanov in ue5-main branch]
2023-05-31 05:12:51 -04:00
chris babcock
6cb1dc628b Add additional Razer Kishi gamepad
#android
[REVIEW] [at]Mic.Rooney
#rb Mic.Rooney

#preflight none

[CL 25694689 by chris babcock in ue5-main branch]
2023-05-30 19:28:40 -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
joakim trossvik
fd0e37f99b Handle cellular network in background download
- When the App is alive and cellular is needed we show a "Waiting for cellular approval" notification
- When the app is killed you can accept cellular download from the notification tray.
- Still needs to rework cellular to connect it to the Java layer
- Accepting cellular when the app is open will replicated the value to the Java layer
#preflight 646f1b01f85111e06cf22e7f

[CL 25635253 by joakim trossvik in ue5-main branch]
2023-05-25 19:33:49 -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
dmytro ivanov
ee8d372f21 Fixing typo from CL 25336128 (Fixing hardware keyboard input not passing through IME)
#jira UE-185045
#preflight 6453d7224574b81df475a69f

[CL 25336953 by dmytro ivanov in ue5-main branch]
2023-05-04 12:12:43 -04:00
dmytro ivanov
d82dcc7de1 Fixing hardware keyboard input not passing through IME
#jira UE-185045
#rb Jack.Porter
#rb Chris.Babcock
#preflight 6453cf000e33f2d51d2a8d31

[CL 25336128 by dmytro ivanov in ue5-main branch]
2023-05-04 11:40:38 -04:00
chris babcock
d8896a36af Adding network listener for Android.
Adding usage of network listener in Background Download.


#rb [at]Ghislain.Theriault

[REVIEW] [at]Fourat.Jellouli [at]Camille.Gendreau [at]Ghislain.Theriault

#rnx

[CL 25240155 by chris babcock in ue5-main branch]
2023-04-28 16:35:31 -04:00
joakim trossvik
2953110e7e Allow Instant notifications to be sent
* If TargetTime is set to 0 it will send it as soon as posible
#preflight 6440df9e4f243417cd4bfe1f

[CL 25124478 by joakim trossvik in ue5-main branch]
2023-04-20 06:28:32 -04:00
Rafa Lecina
2868e7204b Added support for subscriptions and full server to server validation to OnlinePurchaseGooglePlay.
Full server validation is enabled by setting ``bDisableLocalAcknowledgeAndConsume`` in ``OnlineSubsystemGooglePlay.Store`` section on the ini files. This way consume and acknowledge should be called after server validation through server to server calls to GooglePlay services and all product types allowed by GooglePlay store can be handled

Subscriptions are identified using a unique product id on GooglePlay like any other regular in app products. The main difference with a regular product is that the same subscription can be purchased by many different ways depending on the GooglePlay app configuration.
A subscription may have different base plans which are identified by a string id. Each base plan defines a base price, whetrer the plan is autorenewable or not, the length before expiration. For instance, a subscription may have a base plan with a price for a 1 month subscription and another plan with a different price for a 1 year subscription
Each base plan may have several offers which are identified by a string id. Those may be triggered on purchase by GooglePlay or by the developer. Those offers may configure several phases on a subscription depending on the number of times it has been renewed. For instance, an offer could set a Free period, then a discount on the first 3 renewals and then following renewals would be at the base plan price
Subscription product ids seen from the engine side have a special format starting with "s-" prefix (``-`` is not allowed in product ids in the GooglePlay store, so there would be no broken id on the licensees side) . In order to request product information (QueryOffersById) the product id can be requested with or without that prefix, but all the product ids reported to the engine will contain the prefix in case the product is a subscription
In order to identify base plans, offers and its price phases ``QueryOffersById`` will store a ``FOnlineStoreOffer``instance for each allowed combination
The product id format for those will be s-<store product id>:<base plan id>:<offer id>:<price phase index>
An instance for each base plan will be created without the offer id and price phase index. Also, an instance for each offer will be created without the price index part and containing the final price point(the last price point. This was explicitly requested) in addition to all the price steps
For example, this could be the list of ``FOnlineStoreOffer`` instances created by ``QueryOffersById`` requesting ``s-test_subscription_1``(which in the store would be identified as just ``test_subscription_1``). That would be a subscription with 2 plans, one of the with 2 offers. First offer would contain 3 phases and second just 2 phases
``s-test_subscription_1:base-plan1``
``s-test_subscription_1:base-plan1:offer-1``
``s-test_subscription_1:base-plan1:offer-1:0``
``s-test_subscription_1:base-plan1:offer-1:1``
``s-test_subscription_1:base-plan1:offer-1:2``
``s-test_subscription_1:base-plan1:offer-2``
``s-test_subscription_1:base-plan1:offer-2:0``
``s-test_subscription_1:base-plan1:offer-2:1``
``s-test_subscription_1:base-plan2``

To ``CheckOut`` a product any of those identifiers could be used. The price index would be discarded since a subscription offer must be started from the initial step (GooglePlay already keeps track if the user already used the Free trial period and removes it). If the identifier contains an offer id the subscription will be purchased using that offer

When receipts are queried using ``QueryReceipts`` we will receive receipts for any non consumed product, any pending product (user still needs to pay using an external method) and for any non expired subscriptions
GoogleBilling Library do not notify on device for expired/canceled/paused subscriptions. Real time notifications can be configured on servers to notify validation/authority servers about those changes and act accordingly, so no additional checks should be done from the client
Only notifications received are when a new product is purchased/becomes pending or a subscriptions is activated or resumed. In order to check for receipts status on device the only way should be to call ``QueryReceipts```again and note that there is no receipt for the given subscription. This should be done only in case validations are done locally on device (which is not secure, but there are many serverless games around in mobile)

#jira UE-176438
#review @Bertrand.Carre, @Michael.Kirzinger, @Chris.Varnsverry, @Dashan.Yue, @Chris.Babcock
#preflight 641c4bdb76461c460b9ceaf3

[CL 25037177 by Rafa Lecina in ue5-main branch]
2023-04-14 03:30:00 -04:00
joakim trossvik
c19d8d88fa Android Local Notifications changes
Allow notifications to specify a pinned ID, By doing this it will only show the latest notification sent from that ID.
Currently no IOS implementation.
#preflight 641ad9056f1ceb81be621b6c

[CL 24746687 by joakim trossvik in ue5-main branch]
2023-03-22 09:47:19 -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
9f0bd4f6fc Allow WebGL and video playback in 3D WebBrowser on Android and fix issue with Oculus hardware acceleration
#jira UE-180363
#android
[REVIEW] [at]Jack.Porter
#rb Jack.Porter

#preflight https://horde.devtools.epicgames.com/job/641254b85819afacaf390c4d

[CL 24666189 by chris babcock in ue5-main branch]
2023-03-15 20:47:15 -04:00