[Galaxy Ace II Android Development] fluffi444:
​

UPDATED 2013-09-06 (NEW AND EASY WAY with links to GB/JB FULL 3-parted Firmwares)

UPDATED 2013-09-05 (I8160PXXMG2_I8160POXXMG2_624MB_MULTI_ROOT)

UPDATED 2013-07-26 (USB Debugging is not needed for working with ADB in Android System Recovery)

UPDATED 2013-07-24 (I8160POXXMF1_MULTI & I8160POXXMF1_MULTI_ROOT)

This GUIDE is for those who own an GT-I8160P and flashed it to an GT-I8160 (non-P) with one of the leaked JB FW MB2/MB4 and/or MC8 or mixed MC8/ME1 or GB RUS LK6 (3-Parted).

This will bring back your FULL GT-I8160P with incl. Baseband, Bootlogo, Model info in Recovery, etc!

Without any Counter increase or unofficial custom Binarys!

Old way (NOT recommended anymore because to difficult for some - but still working)

Whats needed:

- Your ROOTED GT-I8160P has an active and working IMEI currently! This is not a guide to bring back IMEI!

- USB-Debugging is activated! - Not needed for ADB

- You know how to ROOT your Phone! GB or JB having different methods! - Good rooting HOW-TO [http://xdaforums.com/showpost.php?p=39799320]

- Installed ADB and basic knowledge in ADB (I recommend installation to C:\ADB>)

- Installed ODIN 3.07 and basic knowledge in flashing with ODIN 3.07

- Knowledge how to enter Android System Recovery and ODIN Download Mode

- External SD-Card (everyone should have one if you own a 8160P)

- Phone is connected with USB cable to PC

- some patience :D

Which Files are needed:

- I8160P_DBT.rar (Contains I8160P_DBT.bin) [http://d-h.st/Q4L]

- ANY FULL original GB or JB Firmware for GT-I8160P [http://www.sammobile.com/firmwares/1/?model=GT-I8160P&pcode=0#firmware]

Optional Files

- I recommend to use JB FW I8160PXXME1_I8160PDBTME1_DBT [http://www.hotfile.com/dl/222919379/f5c8dfe/I8160PXXME1_I8160PDBTME1_DBT.zip.html]

- 1st TIP: Made by me MULTI-CSC FW I8160PXXMF1_I8160POXXMF1_MULTI [http://d-h.st/TNo]

- 2nd TIP: Made by me MULTI-CSC Pre-Rooted FW I8160PXXMF1_I8160POXXMF1_MULTI_ROOT [http://d-h.st/MeA]

- 3rd TIP: Made by me MULTI-CSC Pre-Rooted FW I8160PXXMG2_I8160POXXMG2_624MB_MULTI_ROOT [http://d-h.st/TEA]

- FULL_NAND_BACKUP_ADB.rar (ADB with easy to handle FULL BACKUP and FULL RESTORE script) [http://d-h.st/Efj]

Further Information

- If you go back to GB and do rooting with Kernel than your Counter will be increased!

- If everything went well your Data remains untouched! (If you did not Wiping Data and Factory Reset)

- BUT: Wiping Data and Factory Reset is still recommended after you finished HOW-TO!

- Keep the Backup of CSPSA_FS and MODEM_FS + EFS save! This is your Serialnumber, IMEI and MAC adress!

- Use ALL ADB commands from your PCs CMD - Command Prompt (e.g. C:\ADB>) while your Phone is in (stock) Android System Recovery

- If you got ADB message: mount: Device or resource busy - Don't care about it! Your SD-Card is already mounted! Go ahead!

- Its sometimes needed to let the SAMSUNG Android ADB Interface install its driver new. That happens if you came from JB and go to GB and vice versa.

Delete old ADB Interfaces in System Control on PC [if needed "Show hidden devices"] but do NOT delete Drivers!

De- and Replug USB that PC can install new ADB Interface. Only do the driver reinstallation if during ADB commands your Phone is not recognized.

Disclaminar:

I'am not responsible if you brick your phone. Keep in mind that we do some critical commands for partition copy/write here.

If you are NOT familar with ADB or ODIN please don't try this at home!

Special thanks goes to:

avkiev @ xda (his very nice xls file of 8160/8160P partitions makes things easy to understand)

Szaby59 @ xda (for his findings that IMEI could be in partition CSPSA_FS)

matthias76 @ android-hilfe (for his hint to changed MAC adress -> solved)

Also thanks goes out to for thier general help

knipseringo @ xda and android-hilfe

KevinNash @ xda

angrybb @ xda

Optional

- Before you start I recommend to make a FULL (incl internal SDCard) Nand-Backup of 3,68 GB (3.959.422.976 Bytes) to external SD-Card

- This Will take 6-7 mins - could be more if your SD-Card is slow.

A) Enter stock Android System Recovery

B) Mount SD-Card

adb shell su -c "mount -t vfat -o rw /dev/block/mmcblk1p1 /sdcard"

C) FULL Backup:

adb shell su -c "dd if=/dev/block/mmcblk0 of=/sdcard/fullbackup.img bs=4096"

Option: FULL Restore - If you want to go back to old state of your Phone

adb shell su -c "dd if=/sdcard/fullbackup.img of=/dev/block/mmcblk0 bs=4096"

Here we go:

1.) Move File I8160P_DBT.bin from Archive to root of external SD-Card

2.) Enter stock Android System Recovery

3.) Open Command Promt (CMD) to you ADB folder (e.g. C:\ADB> )

Leave the CMD ADB Window open. We need it again.

4.) Mount external SD-Card

adb shell su -c "mount -t vfat -o rw /dev/block/mmcblk1p1 /sdcard"

5.) Backup CSPSA_FS and MODEM_FS + EFS to external SD-Card

adb shell su -c "dd if=/dev/block/mmcblk0 of=/sdcard/CSPSA_FS.img bs=4096 skip=384 count=384"

adb shell su -c "dd if=/dev/block/mmcblk0 of=/sdcard/MODEM_FS_EFS.img bs=4096 skip=1024 count=6656"

6.) Write I8160P_DBT.bin from external SD-Card to your Phone

adb shell su -c "dd if=/sdcard/I8160P_DBT.bin of=/dev/block/mmcblk0 bs=4096 count=17664"

7.) Go

directly

into ODIN Downloadmode (Hold the 3 Keys as long as needed directly out of Android System Recovery)

8.) Flash FULL original GT-I8160P Firmware with ODIN 3.07 (PDA)

9.) After ODIN rebooted let your Phone boot completely! activate USB Debugging

10.) Root your Phone! (Keep in mind: JB and GB having different methods!)

11.) Enter stock Android System Recovery

12.) Mount external SD-Card

adb shell su -c "mount -t vfat -o rw /dev/block/mmcblk1p1 /sdcard"

13.) Write saved CSPSA_FS and MODEM_FS + EFS from external SD-Card to Phone

adb shell su -c "dd if=/sdcard/CSPSA_FS.img of=/dev/block/mmcblk0 bs=4096 seek=384 count=384"

adb shell su -c "dd if=/sdcard/MODEM_FS_EFS.img of=/dev/block/mmcblk0 bs=4096 seek=1024 count=6656"

14.) Reboot and be Happy that the FULL GT-I8160P with working IMEI is back in Town!

Without any Counter increase or unofficial custom Binarys!

Optional

- Before you start I recommend to make a FULL (incl internal SDCard) Nand-Backup of 3,68 GB (3.959.422.976 Bytes) to external SD-Card

- This Will take 6-7 mins (on an SDHC 32GB Class 10) - could be more if your SD-Card is slow.

A) Enter stock Android System Recovery

B) Mount SD-Card

adb shell su -c "mount -t vfat -o rw /dev/block/mmcblk1p1 /sdcard"

C) FULL Backup:

adb shell su -c "dd if=/dev/block/mmcblk0 of=/sdcard/fullbackup.img bs=4096"

Option: FULL Restore - If you want to go back to old state of your Phone

adb shell su -c "dd if=/sdcard/fullbackup.img of=/dev/block/mmcblk0 bs=4096"

NEW WAY (recommended)

Whats needed:

- Your GT-I8160P@GT-I8060 has an active and working IMEI currently! This is not a guide to bring back IMEI!

- Installed ODIN 3.07 (and Samsung Drivers for flashing) and basic knowledge in flashing with ODIN 3.07

- CWM Recovery (Files are linked) for GB or JB (depends on which you are)

- Knowledge how to enter CWM Recovery and ODIN Download Mode

- Knowledge how to install ZIP files from external SD-Card with CWM Recovery

- External SD-Card (everyone should have one if you own a 8160P)

- some patience :D

Which files are needed:

- BACK_TO_THE_I8160P.zip (CWM installable zip file) [http://d-h.st/Vcn]

- CWM_Recovery_GB_JB.rar (archive with CWM for GB and JB - unpack it) [http://d-h.st/6Nv]

AND ONE OF THE FOLLOWING FIRMWARES

- FULL 3-parted GT-I8160P GB (2.3.6) Firmware DBT (Open Germany) CODE_GT-I8160P_I8160PXXLK2_CL1211774_REV00_user_SEC_KEY_XLK2_4G [http://d-h.st/fWn]

OR

- FULL 3-parted GT-I8160P JB (4.1.2) Firmware DBT (Open Germany) CODE_GT-I8160P_I8160PXXME1_DBT_1106830_REV00_user_low_ship [http://d-h.st/v6N]

OR

- FULL 3-parted GT-I8160P JB (4.1.2) Firmware OXA (Open Europe) CODE_GT-I8160P_I8160PXXME1_OXA_1106830_REV00_user_low_ship [http://d-h.st/Sux]

Whats NOT needed anymore:

- ROOT is not needed

- ADB is not needed

- no more copy&paste of the ADB commands

Disclaminar:

I'am not responsible if you brick your phone.

Special thanks goes to:

avkiev @ xda (his very nice xls file of 8160/8160P partitions makes things easy to understand)

Szaby59 @ xda (for his findings that IMEI is in partition CSPSA_FS - [HOW-TO] Backup/Restore NV Data (IMEI, Serial number, Baseband...))

Shaaan @ xda (for Temporary CWM Recovery - [JB] CWM Recovery 6)

matthias76 @ android-hilfe (for his hint to changed MAC adress -> solved)

unknown user - he want to stay anonymous (for the links to FULL 3-parted Firmwares)

Also thanks goes out to for thier general help

knipseringo @ xda and android-hilfe

KevinNash @ xda

angrybb @ xda

Here we go:

1.) Move File BACK_TO_THE_I8160P.zip to root of external SD-Card

2.) Install CWM Recovery

- For GB: Flash I8160XXLL2_CWM_5.0.2.6_ANT.tar.md5 from archive with ODIN as PDA (This is the CWM Kernel for GT-I8160)

- For JB: Install CWM_6.0.2.8.zip from Android System Recovery. Move this file before to root of external SD-Card (This is the temporary CWM Recovery for JB)

3.) Go into CWM Recovery

- For GB: Press following keys together (as long as needed): VOL UP + HOME + POWER

- For JB: CWM is available right after you installed it from Android System Recovery (Enter Android System Recovery also with VOL UP + HOME + POWER)

4.) Install from CWM Recovery the file BACK_TO_THE_I8160P.zip and follow the instructions on the display

- This will also save your EFS / MODEMFS / CSPSA partitions to folder BACKI8160P on external SD-Card - Keep those files save.

5.) Flash FULL 3-parted GB or JB Firmware (PIT as PIT / CODE as PDA / CSC as CSC)

- This is also instructed in the script - You do not need it twice of course.

- Set ODIN as mentioned here: [HOW-TO] Go back from JB to GB on GT-I8160P (ACE 2 NFC)

6.) OPTIONAL: Flash any GT-I8160P Firmware of your specific country

That was easy, isn't it? :D

If you are Happy with this please push Thanks! :highfive: - Or if you just like my "Back to the..." Image LoL

If you cannot post here use former Discussion Thread

http://xdaforums.com/showthread.php?t=2279510

Success Stories

miyagi83 (http://xdaforums.com/showpost.php?p=43297460&postcount=111)

ghostface (http://xdaforums.com/showpost.php?p=43317243&postcount=12)

lasy (http://www.android-hilfe.de/samsung...android-4-1-2-fuers-ace2-199.html#post6047728)

Robin Fischer (http://www.android-hilfe.de/root-cu...-es-zum-i8160-geflasht-wurde.html#post6061538)

infinity4 (http://www.android-hilfe.de/root-cu...-es-zum-i8160-geflasht-wurde.html#post6064240)

Maxwel (http://www.android-hilfe.de/root-cu...s-zum-i8160-geflasht-wurde-2.html#post6064287)

Superarni (http://www.android-hilfe.de/root-cu...s-zum-ace2-geflasht-wurde-2.html?#post6072975)

primewell (http://xdaforums.com/showpost.php?p=43494174&postcount=121)

Shadowcareful (http://xdaforums.com/showpost.php?p=45363432&postcount=22)

Moonly (http://xdaforums.com/showpost.php?p=45367023&postcount=34)