scripts/update/hook_durian_update_locationd.js
/*
    Call a firmware update. Requires that everything is already unpacked.
    Probably only useful for extensive firmware update testing.
    */
Call a firmware update. Requires that everything is already unpacked.
Probably only useful for extensive firmware update testing.
Call a firmware update . Requires that everything is already unpacked . Probably only useful for extensive firmware update testing .
triggerFirmwareUpdate() {
        var self = this;
        var {CLDurianService} = ObjC.classes;
        var {NSURL} = ObjC.classes;
        var url = NSURL['fileURLWithPath:']('/private/var/MobileAsset/AssetsV2/com_apple_MobileAsset_MobileAccessoryUpdate_DurianFirmware/eba889b5f77e7aa5fb27e24adcf44b20a62c6dc1.asset/AssetData/DurianFirmware.acsw/');
        console.log(url);
        CLDurianService['- updateFirmwareForDevice:withAssetURL:forClient:'](self.durian_device, url, self.durian_client);
    }
triggerFirmwareUpdate ( ) { var self = this ; var { CLDurianService } = ObjC . classes ; var { NSURL } = ObjC . classes ; var url = NSURL [ 'fileURLWithPath:' ] ( '/private/var/MobileAsset/AssetsV2/com_apple_MobileAsset_MobileAccessoryUpdate_DurianFirmware/eba889b5f77e7aa5fb27e24adcf44b20a62c6dc1.asset/AssetData/DurianFirmware.acsw/' ) ; console . log ( url ) ; CLDurianService [ '- updateFirmwareForDevice:withAssetURL:forClient:' ] ( self . durian_device , url , self . durian_client ) ; }
Call a firmware update.
Call a firmware update .
// TODO causes an abort, doesn't work :(