Jump to content
XPEnology Community

Wheeler

Rookie
  • Posts

    2
  • Joined

  • Last visited

Posts posted by Wheeler

  1. On 6/25/2023 at 6:01 AM, wangsiji said:

    For 7.2 you may try this one (downloaded from https://mi-d.cn/d/ame72-3005.py , originating from

     

    import hashlib
    import os
    
    r = ['669066909066906690', 'B801000000', '30']
    s = [(0x3718, 0), (0x60A5, 1), (0x60D1, 1), (0x6111, 1), (0x6137, 1), (0xB5F0, 2)]
    
    prefix = '/var/packages/CodecPack/target/usr'
    so = prefix + '/lib/libsynoame-license.so'
    
    print("Patching")
    with open(so, 'r+b') as fh:
        full = fh.read()
        if hashlib.md5(full).digest().hex() != '09e3adeafe85b353c9427d93ef0185e9':
            print("MD5 mismatch")
            exit(1)
        for x in s:
            fh.seek(x[0] + 0x8000, 0)
            fh.write(bytes.fromhex(r[x[1]]))
    
    lic = '/usr/syno/etc/license/data/ame/offline_license.json'
    os.makedirs(os.path.dirname(lic), exist_ok=True)
    with open(lic, 'w') as licf:
        licf.write('[{"attribute": {"codec": "hevc", "type": "free"}, "status": "valid", "extension_gid": null, "expireTime": 0, "appName": "ame", "follow": ["device"], "duration": 1576800000, "appType": 14, "licenseContent": 1, "registered_at": 1649315995, "server_time": 1685421618, "firstActTime": 1649315995, "licenseCode": "0"}, {"attribute": {"codec": "aac", "type": "free"}, "status": "valid", "extension_gid": null, "expireTime": 0, "appName": "ame", "follow": ["device"], "duration": 1576800000, "appType": 14, "licenseContent": 1, "registered_at": 1649315995, "server_time": 1685421618, "firstActTime": 1649315995, "licenseCode": "0"}]')
    
    
    print("Checking whether patch is successful...")
    ret = os.system(prefix + "/bin/synoame-bin-check-license")
    if ret == 0:
        print("Successful, updating codecs...")
        os.system(prefix + "/bin/synoame-bin-auto-install-needed-codec")
        print("Done")
    else:
        print(f"Patch is unsuccessful, retcode = {ret}")

     

    Just upgraded from 7.1.1 update 5 to 7.21 update 4.

    Patching AME with this script worked fine: thanks @wangsiji !

  2. - Outcome of the update: SUCCESSFUL

    - DSM version prior update: DSM 7.1.1 DS920+

    - DSM version AFTER update: DSM 7.2.1-69057 Update 4 - DS920+

    - Loader version and model: arpl-i18n-23.10.4

    - Using custom extra.lzma: NO

    - Installation type: BAREMETAL - Odroid H3

    - Additional comments: Just choose version 7.2 and the latest build is installed.

×
×
  • Create New...