Jump to content


Deleting/uninstalling apks from /system/app bundled with 3.1 rom


  • Please log in to reply
8 replies to this topic

#1
plasmafire

plasmafire

    Newbie

  • Members
  • Pip
  • 4 posts
I am trying to un-install/delete some of the apps that have been installed as a part of Modaco 3.1 Rom.
But apparently I cannot even when in su mode and root access, with system mounted in rw mode.

I have tried the simple

C:\DevTools\android-sdk-windows\tools>adb remount
remount succeeded

C:\DevTools\android-sdk-windows\tools>adb shell rm /system/app/t
rm: can't remove '/system/app/teeter.apk': Directory not empty

then I tried

# mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
# rm teeter.apk
rm teeter.apk
rm: can't remove 'teeter.apk': Directory not empty

also

# pm uninstall teeter
pm uninstall teeter
Failure

Please don't tell me to cook another ROM, I would like to be able to delete stuff from my phone without having to wipe everything and start again.
Help please :lol:


#2
StuMcBill

StuMcBill

    Diehard

  • MoDaCo Plus
  • PipPipPipPip
  • 353 posts
  • Gender:Male
  • Devices:Samsung Galaxy Nexus

View Postplasmafire, on Jun 29 2010, 18:13, said:

I am trying to un-install/delete some of the apps that have been installed as a part of Modaco 3.1 Rom.
But apparently I cannot even when in su mode and root access, with system mounted in rw mode.

I have tried the simple

C:\DevTools\android-sdk-windows\tools>adb remount
remount succeeded

C:\DevTools\android-sdk-windows\tools>adb shell rm /system/app/t
rm: can't remove '/system/app/teeter.apk': Directory not empty

then I tried

# mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
# rm teeter.apk
rm teeter.apk
rm: can't remove 'teeter.apk': Directory not empty

also

# pm uninstall teeter
pm uninstall teeter
Failure

Please don't tell me to cook another ROM, I would like to be able to delete stuff from my phone without having to wipe everything and start again.
Help please :lol:


I believe you need to be in recovery mode to do this?  You don't say you are not in Recovery, but I just thought I would check.

Samsung Galaxy Nexus : MoDaCo Custom Rom

#3
plasmafire

plasmafire

    Newbie

  • Members
  • Pip
  • 4 posts

View PostStuMcBill, on Jun 29 2010, 18:25, said:

I believe you need to be in recovery mode to do this?  You don't say you are not in Recovery, but I just thought I would check.

I wasn't in recovery when I ran the above commands.
but when I am in recovery I see the below. I am sure it is something simple, but this is driving me nuts.

C:\DevTools\android-sdk-windows\tools>adb devices
List of devices attached
HT03ZPL12222	recovery

C:\DevTools\android-sdk-windows\tools>adb remount
remount failed: Invalid argument

C:\DevTools\android-sdk-windows\tools>adb shell
- exec '/system/bin/sh' failed: No such file or directory (2)

C:\DevTools\android-sdk-windows\tools>adb reboot
This rebooted my device, but the other commands don't seem to work.

Edited by plasmafire, 29 June 2010 - 05:33 PM.


#4
spammyspam

spammyspam

    Enthusiast

  • Members
  • PipPipPip
  • 235 posts
  • Devices:Desire
There's a tutorial on this forum about how to remove apps from the ROM. I have no idea where it is though, sorry!


#5
Tebo2K

Tebo2K

    Irregular

  • MoDaCo Ad Free
  • Pip
  • 31 posts
  • Location:Thurso
  • Devices:Desire, Desire HD, Transformer

View Postplasmafire, on Jun 29 2010, 18:31, said:

I wasn't in recovery when I ran the above commands.
but when I am in recovery I see the below. I am sure it is something simple, but this is driving me nuts.

C:\DevTools\android-sdk-windows\tools>adb devices
List of devices attached
HT03ZPL12222	recovery

C:\DevTools\android-sdk-windows\tools>adb remount
remount failed: Invalid argument

C:\DevTools\android-sdk-windows\tools>adb shell
- exec '/system/bin/sh' failed: No such file or directory (2)

C:\DevTools\android-sdk-windows\tools>adb reboot
This rebooted my device, but the other commands don't seem to work.

Make sure you use
adb mount /system

before you try to delete anything, recovery doesn't mount the /system partition unless you tell it to..


#6
acolwill

acolwill

    Regular

  • MoDaCo Ad Free
  • PipPip
  • 70 posts
Grab yourself Clockwork recovery (via RomManager) and reboot into recovery using it. From the partitions menu, you are able to mount /system and simply adb shell from your host PC.

cd /system/app
ls -l
rm Twitter.apk

Posted Image

Get more Dropbox space! Click here...

#7
lenik

lenik

    Regular

  • Members
  • PipPip
  • 91 posts
  • Devices:HTC Desire

View Postplasmafire, on Jun 30 2010, 02:31, said:

but when I am in recovery I see the below. I am sure it is something simple, but this is driving me nuts.
this is not the recovery you need. to make changes to /system partition you have to do the following:

1. connect your desire by USB cable and issue: 'adb reboot recovery', device reboots and shows red trianle/arrow icon
2. change to the directory where you rooted your desire from and run './recovery-linux.sh', screen will show green menu
3. if you get any "error: device not found", issue './adb-linux kill-server' and run ./recovery-linux.sh again until you get green menu
4. adb shell mount /dev/block/mtdblock3 /system

now you may add/remove applications from /system/app


#8
persko

persko

    LinuxUser

  • Members
  • PipPip
  • 72 posts
  • Location:Copenhagen
  • Devices:HTC Desire
  • Twitter:@siliconfoot
These commands are for linux, for windows you need to use

recovery-windows.bat

in place of

recovery-linux.sh

otherwise your instructions are correct.

Per


#9
plasmafire

plasmafire

    Newbie

  • Members
  • Pip
  • 4 posts

View Postlenik, on Jun 30 2010, 02:17, said:

this is not the recovery you need. to make changes to /system partition you have to do the following:
2. change to the directory where you rooted your desire from and run './recovery-linux.sh', screen will show green menu

Thank you kind sir, this was the step I was missing. All is well now, I deleted stuff till my heart was content.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users