Search Issue Tracker
Fixed in 2022.2.17f1
Fixed in 2022.2.X, 2023.1.X, 2023.2.X, 2023.2.0a6
Votes
0
Found in
2022.2.8f1
2023.1.0b5
2023.2.0a5
Issue ID
UUM-28376
Regression
Yes
Application is not updated on device when it's signed with a different key. --fastdeploy issue
To reproduce:
- Open attached Unity project
- adb install Empty.apk attached to this ticket (you can do it, by opening logcat package, tools->open terminal->adb install <path_to_emty.apk>
- In SampleScene->MainCamera, change Background color to something else, for ex., Red
- Build & Run from Unity to Android device (it will attempt to install the package with the same name, but different key)
- Nothing will start on the device and there's no error in Console, if it will start, the background color will not be Red, meaning the old package was used
- That's the issue, fastdeploy fails to install the app and doesn't report any errors
Actual Result: The app is not installed and no error is printed
Expected Result: The is not installed, error is printed to console with the reason why it wasn't installed "Unable to install APK to device. "
Note: If you'll attempt to do normal adb install with apk produced by editor you'll get
{code:java}
E:\Projects\unityv5\External\NonRedistributable\Android sdk\builds\platform-tools>adb install D:\UnityProjects\Empty\a.apk
Performing Streamed Install
adb: failed to install D:\UnityProjects\Empty\a.apk: Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE: Package com.DefaultCompany.Empty signatures do not match previously installed version; ignoring!]
{code}
Workaround: uninstall the app from the device after changing the keystore / key or building from the different computer than before.
There's a ticket on Google's issue tracker - [https://partnerissuetracker.corp.google.com/u/1/issues/236615033,] where they said:
"After discussions internally we can acknowledge that this functionality is currently not working as expected. However we have no timeline for any remedy to this situation and in the meantime advise Unity not to use this functionality."
Comments (1)
-
xd-unitydeveloper12
Nov 29, 2023 05:09
Is this setting (--fastdeploy) may affect similary on version 2022.3.10? After new release, almost all users with Samsung phones can't update app. Works only after reinstall.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Object Selector becomes unresponsive when selecting root UI Document as Data Source for Add Binding in UI Builder
- Search #Light.m_Shadows.m_Type query block does not detect default Light objects in Scene unless they were modified
- Shader Graph "Create Node" menu has a doubled text in search when the text was deleted replaced to the space and then the exact same text was entered
- Multiple non interactable Worker Processes are active when calling undelayed editor processes in the InitializeOnLoadMethod
- Rotate tool rotates to incorrect values when enabling snapping while rotating in Global Tool Handle
Resolution Note (fix version 2023.2):
Disable --fastdeploy during application installation, since in some cases it doesn't work correctly.