[Q][Android] A way to overwrite files in /sys?? How? - Android Software/Hacking General [Developers Only]

I have to overwrite some files located at /sys/devices/system/cpu/cpu0/cpufreq on my htc hd2 mounting the rom "TyphooN CyanogenMod 7 3.2.6"...i took the files i need with "root explorer" but with the same program i can't overwrite the new modded files in the same directory and if i modified the same files by root explorer they will be saved but immediately return as stock..so what i have to do to overwrite that damn fils!??? Please help..
WARNING : exuse my bad english

Related

[Q] How do I find the system/media folder on my Droid X?

My Droid X is rooted and I was wondering how I could change my Boot up Animation. I've read you have to copy and paste in the system/media folder to replace the old Boot Animation.zip but I can't find the system/media folder. I am running Gingerbread on my Droid. If anyone could help me solve this problem, it would be greatly appreciated. Thanks in advance.
You have to use root explorer from the market to access that directory on your phone... you can navigate to your SD card and copy the file then back to the root directory, in there there is a folder called system, then subfolfer media... in upper right corner is a button that says mount r/w change it to r/o and paste file, overwrite existing... all set
sent from my CM7 powered Droid X
Root Explorer is not the only file manager that can do this.
There are a number of root enabled file managers in the market. ES File Explorer, Super Manager, Jrummy's ROM Toolbox. Any number of others.
The point is that you do need a file manager that is 'root enabled' to access those system directories.
hootowlserenade said:
You have to use root explorer from the market to access that directory on your phone... you can navigate to your SD card and copy the file then back to the root directory, in there there is a folder called system, then subfolfer media... in upper right corner is a button that says mount r/w change it to r/o and paste file, overwrite existing... all set
sent from my CM7 powered Droid X
Click to expand...
Click to collapse
Awesome. Thank you.
Zaphod-Beeblebrox said:
Root Explorer is not the only file manager that can do this.
There are a number of root enabled file managers in the market. ES File Explorer, Super Manager, Jrummy's ROM Toolbox. Any number of others.
The point is that you do need a file manager that is 'root enabled' to access those system directories.
Click to expand...
Click to collapse
That's good to know, I didn't know there were other apps for that, I've only used root explorer (I bought the paid version, so I'll stick with it) but if anyone asks now I can give them more options
Sent from my SGT running CM7
http://forum.xda-developers.com/showthread.php?t=1314016
Sent from my DROIDX using XDA App

[Q] Cannot Change Permission.

I Want To Add New Boot Animation. I Download One With Zip File I Want To Paste It In System/media Folder. With Root Explorer I Am Not Able To Delete Old File Or Paste New File Or Change Permission. Please Help.
There should be a setting to mount R/W in Root Explorer if I remember correctly...then you should be able to change permissions.
I Checked Everything. Nothing Happens.
Solved : I Download An App Called Mount /System From Playstore And It Worked. Thanks A Lot

System "semi" Writable?

I recently Wiped my Phone completely and decided to Re-Flash Viper 1.2.1.
I noticed a problem prior to re-installing but thought nothing of if since it wasn't crucial at the time.
In Root explorer, I am able to delete [i normally delete boot animations] system files but not add where I need to add. Example, I wanted to add a ringtone to my system/media/ringtones folder. I normally [for the last six years] could just copy and paste such files using a root file manager.
However, when I any these files to for example /system/customize/resource/ it doesnt add it. BUT IT DOES rename the file and save it under a dif folder.
Example. Tried copying-copy to-moving to "androidtwirp.mp3" from sdcard to /system/media/notifications and a message pops up saying"notificationsandroidtwirp.mp3 successfully copied-moved to" and it saves notificationsandroidtwirp.mp3 to /system/media/ and it stays there. retrying from that location only results in "notificationsnotificationsandroidtwirp.mp3".
So not only does it rename the file but it saves it in the wrong location. I am at a loss for word. I tried the basics to tryand fix this but i cant seem to hit it on the head.
Thanks!
Edit: Not updating Super SU app, file explorer seems to have worked. Will attempt to duplicate problem to see what actually caused.it.
FOUND IT!
Updating my ES File explorer broke my system writing ability. DO NOT UPDATE is because when you do...
Any file you move, copy/paste to the system will not work properly.
This first happened when I tried to copy and paste a boot animation after I updated ES root explorer. It would rename whatever file i was trying to paste/move/copy over and save it under a sub folder.
example.
copying a ringtone [i.e. androidtwirp.mp3] from SDCard to System folder, the path is /system/media/audio/ringtones/ and it would rename it "ringtonesandroidtwirp.mp3" and save it under /system/media/audio/.
So basically not only was it renamed [which i didnt want it to be] but it would save it to the folder before the actual folder i needed it to be in, plus it would corrupt the file deeming it useless.
moving "ringtonesandroidtwirp.mp3" into the correct folder would only result in "ringtonesringtonesandroidtwirp.mp3"
this happened across the board with all files being moved around
The ES File Explorer version 1.2.1 comes with works flawlessly so don't update it.
I uninstalled ES [also any folders in SDcard related to it] and downloaded JRummy's root explorer and everything is back to normal except i have to reboot the phone to see files [like ringtones and notifications] that i added to the system.
I think it has something to do with our devices having an unlocked bootloaader, but still S-ON. There's S-OFF in the Dev section now if you really need to write to the system folder a lot.
I came from the Vibrant so I know what you're going through
Yeah, im on a low hboot so s-off might not be in my plans since I can practically flash what I want but it was ES file explorer, when I updated the apk the root permissions broke when writting to the system. I emailed the dev and they said they'd have it fixed on the next update.
echo en Android

[HELP] I need build.prop

I have a broken build.prop for my S6: can someone be so generous to send me this file from G920FXXU1AOE3_G920FITV1AODQ_G920FXXU1AOE3_HOME ? I'm not able to extract following this tutorial http://forum.xda-developers.com/showthread.php?t=2294909 (ext2explore wasn't able to open the system.img)
Use a root enabled file explorer like Root Explorer or ES File Explorer to open the rom.zip you are running. Go to /system and extract build.prop, then go to the folder where the file was extracted to (I use Root Explorer which extracts to /sdcard0/storage/SpeedSoftware/Extracted). Copy the extracted build.prop to your phone's /system and overwrite the existing build.prop. Make sure the permissions are rw-r--r-- and reboot.
Protip: After flashing a new rom, backup the original build.prop before making any changes or flashing any mods. Save it as "build.prop.original". That way, you will always have a backup copy of the original file. Some file explorers (like Root Explorer) will automatically backup files when you edit them, but they append ".bak" to the existing file. So if you edit build.prop more than once, your original "build.prop.bak" is overwritten, and the backup is no longer the original file. However, if you save the original as "build.prop.original", it never gets overwritten.
It works! Thank you!
Inviato dal mio SM-G925T utilizzando Tapatalk

How to change bootanimation?

I have rooted my phone and granted root access to root explorer, but i still can't paste anything into system/media folder and I can't rename the bootanimation.zip file. It says rename failed and then "root explorer was granted superuser rights" pops up on my screen. Am I doing something wrong?
You must to make changes inside twrp
Our phones are a bit different there.
system, or rather system_root, is read only. Think of it like a CD-ROM. You can only read from it, not write to it.
You have to use a kitchen of some sort, extract system.img from the ROM you are running, and edit the ROM from there. Once you have, you have to create the system.img from your files again. Then flash that system.img on your phone.
And then you are good to go!
It's that simple!

Categories

Resources