[Android Software Development] Ozadroid:
replace the WEBVIEW*.smali from framework/android/webkit

---------- Post added at 01:14 PM ---------- Previous post was at 12:16 PM ----------

oki. so i did it step by step!

i replaced missing methods n didnt touch the smali's mentions in 2nd post.

but there was a native missing from paint.smali, i tried to patch it first but no help. so den i replaced PAINT.smali

now i m getting this error

I/dalvikvm( 108): Could not find method android.graphics.Paint.initDigitFlag, referenced from method android.graphics.Canvas.<init>

W/dalvikvm( 108): VFY: unable to resolve static method 11854: Landroid/graphics/Paint;.initDigitFlag ()I

D/dalvikvm( 108): VFY: replacing opcode 0x71 at 0x0008

I/dalvikvm( 108): Could not find method android.graphics.Paint.initDigitFlag, referenced from method android.graphics.Canvas.<init>

W/dalvikvm( 108): VFY: unable to resolve static method 11854: Landroid/graphics/Paint;.initDigitFlag ()I

D/dalvikvm( 108): VFY: replacing opcode 0x71 at 0x0010

I/SamplingProfilerIntegration( 108): Profiling disabled.

E/Zygote ( 108): Couldn't find preloaded-classes.

i think it is due to canvas.smali which i m going to replace n try.

Edit: oki i was ryt. the error is gone after replacing canvas.smali

........................................................................................

den further below in logcat i am getting this warnings. dunno if its fine or not! :-/

I/SystemServer( 198): Power Manager

W/System.err( 198): java.io.FileNotFoundException: /data/cust/xml/hw_defaults.xml: open failed: ENOENT (No such file or directory)

W/System.err( 198):	at libcore.io.IoBridge.open(IoBridge.java:406)

W/System.err( 198):	at java.io.FileInputStream.<init>(FileInputStream.java:78)

W/System.err( 198):	at java.io.FileInputStream.<init>(FileInputStream.java:105)

W/System.err( 198):	at java.util.Calendar.getHwFirstDayOfWeek(Calendar.java:773)

W/System.err( 198):	at java.util.Calendar.<init>(Calendar.java:745)

W/System.err( 198):	at java.util.GregorianCalendar.<init>(GregorianCalendar.java:338)

W/System.err( 198):	at java.util.GregorianCalendar.<init>(GregorianCalendar.java:239)

W/System.err( 198):	at java.util.Calendar.getInstance(Calendar.java:1086)

W/System.err( 198):	at com.android.server.Watchdog.<init>(Watchdog.java:92)

W/System.err( 198):	at com.android.server.Watchdog.getInstance(Watchdog.java:177)

W/System.err( 198):	at com.android.server.PowerManagerService.<init>(PowerManagerService.java:561)

W/System.err( 198):	at com.android.server.ServerThread.run(SystemServer.java:160)

W/System.err( 198): Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)

W/System.err( 198):	at libcore.io.Posix.open(Native Method)

W/System.err( 198):	at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)

W/System.err( 198):	at libcore.io.IoBridge.open(IoBridge.java:390)

W/System.err( 198):	... 11 more

W/System.err( 198): java.lang.NumberFormatException: Invalid int: ""

W/System.err( 198):	at java.lang.Integer.invalidInt(Integer.java:138)

W/System.err( 198):	at java.lang.Integer.parseInt(Integer.java:359)

W/System.err( 198):	at java.lang.Integer.parseInt(Integer.java:332)

W/System.err( 198):	at java.util.Calendar.getHwFirstDayOfWeek(Calendar.java:807)

W/System.err( 198):	at java.util.Calendar.<init>(Calendar.java:745)

W/System.err( 198):	at java.util.GregorianCalendar.<init>(GregorianCalendar.java:338)

W/System.err( 198):	at java.util.GregorianCalendar.<init>(GregorianCalendar.java:239)

W/System.err( 198):	at java.util.Calendar.getInstance(Calendar.java:1086)

W/System.err( 198):	at com.android.server.Watchdog.<init>(Watchdog.java:92)

W/System.err( 198):	at com.android.server.Watchdog.getInstance(Watchdog.java:177)

W/System.err( 198):	at com.android.server.PowerManagerService.<init>(PowerManagerService.java:561)

W/System.err( 198):	at com.android.server.ServerThread.run(SystemServer.java:160)

and this is due to framework-res-hwext.apk

i removed it in my earlier built but sint remove it now. so shud i? i think i shud! :-s

W/PackageManager( 198): Exception reading jar: /system/framework/framework-res-hwext.apk

W/PackageManager( 198): java.io.IOException: /system/framework/framework-res-hwext.apk

W/PackageManager( 198):	at dalvik.system.DexFile.isDexOptNeeded(Native Method)

W/PackageManager( 198):	at com.android.server.pm.PackageManagerService.<init>(PackageManagerService.java:1087)

W/PackageManager( 198):	at com.android.server.pm.PackageManagerService.main(PackageManagerService.java:886)

W/PackageManager( 198):	at com.android.server.ServerThread.run(SystemServer.java:189)

and then comes this bootloop! :@

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

E/AndroidRuntime( 198): android.database.sqlite.SQLiteException: no such table: systemex: , while compiling: SELECT value FROM systemex WHERE (name=?)

E/AndroidRuntime( 198):	at android.database.sqlite.SQLiteCompiledSql.native_compile(Native Method)

E/AndroidRuntime( 198):	at android.database.sqlite.SQLiteCompiledSql.<init>(SQLiteCompiledSql.java:78)

E/AndroidRuntime( 198):	at android.database.sqlite.SQLiteProgram.compileSql(SQLiteProgram.java:143)

E/AndroidRuntime( 198):	at android.database.sqlite.SQLiteProgram.compileAndbindAllArgs(SQLiteProgram.java:361)

E/AndroidRuntime( 198):	at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:127)

E/AndroidRuntime( 198):	at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:94)

E/AndroidRuntime( 198):	at android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:53)

E/AndroidRuntime( 198):	at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:47)

E/AndroidRuntime( 198):	at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1564)

E/AndroidRuntime( 198):	at android.database.sqlite.SQLiteQueryBuilder.query(SQLiteQueryBuilder.java:354)

E/AndroidRuntime( 198):	at android.database.sqlite.SQLiteQueryBuilder.query(SQLiteQueryBuilder.java:291)

E/AndroidRuntime( 198):	at com.android.providers.settings.SettingsProvider.query(SettingsProvider.java:429)

E/AndroidRuntime( 198):	at android.content.ContentProvider$Transport.query(ContentProvider.java:178)

E/AndroidRuntime( 198):	at android.provider.Settings$NameValueCache.getString(Settings.java:729)

E/AndroidRuntime( 198):	at android.provider.Settings$Systemex.getString(Settings.java:4598)

E/AndroidRuntime( 198):	at android.provider.Settings$Systemex.getInt(Settings.java:4637)

E/AndroidRuntime( 198):	at com.android.internal.policy.impl.PhoneWindowManager.init(PhoneWindowManager.java:927)

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

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

final logcat..

http://logcat.miui.us/991005

Edit: oki.. i fixed some errors.. but the above mentioned idk how to fix.

the one line is making me suspisious

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

the PhoneWindow$ContextMenuCallback.smali isnt dere!! not in CM9 not in MIUI and not in my previous working port! den from where is is been called ?? :|