yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] Anil_Sharma:
To begin with, you need a hex editor, HxD - Freeware Hex Editor is a great editor and it is very small(less than an MB). Then you need a baseband to edit, you need to locate the file named ' appsboot.mbn '.

That file contains the partition tables, remember this tutorial is about editing the partition tables not extending your physical memory.

So, lets get cracking. Open HxD from programs and open the appsboot.mbn file, now press F3 and search for ' cache ' and press F3 until you see something like this

.

As you can see the highlighted section of the picture

,

there are a few repetitions of ' F0 F0 F0 F0 xx ' multiple times, you are concerned with only the first two /system and /cache partitions respectively.

Remember, you don't need to specify the partition size for /data as it is done automatically when you flash the baseband.

Now back to the hex editing part, once you've decided how much space(in MBs only) you wanna allocate to /system and /cache use this link to Convert hex/dec and select the two digits after the F0 F0 F0 F0 like in this pic

and type the hex number for example in the screenshot B4 in hex equals 180 in decimal, which means /system is allocated 180 MB of space and do the same with Cache, I would recommend allocating 10 MB to it as you hardly ever use it. Then flash the baseband like you normally do through Fastboot.

If you have any doubts ask me and I will do my best to clear things to you. Click Thanks if I helped you, doesn't cost anything :)
[Miscellaneous Android Development] ankit99:
Thanks ws waiting fr this frm a long tym :)
[Miscellaneous Android Development] GuneetAtwal:
Great Guide keep going on........... :cool:
[Miscellaneous Android Development] Gogeta:
@everyone instead of quoting whole OP ..

you can just type @op :)
[Miscellaneous Android Development] Anil_Sharma:
Usb diagnostics port change next :P Too many people fall for that :(
[Miscellaneous Android Development] protox 109:
AMAZING GUIDE.... BLOWN MY MIND OFF !!!! :D :laugh: :svetius:
[Miscellaneous Android Development] rabby38:
good
[Xoom Q&A, Help & Troubleshooting] al mon:
I just flashed CM 10-.1 3/15 and I can't reboot into recovery via power button menu. Is there another way to do this?
[Xoom Q&A, Help & Troubleshooting] ro.chi:
AW: [Q] CM 10.1 Wingray - Reboot into Recovery

Reboot your Xoom and wait for the Motorola logo to appear. *After approximately 3 seconds, press the volume down button. You should then see the Android recovery logo. Press the volume up*button to select it.
[Xoom Q&A, Help & Troubleshooting] CiR3:
AW: [Q] CM 10.1 Wingray - Reboot into Recovery

... or just download holo reboot for example in google store.
[Xoom Q&A, Help & Troubleshooting] Warbuff:
You have to enable advanced power options in cm 10.1
[Xoom Q&A, Help & Troubleshooting] medo94:
https://plus.google.com/+CyanogenMod/posts/iWRWc4bdXJb
[Xoom Q&A, Help & Troubleshooting] Warbuff:
Yep. Old thread tho
[Xoom Q&A, Help & Troubleshooting] medo94:
I had same problem a moment ago xD
[Xoom Q&A, Help & Troubleshooting] Warbuff:
Lol glad you figured it out
[Kindle Fire Q&A, Help & Troubleshooting] jmackz:
As title suggests, prior to rooting the Kindle and flashing JB 4.4.2 I was able to access the Kindle via the ADB. Now when I plug in my kindle it detects the Kindle as a Portable Media Player and Device Manager shows Amazon Kindle Fire under Other Devices with a yellow exclamation as well as under Portal Devices with no excalamation (I believe this is the Portable media Player).

I have tried to follow the same steps prior to rooting to get it connected to the ADB but when I attempt to install the drivers from the Android SDK after updating

android_winusb.inf

;Kindle Fire

%SingleAdbInterface%	= USB_Install, USB\VID_1949&PID_0006

%CompositeAdbInterface%	= USB_Install, USB\VID_1949&PID_0006&MI_01

%SingleAdbInterface%	= USB_Install, USB\VID_18D1&PID_0100

%CompositeAdbInterface%	= USB_Install, USB\VID_18D1&PID_0100&MI_01

and 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.

0x1949

When attempting to install the driver via 'Update Driver' in device manager. I am getting a "Windows could not find driver software for you device"

When booting into TWRP the driver that loads is connected to the ADB.

Any help would be much appreciated.

Thanks,

Jmack
[Samsung Galaxy Nexus] twistedumbrella:
Since the dual-boot kernels require some specialized modifications to the ROM zip that are leading to a little confusion, I threw together an app that will take the zip for the "second" ROM and modify it to be compatible.

Currently the included file browser can be used to select files, or you can open a third-party file browser, such as Root Explorer, and use the send option on the file you want modified. Once the file is modified, the required folders in /data/ are checked and created, if they are not already there.

Direct installation is now available as a post-modification option. This feature is in beta and uses a specialized class to read and translate the existing updater-script commands into busybox commands. This has only received limited testing, so please backup (including cache if coming from a previous dual-boot configuration)

Available through Litter Box on Google Play

Also built into SKU Kernel Remote - The All-In-One Modification Masterpiece
[Samsung Galaxy Nexus] twistedumbrella:
Re: [TOOL / APP] Dual-Boot Builder

Tested with Ubuntu and AIRKernel. Install the core Ubuntu zip, modify the device one, wipe cache, install the modified zip then the kernel.
[Samsung Galaxy Nexus] diaboliko.hacker:
Exuse me , I want to try this app but I don't understand if this app require to have a dualboot-compatible-kernel before to start , I've a gsm-maguro gnex whit official cm 10.1 and ak kernel 801, and I want a dual boot with miu can you help me???
[Samsung Galaxy Nexus] twistedumbrella:
You need a dual-boot kernel. The app modifies the second ROM, for example MIUI, to install properly for the dual-boot kernel to work. There are dual-boot kernels http://xdaforums.com/showthread.php?t=2183721 and http://xdaforums.com/showpost.php?p=39087629&postcount=1040
[Samsung Galaxy Nexus] twistedumbrella:
Re: [TOOL / APP] Dual-Boot Builder

I am preparing a new version that includes a walkthrough video of using the app. It seems the version on market had already started getting comments from people trying to use the app with OTAs. They really need to open that reply feature to all developers. Too many oblivious downloaders out there.
[Samsung Galaxy Nexus] benkxda:
You're now in the Galaxy Nexus Index. :)

Thanks for your interesting project, hope the videos will appear soon. :good:
[Samsung Galaxy Nexus] vange:
Very much looking forward for a walkthrough :good:
[Samsung Galaxy Nexus] twistedumbrella:
[TOOL / APP] Dual-Boot Builder

http://m.youtube.com/watch?v=YJ2AJctp4Cw

I have a basic video walk through that shows the process, but I am setting up to do something with better explanation instead of just the visual.
[Samsung Galaxy Nexus] twistedumbrella:
Yah, fancy graphical interface!

Attachment removed to prevent confusion, please see OP
[Samsung Galaxy Nexus] tngjs1230:
i got FC

im using xylon unofficial+starkissed dual

so i find rom and extracting...and got fc:(
[Samsung Galaxy Nexus] vange:
I am also having fc when trying to extract rom
[Samsung Galaxy Nexus] Pasquale91fg:
When i flash the fix rom .... Error status 7 in cwm !!!!! why?
[Samsung Galaxy Nexus] twistedumbrella:
Re: [TOOL / APP] Dual-Boot Builder [3/16/13 1:20 AM EST]

Version 1.1 had an issue with not cleaning up the folder properly during extraction. This was fixed in 1.2 and the newest one (1.4) took care of when the line had additional parameters.

What are the contents of the original updater-script?
[Samsung Galaxy Nexus] iluvamk:
So just to get this correct:

1. Make sure dual boot kernel is installed.

2. Fix Rom with apk.

3. Reboot and install fixed rom.

Correct?
[Samsung Galaxy Nexus] twistedumbrella:
Re: [TOOL / APP] Dual-Boot Builder [3/16/13 1:20 AM EST]

Fix the rom

Reboot and install the rom then the dual-boot kernel
[Samsung Galaxy Nexus] eqjunkie829:
Re: [TOOL / APP] Dual-Boot Builder [3/16/13 1:20 AM EST]

Is there a free version available? I'm not sure xda allows only links to a paid versions in op.
[Samsung Galaxy Nexus] twistedumbrella:
Re: [TOOL / APP] Dual-Boot Builder [3/16/13 1:20 AM EST]

Then perhaps you should read it more carefully ;)
[Samsung Galaxy Nexus] eqjunkie829:
Re: [TOOL / APP] Dual-Boot Builder [3/16/13 1:20 AM EST]

Sorry, I didn't click on the second link to see what it was.
[Samsung Galaxy Nexus] iluvamk:
I'm getting a Status 7 error also on 2nd rom install using TWRP.

Ist rom updater script to be modified:

show_progress(0.500000, 0);

ui_print("Erasing System...");

format("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.0/by-name/system", "0", "/system");

ui_print("Mounting System...");

mount("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.0/by-name/system", "/system");

show_progress(0.500000, 40);

ui_print("Installing System...");

package_extract_dir("system", "/system");

ui_print("Creating Symlinks...");

symlink("/factory/hdcp.keys", "/system/vendor/firmware/hdcp.keys");

symlink("/system/xbin/su", "/system/bin/su");

symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");

symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");

symlink("busybox", "/system/xbin/[", "/system/xbin/[[",

After running ROM through Dual-Boot Builder:

show_progress(0.500000, 0);

ui_print("Erasing System...");

format("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.0/by-name/cache", "0", "/system");

ui_print("Mounting System...");

mount("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.0/by-name/cache", "/system");

show_progress(0.500000, 40);

ui_print("Installing System...");

package_extract_dir("system", "/system");

ui_print("Creating Symlinks...");

symlink("/factory/hdcp.keys", "/system/vendor/firmware/hdcp.keys");

symlink("/system/xbin/su", "/system/bin/su");

symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");

symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");

symlink("busybox", "/system/xbin/[", "/system/xbin/[[",

The only thing I can figure is that lines 5 do not have the "0" as do lines 3. Could this be what's causing Error 7? Very interested in getting this going.
[Samsung Galaxy Nexus] twistedumbrella:
Re: [TOOL / APP] Dual-Boot Builder [3/16/13 1:20 AM EST]

It's not removing the format it's replacing it. I think it's probably checking that second and not first which would end up missing it
[Samsung Galaxy Nexus] iluvamk:
Suggested fix?
[Samsung Galaxy Nexus] twistedumbrella:
That one unspeakable thing that nobody ever wants to have to use... patience... or the update attached to this post. The second has better results.

I was checking for the full mount and format lines until I realized some scripts included that "0" and some didn't, but when that was updated, the format command could no longer be checked as an "else" and it needed to be checked first. So...

Attachment removed to prevent confusion, please see OP
[Samsung Galaxy Nexus] iluvamk:
Thanks. Didn't mean to sound impatient. Didn't realize you were fixing it already. Well done. Will try now.
[Samsung Galaxy Nexus] twistedumbrella:
Re: [TOOL / APP] Dual-Boot Builder [v1.7]

You didn't. I was just being a pain while it finished exporting.
[Samsung Galaxy Nexus] iluvamk:
HOLY CRAP BATMAN!! IT WORKED! Now all you need to do is figure out how to add 3rd and 4th rom. . .lol. I know I know, patience patience. Thank you.
[Samsung Galaxy Nexus] twistedumbrella:
Re: [TOOL / APP] Dual-Boot Builder [v1.7]

Boot Manager. Diverting the second to cache is a trick from the incredible. Adding more requires images that are mounted.
[Samsung Galaxy Nexus] iluvamk:
I used Boot Manager on my Droid X. Loved it! Was extremely sad to see development on it stop especially since they mentioned they were working on the GNEX the last time they actually published an update. How far are you going to try to go with this? Any possiblilities that both ROMS could sometime share the same files? I suppose you could use a program to mirror/sync the data files of both roms. Ah the possibilites! Now if the kernel devs would implement dual boot! If you need a guinea pig.

Edit: Just bought app from market in support.
[Samsung Galaxy Nexus] isaekrem:
I did everything. But when I choose 2 second rom there was a black screen and it is not booting. Where did I wrong.
[Samsung Galaxy Nexus] iluvamk:
Install 2nd rom, gapps, then kernel. Make sure 2nd roms been run through new apk, gapps have been modified, and your kernel is dual boot.
[Samsung Galaxy Nexus] isaekrem:
I used lk_gnex_Hyunai_Dual_jb42_v.zip, Air kernel did not work. How will I modify the gapps.
[Samsung Galaxy Nexus] iluvamk:
I used air kernel and modified the installer script using notepad++ with the following

http://xdaforums.com/showpost.php?p=38989089&postcount=32

I'm sure there will be an update to the apk that will do GAPPS soon enough.

Edit: Will post link to DB with modified Gapps 4 u as soon as it uploads.
[Samsung Galaxy Nexus] isaekrem:
Thanks.

---------- Post added at 10:35 PM ---------- Previous post was at 10:22 PM ----------

I re-install everything. Now it is working. Thanks.
[Samsung Galaxy Nexus] iluvamk:
Re: [TOOL / APP] Dual-Boot Builder [v1.7]

U need gapps or not?

Transmitted from my Sorcerized AK Cylon powered BattleDroid
[Samsung Galaxy Nexus] isaekrem:
Yes, I need gapps. I could not modify.
[Samsung Galaxy Nexus] iluvamk:
Re: [TOOL / APP] Dual-Boot Builder [v1.7]

Check PM.

Transmitted from my Sorcerized AK Cylon powered BattleDroid
[Samsung Galaxy Nexus] isaekrem:
Thanks. You are great.
[Samsung Galaxy Nexus] iluvamk:
Re: [TOOL / APP] Dual-Boot Builder [v1.7]

Np. Just helping

Transmitted from my Sorcerized AK Cylon powered BattleDroid
[Samsung Galaxy Nexus] eqjunkie829:
Re: [TOOL / APP] Dual-Boot Builder [v1.7]

Has anyone been able to dual boot miuiv4 with this method?
[Samsung Galaxy Nexus] twistedumbrella:
That's a 4.1 ROM. It would require a base ROM that is 4.1 and a dual boot 4.1 kernel.

Running the Find ROM a second time and selecting the Gapps doesn't work?

if (currentLine.equals(getString(R.string.busybox_mount))) {
rebuildFile = rebuildFile + currentLine.replace(getString(R.string.busybox_mount), getString(R.string.system_line)) + "\n";
}

<string name="busybox_mount">run_program("/sbin/busybox", "mount", "/system");</string>
<string name="system_line">mount("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.0/by-name/cache", "/system");</string>

^ That's why I asked, but I am writing it to prompt you for Gapps so it's easier to follow.
[Samsung Galaxy Nexus] iluvamk:
Re: [TOOL / APP] Dual-Boot Builder [v1.7]

To be honest with u I didn't even cross my mind to try. . .IDIOT!

Transmitted from my Sorcerized AK Cylon powered BattleDroid
[Samsung Galaxy Nexus] twistedumbrella:
Re: [TOOL / APP] Dual-Boot Builder [v1.7]

It crashes anyway. 1.8 on market has the prompt but didn't catch the crash. I'm working that part out now.

The next part is starting to write some fancy code for live installation. I believe all the recovery commands translate into busybox to create a "translation" class.

Anyone feeling motivated can attach the updater-script file for roms they have or will install to help get together all the commands that are being used. The more the merrier honestly.
[Samsung Galaxy Nexus] iluvamk:
Re: [TOOL / APP] Dual-Boot Builder [v1.7]

Already changed:

Carbon - https://www.dropbox.com/s/40qtyaq55iaewdp/Carbon updater-script

GAPPS - https://www.dropbox.com/s/cvddhtp28s875a0/GAPPS updater-script

Transmitted from my Sorcerized AK Cylon powered BattleDroid
[Samsung Galaxy Nexus] twistedumbrella:
Alright, now there is a prompt for Gapps, the process is handled directly in the file browser to speed it up and reduce errors, and the "Send" action from other file browsers handles chaining on a Gapps package as well. Now I can start on the install part. Version 2.0 will mark when the source is finally published. I really want to write the install class before opening it up to review, though.

Attachment removed to prevent confusion, please see OP
[Samsung Galaxy Nexus] twistedumbrella:
Re: [TOOL / APP] Dual-Boot Builder [v1.9]

When this thing hits 2.0 (Beta sometime tomorrow), I cannot promise it will work perfectly. The idea is to take all the stuff such as set_perm and covert it to something terminal, such as chmod. It may work on the first try, it may be a disaster. Basically, when that comes out you should take off your case, prepare a backup, and be ready to restore. If you already dual-boot, make sure to include cache in your backup. Until now I had that disabled, which means no second ROM when restoring.

Edit: live install will be optional so you can opt out of doing that.
[Samsung Galaxy Nexus] twistedumbrella:
Re: [TOOL / APP] Dual-Boot Builder [v1.9]

Holy poop, I think it works!
[Samsung Galaxy Nexus] twistedumbrella:
Well, here goes nothing. This version will perform the live install if you opt in. Currently the kernel is not flashed as part of this, so after completing the process you will need to boot to recovery and install a dual-boot kernel. That feature is coming, though.

Attachment removed to prevent confusion, please see OP
[Samsung Galaxy Nexus] twistedumbrella:
Now the installer can unzip and install the kernel in the final step, allowing you to reboot into a dual-boot setup. No rebooting to recovery needed.

Attachment removed to prevent confusion, please see OP
[Samsung Galaxy Nexus] savantist:
the phone gets freeze when Live Installing 2nd ROM. However it completes compressing the 2nd ROM zip, I'm using CM 10.1 01/03/13.

then when I use "manual method/recovery method", it success! :D

I'm on Orca 27 ROM + AK 801 ceylon on 1st ROM before dual-booting.
[Samsung Galaxy Nexus] Lesicnik1:
I just tried installing it, goes fine with the ROM and GApps, but it doesn't prompt me for the kernel. And then if I reboot, it just boots normaly. I also tried installing the Dual Boot version of Air Kernel manually through the recovery after the ROM+GApps with app, but the phone just reboots at the Google logo.

Any help?
[Samsung Galaxy Nexus] twistedumbrella:
[TOOL / APP] Dual-Boot Builder [v2.2]

Are you on the latest version of the app? The kernel option is brand new to 2.2

It is still an early beta so it may not work with everything. There is an update coming soon but some additional tests are still in progress.
[Samsung Galaxy Nexus] Lesicnik1:
I am indeed on 2.2, after the first attempt failed I re-downloaded the app just to make sure.

I also looked through the updater-script of the ROM .zip file and it it seems that the modification of it was successful (/omap_hsmmc.0/by-name/cache).
[Samsung Galaxy Nexus] twistedumbrella:
Remount all directories to ensure availability during install, remove the symlinked cache if already dual-booting to prevent corruption, use root to delete install folders when completed.

Attachment removed to prevent confusion, please see OP
[Samsung Galaxy Nexus] Ashwa:
Re: [TOOL / APP] Dual-Boot Builder [v2.3]

Fast pace .. I tried your 1.9 version, but no lick with Ubuntu. Ended in black screen. Anyway will try this & report. And a small confirmation : for Ubuntu which file I have to install is it phablet+ armph or amel+ maguro, your video is showing like amel+maguro, if I am not wrong data is in phablet zip. Correct me if I am wrong.
[Samsung Galaxy Nexus] twistedumbrella:
Re: [TOOL / APP] Dual-Boot Builder [v2.3]

The regular ubuntu zip gets installed without any edits through recovery. That can be done with or without any plan to dual boot. The device one (maguro) is what gets modified and installed.
[Samsung Galaxy Nexus] twistedumbrella:
Better checks to eliminate the format lines. Handling for device rotation during processes.

Attachment removed to prevent confusion, please see OP
[Samsung Galaxy Nexus] Lesicnik1:
Okay, managed to get the app to prompt me to install a kernel, but now it crashes as it installs it.

(Installed CM nightly, no GApps, Dual Boot Air kernel)

Going to try it tommorow with the GApps.
[Samsung Galaxy Nexus] twistedumbrella:
Re: [TOOL / APP] Dual-Boot Builder [v2.4]

I noticed that the last time I did a test run. It's being looked into now. A lot of code is being moved around so this can become part of SKU Kernel Remote.
[Samsung Galaxy Nexus] Ashwa:
Re: [TOOL / APP] Dual-Boot Builder [v2.4]

Thanks for the reply. But what I required is dual booting Ubuntu and 4.2.2 ( vanilla root box). I think you I got what I wanted.
[Samsung Galaxy Nexus] twistedumbrella:
Re: [TOOL / APP] Dual-Boot Builder [v2.4]

Cleaning up and testing a new lighter weight version. I had to stop and complete an app for classes. Our initial submission was graded based on what the name of our app was expected to include instead of our proposed (and approved) feature list, so my whole plan had to be thrown out the window to make the app the professor wanted instead.
[Samsung Galaxy Nexus] einsteinisgaurav:
Had issues

My bad, the above posts have confused me to the point that now I dont understand whether I need to flash dual-boot kernel after fixing rom through recovery
[Samsung Galaxy Nexus] twistedumbrella:
You flash the ROM followed by the dual-boot kernel.
[Samsung Galaxy Nexus] mysterysauce:
Re: [TOOL / APP] Dual-Boot Builder [v2.5]

This is a great app. Makes dual booting nice and easy. Thank you for the app!!!

Keep up the great work.
[Samsung Galaxy Nexus] twistedumbrella:
The app is now free on market to provide an easy way to track updates. This was possible since the merge with SKU allows the price of SKU to contribute to development of both. Please remember that if you came from this thread, and you have an issue, there is help on this thread. Not all developers have access to reply options on Google Play and they are taking their sweet time unlocking mine. The uBoot function is a work in progress and the live install is being improved but currently likes to get stuck mounting the cache partition. The zip editor works perfectly, though, which is enough to build the ROM for install from recovery.
[Samsung Galaxy Nexus] twistedumbrella:
Re: [TOOL / APP] Dual-Boot Builder [v2.6]

Revision 1 and 2 of getting all of the live install and uboot stuff are complete. Revision 3 is going to be a big one but things should finally begin to work once it's completed.
[Samsung Galaxy Nexus] twistedumbrella:
The newest version has been published. It cannot fully modify a kernel for uBoot yet, but it can now generate system, data, and cache images for that method. It will build them based on the size of the items in the package. In other words, if you have a ROM with a 200MB system folder, you will get a 200MB system.img. This makes sure that you always have just enough space for the items you are installing.

The kernel portion of uBoot, along with the mounting of cache for a live dual-boot install are being worked on. Once those two items are complete, there will begin to be integration of downloading images and kernels for dual-boot and uBoot. Hopefully that is not too far off.
[Samsung Galaxy Nexus] standa75:
Hello,

I installed dbb app,let the app modify rom,gaps and then tried to manully install rom/gaps and dual boot air kernel via twrp, but without success. Only G logo is showing and phone is restarting itself every 5sec.Before flashing rom a did a wipe cache of course. Could you please tell me,whether I missed any step needed?
[Samsung Galaxy Nexus] twistedumbrella:
Re: [TOOL/APP][Dual-Boot][uBoot] Nexus DBB [v2.7]

I'm pretty sure it's a design change with ubuntu. I have the same issue with it and I edited every file manually to verify. I'm trying to determine what updates are needed for the kernels.
[Samsung Galaxy Nexus] joona0825:
Re: [TOOL/APP][Dual-Boot][uBoot] Nexus DBB [v2.7]

More detail description needed..

I can't realize how to use this application :(

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] twistedumbrella:
Re: [TOOL/APP][Dual-Boot][uBoot] Nexus DBB [v2.7]

Watch the video.