[Q] SuperSU on Galaxy S4 - General Questions and Answers

Hello,
I installed UPDATE-SuperSU-v1.65.zip with the TWRP recovery image on my Galaxy S4.
The installation completed successfully. But when booting into Android it does not start.
Logcat shows the attached entries. Did I do something wrong?
Many thanks,
Rainer
Code:
E/dalvikvm( 7847): Dex cache directory isn't writable: /data/dalvik-cache
I/dalvikvm( 7847): Unable to open or create cache for
/system/app/Superuser.apk (/data/dalvik-
cache/[email protected]@[email protected])
V/WindowManager( 788): Window{42dd32c8 u0
Keyguard}mOrientationRequetedFromKeyguard=false
D/AndroidRuntime( 7847): Shutting down VM
W/dalvikvm( 7847): threadid=1: thread exiting with uncaught exception
(group=0x4113aac8)
E/AndroidRuntime( 7847): FATAL EXCEPTION: main
E/AndroidRuntime( 7847): java.lang.RuntimeException: Unable to instantiate
application eu.chainfire.supersu.Application: java.lang.ClassNotFoundException:
Didn't find class "eu.chainfire.supersu.Application" on path:
/system/app/Superuser.apk
E/AndroidRuntime( 7847): at
android.app.LoadedApk.makeApplication(LoadedApk.java:516)
E/AndroidRuntime( 7847): at
android.app.ActivityThread.handleBindApplication(ActivityThread.java:4568)
E/AndroidRuntime( 7847): at
android.app.ActivityThread.access$1400(ActivityThread.java:152)
E/AndroidRuntime( 7847): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1342)
E/AndroidRuntime( 7847): at
android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 7847): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 7847): at
android.app.ActivityThread.main(ActivityThread.java:5328)
E/AndroidRuntime( 7847): at java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime( 7847): at
java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 7847): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
E/AndroidRuntime( 7847): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
E/AndroidRuntime( 7847): at dalvik.system.NativeStart.main(Native
Method)
E/AndroidRuntime( 7847): Caused by: java.lang.ClassNotFoundException: Didn't
find class "eu.chainfire.supersu.Application" on path: /system/app/Superuser.apk
E/AndroidRuntime( 7847): at
dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
E/AndroidRuntime( 7847): at
java.lang.ClassLoader.loadClass(ClassLoader.java:501)
E/AndroidRuntime( 7847): at
java.lang.ClassLoader.loadClass(ClassLoader.java:461)
E/AndroidRuntime( 7847): at
android.app.Instrumentation.newApplication(Instrumentation.java:985)
E/AndroidRuntime( 7847): at
android.app.LoadedApk.makeApplication(LoadedApk.java:507)
E/AndroidRuntime( 7847): ... 11 more

/system/app/Superuser.apk is there
I forgot to mention, that Superuser.apk
[email protected]:/ $ ls -l /system/app/Superuser.apk
-rw-r--r-- root root 1966976 1970-01-24 21:18 Superuser.apk
[email protected]:/ $
is available.

Related

[Q] Attempting to theme Google Plus (G+) App

So i'm trying to theme a google+ app for personal use, and I want to edit the XML files to get a full change out of it. The problem is that it force closes when I try to run the app on my phone (no problems decomp or compiling with apk manager or apktool)
The logcat (can't add links yet, in code tag below) points to a FATAL EXCEPTION in main, and goes on to state:
"Caused by: java.lang.RuntimeException: Binary XML file line #4: You must supply a layout_width attribute."
Of course I can't find anything labeled "main" and there I don't know which XML file to edit, and do not see anything wrong in the layout XML files (again, I haven't edited the files at all, it's simply decompiling an untouched app then compiling and installing to a phone and emulator - both resulting in a FC of the app)
Png editing is of course no issue, but it's not quite giving the effect I want (black on forest green is tough to read)
Any assistance or perhaps a nudge in the right direction so I can figure this out and start theming apps?
Code:
W/dalvikvm( 466): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
E/AndroidRuntime( 466): FATAL EXCEPTION: main
E/AndroidRuntime( 466): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.apps.plus/com.google.android.apps.circles.accounts.SelectAccountActivity}: java.lang.RuntimeException: Binary XML file line #4: You must supply a layout_width attribute.
E/AndroidRuntime( 466): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
E/AndroidRuntime( 466): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
E/AndroidRuntime( 466): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
E/AndroidRuntime( 466): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
E/AndroidRuntime( 466): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 466): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 466): at android.app.ActivityThread.main(ActivityThread.java:4627)
E/AndroidRuntime( 466): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 466): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 466): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
E/AndroidRuntime( 466): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
E/AndroidRuntime( 466): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 466): Caused by: java.lang.RuntimeException: Binary XML file line #4: You must supply a layout_width attribute.
E/AndroidRuntime( 466): at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:491)
E/AndroidRuntime( 466): at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:3592)
E/AndroidRuntime( 466): at android.view.ViewGroup$MarginLayoutParams.<init>(ViewGroup.java:3672)
E/AndroidRuntime( 466): at android.widget.LinearLayout$LayoutParams.<init>(LinearLayout.java:1395)
E/AndroidRuntime( 466): at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:1321)
E/AndroidRuntime( 466): at android.widget.LinearLayout.generateLayoutParams(LinearLayout.java:45)
E/AndroidRuntime( 466): at android.view.LayoutInflater.rInflate(LayoutInflater.java:620)
E/AndroidRuntime( 466): at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
E/AndroidRuntime( 466): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
E/AndroidRuntime( 466): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
E/AndroidRuntime( 466): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198)
E/AndroidRuntime( 466): at android.app.Activity.setContentView(Activity.java:1647)
E/AndroidRuntime( 466): at com.google.android.apps.circles.accounts.SelectAccountActivity.onCreate(SelectAccountActivity.java:97)
E/AndroidRuntime( 466): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/AndroidRuntime( 466): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
E/AndroidRuntime( 466): ... 11 more
W/ActivityManager( 61): Force finishing activity com.google.android.apps.plus/com.google.android.apps.circles.accounts.SelectAccountActivity
W/ActivityManager( 61): Activity pause timeout for HistoryRecord{44ffd1d8 com.google.android.apps.plus/com.google.android.apps.circles.accounts.SelectAccountActivity}
W/ActivityManager( 61): Activity destroy timeout for HistoryRecord{44f51990 com.google.android.apps.plus/com.google.android.apps.plusone.app.HomeScreenActivity}
W/ActivityManager( 61): Activity destroy timeout for HistoryRecord{44ffd1d8 com.google.android.apps.plus/com.google.android.apps.circles.accounts.SelectAccountActivity}

[Q] N.O.V.A on CM7

Hi,
i just can't get Gamelofts N.O.V.A too run. Using CM7 with GO Launcher EX.
Usually the version for GalaxyTab P1000 works but not in this case.
It seems it has problems with the SD Card as alogcat shows below.
Any ideas? Thanks for any help.
--snip
Code:
I/GameInstaller( 6780): File required: weapon_sniper_rifle.pack
I/System.out( 6780): STATE_CHECK_ERRORSSTATE_CHECK_ERRORSSTATE_CHECK_ERRORS
E/ ( 6780): statfs sdcard/external_sd failed, errno: 2
W/dalvikvm( 6780): threadid=9: thread exiting with uncaught exception (group=0x40015560)
E/AndroidRuntime( 6780): FATAL EXCEPTION: Thread-10
E/AndroidRuntime( 6780): java.lang.IllegalArgumentException
E/AndroidRuntime( 6780): at android.os.StatFs.native_setup(Native Method)
E/AndroidRuntime( 6780): at android.os.StatFs.<init>(StatFs.java:32)
E/AndroidRuntime( 6780): at com.gameloft.android.GAND.GloftNOHP.GameInstaller.checkSDAvailable(GameInstaller.java:1832)
E/AndroidRuntime( 6780): at com.gameloft.android.GAND.GloftNOHP.GameInstaller.update(GameInstaller.java:1008)
E/AndroidRuntime( 6780): at com.gameloft.android.GAND.GloftNOHP.GameInstaller.run(GameInstaller.java:842)
E/AndroidRuntime( 6780): at java.lang.Thread.run(Thread.java:1019)
W/ActivityManager( 1454): Force finishing activity com.gameloft.android.GAND.GloftNOHP/.GameInstaller

Email policy mod with ParanoidAndroid

Hi All,
I've installed Paranoid Android 3.15, it works fine except when I install email+exchange packages with policy modded. After some minutes email start to crash and it never ends .
Below the log:
W/dalvikvm( 5178): threadid=1: thread exiting with uncaught exception (group=0x4
1d09a08)
E/AndroidRuntime( 5178): FATAL EXCEPTION: main
E/AndroidRuntime( 5178): java.lang.RuntimeException: Unable to bind to service [email protected] with Intent { act=com.android.email.POLICY_INTENT }: java.lang.SecurityException: No active admin ComponentInfo{com.android.email/com.android.email.SecurityPolicy$PolicyAdmin}
E/AndroidRuntime( 5178): at android.app.ActivityThread.handleBindService(ActivityThread.java:2700)
E/AndroidRuntime( 5178): at android.app.ActivityThread.access$1700(ActivityThread.java:156)
E/AndroidRuntime( 5178): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1337)
E/AndroidRuntime( 5178): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 5178): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 5178): at android.app.ActivityThread.main(ActivityThread.java:5234)
E/AndroidRuntime( 5178): at java.lang.reflect.Method.invokeNative(NativeMethod)
E/AndroidRuntime( 5178): at java.lang.reflect.Method.invoke(Method.java:525)
E/AndroidRuntime( 5178): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:799)
E/AndroidRuntime( 5178): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:566)
E/AndroidRuntime( 5178): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 5178): Caused by: java.lang.SecurityException: No active admin ComponentInfo{com.android.email/com.android.email.SecurityPolicy$PolicyAdmin}
E/AndroidRuntime( 5178): at android.os.Parcel.readException(Parcel.java:1425)
E/AndroidRuntime( 5178): at android.os.Parcel.readException(Parcel.java:1379)
E/AndroidRuntime( 5178): at android.app.admin.IDevicePolicyManager$Stub$Proxy.setPasswordQuality(IDevicePolicyManager.java:889)
E/AndroidRuntime( 5178): at android.app.admin.DevicePolicyManager.setPasswordQuality(DevicePolicyManager.java:295)
E/AndroidRuntime( 5178): at com.android.email.SecurityPolicy.setActivePolicies(SecurityPolicy.java:457)
E/AndroidRuntime( 5178): at com.android.email.SecurityPolicy.<init>(SecurityPolicy.java:87)
E/AndroidRuntime( 5178): at com.android.email.SecurityPolicy.getInstance(SecurityPolicy.java:74)
E/AndroidRuntime( 5178): at com.android.email.service.PolicyService.onBind(PolicyService.java:75)
E/AndroidRuntime( 5178): at android.app.ActivityThread.handleBindService(ActivityThread.java:2687)
E/AndroidRuntime( 5178): ... 10 more
Have you some idea ?

Imageview in XML - adding content

So I am having an issue I cannot work out on my own regarding xml layouts. I have, for the last couple of weeks, been working and learning deeper level xml edits, and have worked out quite a bit on my own, but this one has me stumped. I am trying to add images into systemui, in particular to tw_status_bar_expanded. I have managed to center certain pieces of text, but now I wish to add images to either side of the text, just to add a touch of flare. This is a mock up of what I want it to look like in photoshop; the lines on either side of ongoing and notifications would be the image files. I do need them to to be images, and not blocks declared in xml, for other plans I have for those images.
{
"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"
}
So I got the text centered, drew up a fresh ninepatch file to handle the stretching called notification_accent.9.png, and wrote up some xml code that I had hoped would display the images. The image is stored in res/drawable-xhdpi. But, when I flash the new systemui to my phone, it just repeatedly force closes.
I am sure there are several issues you can see immediately with the following brick of code. I am sure that using fill_parent on the text will override the images, which I will need to work out. But I cannot understand why it is force closing. Here is the bit of code:
Code:
<LinearLayout android:orientation="vertical" android:id="@id/notificationCart" android:background="#ff000000" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/status_bar_expanded_notification_category_height">
<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:layout_gravity="left|center" android:layout_width="wrap_content" android:padding="2.0dip" android:layout_height="@dimen/status_bar_expanded_notification_category_height" android:src="@drawable/notification_accent" android:scaleType="fitXY" />
<TextView android:textSize="@dimen/status_bar_expanded_notification_category_text_size" android:textStyle="bold" android:textColor="@color/notification_category_color" android:gravity="center" android:id="@id/latestNotificationText" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/status_bar_latest_events_title" android:layout_alignParentLeft="false" />
<ImageView android:layout_gravity="right|center" android:layout_width="wrap_content" android:padding="2.0dip" android:layout_height="@dimen/status_bar_expanded_notification_category_height" android:src="@drawable/notification_accent" android:scaleType="fitXY" />
</LinearLayout>
</LinearLayout>
If anyone can give me any kind of insight, it would be very much appreciated. Like I said, I have been trying to learn how to do this on my own, and have done decently so far - but this one just eludes me. If you can help me figure it out, you will get a huge thanks when i post this in themes and apps on the l900 forms as well as in the roms I build that use this.
The logcat would be very useful! And if you could post the code between code tags [ code ] without spaces that'd be better too!
Kryten2k35 said:
The logcat would be very useful! And if you could post the code between code tags [ code ] without spaces that'd be better too!
Click to expand...
Click to collapse
I fixed the code - sorry about that, I posted it up in a hurry last night and didn't have time to fight the formatting. As for a logcat: I ran and I (believe) I have isolated the bit regarding the crash. Not sure that I know what a class inflation error is.
Code:
W/dalvikvm( 3124): threadid=1: thread exiting with uncaught exception (group=0x410b92a0)
E/AndroidRuntime( 3124): FATAL EXCEPTION: main
E/AndroidRuntime( 3124): java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: android.view.InflateException: Binary XML file line #32: Error inflating class <unknown>
E/AndroidRuntime( 3124): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2414)
E/AndroidRuntime( 3124): at android.app.ActivityThread.access$1600(ActivityThread.java:140)
E/AndroidRuntime( 3124): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1309)
E/AndroidRuntime( 3124): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 3124): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 3124): at android.app.ActivityThread.main(ActivityThread.java:4898)
E/AndroidRuntime( 3124): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 3124): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 3124): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1008)
E/AndroidRuntime( 3124): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:775)
E/AndroidRuntime( 3124): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 3124): Caused by: android.view.InflateException: Binary XML file line #32: Error inflating class <unknown>
E/AndroidRuntime( 3124): at android.view.LayoutInflater.createView(LayoutInflater.java:613)
E/AndroidRuntime( 3124): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
E/AndroidRuntime( 3124): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:660)
E/AndroidRuntime( 3124): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
E/AndroidRuntime( 3124): at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
E/AndroidRuntime( 3124): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 3124): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 3124): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 3124): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 3124): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 3124): at android.view.LayoutInflater.parseInclude(LayoutInflater.java:830)
E/AndroidRuntime( 3124): at android.view.LayoutInflater.rInflate(LayoutInflater.java:736)
E/AndroidRuntime( 3124): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
E/AndroidRuntime( 3124): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
E/AndroidRuntime( 3124): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
E/AndroidRuntime( 3124): at android.view.View.inflate(View.java:16434)
E/AndroidRuntime( 3124): at com.android.systemui.statusbar.phone.PhoneStatusBar.makeStatusBarView(PhoneStatusBar.java:539)
E/AndroidRuntime( 3124): at com.android.systemui.statusbar.phone.PhoneStatusBar.addStatusBarWindow(PhoneStatusBar.java:3098)
E/AndroidRuntime( 3124): at com.android.systemui.statusbar.phone.PhoneStatusBar.createAndAddWindows(PhoneStatusBar.java:3067)
E/AndroidRuntime( 3124): at com.android.systemui.statusbar.BaseStatusBar.start(BaseStatusBar.java:456)
E/AndroidRuntime( 3124): at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:488)
E/AndroidRuntime( 3124): at com.android.systemui.SystemUIService.onCreate(SystemUIService.java:94)
E/AndroidRuntime( 3124): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2404)
E/AndroidRuntime( 3124): ... 10 more
E/AndroidRuntime( 3124): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 3124): at java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime( 3124): at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
E/AndroidRuntime( 3124): at android.view.LayoutInflater.createView(LayoutInflater.java:587)
E/AndroidRuntime( 3124): ... 32 more
E/AndroidRuntime( 3124): Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x1/d=0x7f020229 a=-1 r=0x7f020229}
E/AndroidRuntime( 3124): at android.content.res.Resources.loadDrawable(Resources.java:1925)
E/AndroidRuntime( 3124): at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
E/AndroidRuntime( 3124): at android.widget.ImageView.<init>(ImageView.java:120)
E/AndroidRuntime( 3124): at android.widget.ImageView.<init>(ImageView.java:110)
E/AndroidRuntime( 3124): ... 35 more
E/android.os.Debug( 2557): [email protected] > dumpstate -k -t -z -d -o /data/log/dumpstate_app_error
I/ActivityThread( 3204): Pub com.samsung.helphub.provider: com.samsung.helphub.provider.HelpHubContentProvider
I/dumpstate( 3219): begin
Now I did not make any smali edits with this... I am assuming that is where I failed. I am super uncomfortable inside a smali file, but I will do my darndest to get this working.
Hmm, which part is line 32? You should be ok for smali, this is an XML error
Kryten2k35 said:
Hmm, which part is line 32? You should be ok for smali, this is an XML error
Click to expand...
Click to collapse
Its the first image view I had posted. Second line of the code I have up. I have gone into public and given it a declaration, added that declaration into the smali r$drawable, and added it into the ids xml... still no dice.
New logcat -
Code:
E/AndroidRuntime( 5835): FATAL EXCEPTION: main
E/AndroidRuntime( 5835): java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: android.view.InflateException: Binary XML file line #32: Error inflating class <unknown>
E/AndroidRuntime( 5835): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2414)
E/AndroidRuntime( 5835): at android.app.ActivityThread.access$1600(ActivityThread.java:140)
E/AndroidRuntime( 5835): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1309)
E/AndroidRuntime( 5835): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 5835): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 5835): at android.app.ActivityThread.main(ActivityThread.java:4898)
E/AndroidRuntime( 5835): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 5835): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 5835): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1008)
E/AndroidRuntime( 5835): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:775)
E/AndroidRuntime( 5835): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 5835): Caused by: android.view.InflateException: Binary XML file line #32: Error inflating class <unknown>
E/AndroidRuntime( 5835): at android.view.LayoutInflater.createView(LayoutInflater.java:613)
E/AndroidRuntime( 5835): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:660)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.parseInclude(LayoutInflater.java:830)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.rInflate(LayoutInflater.java:736)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
E/AndroidRuntime( 5835): at android.view.View.inflate(View.java:16434)
E/AndroidRuntime( 5835): at com.android.systemui.statusbar.phone.PhoneStatusBar.makeStatusBarView(PhoneStatusBar.java:539)
E/AndroidRuntime( 5835): at com.android.systemui.statusbar.phone.PhoneStatusBar.addStatusBarWindow(PhoneStatusBar.java:3098)
E/AndroidRuntime( 5835): at com.android.systemui.statusbar.phone.PhoneStatusBar.createAndAddWindows(PhoneStatusBar.java:3067)
E/AndroidRuntime( 5835): at com.android.systemui.statusbar.BaseStatusBar.start(BaseStatusBar.java:456)
E/AndroidRuntime( 5835): at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:488)
E/AndroidRuntime( 5835): at com.android.systemui.SystemUIService.onCreate(SystemUIService.java:94)
E/AndroidRuntime( 5835): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2404)
E/AndroidRuntime( 5835): ... 10 more
E/AndroidRuntime( 5835): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 5835): at java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime( 5835): at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.createView(LayoutInflater.java:587)
E/AndroidRuntime( 5835): ... 32 more
[COLOR="Red"]E/AndroidRuntime( 5835): Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x1/d=0x7f020229 a=-1 r=0x7f020229}[/COLOR]
E/AndroidRuntime( 5835): at android.content.res.Resources.loadDrawable(Resources.java:1925)
E/AndroidRuntime( 5835): at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
E/AndroidRuntime( 5835): at android.widget.ImageView.<init>(ImageView.java:120)
E/AndroidRuntime( 5835): at android.widget.ImageView.<init>(ImageView.java:110)
E/AndroidRuntime( 5835): ... 35 more
E/android.os.Debug( 2422): [email protected] > dumpstate -k -t -z -d -o /data/log/dumpstate_app_error
W/ActivityManager( 2422): Process com.android.systemui has crashed too many times: killing!
The bit in red is new. Time to do some digging. And that is the resource ID I used to declare that drawable.
EDIT:
I found the issue. I needed to declare it as an id and not a drawable. Thank you very much for your assistance.
Its still all kinds of broken, like the image isn't displaying, but its no longer force closing on me.
EDIT AGAIN:
Yeah, no, you can't display an image that way. so now I am back where I started today, but furious now. I have mirrored exactly another image file that displays correctly. Tracked down every single declaration... but mine is not working.
lickarock said:
Its the first image view I had posted. Second line of the code I have up. I have gone into public and given it a declaration, added that declaration into the smali r$drawable, and added it into the ids xml... still no dice.
New logcat -
Code:
E/AndroidRuntime( 5835): FATAL EXCEPTION: main
E/AndroidRuntime( 5835): java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: android.view.InflateException: Binary XML file line #32: Error inflating class <unknown>
E/AndroidRuntime( 5835): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2414)
E/AndroidRuntime( 5835): at android.app.ActivityThread.access$1600(ActivityThread.java:140)
E/AndroidRuntime( 5835): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1309)
E/AndroidRuntime( 5835): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 5835): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 5835): at android.app.ActivityThread.main(ActivityThread.java:4898)
E/AndroidRuntime( 5835): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 5835): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 5835): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1008)
E/AndroidRuntime( 5835): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:775)
E/AndroidRuntime( 5835): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 5835): Caused by: android.view.InflateException: Binary XML file line #32: Error inflating class <unknown>
E/AndroidRuntime( 5835): at android.view.LayoutInflater.createView(LayoutInflater.java:613)
E/AndroidRuntime( 5835): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:660)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.parseInclude(LayoutInflater.java:830)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.rInflate(LayoutInflater.java:736)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
E/AndroidRuntime( 5835): at android.view.View.inflate(View.java:16434)
E/AndroidRuntime( 5835): at com.android.systemui.statusbar.phone.PhoneStatusBar.makeStatusBarView(PhoneStatusBar.java:539)
E/AndroidRuntime( 5835): at com.android.systemui.statusbar.phone.PhoneStatusBar.addStatusBarWindow(PhoneStatusBar.java:3098)
E/AndroidRuntime( 5835): at com.android.systemui.statusbar.phone.PhoneStatusBar.createAndAddWindows(PhoneStatusBar.java:3067)
E/AndroidRuntime( 5835): at com.android.systemui.statusbar.BaseStatusBar.start(BaseStatusBar.java:456)
E/AndroidRuntime( 5835): at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:488)
E/AndroidRuntime( 5835): at com.android.systemui.SystemUIService.onCreate(SystemUIService.java:94)
E/AndroidRuntime( 5835): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2404)
E/AndroidRuntime( 5835): ... 10 more
E/AndroidRuntime( 5835): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 5835): at java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime( 5835): at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
E/AndroidRuntime( 5835): at android.view.LayoutInflater.createView(LayoutInflater.java:587)
E/AndroidRuntime( 5835): ... 32 more
[COLOR="Red"]E/AndroidRuntime( 5835): Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x1/d=0x7f020229 a=-1 r=0x7f020229}[/COLOR]
E/AndroidRuntime( 5835): at android.content.res.Resources.loadDrawable(Resources.java:1925)
E/AndroidRuntime( 5835): at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
E/AndroidRuntime( 5835): at android.widget.ImageView.<init>(ImageView.java:120)
E/AndroidRuntime( 5835): at android.widget.ImageView.<init>(ImageView.java:110)
E/AndroidRuntime( 5835): ... 35 more
E/android.os.Debug( 2422): [email protected] > dumpstate -k -t -z -d -o /data/log/dumpstate_app_error
W/ActivityManager( 2422): Process com.android.systemui has crashed too many times: killing!
The bit in red is new. Time to do some digging. And that is the resource ID I used to declare that drawable.
EDIT:
I found the issue. I needed to declare it as an id and not a drawable. Thank you very much for your assistance.
Its still all kinds of broken, like the image isn't displaying, but its no longer force closing on me.
EDIT AGAIN:
Yeah, no, you can't display an image that way. so now I am back where I started today, but furious now. I have mirrored exactly another image file that displays correctly. Tracked down every single declaration... but mine is not working.
Click to expand...
Click to collapse
Post a screenshot with the working image if it works with it and a screenshot with the one that doesnt u aint far from success. .
Sent from my SAMSUNG-SGH-I317 using xda premium

Weird error

One day I turned on my phone and now when I freez and de-freez the apk with link2sd Google Play Services crashes.
Here's the logcat of the error:
--------- beginning of /dev/log/system
--------- beginning of /dev/log/main
E/AndroidRuntime( 4857): FATAL EXCEPTION: Thread-11
E/AndroidRuntime( 4857): java.lang.NullPointerException
E/AndroidRuntime( 4857): at com.google.android.gms.common.download.DownloadService.a(SourceFile:513)
E/AndroidRuntime( 4857): at eky.a(SourceFile:129)
E/AndroidRuntime( 4857): at ejm.a(SourceFile:2584)
E/AndroidRuntime( 4857): at eki.f(SourceFile:535)
E/AndroidRuntime( 4857): at eki.a(SourceFile:529)
E/AndroidRuntime( 4857): at enf.d(SourceFile:81)
E/AndroidRuntime( 4857): at enb.run(SourceFile:237)
E/AndroidRuntime( 4857): at android.os.Handler.handleCallback(Handler.java:587)
E/AndroidRuntime( 4857): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 4857): at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime( 4857): at end.run(SourceFile:40)
E/dalvikvm( 4897): Could not find class 'android.database.sqlite.SQLiteCantOpenDatabaseException', referenced from method com.google.android.gms.plus.provider.PlusProvider.a
E/dalvikvm( 4897): Could not find class 'android.app.AppOpsManager', referenced from method box.a
E/AndroidRuntime( 4897): FATAL EXCEPTION: Thread-11
E/AndroidRuntime( 4897): java.lang.NullPointerException
E/AndroidRuntime( 4897): at com.google.android.gms.common.download.DownloadService.a(SourceFile:513)
E/AndroidRuntime( 4897): at eky.a(SourceFile:129)
E/AndroidRuntime( 4897): at ejm.a(SourceFile:2584)
E/AndroidRuntime( 4897): at eki.f(SourceFile:535)
E/AndroidRuntime( 4897): at eki.a(SourceFile:529)
E/AndroidRuntime( 4897): at enf.d(SourceFile:81)
E/AndroidRuntime( 4897): at enb.run(SourceFile:237)
E/AndroidRuntime( 4897): at android.os.Handler.handleCallback(Handler.java:587)
E/AndroidRuntime( 4897): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 4897): at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime( 4897): at end.run(SourceFile:40)
I hope you can help me Thank you so much!
Delete second partition ext.sd and restart your device
Can you please explain me what appened exactly? Why I need to wipe my ext partition?
Simple trick
Backup all data and reset your device....

Categories

Resources