Need help clearing Settings- Mobile Data Usage on Rooted Android 5.1 - Android Q&A, Help & Troubleshooting

I have an LG G4 running a rooted image of Android 5.1 (VS98613B). I would like to make it so that my phone doesn't track my Mobile Data Usage. (i.e. I would like Settings - Data Usage to be empty and/or automatically cleared on reboot)
I understand these files are kept in /data/system/netstats. Using ES File Explorer with root privileges, I have accessed this directory and deleted the files found there. I also changed the permissions of ...../netstats to read-only.
After device reboot, I verified ...../netstats was still read-only and empty ( both were still true). In Settings - Data Usage, the graph at the top is blank. However, the app list below the graph starts out blank for half a second, then refreshes to show the most recent apps that have been using Mobile Data. (I would upload a screenshot, but I'm not sure how.)
Using ES File Explorer, I verified again that ...../netstats was still empty. (and it is.) I am unable to find either netstats_xt.bin or netstats_uid.bin in /data/system .
How is the Android System UI populating this apps list?
If the directory ....../netstats is currupt, does the System UI default to a different path? Where would it be?
Many, Many Thanks to any that can help.

Related

[Q] .nomedia file

Alright, so I've read just about every article and I can't figure out how to remove certain images from the android gallery. I've attempted to add a .nomedia file to the folder in which the unwanted pictures are located but they still appear in the gallery. I believe the issue lies within the fact that the art is rooted deep within the directories.
Example:
3OH!3 > *Album Name* > *Artwork*
I would like to simply add a file on the higher level to prevent all folders from appearing in gallery. I don't want to go into each individual folder and create a .nomedia file, that's absurd.
Can anyone help me before I pull out more of my hair?
You need to create a .nomedia file and then force a rescan (.nomedia does apply to all sub-folders). Worst case, you'll need to clear the application data and then reboot (which actualy isn't that bad).
After you create the .nomedia file, there's an app called SDrescan that I use to trigger a rescan, but that only applies to Internal Storage. On the other hand, if it's the microSD, you should just be able to pop it out and pop it back in to force a rescan.
If none of that works, go to Settings → Applications → Manage applications → All, Media Storage, I think it was?, then Clear Data. Reboot. You should now be good.
I can't offer any help in this but I just had to comment....great band choice

[Q] Editing /data/system/packages.xml

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

Lost access to media - ringtones, alarms, notifications and other media files

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.

A mod to allow 3rd party apps to write to SD has screwed up my tablet, please help!!

Hi, I have a Digiland DL1010Q tablet with kitkat 4.4.2
Apologies in advance if this post is a little long, but I wanted to be thorough in my explanations in order to better my chances of getting the problem solved.
Kitkat 4.4.2 apparently doesn't allow 3rd party programs to write on an external SD card and since I wanted that functionality back (and I have root access), I decided to do the "Sdfix" modification. It has an app for it in the play store but I decided to do it the manual way as described in many threads online.
The modification is basically to edit the /system/etc/permissions/platform.xml file and add in the WRITE_EXTERNAL_STORAGE category the line "<group gid="media_rw" />". This is supposed to give back write permission on sd card to 3rd party apps.
Now the issue is that the particular instructions I was looking at didnt mention reeditting this file's permission after making the edit so the permissions might have not been at 644 (rw- r-- r--) after I made this edit...
Once I rebooted the tablet it booted up fine but once on the desktop, I started getting a bunch of messages that apps were crashing in the background. The tablet came from factory with 2 partitions, one for the OS and the main part of the user apps, and a secondary partition called "INTERNAL STORAGE" with the extra install files for the largest user apps and some settings, etc... The issue seems to be that this secondary partition now cannot be accessed unless i use es file explorer with root access and navigate to the mnt/media_rw/sdcard0 folder (the internal storage has always been referred as sdcard0 before, so the name isnt new). So basically without root, the apps cant access that data partition and load their settings,etc and load properly. At least thats what I think is happening but I could be wrong.
The weird part is that even with root, I can only access the content of the internal storage through es file explorer if I go through the mnt/media_rw/ folder, if I go through other folders, I can't seem to access the content. Without root explorer access, es file explorer can't even access the content of the mnt/media _rw folder. If I go through the "sd card analyst" tool in es file explorer, it would normally display the content of the internal storage, but it now fails and say that it doesnt have the right permission (even if es file explorer has root explorer access).
I have since edited the platform.xml file permissions to make sure they were at 644, reboot, no luck.
I then reverted the changes to platform.xml and made it identical to what it was at the beginning, permissions 644, reboot, no luck and es file explorer navigation was identical.
Through my many googling attempts I found a few other people who had this issue and one user's recommended fix involved deleting the file /data/system/packages.xml (which he said gets modified when platform.xml changes), clearing the cache and delvik cache, then rebooting. I actually tried this and the delvik cache got repopulated normally during bootup but the issue persisted. (the packages.xml file reappeared but I am not sure how identical it is to the one I deleted)
Does anyone have any suggestion on how I could fix my issue without doing a facory reset? I would greatly appreciate any help in solving this short of a full wipe.
Have you tried wiping the userdata?
What is the userdata? You mean all my apps, settings, etc? Like a factory reset? If so, no, I'm trying to avoid having to resort to that.
Or you mean some sort of cache? I manually deleted the content of the delvik cache folder, and I have used the "clear cache" option in the recovery menu I can access at bootup if i hold power and volume up.
Or do you mean something else entirely?
bump

Need help with android custom system apps

So I wanted to make some apps a part of my system apps. I placed the ES File Explorer application in the /system/apps/ directory and when I factory reset the phone, it was installed as a system app and it ran without a problem.
Now when I put Microsoft Office application in the /system/apps/ directory, it crashes . So my question is that how can I make this app a part of the system apps such that it runs without a problem when I factory reset the phone. I also changed the permissions of the app when I place it in the /system/apps/ directory but it crashes.

Categories

Resources