Advertisement
Guest User

Untitled

a guest
Feb 9th, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ------------------------------------------------------------------------
  2.      Nougat Trim Area PoC kernel image patcher by Munjeni @ 2017
  3. ------------------------------------------------------------------------
  4.  
  5. hash:0xB4582A45 calc_hash:0xB4582A45
  6. hash:0xC5A7007D calc_hash:0xC5A7007D
  7. hash:0x49473BAE calc_hash:0x49473BAE
  8. hash:0x1BE3A3D2 calc_hash:0x1BE3A3D2
  9. device: D5803
  10. serial number: YT9111NXK6
  11. drm key: 0001046B 0010 1D EA 85 89 D1 D3 7A 0A 35 DE 5D 58 CA DD E5 52
  12. Trim area dump is a valid.
  13. Locked bootloader.
  14. Deleting old folder ramdisk if exist...
  15. if exist ramdisk (rd ramdisk /s/q)
  16. returned: 0.
  17. New directory ramdisk created.
  18. Created ouput folder "out"
  19. opening ..\kernel_291_stock.elf
  20. Extracting file ..\kernel_291_stock.elf
  21. ELF magic found
  22. Entry point          : 0x00008000
  23. Class                : 32-bit objects
  24. Program Header start : 0x34
  25. Program Header size  : 0x20
  26. Program Header count : 3
  27.    PH[0], type=1, offset=0x00000094, virtual=0x00008000, phy=0x00008000, size=0x
  28. 0077B8F9
  29.    PH[1], type=1, offset=0x0077B98D, virtual=0x02000000, phy=0x02000000, size=0x
  30. 0034518C
  31.    PH[2], type=1, offset=0x00AC0B19, virtual=0x01E00000, phy=0x01E00000, size=0x
  32. 0003B800
  33. 0. Dumping out/boot.img-zImage
  34. 1. Dumping out/boot.img-ramdisk.gz
  35. 2. Dumping out/boot.img-dt
  36.    Seeking to cmdline address = 0x00AFC321
  37. 3. Dumping cmdline to out/boot.img-cmdline
  38. Done.
  39. No file exist out/kernel_291_stock.elf.elf .
  40. Gunziping...
  41. setting up infflate...
  42. infflating...
  43. infflate returned: 0
  44. gzpipe: ok.
  45. unziped: ok.
  46. Extracting ramdisk.cpio...
  47. Searching for file_contexts...
  48. Found plaintext file_contexts@0644
  49. Patching file "ramdisk/init.sony-platform.rc@0750"
  50. Patching file "ramdisk/init.sony-platform.rc@0750"
  51. Patching file "ramdisk/ueventd.rc@0644"
  52. Patching file "ramdisk/file_contexts@0644"
  53. Create ta scipt.
  54. Create busybox.
  55. TA.img (..\ta_backups\TA.img) installed.
  56. Making sepolicy backup: ramdisk/backupsepolicy@0644
  57. Patching sepolicy...
  58. libsepol.policydb_index_others: security:  1 users, 2 roles, 1159 types, 0 bools
  59.  
  60. libsepol.policydb_index_others: security: 1 sens, 1024 cats
  61. libsepol.policydb_index_others: security:  87 classes, 12682 rules, 0 cond rules
  62.  
  63. Success
  64. libsepol.policydb_index_others: security:  1 users, 2 roles, 1159 types, 0 bools
  65.  
  66. libsepol.policydb_index_others: security: 1 sens, 1024 cats
  67. libsepol.policydb_index_others: security:  87 classes, 12682 rules, 0 cond rules
  68.  
  69. Success
  70. libsepol.policydb_index_others: security:  1 users, 2 roles, 1159 types, 0 bools
  71.  
  72. libsepol.policydb_index_others: security: 1 sens, 1024 cats
  73. libsepol.policydb_index_others: security:  87 classes, 12683 rules, 0 cond rules
  74.  
  75. Success
  76. libsepol.policydb_index_others: security:  1 users, 2 roles, 1159 types, 0 bools
  77.  
  78. libsepol.policydb_index_others: security: 1 sens, 1024 cats
  79. libsepol.policydb_index_others: security:  87 classes, 12684 rules, 0 cond rules
  80.  
  81. Success
  82. libsepol.policydb_index_others: security:  1 users, 2 roles, 1159 types, 0 bools
  83.  
  84. libsepol.policydb_index_others: security: 1 sens, 1024 cats
  85. libsepol.policydb_index_others: security:  87 classes, 12684 rules, 0 cond rules
  86.  
  87. Success
  88. libsepol.policydb_index_others: security:  1 users, 2 roles, 1159 types, 0 bools
  89.  
  90. libsepol.policydb_index_others: security: 1 sens, 1024 cats
  91. libsepol.policydb_index_others: security:  87 classes, 12685 rules, 0 cond rules
  92.  
  93. Success
  94. libsepol.policydb_index_others: security:  1 users, 2 roles, 1159 types, 0 bools
  95.  
  96. libsepol.policydb_index_others: security: 1 sens, 1024 cats
  97. libsepol.policydb_index_others: security:  87 classes, 12686 rules, 0 cond rules
  98.  
  99. Success
  100. libsepol.policydb_index_others: security:  1 users, 2 roles, 1159 types, 0 bools
  101.  
  102. libsepol.policydb_index_others: security: 1 sens, 1024 cats
  103. libsepol.policydb_index_others: security:  87 classes, 12686 rules, 0 cond rules
  104.  
  105. Success
  106. libsepol.policydb_index_others: security:  1 users, 2 roles, 1159 types, 0 bools
  107.  
  108. libsepol.policydb_index_others: security: 1 sens, 1024 cats
  109. libsepol.policydb_index_others: security:  87 classes, 12687 rules, 0 cond rules
  110.  
  111. Success
  112. libsepol.policydb_index_others: security:  1 users, 2 roles, 1159 types, 0 bools
  113.  
  114. libsepol.policydb_index_others: security: 1 sens, 1024 cats
  115. libsepol.policydb_index_others: security:  87 classes, 12688 rules, 0 cond rules
  116.  
  117. Success
  118. Runing user script...
  119. this is output from the user example script "script.bat"
  120. you can make your own script! See "script.bat" for idea!
  121. Your ramdisk path is "ramdisk"
  122. script must return 0 for success!
  123. Pausing form script...
  124. Aby kontynuować, naciśnij dowolny klawisz . . .
  125. you are now in busybox, type help and press enter for list of busybox commands
  126. to quit from busybox type exit 0 and press enter
  127. d:/kernel_work/ta_poc_munjeni $ exit 0
  128. script.bat ramdisk
  129. returned: 0.
  130. Repacking ramdisk...
  131. ramdisk.cpio done.
  132. Making ramdisk.gz
  133. defflating...
  134. defflate returned: 0
  135. setting up infflate...
  136. infflating...
  137. infflate returned: 0
  138. gzpipe: ok.
  139. gzip: ok.
  140. ramdisk.gz done.
  141. Found kernel dt.
  142. Found QCDT magic string.
  143. Packing new_boot.img
  144. cmdline="console=ttyHSL0,115200,n8 androidboot.hardware=qcom user_debug=23 msm_r
  145. tb.filter=0x3b7 ehci-hcd.park=3 androidboot.bootdevice=msm_sdcc.1 vmalloc=300M d
  146. wc3.maximum_speed=high dwc3_msm.prop_chg_detect=Y"
  147. base="0x00000000"
  148. pagesize="4096"
  149. ramdiskoff="0x02000000"
  150. tagsoff="0x01e00000"
  151. making new_boot.img
  152. new_boot.img created.
  153. Done.
  154.  
  155. Aby kontynuować, naciśnij dowolny klawisz . . .
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement