Android Emulator 4.1.2 Root? - android

How to root Android 4.1.2 is, as I said in the title?
adb shell mount -o rw,remount -t yaffs2 /dev/block/mtdblock03 /system
adb push su /system/xbin/su
adb shell chmod 06755 /system
adb shell chmod 06755 /system/xbin/su
this code works Android 2 but doesn't work on 4.1.2.

Change and Try using the following line:
adb shell mount -o rw,remount -t yaffs2 /dev/block/mtdblock0 /system

Related

Android 11 - ROOT : mount /system fails with not found in /proc/system

My OS is PixysOS - Android 11
When I do
mount -o rw,remount /system
It fails saying -
mount: '/system' not in /proc/mounts
But usually it worked. I've also tested in android 9
Found a solution here: https://stackoverflow.com/a/62653020/14797617
Looks like I've to mount the root (/) directory.
mount -o rw,remount /
Exit adb shell, then:
$ adb root
$ adb disable-verity
$ adb remount
$ adb shell
$ mount -o rw,remount /

Nexus 5 "sqlite3_enable_load_extension" referenced by "sqlite3"

Background Information:
Nexus 5
Have rooted permission on device
pull sqlite3 from my emulator
ADB pull /system/bin/sqlite3
push this sqlite3 onto my device
ADB push sqlite3 /sdcard/
adb shell
su
move sqlite3 into /system/xbin/ directory
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
# dd if=/sdcard/sqlite3 of=/system/xbin/sqlite3
# chmod 777 /system/xbin/sqlite3
# mount -o remount,ro -t yaffs2 /dev/block/mtdblock3 /system
Keep getting error when I try to use sqlite3. For example:
# sqlite3 /data/data/com.android.providers.contacts/databases/contacts2.db
The error I got is:
CANNOT LINK EXECUTABLE: cannot locate symbol "sqlite3_enable_load_extension" referenced by "sqlite3"...
Does anyone know how to get sqlite3 running successfully on Nexus 5 device ? Any help is greatly appreciated.
i had the same problem. I found this Version working for Jelly Bean http://bit.ly/sqlite3-for-jb on my N5 4.4.2.
adb push sqlite3-for-jb /sdcard/sqlite3
adb shell
su
mount -o remount,rw /system
cp /sdcard/sqlite3 /system/xbin/sqlite3
chmod 755 /system/xbin/sqlite3
mount -o remount,ro /system
Simply use "SQlite Installer For Root" from the play shop.

adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system Operation not permitted

i have put this command but facing this problem
Operation not permitted
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system
and this error is shown
Operation not permitted
You have to be a root to remount /system.
Check is this true by id command.
I guess you have only permissions of user-shell
add
If you are really root - you may try adb remount command. This command is exactly what you are looking for.
What I found worked for me on a rooted device
adb shell
su
abd mount -o remount,rw {whatever options you want}
su didn't ask for a password
If you have rooted phone then go to terminal and hit the below command to get all access
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
This helped me

Can i remount in the adb shell in android?

I am using this command
$ adb shell
$ su
-shows permission denied..
$ mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
But it shows some permission problems
ie. Usage: mount [-r] [-w] [-o options] [-t type] device directory
Thanks!!
You must root your device or unlock your bootloader (if possible) to use mount command

can android emulator be rebooted from adb shell?

i need to reboot my android emulator from adb shell
preetam#ubuntu:~/android-sdk-linux_x86/tools$ ./adb shell
# su
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
# reboot
i tried this commands, but they didn't work. Is there any other way to reboot the emulator?

Categories

Resources