[Android Software Development] CosmicDan:
Nice work Lens! You're a champ :D

Sent from Xperia Play (R800a) with Tapatalk

EDIT: When I made that change to Provision, my Home and Search buttons completely stopped working. Did this happen to you? I assume because the Setup Wizard seems to block these key events (to prevent cancelling the Wizard), some part of the Provision code blocks them indefinitely waiting for the Setup Wizard to finish.

If I replace Provision with the old one and reboot, I get a quick setup wizard asking only Language selection, then the buttons work straight away. No data wipe or anything.

Since my ROM is also multilanguage, it would be nice if we could force the Wizard to still show language selection - and then jump to the 'Finish' screen. Or even to the Usage Statistics prompt, which comes after the Xiaomi login. Do you feel up to that task if possible? :) Maybe just a simple goto is all we'd need. Where though I'm not sure, I'll take a look when I have some time.

EDIT2: I fixed my browser woes. Facebook works again, and I get the cool iPhone-esque magnify-glass when selecting text :D All I needed was to replace the HTML5* smali's and also make this patch:

--- smali/android/webkit/WebViewCore$EventHub$1.smali Tue Jan 20 09:26:36 1970
+++ smali/android/webkit/WebViewCore$EventHub$1.smali Tue Jan 20 09:26:36 1970
@@ -3172,14 +3172,14 @@

const/4 v2, 0x4

aget v16, v17, v2

- #calls: Landroid/webkit/WebViewCore;->nativeSelectText(IIIIII)[Ljava/lang/String;
- invoke-static/range {v10 .. v16}, Landroid/webkit/WebViewCore;->access$6400(Landroid/webkit/WebViewCore;IIIIII)[Ljava/lang/String;
+ #calls: Landroid/webkit/WebViewCore;->nativeSelectText(IIIII)V
+ invoke-static/range {v10 .. v15}, Landroid/webkit/WebViewCore;->access$6400(Landroid/webkit/WebViewCore;IIIII)V

- move-result-object v52
+ goto/16 :goto_0

.line 1760
.local v52, strArray:[Ljava/lang/String;
move-object/from16 v0, p0

--- smali/android/webkit/WebViewCore.smali Tue Jan 20 09:26:36 1970
+++ smali/android/webkit/WebViewCore.smali Tue Jan 20 09:26:36 1970
@@ -1675,27 +1675,24 @@
invoke-direct {p0, p1}, Landroid/webkit/WebViewCore;->nativeClearTextSelection(I)V

return-void
.end method

-.method static synthetic access$6400(Landroid/webkit/WebViewCore;IIIIII)[Ljava/lang/String;
- .locals 1
+.method static synthetic access$6400(Landroid/webkit/WebViewCore;IIIII)V
+ .locals 0
.parameter "x0"
.parameter "x1"
.parameter "x2"
.parameter "x3"
.parameter "x4"
.parameter "x5"
- .parameter "x6"

.prologue
.line 60
- invoke-direct/range {p0 .. p6}, Landroid/webkit/WebViewCore;->nativeSelectText(IIIIII)[Ljava/lang/String;
+ invoke-direct/range {p0 .. p5}, Landroid/webkit/WebViewCore;->nativeSelectText(IIIII)V

- move-result-object v0
-
- return-object v0
+ return-void
.end method

.method static synthetic access$6500(Landroid/webkit/WebViewCore;III)Z
.locals 1
.parameter "x0"
@@ -3348,11 +3345,11 @@
.end method

.method private native nativeSelectAll(I)V
.end method

-.method private native nativeSelectText(IIIIII)[Ljava/lang/String;
+.method private native nativeSelectText(IIIII)V
.end method

.method private native nativeSelectWordAt(III)Z
.end method

Note that I'm not using the latest CM10 base for my device though, because the Camera is broken in it. I think more work needs to be done for latest CM10, but for the nativeSelectText error that patch above seems perfect.