Issue with new Theme - Droid Incredible Q&A, Help & Troubleshooting

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.

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

[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

onda vi30 - unable to change chinese language

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

[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

[Guide][tut] [LP/MM/+] Color your Icons and Text from Settings (color mods)

Hello guys
Here come a new tut
Where you can color all your icons and text
Example wifi / bluetooth / network/ user profile icon/ clock text and more depends on your idea
ok lets start work
All you need is
Deodexed Systemui
1. Decompile the SystemUI.apk
2.Download this View attachment Systemui.zip
3. Merge the Code
4. If you dont have this color picker preference to settings (need only this one) add this to settings..
Now look for SystemUI.apk/res/layouts
in that the xml code which starts with
Code:
<TextView
or
<ImageView
are the codes of text and icons you are able to make color mods
Example :
ICON color change
open systemui.apk/res/layout/signal_cluster_view.xml
find codes start with
Code:
[COLOR="Blue"]<ImageView[/COLOR] android:id="@id/no_sim" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginEnd="@dimen/status_bar_no_sim_margin_end" />
and replace with this
Code:
[COLOR="blue"]<com.android.settings.rz.Image key="[COLOR="Red"]img1[/COLOR]"[/COLOR] android:id="@id/no_sim" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginEnd="@dimen/status_bar_no_sim_margin_end" />
here key="img1" play role
where in settings you need to define in display_settings.xml or your own
Code:
<com.android.settings.rz.colorpicker.ColorPickerPreference android:title="Icon1" android:key="[COLOR="red"]img1[/COLOR]" android:defaultValue="0xffffffff" alphaSlider="true" hexValue="true" />
if you want other just change key
Text color change
open systemui.apk/res/layout/keyguard_weather_view.xml
find codes start with
Code:
[COLOR="Blue"]<TextView[/COLOR] android:textSize="15.0sp" android:textStyle="bold" android:layout_gravity="right" android:id="@id/city" android:layout_width="wrap_content" android:layout_height="wrap_content" android:includeFontPadding="false" />
and replace with this
Code:
[COLOR="blue"]<com.android.settings.rz.Text key="[COLOR="Red"]text1[/COLOR]"[/COLOR] android:textSize="15.0sp" android:textStyle="bold" android:layout_gravity="right" android:id="@id/city" android:layout_width="wrap_content" android:layout_height="wrap_content" android:includeFontPadding="false" />
here key="text1" play role
where in settings you need to define in display_settings.xml or your own
Code:
<com.android.settings.rz.colorpicker.ColorPickerPreference android:title="Text1" android:key="[COLOR="red"]text1[/COLOR]" android:defaultValue="0xffffffff" alphaSlider="true" hexValue="true" />
if you want other just change key
Thanks to Alvin os and maaadon team for being with me all the time
Dont forget to mention me if you use my work
Great job bro ^^
Sent from MWA Pro-Spect V1.0.0 On My Z5
Works perfectly man, very simple and easy mod
Help
Bloodlvst said:
Works perfectly man, very simple and easy mod
Click to expand...
Click to collapse
please give me your SystemUI and settings , for I tried to learn :angel:
Yudistira1988 said:
please give me your SystemUI and settings , for I tried to learn :angel:
Click to expand...
Click to collapse
Why you need it, to use ?
This guide is very simple.
Pandemic said:
Why you need it, to use ?
This guide is very simple.
Click to expand...
Click to collapse
I got the error " parameter "
maybe I need smali version 2.0
help me
venkat kamesh said:
Hello guys
Here come a new tut
Where you can color all your icons and text
Example wifi / bluetooth / network/ user profile icon/ clock text and more depends on your idea
ok lets start work...................................................
Click to expand...
Click to collapse
smali error log
Log For : SystemUI.apk
Log Type : Recompiling
Log Recorded At : Mon 09-01-2017 14:43:56.61
Log Recorded By : Advanced ApkTool v4.2.0 By BDFreak
------------------------------------------------------
..\3-Out\SystemUI.apk\smali\com\android\settings\rz\Image.smali[27,4] Error for input '.parameter': Invalid directive
..\3-Out\SystemUI.apk\smali\com\android\settings\rz\Image.smali[28,4] Error for input '.parameter': Invalid directive
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/android/settings/rz/Image.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:71)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:55)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:41)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:385)
at brut.androlib.Androlib.buildSources(Androlib.java:312)
at brut.androlib.Androlib.build(Androlib.java:295)
at brut.androlib.Androlib.build(Androlib.java:268)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
------------------------------------------------------
Where the screen?
D6503 cihazımdan Tapatalk kullanılarak gönderildi
Zidni said:
smali error log
------------------------------------------------------
Click to expand...
Click to collapse
Please Use apktool 2.1.1
Nothing went wrong cheers
yakupTR said:
Where the screen?
D6503 cihazımdan Tapatalk kullanılarak gönderildi
Click to expand...
Click to collapse
This mod dont come with screen
Please Read them ... in example i gave sim card
if you apply this code for network Cluster ... Default is white
but from settings you can change to any color you need ...
so if i start to provide SS .. that will be endless
Hope you got my point
venkat kamesh said:
Please Use apktool 2.1.1
Nothing went wrong cheers
Click to expand...
Click to collapse
apparently i used more latest apktool v2.2.1 on 6.0
@venkat kamesh bro, does this color mod work for TextClock ?
Edit:
I tried this mod and got recompiling error (used Apktool 2.1.1) :
...'.parameter' invalid directive
So I checked the smalis and found that they had '.parameter' element in them which is actually found in smalis decompiled using Apktool v1.5.2 or below.
So I deleted the .parameter element and tried to recompile and it successfully recompiled. (Really noobish work, I know)
I signed the systemUI and pushed back to system. But it gave systemUI force close.
Please review the smalis bro. Help please.
Bloodlvst said:
Works perfectly man, very simple and easy mod
Click to expand...
Click to collapse
Bro how did you make it work please explain? It will be much helpful to some noob devs like me.
nitesh9 said:
Bro how did you make it work please explain? It will be much helpful to some noob devs like me.
Click to expand...
Click to collapse
Bro What is you android and apktool version?
nitesh9 said:
@venkat kamesh bro, does this color mod work for TextClock ?
Please review the smalis bro. Help please.
Click to expand...
Click to collapse
nitesh9 said:
Bro how did you make it work please explain? It will be much helpful to some noob devs like me.
Click to expand...
Click to collapse
Zidni said:
Bro What is you android and apktool version?
Click to expand...
Click to collapse
i used apktool ver 2.0 /2.1
in this case there is another process to convert old smali to new
I will explain when i am free bro
No More Recompile Problem
nitesh9 said:
Bro how did you make it work please explain? It will be much helpful to some noob devs like me.
Click to expand...
Click to collapse
Smali bug fixed now......
it will work on marshmallow 6.0+ & LP 5+(hopefully)
use the attached smali...
hit thanks if work :good:
Zidni said:
Smali bug fixed now......
it will work on marshmallow 6.0+ & LP 5+(hopefully)
use the attached smali...
hit thanks if work :good:
Click to expand...
Click to collapse
Thanks bro, will try and revert back soon.
Update:
The new smali worked like charm. Thanks bro.
venkat kamesh said:
Hello guys
Here come a new tut
Where you can color all your icons and text
Example wifi / bluetooth / network/ user profile icon/ clock text and more depends on your idea
Click to expand...
Click to collapse
bro, its not compiling!
log:-
Recompiling "SystemUI.apk" With New Signature,
in work area "_WorkArea4", using "apktool_2.1.1.jar"
With Tickle My Android 14.3.0.0.
(tinyurl.com\ticklemyandroid)
----------------
Installed Framework File(s):
1.apk
63.apk
----------------
I: Using Apktool 2.1.1
I: Smaling smali folder into classes.dex...
..\_WorkArea4\_working\SystemUI.apk\smali\com\android\settings\rz\Image.smali[27,4] Error for input '.parameter': Invalid directive
..\_WorkArea4\_working\SystemUI.apk\smali\com\android\settings\rz\Image.smali[28,4] Error for input '.parameter': Invalid directive
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: com/android/settings/rz/Image.smali
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:67)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:51)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:38)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:364)
at brut.androlib.Androlib.buildSources(Androlib.java:295)
at brut.androlib.Androlib.build(Androlib.java:278)
at brut.androlib.Androlib.build(Androlib.java:254)
at brut.apktool.Main.cmdBuild(Main.java:224)
at brut.apktool.Main.main(Main.java:84)
----------------
Recompile Not Successful!
Can anyone put some pictures here?
I am having issues with it inflating. FC statusbar.
E/AndroidRuntime( 1123): FATAL EXCEPTION: main
E/AndroidRuntime( 1123): Process: com.android.systemui, PID: 1123
E/AndroidRuntime( 1123): android.view.InflateException: Binary XML file line #5: Error inflating class com.android.settings.rz.Image
E/AndroidRuntime( 1123): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:713)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.rInflate(LayoutInflater.java:761)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.rInflate(LayoutInflater.java:769)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.parseInclude(LayoutInflater.java:855)
E/AndroidRuntime( 1123): at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
E/AndroidRuntime( 1123): at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:631)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.parseInclude(Native Method)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.rInflate(LayoutInflater.java:751)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.rInflate(LayoutInflater.java:769)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.rInflate(LayoutInflater.java:769)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.rInflate(LayoutInflater.java:769)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.parseInclude(LayoutInflater.java:855)
E/AndroidRuntime( 1123): at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
E/AndroidRuntime( 1123): at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:631)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.parseInclude(Native Method)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.rInflate(LayoutInflater.java:751)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.inflate(LayoutInflater.java:498)
E/AndroidRuntime( 1123): at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
E/AndroidRuntime( 1123): at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:631)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.inflate(Native Method)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.inflate(LayoutInflater.java:398)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.inflate(LayoutInflater.java:354)
E/AndroidRuntime( 1123): at android.view.View.inflate(View.java:18465)
E/AndroidRuntime( 1123): at com.android.systemui.statusbar.phone.PhoneStatusBar.makeStatusBarView(PhoneStatusBar.java:536)
E/AndroidRuntime( 1123): at com.android.systemui.statusbar.phone.PhoneStatusBar.addStatusBarWindow(PhoneStatusBar.java:3564)
E/AndroidRuntime( 1123): at com.android.systemui.statusbar.phone.PhoneStatusBar.createAndAddWindows(PhoneStatusBar.java:3535)
E/AndroidRuntime( 1123): at com.android.systemui.statusbar.BaseStatusBar.start(BaseStatusBar.java:426)
E/AndroidRuntime( 1123): at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:491)
E/AndroidRuntime( 1123): at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
E/AndroidRuntime( 1123): at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:631)
E/AndroidRuntime( 1123): at com.android.systemui.statusbar.phone.PhoneStatusBar.start(Native Method)
E/AndroidRuntime( 1123): at com.android.systemui.statusbar.SystemBars.createStatusBarFromConfig(SystemBars.java:106)
E/AndroidRuntime( 1123): at com.android.systemui.statusbar.SystemBars.onNoService(SystemBars.java:58)
E/AndroidRuntime( 1123): at com.android.systemui.statusbar.ServiceMonitor.startService(ServiceMonitor.java:228)
E/AndroidRuntime( 1123): at com.android.systemui.statusbar.ServiceMonitor.access$000(ServiceMonitor.java:49)
E/AndroidRuntime( 1123): at com.android.systemui.statusbar.ServiceMonitor$1.handleMessage(ServiceMonitor.java:73)
E/AndroidRuntime( 1123): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 1123): at android.os.Looper.loop(Looper.java:146)
E/AndroidRuntime( 1123): at android.app.ActivityThread.main(ActivityThread.java:5598)
E/AndroidRuntime( 1123): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1123): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 1123): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
E/AndroidRuntime( 1123): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
E/AndroidRuntime( 1123): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
E/AndroidRuntime( 1123): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 1123): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.settings.rz.Image" on path: DexPathList[[zip file "/system/framework/twframework.jar", zip file "/system/framework/sechardware.jar", zip file "/system/framework/com.broadcom.bt.jar", zip file "/system/priv-app/SystemUI.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib, /lib]]
E/AndroidRuntime( 1123): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
E/AndroidRuntime( 1123): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
E/AndroidRuntime( 1123): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.createView(LayoutInflater.java:565
W/ActivityManager( 654): Process com.android.systemui has crashed too many times: killing!
RealWelder said:
I am having issues with it inflating. FC statusbar.
E/AndroidRuntime( 1123): FATAL EXCEPTION: main
E/AndroidRuntime( 1123): Process: com.android.systemui, PID: 1123
E/AndroidRuntime( 1123): android.view.InflateException: Binary XML file line #5: Error inflating class com.android.settings.rz.Image
E/AndroidRuntime( 1123): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:713)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.rInflate(LayoutInflater.java:761)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.rInflate(LayoutInflater.java:769)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.parseInclude(LayoutInflater.java:855)
E/AndroidRuntime( 1123): at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
E/AndroidRuntime( 1123): at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:631)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.parseInclude(Native Method)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.rInflate(LayoutInflater.java:751)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.rInflate(LayoutInflater.java:769)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.rInflate(LayoutInflater.java:769)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.rInflate(LayoutInflater.java:769)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.parseInclude(LayoutInflater.java:855)
E/AndroidRuntime( 1123): at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
E/AndroidRuntime( 1123): at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:631)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.parseInclude(Native Method)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.rInflate(LayoutInflater.java:751)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.inflate(LayoutInflater.java:498)
E/AndroidRuntime( 1123): at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
E/AndroidRuntime( 1123): at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:631)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.inflate(Native Method)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.inflate(LayoutInflater.java:398)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.inflate(LayoutInflater.java:354)
E/AndroidRuntime( 1123): at android.view.View.inflate(View.java:18465)
E/AndroidRuntime( 1123): at com.android.systemui.statusbar.phone.PhoneStatusBar.makeStatusBarView(PhoneStatusBar.java:536)
E/AndroidRuntime( 1123): at com.android.systemui.statusbar.phone.PhoneStatusBar.addStatusBarWindow(PhoneStatusBar.java:3564)
E/AndroidRuntime( 1123): at com.android.systemui.statusbar.phone.PhoneStatusBar.createAndAddWindows(PhoneStatusBar.java:3535)
E/AndroidRuntime( 1123): at com.android.systemui.statusbar.BaseStatusBar.start(BaseStatusBar.java:426)
E/AndroidRuntime( 1123): at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:491)
E/AndroidRuntime( 1123): at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
E/AndroidRuntime( 1123): at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:631)
E/AndroidRuntime( 1123): at com.android.systemui.statusbar.phone.PhoneStatusBar.start(Native Method)
E/AndroidRuntime( 1123): at com.android.systemui.statusbar.SystemBars.createStatusBarFromConfig(SystemBars.java:106)
E/AndroidRuntime( 1123): at com.android.systemui.statusbar.SystemBars.onNoService(SystemBars.java:58)
E/AndroidRuntime( 1123): at com.android.systemui.statusbar.ServiceMonitor.startService(ServiceMonitor.java:228)
E/AndroidRuntime( 1123): at com.android.systemui.statusbar.ServiceMonitor.access$000(ServiceMonitor.java:49)
E/AndroidRuntime( 1123): at com.android.systemui.statusbar.ServiceMonitor$1.handleMessage(ServiceMonitor.java:73)
E/AndroidRuntime( 1123): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 1123): at android.os.Looper.loop(Looper.java:146)
E/AndroidRuntime( 1123): at android.app.ActivityThread.main(ActivityThread.java:5598)
E/AndroidRuntime( 1123): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1123): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 1123): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
E/AndroidRuntime( 1123): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
E/AndroidRuntime( 1123): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
E/AndroidRuntime( 1123): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 1123): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.settings.rz.Image" on path: DexPathList[[zip file "/system/framework/twframework.jar", zip file "/system/framework/sechardware.jar", zip file "/system/framework/com.broadcom.bt.jar", zip file "/system/priv-app/SystemUI.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib, /lib]]
E/AndroidRuntime( 1123): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
E/AndroidRuntime( 1123): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
E/AndroidRuntime( 1123): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
E/AndroidRuntime( 1123): at android.view.LayoutInflater.createView(LayoutInflater.java:565
W/ActivityManager( 654): Process com.android.systemui has crashed too many times: killing!
Click to expand...
Click to collapse
Use the latest fixed smali by @Zidni above.

Categories

Resources