my app checks whether there is a screen lock pattern on the device and whether passwords are visible, using the android.provider.Settings.Secure and android.provider.Settings.System API.
the app crashes on initial install on 3.0, 3.2, 4.0 and 4.1 under specific conditions.
1) if i install on 3.0, 3.2, 4.0 with screen lock pattern set and the setting 'passwords visible' unchecked, all goes well. after initial install, change settings, close app, all runs and checks perfectly. but if either of the two settings dont comply during install it crashes.
2) on 4.1, its a similar case, except it requires only visible passwords to be disabled. no condition on screen lock.
after it installs once, it reinstalls okay wd any device setting after an uninstall
here is the log file:
10-11 17:08:00.624: I/dalvikvm(428): Could not find method android.app.KeyguardManager.isKeyguardSecure, referenced from method com.example.android_compliance.MainActivity.password
10-11 17:08:00.696: W/dalvikvm(428): VFY: unable to resolve virtual method 58: Landroid/app/KeyguardManager;.isKeyguardSecure ()Z
10-11 17:08:00.696: D/dalvikvm(428): VFY: replacing opcode 0x6e at 0x0015
10-11 17:08:01.054: D/dalvikvm(428): GC_FOR_ALLOC freed 59K, 4% free 6380K/6599K, paused 44ms
10-11 17:08:01.054: I/dalvikvm-heap(428): Grow heap (frag case) to 6.810MB for 513744-byte allocation
10-11 17:08:01.134: D/dalvikvm(428): GC_FOR_ALLOC freed 8K, 4% free 6873K/7111K, paused 51ms
10-11 17:08:01.214: D/dalvikvm(428): GC_CONCURRENT freed <1K, 4% free 6873K/7111K, paused 3ms+2ms
10-11 17:08:01.385: D/AndroidRuntime(428): Shutting down VM
10-11 17:08:01.385: W/dalvikvm(428): threadid=1: thread exiting with uncaught exception (group=0x40014760)
10-11 17:08:01.394: E/AndroidRuntime(428): FATAL EXCEPTION: main
10-11 17:08:01.394: E/AndroidRuntime(428): java.lang.RuntimeException: Unable to start activity ComponentInfo{org.example.android_compliance/com.example.android_compliance.MainActivity}: java.lang.NullPointerException
10-11 17:08:01.394: E/AndroidRuntime(428): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1736)
10-11 17:08:01.394: E/AndroidRuntime(428): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1752)
10-11 17:08:01.394: E/AndroidRuntime(428): at android.app.ActivityThread.access$1500(ActivityThread.java:123)
10-11 17:08:01.394: E/AndroidRuntime(428): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:993)
10-11 17:08:01.394: E/AndroidRuntime(428): at android.os.Handler.dispatchMessage(Handler.java:99)
10-11 17:08:01.394: E/AndroidRuntime(428): at android.os.Looper.loop(Looper.java:126)
10-11 17:08:01.394: E/AndroidRuntime(428): at android.app.ActivityThread.main(ActivityThread.java:3997)
10-11 17:08:01.394: E/AndroidRuntime(428): at java.lang.reflect.Method.invokeNative(Native Method)
10-11 17:08:01.394: E/AndroidRuntime(428): at java.lang.reflect.Method.invoke(Method.java:491)
10-11 17:08:01.394: E/AndroidRuntime(428): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
10-11 17:08:01.394: E/AndroidRuntime(428): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
10-11 17:08:01.394: E/AndroidRuntime(428): at dalvik.system.NativeStart.main(Native Method)
10-11 17:08:01.394: E/AndroidRuntime(428): Caused by: java.lang.NullPointerException
10-11 17:08:01.394: E/AndroidRuntime(428): at com.example.android_compliance.MainActivity.onCreate(MainActivity.java:337)
10-11 17:08:01.394: E/AndroidRuntime(428): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1048)
10-11 17:08:01.394: E/AndroidRuntime(428): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1700)
10-11 17:08:01.394: E/AndroidRuntime(428): ... 11 more
Click to expand...
Click to collapse
log points to line 337..method returning the screen lock check
Related
I am porting a rom. Everything is working well except the Browser FC when its opened. Sometimes it will load pages and then FC after a while. Below is a logcat of the FC. If someone knows what the problem is, the help would be much appreciated.
Code:
D/dalvikvm( 2257): GC_CONCURRENT freed 360K, 63% free 1630K/4291K, paused 2ms+3m
s
W/SurfaceTexture( 2838): [unnamed-2838-0] updateTexImage: clearing GL error: 0x5
00
W/SurfaceTexture( 2838): [unnamed-2838-0] updateTexImage: clearing GL error: 0x5
00
W/SurfaceTexture( 2838): [unnamed-2838-0] updateTexImage: clearing GL error: 0x5
00
W/SurfaceTexture( 2838): [unnamed-2838-0] updateTexImage: clearing GL error: 0x5
00
W/dalvikvm( 2838): No implementation found for native Landroid/webkit/WebViewCor
e;.nativeGetTextureGeneratorThreadID ()I
W/dalvikvm( 2838): threadid=17: thread exiting with uncaught exception (group=0x
40a5b1f8)
E/AndroidRuntime( 2838): FATAL EXCEPTION: WebViewCoreThread
E/AndroidRuntime( 2838): java.lang.UnsatisfiedLinkError: nativeGetTextureGenerat
orThreadID
E/AndroidRuntime( 2838): at android.webkit.WebViewCore.nativeGetTextureGe
neratorThreadID(Native Method)
E/AndroidRuntime( 2838): at android.webkit.WebViewCore.access$800(WebView
Core.java:60)
E/AndroidRuntime( 2838): at android.webkit.WebViewCore$WebCoreThread$1.ha
ndleMessage(WebViewCore.java:736)
E/AndroidRuntime( 2838): at android.os.Handler.dispatchMessage(Handler.ja
va:99)
E/AndroidRuntime( 2838): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 2838): at android.webkit.WebViewCore$WebCoreThread.run(
WebViewCore.java:789)
E/AndroidRuntime( 2838): at java.lang.Thread.run(Thread.java:856)
W/ActivityManager( 1902): Force finishing activity com.android.browser/.Browse
rActivity
D/dalvikvm( 1902): GC_FOR_ALLOC freed 592K, 49% free 5349K/10307K, paused 56ms
D/WebViewTimersControl( 2838): onBrowserActivityPause
D/WebViewTimersControl( 2838): Pausing webview timers, view=com.android.browser.
[email protected]
D/dalvikvm( 2510): GC_CONCURRENT freed 1727K, 45% free 5435K/9795K, paused 1ms+2
ms
D/skia ( 2510): --- decoder->decode returned false
D/OpenGLRenderer( 2838): Flushing caches (mode 0)
D/OpenGLRenderer( 2838): Flushing caches (mode 1)
D/webviewglue( 2838): nativeDestroy view: 0x25f0d0
D/dalvikvm( 2257): GC_CONCURRENT freed 402K, 62% free 1665K/4291K, paused 2ms+7m
s
KBizzle said:
I am porting a rom. Everything is working well except the Browser FC when its opened. Sometimes it will load pages and then FC after a while. Below is a logcat of the FC. If someone knows what the problem is, the help would be much appreciated.
Code:
D/dalvikvm( 2257): GC_CONCURRENT freed 360K, 63% free 1630K/4291K, paused 2ms+3m
s
W/SurfaceTexture( 2838): [unnamed-2838-0] updateTexImage: clearing GL error: 0x5
00
W/SurfaceTexture( 2838): [unnamed-2838-0] updateTexImage: clearing GL error: 0x5
00
W/SurfaceTexture( 2838): [unnamed-2838-0] updateTexImage: clearing GL error: 0x5
00
W/SurfaceTexture( 2838): [unnamed-2838-0] updateTexImage: clearing GL error: 0x5
00
W/dalvikvm( 2838): No implementation found for native Landroid/webkit/WebViewCor
e;.nativeGetTextureGeneratorThreadID ()I
W/dalvikvm( 2838): threadid=17: thread exiting with uncaught exception (group=0x
40a5b1f8)
E/AndroidRuntime( 2838): FATAL EXCEPTION: WebViewCoreThread
E/AndroidRuntime( 2838): java.lang.UnsatisfiedLinkError: nativeGetTextureGenerat
orThreadID
E/AndroidRuntime( 2838): at android.webkit.WebViewCore.nativeGetTextureGe
neratorThreadID(Native Method)
E/AndroidRuntime( 2838): at android.webkit.WebViewCore.access$800(WebView
Core.java:60)
E/AndroidRuntime( 2838): at android.webkit.WebViewCore$WebCoreThread$1.ha
ndleMessage(WebViewCore.java:736)
E/AndroidRuntime( 2838): at android.os.Handler.dispatchMessage(Handler.ja
va:99)
E/AndroidRuntime( 2838): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 2838): at android.webkit.WebViewCore$WebCoreThread.run(
WebViewCore.java:789)
E/AndroidRuntime( 2838): at java.lang.Thread.run(Thread.java:856)
W/ActivityManager( 1902): Force finishing activity com.android.browser/.Browse
rActivity
D/dalvikvm( 1902): GC_FOR_ALLOC freed 592K, 49% free 5349K/10307K, paused 56ms
D/WebViewTimersControl( 2838): onBrowserActivityPause
D/WebViewTimersControl( 2838): Pausing webview timers, view=com.android.browser.
[email protected]
D/dalvikvm( 2510): GC_CONCURRENT freed 1727K, 45% free 5435K/9795K, paused 1ms+2
ms
D/skia ( 2510): --- decoder->decode returned false
D/OpenGLRenderer( 2838): Flushing caches (mode 0)
D/OpenGLRenderer( 2838): Flushing caches (mode 1)
D/webviewglue( 2838): nativeDestroy view: 0x25f0d0
D/dalvikvm( 2257): GC_CONCURRENT freed 402K, 62% free 1665K/4291K, paused 2ms+7m
s
Click to expand...
Click to collapse
And me also have this problem. Please, devs help...
Hi Guys
Basically im a part time dev/porter and I need some help I have a ROM (look at sig) and its on build 37 of AOKP at the minute and there are no FC problems with the browser. Now Ive tried to update to the latest build 40 and even on build 38 and 39 for that matter and I keep getting this Force close issue on the stock browser and other 3rd party browsers, ive included the logcat of the event below but I have no idea what it means any help would be great full thanks
Rueben
Code:
E/libEGL ( 1026): call to OpenGL ES API with no current context (logged once per thread)
D/ShaderProgram( 1026): couldn't load the vertex shader!
E/libEGL ( 1026): call to OpenGL ES API with no current context (logged once per thread)
D/ShaderProgram( 1026): couldn't load the vertex shader!
I/dalvikvm( 1026): Wrote stack traces to '/data/anr/traces.txt'
D/WebViewTimersControl( 1026): onBrowserActivityResume
D/WebViewTimersControl( 1026): Resuming webview timers, [email protected]
W/BaseUi ( 1026): mMainView is already attached to wrapper in attachTabToContentView!
W/BaseUi ( 1026): mContainer is already attached to content in attachTabToContentView!
V/NFC ( 1026): this device does not have NFC support
I/ActivityManager( 204): Displayed com.android.browser/.BrowserActivity: +796ms
D/dalvikvm( 1026): GC_CONCURRENT freed 82K, 8% free 3678K/3975K, paused 2ms+2ms
D/dalvikvm( 1026): GC_FOR_ALLOC freed 10K, 8% free 3668K/3975K, paused 17ms
I/dalvikvm-heap( 1026): Grow heap (frag case) to 4.360MB for 656656-byte allocation
D/dalvikvm( 1026): GC_FOR_ALLOC freed 0K, 8% free 4309K/4679K, paused 16ms
W/NetworkManagementSocketTagger( 204): setKernelCountSet(10021, 0) failed with errno -2
W/dalvikvm( 1026): No implementation found for native Landroid/webkit/WebViewCore;.nativeGetTextureGeneratorThreadID ()I
W/dalvikvm( 1026): threadid=18: thread exiting with uncaught exception (group=0x409fa1f8)
E/AndroidRuntime( 1026): FATAL EXCEPTION: WebViewCoreThread
E/AndroidRuntime( 1026): java.lang.UnsatisfiedLinkError: nativeGetTextureGeneratorThreadID
E/AndroidRuntime( 1026): at android.webkit.WebViewCore.nativeGetTextureGeneratorThreadID(Native Method)
E/AndroidRuntime( 1026): at android.webkit.WebViewCore.access$800(WebViewCore.java:60)
E/AndroidRuntime( 1026): at android.webkit.WebViewCore$WebCoreThread$1.handleMessage(WebViewCore.java:709)
E/AndroidRuntime( 1026): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 1026): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 1026): at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:789)
E/AndroidRuntime( 1026): at java.lang.Thread.run(Thread.java:856)
W/ActivityManager( 204): Force finishing activity com.android.browser/.BrowserActivity
D/dalvikvm( 204): GC_FOR_ALLOC freed 472K, 34% free 5944K/8903K, paused 65ms
D/WebViewTimersControl( 1026): onBrowserActivityPause
D/WebViewTimersControl( 1026): Pausing webview timers, [email protected]
W/NetworkManagementSocketTagger( 204): setKernelCountSet(10021, 1) failed with errno -2
W/NetworkManagementSocketTagger( 204): setKernelCountSet(10006, 0) failed with errno -2
D/webviewglue( 1026): nativeDestroy view: 0x2c7570
D/AudioHardwareALSA( 131): Inside AudioStreamOutALSA::standby
V/AudioHardwareALSA( 131): ALSAStreamOps::close()
I/AudioHardwareALSA( 131): Output standby called!!. Turn off PCM device.
I/Process ( 1026): Sending signal. PID: 1026 SIG: 9
D/AudioHardwareALSA( 131): Calling setDevice from write @..2348.
I/AudioHardwareALSA( 131): Initialized ALSA PLAYBACK device AndroidPlayback_Speaker_normal
V/AudioHardwareALSA( 131): Set PLAYBACK PCM format to S16_LE (Signed 16 bit Little Endian)
D/AudioHardwareALSA( 131): Using 2 channels for PLAYBACK.
I/AudioHardwareALSA( 131): DEFAULT_SAMPLE_RATE is 44100, mDefaults->sampleRate is 44100
D/AudioHardwareALSA( 131): Set PLAYBACK sample rate to 44100 HZ
D/AudioHardwareALSA( 131): Buffer size: 4096
D/AudioHardwareALSA( 131): Latency: 92879
I/ActivityManager( 204): Process com.android.browser (pid 1026) has died.
FULL LOGCAT BELOW
Anyone can you help me ?
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.
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.
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