Document the Story of Your Social Life with 8tory

The different forms of social media are growing every day. It’s hard to imagine a day … more

Make Calling Your Loved Ones Easier and Cheaper this Diwali

Diwali, or Deepawali as some Indians call it, is the pride and joy of Indian … more

Big Android BBQ 5.0 Recap – XDA TV

This fifth annual Big Android BBQ has come and gone. The speakers have spoke, the sponsors have … more

Microsoft to Counter “OK Google” with Bing Torque

When Microsoft is making apps for Android, users should be aware that something … more
Post Reply

Having trouble modifying /sys files

OP n00b5auc3

10th June 2014, 06:44 AM   |  #1  
Hey Everyone,

Trying to modify /sys/module/msm_otg/parameters/usbhost_charge_mode from it's default value of 'Y' to '1' in order to enable usb charging + OTG while using ElementalX's kernel. No matter what I do, I get either access is denied, or when trying to commit a change with sysctl I get nothing as the changes aren't being saved. Been working on this for the past 6 hours and can't figure it out!!! I know there's an easy straight forward way to do this, just can't figure it out!

Please help!!

Thanks,
Noob
10th June 2014, 01:19 PM   |  #2  
THEBANDIT420's Avatar
Senior Member
Thanks Meter: 99
 
324 posts
Join Date:Joined: Aug 2013
Youve mounted R/W right? Or should I say write? Ahah software puns.

Sent from my Nexus 7 using XDA Free mobile app
10th June 2014, 03:43 PM   |  #3  
Prompt Mounted as r/w and rooted...
Quote:
Originally Posted by THEBANDIT420

Youve mounted R/W right? Or should I say write? Ahah software puns.

Sent from my Nexus 7 using XDA Free mobile app

Yeah, meant to add that detail last night but forgot in my frustration. Mounted as R/W, also, did a chmod 777 on the file as well to verify perms were correct.

Tried doing all this work via terminal vi which didn't work, then tried doing an adb pull, update the file adb push, which resulted in a permissions failure. Everything leads me to believe that my root isn't a FULL root; however, I can't find another method of performing said root. Used WugFresh Nexus Root Toolkit v1.8.3 to perform root.

Thanks for your help man,

Noob
11th June 2014, 05:36 AM   |  #4  
Battery Low Anyone?
Can anyone help? This is driving me absolutely insane!
11th June 2014, 02:30 PM   |  #5  
matcho13579's Avatar
Senior Member
Thanks Meter: 148
 
484 posts
Join Date:Joined: Mar 2011
Donate to Me
More
Quote:
Originally Posted by n00b5auc3

Can anyone help? This is driving me absolutely insane!

Try to do that with Root Explorer
11th June 2014, 05:39 PM   |  #6  
Here's what I've done so far
Quote:
Originally Posted by matcho13579

Try to do that with Root Explorer

Just tried what you suggested, it appeared to save; however, upon verification, the file reverted from '1' back to 'Y'.

So far I've tried:
  1. Using a chmod 777 on the file via su terminal, edit file with vi, attempt to save - result - failure..
  2. Using ES File Explorer with root permissions and mount /system in RW enabled, nav to file and edit with ES text editor, save - result - failure...
  3. Mount /system as RW using some app I can't remember, then navigate using ES File Explorer to location, edit using ES text editor, save - result - failure...
  4. adb pull on the file, update, adb push back to location - result - failure
  5. su attempt to delete, move, and rename file in an effort to replace it - result - failure....

I'm pretty sure whoever made that file had ninja training, because every time I try to touch it it totally evades me. -_- Anyways, thanks for the help in advance.

n00b
12th June 2014, 04:17 PM   |  #7  
Anyone? Bueller.... Bueller?
Someone has to have ran into this problem before....

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools
Display Modes


Top Threads in Nexus 7 (2013) Q&A by ThreadRank