[Android Software Development] Ozadroid:
guys m porting back ICS coz JB isnt proper enough to get the max performance out of Miui. Now i am stuck with this!

the below warning occurs but the boot process goes on!

09-24 15:27:37.059: W/System(211): A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
09-24 15:27:37.059: W/System(211): java.lang.Throwable: Explicit termination method 'close' not called
09-24 15:27:37.059: W/System(211):	at dalvik.system.CloseGuard.open(CloseGuard.java:184)
09-24 15:27:37.059: W/System(211):	at java.io.FileOutputStream.<init>(FileOutputStream.java:90)
09-24 15:27:37.059: W/System(211):	at java.io.FileOutputStream.<init>(FileOutputStream.java:73)
09-24 15:27:37.059: W/System(211):	at com.android.server.pm.UserManager.writeUserList(UserManager.java:202)
09-24 15:27:37.059: W/System(211):	at com.android.server.pm.UserManager.fallbackToSingleUser(UserManager.java:153)
09-24 15:27:37.059: W/System(211):	at com.android.server.pm.UserManager.readUserList(UserManager.java:109)
09-24 15:27:37.059: W/System(211):	at com.android.server.pm.UserManager.<init>(UserManager.java:81)
09-24 15:27:37.059: W/System(211):	at com.android.server.pm.UserManager.<init>(UserManager.java:85)
09-24 15:27:37.059: W/System(211):	at com.android.server.pm.PackageManagerService.<init>(PackageManagerService.java:998)
09-24 15:27:37.059: W/System(211):	at com.android.server.pm.PackageManagerService.main(PackageManagerService.java:840)
09-24 15:27:37.059: W/System(211):	at com.android.server.ServerThread.run(SystemServer.java:164)
09-24 15:27:37.059: W/System(211): A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
09-24 15:27:37.069: W/System(211): java.lang.Throwable: Explicit termination method 'close' not called
09-24 15:27:37.069: W/System(211):	at dalvik.system.CloseGuard.open(CloseGuard.java:184)
09-24 15:27:37.069: W/System(211):	at java.io.FileOutputStream.<init>(FileOutputStream.java:90)
09-24 15:27:37.069: W/System(211):	at java.io.FileOutputStream.<init>(FileOutputStream.java:73)
09-24 15:27:37.069: W/System(211):	at com.android.server.pm.UserManager.writeUser(UserManager.java:167)
09-24 15:27:37.069: W/System(211):	at com.android.server.pm.UserManager.fallbackToSingleUser(UserManager.java:154)
09-24 15:27:37.069: W/System(211):	at com.android.server.pm.UserManager.readUserList(UserManager.java:109)
09-24 15:27:37.069: W/System(211):	at com.android.server.pm.UserManager.<init>(UserManager.java:81)
09-24 15:27:37.069: W/System(211):	at com.android.server.pm.UserManager.<init>(UserManager.java:85)
09-24 15:27:37.069: W/System(211):	at com.android.server.pm.PackageManagerService.<init>(PackageManagerService.java:998)
09-24 15:27:37.069: W/System(211):	at com.android.server.pm.PackageManagerService.main(PackageManagerService.java:840)
09-24 15:27:37.069: W/System(211):	at com.android.server.ServerThread.run(SystemServer.java:164)

then comes this

04-10 08:01:14.339: I/dalvikvm(211): Could not find method android.net.wifi.WifiNative.setWifiMacAddr, referenced from method android.net.wifi.WifiStateMachine.setWifiAddrToNvram
04-10 08:01:14.339: W/dalvikvm(211): VFY: unable to resolve static method 20364: Landroid/net/wifi/WifiNative;.setWifiMacAddr ()Z

i'll patch this^^!!

what to do with this? should i remove the TwNative.smali or just remove the method 'TwRegCallback' from it?

04-10 08:01:14.999: E/ConnectivityService(211): Ignoring protectedNetwork 10
04-10 08:01:14.999: E/ConnectivityService(211): Ignoring protectedNetwork 11
04-10 08:01:14.999: E/ConnectivityService(211): Ignoring protectedNetwork 12
04-10 08:01:15.009: E/MobileDataStateTracker(211): default: Ignoring feature request because could not acquire PhoneService
04-10 08:01:15.009: W/dalvikvm(211): No implementation found for native Landroid/net/wifi/TwNative;.TwRegCallback (Ljava/lang/Object;)I
04-10 08:01:15.009: E/MobileDataStateTracker(211): default: Could not enable APN type "default"
04-10 08:01:15.019: A/SystemServer(211): BOOT FAILURE starting Connectivity Service
04-10 08:01:15.019: A/SystemServer(211): java.lang.UnsatisfiedLinkError: TwRegCallback
04-10 08:01:15.019: A/SystemServer(211):	at android.net.wifi.TwNative.TwRegCallback(Native Method)
04-10 08:01:15.019: A/SystemServer(211):	at android.net.wifi.TwStateTracker.<init>(TwStateTracker.java:53)
04-10 08:01:15.019: A/SystemServer(211):	at com.android.server.ConnectivityService.<init>(ConnectivityService.java:526)
04-10 08:01:15.019: A/SystemServer(211):	at com.android.server.ServerThread.run(SystemServer.java:380)
04-10 08:01:15.019: W/SystemServer(211): ***********************************************

??????:confused:

04-10 08:01:15.259: W/SystemServer(211): ***********************************************
04-10 08:01:15.269: A/SystemServer(211): BOOT FAILURE starting Audio Service
04-10 08:01:15.269: A/SystemServer(211): java.lang.NumberFormatException: Invalid int: ""
04-10 08:01:15.269: A/SystemServer(211):	at java.lang.Integer.invalidInt(Integer.java:138)
04-10 08:01:15.269: A/SystemServer(211):	at java.lang.Integer.parseInt(Integer.java:359)
04-10 08:01:15.269: A/SystemServer(211):	at java.lang.Integer.parseInt(Integer.java:332)
04-10 08:01:15.269: A/SystemServer(211):	at android.media.AudioService.<init>(AudioService.java:365)
04-10 08:01:15.269: A/SystemServer(211):	at com.android.server.ServerThread.run(SystemServer.java:470)

and then dies with this...

04-10 08:01:24.099: E/AndroidRuntime(211): *** FATAL EXCEPTION IN SYSTEM PROCESS: SyncHandlerThread
04-10 08:01:24.099: E/AndroidRuntime(211): java.lang.NullPointerException: missing IConnectivityManager
04-10 08:01:24.099: E/AndroidRuntime(211):	at com.android.internal.util.Preconditions.checkNotNull(Preconditions.java:52)
04-10 08:01:24.099: E/AndroidRuntime(211):	at android.net.ConnectivityManager.<init>(ConnectivityManager.java:618)
04-10 08:01:24.099: E/AndroidRuntime(211):	at android.app.ContextImpl$8.createStaticService(ContextImpl.java:292)
04-10 08:01:24.099: E/AndroidRuntime(211):	at android.app.ContextImpl$StaticServiceFetcher.getService(ContextImpl.java:226)
04-10 08:01:24.099: E/AndroidRuntime(211):	at android.app.ContextImpl.getSystemService(ContextImpl.java:1176)
04-10 08:01:24.099: E/AndroidRuntime(211):	at android.content.SyncManager.getConnectivityManager(SyncManager.java:287)
04-10 08:01:24.099: E/AndroidRuntime(211):	at android.content.SyncManager.readDataConnectionState(SyncManager.java:266)
04-10 08:01:24.099: E/AndroidRuntime(211):	at android.content.SyncManager.access$500(SyncManager.java:77)
04-10 08:01:24.099: E/AndroidRuntime(211):	at android.content.SyncManager$SyncHandler.handleMessage(SyncManager.java:1618)
04-10 08:01:24.099: E/AndroidRuntime(211):	at android.os.Handler.dispatchMessage(Handler.java:99)
04-10 08:01:24.099: E/AndroidRuntime(211):	at android.os.Looper.loop(Looper.java:137)
04-10 08:01:24.099: E/AndroidRuntime(211):	at android.os.HandlerThread.run(HandlerThread.java:60)
04-10 08:01:24.129: I//system/bin/fsck_msdos(101): ** /dev/block/vold/179:1
04-10 08:01:24.129: I//system/bin/fsck_msdos(101): ** Phase 1 - Read and Compare FATs
04-10 08:01:24.129: I//system/bin/fsck_msdos(101): Attempting to allocate 3528 KB for FAT
04-10 08:01:24.179: I/ResourceManager(211): load image charging_progress_light_small_l.png
04-10 08:01:24.219: I/ResourceManager(211): load image charging_progress_light_small_r.png
04-10 08:01:24.399: I/ResourceManager(211): load image volume_box.png
04-10 08:01:24.509: I/ResourceManager(211): load image volume_background.png
04-10 08:01:24.519: I/ResourceManager(211): load image volume_close.png
04-10 08:01:24.519: I/ResourceManager(211): load image volume.png
04-10 08:01:24.649: D/MiAdvancedView(211): canvas hardware render: false
04-10 08:01:24.659: D/RenderThread(211): framerate changed: 30.0 at time: 171013
04-10 08:01:24.699: E/LocationManagerService(211): Exception loading providers:
04-10 08:01:24.699: E/LocationManagerService(211): java.lang.NullPointerException: missing IConnectivityManager
04-10 08:01:24.699: E/LocationManagerService(211):	at com.android.internal.util.Preconditions.checkNotNull(Preconditions.java:52)
04-10 08:01:24.699: E/LocationManagerService(211):	at android.net.ConnectivityManager.<init>(ConnectivityManager.java:618)
04-10 08:01:24.699: E/LocationManagerService(211):	at android.app.ContextImpl$8.createStaticService(ContextImpl.java:292)
04-10 08:01:24.699: E/LocationManagerService(211):	at android.app.ContextImpl$StaticServiceFetcher.getService(ContextImpl.java:226)
04-10 08:01:24.699: E/LocationManagerService(211):	at android.app.ContextImpl.getSystemService(ContextImpl.java:1176)
04-10 08:01:24.699: E/LocationManagerService(211):	at com.android.server.location.GpsLocationProvider.<init>(GpsLocationProvider.java:449)
04-10 08:01:24.699: E/LocationManagerService(211):	at com.android.server.LocationManagerService._loadProvidersLocked(LocationManagerService.java:473)
04-10 08:01:24.699: E/LocationManagerService(211):	at com.android.server.LocationManagerService.loadProvidersLocked(LocationManagerService.java:463)
04-10 08:01:24.699: E/LocationManagerService(211):	at com.android.server.LocationManagerService.loadProviders(LocationManagerService.java:456)
04-10 08:01:24.699: E/LocationManagerService(211):	at com.android.server.LocationManagerService.initialize(LocationManagerService.java:535)
04-10 08:01:24.699: E/LocationManagerService(211):	at com.android.server.LocationManagerService.run(LocationManagerService.java:564)
04-10 08:01:24.699: E/LocationManagerService(211):	at java.lang.Thread.run(Thread.java:856)
04-10 08:01:24.749: I/Process(211): Sending signal. PID: 211 SIG: 9
04-10 08:01:24.749: D/SystemUIService(446): loading: class com.android.systemui.statusbar.phone.PhoneStatusBar
04-10 08:01:25.359: D/SystemUIService(446): running: com.android.systemui.statusbar.phone.PhoneStatusBar@40db5d38
04-10 08:01:25.479: I//system/bin/fsck_msdos(101): Attempting to allocate 3528 KB for FAT
04-10 08:01:25.539: I/ServiceManager(100): service 'entropy' died
04-10 08:01:25.539: I/ServiceManager(100): service 'sensorservice' died
04-10 08:01:25.539: I/ServiceManager(100): service 'package' died
04-10 08:01:25.539: I/ServiceManager(100): service 'power' died
04-10 08:01:25.539: I/ServiceManager(100): service 'batteryinfo' died

Trying to solve whatever i can. and if u guys know what to do please tell. :D