Files put in root get auto deleted after reboot - Galaxy S 5 Q&A, Help & Troubleshooting

How do I put I file in root and make it stick? I'm trying to create a file /data/system/device_owner.xml. Using Solid Expolorer, I create the file and set permissions to 600, but after I reboot the file still disappears. Same if I drop the file in using TWRP.

unknownsoldierx said:
How do I put I file in root and make it stick? I'm trying to create a file /data/system/device_owner.xml. Using Solid Expolorer, I create the file and set permissions to 600, but after I reboot the file still disappears. Same if I drop the file in using TWRP.
Click to expand...
Click to collapse
I just checked how it works for me and have no such problems:
- I placed a file into the same location with Root explorer
- after reboot the file was still in there.
So on my set up (see signature) I can't reproduce your issue.

Related

Root Explorer

Anyone else having this issue?
I have Root Explorer purchased and installed. I am trying to remove/rename the start up/start down sounds. It appears that root explorer is in r/w mode for the folder I am in (Sytem/etc) if I delete the file, it shows "file deleted succesfully". I refresh and it is still there. If I try and copy my new file from the internal sd, it says "file copied succesfully" but it does not show up. I have also tried renaming PowerOn.wav to PowerOn.wav.bak and it takes but I cannot rename it to PowerOn.wav. Then if I verify things with Linda file manager, it shows the file still named PowerOn.wav.bak. How come it's not letting me change the files? Also, hitting the button "Mount R/O" does nothing, it always says the same thing, it never changes to "Mount R/W".
I keep hearing people say it works for them but it's not working for me. I am using stock rooted firmware.
works perfect for me with root explorer... I renamed the original to "orig_PowerOn.wav" and then copy the one I wanted into the folder and named it "PowerOn.wav" (no quotes of course)
Well ****! now it's working. ????
Working well for me. I didn't delete default sounds, i moved them to backup on SD.
This same exact issue happened to me 3 nights ago while changing my shutdown animation. I had to re-boot my phone a few times before Root Explorer worked properly.

[Q] Fix DNS Facebook, we need an developer to help

Hi everybody.
I'm come from Vietnam, where the Facebook is now banned.
We need someone to write a program to update the host file in /system/etc/ by just a touch.
Please copy the IP from http://armabloggin.com/2009/07/facebook-dns-block-fix/
to the host file (like AdFree program).
We cannot edit this file by Astro because it read-only. We don't know how to S-OFF our Android.
Thank you so much.
I thought that AdFree is for rooted phones only.
Here's the host file
I've modified the host file for you but I don't think you can get much further until you root your phone, giving yourself access to system/etc/ where the "hosts" file is for replacement.
Remove the .txt extension and replace it with your hosts file in /system/etc/ after rooting.
If your phone cannot be rooted at http://unrevoked.com/ have a look on the sub forum here for your phone.
As previously stated, changing any system file is impossible without root.
Why can't you use a one-click-rooting program? There are plenty around that work for quite a lot of phones. If that doesn't work there will be device specific guides available, unless it's a phone that can't be rooted (is there any?).
Sorry, I've already root the HTC Desire by Unrevoked.com and have RA-recovery.
I mean that I don't have S-OFF in my device.
I also used Astro to copy the host file to SD Card and edited it. But I cannot replace the host file to system/etc/.
So I need you help write a mini-soft like AdFree.
Have you tried using adb to push the hosts file (in recovery) or root explorer? No need to S-OFF.
I think a soft will easy to use for everyone, don't need experiment in adb, root or s-off.
Anyone developer can make it easy?
Sent from my HTC Desire using Tapatalk
I think the problem is that you didn't mounted the system partition. Try ES FileExplorer, it can work as root and can mount partitions
Sent from my GT-I5700 using XDA Premium App
Hi,I am vietnamese too,if you can't root your phone you can follow the full instruction on tinhte.vn forum.
I whipped this up for you.
It doesn't look great but it does the job. Put the 'hosts' file on your sdcard (not in any folder) that you want to move and rename it 'hosts.txt'. Then run the app and press the button. You'll probably need to reboot afterwards.
Enjoy.
This doesn't back up the hosts file on your phone so you may want to do that manually.
[YOU NEED ROOT ACCESS]
Thank you so much.
Meltus said:
I whipped this up for you.
It doesn't look great but it does the job. Put the 'hosts' file on your sdcard (not in any folder) that you want to move and rename it 'hosts.txt'. Then run the app and press the button. You'll probably need to reboot afterwards.
Enjoy.
This doesn't back up the hosts file on your phone so you may want to do that manually.
[YOU NEED ROOT ACCESS]
Click to expand...
Click to collapse
Dear Meltus,
Firstly, I thank you very much to write this apk for me. You're so kind.
But it's maybe something wrong!
I install your apk, put the hosts.txt in SDCard (in the root, not in any folder).
Then run the app and press the button, reboot afterwards.
I used Astro to view the hosts file. But this file is error. It has 0 byte and can be read.
Please fix it. Thank you so much, again.
P/S: Maybe you make an options to chose folder of hosts file.
Further, you can develop this apk to change any file of system by chose the source and destiny paths.

Help with wpa_supplicant and Ad-Hoc Wireless

I am following the instructions as per the below thread to allow my Acer a500 see my Nokia N900 for tethering purposes.
http://forum.xda-developers.com/showthread.php?t=1033314
I have copied the wpa_supplicant file over the one thats already there.
Now when I open the Terminal Emulator to try ADB remount it comes with an error saying device not found.
I have the wifi turned off, I also have Root Explorer, but I found File Manager HD quite handy.
Now after trying the instructions I now dont have wifi - it comes with an error.
I have tried copying the stock wpa_supplicant file across, with no success.
Can someone please help.
to get AD-Hoc working you first need root and either root explorer (paid app but worth the money) or es file explorer (free but you have to enable root privaleges inside the app. its under the settings menu)
1. navigate to system/bin and copy wpa_supplicant
2. past this to your sd card as a backup
3. rename wpa_supplicant to wpa_supplicant.old
4. extract the file from the download and past it into the system/bin folder. (should be wpa_supplicant)
4. Long press on the file once copied
6. select Permissions and set to User: RWE, Group & Others:RE only
This is the easiest way to fix this... make sure in root explorer you set to rw at the top left in order to rename copy or past into this directory..
Good luck
this is the file .
View attachment wpa_supplicant.zip
Thanks for that, your a genius.
Now that my device can see my phone, I cannot see any web pages.
Is there something else I need to do?
That is very odd .. try rebooting the phone and the tablet..
also try on the tablet
go to settings / applications.. go to the web browser.. and clear cache and data..
is only thing i can think of ..
never had a issue other then my cell sometimes get hung on a cell tower and a reboot fixes this.. .
try connecting another wifi device to the phone to determine if its the tablet or phone..
I ended up changing the program I use to tether on my N900 and now works a treat.
Once again, thanks for your help
Thanks erica_renee . Worked right on point !
You are way too much girl....)))
So I guess THAT's why we should be nice to her!
Thsnks guys.
Now bring me my coffeee
erica_renee said:
Thsnks guys.
Now bring me my coffeee
Click to expand...
Click to collapse
I'll bring nothing, but the world
Works on Ideapad K1
Erica_renee, you are awsome!
I followed your instructions and BAM worked first time.
Thanks
You are Very welcome..
But i do want to point out They are not my instructions..Its been so very long ago i dont remember who to give the credit to.. I think someone from the Zoom Forum..
I just remembers how to do it and do not mind sharing what i have learned with anyone...
So i guess i should say thanks to everyone who is actually a developer or close.. for all the hard work they have done to make my tablet enjoyable to use..
erica_renee said:
to get AD-Hoc working you first need root and either root explorer (paid app but worth the money) or es file explorer (free but you have to enable root privaleges inside the app. its under the settings menu)
1. navigate to system/bin and copy wpa_supplicant
2. past this to your sd card as a backup
3. rename wpa_supplicant to wpa_supplicant.old
4. extract the file from the download and past it into the system/bin folder. (should be wpa_supplicant)
4. Long press on the file once copied
6. select Permissions and set to User: RWE, Group & Others:RE only
This is the easiest way to fix this... make sure in root explorer you set to rw at the top left in order to rename copy or past into this directory..
Good luck
Click to expand...
Click to collapse
I clicked the "Thanks" button but this one deserves more than that! Thank you so much GG, you've made my day!
Regards,
Bob
Ahhh!
Thanks.
Now I can use more than my phone while travelling.
erica_renee said:
to get AD-Hoc working you first need root and either root explorer (paid app but worth the money) or es file explorer (free but you have to enable root privaleges inside the app. its under the settings menu)
1. navigate to system/bin and copy wpa_supplicant
2. past this to your sd card as a backup
3. rename wpa_supplicant to wpa_supplicant.old
4. extract the file from the download and past it into the system/bin folder. (should be wpa_supplicant)
4. Long press on the file once copied
6. select Permissions and set to User: RWE, Group & Others:RE only
This is the easiest way to fix this... make sure in root explorer you set to rw at the top left in order to rename copy or past into this directory..
Good luck
Click to expand...
Click to collapse
I downloaded es file explorer and enabled root exploring as well as "Mount File System" (which is supposed to make the system writable) and with or without the mount file system, I cannot find the System file nor bin. I have the Samsung Galaxy Tab 8.9 Wifi Only. It's running Honeycomb 3.2. Any suggestions?
Not my credit
This fix is not from me.. I just re posted something that has been around since our tablet was released.. I would say give that person the credit. I am not sure who actually did it .. I think that file originally came from the ZOOM FORUM.
Anyway Just wanted to make sure that was POINTED OUT.I only know from what i have read for my own personal use.
Thanks All ... Erica Renee
Firecracker_RC said:
I downloaded es file explorer and enabled root exploring as well as "Mount File System" (which is supposed to make the system writable) and with or without the mount file system, I cannot find the System file nor bin. I have the Samsung Galaxy Tab 8.9 Wifi Only. It's running Honeycomb 3.2. Any suggestions?
Click to expand...
Click to collapse
Can anyone help me with this?
check you su. update the su root binaries . make sure busybox is installed and updated..
you can check the last two with root checker . a app on the market..
There iss also somewhere in the settings. that show a mount point . .something like /mnt/sdcard.
this should be just a / in there to have access to the system folder. I dont have es file explorer installed as i did not like it.. but i do remember having to change this defalt mount or folder option.. Astro file manager and some others also have this defalt . You can also keep going back and will take you there ..
Even though Titanium Backup says I have BusyBox, another app I tried to install said I did not and needed to install, so I went to the market to install and BusyBox says I need to perform Nand Unlock before installing BusyBox. Can you point me in the direction for doing that. I have the Galaxy Tab 8.9 Wifi Only. I see alot of stuff out there but not sure if it's right for my tab or if the instructions are universal to android users. How did you do Nand Unlock?

[GUIDE] How to easily edit/modify .apk files! (Simple, Noob Friendly)

Hey Guys an' Girls!
Anyway, so when I first learnt how to decompile, modify then recompile .apks I found it was a rather slow process and figured out a far faster way.I searched google and xda many times and couldn't find my method anywhere. So without further ado, let's go through an easy, simple, step by step guide on how to modify .apk files!
Step 1 - Getting the .apk
Firstly, of course, you will need to obtain the .apk file that you want to edit. There are two methods to do this:
a) If you have the recovery flashable zip for the rom you are currently on, simply open it up, navigate to the file you want to edit (in my case system -> app -> settings.apk) and drag the .apk file onto your desktop.
b) Using root browser or a similar app on your device, navigate to the .apk you wish to edit and copy it onto your sdcard. Then connect to your computer and copy the file from your phone to the computer.
Step 2 - Editing/Modifying your .apk
Now is the important part. Install Winrar by clicking the link. http://www.win-rar.com/download.html?&L=0 Then open the .apk by right clicking the file -> open with -> WinRar. Now you can look around the .apk file. Find a file inside the .apk you wish to edit. (In my case I'm going to navigate to res -> mipmap-hdpi -> ic_launcher_settings.png). Just drag the file from the .apk and edit to your liking.
NOTE: It is recommended never to completely take everything out of the .apk and then put it all back in. Just do one file at a time.
Then when your finished, select the old file in the .apk and press the delete button. Now drag in the new edited file into where you found it. Easy!
Step 3 - Putting the new .apk back where it belongs
Now of course, your going to have to put it back on your device to see the changes in effect, there's no point having it on your computer! There are two ways to go about this:
a) Open up your rom and navigate to the place where you took your .apk file from. Click on the old .apk file and press the delete button. Now drag your new edited .apk file into the zip. Then connect your device to your computer and drag the rom onto the sdcard and flash it via recovery. Now reboot the system and see your change/s in effect!
b) Copy your new .apk file from your computer to your device. Then, using Root browser or a similar app, navigate to the old .apk file and look at the permisions. (eg. RW--r--) Now delete the old file and replace with the new, but make sure to set the permissions the same as they were before. Now Simply reboot and see your change/s in effect!
NOTE: For some .apk files (eg. Framework-res.apk) there might be missing folders inside the .apk (eg. Values).
Just hit the thanks button, he doesn't bite your finger!
This is an easy way to edit the images only(icons,wallpaper,etc),not XML files,Smali's and such.I do this using the kitchen,easy way if you theme alot.
Diablo67 said:
This is an easy way to edit the images only(icons,wallpaper,etc),not XML files,Smali's and such.I do this using the kitchen,easy way if you theme alot.
Click to expand...
Click to collapse
You don't have to use this guide just for images. That was just the example. You can use it for almost any file inside an .apk. I was just saying that SOME folders aren't there.
Can you guide me to how do i keep same apps of diff versions.
i tried to modify a 3rd party app e.g whatsapp and when i tried installing i got an error which said "the app is not signed", may u kindly assist!
tendyfish said:
i tried to modify a 3rd party app e.g whatsapp and when i tried installing i got an error which said "the app is not signed", may u kindly assist!
Click to expand...
Click to collapse
You also have this tool
Easy Apk Dissassembler
http://forum.xda-developers.com/showthread.php?p=14049173
How do I use a flashable to get rid of .apks??? ₩
On the app I have here it returns 20 results that it scrapes from a website. I only want it to return 3 or 4. How do I get in there and change that value?
I want to change values on touchwiz launcher on my note 3, to use it in 440 dpi. When I use it there is so much margin on all sides, and I need to reduce. I need to add a new icon row as well. Can I do that just by modifying the app?
Sent from my GT-I9505 using Tapatalk
are the .xml files encrypted or something? when i try to edit them, it is a bunch of strange characters
Hi,
I would like to modify the tinychat.apk so that i can find how to change my device info/platform from android to something else, like pc or whatever. I dont want to be identified as using an android device. Is this possible?
Regards.
ksaul said:
are the .xml files encrypted or something? when i try to edit them, it is a bunch of strange characters
Click to expand...
Click to collapse
Yes, depending on what tool you use to decompile the apk files it may or may not decrypt them. I use apktool and it decrypts them just fine.
I think this method is no longer working for 4.3+
Modify JAR files
littlejoelgriffo said:
Hey Guys an' Girls!
Anyway, so when I first learnt how to decompile, modify then recompile .apks I found it was a rather slow process and figured out a far faster way.I searched google and xda many times and couldn't find my method anywhere. So without further ado, let's go through an easy, simple, step by step guide on how to modify .apk files!
Step 1 - Getting the .apk
Firstly, of course, you will need to obtain the .apk file that you want to edit. There are two methods to do this:
a) If you have the recovery flashable zip for the rom you are currently on, simply open it up, navigate to the file you want to edit (in my case system -> app -> settings.apk) and drag the .apk file onto your desktop.
b) Using root browser or a similar app on your device, navigate to the .apk you wish to edit and copy it onto your sdcard. Then connect to your computer and copy the file from your phone to the computer.
Step 2 - Editing/Modifying your .apk
Now is the important part. Install Winrar by clicking the link. http://www.win-rar.com/download.html?&L=0 Then open the .apk by right clicking the file -> open with -> WinRar. Now you can look around the .apk file. Find a file inside the .apk you wish to edit. (In my case I'm going to navigate to res -> mipmap-hdpi -> ic_launcher_settings.png). Just drag the file from the .apk and edit to your liking.
NOTE: It is recommended never to completely take everything out of the .apk and then put it all back in. Just do one file at a time.
Then when your finished, select the old file in the .apk and press the delete button. Now drag in the new edited file into where you found it. Easy!
Step 3 - Putting the new .apk back where it belongs
Now of course, your going to have to put it back on your device to see the changes in effect, there's no point having it on your computer! There are two ways to go about this:
a) Open up your rom and navigate to the place where you took your .apk file from. Click on the old .apk file and press the delete button. Now drag your new edited .apk file into the zip. Then connect your device to your computer and drag the rom onto the sdcard and flash it via recovery. Now reboot the system and see your change/s in effect!
b) Copy your new .apk file from your computer to your device. Then, using Root browser or a similar app, navigate to the old .apk file and look at the permisions. (eg. RW--r--) Now delete the old file and replace with the new, but make sure to set the permissions the same as they were before. Now Simply reboot and see your change/s in effect!
NOTE: For some .apk files (eg. Framework-res.apk) there might be missing folders inside the .apk (eg. Values).
Click to expand...
Click to collapse
That's very helpful thank you for sharing. Is there a way to modify JAR files the same way?
gilbertgk said:
That's very helpful thank you for sharing. Is there a way to modify JAR files the same way?
Click to expand...
Click to collapse
rename the jar to apk..after done,rename it back to jar
zamzameir said:
rename the jar to apk..after done,rename it back to jar
Click to expand...
Click to collapse
Can this work on my note 3 4.3 not rooted?
gilbertgk said:
Can this work on my note 3 4.3 not rooted?
Click to expand...
Click to collapse
idk..but you can try n report back
littlejoelgriffo said:
Hey Guys an' Girls!
Anyway, so when I first learnt how to decompile, modify then recompile .apks I found it was a rather slow process and figured out a far faster way.I searched google and xda many times and couldn't find my method anywhere. So without further ado, let's go through an easy, simple, step by step guide on how to modify .apk files!
Step 1 - Getting the .apk
Firstly, of course, you will need to obtain the .apk file that you want to edit. There are two methods to do this:
a) If you have the recovery flashable zip for the rom you are currently on, simply open it up, navigate to the file you want to edit (in my case system -> app -> settings.apk) and drag the .apk file onto your desktop.
b) Using root browser or a similar app on your device, navigate to the .apk you wish to edit and copy it onto your sdcard. Then connect to your computer and copy the file from your phone to the computer.
Step 2 - Editing/Modifying your .apk
Now is the important part. Install Winrar by clicking the link. http://www.win-rar.com/download.html?&L=0 Then open the .apk by right clicking the file -> open with -> WinRar. Now you can look around the .apk file. Find a file inside the .apk you wish to edit. (In my case I'm going to navigate to res -> mipmap-hdpi -> ic_launcher_settings.png). Just drag the file from the .apk and edit to your liking.
NOTE: It is recommended never to completely take everything out of the .apk and then put it all back in. Just do one file at a time.
Then when your finished, select the old file in the .apk and press the delete button. Now drag in the new edited file into where you found it. Easy!
Step 3 - Putting the new .apk back where it belongs
Now of course, your going to have to put it back on your device to see the changes in effect, there's no point having it on your computer! There are two ways to go about this:
a) Open up your rom and navigate to the place where you took your .apk file from. Click on the old .apk file and press the delete button. Now drag your new edited .apk file into the zip. Then connect your device to your computer and drag the rom onto the sdcard and flash it via recovery. Now reboot the system and see your change/s in effect!
b) Copy your new .apk file from your computer to your device. Then, using Root browser or a similar app, navigate to the old .apk file and look at the permisions. (eg. RW--r--) Now delete the old file and replace with the new, but make sure to set the permissions the same as they were before. Now Simply reboot and see your change/s in effect!
NOTE: For some .apk files (eg. Framework-res.apk) there might be missing folders inside the .apk (eg. Values).
Click to expand...
Click to collapse
Thnax for great guide but,my gopro app has a update and I have changed the icon on it but the app store dosent show me the update button. How to fix so I can update?
What do I need to change in an app to substitute it for another app?
OK so I've installed a new ROM and it comes with a kernel setting app preinstalled. This app has been integrated into the system settings portion of the ROM. I want to replace this kernel settings app with one of my choice but I want to be able to integrate it into the system settings like the original app is. I tried disguising the new app by changing the name of the app and .apk files but that didn't work. Closest I got was being able to convert my app to system app but even though I changed the name, the app, when installed goes back to it's original name. Or what permissions or files do I need to change to allow the integration of my app into the settings interface. Thanks ahead of time, it's appreciated.

How to set permission in kitkat?

I am on 4.4.2 20d...i have root and yesterday when I tried to copy one file using root explorer...it shows read only...and there was no option to change to read write...
Then i installed super manager...i got success in copying...but there was no option to set permission to rw-r-r.
So please suggest a way to set permissions in root...any app or way of setting it.
I was frustrated as i haven't set permission to the file i have copied.
How to easily set permissions in kitkat?and how to easily make read write?
Does anyone have lg optimus apk & odex file for kitkat??
One from lg general thread is down.....
shivg86 said:
I am on 4.4.2 20d...i have root and yesterday when I tried to copy one file using root explorer...it shows read only...and there was no option to change to read write...
Then i installed super manager...i got success in copying...but there was no option to set permission to rw-r-r.
So please suggest a way to set permissions in root...any app or way of setting it.
I was frustrated as i haven't set permission to the file i have copied.
How to easily set permissions in kitkat?and how to easily make read write?
Click to expand...
Click to collapse
to changes permissions , you nedd root, and SUPER SU.
If you are root install it from play store.
Then, when you are on root explorer and try to move or edit something from system you´ll be prompted if you bring supersu to root explorer. You must accept.
For the permissions, select a file and keep it pressed a few segs. It will show you a menu, then you have permissions

Categories

Resources