Commit Graph

240 Commits

Author SHA1 Message Date
ben temple
8aaf647319 Fix NPE in network capability validation code
#Summary
Remove useless network capability validated code

The crash was caused by failing to check for null in responses from calls to some system methods.
In general this code doesn't help much since this specific check was added prior to adding the more thorough HEAD request to example.com.
By removing it, it should fix the null issue, and in-fact make the naive internet check more in-line with what's expected which is a very simple network check.
This naive check always followed by attempting to connect to example.com which provides a far more guaranteed check into whether the internet is in-fact connected.

#Test Plan
Connected bluetooth headset
Launched app
launched game
Disconnected bluetooth
Verified no crash



#ROBOMERGE-SOURCE: CL 10155147 via CL 10155334 via CL 10155443
#ROBOMERGE-BOT: (v587-10111126)

[CL 10155612 by ben temple in Main branch]
2019-11-13 14:54:20 -05:00
ben temple
40228b81ae Fix not declaring variable accessed by an inner class as final
# Summary
See title, variable needed to be declared as final.




#ROBOMERGE-SOURCE: CL 10084496 via CL 10084499 via CL 10084505 via CL 10084508
#ROBOMERGE-BOT: (v574-10069753)

[CL 10087046 by ben temple in Main branch]
2019-11-08 15:36:50 -05:00
ben temple
fb6e1288be Fix blocking code in NetworkChangedManager
# Summary
Since the HTTP url open connection is a blocking call. It needs to be run on a seperate thread. The call .get on a future is blocking though, meaning we were still running a blocking call on the main looper. This updates that code to instead add a timeout runnable to the local handler, to cancel the executor if it hasn't completed in the allotted time.

Added some tweaks to match comments made by [at]Pete.Procopio
 - Refactor INSTANCE to be lower case
 - Tweak construction of Logger to match current pattern
 - Copied over correct NetworkChangedManager to remove System static call that was accidently included in the NativeWrapper

[CODEREVIEW] [at]Zhao.Zhong [at]Chris.Babcock [at]Pete.Procopio [at]trevor.stone

# Test Plan
1. Built and ran app with UeDevelopmentDebug
2. app launched
3. signed in
4. verified that could start download
5. Turned off wifi
6. Verified that saw network error
7. Turned wifi back on
8. Verified that network error went away automatically



#ROBOMERGE-SOURCE: CL 10073998 via CL 10074011 via CL 10074013 via CL 10074017
#ROBOMERGE-BOT: (v574-10069753)

[CL 10075107 by ben temple in Main branch]
2019-11-07 15:39:17 -05:00
ben temple
76316d6448 Improve Network Connection Manager's ability to detect bad network conditions
# Summary
This matches code that we recently added to iOS. Along with attempting to determine network connectivity with system methods, this also checks the ability to resolve a HEAD request with an external host `http://google.com/` in-order to verify that the network connection actually has a connection. This check is asynchronous with a 2 second timeout and has an exponential back-off retry with a maximum of up to 13 seconds when the check fails.

[CODEREVIEW] [at]zhaolong.zhong [at]chris.babcock

# Test Plan
1. Built and ran app with UeDevelopmentDebug
2. app launched
3. signed in
4. verified that could start download
5. Turned off wifi
6. Verified that saw network error
7. Turned wifi back on
8. Verified that network error went away automatically

Repeated above steps but instead of turning off wifi, had Scout test it by unplugging the network cable to a wifi router.



#ROBOMERGE-SOURCE: CL 10068945 via CL 10068946 via CL 10068947 via CL 10068950
#ROBOMERGE-BOT: (v574-10069753)

[CL 10073116 by ben temple in Main branch]
2019-11-07 13:47:31 -05:00
chris babcock
f9a2c805ac Verify launch notification event before registering it
#android
[at]Pete.Procopio
#rb Pete.Procopio



#ROBOMERGE-SOURCE: CL 9619974 via CL 9620751 via CL 9620787
#ROBOMERGE-BOT: (v528-9595928)

[CL 9620822 by chris babcock in Main branch]
2019-10-16 14:10:22 -04:00
wang hao
389171f0ea Redo CL 6651507 (originally done in Dev-Kairos but was not merged over properly)
#ROBOMERGE-SOURCE: CL 9581200 via CL 9581203
#ROBOMERGE-BOT: (v524-9564021)

[CL 9581204 by wang hao in Main branch]
2019-10-15 06:37:06 -04:00
chris babcock
9ec855d900 Fix configrules.txt operator bug (contributed by scahp)
#jira UE-81254
#PR #6249
#ue4
#android
#rb trivial



#ROBOMERGE-SOURCE: CL 9479487 via CL 9479558
#ROBOMERGE-BOT: (v508-9471939)

[CL 9479560 by chris babcock in Main branch]
2019-10-08 15:10:41 -04:00
pete procopio
257610eb94 FORT-212155:Update Launcher Provider code to provide FunnelId
#jira:FORT-212155
#android
#rb:Chris.Babcock


#ROBOMERGE-SOURCE: CL 8983651 via CL 8985055 via CL 8985213
#ROBOMERGE-BOT: (v441-8974111)

[CL 8989970 by pete procopio in Main branch]
2019-09-23 16:30:34 -04:00
chris babcock
543950c2fa Handle redirects for streaming media player on Android
#jira UE-80601
#ue4
#android
[FYI] Jack.Porter
#rb Sam.Deiter

#lockdown cristina.riveron

#ROBOMERGE-SOURCE: CL 8914711 in //UE4/Release-4.23/...
#ROBOMERGE-BOT: RELEASE (Release-4.23 -> Main) (v427-8887818)

[CL 8914722 by chris babcock in Main branch]
2019-09-19 18:00:24 -04:00
jamie dale
07862c3a1f Enable Emoji input for Android
#jira
#rb Chris.Babcock


#ROBOMERGE-SOURCE: CL 8673182 via CL 8676094
#ROBOMERGE-BOT: (v417-8656536)

[CL 8676194 by jamie dale in Main branch]
2019-09-13 13:58:36 -04:00
chris babcock
482a857576 Allow optional for alternative login id determination
#android
#rb Pete.Procopio



#ROBOMERGE-SOURCE: CL 8376640 via CL 8376641 via CL 8376642 via CL 8377377 via CL 8380717
#ROBOMERGE-BOT: (v402-8361577)

[CL 8380781 by chris babcock in Main branch]
2019-08-29 19:59:52 -04:00
dmitriy dyomin
14ead86fb3 Fix external texture issues on Android
#rb jack.porter


#ROBOMERGE-SOURCE: CL 8210582 via CL 8210585 via CL 8211298
#ROBOMERGE-BOT: (v401-8057353)

[CL 8211403 by dmitriy dyomin in Main branch]
2019-08-22 10:03:24 -04:00
chris babcock
da8cac0681 Minor performance improvement for logging
#ue4
#android
[at]Pete.Procopio



#ROBOMERGE-SOURCE: CL 8044017 via CL 8044020 via CL 8044753 via CL 8047292
#ROBOMERGE-BOT: (v400-8057353)

[CL 8066732 by chris babcock in Main branch]
2019-08-15 17:11:09 -04:00
allan bentham
20e7df05ac Add logging to gameactivity to help understand why some devices do not properly gather GPU information.
#rb chris.babcock
[FYI] chris.babcock, jack.porter
#rnx


#ROBOMERGE-SOURCE: CL 7920939 via CL 7920941 via CL 7920947 via CL 7922543
#ROBOMERGE-BOT: (v391-7919777)

[CL 7922754 by allan bentham in Main branch]
2019-08-09 07:31:26 -04:00
chris babcock
56acf400ac Move new Samsung IAP checking and commandline handling out of Kairos into classic for Android Q compat
#android
[REVIEW] [at]Pete.Procopio


#ROBOMERGE-SOURCE: CL 7890200 via CL 7890204 via CL 7893018 via CL 7893354 via CL 7917067
#ROBOMERGE-BOT: (v389-7813075)

[CL 7917162 by chris babcock in Main branch]
2019-08-08 23:54:05 -04:00
francois guimond
f170a53413 Make sure Android native input box gets hidden when we dismiss the keyboard
[REVIEW] [at]Chris.Babcock
#rnx



#ROBOMERGE-SOURCE: CL 7709501 via CL 7709502 via CL 7709503 via CL 7710969
#ROBOMERGE-BOT: (v385-7708028)

[CL 7711100 by francois guimond in Main branch]
2019-08-02 18:51:00 -04:00
chris babcock
3bead0546c Fix typo
#jira none
#android
#rb trivial

#ROBOMERGE-SOURCE: CL 7633002 in //UE4/Release-4.23/...
#ROBOMERGE-BOT: RELEASE (Release-4.23 -> Main) (v372-7473910)

[CL 7633003 by chris babcock in Main branch]
2019-07-26 06:52:54 -04:00
chris babcock
4d3264830c Don't try to use NetworkRequest.Builder on KitKat
#jira UE-77848
#ue4
#android
[FYI] Jack.Porter,Pete.Propocio
#rb trivial

#ROBOMERGE-SOURCE: CL 7631293 in //UE4/Release-4.23/...
#ROBOMERGE-BOT: RELEASE (Release-4.23 -> Main) (v372-7473910)

[CL 7631297 by chris babcock in Main branch]
2019-07-25 19:42:22 -04:00
pete procopio
63f56658fd Fix build issue for Android
#jira:None
#android
#kairos


#ROBOMERGE-SOURCE: CL 7617055 via CL 7617484 via CL 7617525 via CL 7625655
#ROBOMERGE-BOT: (v372-7473910)

[CL 7625737 by pete procopio in Main branch]
2019-07-25 10:42:36 -04:00
pete procopio
7d659812df FORT-192662:Add ability to use Launcher ContentProviderand to get CommandLine and Install Type for AppsFlyer
#jira:FORT-192662
#android
#kairos


#ROBOMERGE-SOURCE: CL 7615728 via CL 7616480 via CL 7616516 via CL 7624236
#ROBOMERGE-BOT: (v372-7473910)

[CL 7624414 by pete procopio in Main branch]
2019-07-25 10:21:31 -04:00
chris babcock
6c4f50db59 Fix issue with missing class definition crash on KitKat
#jira UE-77848
#ue4
#android
[FYI] Jack.Porter
#rb trivial

#ROBOMERGE-SOURCE: CL 7614734 in //UE4/Release-4.23/...
#ROBOMERGE-BOT: RELEASE (Release-4.23 -> Main) (v372-7473910)

[CL 7614756 by chris babcock in Main branch]
2019-07-24 15:07:02 -04:00
francois guimond
7d276102ff Scheduled local notifications on Android will now persist across reboots like on iOS.
Commiting changes from post-commit review.
#rnx
#rb Chris.Babcock, Pete.Procopio


#ROBOMERGE-SOURCE: CL 7265680 via CL 7271181
#ROBOMERGE-BOT: (v369-7254125)

[CL 7271330 by francois guimond in Main branch]
2019-07-10 21:32:14 -04:00
ben marsh
15cd51d875 Use standard year range for copyright notice, to fix CIS warning.
#rb none
#rnx
#jira


#ROBOMERGE-SOURCE: CL 7226786 via CL 7226932
#ROBOMERGE-BOT: (v367-6836689)

[CL 7226959 by ben marsh in Main branch]
2019-07-08 09:13:32 -04:00
francois guimond
bfbc151847 Cancel notification if already displayed when calling CancelNotification on Android
#rnx


#ROBOMERGE-SOURCE: CL 7225686 via CL 7225705
#ROBOMERGE-BOT: (v367-6836689)

[CL 7225708 by francois guimond in Main branch]
2019-07-06 18:13:04 -04:00
francois guimond
8a8e42fe2a Scheduled local notifications on Android will now persist across reboots like on iOS.
#rnx


#ROBOMERGE-SOURCE: CL 7224721 via CL 7224759
#ROBOMERGE-BOT: (v367-6836689)

[CL 7224764 by francois guimond in Main branch]
2019-07-05 14:35:32 -04:00