[Android Software Development] RaverX3X:
Currently for Zeki Tablet ending in TBD753B

We have Root done

Pre rooted factory rom

Unsecure kernel based on 3.0.8 am logic sourcecode.

What works

Flashing though ADB

What is not working

Non stock recovery.

Fashing roms though stock e3 recovery

Flashing from recovery other then adb pushing kernels..

Stock updater scripts error on verification do to the fact cwm / Clockwork /twerp do not support by default flashing devices on UBIfs (citation needed)

Whats needed

Bullet proof way to flash a stock rom back if users desire

Custom recovery that supports UBIfs as changing the kernels init.rc to accept normal MTD / yaffs2 file system will make it compatable with CM aokp and clockwork / twerp it breaks normal recovery and stock... where Normal stock wont work by default with UBIfs...

What we have on the device and what we know about its mounts and kernel..

Mounts partition info

rootfs / rootfs rw 0 0
tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,relatime,mode=600,ptmxmode=000 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
ubi0_0 /system ubifs rw,relatime 0 0
/dev/block/mtdblock6 /factory yaffs2 rw,nosuid,nodev,relatime 0 0
ubi1_0 /data ubifs rw,nosuid,nodev,relatime 0 0
/dev/block/mtdblock7 /cache yaffs2 rw,nosuid,nodev,relatime 0 0
/dev/block/vold/250:37 /storage/sdcard0 vfat rw,dirsync,nosuid,nodev,noexec,rela
time,gid=1015,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=is
o8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/250:37 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,rela
time,gid=1015,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=is
o8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

## mtd table

dev: size erasesize name
mtd0: 00800000 00200000 "bootloader"
mtd1: 00800000 00200000 "logo"
mtd2: 00800000 00200000 "aml_logo"
mtd3: 00800000 00200000 "recovery"
mtd4: 00800000 00200000 "boot"
mtd5: 20000000 00200000 "system"
mtd6: 08000000 00200000 "factory"
mtd7: 08000000 00200000 "cache"
mtd8: 40000000 00200000 "userdata"
mtd9: 18d000000 00200000 "NFTL_Part"

Kernel modifications

Kernel's default

ro.secure=1
ro.debuggable=0

to

ro.secure=0
ro.debuggable=1

ubiattach mtd@system
mount ubifs ubi0_0 /system
mount yaffs2 mtd@factory /factory nosuid nodev
ubiattach mtd@userdata
mount ubifs ubi1_0 /data nosuid nodev
#mount ext3 /dev/block/cardblksd2 /system
mount yaffs2 mtd@cache /cache nosuid nodev

change to

mount yaffs2 mtd@system /system
mount yaffs2 mtd@system /system ro remount
mount yaffs2 mtd@userdata /data nosuid nodev
mount yaffs2 mtd@cache /cache nosuid nodev

Updater script

format("ubifs", "UBI", "system", "0");
mount("ubifs", "UBI", "system", "/system");
format("ubifs", "UBI", "userdata", "0");
mount("ubifs", "UBI", "userdata", "/userdata");

To

format("yaffs2", "MTD", "system", "0");
mount("yaffs2", "MTD", "system", "/system");
format("yaffs2", "MTD", "userdata", "0");
mount("yaffs2", "MTD", "userdata", "/userdata");