[Xperia Z1 Compact Q&A, Help & Troubleshooting] mikk_11:
Hi,

I try to do my first mod.

I want to activate the numeric keyboard row. The Xperia tablets have this row (I'think the phablets have it too).

I found the methode "isTablet" in the com.sonyericsson.textinput.uxp-1.apk\smali\com\sonyericsson\textinput\uxp\util\EnvironmentUtils.smali:

.method public static isTablet(Landroid/content/Context;)Z
.locals 2
.param p0, "context" # Landroid/content/Context;

.prologue
.line 178
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

move-result-object v0

invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

move-result-object v0

iget v0, v0, Landroid/content/res/Configuration;->smallestScreenWidthDp:I

const/16 v1, 0x258

if-lt v0, v1, :cond_0

const/4 v0, 0x1

:goto_0
return v0

:cond_0
[COLOR="Red"] const/4 v0, 0x0[/COLOR]

goto :goto_0
.end method

I changed the red line to:

const/4 v0, 0x1

So the return value is always "1"

Then the logcat says something with framework/com.sony.devices.jar

So I copied the com.sony.devices.jar from the Xperia Z Ultra over the original one.

Now in keyboardsettings I have the option to enable numeric row.

But when I enable it i always get fc.

The the logcat says: E/AndroidRuntime( 1644): java.lang.RuntimeException: Not found exception for fieldName = com.sonyericsson.textinput.uxp:xml/num_kbd_deu_quertz

So I copied all the numeric keyboards of res/xml/sw600dp to res/xml.

But the keyboard still fc and I don't know what I can do.

Thats the logcat:

E/AndroidRuntime( 1644): FATAL EXCEPTION: main
E/AndroidRuntime( 1644): Process: com.sonyericsson.textinput.uxp, PID: 1644
E/AndroidRuntime( 1644): java.lang.RuntimeException: Not found exception for fieldName = com.sonyericsson.textinput.uxp:xml/kbd_common_overrides
E/AndroidRuntime( 1644):	at com.sonyericsson.textinput.uxp.controller.ResourceLookupProvider.getLayoutXmlResourceParser(ResourceLookupProvider.java:297)
E/AndroidRuntime( 1644):	at com.sonyericsson.textinput.uxp.controller.SizeAndScaleProvider.getLayoutXmlResourceParser(SizeAndScaleProvider.java:347)
E/AndroidRuntime( 1644):	at com.sonyericsson.textinput.uxp.model.keyboard.KeyboardInflaterBase.createParserWrapper(KeyboardInflaterBase.java:60)
E/AndroidRuntime( 1644):	at com.sonyericsson.textinput.uxp.model.keyboard.KeyboardInflaterBase.createParserWrapper(KeyboardInflaterBase.java:54)
E/AndroidRuntime( 1644):	at com.sonyericsson.textinput.uxp.model.keyboard.KeyboardInflater.parseOverrideKeys(KeyboardInflater.java:224)
E/AndroidRuntime( 1644):	at com.sonyericsson.textinput.uxp.model.keyboard.KeyboardInflater.inflateQwertyKeyboard(KeyboardInflater.java:113)
E/AndroidRuntime( 1644):	at com.sonyericsson.textinput.uxp.controller.keyboard.KeyboardSwitcher.createKeyboard(KeyboardSwitcher.java:639)
E/AndroidRuntime( 1644):	at com.sonyericsson.textinput.uxp.controller.keyboard.KeyboardSwitcher.setKeyboard(KeyboardSwitcher.java:280)
E/AndroidRuntime( 1644):	at com.sonyericsson.textinput.uxp.controller.keyboard.KeyboardSwitcher.setKeyboardByIso(KeyboardSwitcher.java:891)
E/AndroidRuntime( 1644):	at com.sonyericsson.textinput.uxp.controller.keyboard.KeyboardSwitcher.validateAndSetLayout(KeyboardSwitcher.java:827)
E/AndroidRuntime( 1644):	at com.sonyericsson.textinput.uxp.controller.keyboard.KeyboardSwitcher.doInitOptional(KeyboardSwitcher.java:789)
E/AndroidRuntime( 1644):	at com.sonyericsson.textinput.uxp.controller.keyboard.KeyboardSwitcher.initOptional(KeyboardSwitcher.java:781)
E/AndroidRuntime( 1644):	at com.sonyericsson.collaboration.ObjectBinder.init(ObjectBinder.java:458)
E/AndroidRuntime( 1644):	at com.sonyericsson.textinput.uxp.glue.InputMethodServiceGlue.bind(InputMethodServiceGlue.java:394)
E/AndroidRuntime( 1644):	at com.sonyericsson.textinput.uxp.glue.InputMethodServiceGlue.onStartInputView(InputMethodServiceGlue.java:321)
E/AndroidRuntime( 1644):	at android.inputmethodservice.InputMethodService.showWindowInner(InputMethodService.java:1507)
E/AndroidRuntime( 1644):	at android.inputmethodservice.InputMethodService.showWindow(InputMethodService.java:1465)
E/AndroidRuntime( 1644):	at android.inputmethodservice.InputMethodService$InputMethodImpl.showSoftInput(InputMethodService.java:476)
E/AndroidRuntime( 1644):	at android.inputmethodservice.IInputMethodWrapper.executeMessage(IInputMethodWrapper.java:202)
E/AndroidRuntime( 1644):	at com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:40)
E/AndroidRuntime( 1644):	at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 1644):	at android.os.Looper.loop(Looper.java:212)
E/AndroidRuntime( 1644):	at android.app.ActivityThread.main(ActivityThread.java:5135)
E/AndroidRuntime( 1644):	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1644):	at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 1644):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:877)
E/AndroidRuntime( 1644):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:693)
E/AndroidRuntime( 1644):	at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
E/AndroidRuntime( 1644):	at dalvik.system.NativeStart.main(Native Method)

Can anyone help me please?