Pages

Monday, September 08, 2014

Filled Under:

HOW TO disable system write protection (android)

[MOD][KERNEL MODULE] wp_mod: disable system write protection
READ CAREFULLY LEST YOU DAMAGE YOUR PHONE!

wp_mod: Module to disable system write protection
This is a kernel module that disables write protection on the system partition while running the stock kernel.


I do not have the Desire 816, I have the HTC One (m8). It should work on this device as well.


HTC changed the MMC_MUST_PREVENT_WP_VIOLATION code to make it much harder to crack. I had to redo the module completely, so this is experimental. In the past, it was a simple matter of changing a variable, now we have to replace a function in the kernel so it returns something different, causing the kernel to skip over the write protection code.


So far I have not found any problems.


DO NOT attempt to load the module after attempting to make changes to the system partition. It could end up corrupting the filesystem. If the module is loaded at boot, there should be no worries.


This module will probably need to be updated to load with future kernels when they are released. you can download it here


Download: wp_mod.ko


Installation:
Wait for it to be implemented in your favourite ROM * or * Copy the module to your device, and type Code: su insmod /location-where-you-copied-it/wp_mod.ko

Changes:
April 2, 2014 - wp_mod 4.1 -only return non-existing partition number if called by generic_make_request_checks -remove exit from module (we don't want to be able to unload it) -clean up code March 31, 2014 - wp_mod 4.0 -new method for HTC One m8 Source: https://github.com/flar2/wp_mod

1 comments:

  1. where do I type the code: su insmod /location-where-you-copied-it/wp_mod.ko

    ReplyDelete

Post your comment here, ask any question