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:
Code:
.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:
Code:
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:
Code:
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?
Here's exactly what you are trying to do. You can get that or ask for help there maybe.
http://forum.xda-developers.com/showthread.php?t=2876852
templeka said:
Here's exactly what you are trying to do. You can get that or ask for help there maybe.
http://forum.xda-developers.com/showthread.php?t=2876852
Click to expand...
Click to collapse
Thanks for your answer.
I know this thread and I know how to do it like him. But if I use his methode the buttons of the keyboard get smaller.
I wanna do it like this: http://www.static.xperiablog.net/wp-content/uploads/2014/06/Xperia-Keyboard_4-640x400.png
Sony has implemented a numeric row. But only Xperia Tab and Xperia Ultra support it.
I'm sorry I can't help you there. I just found that thread but I'm no expert, plus I never used stock keyboards on any of my phones.
Related
Hi, i have the motorola milestone browser (the regular one that includes the multitouch) and they are attached to this thread. I am trying to get them to work on AOSP 2.0. Whenever i open it on the phone, it opens to a white screen then force closes. I have logcat open and this is what comes up when i open the browser.
I/ActivityManager( 75): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.browser/.BrowserActivity }
I/ActivityManager( 75): Start proc com.android.browser for activity com.android.browser/.BrowserActivity: pid=474 uid=10017 gids={3003, 1015}
I/ActivityThread( 474): Publishing provider browser: com.android.browser.BrowserProvider
E/dalvikvm( 474): Could not find class 'com.motorola.webkit.MultiTouchWebView', referenced from method com.android.browser.TabControl.createNewWebView
W/dalvikvm( 474): VFY: unable to resolve new-instance 437 (Lcom/motorola/webkit/MultiTouchWebView in Lcom/android/browser/TabControl;
D/dalvikvm( 474): VFY: replacing opcode 0x22 at 0x0001
D/dalvikvm( 474): Making a copy of Lcom/android/browser/TabControl;.createNewWebView code (104 bytes)
D/AndroidRuntime( 474): Shutting down VM
W/dalvikvm( 474): threadid=3: thread exiting with uncaught exception (group=0x4001e2e0)
E/AndroidRuntime( 474): Uncaught handler: thread main exiting due to uncaught exception
E/AndroidRuntime( 474): java.lang.NoClassDefFoundError: com.motorola.webkit.MultiTouchWebView
E/AndroidRuntime( 474): at com.android.browser.TabControl.createNewWebView(TabControl.java:1027)
E/AndroidRuntime( 474): at com.android.browser.TabControl.createNewTab(TabControl.java:594)
E/AndroidRuntime( 474): at com.android.browser.BrowserActivity.onCreate(BrowserActivity.java:444)
E/AndroidRuntime( 474): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/AndroidRuntime( 474): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2431)
E/AndroidRuntime( 474): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2484)
E/AndroidRuntime( 474): at android.app.ActivityThread.access$2200(ActivityThread.java:119)
E/AndroidRuntime( 474): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1835)
E/AndroidRuntime( 474): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 474): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 474): at android.app.ActivityThread.main(ActivityThread.java:4325)
E/AndroidRuntime( 474): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 474): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 474): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/AndroidRuntime( 474): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/AndroidRuntime( 474): at dalvik.system.NativeStart.main(Native Method)
Click to expand...
Click to collapse
Any ideas? I tried looking for some of the files in the motorola milestone dump but no luck.
Edit: The browser file and the multitouch permission did not attach.
you need the motorola frameworks and a multitouch kernel. as the errors say, it cant find the motorola multitouch class.
there was a frame work com.android.hardware.touchscreen.multitouch.xml and thats in as well. shouldn't it work then? or is it really the kernel?
Hi, after i recompile HTC Music and i run it i get FC, i try to clear the data and its not helping, even when i recompile without changing anything i get FC.
All others apps i edit working very good and no FC.
Thnaks!
Code:
I/HtcMusic( 4041): borranx MyGallery.QVGA 2
W/dalvikvm( 4041): VFY: bad exception entry: startAddr=126 endAddr=126 (size=289)
W/dalvikvm( 4041): VFY: rejected Lcom/htc/music/MusicUtils;.getArtworkFromFile (Landroid/content/Context;Landroid/net/Uri;I)Landroid/graphics/Bitmap;
W/dalvikvm( 4041): Verifier rejected class Lcom/htc/music/MusicUtils;
D/AndroidRuntime( 4041): Shutting down VM
W/dalvikvm( 4041): threadid=1: thread exiting with uncaught exception (group=0x400259f8)
E/AndroidRuntime( 4041): FATAL EXCEPTION: main
E/AndroidRuntime( 4041): java.lang.VerifyError: com.htc.music.MusicUtils
E/AndroidRuntime( 4041): at com.htc.music.HtcMusic.onStart(HtcMusic.java:768)
E/AndroidRuntime( 4041): at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1211)
E/AndroidRuntime( 4041): at android.app.Activity.performStart(Activity.java:3822)
E/AndroidRuntime( 4041): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2760)
E/AndroidRuntime( 4041): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2803)
E/AndroidRuntime( 4041): at android.app.ActivityThread.access$2300(ActivityThread.java:135)
E/AndroidRuntime( 4041): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2136)
E/AndroidRuntime( 4041): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 4041): at android.os.Looper.loop(Looper.java:144)
E/AndroidRuntime( 4041): at android.app.ActivityThread.main(ActivityThread.java:4937)
E/AndroidRuntime( 4041): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 4041): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 4041): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
E/AndroidRuntime( 4041): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
E/AndroidRuntime( 4041): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 188): Force finishing activity com.htc.music/.HtcMusic
What are you trying to change???
I try add a language, but even when i don't edit anything just do decompile and then compile i get this error.
i don this before on other apps and it's work perfect, this is happens only in HTC Music.
anyone? please.
Anyone? ...
bump.......
So I am useing the new 2.3.4 Sense 3.0 ROM http://forum.xda-developers.com/showthread.php?t=1191936 and I am trying to get my theme to work on it. The issue that I have is with the weather widget. With the new verision of Sense they have a completly new weather animation. I get FC's all the time and here is what the logcat says.
Code:
E/AndroidRuntime( 7192): FATAL EXCEPTION: main
E/AndroidRuntime( 7192): android.content.res.Resources$NotFoundException: File res/raw/sound_clouds.wav from drawable resource ID #0x2060023
E/AndroidRuntime( 7192): at android.content.res.Resources.openRawResourceFd(Resources.java:869)
E/AndroidRuntime( 7192): at com.htc.Weather.SoundEffect.createPlayerbyRes(SoundEffect.java:96)
E/AndroidRuntime( 7192): at com.htc.Weather.SoundEffect.startMediaPlayer(SoundEffect.java:82)
E/AndroidRuntime( 7192): at com.htc.Weather.WeatherActivity.playSound(WeatherActivity.java:1402)
E/AndroidRuntime( 7192): at com.htc.Weather.WeatherActivity.access$1000(WeatherActivity.java:64)
E/AndroidRuntime( 7192): at com.htc.Weather.WeatherActivity$2.handleMessage(WeatherActivity.java:887)
E/AndroidRuntime( 7192): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 7192): at android.os.Looper.loop(Looper.java:143)
E/AndroidRuntime( 7192): at android.app.ActivityThread.main(ActivityThread.java:4293)
E/AndroidRuntime( 7192): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 7192): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 7192): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
E/AndroidRuntime( 7192): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
E/AndroidRuntime( 7192): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 7192): Caused by: java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed
E/AndroidRuntime( 7192): at android.content.res.AssetManager.openNonAssetFdNative(Native Method)
E/AndroidRuntime( 7192): at android.content.res.AssetManager.openNonAssetFd(AssetManager.java:465)
E/AndroidRuntime( 7192): at android.content.res.Resources.openRawResourceFd(Resources.java:866)
E/AndroidRuntime( 7192): ... 13 more
W/ActivityManager( 2188): Force finishing activity com.htc.Weather/.WeatherActivity
D/SensorService( 2188): enable: get sensor name = BMA150 3-axis Accelerometer
D/Sensors ( 2188): Enable akm: en = 1
D/SensorService( 2188): pid=2188, uid=1000
D/AK8973 ( 85): Compass Start
I have checked and that wav file is in the correct location. For some reason it says that it cannot open it as it might be compressed? I did not modify that apk. I only did some xml edits to framework-res.apk. The wav files are located in com.htc.resource/res/raw if anyone could help me out I would appreciate it alot.
I update my tablet to latest firmware version. I have onda vi30 model.
Anyway, when i try to change language from chinese to english, seem that not work.
Here i put some screenshots about that.
Any help?
P.S. i make some changes in update.zip package, to remove chinese app. I don't know if this can be a problem.
I resolved this problem reflashing my tablet with build.prop changed like this:
ro.product.locale.language=en
ro.product.locale.region=US
It's seem that i have one problem when a try to change language. Settings crash. Maybe something are done wrong when make custom rom.
Here is log from my tablet
E/ActivityThread( 7397): Failed to find provider info for user_dictionary
E/AndroidRuntime( 7397): FATAL EXCEPTION: main
E/AndroidRuntime( 7397): java.lang.NullPointerException
E/AndroidRuntime( 7397): at android.preference.PreferenceGroup.removePreferenceInt(PreferenceGroup.java:181)
E/AndroidRuntime( 7397): at android.preference.PreferenceGroup.removePreference(PreferenceGroup.java:174)
E/AndroidRuntime( 7397): at com.android.settings.inputmethod.InputMethodAndLanguageSettings.updateUserDictionaryPreference(InputMethodAndLanguageSettings.java:200)
E/AndroidRuntime( 7397): at com.android.settings.inputmethod.InputMethodAndLanguageSettings.onResume(InputMethodAndLanguageSettings.java:253)
E/AndroidRuntime( 7397): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:874)
E/AndroidRuntime( 7397): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1035)
E/AndroidRuntime( 7397): at android.app.BackStackRecord.popFromBackStack(BackStackRecord.java:712)
E/AndroidRuntime( 7397): at android.app.FragmentManagerImpl.popBackStackState(FragmentManager.java:1446)
E/AndroidRuntime( 7397): at android.app.FragmentManagerImpl.popBackStackImmediate(FragmentManager.java:453)
E/AndroidRuntime( 7397): at android.app.Activity.onBackPressed(Activity.java:2153)
E/AndroidRuntime( 7397): at com.android.settings.LocalePicker.onLocaleSelected(LocalePicker.java:30)
E/AndroidRuntime( 7397): at com.android.internal.app.LocalePicker.onListItemClick(LocalePicker.java:208)
E/AndroidRuntime( 7397): at android.app.ListFragment$2.onItemClick(ListFragment.java:160)
E/AndroidRuntime( 7397): at android.widget.AdapterView.performItemClick(AdapterView.java:298)
E/AndroidRuntime( 7397): at android.widget.AbsListView.performItemClick(AbsListView.java:1086)
E/AndroidRuntime( 7397): at android.widget.AbsListView$PerformClick.run(AbsListView.java:2855)
E/AndroidRuntime( 7397): at android.widget.AbsListView$1.run(AbsListView.java:3529)
E/AndroidRuntime( 7397): at android.os.Handler.handleCallback(Handler.java:615)
E/AndroidRuntime( 7397): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 7397): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 7397): at android.app.ActivityThread.main(ActivityThread.java:4745)
E/AndroidRuntime( 7397): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 7397): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 7397): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
E/AndroidRuntime( 7397): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
E/AndroidRuntime( 7397): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 3479): Force finishing activity com.android.settings/.Settings
Click to expand...
Click to collapse
Can someone help me with this logcat .. i am trying to get the xpria t jellybean systemui to work but i have now this problem
Code:
E/AndroidRuntime( 483): FATAL EXCEPTION: main
E/AndroidRuntime( 483): java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: java.lang.SecurityException: StatusBarManagerService: Neither user 10011 nor current process has android.permission.STATUS_BAR_SERVICE.
E/AndroidRuntime( 483): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2499)
E/AndroidRuntime( 483): at android.app.ActivityThread.access$1600(ActivityThread.java:142)
E/AndroidRuntime( 483): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1290)
E/AndroidRuntime( 483): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 483): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 483): at android.app.ActivityThread.main(ActivityThread.java:4931)
E/AndroidRuntime( 483): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 483): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 483): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
E/AndroidRuntime( 483): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:558)
E/AndroidRuntime( 483): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 483): Caused by: java.lang.SecurityException: StatusBarManagerService: Neither user 10011 nor current process has android.permission.STATUS_BAR_SERVICE.
E/AndroidRuntime( 483): at android.os.Parcel.readException(Parcel.java:1425)
E/AndroidRuntime( 483): at android.os.Parcel.readException(Parcel.java:1379)
E/AndroidRuntime( 483): at com.android.internal.statusbar.IStatusBarService$Stub$Proxy.registerStatusBar(IStatusBarService.java:430)
E/AndroidRuntime( 483): at com.android.systemui.statusbar.BaseStatusBar.start(BaseStatusBar.java:215)
E/AndroidRuntime( 483): at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:339)
E/AndroidRuntime( 483): at com.android.systemui.SystemUIService.onCreate(SystemUIService.java:94)
E/AndroidRuntime( 483): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2489)
E/AndroidRuntime( 483): ... 10 more