[Q][DEV-ONLY] PORT SMS COUNTER from XPERIA J/Miro - Sony Xperia S, Acro S, Ion

Hello everyone!
I'm trying to port SMS Counter from Xperia J to Xperia S JB Settings.apk.
I know @niaboc79 inluded it in his eXistenZ v2, however wifi tethering doesn't work with 96 firmware.
Probably it'll be a silly thing but I haven't been able to find a solution yet to this problem. Here's the logcat:
Code:
I/ActivityManager( 574): START {act=android.intent.action.MAIN cmp=com.android.settings/.SubSettings (has extras) u=0} from pid 2145
E/AndroidRuntime( 2145): FATAL EXCEPTION: main
E/AndroidRuntime( 2145): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: [B][B][B]android.view.InflateException: Binary XML file line #2: Error inflating class appwidget-provider[/B][/B][/B]
E/AndroidRuntime( 2145): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2071)
E/AndroidRuntime( 2145): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2096)
E/AndroidRuntime( 2145): at android.app.ActivityThread.access$600(ActivityThread.java:138)
E/AndroidRuntime( 2145): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1207)
E/AndroidRuntime( 2145): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2145): at android.os.Looper.loop(Looper.java:213)
E/AndroidRuntime( 2145): at android.app.ActivityThread.main(ActivityThread.java:4787)
E/AndroidRuntime( 2145): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2145): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 2145): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
E/AndroidRuntime( 2145): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
E/AndroidRuntime( 2145): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:110)
E/AndroidRuntime( 2145): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2145): Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class appwidget-provider
E/AndroidRuntime( 2145): at android.preference.GenericInflater.createItemFromTag(GenericInflater.java:441)
E/AndroidRuntime( 2145): at android.preference.GenericInflater.inflate(GenericInflater.java:317)
E/AndroidRuntime( 2145): at android.preference.GenericInflater.inflate(GenericInflater.java:263)
E/AndroidRuntime( 2145): at android.preference.PreferenceManager.inflateFromResource(PreferenceManager.java:269)
E/AndroidRuntime( 2145): at android.preference.PreferenceFragment.addPreferencesFromResource(PreferenceFragment.java:285)
E/AndroidRuntime( 2145): at com.sonyericsson.settings.smscounter.SmsCounterSettings.onCreate(SmsCounterSettings.java:193)
E/AndroidRuntime( 2145): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:800)
E/AndroidRuntime( 2145): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1039)
E/AndroidRuntime( 2145): at android.app.BackStackRecord.run(BackStackRecord.java:635)
E/AndroidRuntime( 2145): at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1405)
E/AndroidRuntime( 2145): at android.app.Activity.performStart(Activity.java:5017)
E/AndroidRuntime( 2145): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2044)
E/AndroidRuntime( 2145): ... 12 more
E/AndroidRuntime( 2145): Caused by: java.lang.ClassNotFoundException: android.preference.appwidget-provider
E/AndroidRuntime( 2145): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
E/AndroidRuntime( 2145): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
E/AndroidRuntime( 2145): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
E/AndroidRuntime( 2145): at android.preference.GenericInflater.createItem(GenericInflater.java:375)
E/AndroidRuntime( 2145): at android.preference.GenericInflater.onCreateItem(GenericInflater.java:417)
E/AndroidRuntime( 2145): at android.preference.GenericInflater.createItemFromTag(GenericInflater.java:428)
E/AndroidRuntime( 2145): ... 23 more
D/SomcTransmitPowerBroadcastReceiver( 895): Old PowerLevel: 3, current PowerLevel: 3
W/ActivityManager( 574): Force finishing activity com.android.settings/.SubSettings
So the error is Error inflating class appwidget-provider, but layouts and xml are the same as in the original file
Any idea would be much appreciated, this is driving me crazy.
Thanks in advance.

Any answer yet? Does anybody know something about this?

Tip.. Use Xperia Miro settings apk.. As A based like mine.
Sent from my LT26i using xda app-developers app

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from my LT26i using xda app-developers app

TrinityHaxxorX said:
View attachment 2310843
Sent from my LT26i using xda app-developers app
Click to expand...
Click to collapse
Thanks for the reply Trinity
That's what I was doing till know. However, I'd feel like to try implementing it in our settings.apk and all seems right except from the issue above. I've changed the layouts from Linear to Relative since it's said in StackOverflow that some layouts are not available with widgets, but no results yet.
PD: does wifi tethering work for you with those settings.apk? Mine not with .96

Solved!!!
It was only an identifier which was bad written. It supposed to be ..58 and I've written ..59
Soon I'll write a guide of how to
Please, mods close the thread.
Enviado desde mi LT26i usando Tapatalk

Related

After recompiling HTC Music FC's

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.......

Issue with new Theme

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.

Spontanius reboots on my ONE

Hi
During the last days I have experienced spontanius reboots of my ONE
The backtrace from logcat is:
E/AndroidRuntime( 1802): *** FATAL EXCEPTION IN SYSTEM PROCESS: android.server.ServerThread
E/AndroidRuntime( 1802): java.lang.RuntimeException: Error receiving broadcast Intent { act=com.htc.sync.provider.weather.result cat=[1__] flg=0x10 (has extras) } in [email protected]
E/AndroidRuntime( 1802): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:794)
E/AndroidRuntime( 1802): at android.os.Handler.handleCallback(Handler.java:608)
E/AndroidRuntime( 1802): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 1802): at android.os.Looper.loop(Looper.java:156)
E/AndroidRuntime( 1802): at com.android.server.ServerThread.run(SystemServer.java:896)
E/AndroidRuntime( 1802): Caused by: java.lang.ClassCastException: com.htc.util.weather.WSPData cannot be cast to com.htc.util.weather.WSPPData
E/AndroidRuntime( 1802): at com.htc.lockscreen.weather.LocationCtrl$3.onReceive(LocationCtrl.java:391)
E/AndroidRuntime( 1802): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:781)
E/AndroidRuntime( 1802): ...
From looking at that I would suspect that it has something to do with
any app or widget that uses "weather data". Since it is not 100%
reproduceable I will try to remove all those apps and widget and
see if it makes a difference.
If it makes I difference. I have also disabled Googles Location service
Does anyone has similiar problems?
Thanks
max

[Q] JB 4.2.1 Photosphere force closes

Hi, I just flashed 4.2.1 on my phone and found that PhotoSphere force closes whenever I choose it in the Camera app. adb logcat reveals something like:
W/ApplicationContext( 2892): Unable to create external files directory
E/LightCycle-storage( 2892): Sessions root directory could not be created.
D/AndroidRuntime( 2892): Shutting down VM
W/dalvikvm( 2892): threadid=1: thread exiting with uncaught exception (group=0x41e6e930)
E/AndroidRuntime( 2892): FATAL EXCEPTION: main
E/AndroidRuntime( 2892): java.lang.NullPointerException
E/AndroidRuntime( 2892): at com.google.android.apps.lightcycle.storage.LocalFileStorageManager.cleanUpOldSessions(LocalFileStorageManager.java:428)
E/AndroidRuntime( 2892): at com.google.android.apps.lightcycle.storage.LocalFileStorageManager.init(LocalFileStorageManager.java:66)
E/AndroidRuntime( 2892): at com.google.android.apps.lightcycle.PanoramaModule.onResumeAfterSuper(PanoramaModule.java:276)
E/AndroidRuntime( 2892): at com.android.camera.CameraActivity.openModule(CameraActivity.java:175)
E/AndroidRuntime( 2892): at com.android.camera.CameraActivity.onCameraSelected(CameraActivity.java:161)
E/AndroidRuntime( 2892): at com.android.camera.ui.CameraSwitcher.onCameraSelected(CameraSwitcher.java:104)
E/AndroidRuntime( 2892): at com.android.camera.ui.CameraSwitcher.access$000(CameraSwitcher.java:38)
E/AndroidRuntime( 2892): at com.android.camera.ui.CameraSwitcher$1.onClick(CameraSwitcher.java:130)
E/AndroidRuntime( 2892): at android.view.View.performClick(View.java:4202)
E/AndroidRuntime( 2892): at android.view.View$PerformClick.run(View.java:17340)
E/AndroidRuntime( 2892): at android.os.Handler.handleCallback(Handler.java:725)
E/AndroidRuntime( 2892): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 2892): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 2892): at android.app.ActivityThread.main(ActivityThread.java:5039)
E/AndroidRuntime( 2892): at java.lang.reflect.Method.invokeNative(NativeMethod)
E/AndroidRuntime( 2892): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 2892): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
E/AndroidRuntime( 2892): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
E/AndroidRuntime( 2892): at dalvik.system.NativeStart.main(Native Method)
I cannot find the source of LightCycle on the web, but apparently, it seems to be a permission issue because it says "E/LightCycle-storage( 2892): Sessions root directory could not be created.". Anyone can give me some hints on how to solve? Thanks!
Francisco
Solved. the /sdcard/Android/data directory apparently did not have the right permissions. Reset the directory permissions through adb shell and all is fine now.
frleong said:
Hi, I just flashed 4.2.1 on my phone and found that PhotoSphere force closes whenever I choose it in the Camera app. adb logcat reveals something like:
W/ApplicationContext( 2892): Unable to create external files directory
E/LightCycle-storage( 2892): Sessions root directory could not be created.
D/AndroidRuntime( 2892): Shutting down VM
W/dalvikvm( 2892): threadid=1: thread exiting with uncaught exception (group=0x41e6e930)
E/AndroidRuntime( 2892): FATAL EXCEPTION: main
E/AndroidRuntime( 2892): java.lang.NullPointerException
E/AndroidRuntime( 2892): at com.google.android.apps.lightcycle.storage.LocalFileStorageManager.cleanUpOldSessions(LocalFileStorageManager.java:428)
E/AndroidRuntime( 2892): at com.google.android.apps.lightcycle.storage.LocalFileStorageManager.init(LocalFileStorageManager.java:66)
E/AndroidRuntime( 2892): at com.google.android.apps.lightcycle.PanoramaModule.onResumeAfterSuper(PanoramaModule.java:276)
E/AndroidRuntime( 2892): at com.android.camera.CameraActivity.openModule(CameraActivity.java:175)
E/AndroidRuntime( 2892): at com.android.camera.CameraActivity.onCameraSelected(CameraActivity.java:161)
E/AndroidRuntime( 2892): at com.android.camera.ui.CameraSwitcher.onCameraSelected(CameraSwitcher.java:104)
E/AndroidRuntime( 2892): at com.android.camera.ui.CameraSwitcher.access$000(CameraSwitcher.java:38)
E/AndroidRuntime( 2892): at com.android.camera.ui.CameraSwitcher$1.onClick(CameraSwitcher.java:130)
E/AndroidRuntime( 2892): at android.view.View.performClick(View.java:4202)
E/AndroidRuntime( 2892): at android.view.View$PerformClick.run(View.java:17340)
E/AndroidRuntime( 2892): at android.os.Handler.handleCallback(Handler.java:725)
E/AndroidRuntime( 2892): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 2892): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 2892): at android.app.ActivityThread.main(ActivityThread.java:5039)
E/AndroidRuntime( 2892): at java.lang.reflect.Method.invokeNative(NativeMethod)
E/AndroidRuntime( 2892): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 2892): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
E/AndroidRuntime( 2892): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
E/AndroidRuntime( 2892): at dalvik.system.NativeStart.main(Native Method)
I cannot find the source of LightCycle on the web, but apparently, it seems to be a permission issue because it says "E/LightCycle-storage( 2892): Sessions root directory could not be created.". Anyone can give me some hints on how to solve? Thanks!
Francisco
Click to expand...
Click to collapse

[Help with Xperia T JB SystemUI logcat]

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

Categories

Resources