yashsingh1/xdaforums huggingface dataset:
[Android Software Development] nasty007:
we have working CM9, AOPK i have problem only on MIUI port and this is 4.0.3 version

on 4.0.4 i cannot get it to boot, i tried different base and 5 or 6 different ports
[Android Software Development] Lens_flare:
uhm, bootimg should be hardly modified to boot at least cm.. oO

what kernel do they use? I can't believe that it's stock..
[Android Software Development] Beastmode:
Updater-script is in ur meta-inf folder bro thats where u set ur perms

-sent from my POS i897

no camera, no power button but at least I got miui lol
[Android Software Development] medicjunKie:
So if MIUI is based on CM9, it'll be hard to get it to boot?
[Android Software Development] Lens_flare:
MIUI is now based on AOSP, but if you don't have a stock ics rom, it should be a problem to boot miu with stock gb kernel..
[Android Software Development] nasty007:
i think that is stock gb kernel because in ROM there is no boot.img

i got it to work on 4.0.3 but 4.0.4 just wont boot and i cannot get logcat when booting so im stuck
[Android Software Development] rawdaddymagraden:
so i am trying to port miui v4 to the my touch 4g slide and i followed all instructions and am using cm9 as base..... i followed all instructions to the T and i go to flash and am getting installation aborted after it opens and begins to intall update. I cannot get logcat to run in recovery so how can i go about figuring out what needs fixed? any help would be appreciated
[Android Software Development] medicjunKie:
Check your .zip
[Android Software Development] rawdaddymagraden:
ok sorry im an idiot i had forgotten to sign the zip (first time doing this)

so i got it to install but had to replace lib runtime lib with base lib as suggested if it is boot looping and now im stuck at miui boot image... i cant logcat because my phone is recognized as mtp???? never saw this before any suggestions?
[Android Software Development] dhk.-:
Try with ubuntu
[Android Software Development] lovejaychou2005:
I think it's time to update this tutorial.:D
[Android Software Development] russian392:
has anyone done this on lg thrive, because im kinda working on another project but i love miui.

and ya time to update totorial. just make a video it would be alot easier.

im basing this off of cm9, but i need to make it old bb, or get a kernel for new bb which i have, but is their a way just to make it old bb.

so has anyone confirmed this to work on any divice at all, please list devices that have worked.
[Android Software Development] medicjunKie:
I know that dhk has a working port.
[Android Software Development] digitalhigh:
MIUI-Shooter

So, I've been trying this method, the PatchROM, as well as a few of my own to build MIUICS for the Evo 3d.

However, it keeps killing while looking for fmReciever:

I/AudioHardwareMSM8660( 278): aic3254_config: sound effect (Playback_Speaker_Default) 1 0 0
D/AudioHardwareMSM8660( 278): No active path on, open on/off for power issue
D/AudioHardwareMSM8660( 278): enableDevice(2 1)
E/JNIHelp ( 277): Native registration unable to find class 'com/broadcom/bt/service/fm/FmReceiverService', aborting
F/libc ( 277): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1)
D/AudioHardwareMSM8660( 278): enableDevice(2 0)

Full pastebin here:

http://pastebin.com/YDx4QuCs

Any help would be greatly appreciated...I'm thinking this is about the only thing that's holding me back from getting MIUICS to the Shooter community.
[Android Software Development] medicjunKie:
In adb it shows that connection was forcibly lost by Host.

Any idea of what i can do?
[Android Software Development] Lens_flare:
That's it:

add it it.. uhm.. to framework.jar though, else, in services.jar, it will be just a stub of actual service that android_runtime could register..
[Android Software Development] rawdaddymagraden:
help :(

so i am attempting this with a sensation port to mt4gs and i am stuck at miui animation with the following logcat errors......

E/HTC Acoustic( 2382): get beats state failed -1

E/ACDB ( 2382): ACDB init open file failed

E/AudioPolicyManagerBase( 2382): Could not open support_receiver()

E/dalvikvm( 2405): ERROR: couldn't find native method

E/dalvikvm( 2405): Requested: Landroid/content/res/AssetManager;.splitThemePackage: (Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String; )I

E/JNIHelp ( 2405): RegisterNatives failed for 'android/content/res/AssetManager', aborting

any suggestion please?????????? i am also attaching the full logcat
[Android Software Development] dhk.-:
Are you porting from a cm9 with theme chooser?

Enviado desde mi LG-P500 usando Tapatalk 2
[Android Software Development] rawdaddymagraden:
\

ok so i have read through the thread (sorry) and realized my problem is the theme manager and saw someone posted a solution:

theme engine is now affected. So new miui will hung on boot with unresolved android/content/res/AssetManager.

Don't replace it! You should instead diff miui and cm smalis and add all missing and only missing methods to miui not deleting anything.

Then just add PackageRedirectionMap*.smali to android/content/res/ folder, and replace WifiNative.smali on android/net/wifi/ .

can someone please explain a little more i cannot find where this needs to be done and it is a little vague......... i have decompiled both cm9 systemui.apk and the miuisystemui.apk but no luck.... this is my first time doing this but i cannnot find where android/content/res/ is located am i missing something????????
[Android Software Development] dhk.-:
You don't need to change anything in apks... you need to decompile framework.jar....

Enviado desde mi LG-P500 usando Tapatalk 2
[Android Software Development] rawdaddymagraden:
Thank you very much that is not what I was doing I very much appreciate the insight...... I'm gonna try swaping those items out, recompile, and flash again hopefully that will do it....
[Android Software Development] hackerse7en:
i´m porting from normal cm9 to aokp, my logcat has the same error

E/dalvikvm( 1419): ERROR: couldn't find native method
E/dalvikvm( 1419): Requested: Landroid/content/res/AssetManager;.splitThemePackage:(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

E/JNIHelp ( 1419): RegisterNatives failed for 'android/content/res/AssetManager', aborting
F/libc ( 1419): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1)

i already decompile and recompile framework.jar, but where do i get the file ( PackageRedirectionMap*.smali) to replace ? i´m a bit confused.
[Android Software Development] dhk.-:
The file is in android/content/res

Enviado desde mi LG-P500 usando Tapatalk 2
[Android Software Development] hackerse7en:
so i need to decompile aokp framework, get that file, decompile cm9 framework put past that file in there and compile again?
[Android Software Development] dhk.-:
you need to decompile booth framework.jar and put the one of cm9 to your aokp port
[Android Software Development] rawdaddymagraden:
So when you decompiled the framework.jar files how did you transfer the missing methods... I'm wondering if I need to go line by line and compare or is there an easier less meticulous way of doing this?
[Android Software Development] alidsd:
You can use the free windows tool WinMerge. Its a nice tool . I use it a lot for comparing and merging differences.
[Android Software Development] rawdaddymagraden:
Thank you so much because I actually sat down for 2 hours last night manually comparing them and copying and pasting and recompiled and got the same error lol ill chalk it up to a learning experience
[Android Software Development] nasty007:
Im porting MIUI 4.0.4 on Droid 3

i tryed diferent base and diferent ports but i always hawe same problem.

it boots but i dont have MIUI Home, or theme and when i go to launcher settings in main settings i got settings FC

link to pastebin - http://pastebin.com/XzPvqc9c
[Android Software Development] dhk.-:
You need to copy miui-framework.XML to your port

Enviado desde mi LG-P500 usando Tapatalk 2
[Android Software Development] rawdaddymagraden:
when i am doing the changes to the framework.jar files and comparing them i am not looking at the framework-miui.jar file at all correct? just the framework.jar files......
[Android Software Development] alidsd:
Yes, its correct.

Sent from Hell using MIUI v4
[Android Software Development] edwardng:
Confused! Did the source of miui change?

Why i couldn't find telocation.db @ miui pyramid v2.5.11 from miuiandroid?

However, i found telocation.td @ miui.

Can anyone enlighten me?
[Android Software Development] rawdaddymagraden:
help

Microsoft Windows XP [Version 5.1.2600]

(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Owner>cd c:\apktool

C:\apktool>apktool b frameworkmiui.jar.out

I: Checking whether sources has changed...

I: Smaling...

Exception in thread "main" java.lang.NullPointerException

at org.jf.util.PathUtil.getRelativeFile(PathUtil.java:44)

at org.jf.smali.smaliFlexLexer.getSourceName(smaliFlexLexer.java:2922)

at org.antlr.runtime.CommonTokenStream.getSourceName(CommonTokenStream.j

ava:345)

at org.antlr.runtime.Parser.getSourceName(Parser.java:88)

at org.jf.smali.smaliParser.getErrorHeader(smaliParser.java:358)

at org.antlr.runtime.BaseRecognizer.displayRecognitionError(BaseRecogniz

er.java:192)

at org.antlr.runtime.BaseRecognizer.reportError(BaseRecognizer.java:186)

at org.antlr.runtime.BaseRecognizer.recoverFromMismatchedToken(BaseRecog

nizer.java:606)

at org.antlr.runtime.BaseRecognizer.match(BaseRecognizer.java:115)

at org.jf.smali.smaliParser.method(smaliParser.java:1614)

at org.jf.smali.smaliParser.smali_file(smaliParser.java:595)

at brut.androlib.mod.SmaliMod.assembleSmaliFile(SmaliMod.java:71)

at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:43)

at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)

at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:64)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:48)

at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)

at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)

at brut.androlib.Androlib.buildSources(Androlib.java:179)

at brut.androlib.Androlib.build(Androlib.java:170)

at brut.androlib.Androlib.build(Androlib.java:154)

at brut.apktool.Main.cmdBuild(Main.java:182)

at brut.apktool.Main.main(Main.java:67)

So i have decompiled both framework.jar files and compared the smali's of the assetmanager files and used winmerge to find the differences and then copy and paste the missing methods to the best of my ability ( which is not well being this is my first time doing any of this, my guess was spot the differences and cut and paste whereever there was available room or make room because all the lines are offset) and when i try to recompile i get the above errors... i have redone this at least ten times with the same error i have even tried using apktool 1.4.2 to decompile and 1.4.3 to recompile as i read somewhere and still no luck any suggestions?
[Android Software Development] Lens_flare:
uhm yes, I have faced that bug.. I think you should re-diff again from scratch, maybe you had a mistake somehow.
[Android Software Development] rawdaddymagraden:
I have re diff the smalis ten times maybe I'm doing it wrong... any pointers or a guide somewhere?
[Android Software Development] resac:
Help

i successfully ported MIUI.us_ace_v4_2.5.18_Eng_Deo_ZipA_Signed_blind to my x10 mini pro but the problem is on homescreen it giving error and telling force to close and if i install Trebuchet its working but in landscape.. and even phone.apk not installed and also camera ..

and also mic has not working..

please anyone provide solution

thank you..:confused:
[Android Software Development] Lens_flare:
frameworks-miui.xml seems missing.
[Android Software Development] resac:
where it will be??? is it in framework.jar?? or its in main zip file???
[Android Software Development] Lens_flare:
ah, sorry, my fault :D

it should be in main zip and should be located at etc/permissions.
[Android Software Development] nasty007:
got everything working except SD card mounting to PC, i tried editing storage_list.xlm, vold.fstab, changing USB smali files but still nothing
[Android Software Development] ster97:
Can this tuto work to port GS3 ROM from here: http://xdaforums.com/showthread.php?t=1662934

Or here: http://xdaforums.com/showthread.php?t=1668101

???

Envoyé depuis mon P990 avec tapatalk
[Android Software Development] Lens_flare:
all stock roms are commonly have hardly modified frameworks, but they are also based on aosp :P

so I think you should resolve an unbelieveable framework quiz using that tuto ;]
[Android Software Development] resac:
Thanks For Help

Thanks alot for the help.. and now everything is good accept MIC and screen rotation..

what will be the reason?? and here is small errors aof audio in logcat

Waiting for reply..

Thanks Alot..
[Android Software Development] medicjunKie:
Try replacing libandroid_runtime.so
[Android Software Development] Lens_flare:
hariprasadiit

that is it, replace Camera.smali on android/hardware folder in framework.jar.

and never see on deadbaad or other libc output, it is like java exception in c/c++ thrown while processing some statements in code(in this case - android_runtime code).

resac

about mic, hope it is audiomanager issue, but it should be diffed, not replaced, so be careful. logcat says that something changed mute flag to 1 so that your device just muted..
[Android Software Development] resac:
what about sensor.. home screen and some of modules show correctly.. and messages and all are landscape manner..

what would be the error????
[Android Software Development] Lens_flare:
seems your device have a hw keyboard..

so fix is in android.policy.jar,see desire z miui porting thread(sorry I forgot where it is)
[Android Software Development] dhk.-:
lens, do you know why mic in call dont work? works in apps but not in call.... maybe diff in audiomanager make it work?
[Android Software Development] thetrisatria:
@hariprasadiit try to replace these:
[Android Software Development] Lens_flare:
I have a versa situation: works in calls but not in apps.. it is definitely audiomanager issue.
[Android Software Development] hariprasadiit:
thanks for reply.

AndroidRuntime( 174): *** FATAL EXCEPTION IN SYSTEM PROCESS: main
AndroidRuntime( 174): java.lang.UnsatisfiedLinkError: Cannot load library: link_image[1936]: 88 could not load needed library 'libsystem_server.so' for 'libandroid_servers.so' (link_image[1936]: 88 could not load needed library 'libmediaplayerservice.so' for 'libsystem_server.so' (reloc_library[1285]: 88 cannot locate '_ZN7android11AudioSourceC1EiRKNS_2spINS_8MetaDataEEE'

why did the above exception happened ?
[Android Software Development] resac:
Allready i tried to replace that all libaudio*.* and result is BootLoop....

what to edit in it. as i didnt get sing error line in my logcat..
[Android Software Development] edwardng:
What is this? Delete telocation.td? why it is not .db? :confused:
[Android Software Development] hariprasadiit:
I couldn't find those files,i've checked with other MIUI roms also.Is that because of different stock libs from MIUI ?
[Android Software Development] paxChristos:
Actually, it's a java issue, hence why replacing smali files can fix it. (I'd it was c/c++ it'd be a lot harder
[Android Software Development] Lens_flare:
agree, but the deadbaad endpoint is a c/c++ pseudo-exception (stack trace or somewhat) so I'm begging to not copy that trace to improve readability :]

all necessary libaudio are there, issue is in framework, and exactly in framework.jar/android/media/Audiomanager.smali (at least I hope so).

please google it, it should be linked to desire z miuiv4 porting.

He was just made doublepost though :p

yes yes strange nexus... but telocation.td also works :d
[Android Software Development] Jeik:
what miui to use for mdpi porting?
[Android Software Development] Lens_flare:
it'd be better to start with nexus s official release.
[Android Software Development] manoranjan2050:
may i port it.for my galaxy y duos s6102......
[Android Software Development] resac:
Error

what are these error mean??

i tried to replace the lib file libmedia_jni.so but me getting same error.....:confused:
[Android Software Development] ster97:
a spica user has ported miui to galaxy spica from Xperia X8 rom

Envoyé depuis mon Transformer Prime TF201 avec Tapatalk
[Android Software Development] dhk.-:
I ported from nexus s to the optimus one without problem

Enviado desde mi LG-P500 usando Tapatalk 2
[Android Software Development] rukin5197:
Did you have to do any resizing?
[Android Software Development] dhk.-:
No... only port

Enviado desde mi LG-P500 usando Tapatalk 2
[Android Software Development] medicjunKie:
Can anybody help me?
[Android Software Development] rawdaddymagraden:
any suggestions?

i am porting from sensation to mt4gs and i have modded framework ( thanks cm for including theme manager :) ) but still am stuck at miui screen... any help is appreciated... (the logcat titled miui is before mods and the modded one is after framework mods)
[Android Software Development] Lens_flare:
ít's not errors, it's common ;]

for some reasons, it's easier to type LOGE (java/C micro to print E\[message] in log) instead LOGI (same but I\)

if you have a boot loop, its causer is higher or lower.

medicjunKie

check out something around services and audioflinger, seems library or somewhat there is wrong.

rawdaddymagraden

pmd with aswer.
[Android Software Development] medicjunKie:
It booted.

I'm getting kernel panicks, that's keeping me from exploring the rom.

Any ideas on the panicks?
[Android Software Development] rukin5197:
Wow thanks! This way I can port straight from the source and just cut out the middle man! :D
[Android Software Development] resac:
Thanks Alot Lens_flare

Finally ported Miui to my Device accept 2 errors

1. soft keyboard. i.e if i open hardware keyboard then only i get the onscreen keyboard.. yet i wont..

2. big problem i.e Mic..

and one told me to get logcat by ddms and here is the log -->

Thanks And waiting for positive answer from you..
[Android Software Development] Kaze105:
Followed Insructions completely. After installation and reboot, its stuck on the phone logo (SGSII).

Pastebin: http://pastebin.com/1gPWqZ5S

It just repeats the bottom 5 lines endlessly.
[Android Software Development] hariprasadiit:
D/AndroidRuntime( 121): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<

D/AndroidRuntime( 121): CheckJNI is OFF

D/dalvikvm( 121): DexOpt: incorrect opt magic number (0xff ff ff ff)

D/dalvikvm( 121): ODEX file is stale or bad; removing and retrying (/data/dalvik-cache/system@framework@core.jar@classes.dex)

D/dalvikvm( 121): DexOpt: --- BEGIN 'core.jar' (bootstrap=1) ---

I/ ( 87): ServiceManager: 0xf958

I/AudioFlinger( 87): Loaded primary audio interface from Sunxi audio HW HAL (audio)

I/AudioFlinger( 87): Using 'Sunxi audio HW HAL' (audio.primary) as the primary audio interface

I/CameraService( 87): CameraService started (pid=87)

D/CameraHardware( 87): zoom_ratios: 100,106,113,120,126,133,140,146,153,160,166,173,180,186,193,200,206,213,220,226,233,240,246,253,260,266,273,280,286,293,300

I/AudioFlinger( 87): AudioFlinger's thread 0x1dfc0 ready to run

W/AudioFlinger( 87): Thread AudioOut_1 cannot connect to the power manager service

I/AudioPolicyService( 87): Loaded audio policy from LEGACY Audio Policy HAL (audio_policy)

D/dalvikvm( 122): Ignoring duplicate verify attempt on Ljava/lang/Object;

D/dalvikvm( 122): Ignoring duplicate verify attempt on Ljava/lang/ref/ReferenceQueue;

D/dalvikvm( 122): Ignoring duplicate verify attempt on Ljava/lang/Class;

D/dalvikvm( 122): Ignoring duplicate verify attempt on Ljava/lang/ref/Reference;

D/dalvikvm( 122): Ignoring duplicate verify attempt on Ljava/lang/ref/FinalizerReference;

D/dalvikvm( 122): DexOpt: load 83ms, verify+opt 1049ms

D/dalvikvm( 121): DexOpt: --- END 'core.jar' (success) ---

D/dalvikvm( 121): DEX prep '/system/framework/core.jar': unzip in 107ms, rewrite 1500ms

D/dalvikvm( 121): DexOpt: --- BEGIN 'core-junit.jar' (bootstrap=1) ---

D/dalvikvm( 127): DexOpt: load 4ms, verify+opt 8ms

D/dalvikvm( 121): DexOpt: --- END 'core-junit.jar' (success) ---

D/dalvikvm( 121): DEX prep '/system/framework/core-junit.jar': unzip in 0ms, rewrite 38ms

D/dalvikvm( 121): DexOpt: --- BEGIN 'bouncycastle.jar' (bootstrap=1) ---

D/dalvikvm( 128): DexOpt: load 25ms, verify+opt 352ms

D/dalvikvm( 121): DexOpt: --- END 'bouncycastle.jar' (success) ---

D/dalvikvm( 121): DEX prep '/system/framework/bouncycastle.jar': unzip in 35ms, rewrite 467ms

D/dalvikvm( 121): DexOpt: --- BEGIN 'ext.jar' (bootstrap=1) ---

D/dalvikvm( 129): DexOpt: load 46ms, verify+opt 660ms

D/dalvikvm( 121): DexOpt: --- END 'ext.jar' (success) ---

D/dalvikvm( 121): DEX prep '/system/framework/ext.jar': unzip in 52ms, rewrite 851ms

I/SurfaceFlinger( 130): SurfaceFlinger is starting

I/SurfaceFlinger( 130): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...

E/gralloc ( 130): UMP open failed

E/FramebufferNativeWindow( 130): couldn't open framebuffer HAL (Operation not permitted)

E/gralloc ( 130): UMP open failed

E/FramebufferNativeWindow( 130): couldn't open gralloc HAL (Operation not permitted)

E/SurfaceFlinger( 130): Display subsystem failed to initialize. check logs. exiting...

D/AndroidRuntime( 133):

somebody help with this plzz :confused:

thanks
[Android Software Development] Lens_flare:
odexed rom? oO

insufficient permissions.. seems like it's caused by first error, or at least you don't have that "UMp"
[Android Software Development] hariprasadiit:
i've the ump file, and i've set up permissions for /system/vendor/modules where ump file is there.i dont understand what causing that permission error.

set_perm_recursive(0, 2000, 0755, "/system/vendor/modules"); is there something wrong in this line?

ps: rom is deodexed ,dont know why it is showing that
[Android Software Development] Lens_flare:
maybe aosp(so miui too) is not supporting vendor/modules path and this module should be sent to lib/modules?

at least you could symlink it in updater-script:

symlink("/system/vendor/modules/ump.ko", "/system/lib/modules/ump.ko" );

where ump.ko is your module name (I don't know exactly, so place your own name here)

what about insufficient space in cache?
[Android Software Development] medicjunKie:
http://dl.dropbox.com/u/67954022/logcat.txt

Logcat from kernel panics.

Any guesses of what should i do?
[Android Software Development] Lens_flare:
hey, your logs are full of kgsl(to be exact-adreno 200) errors!

do you have a proper cm/aosp with full hwa? seems like base rom issues.
[Android Software Development] medicjunKie:
What do you mean?
[Android Software Development] Lens_flare:
hwa=hardware acceleration. It contains kernel part-kgsl and system part-binder, gralloc and gralloc-dependent modules like tilerenderer + of course adreno drivers in lib/hw. so to use ics there should be all working parts of that.

so check them out ;p
[Android Software Development] medicjunKie:
Ok yeah, I'll check that out.
[Android Software Development] Jeik:
I tried porting and stuck at miui logo
[Android Software Development] Jeik:
I inserted the listed things even the base rom didn't have them.is it because of that?should I search for another base rom?I have 3 left in my sleeve.
[Android Software Development] medicjunKie:
Logcat?
[Android Software Development] Jeik:
What?sorry,I am just a noob starter :/
[Android Software Development] Lens_flare:
Ok guys, another bad news: now services.jar should be also patched.. but nothing actually hard:

just replace all /InputManager*.smali

at com/android/server/wm

damn AOSP base -__-

log-cat please..

adb logcat >file.txt

->

google it.
[Android Software Development] Jeik:
No just a big,fat MIUI logo
[Android Software Development] Jeik:
Logcat is something like info of phone reactions?
[Android Software Development] Jeik:
Idea:I'll just use minicm9 and miui 4 for x8(both created by dif people).that should work :3 or icscreamdx
[Android Software Development] Lens_flare:
yup, just log.. it contains very useful info and it's easy to see ;] please google adb for more info
[Android Software Development] doncortio:
Where can i find MIUI v4 files?