Logicom E500 platform.xml - Android Q&A, Help & Troubleshooting

I made a huge mistake. I edited the platform.xml cause i read that after i could use apps on sd card, but i made a mistake and now i cant reach my internal and external card neither, i cant reach google play. I tried to factory reset it, but not helped, just my root gone. After i succeed to root it again, but i cant edit again with ES file explorer cause its need SuperSU pro(before not needed) so i cant restore it. Please help me

Now i finally can change the file, but i havent got the original settings
Anyone can link yours platform.xml file? My settings was a similar kitkat file, but now its looks like this:
name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
</permission>
<permission name="android.permission.WRITE_MEDIA_STORAGE" >
<group gid="media_rw" />
</permission>
The group gid was different there, but i dont know what was them

Related

[TUTORIAL] How to write/copy/download to the external sd card

First of all, I would like to thank poolmaker who had a tutorial over at the Xperia Z1 forum. So go on over and give him thanks!
First you must be rooted. Second must have a file explorer. I personally use ES File Explorer so the steps below will be covering that file explorer.
Open ES File Explorer.
Open the Tools Menu.
Make sure Root Explorer is turned on and long press over the name "Root Explorer".
A sub-menu pops up, select Mount R/W. (if you don't do this the changes you make will not stick.) The next menu that pops up, you want to make /system RW by selecting the radio button.
You then want to navigate to /system/etc/permissions.
Scroll down and find platform.xml and make a copy of it and save it somewhere.
Open the original file with ES Note Editor and then press the menu (the 3 vertical dots) to edit.
Make the following changes
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
<permission name="android.permission.WRITE_MEDIA_STORAGE" >
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
Click to expand...
Click to collapse
Save the changes you make.
Before you exit, check the permissions of the edited platform.xml. They should be (rw-/r–/r–).
Reboot your phone and enjoy being able to download/write/copy to your external SD card again.
This is a great tutorial to do it manually.
However you can also just install this app https://play.google.com/store/apps/details?id=nextapp.sdfix
Install, run it and uninstall.
tp2215 said:
This is a great tutorial to do it manually.
However you can also just install this app https://play.google.com/store/apps/details?id=nextapp.sdfix
Install, run it and uninstall.
Click to expand...
Click to collapse
Of course that is always an option, there are actually a few apps on the market that do this. I just thought since it is xda, people might want to do it manually.
https://play.google.com/store/apps/details?id=nextapp.sdfix
Sent from my bad ass Kryon infused Note 3
I went through the whole tutorial, it worked great. Then I scrolled down and noticed there was an app, oh well. Thanks for the write-up!
Please help. Can anyone give me a copy of their original platform.xml? Seems like I messed up mine. Can't find my back up. Help would be greatly appreciated. Thanks in advance.
I followed the steps in the first post and after I rebooted, messages keep popping up saying this and that failed to start and now I can't even use the phone because they pop up every 3 seconds.. I also can't see any files through a file browser or on the computer. I have a copy of my platform file on the phone but no way to get to it because no files show up in the file explorer. Any ideas? My phone is basically useless right now.
MIKE PH said:
Please help. Can anyone give me a copy of their original platform.xml? Seems like I messed up mine. Can't find my back up. Help would be greatly appreciated. Thanks in advance.
Click to expand...
Click to collapse
Here you go http://goo.gl/nlXWRE
I am so sorry for what is most likely a stupid question, but what is advantage of this? Does this address the issue of 4.4.x where we can't store our app data on our micro sd cards? Thanks in the advance for the help
What is the purpose of the mount r/w option?
I think I understand this but when I selected Root on, I was able to copy and overwrite and rename system files like SystemUI.apk. I did not have mount RW for the /system folder. So what exactly does the mounting do?
Bob
The app didn't work for me, but this manual write up did it!
Thanks saved me from having to install a new rom.
Thank you for this tutorial!!!
Sent from my SM-G900T using XDA Free mobile app
bgmikejr said:
Here you go http://goo.gl/nlXWRE
Click to expand...
Click to collapse
This link is not working already ;(
could anybody send me original or "patched" version of platform.xml? I didn't backuped mine and something went wrong. I always did backup and never have need them...
Right click the link and choose save link as it should download as I did this and it worked for me.
bgmikejr said:
Right click the link and choose save link as it should download as I did this and it worked for me.
Click to expand...
Click to collapse
it's a kind of magic
still doesn't work. i will flash another rom
damianssj661 said:
it's a kind of magic
still doesn't work. i will flash another rom
Click to expand...
Click to collapse
That's weird. It's working for me. Hopefully this works for you. Just copy and paste into Notepad++ or equivalent and name it platform.xml I've also attached it, just remove the .txt extension.
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2008 The Android Open Source Project
Copyright (C) 2013 Broadcom Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- This file is used to define the mappings between lower-level system
user and group IDs and the higher-level permission names managed
by the platform.
Be VERY careful when editing this file! Mistakes made here can open
big security holes.
-->
<permissions>
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- The following tags are associating low-level group IDs with
permission names. By specifying such a mapping, you are saying
that any application process granted the given permission will
also be running with the given group ID attached to its process,
so it can perform any filesystem (read, write, execute) operations
allowed for that group. -->
<permission name="android.permission.BLUETOOTH_ADMIN" >
<group gid="net_bt_admin" />
</permission>
<permission name="android.permission.BLUETOOTH" >
<group gid="net_bt" />
</permission>
<permission name="android.permission.BLUETOOTH_STACK" >
<group gid="net_bt_stack" />
</permission>
<permission name="android.permission.NET_TUNNELING" >
<group gid="vpn" />
</permission>
<permission name="android.permission.SYSTEM_GROUP_INTERNAL" >
<group gid="system" />
</permission>
<permission name="android.permission.INTERNET" >
<group gid="inet" />
</permission>
<permission name="com.sec.android.permission.CAMERA" >
<group gid="camera" />
</permission>
<permission name="android.permission.READ_LOGS" >
<group gid="log" />
</permission>
<permission name="android.permission.READ_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
</permission>
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
</permission>
<permission name="android.permission.ACCESS_ALL_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="sdcard_all" />
</permission>
<permission name="android.permission.WRITE_MEDIA_STORAGE" >
<group gid="media_rw" />
</permission>
<permission name="android.permission.ACCESS_MTP" >
<group gid="mtp" />
</permission>
<permission name="android.permission.NET_ADMIN" >
<group gid="net_admin" />
</permission>
<!-- The group that /cache belongs to, linked to the permission
set on the applications that can access /cache -->
<permission name="android.permission.ACCESS_CACHE_FILESYSTEM" >
<group gid="cache" />
</permission>
<!-- RW permissions to any system resources owned by group 'diag'.
This is for carrier and manufacture diagnostics tools that must be
installable from the framework. Be careful. -->
<permission name="android.permission.DIAGNOSTIC" >
<group gid="input" />
<group gid="diag" />
</permission>
<!-- Group that can read detailed network usage statistics -->
<permission name="android.permission.READ_NETWORK_USAGE_HISTORY">
<group gid="net_bw_stats" />
</permission>
<!-- Group that can modify how network statistics are accounted -->
<permission name="android.permission.MODIFY_NETWORK_ACCOUNTING">
<group gid="net_bw_acct" />
</permission>
<permission name="android.permission.LOOP_RADIO" >
<group gid="loop_radio" />
</permission>
<!-- The group that releated with VPN -->
<permission name="android.permission.SAMSUNG_MODIFY_ROUTE" >
<group gid="net_admin" />
</permission>
<permission name="android.permission.SAMSUNG_TUNTAP" >
<group gid="vpn" />
</permission>
<permission name="android.permission.SAMSUNG_MODIFY_IPTABLES" >
<group gid="net_raw" />
</permission>
<!-- The group that releated with VPN -->
<permission name="com.sec.android.SAMSUNG_MODIFY_ROUTE" >
<group gid="net_admin" />
</permission>
<permission name="com.sec.android.SAMSUNG_TUNTAP" >
<group gid="vpn" />
</permission>
<permission name="com.sec.android.SAMSUNG_MODIFY_IPTABLES" >
<group gid="net_raw" />
</permission>
<!-- The group that releated with URL -->
<permission name="com.sec.android.SAMSUNG_GET_URL" >
<group gid="secnetfilter" />
</permission>
<!-- Group that can use gscaler -->
<permission name="com.sec.android.permission.USE_GSCALER" >
<group gid="graphics" />
</permission>
<!-- Except for SysScope, DO NOT USE this permission. -->
<permission name="com.sec.android.app.sysscope.permission.ACCESS_SYSTEM_INFO_SYSSCOPE_ONLY" >
<group gid="radio" />
</permission>
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- ================================================================== -->
<!-- The following tags are assigning high-level permissions to specific
user IDs. These are used to allow specific core system users to
perform the given operations with the higher-level framework. For
example, we give a wide variety of permissions to the shell user
since that is the user the adb shell runs under and developers and
others should have a fairly open environment in which to
interact with the system. -->
<assign-permission name="android.permission.MODIFY_AUDIO_SETTINGS" uid="media" />
<assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="media" />
<assign-permission name="android.permission.WAKE_LOCK" uid="media" />
<assign-permission name="android.permission.UPDATE_DEVICE_STATS" uid="media" />
<assign-permission name="android.permission.UPDATE_APP_OPS_STATS" uid="media" />
<assign-permission name="android.permission.ACCESS_SURFACE_FLINGER" uid="graphics" />
<!-- This is a list of all the libraries available for application
code to link against. -->
<library name="android.test.runner"
file="/system/framework/android.test.runner.jar" />
<library name="javax.obex"
file="/system/framework/javax.obex.jar"/>
<!--
<library name="javax.btobex"
file="/system/framework/javax.btobex.jar"/>
-->
</permissions>
_eroz said:
Of course that is always an option, there are actually a few apps on the market that do this. I just thought since it is xda, people might want to do it manually.
Click to expand...
Click to collapse
There's also an Xposed module for this too: http://forum.xda-developers.com/xposed/modules/kitkat-sd-card-access-t2790992 . A "semi-manual" option, if you will. I did both the manual run-through and then tried the Xposed mod to confirm they both made the same edit and both worked.
this did not work me i did this and went into dolphin browser on my galaxy tab 4 8.0 sm-t330nu and tried to download a picture and got that popup saying i cant do it why?
Tx
Hi _eroz
Just to say Thank you.
PLus I discovered the ES Task, and I had to root my phone. I feel that I 'll play with it even more, like changing rom...

[Q] ZipFile restoring RW, Question about a solution in the dev forum,

at the < HTC Desire 816 > Desire 816 Android Development > [MOD] Restore Pre-4.4.x SD Card Permissions (Writeable) > forum
"bigxie " has an solution to restoring R/W in Android 4.4.2 SENSE 5.5.
He has modified Platform.xml, and this is what I have tried, but as a complete newbee in Android / Linux, my Phone reboots with an error message afterwards.
My Question:
Is it possible to replace the Platform.xml bigxie has incooporated in his zip whit my own Platform.xml, og maybe just edit the existing platform.xml so it could Work with Sense 6?
I need to edit the file and add
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="media_rw" /> (This Line)
</permission>
<permission name="android.permission.WRITE_MEDIA_STORAGE" >
<group gid="sdcard_rw" /> (This Line)
<group gid="media_rw" />
</permission>
and them remove the differences from his and mine XML
If possible any help in explaning how is very much welcome->
Edit (1),
I meant any help in answering this question, I'm familiar with ABD, flashing and sideloading so I doesn't need help explaing how to edit a file, just do I have to use a special program to open and repack the zipfile or will any program like 7z, totalcommander etc be enough to do the job
I've search, and found a lot on how to open Rom's and APKs but nothing about edit or switcing a file in a Zip
My phone HTC DESIRE 816 4.4.2 Sense 6, unlocked, rooted and CWM 6.0.4.7
EDIT (2):
The file from Dev I'm talking about, only has the file Platform.xml inside, the path for the file is the same as the path on my Phone system\etc\permissions, so does antone know if it's possible? if not, are there anywhere I can get sense 5.5 and is it possible to eiter flash or sideload either file?

System won't recognize SDCard

Hello guys! I'm having some problems with my Z2! The system and Stock Sony apps won't recognize my SDCard, but I can access it through Root Explorer and ZArchiver.
The part of my Permission.xml file regarding external storage is as follows
<permission name="android.permission.READ_EXTERNAL_STORAGE">
<group gid="sdcard_r"/>
</permission>
<permission name="android.permission.WRITE_EXTERNAL_STORAGE">
<group gid="sdcard_r"/>
<group gid="sdcard_rw"/>
<group gid="media_rw"/>
</permission>
<permission name="android.permission.ACCESS_ALL_EXTERNAL_STORAGE">
<group gid="sdcard_r"/>
<group gid="sdcard_rw"/>
<group gid="sdcard_all"/>
</permission>
<permission name="android.permission.WRITE_MEDIA_STORAGE">
<group gid="media_rw"/>
</permission>
Is there something wrong?
I'm running rooted stock 5.1.1 firmware (23.4.A.1.232) and locked bootloader.
Update: If I remove it and reinsert while the phone is on, everything comes back to normal. But, after a restart, the problem happens again.
bump!
yes it happen to me too.. by the way..i reflash stock rom and root again.. please beware do not put your memory card out before you unmount it. .. :fingers-crossed::fingers-crossed::fingers-crossed:sorry for my english.. i hope you understand.

SD Card permissions - Cyanogenmod 13.0

Hello,
I faced the SD card permissions access. My OfficeSuite PRO would not recorded on SD card and many other programs. I have read different metods and that's what helped me (so I guess). I added the following lines in system\etc\permissions\platform.xml
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
<permission name="android.permission.READ_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
Restart phone.
Uninstall OfficeSuite Pro and Apps2SD and install back. Аnd veil office save to SD Card ans Apps2SD managed to Folder Mount. I have not tried other applications, only those I need for now!
I do not know if it helped but I'm happy and everything is OK.
Best regards.
Wow, maybe I'll try CM13 again, thanks to you :>
How did you push this file to system? I can't do it through file manager and when I'm pushing it through ADB it doesn't show any error, but file doesn't change...
Code:
Y:\Android\ADB>adb push platform.xml system\etc\permissions\
99 KB/s (6349 bytes in 0.062s)
It does nothing...
[Edit] Ok, done. I didn't change permissions to system in ADB. I'm a noob
[Edit] Aaaand, after all it seems it does nothing xD Link2SD can't mount, Opera can't download files to SD.
After this Periscope crashing has been decreased significantly However, Photos still can't delete from the SD card.
Hello, I used Es file explorer.
Use Sd fix in to Apps2sd(end of the menu) and i install BusyBox(if matters).

Changing external card permissions?

I have a phone with android 4.4.2 and want to edit the permissions of the external storage, but not sure what should i change.
Almost all apps seem to exclusively focus on internal storage, to the point they ignore external storage completely, and that's what i want to change.
On platform.xml right now, the READ_EXTERNAL_STORAGE says:
<permission name="android.permission.READ_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
</permission>
Click to expand...
Click to collapse
What would change if if it said this instead? :
<permission name="android.permission.READ_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="media_rw" />
<group gid="sdcard_all" />
</permission>
Click to expand...
Click to collapse
Or how can i give apps total permission for the external storage.

Categories

Resources