[Upgrading, Modifying and Unlocking] [opensys]:
Hello folks !

Seams that china is making android clones of all models of android, special Samsung ones.

So one friend buy one white S4 clone that the sellers say that is good and 4 core :) (fake) and relieved to be some limitations...

They give me it the phone, and I decide to play with it a little bit :)

First I rooted (not easy, some china program) and I check the cpu and other details:

cat /proc/cpuinfo

Processor	: Dual-Core ARMv7 Processor rev 1 (v7l)

processor	: 0

BogoMIPS	: 1024.00

processor	: 1

BogoMIPS	: 1024.00

Features	: swp half thumb fastmult vfp edsp neon vfpv3

CPU implementer	: 0x41

CPU architecture: 7

CPU variant	: 0x0

CPU part	: 0xc05

CPU revision	: 1

Hardware	: MT6589

Revision	: 0101

Serial	: 0000000000000000

# cat /proc/mtd

NAND device: Manufacturer ID: 0x2c, Chip ID: 0xbc (Micron NAND 512MiB 1,8V 16-bit)

Good Block: 4038 Bad Block: 0 Reserved Block: 58

dev: size erasesize name

mtd0: 00040000 00020000 "spl"

mtd1: 00080000 00020000 "2ndbl"

mtd2: 00040000 00020000 "params"

mtd3: 00080000 00020000 "vmjaluna"

mtd4: 00a00000 00020000 "modem"

mtd5: 003c0000 00020000 "fixnv"

mtd6: 003c0000 00020000 "backupfixnv"

mtd7: 00500000 00020000 "dsp"

mtd8: 003c0000 00020000 "runtimenv"

mtd9: 00a00000 00020000 "boot"

mtd10: 00a00000 00020000 "recovery"

mtd11: 0c800000 00020000 "system"

mtd12: 0b400000 00020000 "userdata"

mtd13: 03c00000 00020000 "cache"

mtd14: 00040000 00020000 "misc"

mtd15: 00100000 00020000 "boot_logo"

mtd16: 00100000 00020000 "fastboot_logo"

mtd17: 003c0000 00020000 "productinfo"

mtd18: 00080000 00020000 "kpanic"

mtd19: 00080000 00020000 "simlock"

mtd20: 00a00000 00020000 "intmemory"

# cat /proc/partitions

major minor #blocks name

31 0 256 mtdblock0

31 1 512 mtdblock1

31 2 256 mtdblock2

31 3 512 mtdblock3

31 4 10240 mtdblock4

31 5 3840 mtdblock5

31 6 3840 mtdblock6

31 7 5120 mtdblock7

31 8 3840 mtdblock8

31 9 10240 mtdblock9

31 10 10240 mtdblock10

31 11 204800 mtdblock11

31 12 184320 mtdblock12

31 13 61440 mtdblock13

31 14 256 mtdblock14

31 15 1024 mtdblock15

31 16 1024 mtdblock16

31 17 3840 mtdblock17

31 18 512 mtdblock18

31 19 512 mtdblock19

31 20 10240 mtdblock20

179 0 495488 mmcblk0

# cat /system/build.prop

# begin build properties

# autogenerated by buildinfo.sh

ro.build.id=MocorDroid4.2.2

ro.build.display.id=MocorDroid4.2.2.W12.20_P20.01

ro.build.version.incremental=W12.20_P20.01

ro.build.version.rowover=H880XSXA_NewLcd_MUL_02_V0020

ro.build.version.sdk=10

ro.build.version.codename=REL

ro.build.version.release=4.2.2

ro.build.date=2013年 11月 15日 星期五 17:11:32 CST

ro.build.date.utc=1384506692

ro.build.type=user

ro.build.user=root

ro.build.host=xing-System-Product-Name

ro.build.tags=test-keys

ro.product.model=Galaxy S4

ro.product.brand=sprd

ro.product.name=sprdroid_base

ro.product.device=hsdroid

ro.product.board=sp6820gb

ro.product.cpu.abi=armeabi-v7a

ro.product.cpu.abi2=armeabi

ro.product.manufacturer=sprd

ro.wifi.channels=

ro.board.platform=sprdbp

# ro.build.product is obsolete; use ro.product.device

ro.build.product=hsdroid

# Do not try to parse ro.build.description or .fingerprint

ro.build.description=sprdroid_base-user 4.2.2 MocorDroid4.2.2 W12.20_P20.01 test-keys

ro.build.fingerprint=sprd/sprdroid_base/hsdroid:4.2.2/MocorDroid4.2.2/W12.20_P20.01:user/test-keys

persist.sys.timezone=Asia/Shanghai

ro.product.carrier=

ro.product.locale.language=zh

ro.product.locale.region=CN

ro.msms.phone_count=1sim

# end build properties

#

# system.prop for hsdroid

#

#rild.libpath=/system/lib/libsp_ril.so

#wifi.interface = tiwlan0

# Time between scans in seconds. Keep it high to minimize battery drain.

# This only affects the case in which there are remembered access points,

# but none are in range.

wifi.supplicant_scan_interval = 48

android.keylayout.sprd-keypad = /system/usr/keylayout/sprd-keypad.kl

android.keychar.sprd-keypad = /system/usr/keychars/sprd-keypad.kcm

ro.hardware =sphs

# Default network type

# 2 => AUTO Preferred.

ro.telephony.default_network = 2

# 1 => add volume control in in-call screen

ro.sprd.volume_control_icon = 1

#LCD_Density for WGVA

ro.sf.lcd_density = 240

ro.sf.lcd_width = 45

ro.sf.lcd_height = 75

dalvik.vm.heapsize=32m

ro.opengles.version=131072

ro.internalstorage.threshold=95

ro.sf.hwrotation = 180

#ro.device.support.lsensor = false

#

# ADDITIONAL_BUILD_PROPERTIES

#

persist.sys.language=en

persist.sys.country=US

ro.com.android.dateformat=dd-MM-yyyy

ro.com.android.dataroaming=true

net.bt.name=Android

dalvik.vm.stack-trace-file=/data/anr/traces.txt

It say that is a "MT6589" but that is fake!

I find that is a SP8810 (1 core) 1000mhz, mali 300 GPU, 500MB Rom and 256 RAM.

The lld driver is unknown and by lsmod is "lcd_spec_ctrl" and seams "FT5206/FT5306/FT5406" IC with touch IC ft6306dmb (mxc622x driver)

The board is:

A800-XY-V4.0(V0015) 131117 H8B C SD UNOMCR

So the phone don't have fastboot and have adb just connect it the computer.

You need "0x1782" on adb_usb.ini

cat ~/.android/adb_usb.ini

# ANDROID 3RD PARTY USB VENDOR ID LIST -- DO NOT EDIT.

# USE 'android update adb' TO GENERATE.

# 1 USB VENDOR ID PER LINE.

0x1782

so time to go to the hard way...

I decide to try o get a recovery i make a backup of it first to sdcard:

dd if=/dev/mtd/mtd10 of=/mnt/sdcard/recovery_sc6820_org.img

You need the "flash_image" to flash the recovery in terminal

push it using adb to /data/internal_memory and recovery to sdcard (max 10MB)

./flash_image recovery /mnt/sdcard/sp8810_S4_clone.img

Then test it do "reboot recovery"

Then I try lots of recovery's and none on screen have displayed.... only a black screen and some time a white screen, but I notice that some black screen recovery if i press the power the phone reboots :) because the 1º option in recovery is reboot the device, so my problem is lcd driver.

So now have time to extract the original recovery, you can read that page: http://www.imajeenyus.com/computer/20130301_android_tablet/android/unpack_repack_recovery_image.html

So I cook a new CWM recovery to this device and lcd that just works fine.

You can do: backup device,flash zip files, sdcard mount and internal device mounts and external usb storage :)

I not tested if restore works, but seams that all files was there and file sizes is ok.

That bad thing is the screen id upside down, but all is working, the (ro.sf.hwrotation = 180 ) don't work to fix it.

md5sum of recovery

a7b0bc102b4dc97fda4cab767b07321f sp8810_S4_clone.img

I hope that this helps some one, I add recovery img and pictures of the phone available!

more details: http://specdevice.com/showspec.php?id=54e0-835c-ce49-2af66856b61f&lang=es

Now my part, I need some fastboot image (sp8810) to this device and also a Rom that works or this phone is useless...

If some one have, please speak more about it :)