[Android Software Development] Supervenom:
Hi, I am trying to port MIUI to Xperia Play. After a lot of errors resolved reading this thread I have found that:

Previous code:

I/ActivityThread( 223): Pub settings: com.android.providers.settings.SettingsProvider

D/dalvikvm( 223): DexOpt: --- BEGIN 'SettingsProvider.apk' (bootstrap=0) ---

D/dalvikvm( 269): DexOpt: load 5ms, verify+opt 47ms

D/dalvikvm( 223): DexOpt: --- END 'SettingsProvider.apk' (success) ---

D/dalvikvm( 223): DEX prep '/system/app/SettingsProvider.apk': unzip in 12ms, rewrite 108ms

D/dalvikvm( 223): GC_CONCURRENT freed 345K, 29% free 10958K/15431K, paused 2ms+3ms

D/SettingsProvider( 223): Generated and saved new ANDROID_ID [d6781d7845ef7534]

I/ActivityThread( 223): Pub telocation: com.miui.providers.telocation.TelocationProvider

D/SettingsProvider( 223): cache for settings table 'secure' rows=27; fullycached=true

D/SettingsProvider( 223): cache for settings table 'system' rows=47; fullycached=true

I/SystemServer( 223): Lights Service

I/SystemServer( 223): Battery Service

I/SystemServer( 223): Vibrator Service

E/lights.semc( 223): write_int failed to open /sys/class/leds/lcd-backlight/als/enable

I/power ( 223): *** set_screen_state 1

I/SystemServer( 223): Alarm Manager

I/SystemServer( 223): Init Watchdog

I/SystemServer( 223): Window Manager

E/PhonePolicy( 223): Could not preload class for phone policy: com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback

I/InputManager( 223): Initializing input manager

W/StatusBarManager( 223): warning: no STATUS_BAR_SERVICE

W/StatusBarManager( 223): warning: no STATUS_BAR_SERVICE

D/SettingsProvider( 223): external modification to /data/data/com.android.providers.settings/databases/settings.db; event=2

D/SettingsProvider( 223): updating our caches for /data/data/com.android.providers.settings/databases/settings.db

D/SettingsProvider( 223): cache for settings table 'secure' rows=29; fullycached=true

D/SettingsProvider( 223): cache for settings table 'system' rows=47; fullycached=true

W/ResourceType( 223): No known package when getting value for resource number [B]0x03060008[/B]

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

Code with errors:

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

E/AndroidRuntime( 223): android.content.res.Resources$NotFoundException: Resource ID #[B]0x3060008[/B]

E/AndroidRuntime( 223):	at android.content.res.Resources.getValue(Resources.java:1022)

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

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

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

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

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

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

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

I think I have to add missing resource (ID #0x3060008) to WindowManagerPolicy. But how?

Thanks. Supervenom