yashsingh1/xdaforums huggingface dataset:
[Xperia Z1 Original Android Development] veryjo:
Multiboot for Xperia Z ?

I use a Xperia Z

I am looking for multi-boot for the Xperia Z.

A video on Youtube shows a Z: http://www.youtube.com/watch?v=9f9gG1sRNog

How is that possible?

Can I hope for multi-boot for the Z?

much greetings
[Xperia Z1 Original Android Development] munjeni:
Hi, no because I am xperia z1 compact owner and I allready support one device more (xperia z1)so I have no free time for suppprting 3 devices! Only z1 and z1c !
[Xperia Z1 Original Android Development] munjeni:
Small progress -> http://pastebin.com/8EyrpY9E thats an working example and I need to finish/improve them for using these script for on the fly ramdisk modification. Allso need to make tool for appending dt to zImage... :eek:
[Xperia Z1 Original Android Development] olokos:
Finally an update! Thanks man! I'm really waiting for this!
[Xperia Z1 Original Android Development] munjeni:
Yes, I have finished some unfinished projects so I can start now on bootmenu, not understand some things like "how to put bind mounts to the fstabs" but will investigate soon. Hope some one help. :)
[Xperia Z1 Original Android Development] munjeni:
I have no idea if bind mount in fstab is possible. I have tried:

/dev/block/platform/msm_sdcc.1/by-name/userdata /multiboot ext4 noatime,nosuid,nodev,barrier=1,data=ordered,nomblk_io_submit,noauto_da_alloc,errors=panic wait,check,encryptable=footer,length=-16384
/multiboot/media/0/bootmenu/ggg/system /system none bind 0 0
/multiboot/media/0/bootmenu/ggg/data /data none bind 0 0
/multiboot/media/0/bootmenu/ggg/cache /cache none bind 0 0

when I add line in recovery "mount_all /xxxx.fstab" its mounted sucesfully, but after unmounting than there is no way for mounting them using recovery mount menu, but I can mount trought adb shell. Anyone have idea what is right sintax in android fstab for mounting bind mounted things??
[Xperia Z1 Original Android Development] HypoTurtle:
media/0 is usually binded as internal storage space right? Have you tried with the full address "/dev/block/platform/msm_sdcc.1/by-name/userdata/media/0/bootmenu/ggg/system".

How are you setting the ggg variable for this. Only way I can think that might work would require a redirect to ramdisk.log I guess and a hot reboot. Personally don't see why fstab is needed for this, a bash script to make the directories and mount the appropriate partition prior to install would be all that's needed or am I missing something.
[Xperia Z1 Original Android Development] munjeni:
I am not sure if "/dev/block/platform/msm_sdcc.1/by-name/userdata/media/0/bootmenu/ggg/system" will work since "/dev/block/platform/msm_sdcc.1/by-name/userdata" is block device so "/dev/block/platform/msm_sdcc.1/by-name/userdata/media/0/bootmenu/ggg/system" is not exist.

I setted ggg variable (created folder earlier in my internal sdcard/bootmenu/ggg folder.

Fstab is needed for recovery since every rom for xperia have 2 ramdisks in boot.img (xperia have no dedicated recovery partition! First ramdisk is rom ramdisk and seccond one is cwm), but recovery can not mount binded mounts if you try to mount them trought menu or if you try to wipe these space with menu. But I can bind mount them from rc or from fstab by mount_all (strange thing command mount_all from rc mount these fstab "bind" lines), but if I umount (or if I try to wipe) there is no way for mounting them (give me error). For rom ramdisk there is no problem since we mount them only one time "at boot". So problem might be recovery of the every rom! Fstab is allso usefull for gapps since gapps updater-script no require block device path since gapps use "/sbin/mount /system" which use fstab for mounting system partition so we no need to patch gapps package.

I had plan (started allready working on them and had idea) but I am disapointed now since have no idea how to solve problem related to the recovery fstab, probably I will go back to the loop mounts and old ext4 file based partitions :( DO you have idea how we can use fstab in bind combination?
[Xperia Z1 Original Android Development] HypoTurtle:
What error is the remount giving you?

Do you have the recovery source... perhaps changing the commands issued by the menus in recovery could work. Would adding a bash script to mount them to recovery ramdisk work or just cause other issues.

Regarding ggg what I meant was wont you have .../ggg/system for rom1 .../hhh/system for rom2 .../iii/system for rom3 etc. can't see how you can get around this and use fstab.

Edit.

do you ave adb/terminal access in recovery? can you see if .../media/0 is mounted elsewhere. (might be mounted as /sdcard by init.rc).

Just FMI it is /etc/recovery.fstab that you're modifying right?
[Xperia Z1 Original Android Development] munjeni:
Error is something like "no device" which mean "no block device". See previous post. I have explained what is happening! Problem is not scripts since scripts will work! Problem is recovery since recovery use fstab for mounting and for wipe thing! So when you umount something trought menu (previously mointed sucesfully trought rc or script), there is no way to mount them! I no want to change recovery since (again) every rom have his own recovery ramdisk! There is no sense replacing recoveries with new one . If you see in my z1c thread, I have changed rom and cwm ramdisk fstabs easilly for booting into file based partitions and good thing was - these recoveries from these roms was abble to wipe, factory reset ...etc these "loop mounted" roms! With minimal changes everything worked like regular rom! So I want the same but with replacing loops with binds, thats all. The rest is not so hard! For example, my idea is to use zip package name for making on the fly folders to bootmenu folder, than on the fly ramdisks modification, than on the fly zip updater_script modification, so everything will be on one click. But by now have no idea how to solve bind related fstab things.
[Xperia Z1 Original Android Development] HypoTurtle:
Just to get thing clear in my head then (I think in places where I said recovery I meant bootmenu):

Is the process:

bootmenu --> ROM recovery --> Install ROM

bootmenu --> boot ROM

with ideally all the changes need to be within bootmenu and for it to persist in recovery.

EDIT. Have you tried: "/multiboot/media/0/bootmenu/ggg/system /system auto bind"

Could it be that the /multiboot folder doesn't exist? (or isn't made prior to mount_all being run), or:

1. .../by-name/userdata would be ordinarily be mounted in recovery as /data wouldn't it? have you tried with that mounted as /data?

2. using LABEL= i.e "LABEL=system /multiboot/media/0/bootmenu/ggg/system none bind"
[Xperia Z1 Original Android Development] munjeni:
Here is my tool for dumping boot image directly from partition or directly from boot.img or directly form kernel.elf, tool will dump and unpack them to folder you specify, tool can be used booth in recovery or android, tool automatically detect xperia boot image format (elf) and android boot image format (created by mkbootimg). Hope someone find tool usefull. :)

Going to create dt appender tool and will start working on multiboot. I will use loop device with file based partition since I found that bind method is a lot harder than using old things since I found no way to bind things from fstabs, but without fstabs recovery, gapps...etc need a lot of modifications, but using loop_file based partitions, things is easy (just few lines need to be modified) + no need to touch gapps packages.
[Xperia Z1 Original Android Development] munjeni:
0. /Multiboot folder exist and userdata block device is mounted to /multiboot

1. If I mount ...by-name to /data than main data partition will be wiped instead on multiboot one, so thats not what we want :D

2. Never see label in fstabs! Where you found them?

3. Auto bind... Or ext4 bind... Or none bind... No one working! Its working only on FS (by command mount_all)! But if I remount them trought recovery menu than it fail to mount (error: no device - which mean: no block device). Probably a major cwm bug.
[Xperia Z1 Original Android Development] pranii23:
C6902 Modem

Anybody who successfully flashed C6902 Modem~

I am trying to flash PA 4.4.3 Rom .everything gets flashed except the Modem. It always shows the Baseband to be unknown. I had the modem.zip which previously worked for normal single ROM boot.
[Xperia Z1 Original Android Development] abbychauhan:
Read 20 - 15 page back or all the pages and look for my post.. I have given link for C6902 Modem.. Works with every ROM
[Xperia Z1 Original Android Development] hxq88:
this project was paused ?

All work perfectly except led colour, you guys have red led when boot into bootmenu? this thread said red led = brick,it's make me afraid every red led appear when boot up :laugh:.
[Xperia Z1 Original Android Development] gregbradley:
do not worry about it.

If it works, don't fix it.....red led is just defined by the boot process, its not a problem. If your phone boots...don't worry
[Xperia Z1 Original Android Development] deftoner:
abbychauhan thanks for the guide!

Everything went just fine with flashing boot menu and patching my actual main rom. But, when I do patch the secundary rom I get lot of warnings about "No bit flag" Now I will flash it anyway... lets see how its goes.

---------- Post added at 11:26 PM ---------- Previous post was at 10:51 PM ----------

It works perfectly
[Xperia Z1 Original Android Development] deftoner:
Hello there! Well I was trying the bootmenu for a while. This is an AWESOME work. For real. Lot of hard work, and you replying all questions... simply awesome.

I read most of the post. I found most of my question there. I got one question and one feature request:

1- If my main rom have encrypted storage, bootmenu will work anyway? and the secondaries roms too? I'm thinking about to use bootmenu to boot a clean basic rom and have another rom with all my data. Witch goes for the feature request:

2- WIll be nice if bootmenu have the option to activate pin request or may be some hidden option. (like, always boot from main rom, unless you press the volume down button over the boot, for example).

Thanks again for this great job.

Hope you have an awesome day ;)
[Xperia Z1 Original Android Development] hxq88:
1. I think bootmenu can read data from encryted storage to patch and boot.

2. It's always boot into mainrom if your phone idle, as you see UI and option menu still raw but main feature is stable, and hope munjeni will improve it when he have time.
[Xperia Z1 Original Android Development] munjeni:
Bootmenu have led indication which mean your phone is charging! When your battery level come to 95 percent your led will be yellow or when come to 100 percent your led will become green :)
[Xperia Z1 Original Android Development] munjeni:
hi

1. bootmenu can not work FROM encripted storage (I am not 100 percent sure, but you can try)

2. Thats possible only if somebody integrate keyboard to the my bootmenu source (I have no plan for doing that since I am not good in c++, but keyboard source code you can use from twrp recovery which is writen in c++)
[Xperia Z1 Original Android Development] deftoner:
Thanks for the quick reply.

I fighting with the "No IMEI / No network signal" on C6902. I tryied to flash some modem .zip (i got 3 version of it) in my 2 secundaries roms, but I guess the problems is on the No Imei issue, and I cant find here how to fix it.

Any Ideas or link? May be deserves to be on the first post of this thread.

Thanks again :) Anything you want from a C6902 just ask (logs, screenshots, etc)

Have a good one

---------- Post added at 05:25 PM ---------- Previous post was at 04:42 PM ----------

The guy that says something like "Hey the solution is somewhere in the whole internet" mean, this post: http://xdaforums.com/showpost.php?p=53076898&postcount=279

I tried this patch and anothers 3 from links on the posts and no signal (based on no imei either)

If you found the solution please post it! :) thanks

---------- Post added at 05:39 PM ---------- Previous post was at 05:25 PM ----------

OK!! It works for me!! I use this patch: http://d-h.st/1fK thanks to [MENTION=5618877]abbychauhan[/MENTION] he found the link.

In one rom works just flashing it. In other rom, I do all the step to install the rom, and NO REBOOT, flashed the ZIP. and then reboot.

c0602, Argentina. Signal in the 3 operators.

Thanks!
[Xperia Z1 Original Android Development] abbychauhan:
Who said "the solution is somewhere in the whole internet" ?? I said u ll have to look specifically my post to get the link wouldn't it be good if u want to have a good Solution then atleast do some work which i suggested and u found

And the link cannot be on OP u guys have to take some trouble to find it because its not my work nor munjeni's.. And its rude to put up someone's work to a OP without permission.
[Xperia Z1 Original Android Development] deftoner:
One thing just to be known.

If you edit settings.ini you need to be sure to end the file with a new line (enter).

bootmenu will added the new entries at the end so you will have this problema:

[rom-6]
menutitle=CandyKat-v1.5.2-20140621-CWM
kernel=/data/media/0/bootmenu/CandyKat-v1.5.2-Official-release--20140621/zImage
ramdisk=/data/media/0/bootmenu/CandyKat-v1.5.2-Official-release--20140621/cwm_initrd.gz
dtb=/data/media/0/bootmenu/CandyKat-v1.5.2-Official-release--20140621/dt.img
cmdline=no_need_anymore[rom-7]
menutitle=pac_honami-nightly-20140626
kernel=/data/media/0/bootmenu/pac_honami-nightly-20140626/zImage
ramdisk=/data/media/0/bootmenu/pac_honami-nightly-20140626/initrd.gz
dtb=/data/media/0/bootmenu/pac_honami-nightly-20140626/dt.img
cmdline=no_need_anymore
[rom-1]
menutitle=pac_honami-nightly-20140626-CWM
kernel=/data/media/0/bootmenu/pac_honami-nightly-20140626/zImage
ramdisk=/data/media/0/bootmenu/pac_honami-nightly-20140626/cwm_initrd.gz
dtb=/data/media/0/bootmenu/pac_honami-nightly-20140626/dt.img
cmdline=no_need_anymore
[Xperia Z1 Original Android Development] AntiDroid:
"paching unsucesfull!"

this error occurs when i try to flash the mainrom.zip (Doomkernel v21), I've followed all of your steps :|

extracting "bootmenu", placeing the boot.img into the mainrom folder, flashing bootmenu.img and... :|

please help me :(

C6903: iHackers 4.1 (DooMKernel v21)
[Xperia Z1 Original Android Development] Chocolatetrain:
Pull your recovery.log after it says it's unsuccessful and post it
[Xperia Z1 Original Android Development] AntiDroid:
how o.o
[Xperia Z1 Original Android Development] Chocolatetrain:
Set up adb and type ;

Adb pull /tmp/recovery.log and it be in your platform-tools folder, Google it
[Xperia Z1 Original Android Development] abbychauhan:
This cannot happen.. The procedure and files have been checked several times and working for many people.. Please check have u properly downloaded the files or they are corrupted.. Either u are missing a step.. Or you have done some modifications by changing some names of some files also check have u placed bootmenu_honami folder or the folder inside it bootmenu (its the correct one) also where u kept the bootmenu folder

Please specify each and every point that u did.. Or u can get a adb Report
[Xperia Z1 Original Android Development] gregbradley:
The kernel you use must be the same as the one in the .zip update. Most update.zip's for stock roms either have a stock kernel in it or no kernel at all.

Here is how to fix it.

Flash Doomkernel as normal to wipe bootmenu.

Then get your main stock rom as you want it.

Then use munjeni tool to make your rom into an update.zip (Look for links in post #4)

Then use Doomkernel with that update.zip and it will be sucessful
[Xperia Z1 Original Android Development] AntiDroid:
it's working now, <3
[Xperia Z1 Original Android Development] gregbradley:
Hi,

I have just noticed that when using a stovk ROM as my main rom that the sdcard is unavailable to the phone when the phone is connected to the PC via USB. It just does not recognise it all.

Its not a MTP setting or anything like that.

Works fine on stock rom without multi boot, so not sure whats going on, Can anyone else replicate this?
[Xperia Z1 Original Android Development] Chocolatetrain:
I've never had this problem just to let you know.
[Xperia Z1 Original Android Development] hxq88:
I use stock base as mainrom from begining andSD-card working well both of mainrom and second rom.
[Xperia Z1 Original Android Development] gregbradley:
Thanks
[Xperia Z1 Original Android Development] hxq88:
Finally I had pimp kernel on second rom with wifi working:victory:
[Xperia Z1 Original Android Development] tomanlam:
hi guys,

I used stock 108 rom as main rom and successfully installed PA as a secondary rom, however, when i tried to install Carbon rom as my third rom, there's a bunch of errors on the "flags" of the files...

I tried renaming the zip to sth that doesn't contain "_" or "-" but the problem persists, can anyone shed some light on this and sorry for this noob question:silly:

Thanks for this awesome tool for the Z1:good::good:
[Xperia Z1 Original Android Development] hxq88:
I don't know why but i can't patch carbon rom as non-mainrom too.

Sent from my C6903
[Xperia Z1 Original Android Development] abbychauhan:
"_" is ok.. it should not contain SPACE.. or it wont work
[Xperia Z1 Original Android Development] tomanlam:
it doesn't contain space either LOL

i changed the zip name to "CARBONROM15.zip" and a bunch of "flags errors" still show up XD
[Xperia Z1 Original Android Development] abbychauhan:
i used Carbon ROM so many times as secondary ROM, i always rename the rom zip file to "CARBON" before patching.. try to do again
[Xperia Z1 Original Android Development] tomanlam:
Tried again naming it to "CARBON.zip" and it still doesn't work :'(

maybe it doesn't work with the latest build 15?

i tried downloading it once again just to make sure it's not because of corrupted file and same result, maybe somebody else can confirm if build 15 work with this tool?

Here attaches the pic of the errors i was talking about
[Xperia Z1 Original Android Development] abbychauhan:
Ok tagging [MENTION=4120742]munjeni[/MENTION].. Hopefully he ll answer
[Xperia Z1 Original Android Development] abbychauhan:
Looks like Multiboot is unable to Patch CWM Recovery with new Kernels Running with Most of the ROMs.. Though ROMs pre installed Recovery Working Fine
[Xperia Z1 Original Android Development] hxq88:
same, i tried lastest release of PA, Paranoid saberdroid, CM by infected_ all cant boot :( (stuck on sony logo or black screen in recovery)
[Xperia Z1 Original Android Development] abbychauhan:
I dont have a booting Problem.. I have installed 2 ROMs PA as Primary and CandyKat as Secondary both are booting fine.. just the Recovery Issues that's it..
[Xperia Z1 Original Android Development] tomanlam:
u can get around that by booting into your second rom (right after u patched it) and press "vol -" while u r at the bootup screen, i can get into recovery using this method at least on the latest PA 4.4.4 xdd

P.S.

could anyone get carbon to work with this? :p

:fingers-crossed: thanks in advance
[Xperia Z1 Original Android Development] abbychauhan:
I think u haven't Saw my previous Comment .. I already told ROMs Default inbuilt recovery working fine [emoji14]
[Xperia Z1 Original Android Development] gauravbhakuni90:
Hi guys i patched stock rom with stock kernel as main rom and then patched SlimKat as second rom all went fine both recovery and rom are working fine but the problem is after all that is when i boot into my main rom and lock my screen through power button or when the phones locks automatically the phone restarts....

Edit - It happens only in main rom not in second rom ....

Edit 2- This is going great i tried to do it second and third time by deleting the prev bootmenu folder and starting from scratch by copying iit in the internal storage main rom patched easily but when i patched slimkat 2nd time and installed rom through SlimKat patched.zip and did a reboot, afterwards when i slelected slimkat rom the device rebooted and third time voila !!! there was no cwm entry present on Slimkat rom

Sent from my Xperia Z1 C6902
[Xperia Z1 Original Android Development] hxq88:
i tried patch lastest verson of PA, paranoid saberdroid, AICP as second rom but all stuck on sony logo, and CM roms support by infected_ have same error like [MENTION=1287815]tomanlam[/MENTION]. Did you guys install these roms completely as second rom? my mainrom is stock base
[Xperia Z1 Original Android Development] Chocolatetrain:
Does anyone have any idea why miui with doomkernel isn't compatible with bootmenu? I used the same zip for mainrom and its fine, but when i try to use it as second rom everything is fine except when I actually try to boot it, it just stays black for about 15 seconds and reboots. [MENTION=4120742]munjeni[/MENTION]
[Xperia Z1 Original Android Development] mchlbenner:
Hi

Do you need a unlocked bootloader for this to work?
[Xperia Z1 Original Android Development] gregbradley:
http://prntscr.com/46w6mf

You are flashing a custom boot.img using fastboot.....of course you need an unlocked bootloader
[Xperia Z1 Original Android Development] smart8bits:
how to patch a ROM with aroma installer?? :confused:
[Xperia Z1 Original Android Development] Chocolatetrain:
Flash the ROM and kernel, then use munjenis ROM tool to generate a zip to be patched. Although I ran into many problems before I got it to work.
[Xperia Z1 Original Android Development] torjohron:
How do i remove multi boot from my device?
[Xperia Z1 Original Android Development] abbychauhan:
Delete the BootMenu Folder and Flash ur primary ROM Boot.IMG via flashtool or do a dirty flash of the primary ROM
[Xperia Z1 Original Android Development] torjohron:
Where do i find primary ROM Boot.IMG?
[Xperia Z1 Original Android Development] abbychauhan:
In the Zip file of ur ROM.. Leave all this just do a flash of primary ROM
[Xperia Z1 Original Android Development] *alifo*:
Can you make it for Z Ultra?
[Xperia Z1 Original Android Development] SamadiPour:
hi guys

some question

1- Ho to install 2 ftf roms with this?

2- how to increase second rom space?

3- i replaced System & boot of pimped kernel in Paranoid zip file. and then i patched it. when i select paranoid-CWM it won't show me the cwm to install rom. is there any way to install kernel?

Thanks

Updata: 3rd problem Sloved
[Xperia Z1 Original Android Development] hxq88:
1. Flash ftf use tool made by munjeni to make rom.zip, or use NUT 's rom.

2. You can edit setting file (forgot name) to change partition size.

1+2 read abbychauhan guide on 1st page, it have full of info you need.

Sent from my C6903
[Xperia Z1 Original Android Development] SamadiPour:
hi guys

my first rom is stock 4.4.4 FW133 and my second rom is Paranoid

last night i Patched MIUI for my 3rd rom but i ran into a big problem

Miui and first rom merged!!!!!!

i had style, icon, fonts,Sounds and..... of Miui but i still had my old apps

i think it's Aroma installer Problem!!!!

so anyway have can i have a 3rd rom that have aroma installer?

Thanks
[Xperia Z1 Original Android Development] Aaskereija:
sry if i missed a already given answer, but i made multiboot for my Z1 and i can't enter the cwm of my mainrom through bootmenu, it always go back to it like a reboot or stuck in a blackscreen, im only able to access CWM if i start my mainrom and press vol up during the normal Sony logo
[Xperia Z1 Original Android Development] AnrgKrshn:
Guys, I just patched DarkCM rom and in the step where I have to enter the secondary rom recovery, the screen just stays black (While turned on, I can see the backlight.) So I can't enter the recovery to flash the secondary ROM after patching it. I haven't tried booting into the secondary ROM, though. Any pointers?

EDIT: I could flash it by booting into the rom and accessing the ROM's recovery by pressing vol up on kernel logo. Recovery access for the main rom is in tact, but it's broken for the secondary ROM.

---------- Post added at 07:49 AM ---------- Previous post was at 07:12 AM ----------

How do I flash primary ROM?
[Xperia Z1 Original Android Development] abbychauhan:
Just flash boot.img of ur primary rom via Fastboot and then go to its recovery and flash the ROM