[MOD] [GUIDE] [ 5.0.2 ] How Fix backup app on SD Card in Sony Lollipop 5.0.2 - Sony Cross-Device General

Hi
Will show you how to fix the problem of reading and writing to the SD card in Sony Lollipop 5.0.2
Request:
-Sony Lollipop 5.0.2
-ROOT
-Text editor ( I use notepad ++ )
1.On your phone, find the file platform.xml
ROOT / system / etc / permission /
Copy it to your computer
using a text editor, open and add these lines :
Code:
<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" />
[COLOR="red"] <group gid="media_rw" />[/COLOR]
</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="sdcard_rw" />
[COLOR="Red"] <group gid="media_rw" /> [/COLOR]
</permission>
<permission name="android.permission.ACCESS_MTP" >
<group gid="mtp" />
</permission>
2.Save and copy the phone
3. Using Root Explorer Important
-Copy file To System
-Set Permission Using Root Explorer ( rw- r-- r-- )
-Move The platform.xml To /system/etc/permission/ Folder
-Reboot The Phone.
4. Enjoy
Creadits:
RXS MoonBreakers Team
Be aware that you can damage your phone. I do not take responsibility for damage to your phone. You do so at your own risk.
everything works on Titanium Backup

res

Good one bro @Ambor ^^

Pandemic said:
Good one bro @Ambor ^^
Click to expand...
Click to collapse
Thanks

Thanks Bro @Ambor ??

Ambor said:
Thanks
Click to expand...
Click to collapse
Nice tutorial bro @Ambor

Thanks, marvelous post indeed.

dsa88 said:
Thanks, marvelous post indeed.
Click to expand...
Click to collapse
Thanks

Related

[Q] How to insert admob in app help me

hi guys
could you help me to put the banner in my app.
I also followed the guides but I still can not insert
You might even see me lines of code please
thanks
what problem are you getting????
Atleast tell the problem or provide the code where you are facing problem.
Simple:
1) Install Google AdMob Ads SDK (you can use Android SDK Manager for that)
2) Add GoogleAdMobAdsSdk.jar to your project (Project Properties>>Java Build Path>>Add External JARs…)
3) In the Manifest add ACCESS_NETWORK_STATE and INTERNET permissions, and also an activity inside application tag, like that:
Code:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:debuggable="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:label="@string/app_name"
android:name=".BillingSampleActivity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:name="com.google.ads.AdActivity" />
</application>
4) Get Publisher ID from AdMob
5) Add banner to your layout
Code:
<com.google.ads.AdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adSize="BANNER"
ads:adUnitId="your_admob_publisher_id"
ads:loadAdOnCreate="true" />
Thats it!
GRYMALA said:
Simple:
1) Install Google AdMob Ads SDK (you can use Android SDK Manager for that)
2) Add GoogleAdMobAdsSdk.jar to your project (Project Properties>>Java Build Path>>Add External JARs…)
3) In the Manifest add ACCESS_NETWORK_STATE and INTERNET permissions, and also an activity inside application tag, like that:
Code:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:debuggable="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:label="@string/app_name"
android:name=".BillingSampleActivity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:name="com.google.ads.AdActivity" />
</application>
4) Get Publisher ID from AdMob
5) Add banner to your layout
Code:
<com.google.ads.AdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adSize="BANNER"
ads:adUnitId="your_admob_publisher_id"
ads:loadAdOnCreate="true" />
Thats it!
Click to expand...
Click to collapse
Nice answer! Thanks for this.

[Q] sd card write fix applied, now apps keep crashing

Running 4.4.2 on ATT 1337 with NC1.
Ran towelroot and SuperSU so I could use TB to get all my stuff from my Note 3 to my S4 (company downgrade, don't ask).
Edited the platform.xml to this:
<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>
Now I get "email has stopped working", "Flipboard has stopped working" popups every 3 seconds. I "ok" them and they come right back. Many other apps do this as well randomly. Playstore will not work either. I assume the platform.xml change FUBARED things. But even with ES file explorer set to "root explorer" it will not save the changes again. How can I restore the platform.xml file?!?!
Also ran root checker, says "Sorry this device has no root."
WTF is going on?

Galaxy s4 i9500 lollipop problem

Hey guys my s4 was on stock 4.2.2 jellybean firmware but when i heard that lollipop was finally available for my device it was tthen i decided to update to 5.0.1
After updating i have been facing ISSUES with my phone's sd card writing operations
I cannot copy files from pc using usb cable neither can i transfer files from pc using superbeam
No new folder can be created in sd card and and i can create folders in phone storage but it shows connection error everytime
I would be very thankful to anyone who can help me sort this problem
P.s Please try to suggest methods which dont require rooting
Kitkat and Lollipop changed the way Android used the SD card -
http://www.androidcentral.com/kitkat-sdcard-changes
You can fix this, but you'll need to be rooted. Not heard of any non rooted solutions personally.
dave106 said:
Kitkat and Lollipop changed the way Android used the SD card -
http://www.androidcentral.com/kitkat-sdcard-changes
You can fix this, but you'll need to be rooted. Not heard of any non rooted solutions personally.
Click to expand...
Click to collapse
I really need to fix this so i will even root
I will use towelroot for the purpose
can you tell that what would i need to do further to restore full sd card access
Once rooted, goto system/etc/permissions and edit 'platform.xml'
Find this section -
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
</permission>
And add another line so it looks like this -
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
Save and reboot
dave106 said:
Once rooted, goto system/etc/permissions and edit 'platform.xml'
Find this section -
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
</permission>
And add another line so it looks like this -
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
Save and reboot
Click to expand...
Click to collapse
thanx for help bro

SD card r/w

I'm using an sd card from my old s5 on a rooted nvidia shield 16 gb and it now let me made edits to that sd card. Is there a fix to this or what? It's usually fixed through root but I am drawing a blank for this.
You need to edit external storage r w permissions, I believe if you download foldermount it does this automatically. I don't have the exact file that you edit in mind yet but will update soon with directions, unless someone else can get here first?
This would be extremely helpful.
Sent from my SM-G925V using Tapatalk
To fix external drive r/w I did the following (root required):
Go to /system/etc/permissions/ with a file manager.
Locate platform.xml file.
Open it with an editor.
Find:
Code:
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
</permission>
and add the line <group gid="media_rw" />
You will have in the end:
Code:
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
Reboot.
Thank you for this!!
Sent from my SM-G925V using Tapatalk

Titanium Backup, no ext sdcard write access?

So after successful rooting my S7 Edge and made my first backup in Titanium Backup, but when I tried to save my backup locations to my micro SD card. Titanium Backup backup says, this folder is not a writable folder. Which doesn't make any sense because my other apps can read/ write from my micro SD card.
Ex. Moon Reader Pro, it writes to my micro SD just fine.
In settings/ Applications/ Application Manager/ Titanium Backup, I have storage permission enabled. Anyone else having this issue or any ideas?
The only thing I can think of is, my other apps had a pop up that asked for my permission (Enable) to write to SD card. Titanium never had a pop up, but like I said the storage permission was already enabled when checked it settings/ application manager.
This is how I fixed it thanks to inspired55
inspired55 said:
<permission name="android.permission.READ_LOGS" >
<group gid="log" />
</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.WRITE_MEDIA_STORAGE" >
<group gid="media_rw" />
<group gid="sdcard_rw" />
<group gid="sdcard_all" />
try adding the lines in blue to the folder etc/permissions/platform.xml to fix writing to external sdcard . This fixed for me on s7 mm ported rom on my s5.
Click to expand...
Click to collapse
Add those blue line in the platform.xml like he says
Sent from my SM-G935T using Tapatalk
You can write to sdcard /Android/data/com.keramidas.TitaniumBackup
Change your storage provider at the top of the menu to DocumentProvider storage.

Categories

Resources