Wednesday, 20 July 2016

Porting a Custom Recovery to an Unsupported Device and Flashing



Hey XDA,

Finally took the leap and started doing a little developing. I have successfully setup Linux, a build environment, and compiled a custom CWM recovery for my device. I noticed some things along the way that made me very weary of actually flashing it.

Here is some of my output:

PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.2.2
CM_VERSION=10.1-20160720-UNOFFICIAL-q80
TARGET_PRODUCT=cm_q80
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-4.4.0-28-generic-x86_64-with-debian-stretch-sid
HOST_BUILD_TYPE=release
BUILD_ID=JDQ39E
OUT_DIR=/home/lin/cm-10.1/out
============================================
Platform version = Android Version right? This is building for Kit-Kat so I cant use this on my device.? My Target_ARCH_Variant is armv7-a-neon is this okay to use with Krait?

Here is my target device specs:
MSM8974 Krait ARMv7
Android 6.0.1
ADB rooted, I’m having issue getting SU to work properly on the device.
Build Number says dev-keys at the end what does this mean?


I attempted to re-flash my clean stock recovery pulled from the device as a test run and can’t even get that to work. Since my build says dev-keys does that mean that the keys are located somewhere on the device so I can sign an update.zip that will flash through the stock recovery? AFAIK there is no ODIN-like tool or download mode I can get into. I have the flash_image binary on the device. When I run flash_image recovery /sdcard/recovery.img I get this message:
“Error scanning partitions: No such file or directory”

Are there any other options to flash my recovery.img? My recovery partition is located at mmcblk0p20. I have been out of the loop for a while now. Is CMW recovery dead these days? The guides I'm using are probably pretty old as well. Been having a lot of fun so far but I seem to have hit a wall. Any help would be appreciated.


Thanks!



No comments:

Post a Comment