Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,730,914 Members 45,401 Now Online
XDA Developers Android and Mobile Development Forum

HTC 816 how to modify the platform.xml file with out breaking the system protection

Tip us?
 
SivasankarC
Old
#1  
Junior Member - OP
Thanks Meter 10
Posts: 24
Join Date: Jul 2014
Tutorial HTC 816 how to modify the platform.xml file with out breaking the system protection

the Other modules for updating the platform.xml file is bit complex and risky....

below are the steps which is easy and safe

advantages ::
1) you can save the Kernel, from any modifications..
2) you still can keep the system protection ON and dont have to break it


Friends...

here is the workaround i Did and succeeded.....

note : 1 ) rooted mobile 2) should have installed twrp recovery in the mobile... 3) terminal emulator for android installed


1) I made a copy of platform.xml in my sd card and copied to PC

2) edited the platform.xml using note++ in my pc like below...



<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_STORA GE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="sdcard_all" />
<group gid="media_rw" />
</permission>


3) copied the modifed file again to sd card of the phone

4) modify the ownership and permission of platform.xml for mobile requirement ::

i) use the terminal emulator for android
ii) open the term

( i) type the following a) su b) cd /ext_sdcard/path/ c) ls -l |grep -i plat

d) chown root:root platform.xml e) chmod 644 platform.xml f) ls -l |grep -i plat --> verify if the permission is ( rw-r-r root root )


4) rebooted the mobile to twrp recovery

5) using mount option mount system & sd card

6) using advanced option, go to filemanager and /system/etc/permissions/ select the file ( platform.xml)
i) it will show special menu rename the original platform.xml to platform.xml.org

7) go back to filemanager, /ext_sdcard/path..../ copy the platform.xml from sdcard to /system/etc/permissions/ ( system location )

8) using chmod change the permission to 0644 ( check the owner information too, skip if the 4 step is completed )

9) reboot the mobile...

10) you can see any applications requiring sd card access will be happy & not annoying about the write permission on the sd card...

11) you can verify if the file has been modified or not by using the terminal emulator

i) use the terminal emulator for android
ii) open the term

i) type the following a) su b) cd /system/etc/permissions/ c) ls -l |grep -i plat d) cat platform.xml ( you can see the new entries in them )


12) if this fails, go back to twrp recovery and
remove or delete the newly added platform.xml and rename the original file to its former state....



Let me know if you succeed in this or need any help ....



:h ighfive::g ood:
The Following 3 Users Say Thank You to SivasankarC For This Useful Post: [ Click to Expand ]
 
kishorparmar
Old
#2  
Senior Member
Thanks Meter 13
Posts: 141
Join Date: Apr 2011
hi SivasankarC,
give me your modify-platform-xml-file plesssss.....
HTC desire 816

Samsung Galaxy Note GT-N7000.

Micromax A117

Micromax A116 hd.
 
SivasankarC
Old
#3  
Junior Member - OP
Thanks Meter 10
Posts: 24
Join Date: Jul 2014
Quote:
Originally Posted by kishorparmar View Post
hi SivasankarC,
give me your modify-platform-xml-file plesssss.....
ok done ............

https://drive.google.com/file/d/0B-0...it?usp=sharing

goodluck....
The Following User Says Thank You to SivasankarC For This Useful Post: [ Click to Expand ]
 
kishorparmar
Old
(Last edited by kishorparmar; 12th July 2014 at 10:31 AM.)
#4  
Senior Member
Thanks Meter 13
Posts: 141
Join Date: Apr 2011
Quote:
Originally Posted by SivasankarC View Post
---------------------
Thanks bro.......

---------- Post added at 02:57 PM ---------- Previous post was at 02:20 PM ----------

hi SivasankarC,

terminal emulator staps is necessary ?
if I do this staps copy past your modify-platform-xml-file from twrp recovery

1- copy your modify-platform-xml-file to sd card
2- rebooted to twrp recovery
3-using mount option mounted system & sd card
4-using advanced option, renamed the original platform.xml to platform.xml.backup
5-copied the platform.xml from sdcard to system location
6- using chmod i changed the permission to 644
7-reboot the mobile

its working ?

thanks.
HTC desire 816

Samsung Galaxy Note GT-N7000.

Micromax A117

Micromax A116 hd.
 
SivasankarC
Old
#5  
Junior Member - OP
Thanks Meter 10
Posts: 24
Join Date: Jul 2014
Quote:
Originally Posted by kishorparmar View Post
---------------------
Thanks bro.......

---------- Post added at 02:57 PM ---------- Previous post was at 02:20 PM ----------

hi SivasankarC,

terminal emulator staps is necessary ?
if I do this staps copy past your modify-platform-xml-file from twrp recovery

1- copy your modify-platform-xml-file to sd card
2- rebooted to twrp recovery
3-using mount option mounted system & sd card
4-using advanced option, renamed the original platform.xml to platform.xml.backup
5-copied the platform.xml from sdcard to system location
6- using chmod i changed the permission to 644
7-reboot the mobile

its working ?

thanks.
Yes that should do the magic......

after reboot...........

just check this

i) type the following a) su b) cd /system/etc/permissions/ c) ls -l |grep -i plat

both the platform files should be having same permissions.... rw-r-r and root:root

check if application has the access to ext sd card.....
The Following User Says Thank You to SivasankarC For This Useful Post: [ Click to Expand ]
 
kishorparmar
Old
#6  
Senior Member
Thanks Meter 13
Posts: 141
Join Date: Apr 2011
Quote:
Originally Posted by SivasankarC View Post
Yes that should do the magic......

after reboot...........

just check this

i) type the following a) su b) cd /system/etc/permissions/ c) ls -l |grep -i plat

both the platform files should be having same permissions.... rw-r-r and root:root

check if application has the access to ext sd card.....
----------------------
thanks.
HTC desire 816

Samsung Galaxy Note GT-N7000.

Micromax A117

Micromax A116 hd.
 
kishorparmar
Old
#7  
Senior Member
Thanks Meter 13
Posts: 141
Join Date: Apr 2011
hi SivasankarC
Its Possible we Swap Internal and External Memory on rooted htc 816 ?
HTC desire 816

Samsung Galaxy Note GT-N7000.

Micromax A117

Micromax A116 hd.
 
SivasankarC
Old
#8  
Junior Member - OP
Thanks Meter 10
Posts: 24
Join Date: Jul 2014
Quote:
Originally Posted by kishorparmar View Post
hi SivasankarC
Its Possible we Swap Internal and External Memory on rooted htc 816 ?
I am pretty much sure, that can be done........... filesystem entries has to be modified... and might be many other short cuts has to be re-linked.....


but i have not done that............ it might ruin the speed and possibly corrupt....

use a good sd card ( i use samsung pro card ) and use folder mount application buy pro....

phone should be rooted,,,,

after any application is installed in the device....

1) manually stop the application from apps->services....
2) use root explorer to move the entire content of the apps to sd card....
3) use folder mount app to create a link to directory....
4) start the apps....

( i used in NFS MW moved the 2 gb data to sdcard and base app in internal mem game is working good no issues )

by doing this, you can have the apps in sd card, with the internal memory free....

some basic apps like players.... etc if installed in internal memory will have good response time....
but having entire apps in sd card... hmmm i dont recommend....
 
kishorparmar
Old
#9  
Senior Member
Thanks Meter 13
Posts: 141
Join Date: Apr 2011
hi SivasankarC,

thanks for reply....
HTC desire 816

Samsung Galaxy Note GT-N7000.

Micromax A117

Micromax A116 hd.
 
badassballer
Old
#10  
Member
Thanks Meter 10
Posts: 79
Join Date: Jan 2009
Quote:
Originally Posted by SivasankarC View Post
the Other modules for updating the platform.xml file is bit complex and risky....

below are the steps which is easy and safe

advantages ::
1) you can save the Kernel, from any modifications..
2) you still can keep the system protection ON and dont have to break it


Friends...

here is the workaround i Did and succeeded.....

note : 1 ) rooted mobile 2) should have installed twrp recovery in the mobile... 3) terminal emulator for android installed


1) I made a copy of platform.xml in my sd card and copied to PC

2) edited the platform.xml using note++ in my pc like below...



<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_STORA GE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="sdcard_all" />
<group gid="media_rw" />
</permission>


3) copied the modifed file again to sd card of the phone

4) modify the ownership and permission of platform.xml for mobile requirement ::

i) use the terminal emulator for android
ii) open the term

( i) type the following a) su b) cd /ext_sdcard/path/ c) ls -l |grep -i plat

d) chown root:root platform.xml e) chmod 644 platform.xml f) ls -l |grep -i plat --> verify if the permission is ( rw-r-r root root )


4) rebooted the mobile to twrp recovery

5) using mount option mount system & sd card

6) using advanced option, go to filemanager and /system/etc/permissions/ select the file ( platform.xml)
i) it will show special menu rename the original platform.xml to platform.xml.org

7) go back to filemanager, /ext_sdcard/path..../ copy the platform.xml from sdcard to /system/etc/permissions/ ( system location )

8) using chmod change the permission to 0644 ( check the owner information too, skip if the 4 step is completed )

9) reboot the mobile...

10) you can see any applications requiring sd card access will be happy & not annoying about the write permission on the sd card...

11) you can verify if the file has been modified or not by using the terminal emulator

i) use the terminal emulator for android
ii) open the term

i) type the following a) su b) cd /system/etc/permissions/ c) ls -l |grep -i plat d) cat platform.xml ( you can see the new entries in them )


12) if this fails, go back to twrp recovery and
remove or delete the newly added platform.xml and rename the original file to its former state....



Let me know if you succeed in this or need any help ....



:h ighfive::g ood:

Thank you so much for this mate. Helped a lot and saved me a lot of trouble
HTC Desire 816 - The Dual Sim Version - Stock Rom - Rooted -
Samsung Galaxy Tab 2 - 7" - Butternutz Rom - Custom Kernel -

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


TRENDING IN THEMER...