[Galaxy S 4 Developer Discussion [Developers-Only]] micahcc:
N5110 4.2.2 libWFD_ENGINE.so

Android Version: 4.2.2

Build number N5110xxcmi1

Rom: CivZ_FlexBeam

Attached: LibWFD_ENGINE.so before and after modification

also attached: the IDAPRO: edit instruction. spent me ages to find out i need to check the "load resources" option.

good luck.

Note 8

0000ed32 CBNZ RO, loc_D3CC

30 B9 -> 00 20

000200ec LDR R3, [R7]

3B 68 -> 00 23

00023fc4 CMP R0, #0

3B 68 -> 10 28

more info:

------Info---

;////// differences 1 ////////////

.text:0000D5EC BLX property_get

.text:0000D5F0 CMP R0, #0

.text:0000D5F2 BLE loc_D610

.text:0000D5F4 LDR.W R1, =(aDisable - 0xD5FE)

.text:0000D5F8 ADD R0, SP, #0x628+s1 ; s1

.text:0000D5FA ADD R1, PC ; "disable"

.text:0000D5FC BLX strcasecmp

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

.text:0000D600 CBNZ R0, loc_D610 ;; 30 B9 --> 0x0d608

.text:0000D600 MOVS R0, #0	;; 00 20

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

.text:0000D602 LDR.W R1, =(aWfd_rtsp - 0xD60E)

.text:0000D606 MOVS R0, #4

.text:0000D608 LDR R2, =(aContentProtect - 0xD610)

.text:0000D60A ADD R1, PC ; "WFD_Rtsp"

.text:0000D60C ADD R2, PC ; "content protection skip"

.text:0000D60E B loc_D75C

;////// differences 2 ////////////

.text:0001BD38 BLX strcpy

.text:0001BD3C MOVW R3, #0x4A38

.text:0001BD40 ADDS R0, R3, #2

.text:0001BD42 MOVW R1, #0x404

.text:0001BD46 MOVW R2, #0x405

.text:0001BD4A STR R1, [R4,#0x70]

.text:0001BD4C STR R2, [R4,#0x74]

.text:0001BD4E STR.W R3, [R4,#0x80]

.text:0001BD52 ADDS R3, R0, #2

.text:0001BD54 STR.W R0, [R4,#0x84]

.text:0001BD58 MOVS R0, #2

.text:0001BD5A STR R5, [R4,#0x4C]

.text:0001BD5C STR.W R3, [R4,#0x8C]

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

.text:0001BD60 LDR R3, [R7] ;; 3B 68 --> 0x1BE2C

.text:0001BD60 MOVS R3, #0 ;; 00 23

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

.text:0001BD62 STMEA.W SP, {R1,R2}

.text:0001BD66 MOV R1, R6

.text:0001BD68 LDR R2, =(aHdcp0Normal1Hd - 0x1BD70)

.text:0001BD6A STR R3, [R4,#0x78]

.text:0001BD6C ADD R2, PC ; "hdcp (0:normal, 1: hdcp): %d, rtp port["...

.text:0001BD6E STR R5, [R4,#0x7C]

.text:0001BD70 STR.W R9, [R4,#0x88]

.text:0001BD74 BLX __android_log_print

;////// differences 3 ////////////

.text:0001FC56 ; ---------------------------------------------------------------------------

.text:0001FC56

.text:0001FC56 loc_1FC56 ; CODE XREF: sub_1FA40+3Ej

.text:0001FC56 CMP R4, #0

.text:0001FC58 BEQ.W loc_1FD68

.text:0001FC5C LDR R2, [R4]

.text:0001FC5E STR R2, [SP,#0x38+var_2C]

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

.text:0001FC60 CMP R2, #0	;; 00 2A --> 0x1FD50

.text:0001FC60 CMP R0, #0x10	;; 10 28

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

.text:0001FC62 BNE.W loc_1FD68

.text:0001FC66 LDR R0, =(dword_3A7AC - 0x1FC6C)

.text:0001FC68 ADD R0, PC ; dword_3A7AC

.text:0001FC6A LDR R1, [R0]

.text:0001FC6C CMP R1, #1

.text:0001FC6E BNE loc_1FD68

.text:0001FC70 LDR R1, =(aWfdnativecpp - 0x1FC7C)

.text:0001FC72 MOVS R0, #4

.text:0001FC74 LDR R2, =(aThisCaseIsConn - 0x1FC7E)

.text:0001FC76 LDR R6, =(dword_3A7F8 - 0x1FC84)

.text:0001FC78 ADD R1, PC ; "WFDNativeCPP"

.text:0001FC7A ADD R2, PC ; "This case is connected with non-HDCP do"...

.text:0001FC7C BLX __android_log_print

.text:0001FC80 ADD R6, PC ; dword_3A7F8

.text:0001FC82 B loc_1FC46

.text:0001FC84 ; ---------------------------------------------------------------------------