Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Access System Folder ????

 
Trupti Mehta
Ranch Hand
Posts: 79
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hello,

I use Android SDK 2.3.3 API 10. When I start my emulator, I can browse folders, push files to folders. But I can't access /system or any of its sub-folders. I try tp do adb push, from shell, mount -o remount rw /system, su -root, etc. Despite I can't perform mkdir, cp, cat operations on system folder.

Why so and how to access it ??

Please help me, am badly stuck up. Any help, guidance is highly appreciated.

Thanks
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are you trying to accomplish by accessing those directories? Those are not accessible on an actual device, either, unless it is rooted.
 
Trupti Mehta
Ranch Hand
Posts: 79
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:What are you trying to accomplish by accessing those directories? Those are not accessible on an actual device, either, unless it is rooted.


Thanks for quick response.

Our Emulator's aren't already rooted ? If not,
mount -o remount rw /system
OR
su -root

should let me access it or not ? If this all is not rooting then how do I root my emulator to access those folders ?

I want to install few packages like busybox so system, hence I need it.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
 
Trupti Mehta
Ranch Hand
Posts: 79
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Peter Johnson,

After trying all those ways, now I keep getting "Read Only file system", "not enough memory", "Out Of Memory", etc such messages. I have set my emulator's heap size as 2048 and RAM as 1024. If I make RAM as 2048, the emulator fails to start. When I copy the file to /data/local folder, it copies properly. Then when I try to copy to /system/ folder, I get from the above errors. Why so ? And if memory if the problem, I can't increase the memory. With this scenario, what to do and how to overcome this memory problems and access system folder to copy and install.

EDIT : On increasing the memory the emulator hangs at boot and cannot start only. The MAX memory I can give is heap : 512 and RAM 256.

Can you help me know and gude a solution for the problem !
 
Trupti Mehta
Ranch Hand
Posts: 79
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Please have a look at the following commands, and try to help me knoew the reason for the problem or the cause or the sollution or where am I going wrong :

C:\Android\android-sdk\tools>adb shell
# su
su
# export PATH=/data/busybox:$PATH
export PATH=/data/busybox:$PATH
# cp /sdcard/tun.ko /system/lib/
cp /sdcard/tun.ko /system/lib/
cp: cannot remove '/system/lib/tun.ko': Read-only file system
# mount
mount
rootfs on / type rootfs (ro)
sysfs on /sys type sysfs (rw)
/dev/block/mtdblock0 on /system type yaffs2 (ro)
/dev/block/mtdblock1 on /data type yaffs2 (rw,nosuid,nodev)
/dev/block/mtdblock2 on /cache type yaffs2 (rw,nosuid,nodev)
/dev/block/vold/179:0 on /mnt/sdcard type vfat (rw,dirsync,nosuid,nodev,noexec,u
id=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset
=iso8859-1,shortname=mixed,utf8,errors=remount-ro)

# mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system
mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system
# cp /sdcard/tun.ko /system/lib/modules/*
cp /sdcard/tun.ko /system/lib/modules/*
cp: cannot remove '/system/lib/modules/*': No such file or directory
# cp /sdcard/tun.ko /system/lib/
cp /sdcard/tun.ko /system/lib/
cp: cannot remove '/system/lib/tun.ko': No such file or directory
# cat /sdcard/tun.ko > /system/lib/tun.ko
cat /sdcard/tun.ko > /system/lib/tun.ko
cannot create /system/lib/tun.ko: not enough memory
#


All I am trying to do is copying tun.ko to the /system/lib/modules/ folder. Can anyone please help me know where am I going wrong ! Why am I not able to copy the file even after remounting ???

Please help me out.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic