What do the permissions suppose to be on the sdcard? My permission is set at system/system and I can not change them in order to do an adb shell copy to it.
Related
Alright so I installed Haykuro's Hero rom the other night. I noticed su worked fine in terminal emulator, but I couldn't tether cause root apps weren't working. Figured I would try adding the Superuser.apk so that apps requiring root would work for me. I couldn't locate instructions on how to go about doing so and had to wing it a bit.
This is what I tried and it seemed to work...kinda.
Extracted su binary and SuperUser.apk from another build (Haykuro's 6.0r1)
adb push su /system/bin
adb push SuperUser.apk /system/app
All the apps that require root are working, but the SuperUser app is not asking for confirmation on new permissions request. So if I am correct in my assumption, su privileges are being granted to any app that makes a request for them.
If someone would care to elaborate on how this is properly done, I would greatly appreciate it.
If I remember correctly from when Haykuro release the Ion this is all that he said to do. i have done this also and it concerns me as the SuperUser app is give you the option to allow access and it is not working. No safe guard for the phone.
Below code is assuming you have already taken/have the su app from another build it can be found in the system/bin.
Code:
adb remount
adb push su /system/bin
adb push su /system/xbin
adb shell chmod 4775 /system/xbin/su
adb shell chmod 4775 /system/bin/su
You may also have to clear all data in the SuperUser.apk if you already have it installed. Do this by going to settings> applications> manage applications > Superuser permissions > clear data. But now my phone is asking for superuser permissions. I found this in another Thread but this is a windows.exe file the above codes would work for those who dont use windows and can't run the .exe file that you download there like myself.
I don't have ES or Astro either, so when I do get the apk I won't be able to browse and install it. Any tips?
If you have an update.zip try to unzip it and taking out vending.apk (or something) that's what I did at least.
-------------------------------------
Sent via the XDA Tapatalk App
You can always install through adb if you have the Vending.apk. Just put the .apk into the tools directory of your SDK and type:
Code:
adb install Vending.apk
(Never tried this, but it should work??)
"adb install Vending.apk" will put the Market into /data/app, it's preferred to have it in /system/app.
So all you have to do is:
Code:
adb remount
adb push Vending.apk /system/app
gu1dry said:
"adb install Vending.apk" will put the Market into /data/app, it's preferred to have it in /system/app.
So all you have to do is:
Code:
adb remount
adb push Vending.apk /system/app
Click to expand...
Click to collapse
Is the remount necessary? I've never quite understood what that does. I know it is required to successfully push files, but I've installed just fine without remount.
Also, thanks for the tip on how to install to other directories. I didn't know this was possible, but it makes sense
adb remount, makes /system writable.
Hi there,
I've the same problem, accidently deleted my market.
I've root and everything, though a very minor understanding about the adb.
Could some of you helpful guys give me some step by step instructions, please?
Thanks for helping me out.
My Vibrant is rooted. When I adb shell into my phone and try to ./file or chmod 755 file it gives me a permission denied.
I believe I am already running as su in the terminal. Anyway I can get Android to let me modify the file? The file in question in on my sdcard, not in /system.
Thanks!
symbit said:
Thanks for helping me out.
My Vibrant is rooted. When I adb shell into my phone and try to ./file or chmod 755 file it gives me a permission denied.
I believe I am already running as su in the terminal. Anyway I can get Android to let me modify the file? The file in question in on my sdcard, not in /system.
Thanks!
Click to expand...
Click to collapse
/sdcard is mounted noexec, you can't mark files executable on it. You could remount it, but it's handled by vold so you probably meted to change the configuration for vold to get it to stick. If you are trying to run a script, use "sh script.sh".
so im stuck and can not figure this out. for some reason the permissions for the download folders on my sd card do not have any user permissions checked. i can not download anything at all but the market is fine as it is on the internal memory i suppose. the only reason i came across the user permissions issue was because i found another post where someone had the same problem with downloading and corrected the issue by using root explorer and manually adding user permissions to any folder he used for downloading. now... here is my problem... i used root explorer and when i try to add user permissions to these folders, the settings that changed do not stick. i check mark the 3 boxes and accept the changes but if i go back into that folders specific permissions, they are unchecked once again. how can i get it to not revert back or better yet how can i just resolve the issue in whole so i dont have to keep fixing folder permissions on the sd card for app that downloads? i dont see why the sd card of all places would start having these permission issues. the guys post i came across tried to tie this issue to the fix permissions option in rom manager saying it may have caused the problem but i didnt use rom manager to fix permissions until this problem started. i was on liberty 1.5 rom then reverted back to rooted stock where i still have the problem with all downloading except the market again. any help would be greatly appreciated!
58 views and not a single response? wow.... so very shocking to see that, i bet if i had post this in the dev forum i would have gotten 15+ responses just to say that im in the wrong section then anther 30 for people to argue back and fourth on how everyone is being rude or that this is the reason devs stay in irc...
Give this a try if you have the sdk and adb set up.
from a command prompt:
1) adb devices (make sure that your phone shows up)
2) adb shell
3) su (assuming you have rooted your phone)
4) cd /mnt/sdcard/download (or whatever the folder on your sdcard for downloads is called)
5) chmod 777 /mnt/sdcard/download (or whatever your download folder is called)
this should change the permissions on your sdcard to have full permissions.
thanks for your reply! im grateful, but wouldnt that only change the permissions for the "download" folder? which is mostly only a default location for apps such as the browser?
The way sysadmin-x is suggesting makes the permissions way different than they are by default, I wouldn't recommend doing it that way.
If you want to change permissions on the entire sd card to what they are by default, try running(as root)
Code:
chown -R system:sdcard_rw /mnt/sdcard && chmod -R 075 /mnt/sdcard
Edit: that code messes up the permissions on one folder, after running that you should also run
Code:
chown -R root:root /mnt/sdcard/.android_secure && chmod -R 000 /mnt/sdcard/.android_secure
Just do this: download a terminal emulator from the market. Open the app. Type su and press enter. Give it root access. Type chmod 777 /sdcard and press enter.
Please note you need root to do this
Would someone please tell me how to change permissions on a read-only system file? I logged into and adb shell, I have root, but I could not execute this command: "chmod 777 HotspotProvision.apk" or "mv HotspotProvision.apk". I get an error saying the file is read-only.
I am trying to follow the instructions in this thread:
http://forum.xda-developers.com/showthread.php?t=2456338
I also could not change the file name using Astro file manager.
Root explorer or root browser from the market will let you mount system r/w
Sent from my LG-LS980