[GUIDE] ADB to Pull Images of L90 - LG Optimus L90

Thanks to @evoname for showing me how to do this! [emoji4]
This is if you are interested in pulling the system images for whatever reason. I'm not responsible if you brick your device. Use at your own risk!
adb shell
su
dd if=/dev/block/mmcblk0p6 of=/sdcard/aboot.img
dd if=/dev/block/mmcblk0p9 of=/sdcard/abootb.img
dd if=/dev/block/mmcblk0p16 of=/sdcard/boot.img
dd if=/dev/block/mmcblk0p15 of=/sdcard/laf.img
dd if=/dev/block/mmcblk0p17 of=/sdcard/recovery.img
dd if=/dev/block/mmcblk0p31 of=/sdcard/system.img
exit
exit
adb pull /sdcard/aboot.img
adb pull /sdcard/abootb.img
adb pull /sdcard/boot.img
adb pull /sdcard/laf.img
adb pull /sdcard/recovery.img
adb pull /sdcard/system.img
exit
Sent from my LG-D415 using Tapatalk

Related

[UTIL] SkitzBackup

The attached ZIP includes scripts for Windows and Linux to backup your Galaxy Tab.
Linux users will need to install 7zip
Code:
sudo apt-get install p7zip
May also work on OSX but you're on your own with 7zip
You will need adb access to your tab whichever platform you use.
All you need to do to run it is extract the attached archive and run
Windows
Code:
skitzbackup.cmd
Linux / OSX
Code:
chmod a+x <folder where you extracted it>/skitzbackup/skitzbackup.sh
cd <folder where you extracted it>/skitzbackup
./skitzbackup.sh
The script will pull the following partitions and pack them in a 7zip archive for safe keeping:
efs
recovery
boot
system
radio
cache
misc
Before you ask, I have no idea what the 'misc' partition is. Haven't had time to explore that yet
I have NOT tested flashing these back as yet, except for boot and recovery so you use this entirely at your own risk.
DOWNLOAD HERE
View attachment skitzbackup.zip
Enjoy!
Code:
alias del=rm
mkdir skitzbackup
cd skitzbackup
adb shell su -c "dd if=/dev/block/mmcblk0p1 of=/sdcard/efs.img bs=4096"
adb shell su -c "dd if=/dev/block/mmcblk0p2 of=/sdcard/recovery.img bs=4096"
adb shell su -c "dd if=/dev/block/mmcblk0p3 of=/sdcard/boot.img bs=4096"
adb shell su -c "dd if=/dev/block/mmcblk0p4 of=/sdcard/system.img bs=4096"
adb shell su -c "dd if=/dev/block/mmcblk0p5 of=/sdcard/cache.img bs=4096"
adb shell su -c "dd if=/dev/block/mmcblk0p6 of=/sdcard/misc.img bs=4096"
adb shell su -c "dd if=/dev/block/mmcblk0p7 of=/sdcard/radio.img bs=4096"
adb pull /sdcard/efs.img
adb pull /sdcard/recovery.img
adb pull /sdcard/boot.img
adb pull /sdcard/system.img
adb pull /sdcard/cache.img
adb pull /sdcard/misc.img
adb pull /sdcard/radio.img
adb shell rm /sdcard/efs.img
adb shell rm /sdcard/recovery.img
adb shell rm /sdcard/boot.img
adb shell rm /sdcard/system.img
adb shell rm /sdcard/cache.img
adb shell rm /sdcard/misc.img
adb shell rm /sdcard/radio.img
7z a skitzbackup.7z *.img
del *.img
Could this be used to backup apps and app data before unlocking bootloader? I can't see a /data partition
working perfectly!You're great
djmasque said:
Could this be used to backup apps and app data before unlocking bootloader? I can't see a /data partition
Click to expand...
Click to collapse
No. Unfortunately, using this method to backup needs to write to the 'sdcard' which is what you want to back up.
Writing a script to back up data is a bit tricky since you can't reference it as a drive in windows and you can't know, for sure what the mount point will be in linux.
My main aim with the first version was to write a script which would work on either Windows or Linux, which it does. I might do seperate scripts to do a data backup.
bcmobile said:
No. Unfortunately, using this method to backup needs to write to the 'sdcard' which is what you want to back up.
Writing a script to back up data is a bit tricky since you can't reference it as a drive in windows and you can't know, for sure what the mount point will be in linux.
My main aim with the first version was to write a script which would work on either Windows or Linux, which it does. I might do seperate scripts to do a data backup.
Click to expand...
Click to collapse
Okay, good work nonetheless
Looks a lot like rotobackup, hehe.
Chainfire said:
Looks a lot like rotobackup, hehe.
Click to expand...
Click to collapse
Yes, it is based on rotobackup method, but compresses and cleans up too
Sent from my GT-P7100 using XDA Premium App
bcmobile said:
Yes, it is based on rotobackup method, but compresses and cleans up too
Sent from my GT-P7100 using XDA Premium App
Click to expand...
Click to collapse
Whats needed now is a kind of automated restore
bcmobile said:
You will need adb access to your tab whichever platform you use.
All you need to do to run it is extract the attached archive and run
Click to expand...
Click to collapse
Sorry for the noob question but how do i do this true windows?
Will this work for me?
Hi bcmobile,
This looks excellent.
I'm currently running a P7100 (10.1v) with ISI-Galaxy 1.2.5v (HC3.2) but my baseband/modem is still P7100BUKE2.
I would like to get the GSM working (for sending USSD commands) but I would need to flash my modem, and I would like to backup the modem before I flash it with the P7500 modem.bin, if something goes wrong, I can always go back to the old one.
In your script, is radio.img the modem.bin?
Also is the "/dev/block/" always the same on all the different versions of the tablet? (in other words if I have a 10.1v will this backup my modem).
Thanks so much. You help is much appreciated.
seraphimserapis said:
Whats needed now is a kind of automated restore
Click to expand...
Click to collapse
/!\ IN THEORY /!\ you'd just have to copy the .img files back to the tab and switch the command line arguments for dd. (e.g. dd if=/path/to/file.img of=/path/to/directory)
soo i know this is kind of old but does this work for any device? if so what am i doing wrong? its stuck on deamon started successfully...

Help needed. For Kernel Image making

I was wondering if any body would be kind of enough to write a tutorial of making boot images
I am trying commands from DroidX and so far havent had any success in unpacking and repacking the same kernel.
Also If you can list the different parts of the file system of the phone would be very helpful.
Need a sticky for this
Thanks in advance.
My friend,
Contact skin1980, amit bagaria, rex, ronhoover88 and namaless..
All these people especially amit, skin1980 have very good experience with the source code... ronhoover can point you in the right direction!
Hope I helped.....
Lordrdx666
Sent from my gt-I9003 with A.I. Type
adb shell su -c "dd if=/dev/block/bml1 of=/sdcard/boot.bin bs=4096"
adb shell su -c "dd if=/dev/block/bml2 of=/sdcard/pit.pit bs=4096"
adb shell su -c "dd if=/dev/block/stl3 of=/sdcard/efs.rfs bs=4096"
adb shell su -c "dd if=/dev/block/bml4 of=/sdcard/Sbl.bin bs=4096"
adb shell su -c "dd if=/dev/block/stl6 of=/sdcard/param.lfs bs=4096"
adb shell su -c "dd if=/dev/block/bml7 of=/sdcard/zImage bs=4096"
adb shell su -c "dd if=/dev/block/stl9 of=/sdcard/factoryfs.rfs bs=4096"
adb shell su -c "dd if=/dev/block/stl10 of=/sdcard/dbdata.rfs bs=4096"
adb shell su -c "dd if=/dev/block/stl11 of=/sdcard/cache.rfs bs=4096"
adb shell su -c "dd if=/dev/block/bml12 of=/sdcard/modem.bin bs=4096"
adb shell su -c "tar -czvf /sdcard/data.tar.gz /data"
are these numbers correct ?
ganaboy said:
adb shell su -c "dd if=/dev/block/bml1 of=/sdcard/boot.bin bs=4096"
adb shell su -c "dd if=/dev/block/bml2 of=/sdcard/pit.pit bs=4096"
adb shell su -c "dd if=/dev/block/stl3 of=/sdcard/efs.rfs bs=4096"
adb shell su -c "dd if=/dev/block/bml4 of=/sdcard/Sbl.bin bs=4096"
adb shell su -c "dd if=/dev/block/stl6 of=/sdcard/param.lfs bs=4096"
adb shell su -c "dd if=/dev/block/bml7 of=/sdcard/zImage bs=4096"
adb shell su -c "dd if=/dev/block/stl9 of=/sdcard/factoryfs.rfs bs=4096"
adb shell su -c "dd if=/dev/block/stl10 of=/sdcard/dbdata.rfs bs=4096"
adb shell su -c "dd if=/dev/block/stl11 of=/sdcard/cache.rfs bs=4096"
adb shell su -c "dd if=/dev/block/bml12 of=/sdcard/modem.bin bs=4096"
adb shell su -c "tar -czvf /sdcard/data.tar.gz /data"
are these numbers correct ?
Click to expand...
Click to collapse
Sorry man, but this need for compile kernel? for me no..
send request to skin, is powerful kernel developer
Its skin who can help on kernel, other than him, no one on this forum. May be amit to certain extent.
Sent from my GT-I9003 using XDA Premium App
Found it !!!!!!
mkbootimg --kernel mykernel --ramdisk myram -o normalboot.img --base 81800000 --pagesize 4096
http://forum.xda-developers.com/showthread.php?t=1109424&page=5
If anyone is interested.
ganaboy said:
Found it !!!!!!
mkbootimg --kernel mykernel --ramdisk myram -o normalboot.img --base 81800000 --pagesize 4096
http://forum.xda-developers.com/showthread.php?t=1109424&page=5
If anyone is interested.
Click to expand...
Click to collapse
Skin and amit are the people for you to contact.... as such I don't have access to a windows based pc usually... having access to linux based computer is another story altogether
Sent from my gt-I9003 with A.I. Type
I wouldn't rely on the source package as of now, Skin mentioned there were outdated files.

LG Optimus L90 Stock partition images

I'm starting to see a lot of "I bricked my phone" threads and most causes have been the lack of stock backups. So...
I own the LG-D415 so for the devices I don't own I'm gonna need yalls help with. For the smaller partitions, zip up your backup. Post a reply here with your zip attached to your post. I'll upload and host them on my Dev-Host account. NO system partitions please.
LG-D415
LG-D400
LG-D405
LG-D410
To make backups of your own partitions: ( Will produce block for block copies or images )
REQUIRED: External sdcard
REQUIRED: Terminal Emulator or PC with adb
On device with Terminal Emulator ( Download from Play Store if you don't have it )
Code:
dd if=/dev/block/platform/msm_sdcc.1/by-name/aboot of=/storage/external_SD/aboot.img bs=4096
dd if=/dev/block/platform/msm_sdcc.1/by-name/abootb of=/storage/external_SD/abootb.img bs=4096
dd if=/dev/block/platform/msm_sdcc.1/by-name/boot of=/storage/external_SD/boot.img bs=4096
dd if=/dev/block/platform/msm_sdcc.1/by-name/cache of=/storage/external_SD/cache.img bs=4096
dd if=/dev/block/platform/msm_sdcc.1/by-name/recovery of=/storage/external_SD/recovery.img bs=4096
dd if=/dev/block/platform/msm_sdcc.1/by-name/system of=/storage/external_SD/system.img bs=4096
dd if=/dev/block/platform/msm_sdcc.1/by-name/userdata of=/storage/external_SD/userdata.img bs=4096
On a PC with adb
Code:
adb shell dd if=/dev/block/platform/msm_sdcc.1/by-name/aboot of=/storage/external_SD/aboot.img bs=4096
adb shell dd if=/dev/block/platform/msm_sdcc.1/by-name/abootb of=/storage/external_SD/abootb.img bs=4096
adb shell dd if=/dev/block/platform/msm_sdcc.1/by-name/boot of=/storage/external_SD/boot.img bs=4096
adb shell dd if=/dev/block/platform/msm_sdcc.1/by-name/cache of=/storage/external_SD/cache.img bs=4096
adb shell dd if=/dev/block/platform/msm_sdcc.1/by-name/recovery of=/storage/external_SD/recovery.img bs=4096
adb shell dd if=/dev/block/platform/msm_sdcc.1/by-name/system of=/storage/external_SD/system.img bs=4096
adb shell dd if=/dev/block/platform/msm_sdcc.1/by-name/userdata of=/storage/external_SD/userdata.img bs=4096
Backups of the system and userdata partitions will be lengthy. About 7 minutes for the 2 GB system partition. Close to 15 minutes for the 4 GB userdata partition.
Or you can optionally use my [SCRIPT] LG Optimus L90 Utilities
LG-D415
aboot - http://d-h.st/VX3
abootb - http://d-h.st/drl
boot - http://d-h.st/NaS
laf - http://d-h.st/udi
recovery - http://d-h.st/STL​
LG-D400
LG-D405
LG-D410
Reserved 5
Hi shinobisoft,
these are the D405 v10a boot.img, laf.img and recovery.img
4pio
Please upload for D405n... I am in grave need!!!!!!
Also I need d405n partition.txt files to use in boarddiag, my phone is bricked...!!!
I have a d410 v20c rooted. Can I proceed with your commands for the backup or should I firt unlock the bootloader or do other things?
Thank you

[DEV] Partition backups LG G2

Here's the codes to backup your partitions on the LG G2. Probably work an any variant. I need this for future references as now it will be stored online forever!!!
Need ADB installed.
adb shell
adb su
Code:
dd if=/dev/block/platform/msm_sdcc.1/by-name/system of=/sdcard/system.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/boot of=/sdcard/boot.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/aboot of=/sdcard/aboot.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/recovery of=/sdcard/recovery.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/modem of=/sdcard/modem.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/rpm of=/sdcard/rpm.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/tz of=/sdcard/tz.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/laf of=/sdcard/laf.img
----
dd if=/dev/block/platform/msm_sdcc.1/by-name/dbi of=/sdcard/dbi.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/sbl1 of=/sdcard/sbl1.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/persist of=/sdcard/persist.img

[SCRIPT] [HACK] root on most variant

REMOVED
Mods please close thread
Code:
adb push su98 /data/local/tmp
adb shell cd data/local/tmp && adb shell chmod 775 su98 && adb shell ./su98 && adb shell su
adb push recovery /sdcard
adb shell cat /dev/zero >> /dev/mtd/mtd2 && adb shell cd /sdcard && adb shell flash_image recovery /sdcard/recovery.img
adb shell rm /sdcard/recovery.img
adb shell reboot
sorry this is incomplete, more like a PoC
I think will not work if bootloader still locked
GiaiPhapAndroid said:
I think will not work if bootloader still locked
Click to expand...
Click to collapse
yEs

Categories

Resources