I failed at removing my first factory app - need command line help

Discussion in 'Android Hacks and Help' started by HamDog, Sep 13, 2010.

  1. HamDog

    HamDog Member

    Joined:
    Aug 3, 2010
    Messages:
    190
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    I'm rooted. Saw a brief video on how to remove unwanted factory apps. I'm so damn retarded that I failed even after watching the video! The video showed this being done on a Tmobile G1. Maybe it's different on the Droid?

    I opened up Terminal Emulator and here is how my session went:

    $ su
    # mount -o rw.remount /system (enter)
    Usage: mount [-r] [-w] [-o options] [-t type] device directory
    # rm -r /system/app/Twitter.apk
    rm failed for /system/app/Twitter.apk, read-only file system

    I don't know anything about Linux, but I do know enough about windows that it appears the first line of the above statement is trying to make the file re-writeable (hence the rw) but it's failing. That's why line 2 can't remove (rm?) the app.

    So, can anyone correct me in my line 1 above? Thanks! I know, I need to pick up a linux book.
     
  2. Bob Dammit

    Bob Dammit DF Super Moderator

    Joined:
    Dec 11, 2009
    Messages:
    1,709
    Likes Received:
    17
    Trophy Points:
    68
    Location:
    N 42° 05.183 W 079° 10.914
    Ratings:
    +17
    You are rooted, at least thats in your favor. Are you running a custom ROM, or are you just rooted? The reason I am asking is most developers code in a way to remove bloat from their roms. Secondly, you really dont want to remove bloat, because that will remove the app from your phone completely with no hope of replacing it if you need it. Instead, change the extension from .apk to .bak . The easiest way is using root explorer from the market.
     
  3. HamDog

    HamDog Member

    Joined:
    Aug 3, 2010
    Messages:
    190
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    I'm just rooted, no custom ROMs or Kernels. And believe me, I want to remove some factory apps. I will kill myself using a very painful method of suicide if I ever become a fan of Twitter. I want that program completely gone!

    I figured out that in my line 1, I needed to put a coma instead of a period here:

    # mount -o rw,remount /system

    But I still get the same error. Just wanna know what I'm doing wrong.
     
  4. mx371

    mx371 New Member

    Joined:
    Apr 29, 2010
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +0
    I have scripts set up on my phone so I don't have to use that whole command line, but entering adb remount will set your phone to rw and is much easier than the command line above. Let me know if you would like the link to the script package.
     
  5. Tallica

    Tallica Premium Member Rescue Squad Premium Member

    Joined:
    Mar 17, 2010
    Messages:
    3,259
    Likes Received:
    1
    Trophy Points:
    101
    Location:
    Middleboro, MA
    Ratings:
    +1
    Just use Astro and delete the apps you don't want from /system/app

    Don't bother with command lines.
     
  6. xkape

    xkape Premium Member Theme Developer Premium Member

    Joined:
    Jul 27, 2010
    Messages:
    3,883
    Likes Received:
    37
    Trophy Points:
    163
    Location:
    OH-IO
    Ratings:
    +37

    I was thinking that. I'm all about doing things the easy way.
     
  7. HamDog

    HamDog Member

    Joined:
    Aug 3, 2010
    Messages:
    190
    Likes Received:
    0
    Trophy Points:
    16
    Ratings:
    +0
    Astro won't allow me to delete that apk. It says error when I try to delete it or change it's extension. I think it's because it's a read only file and the attribute needs to be changed first. And I haven't tried root explorer yet as I don't wanna buy it since what I'm trying to accomplish can be done for free.

    And I know adb will allow me to do it. But I'm trying to learn, not just do. I can't believe no one has been able to tell me what's wrong with my command line!

    Thanks for all the suggestions though.
     
  8. Tallica

    Tallica Premium Member Rescue Squad Premium Member

    Joined:
    Mar 17, 2010
    Messages:
    3,259
    Likes Received:
    1
    Trophy Points:
    101
    Location:
    Middleboro, MA
    Ratings:
    +1
    Seems like you are having issues mounting the system partition, try this:

    Boot to recovery, mount system partition through recovery, connect phone to PC

    then run the rm command thru Adb

    Something like:

    rm system/app/Twitter.apk
     
Search tags for this page
android command line remove application
,
apk factoryapp
,

cannot remove system app failed to locate the apk file

,

failed to locate apk file

,
failed to locate the apk file when deleting apps
,
failed to uninstall twitter
,
how to remove line app from android
,
uninstall android app command line
,
uninstall app android command line
,
uninstall read only app in android through command