Having some permissions issues with my ADB and Terminal - Android Software/Hacking General [Developers Only]

Hello everyone. I have been working with android for a 6 months now and still cannot figure out what im doing wrong to get my permissions to work correctly. I have installed ADB and successfully rooted my MT3G Slide. I have been trying lately to figure out why i cannot manually configure A2SD. I have gone through both ADB Shell and Terminal under Su to try to mkdir /system/apps but it will give me a problem like my system is not allowing me to rewrite or its copy protected. I have tried to remount and it claims its successful. Another symptom i experience is not being able functionally use the rom manager or restart in clockwork recovery after i have flashed a rom. I always have to wipe the devices before i can loop hack back into clockwork mode. I have tried to fix permissions and restart in recovery through rom manager and it just brings up a question mark ontop of an image of a phone. I have been trying most recently to move a file through terminal to another name and replace the old with a new of the same name. It says the directory is not empty when i try to modify this file. So Anyone think they might know a solutions to these issues or hopefully all of them in one simple problem i cant seem to figure out.

download & install 'root explorer' for your phone from the android market (or your Pc, and put it on your phone) , grant it superuser permissions from superuser on your phone, open it up, and there's an option to make the phones memory R/W. (Its R/O as default which may be why your having permission issues)
Saying that Im yet to figure out adb's permissions fully..
Be careful with root explorer though, its a very intrusive programme which can screw up everything

Root explorer cost money... is there another program that allows me the same option. I have been using astro file manager, any way to do it on that one?

Related

[Q] Remove Preinstalled Apps - HTC Incredible

Hey all,
I recently rooted my Droid Incredible using unrevoked and have been searching for help on how to remove the preinstalled apps (Like Amazon mp3). I have only found old posts that don't seem to work or other sites that are specific to a different phone.
I would just like to know how I can uninstall them from my rooted phone. I have tried installing a terminal emulator and typing rm -r amazonmp3.apk but it says it is read-only...
Any help would be greatly appreciated! Thanks!
Brad
If your phone is fully rooted, download Root Explorer from the Market, navigate to the /system/app/ folder and delete the apps you do not want.
Important: As you are navigating the files on your phone with Root Explorer you'll see a button in the upper right hand corner that says "mount r/w" which means mount read/write. You''ll need to press this before you try and delete the apps otherwise it will spit back an error that says "Read only file system."
Once you are done, simply reboot the phone and you should be good to go. Additionally, the phone automatically remounts as read-only upon rebooting so, if you want to delete more apps you'll have to press the button again.
Is Root Explorer the only app that does that? For example I recently downloaded Astro and it doesn't seem to work, will purchasing Root Explorer be different than Astro?
I guess I'm just wondering before buying if it is actually going to it differently than Astro (considering Astro did not work).
Thanks!

Helping a Friend with a New ROM

First, I do not have an Infuse. I am probably not an expert at ROMing but pretty close. Done it so many times on my DROID, Fascinate, NookColor, and now my Thunderbolt. But every phone/device seems to have their own unique thing going on.
I am trying to look into the ROMing world of the Infuse and it all looks standard. But I am having trouble figuring out the 3e Recovery. What is this about? I know with my Fascinate, I could not use the newest ROM Manager CW because of Voodoo and other reasons. Is that part of the reason why with the Infuse you have to go through these extra steps outside of flashing CW from ROM Manager?
He is not in a position to pay for Root Explorer as of yet. It seems you can install the Modded 3e through Terminal Emulator, correct? And THEN Flash ClockWork (i9000) through ROM Manager and boot into recovery like normal?
The ultimate goal is to install the Infused ROM. I got all the steps down except the first one--and since he can't use Root Explorer as of now, it may be more complicated. Any pointers here?
From what I understand, the stock recovery image on the Infuse (3e) will not allow you to install/flash unsigned .zip files. Modding the 3e recovery removes the requirement that zips be signed, letting you flash clockworkmod. I'm sure you've already seen this thread about installing modded 3e. If you aren't in a position to pay for root explorer, I'd suggest Super Manager instead. It worked fine for me when I modded my 3e. You don't need ADB or a terminal emulator either; there's an option in both root explorer and super manager to mount the system directory as read/write. Once you have the zip on your SD card, you shouldn't need your computer any more at all to finish installing modded 3e.
And yes, after that's done flash the i9000 CWM and it should be smooth sailing!
Thanks for helping out! That explains it perfectly.
Here is an issue I came across: We unzipped the recovery file and placed on SD card (I think it was like 307kb) and then I went and tried to copy it in /system/bin/ first with Terminal Emulator, then again with ADB. On the last step, I assume when I am pushing it to phone fromt he SD, it says it "cannot find" the recovery file.
Anyone come across something similar?
(I did download Super Manager and that seems like a nice option, I will see if that helps instead).
Eddog4DROID said:
Thanks for helping out! That explains it perfectly.
Here is an issue I came across: We unzipped the recovery file and placed on SD card (I think it was like 307kb) and then I went and tried to copy it in /system/bin/ first with Terminal Emulator, then again with ADB. On the last step, I assume when I am pushing it to phone fromt he SD, it says it "cannot find" the recovery file.
Anyone come across something similar?
(I did download Super Manager and that seems like a nice option, I will see if that helps instead).
Click to expand...
Click to collapse
Hm, that is odd. Dumb question, but are you sure you're pointing ADB/the terminal emulator to the right directory on the right SD card? Or is the recovery file properly named? Those are the only things I can think of.
Eddog4DROID said:
Thanks for helping out! That explains it perfectly.
Here is an issue I came across: We unzipped the recovery file and placed on SD card (I think it was like 307kb) and then I went and tried to copy it in /system/bin/ first with Terminal Emulator, then again with ADB. On the last step, I assume when I am pushing it to phone fromt he SD, it says it "cannot find" the recovery file.
Anyone come across something similar?
(I did download Super Manager and that seems like a nice option, I will see if that helps instead).
Click to expand...
Click to collapse
1) You must be root (e.g. rooted with SuperOneclick) to install the "modded 3e recovery"
2) Its permissions apparently must be EXACTLY the same as the original one for it to work - if it has MORE permissions than normal I've heard it may break!
3) I still haven't figured out why you need modded 3e recovery to flash CWM recovery - you should only need root to do so...
I forget my exact steps as I'm a bit of a Unix shell guru, but mine were something similar to:
1) SuperOneClick root
2) ADB shell into the phone
3) "su" within ADB (the superuser app will prompt on the touchscreen here)
4) in another terminal window on the PC (I'm a Linux guy... I can adb push while being adb shell'ed elsewhere), from wherever you have your modded recovery unzippped "adb push recovery /sdcard/recovery"
5) "cp /system/bin/recovery /system/bin/recovery.bak"
6) "busybox mount /system -o remount,rw" (for some reason, the default mount program is really crippled, gotta do busybox remount)
7) "cp /sdcard/recovery /system/bin/recovery"
8) "reboot"

[Q] Why can't I save in /sdcard/ but can save in /mnt/sdcard?

I am a new user, and just ROM'd my Motorola Milestone XT720 using the cinci Bell's 2.2 froyo update. The major problem that I am encountering is that market aps are not downloading files correctly. For example I try to add a podcast into my que using "google listen" and I get the following error:
"Error (/sdcard/com.google.andriod.apps.listen/downloads/f09cfbe (Permission Denied)"
Now I go into supermanger's filesystem, and I notice that /sdcard/ has no permissions at all. I try to add them, but nothing happens when I do. Itself, /sdcard/ is empty.
When I plug the phone into my PC, it can access the SDcard fine. In super manager however, it appears that the directory it is accessing is /mnt/sdcard.
It seems that programs assume that the SDcard is going to be located at /sdcard/ but it is really located at /mnt/sdcard. Is there any way to redirect them?
The normal mount location is /mnt/sdcard, /sdcard is just a symlink for convenience.
Apps should use the android api to determine the sdcard location
Environment.getExternalStorageDirectory();
See http://developer.android.com/reference/android/os/Environment.html
You could readding a symlink from /sdcard to /mnt/sdcard.
Regarding you changing the permissions, do you have root? If not you won't be able to change the permissions or create a symlink.
Do I have root?
Thanks for replying Dark3n.
I think I have root access, but in supermanager explorer, the root directory reads "/(r/o)" - does that "(r/o)" mean read only?
That would make sense of my problem - since I cannot delete, rename, or change the permissions on /sdcard/.
However, I'm pretty sure I have root access. I never rooted my phone after applying the ROM. I just ran superoneclick again, and it said the phone was rooted. Supermanager explorer has superuser permissions. Am I missing something?
I have root
I just installed Root Checker by Joeykrim - it verified root access and a busybox installation.
yes r/o means read only
So what do I do about it? Is this a limitation of the file explorer I'm using or my permissions? I'm not sure how to gain more permissions than superuser.
It would be a huge help if you let me know what steps I need to take. Sorry for being a noob!
ive the same problem but it's with gscript folder.
So I downloaded ES File Explorer, then went into the settings. I turned on the root function, and then used the option below it that said something like "mount root to enable write." I clicked that. ES File Explorer didn't have a change permission feature, so I held down the home button and switched over to supermanager explorer. Now the root directory read "/(r/w)." I was then able to change the permissions for /sdcard/.
The podcasts from google listen at the NPR app I was using were still not downloading properly. I rebooted the phone. Strangely, the permissions that I had just set in the root directory, and the test directory I created in root, were both gone. I don't know how that happens.
I tried using BeyondPod, which works for downloading to /mnt/sdcard/. I wonder if that means Google Listen and the NPR app (DroidShogun) were coded to save to /Sdcard/ rather than prompting the API for a path.

[Q] 30 fps

sorry for this post but i dont have the required 10 posts to post in the devolpment thread already on this subject.
I tried the 30fps fix by copying the 4 .so files over but i am still getting 15fps. I am running the latest S7 rom. I dont know what i am doing wrong. I paste them into system/lib and it says that the action was complete. i try to take a vid before and after a reboot and they are still just 15fps. any suggestions.
I've noticed that the multi select function on root explorer and maybe other file managers doesn't work if you are over writing files, might not work for any copy/paste function. I would rename the old files *.so.bak then copy the new ones one by one. after that reboot and see if the changes stuck. if not make sure you are actually rooted. could have a bad su binary causing havoc or something. if you have root ant it is working then to make 100% sure you are mounted rw go into a terminal emulator or adb shell and type
su
(phone should ask for super user permissions or give a toast or notification that su was granted)
mount -o remount,rw /dev/block/stl9 /system
if you don't get any error about illegal operations or permission denied then you should be able to copy the files with 99% certainty. of you have any trouble be sure to include details.
Thanks for the response. I do have full root access. I double checked. I also keep getting a su binarry update warning from Superuser. I update it but everytime i restart the phone it tells me i have to update again. My next mission is to figure out why it keeps reverting back.
I did what you said and replaced the files one at a time. and renamed the originals instead of putting copyies in another location and trying to overwrite the orginals. thank you for your help. I am now recording at 30fps after a reboot.
update to the newwest entropy DD kernel. the older kernels rooted the phone but the trouble with that is if you update the binary the kernel overwrites it on next boot. this is on way the binary can get corrupted.
Renaming the original to .bak also allows you to compare the permissions of the posted file to the original permissions. In some cases, I noticed made a different.

Chinese Phone running Android 4.2 - Malware built in, cant delete despite root

It took me a while to figure out that the bast**ds had built in the malware in the firmware, with the launcher. Phone is rooted, and I have changed the launcher. But I can't delete the malware apks inside system/app.
They are named as com.google.hardware.ext0.apk, and another similarly named (android air, and measure too)..
Problem is, I can't delete them, I tried using ES File Explorer (yes, root is enabled. I can delete, change other files in system/app but for this) I am denied permission!!
Then I tried the terminal emulator.. after getting SU.. tried deleting them using RM and then 'busybox rm..' both failed. What to do? How to delete the f****ng malware files??
(If I switch on the WiFi, malware automatically downloads more crap, then I can't even switch off Wifi and Data! Hence I formatted the phone and have not entered any sim or wifi settings... but I can't delete the damn files!! Any suggestions please?? Going crazy here)
regards
If you could install a custom recovery to flash a zip that delete this app...
Try a Root System App Deleter or, boot in recovery mode and remove it via ADB

Categories

Resources