remove apk in /system/app

470 views
Skip to first unread message

allstars

unread,
Nov 1, 2011, 2:31:59 AM11/1/11
to Android Linux Kernel Development
Hi
I download the android sdk and create an avd for android-10
then I launch the emulator with that avd
and try to delete a system apk in /system/app

so I do

adb remount
adb shell rm /system/app/Browser.apk

but it complains
"rm failed for Browser.apk, Directory not empty"

but in my AOSP build , Browser.apk can be removed

I check 'mount' , I think my /system/ is writable
"/dev/block/mtdblock0 /system yaffs2 rw 0 0"

therefore I use strace to see the log
in my sdk emulator, it return -1 in unlink

" unlink("/system/app/Browser.apk") = -1 ENOTEMPTY (Directory not
empty) "

so I checkout the source of kernel from github and build the kernel to
see what happens

remote.origin.url=https://github.com/android/kernel_common.git
branch.android-goldfish-2.6.27.remote=origin

and boot the emulator with my kernel
the apk can be deleted now

so my question is

1. why cannot I delete the apk in /system/app
2. where can I get the correct and same kernel source as SDK uses??


thanks




William W.-Y. Liang

unread,
Nov 1, 2011, 2:44:43 AM11/1/11
to android...@googlegroups.com
Is it possible that it was caused by the full-of-file-system problem?
That is, the operation could not be performed normally because the partition has been out of space?

BRs,
William Liang

2011/11/1 allstars <allsta...@gmail.com>

allstars

unread,
Nov 1, 2011, 6:10:48 AM11/1/11
to Android Linux Kernel Development
cool
I enlarge the partition size and it works now

great thanks

On Nov 1, 2:44 pm, "William W.-Y. Liang" <wyli...@mail.ntut.edu.tw>
wrote:
> Is it possible that it was caused by the full-of-file-system problem?
> That is, the operation could not be performed normally because the
> partition has been out of space?
>
> BRs,
> William Liang
>
> 2011/11/1 allstars <allstars....@gmail.com>
Reply all
Reply to author
Forward
0 new messages