yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] allcity187:
Flash this rom last night, it's awesome, no lag at all. Gps is working, tested with Tom tom app, took less than a minute to get a signal.
[Samsung Galaxy Nexus] gummie:
Nice, if you happen to release with fix kernel issue can you show/point out why it doesn't load other custom kernel and how you fixed it? We in Maguro suffer the same issue. Thanks!
[Samsung Galaxy Nexus] TreyM:
Op updated for new release.

READ THE OP BEFORE FLASHING
[Samsung Galaxy Nexus] TreyM:
It's the ramdisk. They changed it. So, when a kernel replaces the entire boot.img, it's replacing the ramdisk as well, and MIUI gets angry. My solution was to place the tools on the phone to unpack the new kernel boot.img, extract the stock ramdisk, and repack the new kernel zImage with the stock MIUI ramdisk.

The user places the new kernel zip in a dir on the sdcard, then runs my script "flash_kernel" as root. It modifies the necessary files, flashes the kernel, and reboots. The process is automated and takes less than 10 seconds.

#!/system/bin/sh
#
# MIUI V5 Kernel Injector for Maguro / Toro
# TreyM
##################

cd /sdcard/MIUIAndroid/kernel/
unzip -o ./*.zip
# Check for a boot.img
if [ -f ./boot.img ]; then
echo "boot.img found"

#rename the boot.img
mv ./boot.img ./new.img
echo "Unpacking ramdisk..."

# Unpack the ramdisk
unpackbootimg -i ./new.img -o ./
echo "Combining kernel with"
echo "MIUI ramdisk..."

# Combine new kernel with MIUI ramdisk
mkbootimg --kernel ./new.img-zImage --ramdisk ./ramdisk/boot.img-ramdisk.gz --base 0x$(cat ./ramdisk/boot.img-base) --output ./miui.img
echo "flashing new kernel..."

#flash_image /dev/block/platform/omap/omap_hsmmc.0/by-name/boot ./miui.img
dd if=./miui.img of=/dev/block/platform/omap/omap_hsmmc.0/by-name/boot
echo "Kernel flashed"
echo "Cleaning up..."
rm -r ./META-INF
rm ./*.zip
rm ./miui.img
rm ./new.img
rm ./new.img-base
rm ./new.img-cmdline
rm ./new.img-pagesize
rm ./new.img-zImage
rm ./new.img-ramdisk.gz
echo "rebooting..."
echo "..."
echo "..."
reboot

elif [ -f ./kernel/zImage ]; then
echo "zImage found"
echo "Combining kernel with"
echo "MIUI ramdisk..."

# Combine new kernel with MIUI ramdisk
mkbootimg --kernel ./kernel/zImage --ramdisk ./ramdisk/boot.img-ramdisk.gz --base 0x$(cat ./ramdisk/boot.img-base) --output ./miui.img
echo "flashing new kernel..."

#flash_image /dev/block/platform/omap/omap_hsmmc.0/by-name/boot ./miui.img
dd if=./miui.img of=/dev/block/platform/omap/omap_hsmmc.0/by-name/boot
echo "kernel flashed"
echo "cleaning up..."
rm -r ./META-INF
rm ./*.zip
rm ./miui.img
rm ./new.img
rm ./new.img-base
rm ./new.img-cmdline
rm ./new.img-pagesize
rm ./new.img-zImage
rm ./new.img-ramdisk.gz
echo "rebooting..."
echo "..."
echo "..."
reboot

else
echo "FAIL FAIL FAIL"
echo "No boot.img found"
echo "No zImage found"
echo "Bad zip?"
fi
[Samsung Galaxy Nexus] TreyM:
OP UPDATED AGAIN

Hotfix

Fixed an issue with the kernel script.
[Samsung Galaxy Nexus] gummie:
I will try this on Maguro. I already downloaded your Kernel_Fix zip on OP and Modified it for Maguro. I will update later if it was a success. Thanks by the way, I will have to notify MIUI of this issue and if nothing happens, Me and Team are really going to attack MIUI HQ.
[Samsung Galaxy Nexus] TreyM:
You will need to get the ramdisk from the Maguro boot.img for the script to work. It is looking for the existing ramdisk. I packaged the toro ramdisk in my rom (/sdcard/MIUIAndroid/kernel/ramdisk) You can probably use that, although it is modified and not exactly stock.
[Samsung Galaxy Nexus] TreyM:
Here is the kernel fix for Maguro. Place your kernel zip in /sdcard/MIUI/kernel/

then run:

su
flash_kernel

Kernel Fix

EDIT: re download it. I forgot to change the assert from toro to maguro. Fixed now.
[Samsung Galaxy Nexus] gummie:
Thanks for this trying now

Edit: It says (status 7) Installation Aborted already check asserts and I was sure i have seen maguro.
[Samsung Galaxy Nexus] TreyM:
EDIT: re download it again. I modified some stuff in the updater script. Should work now.
[Samsung Galaxy Nexus] gummie:
I already changed to TWRP to avoid status 7 but it seems that it is having problems on changing permissions. I attached the recovery log.
[Samsung Galaxy Nexus] TreyM:
I think I fixed it. Re download and try again.

EDIT: yeah I see what it was. I left the init.d lines in there. I added init.d to my rom. So it's not in yours. That's why it failed. init.d didn't exist.
[Samsung Galaxy Nexus] gummie:
LOL it was just now that I created init.d folder via ADB and retried installation and poof it was a success.:good:
[Samsung Galaxy Nexus] TreyM:
Well, the download has been fixed for others now so it only sets permissions to the files it moves over.
[Samsung Galaxy Nexus] xzero425x:
I'm so confused on what to download and flash right now hahaha
[Samsung Galaxy Nexus] TreyM:
You don't need the stuff other than what's in the OP if you use a Verizon GNex. The past few posts are about me helping out the GSM GNex users.
[Samsung Galaxy Nexus] TreyM:
LOL FAIL ME... I have to edit it again. rename the files in /sdcard/MIUI/kernel

they're named "test"

rename them to "boot"

Otherwise the script will fail
[Samsung Galaxy Nexus] Droid0351:
Why does the build prop still says v3.6.7 and not v3.6.14

Edit: Never Mind
[Samsung Galaxy Nexus] TreyM:
Failure on my part. That needs to be changed.

EDIT: Here's a fix
[Samsung Galaxy Nexus] gummie:
Oh so that's why. I checked your previous download link and it still has the same file. Can you upload it on next post? Thanks!
[Samsung Galaxy Nexus] TreyM:
LINK

did the zip place the kernel folder on your sdcard properly?

It should be here when using adb shell: /sdcard/MIUI/kernel
[Samsung Galaxy Nexus] kreep22:
I can't add nothing to miuiandroid/kernel folder. Did I miss something?
[Samsung Galaxy Nexus] TreyM:
I'm not sure what you're asking. If you're trying to flash a kernel, just place a downloaded kernel zip file in the /MIUIAndroid/kernel/ folder on the sdcard

and then open terminal and run:

su
flash_kernel

Make sure you flashed the custom kernel zip in the OP before running flash_kernel.
[Samsung Galaxy Nexus] gummie:
Yeah it placed in the correct directory, anyway for flashing the kernel do I also need to put kernel.zip on "/sdcard/MIUI/kernel" then on terminal su and flash_kernel?
[Samsung Galaxy Nexus] TreyM:
You got it. :)

Your location is /sdcard/MIUI/kernel (for the GSM nexus only guys. VZW GNex is /sdcard/MIUIAndroid/kernel)

I will probably change to that for my users next week and remove the MIUIAndroid folder on my rom.
[Samsung Galaxy Nexus] Droid0351:
I tried to place the kernel zip in the miuiandroid folder and I had no luck.
[Samsung Galaxy Nexus] TreyM:
does the folder exist on the sdcard?
[Samsung Galaxy Nexus] gummie:
I tried it but I got this results

/system/bin/flash_kernel[9]: unzip not found

FAIL FAIL FAIL

No boot.img found

No zImage found

Bad zip?
[Samsung Galaxy Nexus] TreyM:
FINAL MAGURO LINK

EDIT: link above should fix it. Same filename, but adds some symlinks to busybox.
[Samsung Galaxy Nexus] kreep22:
Will link work on torro?
[Samsung Galaxy Nexus] TreyM:
No. That stuff is already included in my toro port. But the directory to place the kernel zip into is different on toro. Info is in the OP.
[Samsung Galaxy Nexus] xzero425x:
The only thing so far with the new update is the color is back to being yellowish.
[Samsung Galaxy Nexus] TreyM:
open terminal and type:

su
sh /system/etc/init.d/00RUNFIRST

And tell me if that changes the screen color

Also in file manager, can you see the MIUIAndroid folder in the root of the sdcard?
[Samsung Galaxy Nexus] gummie:
Busybox installed and already tried the new ZIP now I came accross this new error

Archive: ./franco.Kernel-nightly-r382.zip

creating: META-INF/

unzip: can't create directory 'META-INF/': Permission denied

FAIL FAIL FAIL

No boot.img found

No zImage found

Bad zip?

Can you make script to add all the items on /sdcard/MIUIAndroid/ just like Toro users? It seems that I cant save anything on the /MIUI and I think that's the reason why the unzip is failing.
[Samsung Galaxy Nexus] xzero425x:
I think I found that file in my 0 folder
[Samsung Galaxy Nexus] TreyM:
MIUIAndroid Folder Fix for Maguro

Filename is the same.
[Samsung Galaxy Nexus] gummie:
I found the problem, it was in the folder that is created after flashing the kernel_fix_maguro.zip. The created /MIUIAndroid is in somewhat read only state. Its so strange because when you look at the folder on lets say Solid Explorer, it is R and W but when you put files on it, the file is not copied in the folder. So I did this steps

copied all files inside /MIUIAndroid to a new folder

reboot to recovery to delete the /MIUIAndroid folder

rename new folder to MIUIAndroid

copied the preferred Kernel.zip on the new /MIUIAndroid/kernel

and did flash_kernel on adb>shell>su

script ran with no problem
[Samsung Galaxy Nexus] allcity187:
Do I have to flash gapps, with this rom?
[Samsung Galaxy Nexus] Esteway.619:
No

Sent From My Miui Powered Galaxy Nexus
[Samsung Galaxy Nexus] TreyM:
So the custom kernel flashed ok for you? Excellent. :)
[Samsung Galaxy Nexus] gummie:
[YOUTUBE][/YOUTUBE]

Yeah, I used franco.Kernel r382 its just too bad I cant use franco.Ramdisk but it was just smooth experience compared to the stock one.
[Samsung Galaxy Nexus] cowsquad:
Back to miui
[Samsung Galaxy Nexus] TreyM:
Franco's ramdisk is not drastically different, in fact I'm not sure what causes it to go haywire on MIUI. I'm still looking into it. Hopefully China will fix this issue, and we will no longer need my workaround.
[Samsung Galaxy Nexus] justice_beaver:
I am new to the Gnex and MIUI and so far an loving it. Runs so nice and smooth and has great battery life so far. Thanks for all the hard work.
[Samsung Galaxy Nexus] SplicedX:
So, I'm unable to copy any kernels to the MIUIAndroid folder. In fact, I can't even delete the folder altogether. It seems to be write protected to some degree. Any ideas?
[Samsung Galaxy Nexus] calripkenturner:
Can't flash a kernel tried the hot fix in the op. Also tried modifying the script to use a different folder both times I'm getting access denied while trying to create the META-INF folder
[Samsung Galaxy Nexus] gummie:
You guys need is to just read posts back, I posted a workaround on that issue. It had also been quoted by Thread Owner.
[Samsung Galaxy Nexus] SplicedX:
so, how exactly did you delete the folder while in clockwork?
[Samsung Galaxy Nexus] calripkenturner:
Anybody who is having problems with the flash_kernel script. I believe I found the solution. I'd like to start by saying that I am not a dev I just experimented until I got it working. It seems that the permission problem is stemming from the script running through /sdcard/miuiandroid. I manually edited the script to changed this line to /data/media/0/miuiandroid/kernel as soon as I changed these links it worked perfectly for me. Don't do this if you aren't comfortable messing with the scripts. I'm not responsible for any damage you do to your phone. TreyM if you want me to remove this post I will. Also I wasn't able to move anything to the kernel folder from the default storage directory in root explorer I had to move out to the root and go into the data/media/0 folder to be able to move anything to that folder. Sorry if this confusing to any of you let me know I'll try to help you. TreyM pm me if you want this removed. Edit: forgot to mention that the script is located in /system/xbin
[Samsung Galaxy Nexus] TreyM:
Hey, good catch! I think I'm going to redo the whole script this week to be location independent.
[Samsung Galaxy Nexus] kemihansome:
Well, After Flashing Franks kernel....

My Gnex bootloop.

Anyone experience this??
[Samsung Galaxy Nexus] TreyM:
Did you use the flash_kernel script?
[Samsung Galaxy Nexus] calripkenturner:
Right on man glad I could help. Thanks for the Rom.

TreyM is updating the script file and it will be fixed in the next release until then he's given me permission to share my file with you guys. Copy the file to /system/xbin/ with root explorer and then run the script following the instructions he gave. https://www.dropbox.com/s/50782idlk2q0xo3/flash_kernel
[Samsung Galaxy Nexus] kemihansome:
Works wella imma MAGURO....

Thanks Much Calrip.
[Samsung Galaxy Nexus] Syfer_Fever:
why we can't use franco's ramdisk? if we flash directly .zip kernel from recovery why would be bootloop? is that because MIUI's ramdisk?

and what's the difference between franco's and miui's ramdisk?

thanks, anyway sucess to flash franco r382
[Samsung Galaxy Nexus] gummie:
It seems that there is a problems on the installation script or lies on issues MIUI using custom kernels. Other cpu frequency sticks using f.KU except max cpu, it keeps coming back to 1200GHz after I lock my phone. Others work just fine, Min CPU, Max Screen Off, Governor controls even I/O Controls sticks.
[Samsung Galaxy Nexus] TreyM:
Most likely an issue with the stock ramdisk.
[Samsung Galaxy Nexus] gummie:
Too bad, I like that boost using higher clocks. Even f.K stock clock is higher LOL.
[Samsung Galaxy Nexus] guachine:
So guys, no problem in flashing any 4.2.2 custom kernel using the kernel fix? cos I've flashed Franco r382 (kernel fix worked perfectly!!!) and I'm not happy at all with it, transitions are laggy, I'd like to test Lean or Fugumod those gave good performaces in Slim rom.

thanks!
[Samsung Galaxy Nexus] gummie:
What ever you flash, results are still as is. Those transitions were needed to be optimized on ROM side, also for Custom Kernels to have Full Effect they still need to fix that. Anyway, franco.Kernel is the most favorable for me as it really gives considerable performance boost.
[Samsung Galaxy Nexus] kemihansome:
Especially battery life.
[Samsung Galaxy Nexus] TreyM:
Everybody needs to understand that China released this rom way too early imo. It really is still in beta stage as far as I'm concerned.

Media scanner is broken.

Google location services are broken and require a fix on my end.

Kernels require the stock ramdisk to work.

These are issues that I'm trying my best to work around, but I can only do so much without the source code to MIUI. Honestly, the memory management in the rom needs a LOT of work. That's where the lag comes from.
[Samsung Galaxy Nexus] cowsquad:
How do I get the aosp browser to work with this ROM. Google chrome is laggy as a snail
[Samsung Galaxy Nexus] jbaskew:
Google voice

Good job again with this rom. Does anybody know how to get Google voice to ask when a call is placed? Or I'd be happy to have it place a call at all, whether it asks each time or not. Though I have it set to ask in GV's settings. I've been doing a lil googling and found this where they mention disabling third party applications (from what I understand). I've also tried setting the application to trusted in MIUI's permission app.
[Samsung Galaxy Nexus] allcity187:
Try maxthon browser, it's a lot faster than chrome.
[Samsung Galaxy Nexus] tattedupboy:
I've mostly got all my earlier issues with this ROM ironed out. Two that I can't seem to figure out though are the fact that answering calls using a Bluetooth headset causes Bluetooth share to crash at first (it usually reconnects within a few seconds though, and it only happens when I answer using the headset; if I answer from the phone, it doesn't happen). The other is with the Astrid task app; despite having it autostart under the MIUI permissions app and even making it a trusted app, my reminders are always 5 minutes late. Are these issues that you can recommend a fix for, or would these be source code related and, as a result, beyond your control?
[Samsung Galaxy Nexus] TreyM:
The issues that you've mentioned are most likely issues in the source code of the rom, sadly. Not much I can do about it my friend. But rest assured, China will most likely get the issues eventually fixed. They have users reporting bugs to them on the official forums. I wouldn't advise bothering with submitting bugs from toro. Since it's a port, they will likely ignore it. But I feel confident that my port is perfectly in line with maguro, meaning any bugs you come across, the maguro guys are seeing it too, and submitting bugs.
[Samsung Galaxy Nexus] TreyM:
This week's build is going to be postponed for a few days. I'm doing some audio production work on a short film and I'm in crunch time on that.
[Samsung Galaxy Nexus] Droid0351:
Porn video!! Lol
[Samsung Galaxy Nexus] Card83:
I sure have missed MIUI. I've run several iterations dating back to my original Droid. I figure I'll take this one a spin for a few days and see how I like it. Thanks!
[Samsung Galaxy Nexus] TreyM:
Depending on what site you got your OG Droid MIUI rom from, you were either running my old stuff or Magiman7's. :)
[Samsung Galaxy Nexus] Card83:
I was on DroidForums.net back in the day. I started toying with it back when there was still a fair amount of text in the original Chinese characters. Not sure if that was your release or not. I probably ran through various versions exclusively for over a year on that phone. It was by far the fastest ROM on my OGD. :good:
[Samsung Galaxy Nexus] TreyM:
I'm also working on something you might be interested in. I have removed all phone functionality from the Droid and created a media only MIUI rom for sholes. So that means sick battery life, since the radio isn't constantly looking for a cell tower.
[Samsung Galaxy Nexus] Mohawk3:
I'd be interested in that. I might get a little more use out of my droid that way.
[Samsung Galaxy Nexus] 21sirhc:
if only my droid was still alive these days :(

:rest in peace OG droid: lol
[Samsung Galaxy Nexus] calripkenturner:
Is there going to be a new update soon? 6.14 is running pretty well for me just getting that itch again. Dont want you to think im rushing or asking for an eta i appreciate everything man
[Samsung Galaxy Nexus] svtfmook:
Nice ROM, only a few issues keeping me from running it:

Very laggy and some yellow lights of death

No group messaging

None of my camera photos show up in either gallery apps

Waiting on updates to try another test run
[Samsung Galaxy Nexus] Esteway.619:
Get media scanner from the play store or run media scanner from trickster mod and that will fix your picture and music issue. This has been discuss a number of timesin this thread.

Sent From My Miui Powered Galaxy Nexus
[Samsung Galaxy Nexus] svtfmook:
honestly, i searched this thread for "pics" "gallery" and "photos" but didn't come up with much. i pretty much figured another media scanner would work to find what's there, but, i really don't want to have to run it whenever i add pics to my phone and is just an indication that there are other issues. i understand that this is a beta, so i'm not knocking the rom, it's great, i love miui and this is a great start.

plus, that's only one of the issues i was having and i'm looking forward to seeing this mature.
[Samsung Galaxy Nexus] TreyM:
Status update: Sorry for no new builds guys. I am super swamped with this film I'm working on. Hopefully I can have a new build next Monday.
[Samsung Galaxy Nexus] calripkenturner:
No worries take your time
[Samsung Galaxy Nexus] kreep22:
Does GPS and location work on this rom?
[Samsung Galaxy Nexus] calripkenturner:
Yes
[Samsung Galaxy Nexus] geomonroe:
Hey all. Don't know why, but after being on this ROM for about twenty four hours I lost mobile network connection, any ideas?
[Samsung Galaxy Nexus] TreyM:
New build coming later today.
[Samsung Galaxy Nexus] TreyM:
OP UPDATED

New release
[Samsung Galaxy Nexus] b.huss2:
Thanks Trey! I guess you got your hot project done?
[Samsung Galaxy Nexus] TreyM:
Yes, thank God... :)
[Samsung Galaxy Nexus] b.huss2:
For some reason play store says Google+ isn't compatible with my device. No other apps give me any problems. If anyone has a recent version an upload here would be appreciated. I did a clean install and everything seems to be running pretty smooth. A few sluggish moments but that seems typical for miui. I do prefer this browser over chrome. Much better experience.
[Samsung Galaxy Nexus] TreyM:
Hmmm... same here... that should not be happening at all...

Edit: Found this http://forums.androidcentral.com/ht...date-your-device-isnt-compatible-version.html

Looks like this may be happening again... dunno
[Samsung Galaxy Nexus] TreyM:
New Maps update (Version 7.0 from Play Store) crashes. Do not update.
[Samsung Galaxy Nexus] syphix:
I want to love MIUI, I really do. But it's stuff like this that makes me revert to CM10.1. ALL Google apps need to work properly for me to seriously consider MIUI as my daily ROM.
[Samsung Galaxy Nexus] DroidOnRoids:
Google Music doesn't want to update or show any of my music library. Tried troubleshooting to no success.
[Samsung Galaxy Nexus] TreyM:
Well, I'm not trying to be a prick, but... in that case, if you want to go flash CM10.1, bye... What good is your comment? The Google Maps update was released YESTERDAY... the same day as my release. This issue will most likely be fixed in the next release, and the 6.x version of Maps works fine.

Honestly, don't act like CM 10.1 is free of issues. If you want a magical, problem free rom, stick with bone stock. If you can't tell, comments like that really annoy me. Again, I'm not TRYING to sound mean, but come on...

Bottom line: if you don't want to use the rom because ONE Google Maps update has issues, that's fine. But don't start complaining on the thread and talk about how much "better" CM 10.1 is for you. It really makes me feel like I wasted my time porting this.
[Samsung Galaxy Nexus] TreyM:
Use the GMusicFS app for now to access your library through the MIUI Music player for now (or any other third party player.) It is installed with the rom and mounts your Google Music library on your phone for 3rd party apps to play songs. To change your library around, you may need to use a computer until this is sorted out.

EDIT: I just installed Google Play Music. It's working fine here. Try uninstalling it and installing it fresh.
[Samsung Galaxy Nexus] syphix:
I wasn't intending to diss your ROM. I appreciate your development of it, and you've brought it a long way. I sincerely apologize if my post came across as disrespectful or unappreciative. Please continue the hard work you do, as I'm still flashing each week's updates. I'm a flashaholic, so please don't take my comments as criticism: I'm not 100% happy on ANY ROM, as evidenced by my continued wiping & flashing.

Again, I apologize sincerely.
[Samsung Galaxy Nexus] TreyM:
I came off a bit harsh. All is well. You'll have to forgive me. I had just crawled out of bed when I wrote that post LOL.
[Samsung Galaxy Nexus] syphix:
No problem, Trey. Lessons learned on both sides of the argument. I will attempt to be more constructive in my future posts.

I'm back on MIUI, and settling in for a long haul. I simply love the look and feel of it over stock soooooo much. Thanks again for your work in bringing it to us!

(BTW, the new Google Maps isn't all that great anyway...the convoluted way of downloading maps (having to type "Ok Maps" into the search bar???) makes me think it's not quite as polished as it first appears.)
[Samsung Galaxy Nexus] pbgong:
Thanks for your work on the ROM. The weather app prompts that there is a new version available but when you go to upgrade it, it doesn't install properly. Some type of signature error. I'm assuming you made some modifications to the app.
[Samsung Galaxy Nexus] syphix:
Themes don't appear to be working on my Nexus. I just get a "failed to load preview".
[Samsung Galaxy Nexus] TreyM:
Yeah I did, but nothing major. I just removed "BZ" from the app name. If you wish to update it, uninstall "Weather" and look up WeatherBZ on the play store.

Hmm... Must be an issue with the rom this week. I'll look into it.
[Samsung Galaxy Nexus] TreyM:
It appears Google updated maps again and it's working ok now! :) Update away folks.
[Samsung Galaxy Nexus] syphix:
Somethings up with my install...my Google Play store keeps crashing, probably 1/3 of the time when entering the app.
[Samsung Galaxy Nexus] TreyM:
I am not having those issues. Try clearing play store data. Did you upgrade to my rom from say, esteway's?

You could also try clearing the "downloads app" data.