yashsingh1/xdaforums huggingface dataset:
[HTC Amaze 4G] mewzik86:
CM10 based Miui Port

Hey guys, I am sorta new to developing on android, but figured I would try my hand at it. I have been trying to port the latest CM10 based miui from the sensation to the amaze but I have run into a problem that has me stuck. Heres what I did so far:

1. Removed the system/apps, system/fonts, system/framework and system/media folders from the cm10 build for the amaze and replaced them with the same folders from the miui build for the sensation.

2. Merged the files in the system/lib folder from the sensation's miui with the same folder on the amaze's cm10.

3. Used diffuse to edit the build.prop and changed the lines I believed were relavent.

I then flashed this in recovery and successfully booted into the introduction screen (choose locale screen). However, when i chose the locale and select next, i get a 'com.android.provision' force close. Here is the logcat of the errors:

E/AndroidRuntime( 1461): FATAL EXCEPTION: main

E/AndroidRuntime( 1461): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.android.settings/com.android.settings.Settings$WifiSettingsActivity}; have you declared this activity in your AndroidManifest.xml?

E/AndroidRuntime( 1461):	at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1541)

E/AndroidRuntime( 1461):	at android.app.Instrumentation.execStartActivity(Instrumentation.java:1416)

E/AndroidRuntime( 1461):	at android.app.Activity.startActivityForResult(Activity.java:3367)

E/AndroidRuntime( 1461):	at android.app.Activity.startActivityForResult(Activity.java:3328)

E/AndroidRuntime( 1461):	at com.android.provision.DefaultActivity.gotoNextPage(DefaultActivity.java:127)

E/AndroidRuntime( 1461):	at com.android.provision.LanguagePicker$1.onClick(LanguagePicker.java:56)

E/AndroidRuntime( 1461):	at android.view.View.performClick(View.java:4113)

E/AndroidRuntime( 1461):	at android.view.View$PerformClick.run(View.java:17006)

E/AndroidRuntime( 1461):	at android.os.Handler.handleCallback(Handler.java:615)

E/AndroidRuntime( 1461):	at android.os.Handler.dispatchMessage(Handler.java:92)

E/AndroidRuntime( 1461):	at android.os.Looper.loop(Looper.java:137)

E/AndroidRuntime( 1461):	at android.app.ActivityThread.main(ActivityThread.java:4765)

E/AndroidRuntime( 1461):	at java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime( 1461):	at java.lang.reflect.Method.invoke(Method.java:511)

E/AndroidRuntime( 1461):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)

E/AndroidRuntime( 1461):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)

E/AndroidRuntime( 1461):	at dalvik.system.NativeStart.main(Native Method)

I know you guys are busy with other stuff, but any help would be great.

Give a man a fish and feed him for a day, teach a man to fish and feed him for life.
[HTC Amaze 4G] Notorious:
Take yellowpage.db from system/ect in the sensation build and Add it to your system/ect directory do the same for telocation.idf( if it has it)
[HTC Amaze 4G] mewzik86:
Thanx alot evo4gnoob, after inseting those files, I did make some progress. I also found the perfect guide:

http://xdaforums.com/showthread.php?t=1777999

After following the extra steps in the stage 1 part of the guide and doing some extra stuff for the new shell service that was added since the november builds of miui, I was able to boot into miui. The first propblem i came across was the storage was not being mounted in miui. This caused the file manager to crash as well as the settings app whenever I select the storage options. I used cm10 20121228 unofficial as my base and I did try flashing the massstorage fix, but this did not help. I did not do any more real testing because my only reason for porting this was to see if the miui camera is better than the one on CM10. To my dissapointment, they both have the same camera, so I am back to cm10 as my daily driver.
[HTC Amaze 4G] alobear:
any update? (:
[HTC Amaze 4G] ziggy46:
yea, i got it miui jb booting but miui home force closes so i cant do anything lol.
[HTC Amaze 4G] alobear:
damn! seems stubborn lol. Well hopefully it will someday work! :D
[HTC Amaze 4G] mewzik86:
When I ported mine based on sporty's 20121228 cm10 build and the JB miui from the sensation boards, I didnt get any home app force closes.. The only things that crashed were the apps that atempted to read the storage devices, eg. gallery, file explorer, storage settings etc.. Other than that, I could navigate the home screen. Maybe dacklam could take a look since i believe some modifications need to be done to get the sdcard to mount. (I think i need to port the storage_list.xml from framework_res.apk of cm10 into the miui).

I will try again and do a full test and report back.
[HTC Amaze 4G] mewzik86:
for ziggy and anyone else having trouble with home.apk force closing:

http://xdaforums.com/showpost.php?p=35317178&postcount=1673
[HTC Amaze 4G] ziggy46:
thankyou very much. i will work on that.
[HTC Amaze 4G] alobear:
did you guys just put in the shell service to stop the android.phone to start working?
[HTC Amaze 4G] mewzik86:
MIUI JB port.

Ported and tested the latest miui (11Jan13), using sporty's CM10 (28Dec12 build).

Reciving and making calls: working

Wifi: working

Data: not working - data connection comes on for a second then dissapears. This repeats constanly.

Bluetooth: working - bluetooth turned on and found devices. (no pairing was attempted)

Sound: woking - i used dcacklam's kernel (modifications made to init.rc in the ramdisk so that shelld would run on boot)

UMS: partially working - the internal storage was mounted but not the external SD card.

Camera: working - pictures work just as they would on CM10. video was recorded but failed to playback.

I havent tested anything else.

This is relatively simple to port, just need a working CM10 base, and jonah1234's JB miui from the sensation forums.

Also, follow the first post (stage 1) of this guide:

http://xdaforums.com/showthread.php?t=1777999

after that, see my post above for a link to fix the themes and home.apk force close (shelld service). you will need a base kernel for this fix. I suggest dcacklam's mk4 kernel for CM10.

Finally, you need to decompile the framework_res.apk from the CM10 base and take out the file:

/res/xml/storage_list.xml

then decompile the miui framework_res.apk and swap storage_list.xml with the one from the CM10 base and recompile the framework_res.apk.

(you need to do this correctly, i.e, you will have to extract the recompiled apk using winrar or something and swap the AndroidManifest.xml and the META-INF folder with the ones from the unmodified miui framework_res.apk. then recompress the apk as a zip, and rename it to .apk.

I dont have alot of time on my hands, so I cant maintain a ROM like this. I am really hoping the more exprienced developers can chip in to solve the minor bugs if they manage to find the time as well.

The amaze is a brilliant phone, I dont know why it seems to lack the support that the sensation has... :(

anyways.. thanks for all the hard work on the phone so far devs!!
[HTC Amaze 4G] ziggy46:
ive gotten mine done as well. im using the mk4 kernel in it. i will need someone to test data for me though. (i didnt pay my plan)
[HTC Amaze 4G] alobear:
i'll be happy to test!
[HTC Amaze 4G] ziggy46:
heres a teaser for ya' http://d-h.st/KAT

i will definatly have to work on it more though
[HTC Amaze 4G] scattaman:
Everything seems to work well except DATA. I also got constant force close from file explorer.
[HTC Amaze 4G] bry2872:
Awesome rom the just music player force closes so dose file explorer, also the browser some apps just randomly close when your using them
[HTC Amaze 4G] filthygoat223996:
There doesnt seem to be a playstore, and i cannot access recovery from the power menu
[HTC Amaze 4G] scattaman:
You have to flash a GAPPS package... just don't use the 4.2 ones
[HTC Amaze 4G] mewzik86:
here is my port.

http://d-h.st/oaV
[HTC Amaze 4G] jcjackjay:
Ooooohh cant wait to try this. So whats broken and whats working?
[HTC Amaze 4G] mewzik86:
a few posts up, i had a list of the stuff I tested and how they worked. but basically, data wasnt working and UMS was only working partially. I am fairly new to porting and developing on android so I will be awaiting a better, more complete port from ziggy. :)
[HTC Amaze 4G] zjjzh:
good
[HTC Amaze 4G] zjjzh:
I have ported from cm10 to miui3.1.18,data,wifi,bluetooth,wifiAP all working.
[HTC Amaze 4G] alobear:
@zjjzh do you have a place were we can download? (:
[HTC Amaze 4G] danyal241:
Hey guys how is this rom and anyone try it with s=on. I tried nightmare sense and it gave me bootloop. How is the battery on this and speed plus do games lag? Bullet proof worked but too many issues and not under development anymore....
[HTC Amaze 4G] danyal241:
Well couldnt wait so flashed it. Looks nice. Get a lot of fc msgs. Also its not rooted had to flash the super su package manually. Man miui is whole new beast have to look into how it works. It seems the screenshot doesn't seem to work. Will test it further and update you guys. Thanks for this rom though...
[HTC Amaze 4G] mrmcintosh:
Where is the download link??
[HTC Amaze 4G] danyal241:
where did you get the miui 3.1.18? I am o 2.6.29

---------- Post added at 01:51 PM ---------- Previous post was at 01:46 PM ----------

http://roms.miui.us/

I think this is the site but for which htc did you download it? as htc amaze 4g not listed there?
[HTC Amaze 4G] zjjzh:
MIUI3.1.18 on china miui website (www.miui.com)
[HTC Amaze 4G] danyal241:
So everything works and in english? Also is there a specific one I need

---------- Post added at 08:58 PM ---------- Previous post was at 08:42 PM ----------

I went to the UK site but amaze not listed are u using the sensation build?
[HTC Amaze 4G] marathone:
Good question, was wondering too.

HTC RUBY - Energized ICS Faux123 kernel - XDA APP Premium
[HTC Amaze 4G] _Le0.<3!:
I also make a MIUI rom in AOKP version,but maybe the developers do not admit our works.Because we don't have permission to use their works,I ask them,but they never reply my message.So,you know...
[HTC Amaze 4G] danyal241:
[QUOTE=_Le0.

I don't know what you mean. Where is the miui u made?
[HTC Amaze 4G] ziggy46:
Your English is better than most and its easily readable. Can you send me a bug list through pm and we can come up with the finishing touches

Sent from my epic amaze 4g
[HTC Amaze 4G] alobear:
@zjjzh miui version is working really nice, everything is working that works in cm10. i was getting a little bit of screen glitch here and there in the beginning but not anymore. i do get a black screen though sometimes and have to reboot. Everything else though seems to work right. Been using it as a daily rom for the last 2 days. battery life seems decent also.
[HTC Amaze 4G] dntipwn:
Can you post where you found it? I looked all over the Miui China site couldnt find it.
[HTC Amaze 4G] alobear:
ask @zjjzh. He is the one who has the rom. I dont know if he wants me sharing the link or not.
[HTC Amaze 4G] dntipwn:
Hey would you be able to share the link to your rom i could not find it on the site. Or pm me if you dont wanna post it please.
[HTC Amaze 4G] danyal241:
Why don't you guys want to share the links he already said its at www.miui.com its just that we can't locate the one for amaze 4g...
[HTC Amaze 4G] chevycowboyusa:
http://www.miui.us/content.php?

Don't know if this helps. It's in English
[HTC Amaze 4G] dntipwn:
No its doesnt but thanks for trying. Hes a xda china member so its most likely not gonna be on the us forums.
[HTC Amaze 4G] zjjzh:
ROM link and right button is download

http://pan.baidu.com/share/link?shareid=217069&uk=2936314362

Camera record patch,changed kernal,and sense 4.2 camera app

http://pan.baidu.com/share/link?shareid=217816&uk=2936314362

---------- Post added at 04:10 AM ---------- Previous post was at 03:50 AM ----------

here is rom detail link

http://bbs.xda.cn/thread-11266217-1-1.html
[HTC Amaze 4G] danyal241:
Just a quick question the Rom will have english right don't want to be stuck in Chinese
[HTC Amaze 4G] dntipwn:
I hope so its a deathly slow download. Mines been going for 30 mind and only 20mb out of 162 with 4hrs left haha
[HTC Amaze 4G] alobear:
yes it does have english. somethings might be in chinese.
[HTC Amaze 4G] _Le0.<3!:
this is AOKP version

http://pan.baidu.com/share/link?shareid=205990&uk=922809561
[HTC Amaze 4G] dntipwn:
Not that i dont appreciate your guys work but you should look at getting a goo.im account these download speed and crazy
[HTC Amaze 4G] danyal241:
I am downloading both will check and report back. Would love to help but a developer. Which is better guys any opnion? And Leo yours is in english right? Any known bugs?
[HTC Amaze 4G] _Le0.<3!:
Only bug I know is the camera will not focus while recording video.
[HTC Amaze 4G] danyal241:
[QUOTE=_Le0.

K downloading now. This is port made by you? I will test it and update u. I am s.on that won't make a diff will it?
[HTC Amaze 4G] danyal241:
[QUOTE=_Le0.

Studies are important. Take your time. If you can teach me a bit to develop I would live to help.
[HTC Amaze 4G] jaytee20:
I ran Leo's MIUI yesterday for a couple hours and it was pretty smooth. WiFi, and data worked. It did not have root and I could not get it using the su zip that has always worked for me.
[HTC Amaze 4G] laggo:
In miui root works different. You have to enable it in one of the apps.
[HTC Amaze 4G] danyal241:
Hmm well when I flashed the cm10 build miui I simply flashed su and it worked. Haven't been able to download Leo miui yet will do so soon....
[HTC Amaze 4G] scattaman:
Could someone post a mirror of the roms? the downloads keep failing for me.
[HTC Amaze 4G] danyal241:
It was hard for me to get the download also but now its finally done. I will try and upload to my dropbox account and give you the link that is if its oky with Leo.

My Opinion so far:

I haven't charged the phone fully but will update battery timings after the full charge.

It seems stable though after applying settings you do have to reboot for the changes to take effect. For example I chose english then enabled root permissions. It kept on asking me to allow and said something in Chinese until I rebooted it was asking to remember. Similarly I selected to force gpu rendering and whenever I opened a menu or app it started flickering a pink color over the white background had to do a reboot to fix that. I am going to keep using it as a daily driver for a few days even though I am not a big fan of miui I will keep it as its jb 4.1.2 and seems stable. Havent tried nfc, bluetooth or camera yet. Did switch on the camera and touch focus was working. Due to security situation in the country my cell phone networks are temporarily blocked so as soon as they are on I will check out the voice and data.

---------- Post added at 01:01 PM ---------- Previous post was at 12:59 PM ----------

Forgot to mention the phone seems to be running just fine. Its smooth

My settings were s=on, unlocked bootloader and rooted.

---------- Post added at 01:02 PM ---------- Previous post was at 01:01 PM ----------

Hey Leo also when you get time please make another thread for your miui so we can test and help you out and discuses that there and post that link here too ;)
[HTC Amaze 4G] _Le0.<3!:
If you can,please upload it in mirror or dropbox,my computer have no internet connection until weekend.If someone make the link,please send the link in PM message.Thanks

The Chinese when requesting root permission means "remember what I choice and never ask again"
[Samsung Galaxy Fit GT 5670] quiz_prince:
when i up my phone to 2.3.6 stcok rom. I have an error "big size partion". mibb download... I cannot back recovery screen or anything.

please help me if you know. sorry for my bad english.
[Samsung Galaxy Fit GT 5670] androsamace:
Just flash with proper odin & ops file with stock rom.

After adding ops file in odin it should say ur model no. On the top side of odin.
[Samsung Galaxy Fit GT 5670] a.cid:
Give us a screenshot of that error...
[HTC One X] xieon:
Hello,

I would like to buy unlocked HOX in USA. I visited wireless.amazon.com etc but i couldn't find a reliable HOX with tegra3. Any suggestions?
[HTC One X] ZeroRilix:
Try negrielectronics.com and expansys-usa.com

Sent from my HTC Vivid
[Samsung Infuse 4G] mook_:
Youtube video not playing and camcorder not recording.

GINGERBREAD.UCLB3

any ideas?:eek:
[Samsung Infuse 4G] mook_:
Hello - Anyone?
[Samsung Infuse 4G] mg2195:
Just plain stock uclb3? Have you flashed any kernels recently?

Patience...some people were sleeping like my self :P
[Samsung Infuse 4G] MattSoRaven:
Do you have the Twitter app installed? That used to kill video, but i assumed it was fixed because i haven't heard about it in awhile.
[Samsung Infuse 4G] mook_:
No Twitter - just stock....maybe i froze something i shouldn't have in titanium backup? used hiedamall to flash srock gb - then rooted. Camera locks up periodically to.
[Samsung Infuse 4G] mg2195:
So even when restored you still get camera lock ups? And that's with no modifications/freezing apps? When restored do YouTube videos atleast work again?
[Samsung Infuse 4G] mook_:
The only thing i did after restore was root - and yes i did freeze a couple apps.

Youtube no video shows - camcorder does not work - and camera app occassionally freezes.
[Samsung Infuse 4G] mg2195:
try unfreezing all apps, then rebooting...see if that helps, if it does can you list the apps you froze?
[Samsung Infuse 4G] mook_:
I'll try unfreezing all apps overnight - i have a feeling I'll be backing up and restoring again. I'll detail my findings tomorrow. Thx.
[Samsung Infuse 4G] mook_:
ok 1st i put.the hiedemal Uclb3. Then i flashed to a rooted version of the uclb3. i tried flashing to the uclb3 rooted version again. Same problem. Going to start over with a complete restore.
[Samsung Infuse 4G] qkster:
you are prolly running on the older infusion kernel that doesn't support video.

1. flash entropy's latest or zen's kernels to fix the video

2. use jscott's rooted uclb3 with the kernel included
[Samsung Infuse 4G] mook_:
Thanks...I'll give that a try.
[Samsung Infuse 4G] mook_:
I tried jscott's ublc3 - downloaded YouTube and that locked it up and made it start acting goofy. Trying zen's a16 now
[Samsung Infuse 4G] mook_:
that worked using the cwm-videolib-restore.zip

Thanks a lot!!! The youtube/camcorder not working was driving me nuts
[Samsung Infuse 4G] qkster:
thanks for trying. :good:
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] RobbiePhone:
I have a rooted skyrocket, with touch clockworkmod, and i was wondering. If i were to flash a rom onto my skyrocket, and i decided to return to stock, can i still flash it using cwm or must i use odin? I saw a thread earlier informing to use odin to get back to stock, but im just making sure its ok that i use cwm instead thanks. Sorry again, im a noob
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] whodisname:
Cwm will stay on your phone. Just use a rom thats rooted. (If it doesnt say its not then it surely is) all will be well.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] vincom:
go to link in my sig, go to downloads, read the alternate ways to get back to stock
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] whodisname:
Nope sorry. Ose odin first and install a rooted rom.
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Mike:
Vincom I must say that thread in your sig is really a one stop shop. Nice Work!

Sent from my Skyrocket i727 running Sky ICS

PS: If I was able to help you then hit thanks :)
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] mindmajick:
Too bad those of us on tapatalk or xda app will never see it lol

--

SGH-I727 using Tapatalk, running cm9. Trouble searching? http://xdaforums.com/showthread.php?t=1754490
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Mike:
Go to web view on the thread and its all accessible. Sure that may be too much to ask for some people to do but its all there if they want the information

Sent from my Skyrocket i727 running Sky ICS

PS: If I was able to help you then hit thanks :)
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] RobbiePhone:
A Rooted stock rom?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] vincom:
link to my sticky http://xdaforums.com/showthread.php?t=1652398
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Mike:
Yes stock rooted. This can be done in cwm and will save u time. You won't have to flash in Odin and take the time to flash cwm / reroot

Sent from my Skyrocket i727 running Sky ICS

PS: If I was able to help you then hit thanks :)
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] RobbiePhone:
Also. Is it ALWAYS ok for me to go from custom rom to custom rom to custom rom? And can someone reccomend some good ICS skyrocket roms?
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] vincom:
ty, (i used up my alotment of thanks button) ya it took me awhile, i was really tired of the same probs and queation users where having, how to odin, which cwm to use, how to root etc, so i got fed up of rewriting the same answers, made a post, i kept adding to it and the mod made it a sticky to replace the other outdated stickies

the rom i was referring to is {STOCK} {ICS} {UCLF6} {4.0.4} - CWM5 ZIP - DeOdexed - ZipAligned - 10-JUL-2012 , its not rooted but is cwm flashable

--------------------------------------------------------------------------------
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] RobbiePhone:
For a flashing noob i think ill use rom manager to do all of the flashing work for me for roms, since its simple I THINK o_o
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Mike:
Definitely. There were multiple threads that we both responded to earlier about rooting, returning to stock, etc and as u described I kept rewriting the same thing over again and finding links for people. You take care of it all right there! Good stuff for everyone in the community!

Sent from my Skyrocket i727 running Sky ICS

PS: If I was able to help you then hit thanks :)
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] vincom:
if the dev of the rom says its ok to use rom manager, fine, but if you are having problems w/said rom dont go trying to find solutions if your first problem was using rom manager, you just wont know if thats the cause or not.

cwm is your friend, its easy to use, and gives you the user the the power of android........yes i said it , i almost wrote the power of grey skull(heman quote)
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Mike:
U can use rom manager but problems are much more likely. I recommend doing any cwm activities from within cwm itself. I flashed for the first time 1 month ago and I fully understand where u are coming from. It may look intimidating but once u start it is quite simple

Sent from my Skyrocket i727 running Sky ICS

PS: If I was able to help you then hit thanks :)

For a one stop shop here is Vincom's thread http://xdaforums.com/showthread.php?t=1652398
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] RobbiePhone:
k, is there a cyanogenmod type rom that is close to pure ICS
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Mike:
Cm9 should give u the pure ics u desire. I have not used it so I'm not sure about stability battery life etc. If you look in Android development you can view the cm9 thread(s)

Sent from my Skyrocket i727 running Sky ICS

PS: If I was able to help you then hit thanks :)

For a one stop shop here is Vincom's thread http://xdaforums.com/showthread.php?t=1652398
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] RobbiePhone:
thank you for the help, i might just ****ing wait for a good Cyan9 haha ill also just assume its ok to flash from custom rom to custom rom, thank you^^
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] Mike:
Yes I like Sky ICS much better than stock. When I say stock though I refer to 2.3.6. I haven't use stock 4.0.4. And yes I love Sky ICS. I highly recommend it. The rom is very stable, smooth, good battery life and great dev (SeanZ)

Sent from my Skyrocket i727 running Sky ICS

PS: If I was able to help you then hit thanks :)

For a one stop shop here is Vincom's thread http://xdaforums.com/showthread.php?t=1652398
[AT&T Samsung Galaxy S II Skyrocket SGH-I727] RobbiePhone:
You sure did buddy :) "Handshake"