Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,814,562 Members 53,878 Now Online
XDA Developers Android and Mobile Development Forum

[Guide] How to have write protection disabled on boot with stock rom

Tip us?
 
graffixnyc
Old
(Last edited by graffixnyc; 2nd April 2014 at 05:10 PM.)
#1  
graffixnyc's Avatar
Forum Moderator / Recognized Developer - OP
Thanks Meter 4,721
Posts: 5,528
Join Date: Jan 2011
Location: New York City

 
DONATE TO ME
Default [Guide] How to have write protection disabled on boot with stock rom

For this to work you will need to be rooted with twrp installed.

This is for people who are on the stock rom or a rom without init.d support.

1. Download the wp_mod.ko file from @flar2's thread http://forum.xda-developers.com/show....php?t=2701816
and copy it over to your SD card (either internal or external)

2. Boot into twrp


3. Select the "Mount" option on the main menu and tick system

4. Go back to the main menu and then go into the "Advanced" option. There will be a "File Manager" option

5. Navigate to the folder you saved the .ko file in and copy it (just touch the file and it will bring up the menu)

6. now navigate to /system/lib/modules and copy the file there by hitting the "select" button on the bottom right.

7. Navigate to /system/lib/modules and insure the file is there. Now touch it to bring up the menu. select "Chmod" option and enter in 644

8. reboot the device

9. Once booted fully open up Terminal emulator and type:

su
insmod /system/lib/modules/wp_mod.ko

10. Once that's done open up a file manager app with root access and mount as r/w and navigate to /system/etc and look for the file install-recovery.sh

11. edit the file using a text editor, adding the line insmod /system/lib/modules/wp_mod.ko towards the bottom of the file

12. reboot and enjoy r/w on boot without running the command every time

13. profit

One day some of the kids from the neighborhood carried my mother's groceries all the way home. You know why? It was outta respect." -Henry Hill

Devices:
 


Current Phones:
HTC One M8 Gray 32GB + 128GB SD
Oppo Find 7a 16GB + 64GB Card
OnePlus One

Current Tablets:
Sony Z Ultra GPe (Phone but use as a tablet)
Samsung Galaxy Note 10.1 2014 Edition 32gb


All new members should watch this:
http://www.youtube.com/watch?v=JmvCpR45LKA


Follow me on twitter! http://www.twitter.com/graffixnyc

G+: http://gplus.to/graffixnyc
The Following 20 Users Say Thank You to graffixnyc For This Useful Post: [ Click to Expand ]
 
rafine1234
Old
#2  
Member
Thanks Meter 3
Posts: 52
Join Date: Sep 2012
is this like being s-off, without being actually s-off
 
metalfan78
Old
#3  
metalfan78's Avatar
Senior Member
Thanks Meter 1,644
Posts: 3,889
Join Date: Jan 2010
Location: Littleton, CO
Not entirely, you will be able to make changes to system files while booted but you won't be able to flash fastboot zips like s-off
 
akitten007
Old
(Last edited by akitten007; 17th May 2014 at 05:16 PM.)
#4  
akitten007's Avatar
Senior Member
Thanks Meter 24
Posts: 147
Join Date: May 2011
Or you could flash this kernel.... http://forum.xda-developers.com/show....php?t=2705074
And yes it does work on stock
HTC One M8 running stock(current)
SGS III running Quantum by pwncakes (old and sold)
Moto Atrix 4g running Neutrino(older)
Samy Captivate (paperweight )
 
silver2706
Old
#5  
Senior Member
Thanks Meter 278
Posts: 641
Join Date: May 2011
Location: Mumbai
What abt using SdFix app from google play store..??

Sent from my HTC D816w using XDA Premium 4 mobile app
 
mindmajick
Old
#6  
mindmajick's Avatar
Senior Member
Thanks Meter 2,913
Posts: 3,569
Join Date: Nov 2010
Location: Cape Coral, FL

 
DONATE TO ME
Quote:
Originally Posted by silver2706 View Post
What abt using SdFix app from google play store..??

Sent from my HTC D816w using XDA Premium 4 mobile app
that will only work to repair writing to SD CARD. This fix is for writing to the system.

Personally... If you can get s off.. I would do so. Makes life easier in the long run.

-》Sent from my mind to your screen.
The Following User Says Thank You to mindmajick For This Useful Post: [ Click to Expand ]
 
silver2706
Old
#7  
Senior Member
Thanks Meter 278
Posts: 641
Join Date: May 2011
Location: Mumbai
insmod /system/lib/modules/wp_mod.ko failed [File exists]

Wht does it mean..?
 
ghani.911
Old
#8  
Member
Thanks Meter 3
Posts: 33
Join Date: Mar 2012
Will it work in my HTC One M7?
 
chrisnz1947
Old
#9  
Member
Thanks Meter 1
Posts: 99
Join Date: Feb 2008
Location: Melbourne
Default system r/w on a htc one developer edition

Quote:
Originally Posted by graffixnyc View Post
For this to work you will need to be rooted with twrp installed.

This is for people who are on the stock rom or a rom without init.d support.

1. Download the wp_mod.ko file from @flar2's thread http://forum.xda-developers.com/show....php?t=2701816
and copy it over to your SD card (either internal or external)

2. Boot into twrp


3. Select the "Mount" option on the main menu and tick system

4. Go back to the main menu and then go into the "Advanced" option. There will be a "File Manager" option

5. Navigate to the folder you saved the .ko file in and copy it (just touch the file and it will bring up the menu)

6. now navigate to /system/lib/modules and copy the file there by hitting the "select" button on the bottom right.

7. Navigate to /system/lib/modules and insure the file is there. Now touch it to bring up the menu. select "Chmod" option and enter in 644

8. reboot the device

9. Once booted fully open up Terminal emulator and type:

su
insmod /system/lib/modules/wp_mod.ko

10. Once that's done open up a file manager app with root access and mount as r/w and navigate to /system/etc and look for the file install-recovery.sh

11. edit the file using a text editor, adding the line insmod /system/lib/modules/wp_mod.ko towards the bottom of the file

12. reboot and enjoy r/w on boot without running the command every time

13. profit

HI, I have an HTC One m8 developer edition
Phone details and software levels.
Model HTC One M8
Android 4.4.2
HTC sense 6.0
Software 1.54.1540.9
HTC SDK API level 6.17

I have being trying to set the r/w on system but with no success. I have followed instructions in several items in XDA and none of these have worked. I tried your method, but when finally I reboot and run root explorer I still see the folders mounted as r/o..
the .ko file is in the correct directory and install-recovery.sh is correctly modified.

Any help/assistance would be appreciated.
 
ghani.911
Old
#10  
Member
Thanks Meter 3
Posts: 33
Join Date: Mar 2012
Default Unable to write system files in HTC One M7

Quote:
Originally Posted by graffixnyc View Post
For this to work you will need to be rooted with twrp installed.

This is for people who are on the stock rom or a rom without init.d support.

1. Download the wp_mod.ko file from @flar2's thread http://forum.xda-developers.com/show....php?t=2701816
and copy it over to your SD card (either internal or external)

2. Boot into twrp


3. Select the "Mount" option on the main menu and tick system

4. Go back to the main menu and then go into the "Advanced" option. There will be a "File Manager" option

5. Navigate to the folder you saved the .ko file in and copy it (just touch the file and it will bring up the menu)

6. now navigate to /system/lib/modules and copy the file there by hitting the "select" button on the bottom right.

7. Navigate to /system/lib/modules and insure the file is there. Now touch it to bring up the menu. select "Chmod" option and enter in 644

8. reboot the device

9. Once booted fully open up Terminal emulator and type:

su
insmod /system/lib/modules/wp_mod.ko

10. Once that's done open up a file manager app with root access and mount as r/w and navigate to /system/etc and look for the file install-recovery.sh

11. edit the file using a text editor, adding the line insmod /system/lib/modules/wp_mod.ko towards the bottom of the file

12. reboot and enjoy r/w on boot without running the command every time

13. profit
I too can't write system files in HTC One M7 after updating to sense 6 ROM. Will this procedure cure problem in M7? Thanks in advance

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Google Play Store to Show Price Ranges for In-App Purchases

Google recently announced a change to Google Play Store policy that requires … more

XDA Xposed Tuesday: How to Shut Up Your Phone – XDA Developer TV

So many different applications want to send us notifications that … more

Add Some Power to First Generation Snapdragon CPUs

Some older devices still remain very popular. Phones like theHTC Desire, Sony Ericsson … more

Android M Mentions Spotted in Android Code Review

While we are still waiting for Android L to be officially released, the first mentions of … more