yashsingh1/xdaforums huggingface dataset:
[Xperia Z Android Development] fareeed:
Thanks Doom, adding DevHost Mirror now.

As for the kernel, I unpacked and repacked using championswimmers kernel kitchen. Editing and repacking is fine but when I flash the repacked kernel, I just get a single vibration but nothing on the screen. Have to hard reset and flash previous kernel to get it to boot again.

p.s. The guide I'm following said to leave a blank line at the end init.rc, could this have had any effect?

Here's the boot.img that I'm trying to edit :)

Update: Roughly 20 mins left for DevHost mirrorr :good:
[Xperia Z Android Development] EmeraldTimer:
Ahw, i love MIUI interface, with FullHD of Xperia Z and that colors will be wonderful!!
[Xperia Z Android Development] DooMLoRD:
here u go:

http://d-h.st/GsY

i have added the info u requested in the end of the init.rc file...

i have checked and the kernel booted on my Xperia Z...

i dont have the ROM so i cant test...
[Xperia Z Android Development] fareeed:
Thanks Doom, much appreciated :D, 6 minutes left on the DevHost mirror guys :)

UPDATE: Here is the devhost mirror

Important

Instructions:

After download, replace boot.img in zip with newer boot.img that DooMLoRD has very kindly provided.

Place zip on SD card

Reboot into recovery

Backup (ROM isn't guaranteed to boot)

Flash zip

Wipe data / factory reset

Reboot

Then report here and see what happens. I'll test ASAP as well. Also if possible, please try and provide a logcat. It should be said that I was unable to get one the first time but hopefully someone can :)

Update 2: Just realised I was editing init.sh instead of init.rc whoops, well all in the name of learning I suppose. At least I know for next time haha :p
[Xperia Z Android Development] Michealtbh:
Is the kernel based on the Cyanogenmod kernel? Which recovery is included?
[Xperia Z Android Development] fareeed:
Yep based on latest Cyanogenmod RC 5, I think the recovery is CWM 6.0.32 :)
[Xperia Z Android Development] Michealtbh:
Thanks, should use recovery from the FOTAkernel partition then.

I'll test tomorrow if I get time
[Xperia Z Android Development] fareeed:
Tried using the newer kernel from DooMLoRD but still hangs at boot animation.

[MENTION=2784807]DooMLoRD[/MENTION] Do you know how I can get a log cat during the boot process so I can find out what's giving me errors? I tried the normal adb command but I'm guessing USB debugging needs to be on for that. I think there's something I need to edit in the build prop to force enable USB debugging on boot? Thanks for your help :)
[Xperia Z Android Development] gm007:
I already tried to port miui with cm kernel and also it freeze on boot logo.

Will try to help you as much as i know starting from Monday.
[Xperia Z Android Development] fareeed:
Thanks, I appreciate any help I can get.

Main obstacle in my way is getting logcat to work on boot. If I can get that working, then I can get a better idea of what the errors are. I found some build prop stuff which might be worth a try :)
[Xperia Z Android Development] gm007:
From which device are you porting?

I tried nexus4,but the problem is the full hd.
[Xperia Z Android Development] :
1080P devices?

I'm not interested in MIUI but you might find this interesting.

http://bbs.gfan.com/forum.php?mod=viewthread&tid=5906702

Just put it in Google translate

I just googled 1080P MIUI or something.

The Oppo Find 5 is a very similar device to the XperiaZ.
[Xperia Z Android Development] flytomars:
Personally I think you can ask MIUI forum for help

it seems that miui team has devoted all time toward Xiaomi Phone and ignored the existence of Xperia Z
[Xperia Z Android Development] gm007:
Type this command: adb -d logcat

On your pc Before booting the phone to get logcat.
[Xperia Z Android Development] psycmos:
WOOWWWW!!!!

REally Really great news!! miui interface are wonderful and in full HD OOOOOoooOOO, no words!! i'm waiting for news about boot!!!
[Xperia Z Android Development] imna357:
Can't wait
[Xperia Z Android Development] hemo1001:
Yeah Finally a MIUI rom thank you very much for trying to develop it i can't use my smartphones without MIUI, thanx DoomLord too I've always loved your work since the xperia x10, Sorry for spamming..
[Xperia Z Android Development] satishenl:
Wow... Looking forward to this release. I am a great fan of MIUI and V5 is awesome.. Will be following very closely :)
[Xperia Z Android Development] eidriyan:
Hope this works! Don't give up!
[Xperia Z Android Development] hemo1001:
Maybe this developer can help ?! , he could port miui V5 to a xperia device : http://xdaforums.com/showthread.php?t=2174139
[Xperia Z Android Development] L0cke:
I think we need to wait or get a hold of the ROM for the Oppo Find 5 and port that rather then Nexus 4 version. I can never log in via http://en.miui.com/forum.php, even though I am registered, so am not able to download what's there. If someone else can we can try working on that... unless someone has already tried?

Anyone had any luck with logcat at boot to see what it's reporting?
[Xperia Z Android Development] tlkh:
Is it just me or is the login service down? :confused: Besides, it's in internal testing phase, not released to the public isn't it?
[Xperia Z Android Development] flytomars:
Login service is not down. I can login.

From Mainland China.
[Xperia Z Android Development] L0cke:
I've managed to download a copy of the Oppo ROM from here if anyone is willing to try and port it.

http://pan.baidu.com/share/link?shareid=447579&uk=2265106736&from=rrefer
[Xperia Z Android Development] hemo1001:
[Noobie question] : Is it possible to test porting MIUI with a locked bootloader? "Using the stock kernel"?without losing the recovery!?

[Tip] : Did you do the patchrom thing if you're porting a stock xperia rom with miui_v5? https://github.com/MiCode/patchrom/tree/jellybean

* I'm sick of the fake miui rom that i'm using right now, if this project is discontinued i'll have to do it my self, otherwise i'll help you as much as possible and good luck.

Edit: a thread to announce that we started porting MIUI on xperia Z :http://en.miui.com/forum.php?mod=viewthread&tid=4226&page=1&extra=#pid82605
[Xperia Z Android Development] Miustone:
look into my sig. we have a working Miui Port for the Galaxy S4...The OP can maybe help. Otherwise try 'Patchrom' The Xperia Z and Galaxy S4 have both 1080p Displays and i read the Snapdragon 600 is a S4 Pro :confused:

BR:cowboy:
[Xperia Z Android Development] Hellscythe:
i believe snapdragon 600 has different memory chips to s4 pro :S
[Xperia Z Android Development] L0cke:
@OP

What porting method did you use, just curious to know which ones is best to use?

Also I assume you did and need to flash the new boot.img that DooMLoRD sorted out for us first?
[Xperia Z Android Development] L0cke:
What's the "fake miui rom" that you're running?
[Xperia Z Android Development] Miustone:
yeah i read a lot about it and its correct so the Galaxy S4 is not the Perfect base but maybe a good choice to Port some apps (Same Screen size+1080p Res.) The Oppo 5 goes in Closed Beta so we have to wait for it :( The OP schould be PM [MENTION=569047]bmarko82[/MENTION] a cooperation would be nice:good:

BR:cowboy:
[Xperia Z Android Development] bmarko82:
You need to change default.prop:

ro.adb.secure=0

ro.secure=0

ro.allow.mock.location=0

ro.debuggable=1

persist.sys.usb.config=mtp,diag,adb
[Xperia Z Android Development] fareeed:
Hi thanks everyone, I'm currently very busy and I'm going on holiday in a week so I don't have much time to test. However, I'll update my to do list as well as the method I'm using to port. Thanks to your posts I have a better of idea of some things to try :)
[Xperia Z Android Development] fareeed:
Yep, I used the Nexus 4 as base. Thanks for bringing up the display issue, hadn't thought about that. Hopefully once we get logs we can see what's happening in more detail :)

Tried that, stuck on waiting for device unfortuneately.

Much appreciated, I'll try porting ASAP :)

At the moment no, we're using Cyanogenmod's kernel with some ramdisk changes, so you'll need to unlock your bootloader to test. However, if we could use a stock based rom as the base then it could be possible. We could use an init.d script instead of making ramdisk changes :)

Thanks I'll look into that when I have some time :)

I'll post the method I used to port and at this point, with or without Doom's kernel the device still doesn't boot unfortunately. I was hoping the changes made to the ramdisk would get it to boot. Like I've said, once we can get logs then we'll get a better idea :good:

Thank you! This is what I was looking for. I found similar methods but I ended up with a bootloop :)

p.s [MENTION=535343]all[/MENTION], if you wouldn't mind, please use the thanks button instead of posting thanks etc. It helps keep the thread un-cluttered. Thanks for understanding everyone.

I'll update the OP with my porting steps now :)

Update: Very very rushed and messy guide now available in the OP. I'll update it after I get back from holiday, but in the meantime best of luck everyone :) :good:
[Xperia Z Android Development] hemo1001:
Any stock rom with toggle bars

+ MIUI launcher from the market

+Musix "MIUI music player"

+ICS gallery app

+Dolphin web browser
[Xperia Z Android Development] LegibleEel:
Awesome work on the port, I'm picking up a Xperia Z in the next few weeks and will gladly aid you in porting this :)

In the mean time if you need help, shoot me a pm ;)
[Xperia Z Android Development] daml:
Have you tried retrieving a log after the mentioned default.prop additions?

Can you please post a link to the guide you used? I have some experience with porting miui so I'll have a look at what you did and see how I can help..

I think it would be a better idea to use a port from a 1080 screened phone.. The framework additions would suit...
[Xperia Z Android Development] L0cke:
fareeed has already updated the OP with a rough guide. I think we're waiting on good release of the Oppo Find 5 unless we can use some bits from the S4 release.
[Xperia Z Android Development] sandy7:
[MENTION=4597524]fareeed[/MENTION]

may be this will help u https://github.com/MiCode/patchrom_miui/tree/jellybean/HDPI/system

add all the files from MIUI rom to ur base which are shown in git
[Xperia Z Android Development] psycmos:
People how want have a Miui Look in one Xperia Z rom put this apps:

+ MIUI launcher from the market.

+ ExDialer & Contacts.

+ Go sms pro with miui V4 Theme.

+ Musix "MIUI music player".

+ ICS gallery app.

+ Dolphin web browser.

hehehe with this apps installed you will have an "Faked MIUI rom" !! but really nice, all people will think you have one miui rom installed...

I use this on my xperia Z and works really nice like a real miui rom!! hehe
[Xperia Z Android Development] nikc0069:
Would this work to boot CM10.1 on a locked bl device too? I miss me some CM.
[Xperia Z Android Development] EmeraldTimer:
News?
[Xperia Z Android Development] lzyllp:
http://xdaforums.com/showthread.php?t=2306650

this also port from N4

I note the this and N4 port or MIUI GN V5 all base AOSP 4.2

I think you need base on a AOSP 4.2 and easy get it boot,U can find it Z forum.

because the CM change manytings in their ROM.
[Xperia Z Android Development] fuuma:
Any News??
[Xperia Z Android Development] Notorious:
Let me finish my current project. Should take a few days and then I'll get started on this
[Xperia Z Android Development] fuuma:
Ok thanks, I hope you finish your work quickly :good::fingers-crossed:
[Xperia Z Android Development] EmeraldTimer:
HTC One now has MIUI v5:good:
[Xperia Z Android Development] DesertHawk:
Count me in bro's
[Xperia Z Android Development] jeroenqui:
I'll take a look and see what I can do tomorrow too.

I'm sure with so many people looking at it we will get it working...
[Xperia Z Android Development] insanexd:
I know that this is totally off-topic, but I wanna help in this project and don't know where to start.

I have basic knowledge in coding but none with android/ROM's modding. If someone could point me a direction I would be very grateful.
[Xperia Z Android Development] tanoxxx:
Greatttttt, you are the Best!!! :laugh:

i just making a Titanium Backup :p

i hope to see soon another beautiful baby.. like PAC ROM..

if you need some help/test im here ;)

thanks Jeroen :good:
[Xperia Z Android Development] Notorious:
Okay I'm about to get started on this. I'm downloading cm10.1 from Free xperia project. This device is know as Yuga? I don't own this device so no idea. I'm downloading FXP227-cm10.10 7-9 nightly for Yuga that right?

1Hour to download just great......
[Xperia Z Android Development] paulnorinn:
Yes, it is Yuga.
[Xperia Z Android Development] Notorious:
Okay everything Framework wise is done I just need a boot.IMG with the boot class path changed then I'll be done
[Xperia Z Android Development] jeroenqui:
Heh, I'm pretty much done too.. I'll share my compiled boot.img with you:

http://www.mijnbestand.nl/Bestand-CFF4GSIQUIMY.img

It has TWRP recovery and my kernel in it.
[Xperia Z Android Development] Notorious:
Appreciated m8 you added shelld also correct ?
[Xperia Z Android Development] jeroenqui:
Yes, of course!
[Xperia Z Android Development] Notorious:
Okay heres my try http://d-h.st/klI based on 10.1-20130701-UNOFFICIAL-yuga by FXP. This is 3.6.28 ported from Mako . I do not own this device so i cannot test it myself. Please let me know if it boots and give me a logcat if it doesnt. I dont know if there is a specific way you have to install this since i dont own this device
[Xperia Z Android Development] jeroenqui:
Hey, in the meantime of myself trying, I tested yours but unfortunately it doesn't boot and adb is not connecting so can't get a logcat.

I'm also trying to port, but need to test a lot. I at least see the MIUI bootanimation already.

Hopefully I will advance and get it to boot, but I have a good feeling about it :)
[Xperia Z Android Development] Notorious:
I probably missed something it was 3am in the morning when I worked on it I'll try again in a few hours
[Xperia Z Android Development] tanoxxx:
go Jeoen Go :good::good::fingers-crossed::fingers-crossed:
[Xperia Z Android Development] lzyllp:
https://github.com/MiCode/patchrom_miui/tree/jellybean/XHDPI/system

U replace all files like this github from mako to yuga？maybe missed some lib or others？

I think base on AOSP 4.2 is more easy get it work
[Xperia Z Android Development] sandy7:
u might missed the sheld scripts and to add the sheld script line in the kernel ramdisk
[Xperia Z Android Development] jeroenqui:
That's what I also did, but no luck yet.. Can't even get a proper logcat, even though the kernel boots fine.
[Xperia Z Android Development] sandy7:
even i dont own this device.....but i love miui...may ill give a try porting this weekend ..

i dont have a 64bit ubuntu ..if u have have it y not trying compiling from patchrom ?
[Xperia Z Android Development] lzyllp:
patchrom not support 4.2 yet,only 4.1
[Xperia Z Android Development] tathanhlam66:
tut

only miui android 4.2

open init.rc

make bootclasspath like this

export BOOTCLASSPATH /system/framework/core.jar:/system/framework/core-junit.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/telephony-common.jar:/system/framework/mms-common.jar:/system/framework/framework_ext.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/apache-xml.jar

add line

service shelld /system/xbin/shelld
class main

miui won't boot, you need edit framework.jar and services.jar

if want use logcat, you flash base rom (cm10.1)

boot phone, connect your pc, make adb activities

reboot phone to recovery, install miui (don't wipe)

boot phone

try use logcat
[Xperia Z Android Development] dreamxp:
http://bigota.d.miui.com/3.7.12/miui_Find5_3.7.12_b64e1d643e_4.1.zip

offical oppo find5 MIUI pubilc test version realeased. Hope it can help.
[Xperia Z Android Development] psycmos:
Any News?!?! i will love Miui a lot for my Xperia Z!!!!!! i'm always checking this Thread!!!
[Xperia Z Android Development] jeroenqui:
Somehow, stuff is not working as it should.

Anyways, I've abandoned this project for now. I only want to build stuff from source, way better then porting stuff.
[Xperia Z Android Development] L0cke:
Looks like the ports people have tried maybe need edits to the framework, not sure what exactly but there are guides. Also is the Oppo release based on 4.1? If so should we be using a 4.1 base or doesn't it matter? I'm by no means an expert on these things but may try and give it a go when I'm back but that's not till next week. I was hoping someone would have it booting by now :)
[Xperia Z Android Development] zeyadhan:
cant get it boot i will try to port it from another device
[Xperia Z Android Development] sandy7:
from which device did u try to port?
[Xperia Z Android Development] daml:
And same. I have tried porting from various devices using various kernels and can not get a log cat. Without this i cannot figure out what to modify...
[Xperia Z Android Development] L0cke:
Has anyone tried porting from the Oppo ROM and using the logcat method a few posts back?
[Xperia Z Android Development] jeroenqui:
Yes I tried but not working
[Xperia Z Android Development] Sunfl4sh:
Minutes ago "MIUI Germany" posted a Link to a very detailed tutorial which ports Miui to EVERY Device. Unfortunately I am not able to do it, but maybe someone else??? http://en.miui.com/thread-5432-1-1.html
[Xperia Z Android Development] L0cke:
I think the above guide has already been tried, maybe someone can confirm if they have followed it through, including the framework edits? Just don't want to waste my time doing it otherwise.
[Xperia Z Android Development] Notorious:
http://xdaforums.com/showthread.php?t=1777999

Been available for a while
[Xperia Z Android Development] Sunfl4sh:
Yeah, it is. But only v.4 and not for xperia z
[Xperia Z Android Development] Notorious:
That guide is a EXACT copy of lens thread so it wouldnt work with v5 either way. V5 porting is different then v4 but its easier to port v5 imo
[Xperia Z Android Development] Sunfl4sh:
Than do it :D I really would appreciate it
[Xperia Z Android Development] L0cke:
I think Notorious has already tried and hasn't yet been able to get it to boot. Have you advanced any further Notorious?
[Xperia Z Android Development] L0cke:
Not sure if this helps, but was posted on the MIUI site...

http://en.miui.com/forum.php?mod=redirect&goto=findpost&ptid=5432&pid=103867
[Xperia Z Android Development] Notorious:
Nope won't help at all. That is for porting v4 . Heres a updated guide put together by me and Lens flare for porting miui v5

http://en.miui.com/thread-5643-1-1.html
[Xperia Z Android Development] daml:
Currently have the latest fxp cm 10.1 build for yuga downloading and I have a copy of 4.2 based miui for htc one (screen res and processor are the same). And this time im sticking with the build and finding out why logcat won't work as there is no point trying to make a hundred builds if we cant troubleshoot them.. Wish me luck!

(meanwhile, and off topic.. I am preparing a build of ubuntu touch from the build for tablet z.. My understanding is that because the hardware is the same all i have to do is package a proper kernel and recovery... maybe change some disk paths...small things... anyone who reads this and could help, it would be much appreciated..)
[Xperia Z Android Development] daml:
Umm...I'm assuming were all trying to port from fxp cm10.1?

I noticed a typo in the updater script:

symlink("logcat", "/system/bin/lolcat");

Should read:

symlink("logcat", "/system/bin/logcat");

Although is it that logcat/adb doesnt connect or that logcat isnt found?

Check your builds anyway, change the typo, and report here as to how you go...

Meanwhile I am still working on my port :)

edit: nevermind, https://www.google.com.au/search?q=...ome.1.69i57j0.7753j0&sourceid=chrome&ie=UTF-8

Its a joke amongst the android dev's...

---------- Post added at 08:05 AM ---------- Previous post was at 07:19 AM ----------

Ported from htc one

Still no logcat...

I think we need to concentrate on getting this working rather than porting over and over again..

Where to start troubleshooting?
[Xperia Z Android Development] L0cke:
Well I think Taylor_Swift has made some progress as has posted a note on his Motorola Blur UI thread that he is working on MIUI v5 and a Sense port. Here's hoping he has the answers :)
[Xperia Z Android Development] Notorious:
First did you modify your bootclass path.in the ramdisk of the boot.img
[Xperia Z Android Development] daml:
Yes, and I get as far as everyone else, the kernel boots and it displays the miui boot screen but goes no further and no access to adb/logcat. :(
[Xperia Z Android Development] Notorious:
Did you edit the default prob for adb?
[Xperia Z Android Development] psycmos:
MIUI are the best rom!!! but i'm seeing here, it needs really hard work, to put it booting :( :(
[Xperia Z Android Development] daml:
ro.debuggable="1"

Yeah I have. :(
[Xperia Z Android Development] DesertHawk:
I have access to ADB on my MiUi build.
[Xperia Z Android Development] alnikki25k:
Logcat. :cool:
[Xperia Z Android Development] L0cke:
What else do you have working? ;)
[Xperia Z Android Development] DesertHawk:
Nothing else
[Xperia Z Android Development] Sunfl4sh:
So MIUI is working on Z ????
[Xperia Z Android Development] OCmylife:
No but he could debug the boot-process, why the rom doesn`t boot. And that`s a big step in the right direction.
[Xperia Z Android Development] psycmos:
Really great news!! MIUI are in right way!!! :D lg cat!!!!
[Xperia Z Android Development] daml:
I now have an adb connection working on a couple builds yay :).. But the device says offline. I know what this relates to and how to fix it if i could boot the device.

How did you achieve this. Who's build and what did you modify?
[Xperia Z Android Development] alnikki25k:
You have to modify the default.prop in the ramdisk. Basically, you need to create an insecure boot image.

4.2.2 introduced a new level of security when using adb. It verifies a SSH key. Thus you get the device offline error.

Changing

to

should fix it :laugh:
[Xperia Z Android Development] Miustone:
no Progress :confused: i try today to Build Miui from Source using Patchrom but i never do this before :rolleyes: i try to use AOSP as Base... i don't say i will give a Complete working Rom but i try to do what i can :good: Post results later here :fingers-crossed:
[Xperia Z Android Development] fareeed:
We're working hard behind the scenes but we haven't made a lot of progress haha. As soon as we make some significant progress we'll let you all know :)
[Xperia Z Android Development] Miustone:
Sry but i have seen many Threads with WIP but no Final Rom... i hope we can get it ! :good: btw. why do we have such Problems? i tried with Patchrom sources but no chance... then i tried with Cyanogenmod and the latest Miui Nexus 4 (Mako) release,the Xperia Z and the Nexus 4 have nearly the same Hardware,so why is it so hard to port?:rolleyes: i can boot (with bootloop) but i think there are Permission issues in my Build.i have tried to mix the Permisson from Cyanogenmod and MIUI and deleted the duplicated lines but it gave me status 7 (Permission can't set right),still i have only the Cyanogenmod Permission in it Have you checked your's in the Updater Script?

My .zip is Uploading i will edit my post then... you can watch in if you want! adb is not enabled yet (Because no one will tell me what's wrong in the logcat:silly:)

But i can find 660 Errors in the logcat from [MENTION=4645070]alnikki25k[/MENTION]

seem's we need to edit some .smali's :/ hard work ! -.-
[Xperia Z Android Development] L0cke:
Try and PM Taylor_Swift, I know he has loads of projects going on at the moment, but one of them is MIUI and I think he has logcat working on his build.
[Xperia Z Android Development] psycmos:
thanks

Woow people are really intrested to put miui rocking in xperia z!!! Waiting for the best rom!! MIUI ROCK!!