Flashing ls660 using sendcommand.exe need a dev to look over commands - Android Q&A, Help & Troubleshooting

I got my hands on a ls660 finally. It is possible to use send_command.exe to flash and backup the phone. I already tested this myself.
There is no need to zero your laf partition to enter fastboot to flash twrp!
1. copy the twrp bumped image on the sd card
2. cd into the folder that you have the send_command.exe stored.
3. with your ls660 turned off hold volume up and plug in the usb data cable
4. after the phone is in download mode send this command to the apropriate diag port:
Code:
Send_Command.exe \\.\COM14
The phone will show
Code:
Author : blog.lvu.kr
SPECIAL COMMAND : ENTER, LEAVE
6. This command backs up your recovery image and names it OGrecovery:
Code:
dd if=/dev/block/mmcblk0p17 of=/storage/external_SD/OGrecovery.img
7. This command flashes your phone with the twrp image:
Code:
dd if=/storage/external_SD/recovery_bumped.img of=/dev/block/mmcblk0p17
8. Send the following command in all caps:
Code:
LEAVE
When you reboot to recovery you should load twrp recovery.

Related

[DEV] HowTo Basic Dev Steps (Updated)

Enable Developer Mode:
( on the watch )
tap clock, swipe up and go all the way down to “About”
tab build number several times. You’ll know
up one menu, “Developer Options” -> “ADB debugging”
your phone will ask you to allow debugging
dock it, plug usb to computer
in terminal:
adb usb
adb devices (check out your device’s serial #)
adb shell (woot! shell on your watch!)​
Backup contents of system partition
mkdir system
adb pull /system ./system​
Void the warranty (unlock bootloader)
adb reboot-bootloader
fastboot oem unlock
follow instructions on device
device will factory reset & reboot​
Root ( needed to dump partition images, otherwise not particularly useful )
credit for this: androidpolice.com/2014/07/05/how-to-android-wear-enable-debugging-take-screenshots-unlock-the-bootloader-and-root-the-lg-g-watch/
get this: androidfilehost.com/?fid=23501681358558067
adb reboot-bootloader
Boot the image: fastboot boot LGGW-rootboot.img
DO NOT FLASH THE IMAGE!!!! FOR THE LOVE OF GOD DON’T FLASH IT!!!!!!!
intended to boot only once (installs su, etc)
adb shell
su
now what?​
Dump some partitions: ( in a root shell on the watch )
partition layout
mmcblk0p15 - boot
mmcblk0p16 - recovery
mmcblk0p19 - system
mmcblk0p20 - cache
mmcblk0p21 - userdata​dump some partitions. for example: ( jump into adb shell, as root )
dd if=/dev/block/mmcblk0p15 of=/sdcard/backup/boot.img
dd if=/dev/block/mmcblk0p16 of=/sdcard/backup/recovery.img
dd if=/dev/block/mmcblk0p19 of=/sdcard/backup/system.img
dd if=/dev/block/mmcblk0p20 of=/sdcard/backup/cache.img​DONT TRY TO BACKUP mmcblk0p21 to the sdcard!!! the “sdcard” is on that partition!!
pull the images. for example: ( on your computer )
adb pull /sdcard/backup/boot.img .
adb pull /sdcard/backup/recovery.img .
adb pull /sdcard/backup/system.img .
adb pull /sdcard/backup/cache.img .​maybe delete those images from the device when you are done
Have Fun!​
Restore images (flash via fastboot)
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img
fastboot flash cache cache.img
​
The following may be tricky, might break stuff, and is generally not recommended unless you really know what you are doing
You have been warned!
Install a zip file using the stock recovery (might only work with signed updates, not roms)
In a terminal on your computer:
adb push whatever-new-rom.zip /sdcard/update.zip
adb shell
cp /sdcard/update.zip /cache/update.zip
echo 'boot-recovery ' > /cache/recovery/command
echo '--update_package=/cache/update.zip' >> /cache/recovery/command​reboot recovery
Enable Bluetooth debugging (really slow, kinda lame)
connect your phone over usb
on watch, in developer settings, Debug over Bluetooth
on phone, open wear app, in settings Debugging over bluetooth
on computer:
adb forward tcp:4444 localabstract:/adb-hub
adb connect localhost:4444
adb shell​
Install Debian chroot
on your phone (thats right, your phone) install Debian Kit from Play Store
open it, it the download button in top right corner
download debian-kit-1-6-testing.shar
open an adb shell to your phone ( i prefer usb)
su
cd /sdcard/Download
on my phone it always downloads it as a .jpeg rename it to .shar
mv debian-kit-1-6-testing.jpeg debian-kit-1-6-testing.shar
sh debian-kit-1-6-testing.shar​Answer Y to unpack
read the menu, then choose 0j (wheezy does not work in this script, don’t want it anyway)
it will now create /sdcard/debian.img (512mb) (will take a couple minutes)
next it will mount the image
next it will debootstrap a basic installation of jessie to the image (this takes a long time, ~30 minutes)
you might see an error “cannot create symlink…” that’s good, we don’t want to touch /system anyway
once its done. copy that debian.img from your phone to your computer
adb pull /sdcard/debian.img .​we also need everything it unpacked to /data/local/deb
mkdir deb
adb pull /data/local/deb ./deb
​unplug phone and plug in the watch, then push those to the watch
adb push debian.img /sdcard/
adb push deb /data/local/​​debian will not have internet access, the watch has no wifi. need to figure out how to forward over bluetooth
now what? check out this page: sven-ola.dyndns.org/repo/debian-kit-en.html​
Also, the best Fastboot Doc ever: wiki.cyanogenmod.org/w/Doc:_fastboot_intro
Thanks for the Info
If I backup the files, would I be able to flash those same files back to recover the device ,kinda like a unbricking method. Coudlnt I do it though fastboot ?
Sent from my LG-D851 using XDA Premium 4 mobile app
Froz3nsolid said:
Thanks for the Info
If I backup the files, would I be able to flash those same files back to recover the device ,kinda like a unbricking method. Coudlnt I do it though fastboot ?
Sent from my LG-D851 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
The IMAGES (boot.img, etc) can be flashed from fastboot:
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash system system.img
However, there is no way (that i have found yet) do dump images using fastboot; dumping must be done on the device itself
updating op...
Thanks
Sent from my LG-D851 using XDA Premium 4 mobile app

Unlocking a droid DNA with revone instead of moonshine

Step 0: Download revone from the mirror http://himahima.ldblog.jp/archives/43170020.html
Step 1: Preparing with S-OFF
(Go to settings/battery/disable fastboot)
adb push run_root_shell /data/local/tmp
adb push revone.dna-0.2.1 /data/local/tmp
adb push device.db /data/local/tmp
adb shell
(now on the shell)
chmod 755 run_root_shell revone.dna-0.2.1
./run_root_shell
./revone.dna-0.2.1 -P
(reboots, reopen a shell)
./run_root_shell
./revone.dna-0.2.1 -s 0 -u
(check that it says SOFF in adb reboot bootloader)
Step 2: Installing recovery
Now flash recovery with the matching version of twrp, if you want nusense, not from https://dl.twrp.me/dlx/twrp-2.7.1.0-dlx.img.html but from http://android.cmphys.com/twrp-dlx/ : ideally 2.7.0.8 for nusensesix, , or a new stable version version from http://android.cmphys.com/twrp-dlx/ : copy that file to recovery.img then:
adb reboot bootloader
(press power)
fastboot flash recovery recovery.img
(test by going to bootloader (press power), then down (press volume) to recovery : it's new and nice!!)
(may need fastboot oem unlock)
Step 3: Updating the firmware
adb reboot bootloader
fastboot oem rebootRUU
fastboot flash zip firmware.zip
(It will say that the update did not finish, so repeat the above)
fastboot flash zip firmware.zip
(the flash process halts at around 75% to 90% on phone screen! This is normal and a safety precaution)
fastboot reboot
reboot to system to complete the install:
adb reboot
Step 4: Installing the ROM
reboot to recovery to format the partition and install the firmware
adb reboot recovery
(select install, select the zip file)
did you sure for this method, i follow the links given, this memod is for J butterfly ( HTL21 and 22), did you tried this and successed?

heeeeeeeeeeeeeeeeeeelp

its a problem.i ported a rom but im scared to test it! because im worry that the rom doesnt boot and i stuck there or my device brick!how to fix it if it happens?ty
my device is:leeco coolpad cool 1
If you keep making threads like this one you will get banned !
Use adb to backup your stock rom
(Make sure to have enabled usb debugging )
How to:
- Run adb shell and then su and accept the root access dialog
- Then run 'ls -al /dev/block/platform/msm_sdcc.1/by-name' to get the partition table (we need to find the location of boot and system)
- Run 'dd if=/dev/block/mmcblk0px of=/sdcard/boot.img' replace the x in mmcblk0px with the corresponding number of the boot partition, for example, for my device it is 14. Now we have backed up the kernel (boot).
- Run 'dd if=/dev/block/mmcblk0px of=/sdcard/system.img' and replace the x in mmcblk0px with the corresponding number of the system, for example, for my device it is 23. Now we have backed up the system.
How to restore:
- You can use fastboot flash (fastboot flash boot boot.img and fastboot flash system system.img)
- You can use adb (dd if=/sdcard/boot.img of=/dev/block/mmcblk0px and replace x with the corresponding partition bla bla you know )
Good luck

accessing fastboot mode xperia - PC does not see phone

Hi all,
I am trying to unlock bootloader on my Xperia XZ1 compact. Followed all the exact steps on the "sony developer how to unlock bootloader" website and checked out different guides and tutorials. I installed lineage OS on my previous phone (Lenovo P2), so I made it work at least once in the past.
So:
unlock bootloader is allowed on the phone
USB and OEM debugging are turned on
downloaded and installed the latest firmware and USB drivers
download platform tools with ADB and fastboot
I put my phone into fastboot mode (volume up and power button), the blue led is turned on wich supposedly means that it is in fastboot mode
I open up a powershell (run as administrator) etc. and give the 'fastboot devices' command -> which then returns nothing.
Any suggestions? Am i overlooking something?
thanks for your help!
Meat
note: I use ".\fastboot devices" as the actual command, since i get this error if i do not use ".":
fastboot : The term 'fastboot' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ fastboot devices
+ ~~~~~~~~
+ CategoryInfo : ObjectNotFound: (fastboot:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Suggestion [3,General]: The command fastboot was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default. If you trust this command, instead type: ".\fastboot".
Hi , if it says fastboot is not recognized means that the path from fastboot terminal is not found .
To fix this you can add path for fastboot or install minimal ADB&Fastboot terminal from here on your PC:
https://androidfilehost.com/?fid=746010030569952951
How to install see here:
https://forum.xda-developers.com/showthread.php?t=2317790
Also instead powershell you can use command prompt .
So Run Command prompt as administrator and directory will be :
C:\Windows\System32 >
change directory to location where you installed ADB &Fastboot terminal for example C:\adb by typing
cd C:\adb
Once you do that your fastboot and adb commands should work fine ...
Good luck

Gigaset gs 270 plus development, rooting, flashing, roms

hello all
i have a gigaset GS 270 plus, and everything i try to do on it fails
i backed up the data on my sd card using the recovery , but on restoring on an identical phone (trait for trait) it says "the backup file is out of date please rebackup your data
on the source phone i tried the same process and it went on smoothly but i cant risk formating, rooting , enabling adb, restoring and removing pasword because of the above problem.
i have 13 backup files of up to 25 gigabytes which i am unable to recover or decrypt on a pc even following the commands given on linux from this thread
https://forum.xda-developers.com/showthread.php?t=2408788&page=2
the phone connects in fastboot mode but not in adb mode
Fortunately it is a mediatek device and i have tried to back up the rom using this tutorial
https://android.stackexchange.com/q...nd-full-rom-without-root-for-mediatek-devices
but all to no avail
i tried a readback of my rom using help from @Alecxs using WwR MTK v2.51 from Ilya Aleksandrovich
but upon creating the scatter file it gives an error
https://ibb.co/Sd3HTfM
please i need anyhelp whatsoever to recover the files from the phone either by a readback or by unlocking the phone or any other method which i have not thought of
Thank you in advance!!!
search for stock ROM, use that preloader.bin
https://forum.xda-developers.com/showthread.php?t=3775129
https://forum.xda-developers.com/showthread.php?t=3899918
yet another instructions for exactly the same like the link you shared
how to create scatter file
https://forum.xda-developers.com/ap...v1-universal-systemless-t3432382/post77795016
aIecxs said:
search for stock ROM, use that preloader.bin
Click to expand...
Click to collapse
yeah, i thought of that too
i already tried searching but i was unable to find any rom except click baits
aIecxs said:
https://forum.xda-developers.com/showthread.php?t=3775129
https://forum.xda-developers.com/showthread.php?t=3899918
Click to expand...
Click to collapse
thank you let me try
Maybe that device has secure boot preventing SP Flash Tool from readback, try another download agent
we can help you porting TWRP but we can't help on readback, you are the only one who has physical access. if you follow the tutorial and it fails, maybe the tutorial is not working for this device
if you are using windows 10, try another PC with Windows 7 or try SP Flash Tool for Linux
edit: there are other methods for creating scatter file. post the output of fastboot getvar all
belvo02 said:
aIecxs said:
No, except you do a readback of metadata from SP Flash Tool. Note when login credentials are involved in encryption, you won't be able to decrypt even on rooted device
port TWRP recovery from Cubot X18 Plus and flash on locked bootloader, that's (besides official solutions) your best option to remove screen lock
Click to expand...
Click to collapse
do you have any suggestions for me?
i want to try dr fone but i dont think it supports gigaset smatphones
i need a method to remove the screen lock without loosing the data ,:sad:
i even got the same phone , i was planning to root it , restore the backup and then use twrp to remove the lock
but it says "the backup file is out of date please rebackup your data"
any method to recover this files s welcome, if i could get even just the pictures and videos, can any thing help me?
im going to try to connect it to sp flashtools and try what you said earlier
thank you for replying
Click to expand...
Click to collapse
you have two devices of same model? great, let's root the spare phone!
take away the source phone for now (the important one)
Do on the target phone only:
WARNING: factory reset - all data lost!
1) unlock the bootloader
- enable developer options by tapping build number seven (7x) times (in settings - about phone)
- enable OEM unlocking in developer options
- install platform-tools and connect device to PC in fastboot mode (Volume Down + Power)
- install usb drivers and check usb connection (from platform-tools directory in cmd.exe)
- unlock bootloader and confirm with Volume Up (factory reset)
Code:
fastboot devices
fastboot flashing unlock
fastboot reboot
2) temporary root device
- enable developer options
- enable usb-debugging
- connect to PC and install usb drivers
- check adb devices (from platform-tools directory in cmd.exe)
- on the phone display permanently authorize the incoming RSA key
- download mtk-su to PC
- adb push binary to /data/local/tmp
- chmod executing permissions
- run the binary until you see # prompt (multiple times)
Code:
adb push mtk-su /data/local/tmp
adb shell
cd /data/local/tmp
chmod 0755 mtk-su
./mtk-su
3) backup boot.img / recovery.img
- get list of partitions
- dump partitions into files (in # shell)
- copy files to Internal storage
- copy files to PC (via MTP)
Code:
ls -d $(find /dev/block -name by-name)/*
cat /dev/block/platform/mtk-msdc.0/11120000.msdc0/by-name/boot > boot.img
cat /dev/block/platform/mtk-msdc.0/11120000.msdc0/by-name/recovery > recovery.img
cp -v *.img /sdcard
4) root device with Magisk Manager
- install Magisk Manager
- open the app
- advanced settings - preserve force encryption
- keep avb/dm-verity
- tap install (2x) times
- select and patch a file - boot.img
- copy magisk_patched.img to PC
- reboot into fastboot
- flash the patched boot
Code:
fastboot flash boot magisk_patched.img
fastboot reboot
5) create your own TWRP recovery
... to be continued
(send me recovery.img will try to make TWRP and you can test)
edit: please do not full quote this post (i want update later). i will receive instant notification for answer button as well
aIecxs said:
you have two devices of same model? great, let's root the spare phone!
take away the source phone for now (the important one)
Do on the target phone only:
WARNING: factory reset - all data lost!
1) unlock the bootloader
- enable developer options by tapping build number seven (7x) times (in settings - about phone)
- enable OEM unlocking in developer options
- install platform-tools and connect device to PC in fastboot mode (Volume Down + Power)
- install usb drivers and check usb connection (from platform-tools directory in cmd.exe)
- unlock bootloader and confirm with Volume Up (factory reset)
Code:
fastboot devices
fastboot flashing unlock
fastboot reboot
2) temporary root device
- enable developer options
- enable usb-debugging
- connect to PC and install usb drivers
- check adb devices (from platform-tools directory in cmd.exe)
- on the phone display permanently authorize the incoming RSA key
- download mtk-su to PC
- adb push binary to /data/local/tmp
- chmod executing permissions
- run the binary until you see # promt (multiple times)
Code:
adb push mtk-su /data/local/tmp
adb shell
cd /data/local/tmp
chmod 0755 mtk-su
./mtk-su
3) backup boot.img / recovery.img
- get list of partitions
- dump partitions into files (in # shell)
- copy files to Internal storage
- copy files to PC (via MTP)
Code:
ls -d $(find /dev/block -name by-name)/*
cat /dev/block/platform/mtk-msdc.0/11120000.msdc0/by-name/boot > boot.img
cat /dev/block/platform/mtk-msdc.0/11120000.msdc0/by-name/recovery > recovery.img
cp -v *.img /sdcard
4) root device with Magisk Manager
- install Magisk Manager
- open the app
- advanced settings - preserve force encryption
- keep avb/dm-verity
- tap install (2x) times
- select and patch a file - boot.img
- copy magisk_patched.img to PC
- reboot into fastboot
- flash the patched boot
Code:
fastboot flash boot magisk_patched.img
fastboot reboot
5) create your own TWRP recovery
... to be continued
(send me recovery.img will try to make TWRP and you can test)
Click to expand...
Click to collapse
thanks im on it!
Thanks a lot @aIecxs for the posting, tried with a Gigaset GS270 but the mtk-su is not working:
1|Gigaset_GS270:/data/local/tmp $ ./mtk-su -v
Failed critical init step 1
Any workaround to get this device rooted?
Best regards

Categories

Resources