Go Back   Android Forums > Android Discussion > Android Lounge
Android Lounge A place for general Android discussion and questions.

test: Reply
 
LinkBack Thread Tools
Old December 20th, 2012, 04:48 AM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Dec 2012
Posts: 4
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 1 Time in 1 Post
Default Is there any way to edit files in Root Folder from outside?

I overwritten some of stock fonts with my downloaded fonts from internet and forgot to set permissions of these fonts file to rw-r--r-- and now the phone keeps rebooting itself when I turn it on

Help me, I don't want to lose all app data just because of a stupid mistake like that, is there any way I can access Root Folder from outside? I need to set permissions of those fonts back so the system can use them and won't reboot itself

My phone is rooted, but it won't allow me to do anything on it at the moment because it reboot itself before I can do anything

I'm using Samsung Galaxy Mini

Advertisements
SurrealClick is offline  
Reply With Quote
sponsored links
Old December 20th, 2012, 05:01 AM   #2 (permalink)
AF Contributor
 
Hadron's Avatar
 
Join Date: Aug 2010
Location: Dimension Jumping
Posts: 12,324
 
Device(s): HTC One (S-Off), HTC Desire (retired)
Carrier: Orange UK

Thanks: 2,282
Thanked 5,170 Times in 3,725 Posts
Default

Hi SurrealClick, and welcome to AF,

If you can't boot into android, here are a couple of possibilities:

* If you are using a custom ROM, flash the ROM again without doing a factory reset (as it's the same ROM a wipe isn't needed). This will overwrite any changes you have made to the system files, including these fonts.

* If you have a recent nandroid backup (from before the change), restore that. You will of course lose any data newer than the backup, so it depends how recent the backup is.

* If you have a custom recovery you should be able to use adb with the phone in recovery mode. In which case, use "adb shell" to issue linux commands to change the file permissions ("chmod 644 filename" should give you rw-r--r--) - you may need to mount system first, perhaps use "sudo chmod ...", but it should be possible). You could also use "adb push" to push different font files there if the problem is more severe than the permissions.
__________________
Forum Rules & Guidelines - Android Forums FAQ
If a post helps you, use the Thanks! button.
Spam or offensive? Don't respond, report it /!\
Hadron is online now  
Reply With Quote
The Following User Says Thank You to Hadron For This Useful Post:
SurrealClick (December 20th, 2012)
Old December 20th, 2012, 05:11 AM   #3 (permalink)
New Member
Thread Author (OP)
 
Join Date: Dec 2012
Posts: 4
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 1 Time in 1 Post
Default

Quote:
Originally Posted by Hadron View Post
Hi SurrealClick, and welcome to AF,

If you can't boot into android, here are a couple of possibilities:

* If you are using a custom ROM, flash the ROM again without doing a factory reset (as it's the same ROM a wipe isn't needed). This will overwrite any changes you have made to the system files, including these fonts.

* If you have a recent nandroid backup (from before the change), restore that. You will of course lose any data newer than the backup, so it depends how recent the backup is.

* If you have a custom recovery you should be able to use adb with the phone in recovery mode. In which case, use "adb shell" to issue linux commands to change the file permissions ("chmod 644 filename" should give you rw-r--r--) - you may need to mount system first, perhaps use "sudo chmod ...", but it should be possible). You could also use "adb push" to push different font files there if the problem is more severe than the permissions.
Thank you for responding Can you be more detailed about the "adb shell" or a link to a guide? I don't have a custom recovery nor ROM. Is there any way to flash the stock rom?
I don't have any backup, so I can't use 2nd method
SurrealClick is offline  
Reply With Quote
Old December 20th, 2012, 06:55 AM   #4 (permalink)
New Member
Thread Author (OP)
 
Join Date: Dec 2012
Posts: 4
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 1 Time in 1 Post
Default

I've flashed my rom, it worked fine again and I didn't lose any apps data.
SurrealClick is offline  
Reply With Quote
Old December 20th, 2012, 07:14 AM   #5 (permalink)
AF Contributor
 
Hadron's Avatar
 
Join Date: Aug 2010
Location: Dimension Jumping
Posts: 12,324
 
Device(s): HTC One (S-Off), HTC Desire (retired)
Carrier: Orange UK

Thanks: 2,282
Thanked 5,170 Times in 3,725 Posts
Default

Good news
Hadron is online now  
Reply With Quote
The Following User Says Thank You to Hadron For This Useful Post:
SurrealClick (December 21st, 2012)
Reply


Go Back   Android Forums > Android Discussion > Android Lounge
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 07:42 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.