yashsingh1/xdaforums huggingface dataset:
[Android Software Development] *se-nsei.:
Yeah, I'm so dumb, didn't even know wfsdev had already a project going. Looks like we've got the same error as many others on this page.

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
[Android Software Development] nasty007:
im porting to HTC wildfire and im always stuck at bootloop

F/libc ( 221): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1)

http://pastebin.com/2Bb85qZN

thanks
[Android Software Development] smithchipz:
Hi,

I've got an MIUI port for my phone but the overall ROM is slow and sluggish. I was wondering if anyone had any tips on how to make it fast and smooth like a proper custom ROM.

Thanks.
[Android Software Development] CacingKalung:
Google sync problems

Thanks for the guide...

I have boot up, but I couldn't sync contacts with gmail.

Other gapps sync are working, except for contacts.

Here is the logcat http://pastebin.com/7SchWAfq

Anyone can help me?

Thanks...
[Android Software Development] smithchipz:
Hi,

I've followed your guide using an MIUI ROM and a CM9 ROM for my phone. After I flash it and let the phone boot up, it shows the MIUI boot animation but does nothing else. It just sits there playing the animation. I'm sort of new to this so I don't really know the problem. I've attached a logcat I managed to take so if someone could take a look and tell me what I'm doing wrong I'd really appreciate it.

Thanks.
[Android Software Development] *se-nsei.:
No help for those with problems in this thread? :o
[Android Software Development] Lens_flare:
smithchipz

you have the most common problem porting from cm - AssetManager..

for more information please search that "AssetManager" in this thread.

definitely, time to organize FAQ
[Android Software Development] resac:
problem with the resource id 0x3000068 solution provided by lenny_kano for my Pm and if u want thank then thank him.... but for me yet i didnt get solution.. hope anyone get solution for this..

go through steps. and any one get success let me know....:confused:

That error is due to apktool recompiling framework-miui-res wrong. You need to do the following:

Before recompiling, edit the apktool.yml in the framework-miui-res folder, and add the line " - 2" directly under the " - 1" line.

You need a copy of com.HTC.resources.apk from any htc sense rom installed as 2.apk.

Then recompile and it will work.

Note that with releases starting from 2.6.8 I believe, you also need to add "- 3", " - 4" and " - 5" lines, and install some apks to 3, 4 and 5.apk (they are available on patchrom somewhere)

I'll help with that after you get 2.5.5 booting
[Android Software Development] Lens_flare:
why do you need to modify and recompile framework-res-miui.apk? It's the last you should do after successfull boot! and yes, are all of you htc users? I doubt. Samsung have htc sense? no. So why htc sense resource table should work?
[Android Software Development] resac:
but as said the resource table said and after decompile there s no resource of that ID.. and what would be the error.. mine till 2.6.8 is ported jus single error and all charging lights are working not getting home screen..

just :confused:
[Android Software Development] Lens_flare:
framework.jar and services.jar don't require "apktool if" action so they are independent from framework-miui-res.apk
[Android Software Development] resac:
yes u r correct.. but wat will be the solution for this error.. i m just get :confused:

06-10 02:31:42.390: A/libc(1294): Fatal signal 11 (SIGSEGV) at 0x413d04c4 (code=1)
06-10 02:31:42.420: E/AndroidRuntime(1457): *** FATAL EXCEPTION IN SYSTEM PROCESS: WindowManagerPolicy
06-10 02:31:42.420: E/AndroidRuntime(1457): android.content.res.Resources$NotFoundException: Resource ID #0x3060008
06-10 02:31:42.420: E/AndroidRuntime(1457):	at android.content.res.Resources.getValue(Resources.java:1022)
06-10 02:31:42.420: E/AndroidRuntime(1457):	at android.content.res.MiuiResources.getValue(MiuiResources.java:56)
06-10 02:31:42.420: E/AndroidRuntime(1457):	at miui.util.ResourceMapper.resolveReference(ResourceMapper.java:9)
06-10 02:31:42.420: E/AndroidRuntime(1457):	at miui.util.HapticFeedbackUtil.updateSettings(HapticFeedbackUtil.java:109)
06-10 02:31:42.420: E/AndroidRuntime(1457):	at miui.util.HapticFeedbackUtil$SettingsObserver.observe(HapticFeedbackUtil.java:92)
06-10 02:31:42.420: E/AndroidRuntime(1457):	at miui.util.HapticFeedbackUtil.<init>(HapticFeedbackUtil.java:75)
06-10 02:31:42.420: E/AndroidRuntime(1457):	at com.android.internal.policy.impl.MiuiPhoneWindowManager.init(MiuiPhoneWindowManager.java:128)
06-10 02:31:42.420: E/AndroidRuntime(1457):	at com.android.server.wm.WindowManagerService$PolicyThread.run(WindowManagerService.java:733)
06-10 02:31:42.450: E/installd(1296): eof
06-10 02:31:42.450: E/installd(1296): failed to read size
06-10 02:31:43.500: E/CameraHAL(1551): CameraHAL_GetNum_Cameras: 1

Just One error by solving , hope i get home screen of 2.6.8
[Android Software Development] Lens_flare:
you could try to find that HapticFeedbackUtil.smali and replace it as I suggested nearly first time that error appeared..
[Android Software Development] nasty007:
I'm stuck in bootloop, I solved asset manager error but I cannot move from here

F/libc ( 221): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1)

http://pastebin.com/2Bb85qZN

can someone gimme some advice?

thanks
[Android Software Development] Lens_flare:
That's ur error

E/dalvikvm( 221): ERROR: couldn't find native method
E/dalvikvm( 221): Requested: Landroid/webkit/
WebViewCore;.nativeGetTextureGeneratorThreadID:()I
E/JNIHelp ( 221): RegisterNatives failed for 'android/webkit/WebViewCore', aborting

Find android/webkit/WebViewCore.smali at framework.jar and.. idk, do whatever you want but don't replace it..
[Android Software Development] resac:
As U r Allways rite brother.. by changing hepticfeedback now resource id get changed and exception is now...

and in orignallu miui have 3 haptic smallis.. but in minicm9 only one haptic smalli is there...
[Android Software Development] Lens_flare:
strange but nothing actually changed.. it still points to HapticFeedbackUtils..

revert to miui one, it's not a causer...

what's more strange..

ok, let's try another trick:

see that

seems like miui resists for cm invasion, so my idea is to harrdly defeat it - delete hapticfeedbackutil from MiuiPhoneWindowManager.smali at line near 128 and subsequent referneces in function init. It could work coz seems that smali is just polling current settings.
[Android Software Development] resac:
After Deleting every line of HapticFeedback in MiuiPhoneWindowManager.samli here is the result.
[Android Software Development] 181charan:
I deleted "AndroidRuntimeException.smali" N got a similar logcat with that FATAL exception thing in the services.jar this time lets try deleting something else!!! :P ;)

this is what i exactly get..

Tell me what to delete next!! :P :P
[Android Software Development] Lens_flare:
chaos and destruction mania from the mind :D

deleting exception will cause exception, it's a law..

about link error, uhm..

have I suggested to delete ALL Lines? I said only on init function :[
[Android Software Development] smithchipz:
Hi Lens_Flare,

I followed what you said here in relation to AssetManager. I think I edited the smali successfully however I'm still having the same problem, where the phone just sits on the bootanimation. Here's the logcat: http://pastebin.com/t1EfuH90

Thanks for helping :)
[Android Software Development] Lens_flare:
seems you have messed up with your framework.jar, just try again.
[Android Software Development] resac:
after deleting init here is the error

06-10 15:44:14.320: E/AndroidRuntime(1459): *** FATAL EXCEPTION IN SYSTEM PROCESS: WindowManager
06-10 15:44:14.320: E/AndroidRuntime(1459): java.lang.VerifyError: com/android/internal/policy/impl/MiuiPhoneWindowManager
06-10 15:44:14.320: E/AndroidRuntime(1459):	at com.android.internal.policy.impl.MiuiClassFactory.createPhoneWindowManager(MiuiClassFactory.java:28)
06-10 15:44:14.320: E/AndroidRuntime(1459):	at com.android.internal.policy.impl.Policy.makeNewWindowManager(Policy.java)
06-10 15:44:14.320: E/AndroidRuntime(1459):	at com.android.internal.policy.PolicyManager.makeNewWindowManager(PolicyManager.java:67)
06-10 15:44:14.320: E/AndroidRuntime(1459):	at com.android.server.wm.WindowManagerService.<init>(WindowManagerService.java:306)
06-10 15:44:14.320: E/AndroidRuntime(1459):	at com.android.server.wm.WindowManagerService.<init>(WindowManagerService.java:145)
06-10 15:44:14.320: E/AndroidRuntime(1459):	at com.android.server.wm.WindowManagerService$WMThread.run(WindowManagerService.java:687)
06-10 15:44:14.350: E/installd(1296): eof
[Android Software Development] Lens_flare:
Not init itself but lines linked to hapticfeedbackutil on it ;[
[Android Software Development] resac:
brother i m not getting whats the link and all as i m not android developer hope u will tell me the line no and which all to delete by taking this file..

MiuiPhoneWindowManager.smali
[Android Software Development] CacingKalung:
I'm sorry to ask again but any advice for my google contact sync problem?

Logcat: http://pastebin.com/7SchWAfq

Thanks in advance
[Android Software Development] pjgowtham:
I really thank lens_flare for being very active in this thread and sorting out everyone's problems..your contribution is worthless..thanks again..:D

Sent from my Cm9 Defy
[Android Software Development] resac:
I tried lot but here only getting error i m not able to solve this error. Brother u only help me out.

Logcat

and here are orignal and i modded inputmanager.smali.

Files

Please Help Me Out....

Waiting for Reply.:(

and another error is
[Android Software Development] lenny_kano:
Are you using 2.6.8 now? Framework-miui-res now has 0x6 values instead of 0x3. You need to:

Add lines - 3, - 4 and - 5 to the usual 1 and 2 in apktool.yml

Install 2,3,4 and 5.apk as frameworks (they are on patchrom github somewhere)

Then recompile framework-miui-res and it will boot

Edit: for those wondering, I came up with the original "install com.HTC.resources.apk" work around and shared with ALL other miui translators, so I know what I'm talking about.and how/why it works :)

---------- Post added at 12:24 PM ---------- Previous post was at 12:11 PM ----------

https://github.com/MiCode/patchrom_build/tree/ics/res

The apks which need to be installed as frameworks 2-5 are here.
[Android Software Development] Lens_flare:
maybe that one:

E/DatabaseUtils( 411): java.lang.NullPointerException
E/DatabaseUtils( 411): at miui.util.HanziToPinyinHelper.getPinyinString
(HanziToPinyinHelper.java:82)

have you deleted pinyin IME(chinese keyboard)?

Overall errors are looking strange.. seems like that IME is the a startpoint :D

ok boss, could you share with us - mere mortals how it actually works?

Coz for example resac is porting to sony device[as I understood] that never had sense rom officially..

seems this error is common for devices with side-load resources such as sense devices.
[Android Software Development] 181charan:
I tried the abouve method by getting apks n editing apktool.yml

But having problems compiling it back!! :(

this is the error i get!!

W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Included base package ID 2 already in use!
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, E:\Users\Airwalk\AppData\Local\Temp
\APKTOOL1909970139341933646.tmp, -x, -I, E:\Users\Airwalk\apktool\framework\1.ap
k, -I, E:\Users\Airwalk\apktool\framework\2.apk, -I, E:\Users\Airwalk\apktool\fr
amework\3.apk, -I, E:\Users\Airwalk\apktool\framework\4.apk, -I, E:\Users\Airwal
k\apktool\framework\5.apk, -S, E:\tool\frameworkmiui\res, -M, E:\tool\frameworkm
iui\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, E:\U
sers\Airwalk\AppData\Local\Temp\APKTOOL1909970139341933646.tmp, -x, -I, E:\Users
\Airwalk\apktool\framework\1.apk, -I, E:\Users\Airwalk\apktool\framework\2.apk,
-I, E:\Users\Airwalk\apktool\framework\3.apk, -I, E:\Users\Airwalk\apktool\frame
work\4.apk, -I, E:\Users\Airwalk\apktool\framework\5.apk, -S, E:\tool\frameworkm
iui\res, -M, E:\tool\frameworkmiui\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more

What am i doing wrong??? :(
[Android Software Development] lenny_kano:
Device is irrelevant, as is stock rom.

I ported v4 to the x10 without even looking at the device.

The error I'm talking about happens whenever you recompile framewok-miui-res. And my solution works for everyone.
[Android Software Development] Lens_flare:
may I ask, what if I didn't recompile framework-miui-res.apk and get this error?

As I understood, those guys haven't even touched that file..
[Android Software Development] lenny_kano:
If that's the case , then resac has led me up the garden path when he said in his pm's that the problems he was having were after recompiling framework-miui-res. I was only stating my solution is a 100% fix for the non booting error due to that. There's other fc errors caused by recompiling it which require modifying some of the XML, but one step at a time.

And if that isnt the case it may be more likely that the frameworks haven't been modified to allow extra framework apks (but this only applies if using framework jars from a different rom.). In which case you need to modify a couple of smali in services.jar and framework.jar to accept framework-miui-res, can't remember exactly which (search the decompiled miui jars for "framework-miui-res" and ""miui"" to find what needs adding. I'm sure the smali files have "package" in the name from memory, done it before when I had nearly every miui apk running on aosp WITHOUT patchrom, all code hand merged by me.

Please don't be hostile towards me again, I'm merely trying to help, and can just as easily leave and take what I know with me.
[Android Software Development] resac:
lenny_kano: sorry brother u mis understand me and thanks alot for the help u shown to me.. i didnt touched the framework-miui-res.apk ...

and

Lens_flare: you are right i didnt touched it.. but we forgot that we replacing assetmanager.smali in framework and which is link with framework-miui-res.apk

so now trying it and just few min i will come with just pasting the missed methods and what will be the result...
[Android Software Development] lenny_kano:
Well I'm sorry for the misleading advice. I would say though, to anyone porting this, DONT touch framework-miui-res. It causes more trouble than its worth when recompiled, and the only reason would be for translating, but all miui groups have already done this for you so save yourself the headaches ;)
[Android Software Development] montuk:
Should i need to replace all smali start with PowerManagerService

or only PowerManagerService.smali

or need to add missing methods in PowerManagerService.smali from base one

Sorry for this but confused :confused:
[Android Software Development] resac:
my opinion is to ---> Best way to paste the missing methods to be paste.....

---------- Post added at 04:53 PM ---------- Previous post was at 04:51 PM ----------

brother thanks.. and u never mislead me.. u r given lot help to me for my noob questions...

Thanks alot for you..

even after all again error ****......

here is the logcat ---> logcat
[Android Software Development] Lens_flare:
no please ;]

I'm just always trying to find out a reason-compatible bounds in all things I'd touch ;D

wow, I didn't even see that link, maybe it's your device specific? oO Anyway, seems work is almost done -_-

see that line:

905:	06-11 20:07:24.350: I/dalvikvm(1932): Could not find method com.android.internal.app.ThemeUtils.createUiContext, referenced from method com.android.server.InputMethodManagerService.getUiContext

try to add it :]
[Android Software Development] resac:
in both port and main there is no smali at all...
[Android Software Development] Lens_flare:
com/android/internal is a part of framework.jar , app/themeutils.smali shoud exist as cm framework module couldn't point to void, right?
[Android Software Development] 181charan:
Probably we replaced some other smali related to miui?? in services.jar????? just like assetmanager.smali that is causing the *** FATAL EXCEPTION IN SYSTEM PROCESS thing all over????!!

Remember the files that we switched from services.jar???

Cuz i remember we replaced ServerThread.smali as well?????

And what exactly did you do bro? Did you just replace the MIUI assetManager.smali again or something else???
[Android Software Development] Frankin96:
Blackscreen .. what can i do? i've did all ...
[Android Software Development] resac:
Again new error with new try.. here i really get ****ed up by errors.. dont know when i get out of this errors....

LogCat

lens_flare waiting for u r reply...
[Android Software Development] 181charan:
Seems like you dont reply to anyone other than lens_flare!! :P

Probably we replaced some other smali related to miui in services.jar?!? just like assetmanager.smali that is causing the error b4?

Cuz i remember we replaced ServerThread.smali as well!?!

And what exactly did you do bro? Did you just replace the MIUI assetManager.smali again or something else???
[Android Software Development] Lens_flare:
if you followed mine advice, the only InputManager*.smali tree should be replaced.

if you replace it, you will at last loose miui themes support, if you could resolve all bunch of exceptions that replacing cause ;)
[Android Software Development] davidang:
@OP,Can u also make a tutorial on how to port touchwiz to non-samsung device;)
[Android Software Development] resac:
again came to this error .. and this become ****ing errors to port.. i think this port is no more.. errors errors erorrs.. thats all

here is logcat and nyone want to help ---> http://logcat.miui.us/833032
[Android Software Development] Frankin96:
This is my logcat :) what can i do?
[Android Software Development] resac:
only Lens_Flare can Help Us.. no one else.......
[Android Software Development] Lens_flare:
woohoo, nomore resourcenotfoundexception! Great work..

Anyway, I see inconsistencies:

W/dalvikvm(2573): No implementation found for native Lcom/android/server/wm/InputManager;.nativeHasExternalAlphakey ()Z

InputManager needs nativeHasExternalAlphakey , satisfy its need..

maybe its a subsequent error, but:

4738:	06-12 04:32:37.010: W/dalvikvm(2573): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Landroid/graphics/BlockLayout;
4739:	06-12 04:32:37.010: W/dalvikvm(2573): Exception Ljava/lang/ExceptionInInitializerError; thrown while initializing Landroid/text/Layout;

android/graphics/BlockLayout, android/text/Layout, have you touched them?

and a side note:

E/Keyboard(2573): Configuration for keyboard device 'mimmi_keypad' requested keyboard character map 'mimmi_keypad' but it was not found.

do you have mimmi_keypad.kcm in usr/keychars?

-__-

really, I'm not a godlike :D

there is only your post, nothing else ;]
[Android Software Development] resac:
no i dont.....

and now if i merge the smali then here is the error --->new log after merging inputmanager.smali

and

No... i m not developer.. and still i didnt get fixed my errors how i can be guide anyone else... so sorry if i b rude to u...

yes.. even in miui .au chat window i didnt get much reply.. and solution...and u only the guy who helped me from begining from my starting days..
[Android Software Development] Lens_flare:
hey, don't merge anything, add that method like you added some to assetmanager.smali
[Android Software Development] resac:
i did that but same error.... brothr come on some chat window so that we can fix it.. pm me something..

unsatisfiedlinkerror ****ing me......
[Android Software Development] patou75:
hey, how can we change the language ? can we took from our regional rom ? for exemple I'm french, can I use the rom from MIUI France for language ?

Thanks for you answer and your share !
[Android Software Development] Lens_flare:
it's a OT..

some advice:

-grab english base and replace system/app , system/framework/framework-miui-res.apk from language you choose [french I assume?]

-diff rom you got, maybe it have another framework tweaks

-replace some files like gps.conf,telocation.db, yellowpage.db at system/etc , they could contain useful tweaks for your region.
[Android Software Development] Dhiraj:
Hi , i am watching this thread for a long time and try to port miui for my WFS. I am using original(base) "libandroid_runtime.so" and modified framework.jar of miui. Now prob come with Assetmanager. It seams that due to original "libandroid_runtime.so" , it calls a native method named splitThemePackage which is actually a part of CM9 Assetmanager. But as i want to keep miui's theme support and using miui's Assetmanager, it lead to the following errors.pl. help.

I/HTC Acoustic( 199): read_audio_para_from_file success.

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

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

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

F/libc ( 198): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1)
[Android Software Development] Lens_flare:
watching since a while? :D So you should know that adding methods to assetmanager won't corrupt miui theme engine, and you will pass it.

contact with wfs team, those guys seems are already booted miui.
[Android Software Development] resac:
tried with miui.us same prob with that also... here is logcat..

dont know the reason.. ----> http://logcat.miui.us/832022