I recently made a factory reset of my Android phone. Before reset, I was able to install applications through adb install . The phone was not rooted.
After factory reset, I basically get “Operation not allowed” for almost every command in the adb shell (including those that don't exist):
$ install install: permission denied $ push push: permission denied $ remount remount: permission denied $ su su: permission denied $ kmmsaldfmaldskfmlasdf kmmsaldfmaldskfmlasdf: permission denied $
Most PATH is not readable to me (except for / system / bin and / system / xbin):
$ echo $PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin $ ls /sbin opendir failed, Permission denied $ ls /vendor/bin /vendor/bin: No such file or directory $ ls /system/sbin/ /system/sbin/: No such file or directory
If I run adb root :
$ adb root adbd cannot run as root in production builds
From my search (which has already robbed me of more time than necessary), some pointers to default.prop:
$ cat default.prop
But I do not have write access to default.prop:
$ ls -l default.prop -rw-r--r-- root root 118 1969-12-31 19:00 default.prop $
I can't remount either. I was able to successfully use adb on an unmanaged device, why is there so much sorrow now? Has anyone encountered this problem? My own phone is practically unsuitable for me, and, of course, I can not do anything.
Trying to remount as rw:
$ mount rootfs / rootfs ro,relatime 0 0 tmpfs /dev tmpfs rw,relatime,mode=755 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 tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0 tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0 /dev/stl9 /system rfs ro,relatime,vfat,log_off,check=no,gid/uid/rwx,iocharset=cp437 0 0 /dev/stl10 /cache rfs rw,nosuid,nodev,relatime,vfat,llw,gid/uid/rwx,iocharset=cp437 0 0 /dev/stl6 /mnt/.lfs j4fs rw,relatime 0 0 /dev/stl11 /data rfs rw,nosuid,nodev,relatime,vfat,llw,check=no,gid/uid/rwx,iocharset=cp437 0 0 $ mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 / mount: Operation not permitted
My phone is a Samsung Galaxy Y, which can make a difference