Search Issue Tracker

Fixed in 2021.2.X

Votes

0

Found in

2020.2.0a12

2020.3

2020.3.11f1

2021.1

2021.2

Issue ID

1347178

Regression

Yes

[IL2CPP][Android] App crashes on launch when patch obb file is pushed

Android

-

How to reproduce:
1. Open the attached project "1347178.zip"
2. Open Build Settings and change to Android platform
3. Make sure that "IL2CPP" Scripting Backend and Split Application Binary is enabled in Project Settings
4. In Build Settings, press Build and save as "test.apk"
5. Through the File Explorer navigate to the project folder
6. Make copy of "test.main.obb" and rename it to "test.patch.obb"
7. Open the newly built "test.patch.obb" with any file compression program
8. Delete the 'Assets/Bin' folder
9. Open a terminal
10. Run the following ADB commands:
a. adb install -r "apk path"
b. adb push <test.main.obb path> /storage/self/primary/Android/obb/com.testObb.testObb/main.1.com.testObb.testObb.obb
c. adb push <test.patch.obb path> /storage/self/primary/Android/obb/com.testObb.testObb/patch.1.com.testObb.testObb.obb

Expected result: The app opens without crashing
Actual result: The app crashes

Reproducible with: 2020.2.0a12, 2020.3.17f1, 2021.1.19f1, 2021.2.0a17
Not reproducible with: 2019.4.30f1, 2020.2.0a11, 2021.2.0a18, 2021.2.0b10, 2022.1.0a8

Reproducible on:
VLNQA00288, Samsung Galaxy J7 (SM-J730F), Android 8.1.0, CPU: Exynos 7 Octa 7870, GPU: Mali-T830
VLNQA00022, Xiaomi Redmi Note 3 (Redmi Note 3), Android 6.0.1, CPU: Snapdragon 617 MSM8952, GPU: Adreno (TM) 510
VLNQA00001, Google Pixel 2 (Pixel 2), Android 11, CPU: Snapdragon 835 MSM8998, GPU: Adreno (TM) 540
VLNQA00316, Samsung Galaxy Note10 (SM-N970F), Android 9, CPU: Exynos 9 Series 9825, GPU: Mali-G76
VLNQA00225, Qualcomm null (SDM845 for arm64), Android 8.1.0, CPU: Snapdragon 845 SDM845, GPU: Adreno (TM) 630

Note:
- In Unity 2021.2.0b10 and 2022.1.0a8, obb file has different contents (only bin folder in assets folder)
- Does not reproduce if the app is opened before pushing "test.patch.obb"

  1. Resolution Note (fix version 2021.2):

    Fixed in: 2021.2.0a18

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.