Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

CRC Check

Discussion in 'Addressables' started by HugoClip, Sep 27, 2019.

  1. HugoClip

    HugoClip

    Joined:
    Feb 28, 2018
    Posts:
    37
    This is more or less related to this scenario: https://forum.unity.com/threads/sta...catalog-when-build-for-content-update.703394/

    V1
    catalog

    LocalBundle (contains x1,x2,x3) - CRC 123

    file system
    LocalBundle (contains x1,x2,x3) - CRC 123

    then prepare/build for update and get

    V2
    catalog

    LocalBundle (contains x1,x2) - CRC 456
    UpdateRemoteBundle_898(contains x3)

    file system
    LocalBundle (contains x1,x2,x3) - CRC 123

    When I request x1, it will try to load LocalBundle but the CRC check will fail. I would like to have an integrity check, how do I workaround this besides disabling the CRC.
     
    Last edited: Sep 27, 2019
  2. HugoClip

    HugoClip

    Joined:
    Feb 28, 2018
    Posts:
    37
  3. yinghuizhou1991

    yinghuizhou1991

    Joined:
    Oct 1, 2014
    Posts:
    1
    I had the same problem
     
  4. HugoClip

    HugoClip

    Joined:
    Feb 28, 2018
    Posts:
    37
    @unity_bill I would like an official a response from you to know if you are gonna fix this in a near future.
    If not I have to implement a solution asap.
     
  5. unity_bill

    unity_bill

    Unity Technologies

    Joined:
    Apr 11, 2017
    Posts:
    954
    no, we do not have a solution to this. I'll add it to our backlog, but it'll be at least a month before it's out. Perhaps longer as I haven't weighed it against our other priorities yet.

    The simple solution would be to turn off CRC checking for anything local. I'm not sure why we'd even have it on for local files anyway. I don't think those benefit from it. though I'm not positive on that one.

    Some additional context would help. What platform are you building for?
     
  6. HugoClip

    HugoClip

    Joined:
    Feb 28, 2018
    Posts:
    37
    I guess local bundles can be changed with a modified .apk/.ipa, it would add an extra layer of difficulty to hack the app, not sure but how much though. Anyway I will probably turn off CRC checking for local bundles since the gain is not that great.

    I'm building for iOS and Android.