Unfortunately application has stopped - Android Q&A, Help & Troubleshooting

hi all,
I am working in reversing apk aplication. I have got with sucess normally. I got a aplication not working now. It is do with API level v14.
I have decompile, compile and sing with sucess.
For test I to use emulator with Device Nexus S.
When i to install original application run without problems but with aplication decompiled, compiled and signed not working.
I have to used java tool and apk for sign. Nothing work.
I got the follow message:
"Unfortunately, aplication name has stopped.
I have read but don´t have seen same problem.
Any suggest?
A greeting.

To help you, we really need a logcat.
Because you have an emulator, I guess you have android-sdk installed.
To get your logcat, do:
adb logcat
After doing this, let it run.
Run your application in your emulator now. When it says "force close", you stop adb logcat by doing Ctrl+C
Then you copy the text with your error in it.
Thanks in advance
Sent from my Galaxy Nexus running Android 4.2 JB

hi, i did that.
I got the follow message.
Code:
I/ActivityManager( 82): START {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.anite.handy/.ui.core.ResumeActivit
y} from pid 181
D/PermissionCache( 36): checking android.permission.READ_FRAME_BUFFER for uid=1000 => granted (1379 us)
W/WindowManager( 82): Failure taking screenshot for (180x300) to layer 21005
I/ActivityManager( 82): Start proc com.anite.handy for activity com.anite.hand
y/.ui.core.ResumeActivity: pid=492 uid=10040 gids={3002, 3001, 3003, 1015}
I/dalvikvm( 492): Turning on JNI app bug workarounds for target SDK version 10.
..
W/NetworkManagementSocketTagger( 82): setKernelCountSet(10040, 1) failed witherrno -2
I/Process ( 82): Sending signal. PID: 492 SIG: 3
I/dalvikvm( 492): threadid=3: reacting to signal 3
I/dalvikvm( 492): Wrote stack traces to '/data/anr/traces.txt'
I/Process ( 82): Sending signal. PID: 492 SIG: 3
I/dalvikvm( 492): threadid=3: reacting to signal 3
I/dalvikvm( 492): Wrote stack traces to '/data/anr/traces.txt'
I/Handy ( 492): HandyApp.onCreate() pid=492
I/Process ( 82): Sending signal. PID: 492 SIG: 3
I/dalvikvm( 492): threadid=3: reacting to signal 3
I/dalvikvm( 492): Wrote stack traces to '/data/anr/traces.txt'
D/AndroidRuntime( 492): Shutting down VM
W/dalvikvm( 492): threadid=1: thread exiting with uncaught exception (group=0x4
09c01f8)
E/AndroidRuntime( 492): FATAL EXCEPTION: main
E/AndroidRuntime( 492): java.lang.RuntimeException: Unable to create application com.anite.handy.app.HandyApp: java.lang.SecurityException
E/AndroidRuntime( 492): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3957)
E/AndroidRuntime( 492): at android.app.ActivityThread.access$1300(ActivityThread.java:123)
E/AndroidRuntime( 492): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1185)
E/AndroidRuntime( 492): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 492): at android.os.Looper.loop(Looper.java:137)E/AndroidRuntime( 492): at android.app.ActivityThread.main(ActivityThread.java:4424)
E/AndroidRuntime( 492): at java.lang.reflect.Method.invokeNative(NativeMethod)
E/AndroidRuntime( 492): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 492): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
E/AndroidRuntime( 492): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
E/AndroidRuntime( 492): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 492): Caused by: java.lang.SecurityException
E/AndroidRuntime( 492): at com.anite.handy.app.HandyApp.onCreate(Unknown Source)
E/AndroidRuntime( 492): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:969)
E/AndroidRuntime( 492): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3954)
E/AndroidRuntime( 492): ... 10 more
W/ActivityManager( 82): Force finishing activity com.anite.handy/.ui.core.ResumeActivity
W/InputManagerService( 82): Window already focused, ignoring focus gain of: [email protected]
I/Process ( 82): Sending signal. PID: 492 SIG: 3
I/dalvikvm( 492): threadid=3: reacting to signal 3
I/dalvikvm( 492): Wrote stack traces to '/data/anr/traces.txt'
W/ActivityManager( 82): Activity pause timeout for ActivityRecord{4142a7e0 com.anite.handy/.ui.core.ResumeActivity}
I/Process ( 82): Sending signal. PID: 492 SIG: 3
I/dalvikvm( 492): threadid=3: reacting to signal 3
I/dalvikvm( 492): Wrote stack traces to '/data/anr/traces.txt'
W/NetworkManagementSocketTagger( 82): setKernelCountSet(10040, 0) failed with errno -2
W/ActivityManager( 82): Activity destroy timeout for ActivityRecord{4142a7e0 com.anite.handy/.ui.core.ResumeActivity}

Check your "HandyApp Application" is declared in your manifest

I suggest you take a look at this one:
http://developer.android.com/guide/topics/manifest/manifest-intro.html
If you don't understand it just reply here and I'll fix it for ya
Sent from my Galaxy Nexus running Android 4.2 JB

i have checked AndroidManifest.xml decompiled file and i can see android:name=".app.HandyApp" in code.
Full code atached here
View attachment AndroidManifest.rar

Anyone have any suggestion? I can share the target if need.
Thanks

i have the same problem
unfortunately application has stop.
i have the same problem but its worse.
i have been installed kaspersky security using apk not from manual installed by google play.
and iam forget to unistalled it before i upgrade my android software.
after the process done it show message "unfortunately......." it keep showing up even after i klik "ok" or restart
i can't do anything with my device now (can't type anything, can't touch anything, even pick up incoming call) because of the pop up n start being stressed
anyone can help? :crying:
*My Device is galaxy Note II

Hi, I am not sure if this is the right thread, but since I don't know exactly where sould I post this I will post it here and if someone knows a better thread they sould tell me to go there.
My problem is with the game called Rhythm Racer 2, I have been in to this game since 2011 when I got Galaxy S 2, and it was working even on my Galaxy Tab S (SM-T805) until I was updated to lollipop, since then it just pops "Unfotunately Rhythm Racer 2 Has Stopped", also the same problem applies in Galaxy Note 4 (N910F), only there it doesn't work even on kitkat and in lollipop either, and the problem is that this app doesn't getting any update, it's on its initial version since 2011 and discontiniued, I know it's just a game and noone can know exactly what's the problem but I think the same error applies also in other apps that doesn't work since lollipop and based on that I think there is a solution someway.
I will apreciate any feedbak and advice on what should I do, Thanks.

Exception
Please provide logs for logcat.
use below command
$ adb logcat
You can verify it by your own to see why you got crash.
Waiting for logs .
I came across this same error caused by having installed the JDK 7 instead of 6. Hope it helps some other people with this error.
please check below link
http://stackoverflow.com/questions/6161931/java-lang-securityexception-when-install-apk

This is what I get when I try to run the app:
---- Oct 15, 2015 1:50:24 AM ----
10-15 01:47:42.044 9007 9007 I Timeline: Timeline: Activity_launch_request id:com.AvatarLabs.RhythmRacerX time:75719530
10-15 01:47:42.049 3837 5012 W ActivityManager: NORMAL SET : srcAppInfo.processName = com.sec.android.app.launcher, destAppInfo.processName = com.AvatarLabs.RhythmRacerX
10-15 01:47:42.159 3837 8545 I ActivityManager: Start proc com.AvatarLabs.RhythmRacerX for activity com.AvatarLabs.RhythmRacerX/com.unity3d.MobclixPlugin.MobclixPluginActivity: pid=12571 uid=10193 gids={50193, 9997, 3003} abi=armeabi-v7a
10-15 01:47:42.489 12571 12571 E AndroidRuntime: Process: com.AvatarLabs.RhythmRacerX, PID: 12571
10-15 01:47:42.489 12571 12571 E AndroidRuntime: java.lang.UnsatisfiedLinkError: Bad JNI version returned from JNI_OnLoad in "/data/app/com.AvatarLabs.RhythmRacerX-1/lib/arm/libmono.so": 0
10-15 01:47:42.509 3837 3937 W ActivityManager: Force finishing activity com.AvatarLabs.RhythmRacerX/com.unity3d.MobclixPlugin.MobclixPluginActivity
10-15 01:47:42.859 3837 3937 I WindowManager: Screenshot max retries 4 of Token{b537e72 ActivityRecord{35dd2f7d u0 com.AvatarLabs.RhythmRacerX/com.unity3d.MobclixPlugin.MobclixPluginActivity t403 f}} appWin=Window{27d1c81f u0 Starting com.AvatarLabs.RhythmRacerX} drawState=4
10-15 01:47:43.364 3837 3959 W ActivityManager: Activity pause timeout for ActivityRecord{35dd2f7d u0 com.AvatarLabs.RhythmRacerX/com.unity3d.MobclixPlugin.MobclixPluginActivity t403 f}
10-15 01:47:44.864 3837 8850 I ActivityManager: Process com.AvatarLabs.RhythmRacerX (pid 12571)(adj 9) has died(476,758)
---- Oct 15, 2015 1:50:24 AM ----
This is the entire logcat, I know this is weird, you mean that lollipop has JDK 7 and the game uses JDK 6 and that's the problem, and do I have to install JDK 6 some way on my device or try to make the propper changes to my .apk file?

Related

[Q] SystemUI.apk from AOSP 4.2 FQ

Hello, EDIT: FQ = Force Close
I have a VM with Ubuntu 10.04, sun java6 jdk, everything configured like I read here: http://source.android.com/source/initializing.html
I try to mod the SystemUI-QuickSettings on my Nexus4 - Android 4.2
For that I downloaded the hole repo https://android.googlesource.com/platform/manifest
and i tryed the repo https://android.googlesource.com/platform/manifest -b android-4.2_r1
too.
A make -j8 finish's without any error.
------------
Problem:
Iam not able to compile the SystemUI from Source and get it working...
Question 1:
The emulator, which is built during the compilation process dont start (opengles problem). How can I export the "built emulator" into my android sdk avd? because when I create an emulator with android avd it works!
Question 2:
I try to modifiy the SystemUI (the onclick behavior in the QuickSettings for the Wifi toggle - but till now I just comment the override out) and compile it (.build/env... with mako built). When I push the SystemUI.apk from(.../out/target/product/mako/system/app/) to the system folder on my Nexus 4 and change the rights (chmod 644) and reboot, I still get a force close. To get it on my phone I added in the manifest.xml
<uses-sdk android:minSdkVersion="17"
android:targetSdkVersion="17">
</uses-sdk>
Logcat:
I/Process ( 2181): Sending signal. PID: 2181 SIG: 9
I/ActivityManager( 595): Process com.android.systemui (pid 2181) has died.
W/ActivityManager( 595): Scheduling restart of crashed service com.android.systemui/.SystemUIService in 0ms
I/ActivityManager( 595): Start proc com.android.systemui for restart com.android.systemui: pid=3403 uid=10057 gids={50057, 1028, 1015, 3002, 3001}
W/InputMethodManagerService( 595): Window already focused, ignoring focus gain of: [email protected] attribute=null, token = [email protected]
D/AndroidRuntime( 3403): Shutting down VM
W/dalvikvm( 3403): threadid=1: thread exiting with uncaught exception (group=0x40c01930)
E/AndroidRuntime( 3403): FATAL EXCEPTION: main
E/AndroidRuntime( 3403): java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: java.lang.SecurityException: Call from user 0 as user -2 without permission INTERACT_ACROSS_USERS or INTERACT_ACROSS_USERS_FULL not allowed.
E/AndroidRuntime( 3403): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2539)
E/AndroidRuntime( 3403): at android.app.ActivityThread.access$1600(ActivityThread.java:141)
E/AndroidRuntime( 3403): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316)
E/AndroidRuntime( 3403): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 3403): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 3403): at android.app.ActivityThread.main(ActivityThread.java:5039)
E/AndroidRuntime( 3403): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 3403): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 3403): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
E/AndroidRuntime( 3403): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
E/AndroidRuntime( 3403): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 3403): Caused by: java.lang.SecurityException: Call from user 0 as user -2 without permission INTERACT_ACROSS_USERS or INTERACT_ACROSS_USERS_FULL not allowed.
E/AndroidRuntime( 3403): at android.os.Parcel.readException(Parcel.java:1425)
E/AndroidRuntime( 3403): at android.os.Parcel.readException(Parcel.java:1379)
E/AndroidRuntime( 3403): at android.view.accessibility.IAccessibilityManager$Stub$Proxy.addClient(IAccessibilityManager.java:203)
E/AndroidRuntime( 3403): at android.view.accessibility.AccessibilityManager.<init>(AccessibilityManager.java:200)
E/AndroidRuntime( 3403): at android.view.accessibility.AccessibilityManager.createSingletonInstance(AccessibilityManager.java:182)
E/AndroidRuntime( 3403): at android.view.accessibility.AccessibilityManager.createAsSharedAcrossUsers(AccessibilityManager.java:153)
E/AndroidRuntime( 3403): at com.android.systemui.SystemUIService.onCreate(SystemUIService.java:73)
E/AndroidRuntime( 3403): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2529)
E/AndroidRuntime( 3403): ... 10 more
W/ActivityManager( 595): Process com.android.systemui has crashed too many times: killing!
D/overlay ( 163): FROM_STATE = OV_CLOSED TO_STATE = OV_BYPASS_3_LAYER
D/overlay ( 163): FROM_STATE = OV_BYPASS_3_LAYER TO_STATE = OV_CLOSED
D/dalvikvm( 1303): GC_CONCURRENT freed 909K, 7% free 14176K/15228K, paused 3ms+4ms, total 29ms
D/dalvikvm( 1303): GC_CONCURRENT freed 935K, 7% free 15013K/15976K, paused 5ms+6ms, total 78ms
D/dalvikvm( 1303): WAIT_FOR_CONCURRENT_GC blocked 62ms
D/dalvikvm( 1303): GC_CONCURRENT freed 1485K, 9% free 15557K/17080K, paused 3ms+4ms, total 37ms
W/Finsky ( 1303): [1] 1.onResponse: No document details for app: pkg=com.imdb.mobile
W/Finsky ( 1303): [1] 1.onResponse: No document details for app: pkg=de.tzwebdesign.TUCMensa
W/Finsky ( 1303): [1] 1.onResponse: No document details for app: pkg=eu.chainfire.supersu
W/ActivityManager( 595): Timeout executing service: ServiceRecord{41ae4608 u0 com.android.systemui/.SystemUIService}
I/ActivityManager( 595): Crashing app skipping ANR: ProcessRecord{41808a68 3403:com.android.systemui/u0a10057} Executing service com.android.systemui/.SystemUIService
D/Finsky ( 1303): [1] 5.onFinished: Installation state replication succeeded.
W/ThrottleService( 595): unable to find stats for iface rmnet_usb0
I/dalvikvm( 2521): Total arena pages for JIT: 18
D/dalvikvm( 2521): GC_CONCURRENT freed 409K, 5% free 9933K/10372K, paused 3ms+3ms, total 25ms
D/dalvikvm( 2521): GC_CONCURRENT freed 332K, 4% free 10033K/10396K, paused 3ms+3ms, total 26ms
I/Process ( 3403): Sending signal. PID: 3403 SIG: 9
I/ActivityManager( 595): Process com.android.systemui (pid 3403) has died.
W/ActivityManager( 595): Scheduling restart of crashed service com.android.systemui/.SystemUIService in 0ms
I/ActivityManager( 595): Start proc com.android.systemui for restart com.android.systemui: pid=3462 uid=10057 gids={50057, 1028, 1015, 3002, 3001}
W/InputMethodManagerService( 595): Window already focused, ignoring focus gain of: [email protected] attribute=null, token = [email protected]
D/dalvikvm( 164): GC_EXPLICIT freed 39K, 1% free 8871K/8940K, paused 2ms+3ms, total 30ms
D/dalvikvm( 164): GC_EXPLICIT freed <1K, 1% free 8871K/8940K, paused 2ms+2ms, total 23ms
D/dalvikvm( 164): GC_EXPLICIT freed <1K, 1% free 8871K/8940K, paused 1ms+2ms, total 18ms
Click to expand...
Click to collapse
E/AndroidRuntime( 3403): FATAL EXCEPTION: main
E/AndroidRuntime( 3403): java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: java.lang.SecurityException: Call from user 0 as user -2 without permission INTERACT_ACROSS_USERS or INTERACT_ACROSS_USERS_FULL not allowed.
So I looked into the source code and found in the SystemUI manifest.xml
<!-- ActivityManager -->
<uses-permission android:name="android.permission.GET_TASKS" />
<uses-permission android:name="android.permission.GET_DETAILED_TASKS" />
<uses-permission android:name="android.permission.REORDER_TASKS" />
<uses-permission android:name="android.permission.REMOVE_TASKS" />
<uses-permission android:name="android.permission.STOP_APP_SWITCHES" />
<uses-permission android:name="android.permission.SET_SCREEN_COMPATIBILITY" />
<uses-permission android:name="android.permission.START_ANY_ACTIVITY" />
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL" />
So the app still have the permission! Can anyone help me to figure out what is wrong with my built?
I am getting a similar error, and cannot figure it out either. If you figured it our please let me know.
I think the problem is making a call as user -2 since it starts at 0 and goes up. This leads me to believe -2 does not exist but I can't figure out why it is calling it as -2.
W/dalvikvm( 2668): threadid=1: thread exiting with uncaught exception (group=0x40bee930)
E/AndroidRuntime( 2668): FATAL EXCEPTION: main
E/AndroidRuntime( 2668): java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: java.lang.SecurityException: Call from user 0 as user -2 without permission INTERACT_ACROSS_USERS or INTERACT_ACROSS_USERS_FULL not allowed.
E/AndroidRuntime( 2668): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2539)
E/AndroidRuntime( 2668): at android.app.ActivityThread.access$1600(ActivityThread.java:141)
E/AndroidRuntime( 2668): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316)
E/AndroidRuntime( 2668): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2668): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 2668): at android.app.ActivityThread.main(ActivityThread.java:5039)
E/AndroidRuntime( 2668): at java.lang.reflect.Method.invokeNative(NativeMethod)
E/AndroidRuntime( 2668): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 2668): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
E/AndroidRuntime( 2668): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
E/AndroidRuntime( 2668): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2668): Caused by: java.lang.SecurityException: Call from user 0 as user -2 without permission INTERACT_ACROSS_USERS or INTERACT_ACROSS_USERS_FULL not allowed.
E/AndroidRuntime( 2668): at android.os.Parcel.readException(Parcel.java:1425)
E/AndroidRuntime( 2668): at android.os.Parcel.readException(Parcel.java:1379)
E/AndroidRuntime( 2668): at android.view.accessibility.IAccessibilityManager$Stub$Proxy.addClient(IAccessibilityManager.java:203)
E/AndroidRuntime( 2668): at android.view.accessibility.AccessibilityManager.<init>(AccessibilityManager.java:200)
E/AndroidRuntime( 2668): at android.view.accessibility.AccessibilityManager.createSingletonInstance(AccessibilityManager.java:182)
E/AndroidRuntime( 2668): at android.view.accessibility.AccessibilityManager.createAsSharedAcrossUsers(AccessibilityManager.java:153)
E/AndroidRuntime( 2668): at com.android.systemui.SystemUIService.onCreate(SystemUIService.java:73)
E/AndroidRuntime( 2668): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2529)
E/AndroidRuntime( 2668): ... 10 more
W/ActivityManager( 509): Process com.android.systemui has crashed too many times: killing!
Click to expand...
Click to collapse
Questions should be posted in Q&A forums, not Development forums.
http://forum.xda-developers.com/announcement.php?a=81
See rule #15
Thread moved.

[Q] [Help] Adding Su to build

I'm in the process of learning to build android from source. I've got my AOKP rom booting and am working on adding superuser to it, and am running into troubles. After much googling here is what I've done
Cloned Superuser source code
Code:
git clone git://github.com/ChainsDD/Superuser.git packages/apps/Superuser
Copied the su binary from my current rom (/system/xbin/su) to my device tree
Edited device.mk
Code:
# Build superuser
PRODUCT_PACKAGES := \
Superuser
# copy su binary
PRODUCT_COPY_FILES += \
device/lge/E973/su:system/xbin/su
Everything built fine and Superuser is in my app drawer when rom boots. If i try to open Superuser it force closes. Root checker shows that i am rooted, and typing 'su' in terminal emulator gets root access. Neither will give me a dialog asking to deny or grant.
If i install SuperSuperuser from the market, it will present all the normal dialogs and everything seems as it should.
I'm wondering what it is I'm doing wrong, and how I can correct it.
Here is a logcat of the failed attempt to open superuser
Code:
D/dalvikvm( 2157): Late-enabling CheckJNI
I/ActivityManager( 530): Start proc com.noshufou.android.su for activity com.noshufou.android.su/.Su: pid=2157 uid=10040 gids={50040, 3003, 1015, 1028}
I/dalvikvm( 2157): Turning on JNI app bug workarounds for target SDK version 11...
D/overlay ( 161): FROM_STATE = OV_BYPASS_3_LAYER TO_STATE = OV_CLOSED
I/ActivityThread( 2157): Pub com.noshufou.android.su.provider: com.noshufou.android.su.provider.PermissionsProvider
D/Su.HomeActivity( 2157): onCreate()
D/AndroidRuntime( 2157): Shutting down VM
W/dalvikvm( 2157): threadid=1: thread exiting with uncaught exception (group=0x40dd7930)
E/AndroidRuntime( 2157): FATAL EXCEPTION: main
E/AndroidRuntime( 2157): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.noshufou.android.su/com.noshufou.android.su.HomeActivity}: java.lang.RuntimeException: java.lang.NoSuchMethodException: <init> [class android.app.Activity, int]
E/AndroidRuntime( 2157): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2306)
E/AndroidRuntime( 2157): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2356)
E/AndroidRuntime( 2157): at android.app.ActivityThread.access$600(ActivityThread.java:150)
E/AndroidRuntime( 2157): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1244)
E/AndroidRuntime( 2157): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2157): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 2157): at android.app.ActivityThread.main(ActivityThread.java:5193)
E/AndroidRuntime( 2157): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2157): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 2157): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
E/AndroidRuntime( 2157): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:562)
E/AndroidRuntime( 2157): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2157): Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: <init> [class android.app.Activity, int]
E/AndroidRuntime( 2157): at com.actionbarsherlock.ActionBarSherlock.wrap(ActionBarSherlock.java:232)
E/AndroidRuntime( 2157): at com.actionbarsherlock.app.SherlockFragmentActivity.getSherlock(SherlockFragmentActivity.java:32)
E/AndroidRuntime( 2157): at com.actionbarsherlock.app.SherlockFragmentActivity.requestWindowFeature(SherlockFragmentActivity.java:265)
E/AndroidRuntime( 2157): at com.noshufou.android.su.HomeActivity.onCreate(HomeActivity.java:59)
E/AndroidRuntime( 2157): at android.app.Activity.performCreate(Activity.java:5104)
E/AndroidRuntime( 2157): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
E/AndroidRuntime( 2157): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2260)
E/AndroidRuntime( 2157): ... 11 more
E/AndroidRuntime( 2157): Caused by: java.lang.NoSuchMethodException: <init> [class android.app.Activity, int]
E/AndroidRuntime( 2157): at java.lang.Class.getConstructorOrMethod(Class.java:460)
E/AndroidRuntime( 2157): at java.lang.Class.getConstructor(Class.java:431)
E/AndroidRuntime( 2157): at com.actionbarsherlock.ActionBarSherlock.wrap(ActionBarSherlock.java:229)
E/AndroidRuntime( 2157): ... 17 more
W/ActivityManager( 530): Force finishing activity com.noshufou.android.su/.Su
D/dalvikvm( 2157): GC_CONCURRENT freed 219K, 15% free 2489K/2912K, paused 2ms+1ms, total 21ms
I/dalvikvm( 530): Jit: resizing JitTable from 8192 to 16384
W/ActivityManager( 530): Activity pause timeout for ActivityRecord{41681370 u0 com.noshufou.android.su/.Su}
I/Process ( 2157): Sending signal. PID: 2157 SIG: 9
I/ActivityManager( 530): Process com.noshufou.android.su (pid 2157) has died.
W/InputMethodManagerService( 530): Window already focused, ignoring focus gain of: [email protected] attribute=null, token = [email protected]
D/dalvikvm( 530): GC_CONCURRENT freed 7964K, 44% free 13574K/23868K, paused 2ms+6ms, total 57ms
D/overlay ( 161): FROM_STATE = OV_CLOSED TO_STATE = OV_BYPASS_3_LAYER
just a lilttle bump, if anyone can just point me in the dirrection of where i'm going wrong here I would be very appreciative.

[HELP] Why does my MIUI browser FC?

Hello, my device is a Galaxy Y, and has no official support from both the CM7 or the MIUi teams. There is CM7 build by a developer here on the XDA device thread, but it isn't completely stable due to lack of closed source drivers from Qualcomm.
Since MIUi is only available on MDPI and above devices, I have resorted to taking files from other ports for LDPI devices.
I was very successful in booting a release of MIUi I had made the previous day, but the browser kept encountering FC errors. There is already a port of MIUi available on my device forum, and that has the same problem too. I have taken a logcat, but I am completely lost as to why it keeps FCing.
Here is a segment of the logcat that is relevant to the issue at hand. Any help would be appreciated.
Code:
D/dalvikvm( 2352): GC_CONCURRENT freed 2516K, 65% free 1826K/5123K, external 0K/0K, paused 1ms+3ms
I/BrowserSettings( 2352): Selected search engine: OpenSearchSearchEngine{SearchEngineInfo{[Google, google.com, http://www.google.com/favicon.ico, http://www.google.com/m?hl=en-US&ie=UTF-8&source=android-browser&q={searchTerms}, UTF-8, http://www.google.com/complete/search?hl=en-US&json=true&q={searchTerms}]}}
D/dalvikvm( 2352): GC_EXTERNAL_ALLOC freed 516K, 63% free 1944K/5123K, external 0K/0K, paused 31ms
D/AndroidRuntime( 2352): Shutting down VM
W/dalvikvm( 2352): threadid=1: thread exiting with uncaught exception (group=0x40018560)
E/AndroidRuntime( 2352): FATAL EXCEPTION: main
E/AndroidRuntime( 2352): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.browser/com.android.browser.BrowserActivity}: java.lang.ClassCastException: android.graphics.drawable.NinePatchDrawable
E/AndroidRuntime( 2352): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1647)
E/AndroidRuntime( 2352): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
E/AndroidRuntime( 2352): at android.app.ActivityThread.access$1500(ActivityThread.java:117)
E/AndroidRuntime( 2352): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
E/AndroidRuntime( 2352): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2352): at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime( 2352): at android.app.ActivityThread.main(ActivityThread.java:3684)
E/AndroidRuntime( 2352): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2352): at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 2352): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
E/AndroidRuntime( 2352): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
E/AndroidRuntime( 2352): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2352): Caused by: java.lang.ClassCastException: android.graphics.drawable.NinePatchDrawable
E/AndroidRuntime( 2352): at com.android.browser.TitleBar.setProgress(TitleBar.java:343)
E/AndroidRuntime( 2352): at com.android.browser.BrowserActivity.onCreate(BrowserActivity.java:256)
E/AndroidRuntime( 2352): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/AndroidRuntime( 2352): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
E/AndroidRuntime( 2352): ... 11 more
W/ActivityManager( 1528): Force finishing activity com.android.browser/.BrowserActivity
W/ActivityManager( 1528): Activity pause timeout for HistoryRecord{40613c60 com.android.browser/.BrowserActivity}
W/ActivityManager( 1528): Activity destroy timeout for HistoryRecord{405b8858 com.android.browser/.BrowserActivity}
I/Process ( 2352): Sending signal. PID: 2352 SIG: 9
W/InputManagerService( 1528): Window already focused, ignoring focus gain of: [email protected]
I/ActivityManager( 1528): Process com.android.browser (pid 2352) has died.
W/ActivityManager( 1528): Activity destroy timeout for HistoryRecord{406c2460 com.android.browser/.BrowserActivity}
D/dalvikvm( 1997): GC_EXPLICIT freed 336K, 65% free 645K/1795K, external 0K/0K, paused 12ms
Looks to me like a nine patch chunk error as you said you ported from mdpi to ldpi there's probably an error in compiling.9 pngs
Sent from my A116 using Tapatalk 2
sak-venom1997 said:
Looks to me like a nine patch chunk error as you said you ported from mdpi to ldpi there's probably an error in compiling.9 pngs
Sent from my A116 using Tapatalk 2
Click to expand...
Click to collapse
But that doesn't explain why it force closed when I used the apk from a working MIUi LDPI device.
gadgetroid said:
But that doesn't explain why it force closed when I used the apk from a working MIUi LDPI device.
Click to expand...
Click to collapse
When it's working then why do you port it try n use that one
coz decompiling an recompiling app can cause 9 patch issues
Sent from my A116 using Tapatalk 2
Your better off asking this on the miui site as XDA doesn't offer any support or development for it.
Wayne Tech S-III

[Q] SystemUI.apk crashes

Hi,
I'm bulding android for my single board computer with connected 7 inch lcd touch screen. It's working like a charm, but one issue. SystemUI.apk is crashing all the time with following error log:
Code:
I/ActivityManager( 368): Start proc com.android.systemui for restart com.android.systemui: pid=1883 uid=10001 gids={50001, 1028, 1015, 3002, 3001}
D/SystemUIService( 1883): loading: class com.android.systemui.statusbar.tablet.TabletStatusBar
D/SystemUIService( 1883): running: [email protected]
I/StatusBarManagerService( 368): registerStatusBar [email protected]0
W/ResourceType( 1883): Failure getting entry for 0x7f0200db (t=1 e=219) in package 0 (error -75)
D/AndroidRuntime( 1883): Shutting down VM
W/dalvikvm( 1883): threadid=1: thread exiting with uncaught exception (group=0x40d30930)
E/AndroidRuntime( 1883): FATAL EXCEPTION: main
E/AndroidRuntime( 1883): java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: android.view.InflateException: Binary XML file line #48: Error inflating class com.android.systemui.statusbar.policy.CompatModeButton
Does anyone know how to fix this or what's the reason for the crash?
Thank you very much in advance.
Update
rotowsky said:
Hi,
I'm bulding android for my single board computer with connected 7 inch lcd touch screen. It's working like a charm, but one issue. SystemUI.apk is crashing all the time with following error log:
Code:
I/ActivityManager( 368): Start proc com.android.systemui for restart com.android.systemui: pid=1883 uid=10001 gids={50001, 1028, 1015, 3002, 3001}
D/SystemUIService( 1883): loading: class com.android.systemui.statusbar.tablet.TabletStatusBar
D/SystemUIService( 1883): running: [email protected]
I/StatusBarManagerService( 368): registerStatusBar [email protected]0
W/ResourceType( 1883): Failure getting entry for 0x7f0200db (t=1 e=219) in package 0 (error -75)
D/AndroidRuntime( 1883): Shutting down VM
W/dalvikvm( 1883): threadid=1: thread exiting with uncaught exception (group=0x40d30930)
E/AndroidRuntime( 1883): FATAL EXCEPTION: main
E/AndroidRuntime( 1883): java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: android.view.InflateException: Binary XML file line #48: Error inflating class com.android.systemui.statusbar.policy.CompatModeButton
Does anyone know how to fix this or what's the reason for the crash?
Thank you very much in advance.
Click to expand...
Click to collapse
Hope for an Update , and that it works , ( I think so )
Mmh?

[Q] Modify apk - Set minSdkVersion

Hey guys,
after hours I spent with this Im finally at the point where Ive to admit, that I've no clue how to get that job done.
Im trying to modify following Spotify APK: Spotify Music – for Android TV 1.0.0 found on apkdot.com/apk/spotify-ltd/spotify-music-for-android-tv/spotify-music-for-android-tv-1-0-0 (sorry, cant use url bb codes because thats my first post...)
What I want to achive is, to set the minimum sdk version to 19. (Android 4.4).
I tried several ways, which in general should all do the same (APK Studio / apktool / ...).
Because at the end the results were the same Im just writing the apktool steps I made.
Decompile the app: apktool.bat d com.spotify.tv.android_1.0.0.apk
Modify the AndroidManifest.xml (inserted this line): <uses-sdk android:minSdkVersion="19"/>
Recompile it: apktool.bat b com.spotify.tv.android_1.0.0
After that i signed it and installed it on the device. At least I can say, it installed without any parsing errors. When I want to start it though, it just crashes without any message. Opened up logcat and saw this a NoClassDefFound-Exception:
Code:
E/AndroidRuntime( 5660): FATAL EXCEPTION: main
E/AndroidRuntime( 5660): Process: com.spotify.tv.android, PID: 5660
E/AndroidRuntime( 5660): java.lang.NoClassDefFoundError: d
E/AndroidRuntime( 5660): at com.spotify.tv.android.recommendations.RecommendationsManager.a(Unknown Source)
E/AndroidRuntime( 5660): at com.spotify.tv.android.recommendations.RecommendationsManager.a(Unknown Source)
E/AndroidRuntime( 5660): at com.spotify.tv.android.service.SpotifyTVService.a(Unknown Source)
E/AndroidRuntime( 5660): at com.spotify.tv.android.service.SpotifyTVService.b(Unknown Source)
E/AndroidRuntime( 5660): at com.spotify.tv.android.service.SpotifyTVService.onStartCommand(Unknown Source)
E/AndroidRuntime( 5660): at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2702)
E/AndroidRuntime( 5660): at android.app.ActivityThread.access$2100(ActivityThread.java:135)
E/AndroidRuntime( 5660): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1293)
E/AndroidRuntime( 5660): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 5660): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 5660): at android.app.ActivityThread.main(ActivityThread.java:5017)
E/AndroidRuntime( 5660): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 5660): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 5660): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)
E/AndroidRuntime( 5660): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:603)
E/AndroidRuntime( 5660): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 484): Force finishing activity com.spotify.tv.android/.SpotifyTVActivity
D/dalvikvm( 5660): GC_CONCURRENT freed 555K, 43% free 2659K/4648K, paused 0ms+1ms, total 10ms
I/WindowManager( 484): Screenshot max retries 4 of Token{41cfd018 ActivityRecord{41b700b0 u0 com.spotify.tv.android/.SpotifyTVActivity t28 f}} appWin=Window{41d3dc28 u0 Starting com.spotify.tv.android} drawState=4
W/WindowManager( 484): Screenshot failure taking screenshot for (1920x1080) to layer 21025
I/Process ( 5660): Sending signal. PID: 5660 SIG: 9
V/AudioFlinger( 113): remove track (4097) and delete from mixer
D/ActivityManager( 484): send app_CRASH broadcast, packageName:com.spotify.tv.android
I/ActivityManager( 484): Process com.spotify.tv.android (pid 5660) has died.
I/WindowState( 484): WIN DEATH: Window{4215d8e8 u0 com.spotify.tv.android/com.spotify.tv.android.SpotifyTVActivity}
W/ContextImpl( 484): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1162 com.android.server.am.ActivityManagerService.onVideoPlayerCrashed:3689 com.android.server.am.ActivityManagerService.handleAppDiedLocked:3719 com.android.server.am.ActivityManagerService.appDiedLocked:3857 com.android.server.am.ActivityManagerService$AppDeathRecipient.binderDied:1043
Ive no clue how to fix it. Even if there is a way to fix it. Hope you guys can help me .
Termi
PS: Ive Spotify Premium

Categories

Resources