yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Lens_flare:
ẁeird log.. ok, as exception raised here:

com.android.server.wm.WindowManagerService$PolicyT hread.run

try to find that resource id on it and replace with something that is really exists(something small for example) at last you might pass that error.. and then.. then you will see somewhere a strange little object that you specified as resource :D or maybe if it is a string, you will see wrong string..

btw, it could refuse your resource id coz of wrong type, then if you used a graphic resource, use string and vice versa.

it was said that doesn't work..

but as you need:

My guess is to add all methods from cm or somewhat you use to miui one. Replacing will cause the deadly error chain that won't resolve.

Use any difference watcher tool to see what's missing and just add'em.

btw: sync audiomanager trees on miui with cm(by adding missing smalis), there should be missing class part like Audiomanager$2.smali.

reason of why I doubt that AudioManager work is that it is a high-level libaudio, that as we knoow varies per device.
[Android Software Development] resac:
Same Error

Everything good. my charging and debugging lights are started but i dont get home screen.

Help me out.

And Main Mic .. Plz...:confused:
[Android Software Development] Lens_flare:
do you have miui-framework.xml in etc/permissions?
[Android Software Development] resac:
yes its there....

Here is the full logcat -->LogCat
[Android Software Development] Lens_flare:
strange one, your system bypassed unknown resource after 4 fails..

ok about homescreen, try to replace paint.smali(only that! no need to replace a subsequent tree)

mostly it was related to status bar'but yours shows exception too..

Package com.tmobile.themechooser has no signatures that match those in shared user android.uid.system; ignoring!

WHAT? What cm theme manager is doing here? :D
[Android Software Development] dhk.-:
in my port im getting a black bar instead of the date in the status bar :/ why?

added pic
[Android Software Development] resac:
That was my problem... i kept themechooser.apk there. and now everything going good but yet i didnt get homescreen.

and wat dhk. getting error same errors are there in mine.. might be problem with inputmanager tree.. as u said previously to replace inputmanger to get soft keyboard i did that..

waiting....

Here is new logcat --> New Log
[Android Software Development] ToLive2010:
Great manual! But a bit outdated on latest miui :)

I have a well working Nook Color 2.5.25 version. But I have two troubles:

1) I can't get native miui superuser app (lbesec_miui) to work. The only way to get superuser permission for me is to add a SuperUser.apk to /system/app. But it is not the Jedi way.

In android terminal app, on my command "su" I've get a "Permission denied".

I've tried different ways to solve this problem

a) Fix Permission in recovery

b) "chmod 777 /system/bin/su" and "chmod 777 /system/xbin/su"

but nothing :(

2) Screen rotation is corrupted. When I rotate the screen for 90 degrees it hangs for a second in a strange way (picture rotate for 180 degrees and deform) and then rotate correctly. No a critical bug, but annoying.

Please, help me :) Thanks in advance
[Android Software Development] Lens_flare:
there should be 2 parts for its work:

1) system/lib/liblbesec.so

2) system/xbin/su

both from miui.

maybe some framework code works incorrectly.. check your log..
[Android Software Development] ToLive2010:
Don't know about 2) will try it. Many thanks!

Rotation animation is in framework-res.apk?
[Android Software Development] Lens_flare:
nope.

it is in framework.jar and maybe other jars.

so it's a code that need modification..
[Android Software Development] ToLive2010:
Thanks again, your root advice work like a charm, all I need was miui su binary!

Now I will try to fix rotation and some other minor staff.
[Android Software Development] ---UFO---:
Please, does anyone know how to change MIUI picture in Settings -> About phone ?

Thanks
[Android Software Development] TheFrankenstain:
Settings.apk/res/draweble-hdpi/miui_logo.9.png
[Android Software Development] ---UFO---:
Thanks
[Android Software Development] pjgowtham:
Guys i was trying to port xperia to defy from arc..But i get bootloop all d time..I ve replaced the app and framework folder from the port to the baase rom and i ve also checked the build.prop..it seems fine

I would like to tell that defy has a locked bootloader..Is it the kernel which is making the mess?

And ive attached the log too...Please help me!!!

View attachment 1101219
[Android Software Development] thetrisatria:
ARC-S' MIUI has specific framework, it would works well in xperia devices (arc, neo, ray).

my suggestion, you should port from Nexus S' MIUI. That will give you less problem.
[Android Software Development] pjgowtham:
I amnt talking about miui..its the original Xperia UI

And I ve just now started miui port

Sorry for the off topic ..I had no other go..

Any ideas on the original Xperia port?...pl check the attached log too
[Android Software Development] resac:
what these errorr?? i replaced this with base rom but yet i get the errors..
[Android Software Development] Lens_flare:
InputManager.smali tree at services.jar' com/android/server/wm/ should be changed and it is the only way to make that error gone ;/
[Android Software Development] pjgowtham:
4017203b /system/lib/libandroid_runtime.so I/DEBUG ( 2394): debuggerd committing suicide to free the zombie! I/ServiceManager( 2156): service 'media.audio_flinger' died I/ServiceManager( 2156): service 'media.player' died I/ServiceManager( 2156): service 'media.camera' died I/ServiceManager( 2156): service 'media.audio_policy' died

Please help me with this...

Sent from my MB526 using

Tapatalk 2
[Android Software Development] Lens_flare:
it's not error you are looking for help, guess it's somewhere earlier..
[Android Software Development] resac:
even after i change still me getting error.. wat else the reason for it????
[Android Software Development] Lens_flare:
please list all smalis you have changed on both framework.jar and services.jar

and full logcat could be also useful.
[Android Software Development] mondaza:
:( I have "installation aborted" always

edit: now my first instalation, i dont know if will work
[Android Software Development] Lens_flare:
Hey guys, do you remember the error with recorder?

I'm about that one:

I have resolved it :d

When I tried to do that by myself I have investigated what are these lines do, I ended up with that interesting part of code:

if (index == -1) {
LOGE("The given video encoder %d is not found", codec);
return -1;
}

as it shows 3 as encoder, I went to code at the beginning to find what codec is third:

const MediaProfiles::NameToTagMap MediaProfiles::sAudioEncoderNameMap[] = {
{"amrnb", AUDIO_ENCODER_AMR_NB},
{"amrwb", AUDIO_ENCODER_AMR_WB},
{"aac", AUDIO_ENCODER_AAC},
};

so third is aac! I have also found a approval:

#ifdef QCOM_HARDWARE
profiles->mAudioEncoders.add(createDefaultAacEncoderCap());
#endif

that's why it requires "QCOM_HARDWARE" option in SystemProperties first.

So I have added that lines to Media_profiles.xml:

<AudioEncoderCap name="aac" enabled="true"
minBitRate="5525" maxBitRate="156000"
minSampleRate="8000" maxSampleRate="44100"
minChannels="1" maxChannels="2" />

Actually I copied amrnb defines and replaced to match log strings:

AudioEncoderCap name="aac"

maxBitRate="156000"

maxSampleRate="44100"

maxChannels="2"

It works like a charm! Aac codec much improves sound quality.

And I have experienced new smali unresolved method:

WebViewCore.smali, it is located at: android/webkit/, framework.jar , replace all tree as usual

Check your update-script and uncheck signature verifying :p
[Android Software Development] resac:
i replaced --> paint.smali, power.smali,bluetootha2dpaudio.smali, wifinaive.smali,assetmanager.smali, all from framework.jar

and i service.jar -- >inputmanager.smali, and one i copied is inputmangerservice$3.smali

hope this will help u out..

and full logcat is -- > Logcat

but i m not able to get homescreen yet. but working lights and all..

his is error which cant remove.. plz help me out..
[Android Software Development] dhk.-:
some time ago i read that i can port from a old version of miui to a new version only changing some folders.... but i dont remember wich.... can somebody help me?
[Android Software Development] resac:
@dhk. -> u realeased an fix for mic. how u did that and what changes u did? i send pm to u but i didnt get any reply. hope u have time to reply this..:)
[Android Software Development] Lens_flare:
wrong replacement.

I/dalvikvm( 1629): Could not find method com.android.server.wm.InputManager.access$400, referenced from method com.android.server.wm.InputManager$Callbacks.checkInjectEventsPermission

and that's seems a causer. try to only add methods instead of replacing.

just use old base on new miui as porting guide stands

he? oO

how about guide above?
[Android Software Development] resac:
as u told i solved the input manager error but now hw to resolve this brother.. and yet i m not getting homescreen.
[Android Software Development] dhk.-:
why?
[Android Software Development] Lens_flare:
make a log again. Maybe you have sony jars as requested in prev. log and also thememanager.apk from cm9.

not seeing something weird, what's up?
[Android Software Development] dhk.-:
no mic in calls :S and i get that with macro focus
[Android Software Development] ToLive2010:
My Nook color MIUI 2.6.1 ICS port http://xdaforums.com/showthread.php?t=1689745

Thank you, proxuser and Lens_flare!

But I still have some bugs, will try so solve them by myself
[Android Software Development] dhk.-:
and that when i open browser

---------- Post added at 02:13 AM ---------- Previous post was at 02:12 AM ----------

maybe i need to merge smalis and copy methods instead of replace?
[Android Software Development] resac:
yet these errors are there.. will u give solution for his. and no sony jars are there now.. i deleted app folder and paste from miui base rom..
[Android Software Development] dhk.-:
Now I know how to fix it :d
[Android Software Development] resac:
then please share it so that my last port is complete and can use daily..
[Android Software Development] dhk.-:
decompile Phone.apk and under res/values/bools.xml change send_mic_mute_to_AudioManager to true.
[Android Software Development] resac:
dhk. one small help.. i m trying to decompile the apk but getting hell like errors.. will u please tell me which apktool u using. and here is the my apk --->My apk:)
[Android Software Development] dhk.-:
Search in Google.... "Connor apktool 1.4.5" and look for the one that begin with www.Connor...... that is the apktool that I'm using
[Android Software Development] Lens_flare:
dhk.-

E/AndroidRuntime( 2010): FATAL EXCEPTION: main
E/AndroidRuntime( 2010): java.lang.NoSuchMethodError: android.hardware.Camera.access$800

E/AndroidRuntime( 2122): FATAL EXCEPTION: WebViewCoreThread
E/AndroidRuntime( 2122): java.lang.NoSuchMethodError: android.webkit.WebViewCore.access$500

In both cases you have "no such method" exception. Haven't you replaced WHOLE tree of these:

android/hardware/Camera

android.webkit.WebViewCore

?

seems you should or revert these ones to miui with only adding missing methods, or replace whole tree so that it won't ask for not present methods
[Android Software Development] falqon:
nice share bro :)

i have one question, how about to porting MIUI gingerbread to my device, samsung galxy w. is it the same way, or there is another way :D

thanks in advance bro :D
[Android Software Development] Lens_flare:
"

that guide is intended to be used with miui v4 and cm/aosp/aokp base.

At last you could try (the difference is that you won't find for example liblbesec.so ). Is it working? - At your own risk.
[Android Software Development] falqon:
thanks for your advice bro, i'll try the best i can do, i'm afraid i will brick my phone :D
[Android Software Development] resac:
@dhk. -> if i eddit phone apk network wont come.. gives fatal exception:Main

what was the reason??

@Lens_flare --> how to make soft key enable as my device has keyboard if i wont slide i wont get soft keyboard on screen..
[Android Software Development] janeindiran:
Which device's MIUI V4 ROM suits for DEFY???
[Android Software Development] Lens_flare:
It has to be done in inputmanager.smali tree at services.jar, try to replace whole/add missing methods.

nexus s-most universal base, droid 3 - most efficient base.
[Android Software Development] pjgowtham:
Look at the defy android development miui thread by sesme
[Android Software Development] resac:
i done that but yet its not working
[Android Software Development] Lens_flare:
what can I say... investigate logs at moment where sw keyboard should appear
[Android Software Development] resac:
for input and softkey log i m getting

and total errors are

what the solution brother???
[Android Software Development] Lens_flare:
resac

strange logs, couldn't say it even has any problem. Except that line:`

A/libc(2903): Fatal signal 4 (SIGILL) at 0x000086b0 (code=1)

should see a full log to see lines before an obvious result.
[Android Software Development] resac:
these are the standby errors means whenever u connect phone and start ddms it shows these errors.. and yet i cant rectify soft keyboard and even on verticly the soft keyboard size big ..

:confused::confused::confused:
[Android Software Development] Lens_flare:
resac

what can I say.. it's buggy enough :d

first of all, gralloc out of memory error (pmem size exceed)

then, outofresource exception, which is caused by previous memory error (at last I think so, you could replace android/view/surface to get a clue). Sounds like your kerne l is not ideal and needs some fixes coz I doubt it's a framework part error.
[Android Software Development] resac:
dhk. --> in your port 2.6.1 mic working. how did it? which u said is not working in my case wats the problem??? :(
[Android Software Development] dhk.-:
did you follow fine the instrcuccion... i get reports that is working fine :D
[Android Software Development] fundoozzz:
thats because phone.apk is a system app. when u recompile it, the signatures get mismatched..

For this decompile and recompile it using apk manager as system app.. but read carefully what the apk manager says in the process..
[Android Software Development] resac:
i didnt understand.. will u tell how to do it??:confused:
[Android Software Development] morgs640:
Porting miui 2.3 to cm7

Would this work if i want to make a cm7 based miui with the miui apps? by using miui 2.4.20 porting to cm 7.1
[Android Software Development] florelui001p:
Hi guys,

What device would you recommend me to copy the items from for an LG Nitro (p930)?
[Android Software Development] thetrisatria:
Nexus S
[Android Software Development] florelui001p:
Ok, ill give it a shot! Another quick question, what if the miui rom for the nexus s doesnt have the telelocation.db only telelocation.td?
[Android Software Development] medicjunKie:
You should look if it has it first lol
[Android Software Development] fundoozzz:
I just meant use apk manager instead of apktool for the process and when asked in it while compiling that is it a system app, select yes and follow the instructions
[Android Software Development] dhk.-:
i didnt do it... only flash the new apk after he first bot work too.... but now i know why dont boot when i replace it at first xD
[Android Software Development] thetrisatria:
both telocation.db and telocation.td work cuz they're the same.
[Android Software Development] 181charan:
BOOTLOOP! :(

Hey i tried porting MIUIv4 to my Wildfire S from an galaxy ACE port but keep getting stuck at boot loop... Have a logcat here... Hope you can tell me whats going wrong? :)

LOGcat
[Android Software Development] Lens_flare:
E/dalvikvm( 1163): Requested: Landroid/content/res/AssetManager;.splitThemePackage:(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)I

then go0ogle google and google bro, it is there around some pages ago.
[Android Software Development] pjgowtham:
but i dont understand the meaning of it..can you clear me lens_flare

Sorry I'm still learning...i mean the meaning of the error
[Android Software Development] Lens_flare:
Assetmanager.smali is at framework.jar/smali/android/content/res get them from 2 bases, diff and add methods to miui one.

please use search on this thread for more information.
[Android Software Development] florelui001p:
Hi,

I've been editing smali files which the logcats have shown me were having issues. In this specific attempt I get a bunch of exception errors which im not sure about. Hopefully one of you could help me out thanks!
[Android Software Development] Lens_flare:
florelui001p

W/dalvikvm( 530): Exception Ljava/lang/NoSuchMethodError; thrown while initiali
zing Ljava/lang/NoSuchFieldError;
E/dalvikvm( 530): ERROR: unable to initialize exception class 'Ljava/lang/NoSuc
hFieldError;'

what the hell are you doing on java.lang? :D

you even killed one of exceptions..

and that one is common:

E/dalvikvm( 530): ERROR: couldn't find native method
E/dalvikvm( 530): Requested: Landroid/server/BluetoothA2dpService;.sendMetaData
Native:(Ljava/lang/String;)Z
E/JNIHelp ( 530): RegisterNatives failed for 'android/server/BluetoothA2dpServi
ce', aborting

replace what it want - BluetoothA2dpService.smali..

ps:

W/dalvikvm( 530): VFY: unable to find class referenced in signature (Landroid/c
ontent/res/PackageRedirectionMap;)

place it to miui framework too.

pps: time to compile a FAQ -__-
[Android Software Development] florelui001p:
Thanks! I figured out the Bluetooth after posting my logcat I don't know how I changed java.lang all I've done so far are smali fixes
[Android Software Development] 181charan:
Okay till now managed to search for words like failed n aborted n stuff in the logcat n replaced smalis n solved them.... Now there are like LOADS n LOADS of fails n none aborted(:))!

N now have no clue what the problem is and as to how to fix it... It still boot loops suddenly the screen flickers slightly n boot loops again!! :(

Please help!! :)

LOGCAT
[Android Software Development] resac:
Error!!!!

Hello Lens_flare.. again same error.. please do something and help to solve that error. here is the logcat --->LogCat
[Android Software Development] Lens_flare:
E/AndroidRuntime( 916): *** FATAL EXCEPTION IN SYSTEM PROCESS: WindowManagerPolicy
E/AndroidRuntime( 916): android.content.res.Resources$NotFoundException: Resource ID #0x3060008

it's common and seems treats with adding thememanager.apk from cm.

E/msm7x27.hwcomposer( 1372): overlay::initOverlay() ERROR!!

forgot something? ;]

W/PackageManager( 1617): Library not found: /system/framework/SemcSmfmf.jar

again semc libs??

please return these damn libs to their places! maybe errors would disappear..
[Android Software Development] 181charan:
I tried replacing thememanager.apk but still the same error!! :(

LOGCAT
[Android Software Development] resac:
even replace thememanager.apk it wont get solve....

[/QUOTE]

thios what i get when decompiled the framework-miui-res.apk --> <public type="array" name="android_config_longPressVibePattern" id="0x03060008" />

and error is

W/ResourceType( 1531): No known package when getting value for resource number 0x03060008

W/dalvikvm( 1531): threadid=24: thread exiting with uncaught exception (group=0x40a52210)

I/Process ( 1531): Sending signal. PID: 1531 SIG: 9

E/AndroidRuntime( 1531): *** FATAL EXCEPTION IN SYSTEM PROCESS: WindowManagerPolicy

E/AndroidRuntime( 1531): android.content.res.Resources$NotFoundException: Resource ID #0x3060008

E/AndroidRuntime( 1531):	at android.content.res.Resources.getValue(Resources.java:1019)

E/AndroidRuntime( 1531):	at android.content.res.MiuiResources.getValue(MiuiResources.java:56)

E/AndroidRuntime( 1531):	at miui.util.ResourceMapper.resolveReference(ResourceMapper.java:9)

E/AndroidRuntime( 1531):	at miui.util.HapticFeedbackUtil.updateSettings(HapticFeedbackUtil.java:109)

E/AndroidRuntime( 1531):	at miui.util.HapticFeedbackUtil$SettingsObserver.observe(HapticFeedbackUtil.java:92)

E/AndroidRuntime( 1531):	at miui.util.HapticFeedbackUtil.<init>(HapticFeedbackUtil.java:75)

E/AndroidRuntime( 1531):	at com.android.internal.policy.impl.MiuiPhoneWindowManager.init(MiuiPhoneWindowManager.java:122)

E/AndroidRuntime( 1531):	at com.android.server.wm.WindowManagerService$PolicyThread.run(WindowManagerService.java:733)

I/ServiceManager( 1363): service 'vibrator' died

I/ServiceManager( 1363): service 'battery' died

I/ServiceManager( 1363): service 'cpuinfo' died

I/ServiceManager( 1363): service 'permission' died

I/ServiceManager( 1363): service 'sensorservice' died

I/ServiceManager( 1363): service 'entropy' died

I/ServiceManager( 1363): service 'power' died

I/ServiceManager( 1363): service 'batteryinfo' died

I/ServiceManager( 1363): service 'usagestats' died

I/ServiceManager( 1363): service 'telephony.registry' died

I/ServiceManager( 1363): service 'alarm' died

I/ServiceManager( 1363): service 'meminfo' died

I/ServiceManager( 1363): service 'package' died

I/ServiceManager( 1363): service 'activity' died

I/ServiceManager( 1363): service 'gfxinfo' died

I/ServiceManager( 1363): service 'account' died

I/ServiceManager( 1363): service 'hardware' died

I/ServiceManager( 1363): service 'content' died

E/installd( 1374): eof

E/installd( 1374): failed to read size

But dont know how to resolve this:confused:

but in cm9 there is digit change of

and in miui its --->

just 1060008 and 3060008 might be some clue.. but m not developer.. so no idea whats the error exactly...
[Android Software Development] Lens_flare:
see what's hiding on that reource id on cm, could light out what's the reason..
[Android Software Development] 181charan:
Hope you can find a way to fix this!! :)
[Android Software Development] resac:
there is no resource by that id... and while searching i get something but didnt find that lenny post in miui.au.. hoe u find something...

http://xdaforums.com/showthread.php?t=1627448&page=33

waiting for reply
[Android Software Development] *se-nsei.:
I don't understand this instruction:

give it permissions on updater-script set_perm... huh? how do you do that?
[Android Software Development] 181charan:
Hehe... that is a file in the following directory ROM.zip\META-INF\com\google\android\updater-script you open it up with Notepad++ n add the following lines to set permissions, i guess... :)

And by the way i m trying to get this boot on our WFS! since two days with no luck! :P
[Android Software Development] *se-nsei.:
me too. I've managed to get to the boot screen, but it's stuck with the following errors:

http://pastebin.com/wuSVW6c0

maybe we'd work better together? jump on irc #wfsdev ;)
[Android Software Development] 181charan:
Well i managed to bypass that problem but now reached this FATAL ERROR issue on which everyone is stuck! :(

Even dudeman1996 is stuck there... so guess there is nothing much we can do b4 this problem is sorted out! :(