Question How to Backup EFS partition without TWRP? - Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40

Hi, just want to ask if it's possible to backup EFS partition on Poco F3 with just fastboot/ADB commands.
And if possible, how to do so. Thank you!

adb pull /dev/block/by-name/PARTITION_NAME

WoKoschekk said:
adb pull /dev/block/by-name/PARTITION_N
Click to expand...
Click to collapse
Whenever I try to pull anything in ADB mode, I just get an error. Is there something I need to do?
The error looks something like this
C:\Projects\test>adb pull dev/block/sda13
adb: error: failed to stat remote object 'dev/block/sda13': Permission denied
Click to expand...
Click to collapse

Related

[Q] ADB Remount

Alright, since i had a couple of problems with adb remount, i decided to do some research.
I'm running the latest OTA (2.10.405.2) rooted with Unrevoked 3.21, using Clockwork Recovery Mod 2.5.0.7.
Now once i go to the adb shell and type adb remount, i get the following error: (do mind, this is fully booted, i dont know if a remount is possible while booted?)
adb devices
List of devices attached
BLA12345 device
adb remount
remount failed: Operation not permitted
Click to expand...
Click to collapse
Ive read something about figuring out if adb recognizes your device as root, so i tried doing this with getprop ro.secure
It returned the following:
adb shell
$ getprop ro.secure
getprop ro.secure
1
Click to expand...
Click to collapse
This means adb does not recognize my device as root, so i booted into recovery, went to adb again and did the same. This time it returned:
adb devices
List of devices attached
BLA12345 recovery
adb shell
~# getprop ro.secure
getprop ro.secure
/sbin/sh: getprop: not found
Click to expand...
Click to collapse
Now, i can always mount the /system partition manually by going into clockworkmod recovery, but i'd like to be able to use adb remount aswell. Does anyone know what's going on and how to fix this
Thanks in advance!
Up.
10 chars
for starters we cant mount /system as r/w while booted... as it stands we dont even need to use the remount command, as we only have r/w access to system whilst in recovery, if you just use the mount /system command, it will automatically be mounted as r/w
AndroHero said:
for starters we cant mount /system as r/w while booted... as it stands we dont even need to use the remount command, as we only have r/w access to system whilst in recovery, if you just use the mount /system command, it will automatically be mounted as r/w
Click to expand...
Click to collapse
Aaah alright, i get the picture now! Seems they have released S-OFF today tho, time to start using remount?
Lunatic2 said:
Aaah alright, i get the picture now! Seems they have released S-OFF today tho, time to start using remount?
Click to expand...
Click to collapse
i only just noticed that after i replied to your post happy days

[Q]Help stuck on fastboot and cwm

Hi this might be a noobish question but i cant find the answer anywhare:
so here's the problem i was trying to fix a badly installed rom, so i wiped the phones storage I then tried to kick myself when i realized that i had just deleted my backup and all the data on the phones internal storage, so now i can only get onto fastboot and clockworkmod recovery 5.8.3.1.
So is there a way to flash a rom in fastboot usb, or mount the phones internal storage so i can copy in a rom zip?
I would be grateful for any help
There is an option in cwm to mount storage you can try that not sure if they work tho.
Sent from my HTC One X using XDA Premium HD app
malcovitch said:
There is an option in cwm to mount storage you can try that not sure if they work tho.
Sent from my HTC One X using XDA Premium HD app
Click to expand...
Click to collapse
It will not work.
What you can do other than flashing a RUU is:
Boot to fastboot
fastboot boot CWM_recovery_full name.img
Once it boot to recovery
adb shell
adb push rom_name.zip /sdcard
It will take some times to finish as the rom_name.zip is big.
Once complete, you can flash the rom_name.zip as usual
To make it easier, change the rom_name.zip to update.zip, so you can
adb push update.zip /sdcard
Thank you I have done as you said but i must be doing something wrong because i get this error:
C:\Documents and Settings\me\Desktop\Android>adb shell
adb server is out of date. killing...
* daemon started successfully *
~ # adb push update.zip /sdcard
adb push update.zip /sdcard
/sbin/sh: adb: not found
~ #
(The update.zip is Android_Revolution_HD-One_X_5.1.0.zip)
do you think it could be a problem with my adb.exe or something on the phone?
did you do the "fastboot boot CWM_recovery_full name.img"
going to recovery via hboot will not work.
you need to fastboot boot recovery
and it is adb devices , not adb shell... sorry
see this : http://forum.xda-developers.com/showpost.php?p=25774374&postcount=24
yes that's how i got to cwm as below
C:\Documents and Settings\me\Desktop\Android>fastboot boot recovery-clockwork
-touch-5.8.3.1-endeavoru.img
downloading 'boot.img'...
OKAY [ 0.771s]
booting...
OKAY [ 0.010s]
finished. total time: 0.781s
C:\Documents and Settings\me\Desktop\Android>adb shell
adb server is out of date. killing...
* daemon started successfully *
~ # adb push update.zip /sdcard
adb push update.zip /sdcard
/sbin/sh: adb: not found
~ #
River825 said:
yes that's how i got to cwm as below
C:\Documents and Settings\me\Desktop\Android>fastboot boot recovery-clockwork
-touch-5.8.3.1-endeavoru.img
downloading 'boot.img'...
OKAY [ 0.771s]
booting...
OKAY [ 0.010s]
finished. total time: 0.781s
C:\Documents and Settings\me\Desktop\Android>adb shell
adb server is out of date. killing...
* daemon started successfully *
~ # adb push update.zip /sdcard
adb push update.zip /sdcard
/sbin/sh: adb: not found
~ #
Click to expand...
Click to collapse
my bad
C:\Documents and Settings\me\Desktop\Android>adb shell
change to
C:\Documents and Settings\me\Desktop\Android>adb devices
Then adb push rom.zip /sdcard
ok i think that worked but when trying to find the zip in cwm i just get "no files were found", but in the command prompt it looks like it was copied to the sd card:
C:\Documents and Settings\me\Desktop\Android>adb devices
List of devices attached
HT23WW118450 recovery
C:\Documents and Settings\me\Desktop\Android>adb push update.zip /sdcard
1586 KB/s (577044654 bytes in 355.290s)
That's wierd.
You mean that when you click "choose zip from sdcard" you have nothing in sdcard ?
yes clockworkmod says that the sd is empty.
I'm going to try again with a smaller file and maybe try and access the sd with a different recovery
River825 said:
yes clockworkmod says that the sd is empty.
I'm going to try again with a smaller file and maybe try and access the sd with a different recovery
Click to expand...
Click to collapse
No. It won't work as sdcard need to be manually mounted first.... that's why I said something about adb shell earlier.
I'll do the testing now:
my step will be:
fastboot boot xx-recovery.img
adb devices
adb shell
mount sdcard
open another cmd prompt
adb push xxx.zip /sdcard
will let you know in a short while
Just tested: this should be the correct way... I can see my xxx.zip when I choose : choose zip from sdcard
*you need to mount the sdcard first before adb push
thank you it worked fine I downloaded the zip to the sd and flashed the rom in cwm, but it didn't work and now i cant boot into recovery it just shows the revery screen for 1/2 a second, and reboots into the bootloader i tried flashing different recovery images but they didn't work.
Is there some way to wipe the phone recovery?
River825 said:
thank you it worked fine I downloaded the zip to the sd and flashed the rom in cwm, but it didn't work and now i cant boot into recovery it just shows the revery screen for 1/2 a second, and reboots into the bootloader i tried flashing different recovery images but they didn't work.
Is there some way to wipe the phone recovery?
Click to expand...
Click to collapse
Do:
fastboot erase cache
fastboot reboot-bootloader
Then press power once to go to hboot then select recovery. It should work.
Thank you
Thank you so much for all your advice i've just successfully flashed a rom and got my phone working again i was starting to fear for my phone.
Thanks again for all your help
ckpv5, when I try to follow your steps, I get "error: device not found" when doing adb shell in the command prompt? How do I fix that?
(My problem is that I formatted everything like an idiot in my phone and the internal sdcard seems to be unmounted or something like that)
Sam.Lambert said:
ckpv5, when I try to follow your steps, I get "error: device not found" when doing adb shell in the command prompt? How do I fix that?
(My problem is that I formatted everything like an idiot in my phone and the internal sdcard seems to be unmounted or something like that)
Click to expand...
Click to collapse
If you're on stock ROM, you don't have to do all the step, just simply flash RUU.
ckpv5 said:
If you're on stock ROM, you don't have to do all the step, just simply flash RUU.
Click to expand...
Click to collapse
I don't have the executable RUU for the Rogers handset, I only have a zip containing a bunch of img files and the executable RUU for the AT&T version (which didn't work, gave me ERROR [131]: Customer ID error or something like that).
Which the zipped RUU for the Rogers handset, I tried flashing the recovery_signed.img and boot_signed.img, relocking the bootloader and then flashing the system.img file but it would give me an error saying data length too large or something like that.
I really don't know what to do anymore
Sam.Lambert said:
I don't have the executable RUU for the Rogers handset, I only have a zip containing a bunch of img files and the executable RUU for the AT&T version (which didn't work, gave me ERROR [131]: Customer ID error or something like that).
Which the zipped RUU for the Rogers handset, I tried flashing the recovery_signed.img and boot_signed.img, relocking the bootloader and then flashing the system.img file but it would give me an error saying data length too large or something like that.
I really don't know what to do anymore
Click to expand...
Click to collapse
Which custom recovery is working for for your set ? Is the one from One X dev section works for you ? If it is not, I'm afraid unable to help you.
Which custom ROM that you use before the brick ?
ckpv5 said:
Which custom recovery is working for for your set ? Is the one from One X dev section works for you ? If it is not, I'm afraid unable to help you.
Which custom ROM that you use before the brick ?
Click to expand...
Click to collapse
Pretty much the only one available for the Evita One X (this one doesn't work if that's the one you are talking about http://forum.xda-developers.com/showthread.php?t=1594819):
http://www.modaco.com/topic/354009-interim-clockworkmod-recovery-for-the-s4-based-one-x/
Also, I wasn't able to succesfully flash a custom ROM, when I tried to it just kept giving me random status errors in CWM, I'm starting to think the problem is the hardware and not the software since every solution I try is giving me errors related to unable to install/transfer/blahblah
Sam.Lambert said:
Pretty much the only one available for the Evita One X (this one doesn't work if that's the one you are talking about http://forum.xda-developers.com/showthread.php?t=1594819):
http://www.modaco.com/topic/354009-interim-clockworkmod-recovery-for-the-s4-based-one-x/
Also, I wasn't able to succesfully flash a custom ROM, when I tried to it just kept giving me random status errors in CWM, I'm starting to think the problem is the hardware and not the software since every solution I try is giving me errors related to unable to install/transfer/blahblah
Click to expand...
Click to collapse
So it seems that yours is not on tegra but S4. You need to find a solution for your problem here : http://forum.xda-developers.com/forumdisplay.php?f=1538

adb push command return permission denied error?

Hi,
I tried to load a rom.zip file on to sdcard using adb push . It returned a permission denied error.
I did not see the file in the sdcard so I know the file not loaded.
Other adb command work just fine.
What did I do wrong ?
Thanks for your help
Boot into recovery before issuing your adb commands.
soupmagnet said:
Boot into recovery before issuing your adb commands.
Click to expand...
Click to collapse
Thanks. It works.
Can I do the same using TWRP ? what function of Twrp will do the same as adb push ?
Thanks
You can "Mount" your sdcard to USB.

Help with flashing recovey

I have a droid incredible that I recently found out how to unlock and I would like to flash a ROM but on the offical thread that I followed I unlocked it but when I got to the recovery part when it asked me to list devices it didn't show any And I'm not able to do the rest of the stuff either thanks for the help
Sent from my SGH-T989
Trozzul said:
I have a droid incredible that I recently found out how to unlock and I would like to flash a ROM but on the offical thread that I followed I unlocked it but when I got to the recovery part when it asked me to list devices it didn't show any And I'm not able to do the rest of the stuff either thanks for the help
Sent from my SGH-T989
Click to expand...
Click to collapse
You need to install and setup the adb drivers on your pc. http://unrevoked.com/rootwiki/doku.php/public/windows_hboot_driver_install
cmlusco said:
You need to install and setup the adb drivers on your pc. http://unrevoked.com/rootwiki/doku.php/public/windows_hboot_driver_install
Click to expand...
Click to collapse
are you talking about the sdk usb drivers?
Trozzul said:
are you talking about the sdk usb drivers?
Click to expand...
Click to collapse
Not exactly, the drivers in the link are modified from the ones in the sdk. If installed correctly with the phone plugged in, under device manager there will be an android bootloader interface entry.
i followed your guide up to the downgrading point and didnt work. i tried this thread too http://androidforums.com/incredible...ow-unlock-downgrade-achieve-s-off-htcdev.html and i get this
C:\Android>adb shell
$ su
su
# cd /data/local
chmod 0755 /data/local/flash_imagecd /data/local
#
chmod 0755 /data/local/flash_image
# cd /data/local
./flash_image misc /sdcard/mtd0.imgcd /data/local
#
./flash_image misc /sdcard/mtd0.img
mtd: read all-zero block at 0x00000000; skipping
mtd: not writing bad block at 0x00080000
error writing misc: No space left on device
#
i have plenty of space on here. does it require more than 2gb?
Trozzul said:
i followed your guide up to the downgrading point and didnt work. i tried this thread too http://androidforums.com/incredible...ow-unlock-downgrade-achieve-s-off-htcdev.html and i get this
C:\Android>adb shell
$ su
su
# cd /data/local
chmod 0755 /data/local/flash_imagecd /data/local
#
chmod 0755 /data/local/flash_image
# cd /data/local
./flash_image misc /sdcard/mtd0.imgcd /data/local
#
./flash_image misc /sdcard/mtd0.img
mtd: read all-zero block at 0x00000000; skipping
mtd: not writing bad block at 0x00080000
error writing misc: No space left on device
#
i have plenty of space on here. does it require more than 2gb?
Click to expand...
Click to collapse
I belive what its saying is your misc partition is fubar. This means your partition tables are jacked, and the phone is essentially soft-bricked.
so what do i do? i am still able to use it
Trozzul said:
so what do i do? i am still able to use it
Click to expand...
Click to collapse
It is probably physically broken. You can try to flash an ruu and see if it takes, but im thinking a needed portion of your flash memory has been damaged or corrupted beyond repair.
I saw ruu on how to unlock the bootloader. I have tired looking it up but nothing comes up .
Trozzul said:
I saw ruu on how to unlock the bootloader. I have tired looking it up but nothing comes up .
Click to expand...
Click to collapse
Download and place this file http://dinc.does-it.net/Stock_Images/4.08.605.15/PB31IMG.zip on your sdcard in no folders, do not rename it. Then boot to hboot (vol down + power), it should find the file and prompt you to press vol up to install. If it dosent find the file, you may need to reformat the sdcard fa32 and then try again.
Thanks I'll try this tomorrow hope it works! I just only want to flash a ROM I think the stock is very ugly
Sent from my SGH-T989
alright i have done what you asked do i try the part i was stuck on again? (and btw what did that file do?)
Trozzul said:
alright i have done what you asked do i try the part i was stuck on again? (and btw what did that file do?)
Click to expand...
Click to collapse
That was the latest ruu (rom update utility), it is ment to redo the entire phone and put it like it was fresh out of the box. If it fixed the phone you should be able to boot to the os like norrmal. Did it flash ok, any errors?
No errors worked perfectly
Trozzul said:
No errors worked perfectly
Click to expand...
Click to collapse
So the phone is working?
yes but it looks like no more root do i start over now?
Trozzul said:
yes but it looks like no more root do i start over now?
Click to expand...
Click to collapse
Yes are you s-off? If not you need to unlock the bootloader again.
I lied about it working apps wont open update or install i can open the playstore and i was unlocked befor but didnt have s-off i thought i was getting the that part in the thread
Nevermind about the apps i reset the phone and its fine. Sorry im not that bright...
Trozzul said:
Nevermind about the apps i reset the phone and its fine. Sorry im not that bright...
Click to expand...
Click to collapse
Yeah you need to unlock again by fastboot flashing the unlock_token they sent you before. You can follow this guide http://forum.xda-developers.com/showthread.php?t=1506258.

S- OFF Errors

I followed the instructions here: http://www.modaco.com/topic/361797-...-30android-235-guide-to-root-s-offsim-unlock/ but i always recieve errors. Is there any other way to get s- off?
crazynitro said:
I followed the instructions here: http://www.modaco.com/topic/361797-...-30android-235-guide-to-root-s-offsim-unlock/ but i always recieve errors. Is there any other way to get s- off?
Click to expand...
Click to collapse
adb shell /data/local/tmp/goldcard -c <string of numbers and letters should go here> -o /data/local /tmp/goldcard.img
this command is an error, it should be without a space after local,and remove the whole <sh*there> part and paste your goldcard numbers and letters.This is a step where most get stuck, I merely assumed you were here too.Describe on where you get stuck
Steam. said:
adb shell /data/local/tmp/goldcard -c <string of numbers and letters should go here> -o /data/local /tmp/goldcard.img
this command is an error, it should be without a space after local,and remove the whole <sh*there> part and paste your goldcard numbers and letters.This is a step where most get stuck, I merely assumed you were here too.Describe on where you get stuck
Click to expand...
Click to collapse
Thanks for replying i tried it but it said: The system cannot find the file specified. :/
way before that, when i entered this command: adb shell dd if=/dev/block/mmcblk0p22 of=/data/local/tmp/boot.img , i got the response: /dev/block/mmcblk0p22: cannot open for read: Permission denied. Is this normal?
crazynitro said:
Thanks for replying i tried it but it said: The system cannot find the file specified. :/
way before that, when i entered this command: adb shell dd if=/dev/block/mmcblk0p22 of=/data/local/tmp/boot.img , i got the response: /dev/block/mmcblk0p22: cannot open for read: Permission denied. Is this normal?
Click to expand...
Click to collapse
are you running the command from your phone or from your PC?I see you have skype, why don't we have a little chat there..
Steam. said:
are you running the command from your phone or from your PC?I see you have skype, why don't we have a little chat there..
Click to expand...
Click to collapse
i'm using my pc. whats your skype name?
crazynitro said:
i'm using my pc. whats your skype name?
Click to expand...
Click to collapse
I just added you.

Categories

Resources