[Q][XP][JB] Unable to get kernel using adb - Sony Xperia P, U, Sola, Go

> adb shell "dd if=/dev/block/mmcblk0p22 of=/sdcard/Boot.img"
using the above command i cannot get the kernel, the message i get is this: /dev/block/mmcblk0p22: cannot open for read: no such file or directory
tried using the same command on android terminal on the phone, still get similar message that the directory doesn't exist.
command used on terminal:
> su
> dd if=/dev/block/mmcblk0p22 of=/sdcard/Boot.img
any idea how to get the kernel? if you know please help. thanks
device:
- Xperia P LT22i
- Rooted with Locked Bootloader
- Stock Jelly Bean 4.1.2 ROM and Kernel

user44 said:
> adb shell "dd if=/dev/block/mmcblk0p22 of=/sdcard/Boot.img"
using the above command i cannot get the kernel, the message i get is this: /dev/block/mmcblk0p22: cannot open for read: no such file or directory
tried using the same command on android terminal on the phone, still get similar message that the directory doesn't exist.
command used on terminal:
> su
> dd /dev/block/mmcblk0p22 of=/sdcard/Boot.img
any idea how to get the kernel? if you know please help. thanks
device:
- Xperia P LT22i
- Rooted with Locked Bootloader
- Stock Jelly Bean 4.1.2 ROM and Kernel
Click to expand...
Click to collapse
where did you get =/dev/block/mmcblk0p22 from? There is no such partition.
Kernel is at /dev/block/mmcblk0p9

ChikeD said:
where did you get =/dev/block/mmcblk0p22 from? There is no such partition.
Kernel is at /dev/block/mmcblk0p9
Click to expand...
Click to collapse
got it from here: http://forum.xda-developers.com/showthread.php?t=1450588
i did what you said and it says ----- /dev/block/mmcblk0p9: cannot open for read: permission denied

user44 said:
got it from here: http://forum.xda-developers.com/showthread.php?t=1450588
i did what you said and it says ----- /dev/block/mmcblk0p9: cannot open for read: permission denied
Click to expand...
Click to collapse
It will definitely work if you do it as superuser (well, maybe unless you're using a rom with SELinux configured to block that...)

user44 said:
got it from here: http://forum.xda-developers.com/showthread.php?t=1450588
i did what you said and it says ----- /dev/block/mmcblk0p9: cannot open for read: permission denied
Click to expand...
Click to collapse
Every device is different, so you better look at Xperia P development for how to do things on our device.

Related

[ROOT] Mempodroid root - ICS 9.4.2.11+

** This is completely unsupported!!!!!!! **
ALL credit goes to saurik for the root method, Jason A. Donenfeld (zx2c4) for finding the exploit, alpharevx for finding the offsets and initial confirmation on the Transformer Prime and viperboy for finding it and posting it in his thread. I did not research, find, or develop this root method!
Mods, if I've done anything wrong, please feel free to remove this thread.
You will need to know how to use ADB commands, otherwise, use viperMOD PrimeTime!!!!!!!!!!!!!!!!!!!!!!!!.
Downloads:
mempodroid binary
su binary
Root:
adb push mempodroid /data/local
adb push su /data/local
adb shell
chmod 777 /data/local/mempodroid
/data/local/mempodroid 0xd9ec 0xaf47 sh
** You should now be in a remote shell session with root (indicated by #)
mount -o remount,rw -t ext4 /dev/block/mmcblk0p1 /system
** IF you have previously rooted your Prime, run the following two commands. They may throw an error that the file a file was not found.
rm /system/bin/su
rm /system/xbin/su
cat /data/local/su > /system/xbin/su
chown 0.0 /system/xbin/su
chmod 06755 /system/xbin/su
rm /data/local/mempodroid
rm /data/local/su
exit
exit
adb reboot
After your Transformer Prime comes up, install Superuser from android market.
HOPEFULLY everyone has learned their lesson and will also install Voodoo Rootkeeper as well!!!!!!!!!!!!!!!!!!!! R
Enjoi!!!!!!!!!!!!!!!
** Feb 21 2012 Edit **
Works on 9.4.2.14
** Feb 09 2012 Edit **
Works on 9.4.2.13
** Jan 25 2012 Edit **
Changed the mount command - thanks viperboy!
Added steps to possibly resolve issues with previously rooted systems
Changed a few steps to be a little bit easier.
**Jan 24 2012 Edit **
Some people are reporting issues with this method. I suspect this is due to previously having root or other altered files. A method that has worked for some is to update to 9.4.2.11.1 and then following the above procedures. Please note, this firmware release is unofficial and at this time THERE IS NO DOWNGRADE PATH.
i keep getting permission denied after
adb shell /data/local/mempodroid 0xd9ec 0xaf47 mount -o remount,rw '' /system
i missed a chmod step, add it just now.
run:
adb shell chmod 777 /data/local/mempodroid
and then pick up right where you left off.
as i am not root nor superuser .. i don't even get access
/ $ cd data
~ $ ls
ls: can't open '.': Permission denied
after this command
adb shell /data/local/mempodroid 0xd9ec 0xaf47 sh
i got [email protected]:/ # but i cant type anything else in the dos windows after it.. can you explain further please
insane111 said:
after this command
adb shell /data/local/mempodroid 0xd9ec 0xaf47 sh
i got [email protected]:/ # but i cant type anything else in the dos windows after it.. can you explain further please
Click to expand...
Click to collapse
click on the window, you should be able to continue typing
/mnt/sdcard/Download $ adb push su /data/local
error: device not found
for some odd reason i cant type anything else after on that window..
after shell with root, i get the #, but i can't type anything afterwards. do i just repeat the process over?
edit: question was already asked, tried clicking on window, doesn't work.
insane111 said:
for some odd reason i cant type anything else after on that window..
Click to expand...
Click to collapse
updating!
10 char
toby77jo said:
/mnt/sdcard/Download $ adb push su /data/local
error: device not found
Click to expand...
Click to collapse
no offense, you may want to just wait for the one click root.
Tairen said:
after shell with root, i get the #, but i can't type anything afterwards. do i just repeat the process over?
edit: question was already asked, tried clicking on window, doesn't work.
Click to expand...
Click to collapse
updated, should be working now.
hehe that is fine .. not offended
se1000 said:
updated, should be working now.
Click to expand...
Click to collapse
thank you very much sir.. it work...
insane111 said:
thank you very much sir.. it work...
Click to expand...
Click to collapse
NICE!!!!!!!!!!!!!!!!!!!!
hmm did everything on your post, and rebooted. already had SU so i just opened up an app that requires root (titanium backup) and it says it wasn't able to attain root?
edit: confirmed with root checker that i still don't have root
Tairen said:
hmm did everything on your post, and rebooted. already had SU so i just opened up an app that requires root (titanium backup) and it says it wasn't able to attain root?
edit: confirmed with root checker that i still don't have root
Click to expand...
Click to collapse
Try re-installing superuser? When I was rooted before, sometimes superuser wouldn't prompt me for SU on occasion too.
se1000 said:
Try re-installing superuser? When I was rooted before, sometimes superuser wouldn't prompt me for SU on occasion too.
Click to expand...
Click to collapse
ahh i see the problem..
cat /data/local/su > /system/xbin/su
sh: cannot create /system/xbin/su: Read-only file system
how do i proceed?
Tairen said:
ahh i see the problem..
cat /data/local/su > /system/xbin/su
sh: cannot create /system/xbin/su: Read-only file system
how do i proceed?
Click to expand...
Click to collapse
Looks like something went wrong on the first mempodroid command. Go back and start from the begining just in case. Shouldn't hurt anything.
se1000 said:
Looks like something went wrong on the first mempodroid command. Go back and start from the begining just in case. Shouldn't hurt anything.
Click to expand...
Click to collapse
Sounds good, will try again and update!

[Q] How to get the stock recovery.img from my Android

Hello everyone. I need a little help. I just want to pull the stock recovery from a Android device [ Gionee CTRL V4]. How to do it???
Dont know either
esarve said:
Hello everyone. I need a little help. I just want to pull the stock recovery from a Android device [ Gionee CTRL V4]. How to do it???
Click to expand...
Click to collapse
May have something to do with adb!
what i know so far- in command prompt in pc adb type 'adb shell'
when you see the $ thingy type - 'cat /proc/mtd' Note: Check if your phone is an 'mtd' somehow...
You'll see several line thingys. find the line saying 'recovery' and see the corresponding mtd number. Example: mtd6=recovery for my phone
Now that u know your mtd number 4 recovery type in 'dd if=/dev/mtd/mtd6 of /sdcard/recovery.img'
it should put the image in the root of your sd or so. this didn't work for me because pemission was denied for some reason
Mevex said:
this didn't work for me because pemission was denied for some reason
Click to expand...
Click to collapse
Permission is denied because you did not get root access. The commands should be in terminal emulator (if you don't want to use computer)
Code:
su
cat /proc/mtd
dd if=/dev/mtd/mtd# of=/sdcard/recovery.img
[Color=red][B][U]Here # is partition number you get from cat command[/U][/B][/Color]
If you are using computer and ADB, then enter following commands
Code:
adb start-server
adb devices
[color=green][I]Here your device should be listed[/I][/color]
adb shell
su
[color=green]Here "$" must change to "#" indicating that root access is granted. Check mobile screen for toast message [/color]
cat /proc/mtd
dd if=/dev/mtd/mtd# of=/sdcard/ recovery.img
[Color=red][B][U]Here # is partition number you get from cat command[/U][/B][/Color]
Press Thanks if helped.
Sent from my GT-S5360 Gadget of Mass Destruction by xda-app
using CWM........Busybox commands........ No I use my hands
hnkotnis said:
Permission is denied because you did not get root access. The commands should be in terminal emulator (if you don't want to use computer)
Code:
su
cat /proc/mtd
dd if=/dev/mtd/mtd# of=/sdcard/recovery.img
[Color=red][B][U]Here # is partition number you get from cat command[/U][/B][/Color]
If you are using computer and ADB, then enter following commands
Code:
adb start-server
adb devices
[color=green][I]Here your device should be listed[/I][/color]
adb shell
su
[color=green]Here "$" must change to "#" indicating that root access is granted. Check mobile screen for toast message [/color]
cat /proc/mtd
dd if=/dev/mtd/mtd# of=/sdcard/ recovery.img
[Color=red][B][U]Here # is partition number you get from cat command[/U][/B][/Color]
Press Thanks if helped.
Sent from my GT-S5360 Gadget of Mass Destruction by xda-app
using CWM........Busybox commands........ No I use my hands
Click to expand...
Click to collapse
my device no rooted then how to get recovery

BootLooooop!

Hi all, i added some files into the system directory of my kindle fire hdx 7'.. when i restarted it is stuck in a boot loop on the animated Kindle Fire boot screen, i can ADB onto it, and i attempted to remove the files, but "ADB su" isn't working for me, and I'm unable to access the system directory over ADB... and i don't have custom recovery.
Any ideas on this one? is there a way of restoring the Kindle?
Thanks
osmorgan said:
Hi all, i added some files into the system directory of my kindle fire hdx 7'.. when i restarted it is stuck in a boot loop on the animated Kindle Fire boot screen, i can ADB onto it, and i attempted to remove the files, but "ADB su" isn't working for me, and I'm unable to access the system directory over ADB... and i don't have custom recovery.
Any ideas on this one? is there a way of restoring the Kindle?
Thanks
Click to expand...
Click to collapse
what you get on
Code:
adb shell
su
?
thanks for the reply. when i
adb shell
su
Click to expand...
Click to collapse
it returns to 1:[email protected] where it should show [email protected] any ideas?
osmorgan said:
thanks for the reply. when i
it returns to 1:[email protected] where it should show [email protected] any ideas?
Click to expand...
Click to collapse
after that use
Code:
mount -o rw,remount /system
if you wil get permission denied you need to do hard reset from recovery and try again
after that you could change files in /system
great, i will try this later.. any guides on doing a hard reset?? keeping in mind that i don't have custom recovery..
thanks again.
osmorgan said:
great, i will try this later.. any guides on doing a hard reset?? keeping in mind that i don't have custom recovery..
thanks again.
Click to expand...
Click to collapse
you could get into stock recovery by holding power+volume up
all of this suggesting that you are at 4.5.2 and rooted
for 3.2.X hard reset will delete su - file
You're a star. Thanks. I'll get onto this after work.
ONYXis said:
you could get into stock recovery by holding power+volume up
all of this suggesting that you are at 4.5.2 and rooted
for 3.2.X hard reset will delete su - file
Click to expand...
Click to collapse
No luck :/ was unable to mount, and hard reset via recovery still results in boot loop :/ any other ideas?
Could you post output?
and pls what is your firmware and root method?
Seems no way to recover(sorry
How do I provide the output? I was 4.5.2 and rooted with CVE
copy-paste output from cmd
like:
Code:
adb shell
su
....
ahh i see what you mean.. ive run s uagian after factory reset and its now giving me the root prompt! great! im just about to follow this guys steps
http://forum.xda-developers.com/showthread.php?t=2793253
thanks for your help.. i may be back.
any idea if this method works with stock recovery?
ONYXis said:
copy-paste output from cmd
like:
Code:
adb shell
su
....
Click to expand...
Click to collapse
nope.. that didnt work for me.. do you know how i can push a deb to reflash?
Pls post output to see that exactly doesn't work.
to use that manual you need to use 4.5.3 bin btw
I see, I was having permissions errors when pushing the file to the sdcard, I had mounted the data partition. I am unable to write anything as shell user, but fine as root. Any ideas?
Thanks
adb shell
[email protected]:/ $ su
[email protected]:/ # mount -o rw,remount /cache
[email protected]:/ # mkdir /cache/recovery
mkdir failed for /cache/recovery, File exists
[email protected]:/ # echo install /cache/kindleupdate.bin > /cache/recovery/openrecoveryscript
[email protected]:/ # chmod 0777 /cache/recovery/openrecoveryscript
[email protected]:/ # exit
[email protected]:/ $ exit
Mac-miniownloads $ adb push update-kindle-13.4.5.3_user_453011120.bin /cache/kindleupdate.bin
failed to copy 'update-kindle-13.4.5.3_user_453011120.bin' to '/cache/kindleupdate.bin': Permission denied
What do you think?
ONYXis said:
what you get on
Code:
adb shell
su
?
Click to expand...
Click to collapse
ONYXis said:
Pls post output to see that exactly doesn't work.
to use that manual you need to use 4.5.3 bin btw
Click to expand...
Click to collapse
osmorgan said:
Mac-miniownloads $ adb push update-kindle-13.4.5.3_user_453011120.bin /cache/kindleupdate.bin
failed to copy 'update-kindle-13.4.5.3_user_453011120.bin' to '/cache/kindleupdate.bin': Permission denied
What do you think?
Click to expand...
Click to collapse
You cant do this at that way
you need :
Code:
adb push update-kindle-13.4.5.3_user_453011120.bin /sdcard/update.zip
adb shell
su
mount -o remount,rw /cache
cd /sdcard
cp update.zip /cache
chmod 777 /cache
chmod 777 /cache/recovery
cd /cache/recovery
echo "--update_package=/cache/update.zip" > command
exit
exit
adb reboot recovery
thank you but i still get permissions issues -
failed to copy 'update-kindle-13.4.5.3_user_453011120.bin' to '/sdcard/update.zip': Permission denied
ONYXis said:
You cant do this at that way
you need :
Code:
adb push update-kindle-13.4.5.3_user_453011120.bin /sdcard/update.zip
adb shell
su
mount -o remount,rw /cache
cd /sdcard
cp update.zip /cache
chmod 777 /cache
chmod 777 /cache/recovery
cd /cache/recovery
echo "--update_package=/cache/update.zip" > command
exit
exit
adb reboot recovery
Click to expand...
Click to collapse
osmorgan said:
thank you but i still get permissions issues -
failed to copy 'update-kindle-13.4.5.3_user_453011120.bin' to '/sdcard/update.zip': Permission denied
Click to expand...
Click to collapse
Hmm....Strange. Are you see Fire as mtp device on you Pc (for Mac you need https://www.android.com/filetransfer/)?
If "yes" - try to copy update.zip manual into Fire's internal storage.

Help rooting LG Lucid 4G

Hello,
I am trying to root my LG Lucid 4G with a one-click sort of method. However, it doesn't work. I am getting messages such as
Code:
failed to copy 'su' to 'system/bin/su': Read-only file system
I then opened up ADB, and tried to use the command
Code:
adb remount
, but that just responded with the message
Code:
remount failed: Operation not permitted
Does anyone know how to fix this, so I can root my phone?
Thanks in advance!
shotgunfacelift said:
Hello,
I am trying to root my LG Lucid 4G with a one-click sort of method. However, it doesn't work. I am getting messages such as
Code:
failed to copy 'su' to 'system/bin/su': Read-only file system
I then opened up ADB, and tried to use the command
Code:
adb remount
, but that just responded with the message
Code:
remount failed: Operation not permitted
Does anyone know how to fix this, so I can root my phone?
Thanks in advance!
Click to expand...
Click to collapse
try super su.
adithbalan said:
try super su.
Click to expand...
Click to collapse
By that, do you mean I should type
Code:
super su
into the ADB shell, or do you mean I should download the application for Android?
shotgunfacelift said:
By that, do you mean I should type
Code:
super su
into the ADB shell, or do you mean I should download the application for Android?
Click to expand...
Click to collapse
download the zip from their website and try flashing via system updater.
OR TRY THIS:
Code:
adb shell
su
mount -o remount rw /system
adithbalan said:
download the zip from their website and try flashing via system updater.
OR TRY THIS:
Code:
adb shell
su
mount -o remount rw /system
Click to expand...
Click to collapse
I can get to
Code:
adb shell
properly, but as soon as I type
Code:
su
, it says
Code:
/system/bin/sh: su: not found
shotgunfacelift said:
I can get to
Code:
adb shell
properly, but as soon as I type
Code:
su
, it says
Code:
/system/bin/sh: su: not found
Click to expand...
Click to collapse
try skipping it.
adithbalan said:
try skipping it.
Click to expand...
Click to collapse
It ends up saying
Code:
mount failed: Operation not permitted
https://theunlockr.com/2013/06/16/how-to-root-the-lg-lucid-4g-bin4ry-method/
adithbalan said:
https://theunlockr.com/2013/06/16/how-to-root-the-lg-lucid-4g-bin4ry-method/
Click to expand...
Click to collapse
Thanks, I'll try that.
adithbalan said:
https://theunlockr.com/2013/06/16/how-to-root-the-lg-lucid-4g-bin4ry-method/
Click to expand...
Click to collapse
So I tried it, and after the phone reboots a few times, the command prompt shows this message and then closes immediately:
Code:
Waiting for device to show up again....
Going to copy files to it's place
mount: permission denied (are you root?)
GOTO was unexpected at this time.

"rm -r" a file on root with terminal

Hi, does anyone know how to delete a file on root with terminal, as rm -r returns screenshotted error.
kriki200 said:
Hi, does anyone know how to delete a file on root with terminal, as rm -r returns screenshotted error.
Click to expand...
Click to collapse
Did you execute this command as root ? If not enter "su" then enter your command. (Make sure you hit "Allow" when the prompt for you to allow root accès to the shell appears)
And maybe it sounds stupid but try chmod commands if your command doesn't work.
I'm not an expert with android terminal so if the problem is persistent you can try this with a root explorer.
Hope all of this helped
Have a good day
kriki200 said:
Hi, does anyone know how to delete a file on root with terminal, as rm -r returns screenshotted error.
Click to expand...
Click to collapse
The partitition you want to deal with must be mounted as READ-WRITE before.
Raiz said:
Did you execute this command as root ? If not enter "su" then enter your command. (Make sure you hit "Allow" when the prompt for you to allow root accès to the shell appears)
And maybe it sounds stupid but try chmod commands if your command doesn't work.
I'm not an expert with android terminal so if the problem is persistent you can try this with a root explorer.
Hope all of this helped
Have a good day
Click to expand...
Click to collapse
I did, kinda don't want to change permissions... same.
jwoegerbauer said:
The partitition you want to deal with must be mounted as READ-WRITE before.
Click to expand...
Click to collapse
How do I do and undo that, will it change any file permissions?
Example:
Code:
su
cd /
mount -o rw,remount -t auto /system
jwoegerbauer said:
Example:
Click to expand...
Click to collapse
Thank you, it worked, do you know how to undo it, the below command deosn't seem to work and do you know what the "auto" is for in the command?
Code:
mount -o ro,remount -t auto /system

Categories

Resources