I deleted the wrong Partiton.Pls help me - Xiaomi Mi 8 Questions & Answers

By mistake dd if=/dev/zero of=/dev/block/sdf with command deleted.This device not opening.Device is bootloop.Twrp,Fastboot opening.With Mi flash Firmware installing wrong. İmageFv.elf not flashing.What should I do

action0666 said:
By mistake dd if=/dev/zero of=/dev/block/sdf with command deleted.This device not opening.Device is bootloop.Twrp,Fastboot opening.With Mi flash Firmware installing wrong. İmageFv.elf not flashing.What should I do
Click to expand...
Click to collapse
+1

Related

[DEV][Q] How can i make a odin package of a modifidy stock rom?

Hi Guys,
I Have a rooted Galaxy s advanced. I have modified the stock rom (build I9070XXLQE) android 4.1.2. and now i'm trying to make a flashable odin pakage. after exporting the data and system block to a .img file. and putting them in a md5sum file. Odin get stuck on initializing. does someone know how how to make a working odin pakage for the i9070?
And why would you like to do that?
Isn't it easier to rather make a nand backup?
I do not respond to tech support via PM
dikkekip said:
Hi Guys,
I Have a rooted Galaxy s advanced. I have modified the stock rom (build I9070XXLQE) android 4.1.2. and now i'm trying to make a flashable odin pakage. after exporting the data and system block to a .img file. and putting them in a md5sum file. Odin get stuck on initializing. does someone know how how to make a working odin pakage for the i9070?
Click to expand...
Click to collapse
Do this in windows:
tar -H ustar -c nameofthefile.img > nameofthefile.tar
md5sum -t nameofthefile.tar >> nameofthefile.tar
rename nameofthefile.tar nameofthefile.tar.md5
You need in the same folder md5sum.exe and tar.exe
Sent from my GT-I9070
rolling out on 350 devices
Shaaan said:
And why would you like to do that?
Isn't it easier to rather make a nand backup?
I do not respond to tech support via PM
Click to expand...
Click to collapse
Naidroid backup is nice and works great. the problem is I have to roll out the modified rom on 350 i9070 android devices. so a odin package would be nice. Do I have to flash the data package with the odin files to copy everything ?
still no luck, I'm able to make a odin package now. the only problem is the device that I flash. has no system applications, problems like no keyboard and a crashing google services..
plz help ?
I'm using
adb shell
dd if=/dev/block/mmcblk0p3 of=/mnt/extSdCard/system.img bs=4096
dd if=/dev/block/mmcblk0p5 of=/mnt/extSdCard/userdata.img bs=4096
dd if=/dev/block/mmcblk0p3 of=/mnt/extSdCard/system.img bs=4096
dikkekip said:
still no luck, I'm able to make a odin package now. the only problem is the device that I flash. has no system applications, problems like no keyboard and a crashing google services..
plz help ?
I'm using
adb shell
dd if=/dev/block/mmcblk0p3 of=/mnt/extSdCard/system.img bs=4096
dd if=/dev/block/mmcblk0p5 of=/mnt/extSdCard/userdata.img bs=4096
dd if=/dev/block/mmcblk0p3 of=/mnt/extSdCard/system.img bs=4096
Click to expand...
Click to collapse
Are u missing /preload partition?
Sent from my GT-I9070 using xda app-developers app
I've solved the problem,
i have fixed the premission of the systemapps
I think the app does something like chmod 777
anyway after using the premmision fix app.
the new odin package worked good!
tnx for the feedback

(D405) Manually unlock bootloader

Hi all!
I'm trying to unlock my phone's bootloader with terminal emulator with this command:
Code:
su
dd if=/sdcard/aboot.bin of=/dev/block/mmcblk0p6
but it gave me an error like cannot open to read.
So I was thinking if it's possible to manually put renominated about.bin in /dev/block. Is it?
enij said:
Hi all!
I'm trying to unlock my phone's bootloader with terminal emulator with this command:
Code:
su
dd if=/sdcard/aboot.bin of=/dev/block/mmcblk0p6
but it gave me an error like cannot open to read.
So I was thinking if it's possible to manually put renominated about.bin in /dev/block. Is it?
Click to expand...
Click to collapse
No it's not possible. Below is what you'll need.
If 'aboot.bin' is in root of external sdcard...
Code:
su
dd if=/storage/external_SD/aboot.bin of=/dev/block/platform/msm_sdcc.1/by-name/aboot
If 'aboot.bin' is in root of internal sdcard...
Code:
su
dd if=/storage/sdcard0/aboot.bin of=/dev/block/platform/msm_sdcc.1/by-name/aboot
Sent from my LG-D415 using Tapatalk
shinobisoft said:
No it's not possible. Below is what you'll need.
If 'aboot.bin' is in root of external sdcard...
Code:
su
dd if=/storage/external_SD/aboot.bin of=/dev/block/platform/msm_sdcc.1/by-name/aboot
If 'aboot.bin' is in root of internal sdcard...
Code:
su
dd if=/storage/sdcard0/aboot.bin of=/dev/block/platform/msm_sdcc.1/by-name/aboot
Sent from my LG-D415 using Tapatalk
Click to expand...
Click to collapse
tnx you
shinobisoft said:
No it's not possible. Below is what you'll need.
If 'aboot.bin' is in root of external sdcard...
Code:
su
dd if=/storage/external_SD/aboot.bin of=/dev/block/platform/msm_sdcc.1/by-name/aboot
If 'aboot.bin' is in root of internal sdcard...
Code:
su
dd if=/storage/sdcard0/aboot.bin of=/dev/block/platform/msm_sdcc.1/by-name/aboot
Sent from my LG-D415 using Tapatalk
Click to expand...
Click to collapse
I tryed your code but I still get the same error. Seems like terminal emulator can't access to my phone's storage, even root directory.
For the "of=" part of dd don't put aboot.bin just use aboot
Sent from my LG-D415 using Tapatalk
shinobisoft said:
For the "of=" part of dd don't put aboot.bin just use aboot
Sent from my LG-D415 using Tapatalk
Click to expand...
Click to collapse
Tried that also but always the same error.
Oh god...the file name it's abootb.bin not aboot.bin xD
enij said:
Oh god...the file name it's abootb.bin not aboot.bin xD
Click to expand...
Click to collapse
Ok. Let me explain...
'if' means input file
'of' means out file
When writing partitions there aren't any fule extensions. The screen shot you posted, for the 'of' part the path ended with aboot.bin. It should end with just aboot. Same difference for abootb.
Sent from my LG-D415 using Tapatalk
shinobisoft said:
Ok. Let me explain...
'if' means input file
'of' means out file
When writing partitions there aren't any fule extensions. The screen shot you posted, for the 'of' part the path ended with aboot.bin. It should end with just aboot. Same difference for abootb.
Sent from my LG-D415 using Tapatalk
Click to expand...
Click to collapse
I was talking of input file...it was abootb.bin and i was writing aboot.bin in terminal emulator, for this it didn't found the file! Anyway my problem now it's another: seems that bootloader isn't unlocked, I flashed cwm and when I try to run recovery i get a secure booting error. Bootloader not unlocked? Why?
enij said:
I was talking of input file...it was abootb.bin and i was writing aboot.bin in terminal emulator, for this it didn't found the file! Anyway my problem now it's another: seems that bootloader isn't unlocked, I flashed cwm and when I try to run recovery i get a secure booting error. Bootloader not unlocked? Why?
Click to expand...
Click to collapse
Ok. But there is an error in the 'of' part of your screenshot.
I cannot say why your bootloader isn't unlocked. My D415 has a different way to unlock the bootloader. Are you 100% sure that you input everything for the dd command correctly? Use my previous example, letter for letter, but substituting abootb where aboot is.
Sent from my LG-D415 using Tapatalk
Your aboot.img could be wrong too, when I was unlocking I downloaded stock one accidentally
shinobisoft said:
Ok. But there is an error in the 'of' part of your screenshot.
I cannot say why your bootloader isn't unlocked. My D415 has a different way to unlock the bootloader. Are you 100% sure that you input everything for the dd command correctly? Use my previous example, letter for letter, but substituting abootb where aboot is.
Sent from my LG-D415 using Tapatalk
Click to expand...
Click to collapse
At the end i unlocked my bootloader, the problem was the code... Of was /dev/block/mmcblk0p6
how to have a costum rom on my L90 D405
hi all
i have LG L90 D405 and i wanna have a costum rom on my phone
1) what do i do?? i mean how to unlock bootloader and root my phone and also flash a costum recovery and costum rom??
sorry im noob :crying:
i read this topic and i understand that i have to write some codes but where??!!
thanks a lot
@ LARA @

I Brick my device, please help

I brick my device restoring modem.
Please can some owner of MiMix 256Gb make a copy of a partition /dev/block/sde3 and and send to my email ?
Commands:
adb shell
su
dd if=/dev/block/sde3 of=/sdcard/tz.bin
my email [email protected]
Please help!
Solved Thanks! Take the file from fastboot rom
TuSKan said:
I brick my device restoring modem.
Please can some owner of MiMix 256Gb make a copy of a partition /dev/block/sde3 and and send to my email ?
Commands:
adb shell
su
dd if=/dev/block/sde3 of=/sdcard/tz.bin
my email [email protected]
Please help!
Solved Thanks! Take the file from fastboot rom
Click to expand...
Click to collapse
How did you brick it?
SantinoInc said:
How did you brick it?
Click to expand...
Click to collapse
Flashing the modem in the wrong place:
dd if=/sdcard/modemst2 of=/dev/block/sde3 instead of
dd if=/sdcard/modemst2 of=/dev/block/sdf3
Dear users, please be carefull with this kind of commands...
To the author thread: Use xiaomiflash if you can enter to fastboot mode and flash latest DEVELOPER CHINA to revive your MIX.

[MOD]Re-locking bootloader LG V10

Nice guy (pjanowski2540) from polish android forum has re-locked his bootloader by himself, so it's possible to have a root on 6.0 with actual warranty!
All credits goes to him, I'm just sharing this method. Source link: CLICK
WARNING: If you want to lock bootloader, you NEED to back to EXACTLY SAME VERSION of Android 5.1 with root permissions. (for example - if you have done backup of bootloader files on v10c, you have to back to v10c, when you want lock it)​Requirements:
- LG V10 H960a with locked bootloader;
- LGUP
- Android 5.1 with root
- Computer with Windows system
CREATING BACKUP
Step 1: Download terminal emulator (or download ADB to your computer) on rooted 5.1
Step 2: Open terminal emulator and give it root
Step 3: Create backup of partitions by these commands:
Code:
dd if=/dev/block/mmcblk0 bs=512 skip=9674752 count=327680 of=/data/media/0/cust.img
dd if=/dev/block/mmcblk0 bs=512 skip=245760 count=32768 of=/data/media/0/misc.img
dd if=/dev/block/mmcblk0 bs=512 skip=229376 count=1024 of=/data/media/0/persistent.img
dd if=/dev/block/mmcblk0 bs=512 skip=638976 count=20480 of=/data/media/0/drm.img
Step 4: Navigate to /data/media/0/ and copy these backups
After that we can easily unlock bootloader, jump to 6.0, install TWRP, root etc.
RE-LOCKING BOOTLOADER
Step 1: Move backup to /data/media/0/
Step 2: Open terminal (or ADB) with root and type:
Code:
dd if=/data/media/0/cust.img bs=512 seek=9674752 count=327680 of=/dev/block/mmcblk0
dd if=/data/media/0/misc.img bs=512 seek=245760 count=32768 of=/dev/block/mmcblk0
dd if=/data/media/0/persistent.img bs=512 seek=229376 count=1024 of=/dev/block/mmcblk0
dd if=/data/media/0/drm.img bs=512 seek=638976 count=20480 of=/dev/block/mmcblk0
4. Restart phone. That's it, our bootloader is again locked!
I am not responsible for any damage caused by the misuse of this manual. Don't blame me, if something went wrong!​
kamil79123 said:
Nice guy (pjanowski2540) from polish android forum has re-locked his bootloader by himself, so it's possible to have a root on 6.0 with actual warranty!
All credits goes to him, I'm just sharing this method. Source link: CLICK
WARNING: If you want to lock bootloader, you NEED to back to EXACTLY SAME VERSION of Android 5.1 with root permissions. (for example - if you have done backup of bootloader files on v10c, you have to back to v10c, when you want lock it)​Requirements:
- LG V10 H960a with locked bootloader;
- LGUP
- Android 5.1 with root
- Computer with Windows system
CREATING BACKUP
Step 1: Download terminal emulator (or download ADB to your computer) on rooted 5.1
Step 2: Open terminal emulator and give it root
Step 3: Create backup of partitions by these commands:
Code:
dd if=/dev/block/mmcblk0 bs=512 skip=9674752 count=327680 of=/data/media/0/cust.img
dd if=/dev/block/mmcblk0 bs=512 skip=245760 count=32768 of=/data/media/0/misc.img
dd if=/dev/block/mmcblk0 bs=512 skip=229376 count=1024 of=/data/media/0/persistent.img
dd if=/dev/block/mmcblk0 bs=512 skip=638976 count=20480 of=/data/media/0/drm.img
Step 4: Navigate to /data/media/0/ and copy these backups
After that we can easily unlock bootloader, jump to 6.0, install TWRP, root etc.
RE-LOCKING BOOTLOADER
Step 1: Move backup to /data/media/0/
Step 2: Open terminal (or ADB) with root and type:
Code:
dd if=/data/media/0/cust.img bs=512 seek=9674752 count=327680 of=/dev/block/mmcblk0
dd if=/data/media/0/misc.img bs=512 seek=245760 count=32768 of=/dev/block/mmcblk0
dd if=/data/media/0/persistent.img bs=512 seek=229376 count=1024 of=/dev/block/mmcblk0
dd if=/data/media/0/drm.img bs=512 seek=638976 count=20480 of=/dev/block/mmcblk0
4. Restart phone. That's it, our bootloader is again locked!
I am not responsible for any damage caused by the misuse of this manual. Don't blame me, if something went wrong!​
Click to expand...
Click to collapse
So, for people who already unlock the bootloader and dont have backed up those partitions, updated to 6.0 and do root and have TWRP already this method wont will work right?!
- i want to relock mine but i am on 6.0 already and i think i cant go back to 5.1 and re-do the steps above!
and i dont have any "backups" of partitions or files when unlocked my bootloader, i just want to relock bootloader and (if possible) keep root my stock rom.
I'm not sure. Everything we can try is if I give you backup from v10c Europe, you back to v10c Europe and try to lock bootloader. But as I said - I'm not sure.
Wysłane z mojego LG-H960 przy użyciu Tapatalka
kamil79123 said:
I'm not sure. Everything we can try is if I give you backup from v10c Europe, you back to v10c Europe and try to lock bootloader. But as I said - I'm not sure.
Wysłane z mojego LG-H960 przy użyciu Tapatalka
Click to expand...
Click to collapse
i am sorry but i cannot try to restore to update your backup on my device because i can brick my phone...without any other development around this wasnt made i am not be the first one to try it out...but since this is new i will wait for more development around.
Hope with Nougat update (with should arrive next month) more things can be discovered.
Simply install stock kdz/tot (If you are on custom rom) if already on stock then simply reboot into bootloader and type fastboot oem lock .... It will relock the bootloader.
@Waxim1 It does not work my friend.
Wysłane z mojego LG-H960 przy użyciu Tapatalka
kamil79123 said:
@Waxim1 It does not work my friend.
Wysłane z mojego LG-H960 przy użyciu Tapatalka
Click to expand...
Click to collapse
Dear, I have unlocked and relocked lot of times, it does work
bạn có thể gửi cho tôi lệnh gửi system.img ?
Can you send me the command to send system.img? My device H960( not H960A) thanks!
explain to me.....i want now to root my device without loosing warranty...
what should i do?
can anybody explain to me?
Unlock bootloader
kamil79123 said:
Nice guy (pjanowski2540) from polish android forum has re-locked his bootloader by himself, so it's possible to have a root on 6.0 with actual warranty!
All credits goes to him, I'm just sharing this method. Source link: CLICK
WARNING: If you want to lock bootloader, you NEED to back to EXACTLY SAME VERSION of Android 5.1 with root permissions. (for example - if you have done backup of bootloader files on v10c, you have to back to v10c, when you want lock it)​Requirements:
- LG V10 H960a with locked bootloader;
- LGUP
- Android 5.1 with root
- Computer with Windows system
CREATING BACKUP
Step 1: Download terminal emulator (or download ADB to your computer) on rooted 5.1
Step 2: Open terminal emulator and give it root
Step 3: Create backup of partitions by these commands:
Code:
dd if=/dev/block/mmcblk0 bs=512 skip=9674752 count=327680 of=/data/media/0/cust.img
dd if=/dev/block/mmcblk0 bs=512 skip=245760 count=32768 of=/data/media/0/misc.img
dd if=/dev/block/mmcblk0 bs=512 skip=229376 count=1024 of=/data/media/0/persistent.img
dd if=/dev/block/mmcblk0 bs=512 skip=638976 count=20480 of=/data/media/0/drm.img
Step 4: Navigate to /data/media/0/ and copy these backups
After that we can easily unlock bootloader, jump to 6.0, install TWRP, root etc.
RE-LOCKING BOOTLOADER
Step 1: Move backup to /data/media/0/
Step 2: Open terminal (or ADB) with root and type:
Code:
dd if=/data/media/0/cust.img bs=512 seek=9674752 count=327680 of=/dev/block/mmcblk0
dd if=/data/media/0/misc.img bs=512 seek=245760 count=32768 of=/dev/block/mmcblk0
dd if=/data/media/0/persistent.img bs=512 seek=229376 count=1024 of=/dev/block/mmcblk0
dd if=/data/media/0/drm.img bs=512 seek=638976 count=20480 of=/dev/block/mmcblk0
4. Restart phone. That's it, our bootloader is again locked!
I am not responsible for any damage caused by the misuse of this manual. Don't blame me, if something went wrong!​
Click to expand...
Click to collapse
How did you unlock the bootloader?
From the lg website or there is any other method?
@up
LG Developer site
warranty?
kamil79123 said:
@up
LG Developer site
Click to expand...
Click to collapse
but they can know that i am unlocked right
even if i locked again
the will go to the site and type my imei and they will know right?
am i wrong?
problem
kamil79123 said:
@up
LG Developer site
Click to expand...
Click to collapse
i have a problem unlocking the bootloader
it gives me this Message:
http://store6.up-00.com/2017-05/14941686673341.jpg
can anyone help me?
and mine is h960a (UAE)
omar2005 said:
i have a problem unlocking the bootloader
it gives me this Message:
http://store6.up-00.com/2017-05/14941686673341.jpg
can anyone help me?
and mine is h960a (UAE)
Click to expand...
Click to collapse
https://developer.lge.com/resource/mobile/RetrieveBootloader.dev
check devices
Then you have to buy a other V10 Version. Like the Version with 64gb from Asia. Or the h960a Version with 32gb. That h960a Version is in the LG List to Unlock the Bootloader. The You have No Guarantee! You have to gave the whole IMEI Number to LG and they store it. It's not possible to Re-Lock the Bootloader like it is with the Htc Phones.
Sent Form my Lovely LG-H960a ATR Android 7 ROM + Tapatalk

Need partition img

Do somebody who have a s3 mini (i-8190L) can make, via twrp, a copy of the /dev/block/mmcblk0p4 partition and send it here, please.
You can do it by opening a terminal on TWRP and executing this command "dd of=/dev/block/mmcblk0p4 if=/sdcard/mmcblk0p4.img"
I would be very grateful if somebody helps me.
Any one kno twrp.img file for s3 mini ve 18200
IkerST said:
Do somebody who have a s3 mini (i-8190L) can make, via twrp, a copy of the /dev/block/mmcblk0p4 partition and send it here, please.
You can do it by opening a terminal on TWRP and executing this command "dd of=/dev/block/mmcblk0p4 if=/sdcard/mmcblk0p4.img"
I would be very grateful if somebody helps me.
Click to expand...
Click to collapse
You need MD5HDR(md5.img)?? Why ? Resetting counter ? BTW you typed wrong. first if then of correct command should be dd if=/dev/block/mmcblk0p4 of=/sdcard/md5.img
PurePower777 said:
You need MD5HDR(md5.img)?? Why ? Resetting counter ? BTW you typed wrong. first if then of correct command should be dd if=/dev/block/mmcblk0p4 of=/sdcard/md5.img
Click to expand...
Click to collapse
I really don't know what is in that partition but a file that I flashed just before it broke, it only wrote there so I only need that image.
IkerST said:
I really don't know what is in that partition but a file that I flashed just before it broke, it only wrote there so I only need that image.
Click to expand...
Click to collapse
I have i8190 international, not l version. But i believe both uses the same. I can send you but i'm not responsible for brick
I believe someone will upload the file here. Sorry for my bad english.
PurePower777 said:
I have i8190 international, not l version. But i believe both uses the same. I can send you but i'm not responsible for brick
I believe someone will upload the file here. Sorry for my bad english.
Click to expand...
Click to collapse
Don't worry send it, everything is better than having it in my desk without working.

Categories

Resources