[Android Software Development] a13x501:
DTV>u

[H-CheckUpgrade]Read flag u1fgAPForceUpdate = 2!

[H-CheckUpgrade]Set u1fgAPForceUpdate =1

Do USB upgrade

hs>>in-upgrade

[H]WakeupReason = 3

u1USBBlock = 0x01d0ab80

USB: Vbus turn up time = 11871 ms, Max =0 ms.

USB-0: insert.

Device High speed.

MGC_HostEnumerator:MGC_EnumStateGetMaxDevice

HubPort-0: Device reset.

Silent Reset: Root device = 0x01d0bb84, Reset.

MGC_HostEnumerator:MGC_EnumStateReset

HubPort-0: Device address = 1.

MGC_HostEnumerator:MGC_EnumStateSetAddress

MGC_HostEnumerator:MGC_EnumStateGetFullDevice

HubPort-0: idVendor = 0x0951.

HubPort-0: idProduct = 0x1613.

HubPort-0: bcdDevice = 0x0110.

MGC_HostEnumerator:MGC_EnumStateGetFullDevice

HubPort-0: Lang Id: 0x409.

MGC_HostEnumerator:MGC_EnumStateGetFullDevice

HubPort-0: Manufacturer: Kingston.

MGC_HostEnumerator:MGC_EnumStateGetFullDevice

HubPort-0: Product: DT 101 II.

MGC_HostEnumerator:MGC_EnumStateGetFullDevice

HubPort-0: SerialNum: 5B871400022A.

MGC_HostEnumerator:MGC_EnumStateSizeConfigs

MGC_HostEnumerator:MGC_EnumStateGetConfigs

MGC_HostEnumerator:MGC_EnumStateConnectDevice

USB Enumerator: find device driver

MGC_HostFindDriver:++

MUSB_TARGET_CLASS case 2:bMatch =1, 0x0,0x0

MUSB_TARGET_CLASS case1:bMatch =1,0x8,0x8

MUSB_TARGET_ACCEPT:bMatch = 1

HubPort-0: Driver support, class = 0x8.

USB Enumerator: Driver support

HubPort-0: Device is accepted.

HubPort-0: Device is accepted.

MGC_HostEnumerator:Connect device complete, bRet=1

MGC_HostEnumerator: break connect device

USB-0: ClassCode= 0x8, u4Diff=239 ms.

MUSB_GetInsert return 1

FIND_CLASS_MASS_STORAGE.

Wait USB medium to be mounted...

LUN = 0-1.

vid = 0x0951, pid = 0x1613, bMediumStatus = 0.

LUN = 0-1.

ID = KingstonDT 101 II PMAP. [RW].

Block size = 512 bytes, Total size = 7646 Mbytes.

MUSB_HfiMediumInserted().

USB Medium on Device, Time = 1742 ms.

USB block size = 512 bytes.

/dev is created.

/mnt is already existed. That is OK.

/dev/usb is created.

/mnt/usb_0 is created.

/dev/usb_0 is mounted as /mnt/usb_0.

[H]Serial product name:Id=27,str=SA5600H,Len=32

[H-ReadTVSerialModel]Tv Serial Model name pkg: usb_SA5600H.pkg

====

[H]Find PKG -> path name: /mnt/usb_0/usb_SA5600H.pkg

Use internal integrity check API

open File = /mnt/usb_0/usb_SA5600H.pkg

Header encrypt by AES

Header :

d7 d2 f5 90 ad 28 09 38 12 37 e5 ac fc f4 fa ba .....(.8.7......

35 8a c0 17 60 ee 85 33 6a 0c 63 9b 8c 64 f7 2d 5...`..3j.c..d.-

bf 86 d7 a5 62 5f e1 b3 aa 50 62 76 a5 f7 f7 5f ....b_...Pbv..._

85 01 fa 58 8b ee 01 89 45 2c ab 27 10 1c ca 79 ...X....E,.'...y

c9 ff 02 07 9e 4b a3 d4 a1 05 c9 67 11 46 e9 69 .....K.....g.F.i

fc 5d 6a b4 fb 9f ad d7 a3 db d0 b8 72 e5 5f 47 .]j.........r._G

c9 b5 ee df e6 1c 06 fd 6e 21 f4 78 85 b0 cd 04 ........n!.x....

Header :

68 69 73 65 23 44 48 40 46 69 52 6d 53 41 35 36 hise#DH@FiRmSA56

30 30 48 31 00 00 00 00 00 00 00 00 00 00 00 00 00H1............

00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

00 00 00 00 00 00 00 00 ed 1a 40 1f 00 00 00 00 ..........@.....

6d 74 35 38 36 33 5f 73 61 5f 37 36 38 5f 6c 69 mt5863_sa_768_li

6e 75 78 00 00 00 00 00 00 00 00 00 00 00 00 00 nux.............

open File = /mnt/usb_0/usb_SA5600H.pkg

Encrypted header:

d7 d2 f5 90 ad 28 09 38 12 37 e5 ac fc f4 fa ba .....(.8.7......

35 8a c0 17 60 ee 85 33 6a 0c 63 9b 8c 64 f7 2d 5...`..3j.c..d.-

bf 86 d7 a5 62 5f e1 b3 aa 50 62 76 a5 f7 f7 5f ....b_...Pbv..._

85 01 fa 58 8b ee 01 89 45 2c ab 27 10 1c ca 79 ...X....E,.'...y

c9 ff 02 07 9e 4b a3 d4 a1 05 c9 67 11 46 e9 69 .....K.....g.F.i

fc 5d 6a b4 fb 9f ad d7 a3 db d0 b8 72 e5 5f 47 .]j.........r._G

c9 b5 ee df e6 1c 06 fd 6e 21 f4 78 85 b0 cd 04 ........n!.x....

Header:

68 69 73 65 23 44 48 40 46 69 52 6d 53 41 35 36 hise#DH@FiRmSA56

30 30 48 31 00 00 00 00 00 00 00 00 00 00 00 00 00H1............

00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................

00 00 00 00 00 00 00 00 ed 1a 40 1f 00 00 00 00 ..........@.....

6d 74 35 38 36 33 5f 73 61 5f 37 36 38 5f 6c 69 mt5863_sa_768_li

6e 75 78 00 00 00 00 00 00 00 00 00 00 00 00 00 nux.............

Model_name=SA5600H1

[H]Get this PKG product name: usb_SA5600H1.pkg

[H-MorePkgDetect]The can not find available upgrade files

[H-UsbUpgrade] IsHaveUpgradeFile = 1

Error: No valid upgrade file found or found more than 2 avliable upgrade files, USB upgrade stop

hs>>upgrade-err-USB upgrade stop

[HI]Set Clean block empty status 0.

Apparently this serves only to identify that the file is adequate to be able to use it in the firmware update, it is a check who can make a decoder AND encoder with the AES key to verify that you can use another file by just changing the first lines

(hise # DH @ FiRmSA5600h1) by (hise # DH @ FiRmSA5600h)