Interesting issue, possibly permissions error? - HTC Droid DNA

I've messed with some of my files on my phone through ES File manager, and I kept getting errors with a specific folder, I then realized that, it's only happening with the folder I created while pushing a file through adb. ESFM has root permissions enabled, but I could not find where to view the permissions for a folder, only files. I also managed to change the stuff in the folder while in recovery. Do I need to set the permissions for the folder through adb right after i create it, or is it a bug somewhere with the ROM/device, or just a random error? If someone could provide an explanation it would be nice.
Viper 1.2.0
s-off

ML417 said:
I've messed with some of my files on my phone through ES File manager, and I kept getting errors with a specific folder, I then realized that, it's only happening with the folder I created while pushing a file through adb. ESFM has root permissions enabled, but I could not find where to view the permissions for a folder, only files. I also managed to change the stuff in the folder while in recovery. Do I need to set the permissions for the folder through adb right after i create it, or is it a bug somewhere with the ROM/device, or just a random error? If someone could provide an explanation it would be nice.
Viper 1.2.0
s-off
Click to expand...
Click to collapse
See if you can duplicate the error while pulling a logcat. That will help out in solving your problem.

if you dont wanna do that just adb remount and chmod the folder either through adb or adb shell access then restart phone

It's specific to only the folder i created through adb. I'm wondering if anyone else experienced it, or if it is only on my phone

what type of folder and either way you should be able to just adb shell then su then chmod /path to folder

t1gartist said:
what type of folder and either way you should be able to just adb shell then su then chmod /path to folder
Click to expand...
Click to collapse
I created the folder on the /sdcard while pushing a file from my computer. The folder was still accessable, I just wasn't able to copy anything into it/edit it. What permissions would be given to a folder like that if i didn't specify them?

you should have been able to read and write by default all of mine are... erm.... delete the folder and create it via root browser or what ever explorer you have and you should be able to long press and access permissions

Related

Root: Replacing system sound files

Ok so I have rooted my Hero and all is well. I've been trying to replace the sound files in system/media/audio/ui where the keyboard sounds are. I find that I cannot move a file into that folder, or apparently any of those folders. When I try to paste a copied or cut file using root explorer into the ui folder, the file just doesn't appear.
Why is this?
Switchbitch said:
Ok so I have rooted my Hero and all is well. I've been trying to replace the sound files in system/media/audio/ui where the keyboard sounds are. I find that I cannot move a file into that folder, or apparently any of those folders. When I try to paste a copied or cut file using root explorer into the ui folder, the file just doesn't appear.
Why is this?
Click to expand...
Click to collapse
have you tried with and without file extention?
Yes. Root explorer just won't let me move any files around in the phone memory. Do I have to do it using adb?
I have a feeling its Root Explorer not working properly in Hero.
I could do this easily on my magic, but I get the same thing - looks like its copied the file, but when I paste, nothing happens at all.
I did manage to delete the Stocks app. from the device (don't use it or need it) using root explorer but other attempts to copy and pasdte have failed.
I have however managed to successfully use Astro File Manager to copy a wallpaper file from the device memory and paste to the SDcard. Will explore Astro a little further and see if it can do more on the device.
Dayz
Phew, not just me being thick then....
I spent most of today trying to backup an .apk from /data/app-private to /sdcard. No luck with Root Explorer, adb pull or a 'cp' from the shell. "Remote file does not exist" was the result of the last two, but it's displayed by ls.
I think anything in app-private is a no go anyway as it contains copy protected apps. With regard to astro - it can copy from device in certain locations, and paste to sd to back up, but it can't delete from the device, and it can't copy or move files to the device.
Daisy xx
Dayzee said:
I think anything in app-private is a no go anyway as it contains copy protected apps.
Click to expand...
Click to collapse
Hmm, thanks Daisy. Will get on to the app's developer, as it was his advice to gain the ability to change location settings that I tried to follow.
Al
Shluggity said:
Phew, not just me being thick then....
I spent most of today trying to backup an .apk from /data/app-private to /sdcard. No luck with Root Explorer, adb pull or a 'cp' from the shell. "Remote file does not exist" was the result of the last two, but it's displayed by ls.
Click to expand...
Click to collapse
Try
Code:
adb shell
su
cat /data/app-private/some.app.apk > /sdcard/some.app.apk
exit
exit
adb pull /sdcard/some.app.apk some.app.apk
...it worked for me on a stock, rooted HTC Hero.
Switchbitch said:
Ok so I have rooted my Hero and all is well. I've been trying to replace the sound files in system/media/audio/ui where the keyboard sounds are. I find that I cannot move a file into that folder, or apparently any of those folders. When I try to paste a copied or cut file using root explorer into the ui folder, the file just doesn't appear.
Why is this?
Click to expand...
Click to collapse
Unless you made other changes than rooting, the /system partition is mounted read-only by default. As far as I know, you'll have to follow one of the root guides to mount it read-write (like you probably did to get /system/bin/su in place) and then do whatever changes you'd like.
Personally, I got tired of the boot audio real fast, so I changed useAudio in /system/media/boot_animation.xml from "1" to "0". Ahh, blessed boot silence...
nrkabul said:
Try
Code:
adb shell
su
cat /data/app-private/some.app.apk > /sdcard/some.app.apk
exit
exit
adb pull /sdcard/some.app.apk some.app.apk
...it worked for me on a stock, rooted HTC Hero.
Click to expand...
Click to collapse
And work it did for me also! Many thanks for your help - I really appreciate it.

ADB help

ok so today i tried to use a new boot animation zip and at first i tried to do it through an explorer but that didnt work as astro didnt let me paste the zip file so instead i went the adb route thought i didnt know how to use it.
i installed the files from here: http://sites.google.com/site/androidsamurai/Home/adb-for-dummies-1 and opened cmd, i used cd to get to the directory of my adb then i used adb devices to see if my phone was recognized which it was. then i used adb push bootanimation.zip /data/local and it said it copied since it gave me the speed stats, the file size and the time it took. i used astro to look inside the folder but it was empty. i then proceeded to do a few random things like remount and such and repush and the zip would just not appear in the /data/local folder. i then tried adb shell bootanimation just for kicks and it seemed to work, though i didnt know how to stop the animation besides closing my cmd. after that i tried to reboot and it got stuck at the bootanimation so then i used the 1.8.1 update and reinstalled it and i got past boot loop and for some reason the boot animation is the one i tried to install (the stock dell one that is in the themes forum) but the folder still doesnt exist in /data/local.
like i said im an adb noob, so please guide me through the entire proper way to push a bootanimation to my phone and to figure out where i pushed the previous to since it seems to be somewhere but i tried using astro search but cant find it. any help would be appreciated, thanks!
I'm not super talented at ADB either, but i believe that you should copy the boot animation zip into the same folder as ADB on your computer and then run this:
adb push bootanimation.zip /data/local
Also, there is a file manager called Root Explorer, you should use that instead of Astro because astro doesn't allow you to go into some of the system level directories (exactly what your dealing with in this case) but Root Explorer does. That's probably why you can't find what you flashed before.
Hope this helps
- pat
yeah apparently it seems that astro cant view some root files/folders
copy and paste with root explorer is easiest - like you though I am teaching myself how to use adb - get adb wireless btw - its cool if you dont have your cable to hand

accidentally move "/system/bin/sh" file on htc aria 2.2

Dear All,
I have been accidentally move the /system/bin/sh file to my SD card,
now, all my app which need root was not function..
What should I do now...?
Please help..... T_T
Move it back.
thankz for reply..
But, any suggestion to move back?
cause now I can't move it back via my phone file manager as the sh file was a
read only file..
Please advise any suggestion that how i can move back
really need advise...
peter tham said:
thankz for reply..
But, any suggestion to move back?
cause now I can't move it back via my phone file manager as the sh file was a
read only file..
Please advise any suggestion that how i can move back
really need advise...
Click to expand...
Click to collapse
You can probably use adb or Terminal Emulator (Free on market) directly on your phone.
Regards
SprigganMaster said:
You can probably use adb or Terminal Emulator (Free on market) directly on your phone.
Regards
Click to expand...
Click to collapse
Dear SprigganMaster,if I use terminal emulator,what was the initial command?
Cause the 'sh' file I move from system,it seem like a script ,and when I open the scree of emulator,I can't type any things...
For your info,I move the 'sh' file from /system /bin/ folder to my SD card /folder.
by using apk root explore,as a result,without the 'sh' script file in /system/bin folder,when I can't access to root explore anymore-force close.
Then I can't move back the 'sh' file to the system/bin folder.
All those root apk does not work anymore...
Now,I am trying my best to get a way to move back the 'sh' file (which is read only file) to my system folder...
Can u guide me about it? Using terminal emulator or any alternative way to move back the file into system?
Waiting your prompt reply and really appreciate it.
Thankz....^^
Hello peter tham,
Please note : my phone is not rooted. I can't try these solutions and I'm quite new to android. Maybe someone with more experience could help you.
I'm not sure if Terminal Emulator use the sh file too but we can try...
To move file, the command is mv.
To copy a file, the command is cp.
Adapt this command with the correct folder where you put the sh file :
Code:
cp /FOLDER/sh /system/bin/
You will need to be root to copy a file to /system folder.
Usually, to gain root privileges, you use the command su.
If Terminal Emulator does not work, you can try with adb.
1- Download sh file to your computer.
2- open a shell (on windows : cmd, on linux whatever you're using as shell)
3- plug your phone in Charge Only mode with USB debuging On
4- Push the file with a command like this one :
Code:
adb push foo.txt /sdcard/foo.txt
adb push <local> <remote>
You can find more info on adb here :
http://wiki.cyanogenmod.com/wiki/ADB
and here :
http://developer.android.com/guide/developing/tools/adb.html
Good Luck

[Q] Is there an easier way to move files?

Currently, if I want to add a new custom wallpaper. I make it on my PC using GIMP, save it, plug in my reZound, switch to disk drive, copy the file to my sd card, unplug my reZound, go to ES File explorer, navigate to ex_sd, copy the file, navigate to /system/customize/resources, paste the file, go to home, change wallpaper. Now, I can do all that faster than I can type out the steps, but is there someway to move the file straight from my PC to the /system/customize/resources folder?
Thanks
pmterp said:
Currently, if I want to add a new custom wallpaper. I make it on my PC using GIMP, save it, plug in my reZound, switch to disk drive, copy the file to my sd card, unplug my reZound, go to ES File explorer, navigate to ex_sd, copy the file, navigate to /system/customize/resources, paste the file, go to home, change wallpaper. Now, I can do all that faster than I can type out the steps, but is there someway to move the file straight from my PC to the /system/customize/resources folder?
Thanks
Click to expand...
Click to collapse
Just put them on your sd card in a folder called /media/images/ and you can apply them with the gallery
NilsP said:
Just put them on your sd card in a folder called /media/images/ and you can apply them with the gallery
Click to expand...
Click to collapse
Or I think he can push with adb. I don't know the exact commands so if anyone can help with the commands...
Sent from my ADR6425LVW using Tapatalk
xxxxxx.png is the name of the image:
adb push xxxxxx.png /system/customize/resource
NilsP said:
xxxxxx.png is the name of the image:
adb push xxxxxx.png /system/customize/resource
Click to expand...
Click to collapse
Probably need to adb remount first. Here's my suggestion, make a batch file/script something like this:
echo off
adb wait-for-device
adb remount
adb push somdirectory/newwallpaper.png /system/customize/resource/
MrSmith317 said:
echo off
adb wait-for-device
adb remount
adb push somdirectory/newwallpaper.png /system/customize/resource/
Click to expand...
Click to collapse
That works great. Thanks everyone. Now, what about the reverse? Is there a way to get the files (default wallpapers, apks, etc.) pushed to my computer? I tried running the same script and reversing the file and destination but that did not work.
Edit: Never mind, found it. adb pull
I haven't used adb commands since I was rooting my eris, thanks guys.

[Q] Trouble accessing root

Hello. I am having a lot of trouble accessing root folders [/etc] to paste a new gps.conf. I was wondering if anyone might know why this is, or have a fix. I have searched for similar problems in the forums, and seemed to get some similar problems, but no specific answers.
Phone model: HTC Desire GSM
Android version: 2.3.7
Oxygen ROM 2.3.2-bravo
I have tried using root explorer (yes setting root and etc to r/w, not r/o) and ES explorer (turning on all the root access settings).
When I try to either paste a new gps.conf to the etc folder, it gives me no error messages, but will not overwrite the old file.
Any ideas are welcome
Try using terminal emulator:
Code:
su
cp /your/gps.conf /etc/gps.conf
Or using adb:
Code:
adb remount
adb shell "cp /your/gps.conf /etc/gps.conf"
RoberGalarga said:
Try using terminal emulator:
Code:
su
cp /your/gps.conf /etc/gps.conf
Or using adb:
Code:
adb remount
adb shell "cp /your/gps.conf /etc/gps.conf"
Click to expand...
Click to collapse
I tried this and it says it cannot copy - out of memory
Having searched for this issue, I found that it has nothing to do with memory, but simply that the user does not have permission to modify the contents of the folder. This can be changed using the chmod command, but I have no idea how to use the chmod command, it looks complex.
Any help is much appreciated
I don't use root explorer or but you should be able to use it to edit a folder's permissions.
I use total commander and all I do is navigate to the folder/file, long press it, click properties then permissions then enable write across the board. I imagine the process is basically the same for root explorer.
jr67 said:
I don't use root explorer or but you should be able to use it to edit a folder's permissions.
I use total commander and all I do is navigate to the folder/file, long press it, click properties then permissions then enable write across the board. I imagine the process is basically the same for root explorer.
Click to expand...
Click to collapse
Thanks, but I think you have to use chmod. For some reason root explorer / es file explorer, &c. cannot change this permission, because they do not have permission to change the permission.

Categories

Resources