问题描述
我使用未持有 sqlite3的
上的Android设备,所以我想以推
它的设备后,拉
从AVD荷兰国际集团吧。
The Android device I am using does not hold sqlite3
on it, so i thought to push
it to the device after pull
ing it from the AVD.
我没有问题,从AVD拉它,虽然我不能推到设备上,因为我需要启用写入权限。我试图按照 sqlite3的:没有发现
I had no problem pulling it from the AVD, though I cannot push it to the device since I need to enable a write permission. I tried to follow sqlite3: not found
我尝试了以下
$ adb -d shell
$ mount
mount
rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,relatime,mode=111 0 0
devpts /dev/pts devpts rw,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/usb tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /app-cache tmpfs rw,relatime,size=7168k 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/mmcblk0p9 /system ext4 ro,relatime,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p7 /cache ext4 rw,nosuid,nodev,noatime,barrier=1,data=ordered
/dev/block/mmcblk0p1 /efs ext4 rw,nosuid,nodev,noatime,barrier=1,data=ordered 0
nil /sys/kernel/debug debugfs rw,relatime 0 0
/dev/block/mmcblk0p10 /data ext4 rw,nosuid,nodev,noatime,barrier=1,data=ordered,
/dev/block/mmcblk0p4 /mnt/.lfs j4fs rw,relatime 0 0
/dev/block/vold/179:11 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,noatime,n
epage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro,discard 0
我跟着此链接并尝试挂载文件系统的内容,但我有一个允许的错误。
I followed this link and tried to mount the filesystem as follows but I got a permission error.
$ mount -o rw,remount -t yaffs2 /dev/block/mmcblk0p9 /system
mount: Operation not permitted
任何需要的是什么来是为了做推
sqlite3的
成的Adroid设备调试原因的线索?
Any clue what is needed to be done in order to push
sqlite3
into an Adroid device for debugging reasons?
推荐答案
解决方法很简单。要重新安装已安装的系统,你需要有root权限。做一个苏
。您将进入根模式。然后运行下面的命令。它会工作,我做了许多次。
Solution is simple. To remount a mounted system you need to have root privileges. Do an su
. You will enter root mode. Then run the below command. It will work, I did it many a times.
因此,这里的步骤:
So here are the steps:
adb shell
su
mount -o rw,remount -t ext4 /system
编辑:找到一个更好的解决方案。
Found a better solution
从主机(Linux或Windows PC),执行以下命令。
From host machine(Linux or windows PC), execute the following commands.
>> adb root
>> adb remount
再登在默认情况下重新挂载/系统分区与RW,如果你拥有的权限。
remount will by default remount the /system partition with rw, if you have the permissions.
注意1::要做到苏
或亚行根,您的设备必须植根并有苏可执行文件就可以了。当你做一个苏,如果它是正确执行,你的终端提示符将从 $
更改为#
。谢谢..
Note 1: To do su
or adb root, your device must be rooted and have su executable on it. When you do an su, if it is executed properly, your terminal prompt will change from $
to #
. Thanks..
注意2:在最近的手机,很少有宏碁和三星的,我知道,安全性有所收紧,甚至生根的电话后,亚行重新装入
是行不通的。由于我知道,有没有解决方案,适用于它为止。
Note 2:In recent mobiles, few of acer and samsung that i know, Security has been tightened, and even after rooting the phone, adb remount
wouldn't work. As of i know, there is no solution available for it so far.
这篇关于Android的安装具有写权限的文件系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!