Closed brandonpage closed 1 month ago
3 Warnings | |
---|---|
:warning: | libs/SalesforceSDK/src/com/salesforce/androidsdk/ui/LoginActivity.kt#L192 - Using setJavaScriptEnabled can introduce XSS vulnerabilities into your application, review carefully |
:warning: | libs/SalesforceSDK/src/com/salesforce/androidsdk/ui/OAuthWebviewHelper.kt#L209 - Using setJavaScriptEnabled can introduce XSS vulnerabilities into your application, review carefully |
:warning: | libs/SalesforceSDK/src/com/salesforce/androidsdk/ui/ServerPickerActivity.java#L238 - The indentation string here is different from on the previous line (" " vs \t ) |
Generated by :no_entry_sign: Danger
Attention: Patch coverage is 14.28571%
with 6 lines
in your changes missing coverage. Please review.
Please upload report for BASE (
dev@f8f6289
). Learn more about missing BASE report. Report is 2275 commits behind head on dev.
IDP flows work on Android 15 and even (when both apps are within a) Private Space. I did notice an error when doing the flows inside a Private Space:
E Failed to retrieve application info (Ask Gemini)
android.content.pm.PackageManager$NameNotFoundException: Package com.salesforce.samples.restexplorer not found for user 10
at android.content.pm.LauncherApps.getApplicationInfo(LauncherApps.java:1315)
at com.google.android.gms.internal.wear_companion.zzfzj.zzc(com.google.android.libraries.wear.companion:wear-companion-android@@2.29.0:13)
at com.google.android.gms.internal.wear_companion.zzevw.zza(com.google.android.libraries.wear.companion:wear-companion-android@@2.29.0:255)
at com.google.android.gms.internal.wear_companion.zzepo.zzz(com.google.android.libraries.wear.companion:wear-companion-android@@2.29.0:61)
at com.google.android.gms.internal.wear_companion.zzepo.zzB(com.google.android.libraries.wear.companion:wear-companion-android@@2.29.0:74)
at com.google.android.gms.internal.wear_companion.zzepo.zzg(com.google.android.libraries.wear.companion:wear-companion-android@@2.29.0:27)
at com.google.android.gms.internal.wear_companion.zzeox.run(com.google.android.libraries.wear.companion:wear-companion-android@@2.29.0:9)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
at java.lang.Thread.run(Thread.java:1012)
Maybe this is because the Pixel Watch App is installed in (and can't be removed from ?!?) the Private Space? Figured it was worth mentioning.
This PR covers supporting Android 15 devices prior to apps updating to API 35. I will follow up with a Part 2 that fixes issues and makes necessary improvements for apps targeting API 35.
Changes:
onDestroy
so that it happens no matter what.All aspects of the SDK seem to work fine in Private Spaces and I have found no indication we have Android for Work logic that needs to be updated take this into account.
The only thing left to test here is IDP within a Private Space, which I am setting up now.Edit: Working!I tested Support for 16 KB page size with somewhat confusing results on an emulator. My concern was SQLCipher, but it was updated to support 16 KB page size in the version we are currently using (4.6.1). Login an sync worked fine but it crashed with an error that didn't make much sense not long after. I will test again on a physical Pixel 8 Pro after I upgrade it to Android 15. However, this is still an experimental feature and I don't think we necessarily need to support it now.