I am attempting to remove a couple of .apk's through terminal emulator but keep getting the Read-only file system error.
I searched and found a bunch of instances where remount is used through ./adb, and knew that, but not sure about how that error is fixed or handled through the emulator on the phone...
Anyone know if you can remove .apk's in /system/app thru Terminal Emulator, and if you can, can you tell me or point me in the right direction on where to find the answer?
I use Better Terminal Emulator. I would recommend Root Explorer for this though. It works great for me. Both apps cost money but are well worth it. I get a lot of use out of them.
Open up terminal emulator:
Code:
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
cd /system/app
ls (this lists all the .apks in the directory so you know the name)
rm XXXXX.apk (case sensitive)
Related
I'm having trouble finding a definitive way of uninstalling/installing apps onto my phone. this is what I've found.
Either through terminal or ADB:
mount -o rw,remount /system (another thread had mount -o rw,remount -t yaffs, /dev/block/mtdblock3 /system... or something along those lines)
rm -r /system/app/appname.apk
That only seemed to work for com.amazon.mp3.apk.
I've used astro file manager to find out the app names, for example on CM 4.0.4 he has the Work email, which I don't use. Under astro it is called just "Mail". I tried removing mail.apk and i've tried removing com.htc.android.mail.apk (which is what the app says under astro) but I cannot remove that one, nor any of the easier ones (camera.apk etc...). Only amazon mp3 was removed.
Am I missing something?
Also, installing apps. I am having trouble finding out how to push your own.
Any help with these?
Thanks
Easiest way would be to get root explorer off the market.
Or with adb do
Code:
adb remount
adb shell
rm /system/app/xxxx.apk (or if that doesn't work put -r after rm
In recovery console do
Code:
mount system
rm /system/app/xxx.apk (or -r if doesn't work)
Thats how i remove system apps.
same thing...
I tried rebooting into the console and trying this, here's what I got.
# Mount System
# rm /system/app/com.amazon.mp3.apk (this one works)
# rm /system/app/mail.apk
rm: cannot remove '/system/app/mail.apk' : No such file or directory
# rm /system/app/com.htc.android.com.apk
rm: cannot remove '/system/app/com.htc.android.com.apk' : No such file or directory
the others don't. I am finding the root address the same as with amazon mp3.
I am running CM 4.1.9. I tried it with 4.0.4 but I get the same issue. Only app that comes out is the amazon mp3. I am trying to delete the Work Email, Voice Dialer and push in the My Faves.
Any ideas what I am doing wrong?
Filenames are case sensitive.
/system/app/Mail.apk
/system/app/Camera.apk
Go to your apps directory to see the filenames with
Code:
cd /system/app
ls
Forum search adb explorer
AdamPI said:
Filenames are case sensitive.
/system/app/Mail.apk
/system/app/Camera.apk
Go to your apps directory to see the filenames with
Code:
cd /system/app
ls
Click to expand...
Click to collapse
Ahhh, Case sensitive. I didn't realize. Thanks for the info. You are the man!!!!!!!!
That was exactly it.
Thanks again!!!!!
Hello folks, i have a quick question... i have cyan mod 4.1.99 installed on my phone which im sure comes equipped with busybox. I am trying to find the commands that i would type into terminal emulator to push .apk files without having to use adb.. my pc went up and all i have is my g1 phone now. Is it possible to do what adb does like install, push, and pull files through terminal emulator and busybox? If so what are the commands, or is there a thread with a list of commands? Thanks in advance
to install an app
busybox install <path to apk>
there may be an arguement im missing.....but it should still work (if you put in a random argument or do -h or -help, it should give you the lists. i dont remember what they are though)
for moving files, use the mv and cp commands (mv = move, cp = copy paste)
ie
cp /sdcard/app/heroled.apk /system/sd/app
Click to expand...
Click to collapse
Im trying to copy a file to system/app/ but it says " read only file system"
So i type in a command i found " mount -o rw, remount -t yaffs2 /dev/black/mtdblock3 /system"
But then after i put in the command it stills says read only. Is there a non pc method to remount the system as read/write ? Or should that code work? Another thread said it should change the system
Im trying to copy a file to system/app/ but it says " read only file system"
So i type in a command i found " mount -o rw, remount -t yaffs2 /dev/black/mtdblock3 /system"
But then after i put in the command it stills says read only. Is there a non pc method to remount the system as read/write ? Or should that code work? Another thread said it should change the system
bbbblack said:
Im trying to copy a file to system/app/ but it says " read only file system"
So i type in a command i found " mount -o rw, remount -t yaffs2 /dev/black/mtdblock3 /system"
But then after i put in the command it stills says read only. Is there a non pc method to remount the system as read/write ? Or should that code work? Another thread said it should change the system
Click to expand...
Click to collapse
its block, not black
that should mount as rw
"Hi" all.
I was wondering. If anybody could be so nice and tell if I I can push adb files with. This app... or better can I push files via phone.
Thank you in advanced. .
Sent from my HERO200 using XDA App
Adb commands are completely different than terminal commands.
First enter "su" to get substitute user (the # sign)
Then enter "mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system" to make the root r/w
to copy files use "cp" command
to move files use "mv" command
to remove files use "rm" command
to change file/dir permissions use "chmod"
to change directories use "cd" - "cd .." will bring you back one directory - "cd //" brings you back to root
to list files in the dir use "ls"
to read/mod/combine a file use "cat"
to edit a value use "echo"
to see running processes use "top"
to kill a process use "kill -9 PID#HERE"
ex) cp /sdcard/download/myapplication.apk /data/app/myapplication.apk
If you know any linux commands then you should know your way around terminal emulator. If you want i can give you more examples just let me know. Hope this helped
A terminal emlator on the phone works the exact same way at typing "adb shell" into ADB. Kyouko gave you most of the commands you'll need.
hey guys thanks for the support.. but if i want to push a .txt what command would i put in..
Depends where you want to push the text and where it's located.
For example if its located just straight on the sdcard and you want to move it to /system/etc/ you'd enter:
Code:
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
cp /sdcard/nameoffile.txt /whereeveryouwantit/nameoffile.txt
its Exactly the same way as the example i had on my last post
kyouko said:
Depends where you want to push the text and where it's located.
For example if its located just straight on the sdcard and you want to move it to /system/etc/ you'd enter:
Code:
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
cp /sdcard/nameoffile.txt /whereeveryouwantit/nameoffile.txt
its Exactly the same way as the example i had on my last post
Click to expand...
Click to collapse
Yo.... kyouko thank you so much..
Sent from my HERO200 using XDA App
First, you need to install the drivers:
http://www.samsung.com/us/support/d...R&prd_mdl_name=SPH-D700&prd_ia_sub_class_cd=P
Then you must be rooted:
http://forum.xda-developers.com/showthread.php?t=775110
Next, get the most current SDK:
http://developer.android.com/sdk/index.html
Extract the zip and put it where it's easiest for you to get to on Command Prompt. I put it in my C:\ for extremely easy access.
Now, open up Command Prompt and put in these commands in order
1.
Code:
cd C:\android-sdk-windows\tools
2.
Code:
adb devices
3.
Code:
adb shell
4.
Code:
su
5.
Code:
mount -t rfs -o remount,rw /dev/block/stl9 /system
6.
Code:
cd /system/app
7.
Code:
ls
Now you should see a list of all the pre-installed Apps on your device. To remove these apps you must use this command:
Code:
rm "app_name.apk" or rm "odex_name.odex"
Here is a list of all the pre-installed apps on the stock Epic ROM and an explaination for most of them:
http://forum.xda-developers.com/showthread.php?t=773142
-------------------------
Here is my suggested list to use:
Code:
rm amazonmp3.apk[LEFT]rm Asphalt5_DEMO_ANMP_Samsung_D700_Sprint_ML.apk[/LEFT]
rm MediaHub.apk
rm nascar09-prod-release.apk
[LEFT]
rm sfl-prod-release.apk
[LEFT]
rm SN28-1092-sprint-signed.apk
[LEFT]
[LEFT]rm SprintTV.apk
[LEFT]rm SprintTVWidget.apk[/LEFT]
[/LEFT]
[/LEFT]
rm SprintZone.apk
[LEFT]rm MobileAP.apk - Only if you don't pay for the $30 hotspot[/LEFT]
rm MobileAP.odex - Only if you don't pay for the $30 hotspot
[/LEFT]
[/LEFT]
Titanium backup is easier and less time consuming then messing with ADB and is free.
Eh, not really. ADB is much more resourceful and has alot more uses and options if you learn how to use it. This is only one of it's uses. Titanium Backup is just a waste of space IMO. It is very limited on the free version.
Or you can use SDX App Removal if your interested in only removing the preinstalled apps (must be rooted).
Sent from my SPH-D700 using XDA App
At the expense of sounding like a noob, which I guess I am when it comes to Android, I'm getting a real-only error. I rooted with noobnl and Titanium Backup tells me I'm rooted. What might I be doing wrong?
Try using this as the mount command:
mount -t rfs -o remount,rw /dev/block/stl9 /system
Or better yet use one of the GUI options unless you are familiar with linux and save the headache. If all you want to do is remove apps there are far easier methods that are less time consuming. Titanium backup and SDX removal tool are both free.
Sesquipedalian said:
At the expense of sounding like a noob, which I guess I am when it comes to Android, I'm getting a real-only error. I rooted with noobnl and Titanium Backup tells me I'm rooted. What might I be doing wrong?
Click to expand...
Click to collapse
Hmmm see I got that error too when I first did it, but then I did it again and it worked perfect lol...
Mine is Wildfire, I have some issues:
Can not do this:
mount /dev/block/mtdblock4 /system
or
mount -t rfs -o remount,rw /dev/block/stl9 /system
But actual there exists a directory /system/app, in which I can see all the .apk and .odex files. When I tried to delete a file, it says that 'rm failed for File-Name, read-only file system'
What should I do? thanks
xirochanh said:
Mine is Wildfire, I have some issues:
Can not do this:
mount /dev/block/mtdblock4 /system
or
mount -t rfs -o remount,rw /dev/block/stl9 /system
But actual there exists a directory /system/app, in which I can see all the .apk and .odex files. When I tried to delete a file, it says that 'rm failed for File-Name, read-only file system'
What should I do? thanks
Click to expand...
Click to collapse
Well this is for the Samsung Epic...so i have no idea what you have to do
Whosdaman said:
Mine is Wildfire, I have some issues:
Can not do this:
mount /dev/block/mtdblock4 /system
or
mount -t rfs -o remount,rw /dev/block/stl9 /system
But actual there exists a directory /system/app, in which I can see all the .apk and .odex files. When I tried to delete a file, it says that 'rm failed for File-Name, read-only file system'
What should I do? thanks
Click to expand...
Click to collapse
Now I can mount, to over come the read-only problem, however whenever I delete a file, it says that: rm failed for filename.apk, Directory not empty
You guys have any advice? thanks
xirochanh said:
Now I can mount, to over come the read-only problem, however whenever I delete a file, it says that: rm failed for filename.apk, Directory not empty
You guys have any advice? thanks
Click to expand...
Click to collapse
hmmmm idk....thats seems really strange. Maybe its something you cant delete
I tried to reboot in HBOOT/Recovery/ Partition Menu, then mount /system. Then I could remove apps in adb shell successfully. can anyone confirm that doing like this is ok?
My wildfire was rooted with unrevoked3
If it works then it should be fine
Sent from my SPH-D700 using XDA App
This is confirmed to still work with the DI07 update
My noob question is I am using titanium backup to remove the sprint bloatware like media hub and it looks like the program removes it but when I exit titanium it is still on the phone.
Aridon said:
Titanium backup is easier and less time consuming then messing with ADB and is free.
Click to expand...
Click to collapse
Titanium backup is the mark of the noob in my opinion.
thanks, i had been searching around for the adb commands to mount the system r/w so i could remove the bloat.
SDX Stock App Removal is tops in my opinion.
Quick, simple, and allows for back-ups.
And I also don't think Titanium is the "Mark of the noob". It would be more like the "Mark of the ADB is unnecessary for stock application removal"
Also I don't think this should be in development. And if you know ABD commands you should know that.
This thread is okay....but sdx..and root uninstaller are awsome. Thanks for this guide though my friend very useful info for those that want to experiment with adb....
Sent from my Nexus S 4G using XDA Premium App
More options is a good thing. This is also helpful for the noobs who want to get their feet wet with unix/linux shell commands.
Hi,
I have rooted Nexus One which runs on GingerBread. I can open 'adb shell' and then execute 'su' there.
But when I try to 'adb remount', it fails.
Code:
$ adb root
adbd cannot run as root in production builds
$ adb remount
remount failed: Operation not permitted
Basically, I want to copy a file from my Desktop (MacOSX) to /system/bin on the device, is there anyway to do that on my Nexus One?
You rooted a stock OS - it doesn't have insecure boot, so ADB doesn't allow remount and other root commands.
hap497 said:
Hi,
I have rooted Nexus One which runs on GingerBread. I can open 'adb shell' and then execute 'su' there.
But when I try to 'adb remount', it fails.
Code:
$ adb root
adbd cannot run as root in production builds
$ adb remount
remount failed: Operation not permitted
Basically, I want to copy a file from my Desktop (MacOSX) to /system/bin on the device, is there anyway to do that on my Nexus One?
Click to expand...
Click to collapse
It seems like you are trying a bunch of things without reading beforehand, and understanding what you are doing. As has been said to you before, you cannot use the adb remount command with a secure boot image. If you want read/write access to the /system partition, you need to do the following:
adb shell
su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
Now you have read/write access to the /system partition. No you can copy files from your sdcard to the system partition if you want. When you are finished with whatever you have to do, don't forget to issue the following command:
mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system
There you have it. However, if you would have read a bit, instead of starting a new thread for each question you had, you would already have found what to do...