Hi,
I own a No.1 D5+ (smart watch - runs a standard Android 5.1, not Android Wear). The watch works well enough for what I had in mind when buying it, but there is one annoying thing: during bootup and shutdown it plays a melody at full volume regardless of the volume settings.
My plan was to root the device and delete / replace the file containing the melody. I searched for instructions specific to my model but couldn't find much, so I tried my luck with Kingoroot. That seems to have worked, though the root explorer app installed during the process still says it's not rooted, contrary to what the Kingoroot says.
Anyway, I tried renaming / deleting / overwriting the file both through Android Studio's Device Explorer and via adb shell, but always get an error "remote Read-only file system".
I'm guessing that means the /system/ folder is in ROM and can't be changed, or could it still be a software write protection? Is there anything else I could try to silence booting/shutting down?
I'm pretty new to all this, so any help is appreciated!
Related
Hi guys,
I'm currently trying to manipulate the file /data/system/packages.xml in order to make Android start one of my apps with another user id. However, this doesn't work because it seems that Android recreates the file completely when shutting down the system which means the old user id is being written back into the file.
Without rebooting, changing the file's contents (or even deleting it completely) doesn't do anything either, it seems that the contents are being loaded into the memory on boot.
What I need are your ideas on how I can make my app run as another user (or edit the file permanently) I need this because I want to access another app's non-exported service.
Thanks in advance!
edit: Even if I try editing the file and then shutting down the system unexpectedly (One X, holding down power for like 10 seconds without using the software shutdown), the file is being restored after reboot. When I check the file in CWM after a normal shutdown, it's also back to normal. So I guess Android rebuilds it on shutdown AND on boot.. or something?
edit2: I just tried the following: Rebooting into CWM, editing /data/system/packages.xml from there, checking file contents (worked), rebooting system - file contents restored. I'm starting to think that this isn't the file I have to edit. But which one is it?
edit3: Tried editing /data/system/packages.list instead, didn't work either. The file is also being restored to the original state.
- Android 4.1.1, CM10, German
did u managed anything?got same issue
I have also posted this issue on another general forum, so apologies if this is deemed cross-posting!
My smartphone is running a stock Lollipop C6833_14.5.A.0.242_Customzied Germany.ftf ROM flashed using Flashtool, but is rooted with KingRoot and I have a dual recovery flashed and working properly.
Following that downgrade I found that my phone no longer had either a phone or alarm tone. When I try and change the alarm tone or ringtone or even notifications in settings I am presented with the file explorer. The sound selector shows nothing. File Commander is able to see and access the files, and they do not appear to be corrupted and I also tested them in my media player.
They were not in the SD card media folder, but were in tact in the system/media/audio folder in their respective folders. So I copied all the individual folders within the audio folder across to the corresponding media folder on the SD card. But that did not work either...
After searching various sites for help I managed to find instructions to download and flash Xperia Lollipop Media Sounds.zip, which I tried to do with TWRP recovery, but this failed with an error message I could not read.
I wondered whether if I were to just flash the system file from the same ROM it would restore the media file settings? Any help would be very much appreciated, as I have no way of hearing when I receive incoming calls, and my alarm does not work either. The audio seems to function fine in third party apps, so there is no physical issue as far as I know.
I also read a recommendation to copy the files across while connected to a PC, via USB, but my computer is a Mac and it does not seem to be able to access the SD cards as external drives in the same way as they appear in a PC.
Sony technical support basically told me that the only solution is to use repair within the Sony Bridge for Mac app, but I don't want to lose root, as the latest firmware upgrade is impossible to root. I really need help on this please!
Be aware that you have to set the correct file permissions after moving them to the /audio folder. The ringtones and alarm tones should be in the folder you just wrote, meaning they're on the system partition.
Just long-press or something on the audio-folder (depending on the file explorer you're using), tap "properties", and then set the permissions to 6-4-4, which is RW-R-R, or:
[x] [x] [ ]
[x] [ ] [ ]
[x] [ ] [ ]
Then reboot.
Hi Klaoss, many thanks for replying. However I have checked the permissions. The permissions for the actual files are RW-R-R, but in fact the folder permissions seem to be even more open: drwxr-xr-x, does that sound correct? I am talking about/system/media/audio/alarms, camera, notifications, ringtones and ui, which all have the same permissions.
Uh Oh! I just checked the permissions in the /storage/emulated/0/media/audio folder are non existent! Maybe this is why it is necessary to use the PC to copy the files, in order to retain the file and folder permissions? Is it also something to do with the actual formatting of the SD partition? Thanks for your patience
Just checked mine (on 5.1.1) and it does indeed look like the folders are drwxr-xr-x, while the files themselves are rw-r-r.
Also, yeah you could try that. That might actually work. Just remember to reboot after each change.
Thanks, but to be clear, do the files need to also be in /storage/emulated/0/media/ as well as in the /system/media/audio, or are they superfluous? Because if they are not needed, then I am not going to achieve anything by going to the trouble of copying the files within a PC environment.
Also, is there no way of copying files within Android without losing the permissions?
No idea, but I've always added and removed audio files from the system partition, but I know apps like Zedge and stuff adds them to the list when downloaded, so I'm guessing that 3rd party apps use the media folder on the internal memory, and not on the system partition, which requires root. So I would probably just let that folder alone, and concentrate on the system folder. Check the permissions and see what happens.
Change the permission on one or two files (incl. the folder), reboot and see if the file/files you just edited are showing up in the ringtone list. If yes, then change the permissions on the rest of them.
I have no idea what to change the system folder permissions to...remember that they were set to drwxr-xr-x. I think it is more important to be able to provide access to third party apps, that way I could temporarily choose ringtones etc using those. However I cannot access the permissions for the folder of the internal memory via my file explorer apps, even with full root access. That has to be a contributory factor to the problem. I wonder, would you mind having a look at the permissions for these folders on your device and telling me what they are compared to the system version?
Also, I would like someone else's take on this, would anyone else care to comment please?
OK, same problem, different tack: can anyone please tell me which partition I would need to reflash from a ROM or TWRP backup to restore the system media sounds and settings to original without losing my data or root? Also does it need to be the same ROM version, or can I flash a different ROM, but still a version of Lollipop? For example, could I simply extract the relevant partition from the recent 5.1.1. ROM, or would I then lose root too, or could it come from a 5.0.1 ROM, but slightly different from the one presently installed? I have several TWRP backups, but unfortunately for some reason they included the TA information (ta.mmc.win) which causes a bootloop when I try and reboot the system after flashing, and I have yet to find a way to exclude them from the restore process.
Okay. I will be the first to admit I did something stupid, and I am not smart enough to fix it myself, if in fact it is even fixable. So, I used Odin to root my Galaxy S6. That isn't the problem. I went to youtube and watched a video on to install another program that would help me in a game. Problem is I followed the instructions, and ended up blocking data usage. I am getting texts. But, I can not use google play store to get games or anything because of this, nor can I use the internet. Regardless if I am connected through wifi. Or, maybe the wifi isn't even working? In the video it wanted me to download root explorer. Well, I did that. It then stated to delete the file "hosts" or, just zip it. I chose to zip it, that way I could get back to it and use it later if something happened. Problem is, I accidentally deleted root explorer when deleting other apps. Now I can not get the zipped file to unzip where it needs to unzip for it to work. I have a feeling this is why my data stuff is NOT working properly. I tripped knox, which I am not happy about, but hey that was again my stupidity and now it's too late. I just want to be able to get my phone back in working order, if possible. Please, anyone able to help?
SOFTWARE VERSION
G920PVPU3BOL1
HARDWARE VERSION
G920P.02
MODEL #
SM-G920P
ANDRIOD VERSION
5.1.1
BUILD NUMBER
LMY47X.G920PVPU3BOL1
promisedpride said:
Okay. I will be the first to admit I did something stupid, and I am not smart enough to fix it myself, if in fact it is even fixable. So, I used Odin to root my Galaxy S6. That isn't the problem. I went to youtube and watched a video on to install another program that would help me in a game. Problem is I followed the instructions, and ended up blocking data usage. I am getting texts. But, I can not use google play store to get games or anything because of this, nor can I use the internet. Regardless if I am connected through wifi. Or, maybe the wifi isn't even working? In the video it wanted me to download root explorer. Well, I did that. It then stated to delete the file "hosts" or, just zip it. I chose to zip it, that way I could get back to it and use it later if something happened. Problem is, I accidentally deleted root explorer when deleting other apps. Now I can not get the zipped file to unzip where it needs to unzip for it to work. I have a feeling this is why my data stuff is NOT working properly. I tripped knox, which I am not happy about, but hey that was again my stupidity and now it's too late. I just want to be able to get my phone back in working order, if possible. Please, anyone able to help?
SOFTWARE VERSION
G920PVPU3BOL1
HARDWARE VERSION
G920P.02
MODEL #
SM-G920P
ANDRIOD VERSION
5.1.1
BUILD NUMBER
LMY47X.G920PVPU3BOL1
Click to expand...
Click to collapse
You post at wrong place, anyway download from Internet with your pc a root Explorer (they are plenty) copy to your phone go to settings at your phone where it says "security" check "unknown sources" install the root explorer from the file and go to root, system, etc unzip the host file and set permissions to rw,r,r 644. Hosts are necessary for your Internet connection. If you haven't the host file download from here
http://forum.xda-developers.com/showthread.php?t=1916098
unzip it and copy to root system etc and set permissions to rw,r,r 644 also. Reboot and everything will be OK.
Sent from my GT-N7100
I have Prestigio Multipad pmp5197d.
I use the built in system update in the Settings. It downloads an update.zip file and then reboots to recovery, but update package does not show up, so can't select it for installation. Just shows an emty root folder.
File explorer shows the zip file.
I have tried copying the file to external SDcard and everywhere the File Explorer allows me to, still no luck.
I have been googleing for some hours, no solution for the specific questions.
I need to update because YouTube is not working (can't update YouTube app) anymore due to system not being updated.
Anyone seen something like that?
Its a super low end device, not much info around for the specific model. But I doubt it's a model specific problem.
I can't change the system files.
I have root privileges and also root file manager.
At most it will let me delete a file, but I can't add another one.
Even TWRP recovery won't let me do that.
I only noticed this problem here on Android 11.
On Android 10 (even on the A/B system) I still managed.
Does anyone have a proven working procedure?
I noticed that many file managers have problems reading and modifying files on /system partition since Android 11 update.
for instance Solid Explorer is showing corrupt filenames in /system, is unable to change files. The same with other root file explorers.
SOME filemanagers however seem to be working, like X-plorer and maybe in your case Total Commander (i didn't test). maybe they have been updated recently for some changes in Android 11 filesystem, or were built to handle it correctly from the beginning.
This is defenitely something that needs to be fixed on file explorer apps sides.
some more information https://android.stackexchange.com/q...t-see-contents-of-android-data-even-with-root
It's true. With the advent of Android 11, we need to get the file managers updated with the new environment.
So far my favorite thing to use is Root Explorer, and I also had to update it to the current version. It can then handle the new environment. Total Commander is similar.
EDIT: Appearances are deceiving. Even the latest versions of these tools won't actually insert a file into the system, at least not a working one. They can only create an empty file. So it's true that I don't know how to use it yet.
After further testing, I haven't found a file manager that has no problem adding anything to the system.
Even the X-plore didn't help.
The problem is not in the rights, but in the fact that the system folders show 0 free bytes!
So there is nowhere to store the data.
hm when there is 0 bytes free I think it's actually read-only (super)partition. it's still kinda tricky to handle things like this on A11.
what about: enable USB debugging + USB root debugging and then: adb push /system/stuff?
We have to try different ones. But as I wrote, it's not a rights issue. I copy the file to the system, but then it has size 0b and is empty.
File Manager on F-droid (com.github.axet.filemanager) seems to be very lightweight but functional root explorer. give it a try. maybe it works better than others. at least I could browse root stuff correctly