Set folder permissions through ADB - Android Q&A, Help & Troubleshooting

Hi,
I new on XDA, I heard that this is the biggest android developers community.
first of all, sorry if my english is bad.
I have a problem with my device.
I was stupid and i've set my /system folder permissions (with ES File Explorer) to un-read and un-write able.
I dont know how to explain it, but the result of my doing is that the device had reboot himself a second after, and wont boot up anymore...
The device cant read the system folder because i've changed the permissions!
how can I restore the permissions through ADB on my PC?
or through recovery mode with the "apply update from ADB", by open it and somehow send an permission-command through ADB...
NOTE: I have a chinese phone "AKAI DRAGON" AND I DONT HAVE THE UPDATE.ZIP! I cant reinstall the android.
any help?

Related

Writing Files to System?

I am trying to install a custom boot animation.
It says to put default.xml in system/customize/CID
I tried to do this with a root explorer but it said copy failed and I cant delete the default xml that is already there. Is it because it is being used? How would I do it with the phone off?
I dont understand how.
You could just flash one. Use bootscoot2, there's a thread in development.
jedinegotiator said:
I am trying to install a custom boot animation.
It says to put default.xml in system/customize/CID
I tried to do this with a root explorer but it said copy failed and I cant delete the default xml that is already there. Is it because it is being used? How would I do it with the phone off?
I dont understand how.
Click to expand...
Click to collapse
generally, the system is normally mounted in read only at boot. before making any changes to the system partition you'll need to mount the system in read/write mode. there is an app in the market by a senior xda moderator which helps with mounting the system as read/write called remount.
if, for some reason, you aren't able to modify the file because it is in use, then putting the phone in recovery mode, will be the next best way to access the /system partition with read/write access and not have any of the /system files be in use.
loading update.zip files where people have packaged up modifications in recovery mode, generally work well because recovery mode runs as root and there is the guarantee the recovery mode does not rely on and does not use any /system files.
hope that helps!

changed permission of /system/ with yaffs explorer. phone keeps rebooting

Hi,
i accidently changed the permission of the folder "system" to READ only. atleast i think so... i used Yaffs Explorer to change permission of "system" and i ticked the first line on all 3.
again.. this was an accident cuz i didnt know what i was doing.
now the problem is my phone just keeps restarting ... and then it boots into recovery (3e) on its own...
i tried using ADB to change the permission with adb shell ... and all that.. problem is
adb works. phone connects and shows off as device.
but if i try using the adb shell command or any other command with adb ( except sideload ) it tells me
"PERMISSION DENIED" and similar messages...
i have no clue how to safe my phone now any help would be much much appreciated.
i thought something of my own...
is it possible to write a shell script which changes the permission of "system" folder to its correct one.. make it as a .ZIP file and update use it with "update from adb"
please any help^^
best regards
Krype
I assume you are rooted have you gone into CWM and reset permissions?

[Q] How to create simple updater-script that only changes file permissions?

Hello,
Does anyone know how create a very simple "updater.zip" file that does nothing except run the "set_perm_recursive" function and set the "/storage/sdcard0/DCIM" folder and all files/folders under it to 777?
I recently screwed up my wife's phone trying to install an app, and didn't have a backup. Now it is stuck on the bootup image screen and won't finish booting up. I am trying to download her photos.
I connected using ADB pull, but since I don't have root on the phone... I don't have permissions to access the /storage/sdcard0/DCIM folder.
So I thought it might be possible to create a simple "updater.zip" script that I can run from the recovery screen, which would give world read/write permissions to the /storage/sdcard0/DCIM folder. Then I can use ADB pull to get a copy of all her pictures to my computer.
Thanks for any help!

Deleted /system/vendor folder using ES File Manager Explorer

Hello,
I have Lenovo S720 running on Android 4.0.4 that I recently factory reset because It has only few little internal storage (~1,4 GB), and cannot support many updating apps.
After I do that, whats left in the internal storage is about 500 MB of storage, the rest being taken up by the system (I suppose).
I installed Framaroot to root the device, then System App Uninstaller (ROOT) and ES File Explorer.
First, I try to uninstall any bloatware with the System App Uninstaller -> I didn't get much free internal storage.
Then, I use ES File Explorer to seek, which folder took up the most space.
-> One of the is /system/vendor folder.
-> So, I copied that folder to /mnt/sdcard/backupsys/ (or /sdcard/backupsys/ [little bit forget]), Thinking it would come in handy later.
-> Then, I (foolishly) proceed to delete the folder using the root privileges .
-> It took a moment until all of my app start crashing (including the ES File Explorer!).
-> I turned-off the device, and now it still stuck in the (what I think as) "bootloop" mode.
Fortunately I still can communicate to the phone using adb tools, which I have a little knowledge of. But, the pm and am command cannot function well.
Now, I'm only thinking about moving back the vendor folder from /mnt/sdcard to the /system folder.
But I encounter some problem:
1) I can't (& don't know how to) write to the /system
2) I can't (& don't know how to) read from the /sdcard
- command 'ls' inside this dir returned nothing.
Glad I have the "su" tools from the Framaroot. I searched on the Internet and it seems the problem can be solved with mount tools, but I don't know how.
ls -la tools on root (/) return:
(other dir)
root /system ,,,,,,,,,,other info,,,,,,,
system /sdcard ,,,,,,,,,,other info,,,,,,,
(other dir)
So maybe because I can't gain system account, I can't access the folder and read it...
I try to hard-reset in the recovery mode, but I can't select the options! (I can move the selector with volume up/down) but I cant click it with the power button!
The phone seems to be worse every second.
My main question is: can I recover my phone (copying the vendor folder back) using command tools on my development computer? Or is there any other ways?
I'm willing to install any custom ROM best suited to my phone.
Thanks in advance.
Hello,
Welcome to XDA.
If you have a copy of what you deleted or can get it from somewhere and you want to adb push your missing files and folders back to your device then you need to have the files you want to push stored on your PC and push them from there to the device. For instructions on how to use adb read through the thread linked below and go from there.
http://forum.xda-developers.com/showthread.php?t=2141817
If you have further questions or need further help with using adb then you can post in the Q&A forum linked below:
http://forum.xda-developers.com/android/help

How to delete file in folder system/etc/permisions with adb

Hi everybody
I have one question about adb
I want delete one file in system and push another file confusederform.xml) how to replace ????
My device full rooted and recovery not work (no commond line)and cant anything install app because dont show anything (memory empty)but my storage is half_full

Categories

Resources