Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[Dualboot] i9082 {Stock 4.2.2/AOSP 4.4.2 and AOSP 4.4.2} 23032014 V2

OP k2wl

17th March 2014, 10:28 PM   |  #1  
OP Senior Member
Thanks Meter: 5,516
 
2,294 posts
Join Date:Joined: Apr 2008
Donate to Me
Hi guys,

finally I found a way to make dualboot on our beloved i9082 working!!

This way isn't as much easy as on other devices like the desire HD where
you have just to install an app and everything is done by itself, so follow this
guide at your own risk!!

THIS IS WORST RISK YOU TAKE FOR YOUR PHONE>>>>
IT MAY BRICK YOUR PHONE.....
DONT DO IT IF YOU DONT KNOW WHAT YOU DOING...

How to dual boot your I9082...


1. Make a backup of your internal sdcard to your PC!! All your data on the sd card will be gone!
2. Reboot to cwm-recovery
3. connect your phone to your pc.
4, open up cmd or a terminal and type:

PHP Code:
adb shell 

5. type:


PHP Code:
cd /dev/block 
parted mmcblk0 
print 


This looks like following


Code:
print

Model: MMC M8G1WA (sd/mmc) 
Disk /dev/block/mmcblk0: 7818MB 
Sector size (logical/physical): 512B/512B 
Partition Table: gpt 

Number  Start   End     Size    File system  Name           Flags 
 1      14.7MB  15.7MB  1049kB               cal 
 2      15.7MB  16.0MB  262kB                sysparm_dep 
 3      16.0MB  16.3MB  262kB                parm-spml_dep 
 4      16.3MB  16.5MB  262kB                RF_CAL_FILE 
 5      16.5MB  24.9MB  8389kB               KERNEL 
 6      24.9MB  33.3MB  8389kB               RECOVERY 
 7      33.3MB  53.0MB  19.7MB               modem 
 8      53.0MB  86.2MB  33.3MB               reserved 
 9      86.2MB  88.3MB  2097kB               SBL1 
10      88.3MB  90.4MB  2097kB               SBL2 
11      90.4MB  98.8MB  8389kB               PARAM 
12      98.8MB  99.4MB  524kB                DTSBK 
13      99.4MB  99.9MB  524kB                DTS 
14      99.9MB  108MB   8389kB               VC-FirmwareBK 
15      108MB   117MB   8389kB               VC-Firmware 
16      117MB   117MB   262kB                FOTA_SIG 
17      117MB   138MB   21.0MB  ext4         efs 
18      138MB   1212MB  1074MB  ext4         CSC 
19      1212MB  2822MB  1611MB  ext4         system 
20      2822MB  3409MB  587MB   ext4         HIDDEN 
21      3409MB  7813MB  4404MB  ext4         data
The last partiton i.e data partion which is our internal SD card to be re partitioned .

6. Type
PHP Code:
rm 21 
7. Note the start and end of the data partiton. In my case its 3409 and 7813
Firstly we have to create data partition. See the size of system partition i.e 1024 MB. So the new partion will be as follows

PHP Code:
mkpartfs primary ext2 3409 4433 
second is system 2 partition
PHP Code:
mkpartfs primary ext2 4433 6044 


next is cache2 partion

PHP Code:
mkpartfs primary ext2 6044 6744 

next is data2 partion
Code:
mkpartfs primary ext2 6744 7813
Code:
quit
It will say

Code:
quit
Information: You may need to update /etc/fstab.
Ignore the warning Reboot into recovery again on pc type

Code:
adb shell 
mke2fs /dev/block/mmcblk0p21 
tune2fs -j /dev/block/mmcblk0p21 
mke2fs /dev/block/mmcblk0p22 
tune2fs -j /dev/block/mmcblk0p22 
mke2fs /dev/block/mmcblk0p23 
tune2fs -j /dev/block/mmcblk0p23
mke2fs /dev/block/mmcblk0p24 
tune2fs -j /dev/block/mmcblk0p24
This will create ext3 partition from ext2

Now convert them to ext4

Code:
tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p21 
tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p22 
tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p23 
tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p24
Now lets check everything is ok
Code:
  cd /dev/block 
parted mmcblk0 
print
This should look like following

Code:
 

print 
Model: MMC M8G1WA (sd/mmc) 
Disk /dev/block/mmcblk0: 7818MB 
Sector size (logical/physical): 512B/512B 
Partition Table: gpt 

Number  Start   End     Size    File system  Name           Flags 
 1      14.7MB  15.7MB  1049kB               cal 
 2      15.7MB  16.0MB  262kB                sysparm_dep 
 3      16.0MB  16.3MB  262kB                parm-spml_dep 
 4      16.3MB  16.5MB  262kB                RF_CAL_FILE 
 5      16.5MB  24.9MB  8389kB               KERNEL 
 6      24.9MB  33.3MB  8389kB               RECOVERY 
 7      33.3MB  53.0MB  19.7MB               modem 
 8      53.0MB  86.2MB  33.3MB               reserved 
 9      86.2MB  88.3MB  2097kB               SBL1 
10      88.3MB  90.4MB  2097kB               SBL2 
11      90.4MB  98.8MB  8389kB               PARAM 
12      98.8MB  99.4MB  524kB                DTSBK 
13      99.4MB  99.9MB  524kB                DTS 
14      99.9MB  108MB   8389kB               VC-FirmwareBK 
15      108MB   117MB   8389kB               VC-Firmware 
16      117MB   117MB   262kB                FOTA_SIG 
17      117MB   138MB   21.0MB  ext4         efs 
18      138MB   1212MB  1074MB  ext4         CSC 
19      1212MB  2822MB  1611MB  ext4         system 
20      2822MB  3409MB  587MB   ext4         HIDDEN 
21      3409MB  4433MB  1024MB  ext4 
22      4433MB  6044MB  1611MB  ext4 
23      6044MB  6744MB  700MB   ext4 
24      6744MB  7813MB  1069MB  ext4
Then

Code:
quit
Now flash your first stock ROM..ofcource custom one from recovery.

Now You can flash your desired AOSP rom as primary and dualboot enabled secondary rom.
Scripts to switch roms has been updated.

Download following dualboot enabled AOSP rom by me CosmicCm

http://www.androidfilehost.com/?fid=23329332407579496



Download following tool kit and extract on your External sd card for AOSP rom and in Internal SD for your stock rom.

http://www.androidfilehost.com/?w=files&flid=12981

Install smanager (os.tools.scriptmanager-1.apk) in zip.

Instructions on ROM switching:

1. Go to Play Store and install SManager (or included in dualboot-k2wl-V2.zip)
2. Run SManager, browse to your DualBoot folder and select "StockPrimary.sh/AOSPprimary.sh" or "AOSPSecondary.sh". depending upon which rom you want to boot into.
3. Mark favourite and su options and run the script.
4. Optional - SManager has a homescreen widget system. It lets you add buttons in your homescreens that will directly run the linked script (it has to be put in favourites first).


AGAIN this is a nuclear level risky procedure and is for ADVANCE users only....
DO NOT TRY IF YOU DONT KNOW WHAT YOU ARE DOING.......

Bugs:-
Your data partitions will be small about 1 GB.
External SD card not working in stock rom.

More?>..... You telll me...

HAPPY FLASHING.....

Credits:-

dreccon
berni987654321
51dusty

and for best inspiration and beta tester....
xenon92
Last edited by k2wl; 24th March 2014 at 04:00 AM.
The Following 36 Users Say Thank You to k2wl For This Useful Post: [ View ]
17th March 2014, 10:30 PM   |  #2  
OP Senior Member
Thanks Meter: 5,516
 
2,294 posts
Join Date:Joined: Apr 2008
Donate to Me
Reverting
To revert

Boot into recovery

start

Code:
adb shell

Code:
cd /dev/block
parted mmcblk0

print

rm 24

rm 23

rm 22

rm 21

Code:
mkpartfs primary ext2 3409 7813
Code:
quit

Reboot into recovery again

on pc type

Code:
adb shell

mke2fs /dev/block/mmcblk0p21
tune2fs -j /dev/block/mmcblk0p21

tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p21
now you reverted back.
Last edited by k2wl; 18th March 2014 at 06:45 AM. Reason: Reverting
The Following 11 Users Say Thank You to k2wl For This Useful Post: [ View ]
17th March 2014, 10:30 PM   |  #3  
OP Senior Member
Thanks Meter: 5,516
 
2,294 posts
Join Date:Joined: Apr 2008
Donate to Me
another one
The Following 4 Users Say Thank You to k2wl For This Useful Post: [ View ]
17th March 2014, 10:35 PM   |  #4  
osas514's Avatar
Member
Thanks Meter: 37
 
80 posts
Join Date:Joined: Feb 2014
Awesome work bro
Thanks man

Sent from my GT-I9082 using Tapatalk
18th March 2014, 03:06 AM   |  #5  
Senior Member
Flag New Delhi
Thanks Meter: 77
 
251 posts
Join Date:Joined: May 2013
More
Awsm work bro..keep up the good wrk..stay blessed..

Sent from my GT-I9082 using Tapatalk 2
18th March 2014, 05:40 AM   |  #6  
Senior Member
Thanks Meter: 69
 
178 posts
Join Date:Joined: Apr 2013
More
Does this method works with only cosmiccm ROM or it works with all aosp based ROM ?

Sent from my GT-I9082 using Tapatalk
18th March 2014, 05:52 AM   |  #7  
OP Senior Member
Thanks Meter: 5,516
 
2,294 posts
Join Date:Joined: Apr 2008
Donate to Me
Right now only CosmicCm but if developers willing for making their dualboot compatible rom, it wil.
The Following 2 Users Say Thank You to k2wl For This Useful Post: [ View ]
18th March 2014, 05:58 AM   |  #8  
Senior Member
Flag Rewari
Thanks Meter: 173
 
480 posts
Join Date:Joined: Mar 2013
More
Quote:
Originally Posted by k2wl

Right now only CosmicCm but if developers willing for making their dualboot compatible rom, it wil.

@k2wl

Please update your signature for awesome Rom "CosmicCm"
18th March 2014, 06:12 AM   |  #9  
RIPPER's Avatar
Senior Member
Flag From Heavens
Thanks Meter: 401
 
714 posts
Join Date:Joined: Sep 2012
More
OMG!! REallyy Superb workk man
18th March 2014, 06:37 AM   |  #10  
Senior Member
Thanks Meter: 27
 
145 posts
Join Date:Joined: Jul 2012
More
good work mate but how to undo ..these all changes ? any procedure?

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes