[Galaxy S Advance I9070 Android Development] diego-ch:
Did anyone noticed that it gets identified in 'lsusb' as a galaxy s2 gt-i9100 ?

diego@MacUbuntu:~/AndroidCM7$ lsusb | grep -i galaxy
Bus 001 Device 008: ID 04e8:6860 Samsung Electronics Co., Ltd GT-I9100 Phone [Galaxy S II]

last weekend I was messing around with my sgs advance (gt-i9070 brazilian version).

I rooted it using xanonus method with heimdall. no binary counter increased!

All the bloatware from my carrier went gone (good thing, I'd guess) and some applications are crashing, like the browser that wont start (not so good)

but that can be reverted by flashing the complete tar firmware file from samfirmware.com using odin in PDA mode. (that will unroot the device) - no binary counter increased, by the way.

then I made a dump from all the partitions using dd, mmcblk0p1 to mmcblk0p17 (besides mmcblk0p8 which is the /sdcard )

so I could try to find the recovery partition and then flash it

diego@MacUbuntu:~/GT-I9070/dump$ ls -lh
total 2,2G
-rwxr-xr-x 1 diego dialout 122 Jul 29 00:10 all-extract
drwxr-xr-x 4 diego dialout 4,0K Jul 29 00:11 extracted
-rw-r--r-- 1 diego dialout 1,0M Jul 28 21:31 mmcblk0p10.img
-rw-r--r-- 1 diego dialout 50M Jul 28 21:32 mmcblk0p11.img
-rw-r--r-- 1 diego dialout 2,0M Jul 28 21:32 mmcblk0p12.img
-rw-r--r-- 1 diego dialout 16M Jul 28 21:32 mmcblk0p13.img
-rw-r--r-- 1 diego dialout 2,0M Jul 28 21:32 mmcblk0p14.img
-rw-r--r-- 1 diego dialout 16M Jul 28 21:32 mmcblk0p15.img
-rw-r--r-- 1 diego dialout 2,0M Jul 28 21:32 mmcblk0p16.img
-rw-r--r-- 1 diego dialout 14M Jul 28 21:32 mmcblk0p17.img
-rw-r--r-- 1 diego dialout 16M Jul 28 21:27 mmcblk0p1.img
-rw-r--r-- 1 diego dialout 16M Jul 28 21:27 mmcblk0p2.img
-rw-r--r-- 1 diego dialout 612M Jul 28 21:30 mmcblk0p3.img
-rw-r--r-- 1 diego dialout 21M Jul 28 21:30 mmcblk0p4.img
-rw-r--r-- 1 diego dialout 1,1G Jul 28 21:44 mmcblk0p5.img
-rw-r--r-- 1 diego dialout 1,5M Jul 28 21:30 mmcblk0p6.img
-rw-r--r-- 1 diego dialout 10M Jul 28 21:30 mmcblk0p7.img
-rw-r--r-- 1 diego dialout 320M Jul 28 21:31 mmcblk0p9.img

Then, as I learned this weekend, samsung devices use a zImage + initramfs with the recovery placed inside of it.

So, I extracted all the partitions to find the one with a initramfs but ended up with 2: mmcblk0p15 and mmcblk0p17

but as you see here, they have same files inside ( checked with 'diff -ur path1 path2' )

diego@MacUbuntu:~/GT-I9070/dump/extracted$ ls *
mmcblk0p15:
data dev init.goldfish.rc init.u8500.rc lib prerecovery.rc recovery.rc sbin system ueventd.goldfish.rc
default.prop init init.rc init.ux500.post_boot.sh lpm.rc proc res sys tmp ueventd.rc

mmcblk0p17:
data dev init.goldfish.rc init.u8500.rc lib prerecovery.rc recovery.rc sbin system ueventd.goldfish.rc
default.prop init init.rc init.ux500.post_boot.sh lpm.rc proc res sys tmp ueventd.rc

messing around with these folders I've found a png file that has the GT-I9100 (yep, galaxy S2, not galaxy s advance) logo in it...

precisely on mmcblk0p15 (or 17) /sbin/fota.jpg

(the file is attached to this post)

a few people on irc (#twrp and #cyanogenmod-devs) told me that the recovery partition might be mmcblk0p17 as it is smaller than mmcblk0p15

so knowing that, I downloaded CM7 sources and I compiled a recovery image to galaxys2 so I could dd it to the galaxy s advance.

but first I need to know which partition qzem flashed to brick his device, as I dont want to do that with mine =]

I've sent him a PM, and made this post just to give you guys a heads up!