CPU Spy Gets an Android Lollipop Makeover

At some point in the distant past, you probably heard of CPU Spy for Android by XDARetired … more

Amazon Fire TV Stick vs Chromecast – XDA TV

There is no doubt that Amazon is a huge player in many markets, and they want to be a huge … more

Fight the Heat and Conserve Battery with EaseUS Coolphone

Memory hungry Android applications are often responsible for making our device … more

Battery Charged in 30 Seconds? Maybe in 2016

Phones and tablets are getting more and more power hungry with each passing generation. Their … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

Having trouble modifying /sys files

OP n00b5auc3

10th June 2014, 07: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, 02:19 PM   |  #2  
THEBANDIT420's Avatar
Senior Member
Thanks Meter: 99
 
325 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, 04: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, 06:36 AM   |  #4  
Battery Low Anyone?
Can anyone help? This is driving me absolutely insane!
11th June 2014, 03:30 PM   |  #5  
matcho13579's Avatar
Senior Member
Thanks Meter: 151
 
495 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, 06: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, 05: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 Search this Thread
Search this Thread:

Advanced Search
Display Modes