CSipSimple: Incompatible with KitKat? - Nexus 5 Q&A, Help & Troubleshooting

Hi all,
I've used CSipSimple for SIP VOIP calling for a while. Great app. Gave it a try with the Nexus 5 on the factory firmware and it explodes just after placing a call. Logcat shows:
Code:
E/AndroidRuntime( 3110): FATAL EXCEPTION: UAStateAsyncWorker
E/AndroidRuntime( 3110): Process: com.csipsimple:sipStack, PID: 3110
E/AndroidRuntime( 3110): java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.intent.action.PHONE_STATE from pid=3110, uid=10083
E/AndroidRuntime( 3110): at android.os.Parcel.readException(Parcel.java:1461)
E/AndroidRuntime( 3110): at android.os.Parcel.readException(Parcel.java:1415)
E/AndroidRuntime( 3110): at android.app.ActivityManagerProxy.broadcastIntent(ActivityManagerNative.java:2373)
E/AndroidRuntime( 3110): at android.app.ContextImpl.sendBroadcast(ContextImpl.java:1141)
E/AndroidRuntime( 3110): at android.content.ContextWrapper.sendBroadcast(ContextWrapper.java:370)
E/AndroidRuntime( 3110): at com.csipsimple.pjsip.UAStateReceiver.broadCastAndroidCallState(UAStateReceiver.java:883)
E/AndroidRuntime( 3110): at com.csipsimple.pjsip.UAStateReceiver.access$400(UAStateReceiver.java:80)
E/AndroidRuntime( 3110): at com.csipsimple.pjsip.UAStateReceiver$WorkerHandler.handleMessage(UAStateReceiver.java:649)
E/AndroidRuntime( 3110): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 3110): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 3110): at android.os.HandlerThread.run(HandlerThread.java:61)
My guess is some new permissions management in KitKat requires additional application permissions for PHONE_STATE broadcasts. I believe this is something the developer will need to remedy, possibly by adding a new permission requirement to the application package?
Anyone else use CSipSimple, and could confirm they're seeing the same thing?

Just download the newest nightly. It fixes everything.
http://nightlies.csipsimple.com/trunk/
Any after November 2nd I think are fixed, but there are no reasons not to just install the latest nightly.

Nice! Fixed! Thanks

How You fix this error?
nrvate said:
Nice! Fixed! Thanks
Click to expand...
Click to collapse
How you fix this error please response quickly with solution
---------- Post added at 12:55 PM ---------- Previous post was at 12:51 PM ----------
nrvate said:
Hi all,
I've used CSipSimple for SIP VOIP calling for a while. Great app. Gave it a try with the Nexus 5 on the factory firmware and it explodes just after placing a call. Logcat shows:
Code:
E/AndroidRuntime( 3110): FATAL EXCEPTION: UAStateAsyncWorker
E/AndroidRuntime( 3110): Process: com.csipsimple:sipStack, PID: 3110
E/AndroidRuntime( 3110): java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.intent.action.PHONE_STATE from pid=3110, uid=10083
E/AndroidRuntime( 3110): at android.os.Parcel.readException(Parcel.java:1461)
E/AndroidRuntime( 3110): at android.os.Parcel.readException(Parcel.java:1415)
E/AndroidRuntime( 3110): at android.app.ActivityManagerProxy.broadcastIntent(ActivityManagerNative.java:2373)
E/AndroidRuntime( 3110): at android.app.ContextImpl.sendBroadcast(ContextImpl.java:1141)
E/AndroidRuntime( 3110): at android.content.ContextWrapper.sendBroadcast(ContextWrapper.java:370)
E/AndroidRuntime( 3110): at com.csipsimple.pjsip.UAStateReceiver.broadCastAndroidCallState(UAStateReceiver.java:883)
E/AndroidRuntime( 3110): at com.csipsimple.pjsip.UAStateReceiver.access$400(UAStateReceiver.java:80)
E/AndroidRuntime( 3110): at com.csipsimple.pjsip.UAStateReceiver$WorkerHandler.handleMessage(UAStateReceiver.java:649)
E/AndroidRuntime( 3110): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 3110): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 3110): at android.os.HandlerThread.run(HandlerThread.java:61)
My guess is some new permissions management in KitKat requires additional application permissions for PHONE_STATE broadcasts. I believe this is something the developer will need to remedy, possibly by adding a new permission requirement to the application package?
Anyone else use CSipSimple, and could confirm they're seeing the same thing?
Click to expand...
Click to collapse
Please reply me on my mail "[email protected]"
Please asaP
Thanks you

Related

[Q] How to odex\deodex a new system APK

Hi there guys, hows it going?
I needed to replace a system .apk file, but i ended screwing up my phone...
So the file was Bluetooth.apk and i pushed it onto /system/app/Bluetooth.apk, replacing the old file.
However, when i rebooted, the mobile hanged and i get the errors:
Code:
E/AndroidRuntime( 2301): Uncaught handler: thread android.server.ServerThread exiting due to uncaught exception
E/AndroidRuntime( 2301): *** EXCEPTION IN SYSTEM PROCESS. System will crash.
E/AndroidRuntime( 2301): dalvik.system.Stale[B]Dex[/B]CacheError: /system/app/Bluetooth.apk
E/AndroidRuntime( 2301): at dalvik.system.DexFile.isDexOptNeeded(Native Method)
E/AndroidRuntime( 2301): at com.android.server.PackageManagerService.performDexOptLI(PackageManagerService.java:2171)
E/AndroidRuntime( 2301): at com.android.server.PackageManagerService.scanPackageLI(PackageManagerService.java:2538)
E/AndroidRuntime( 2301): at com.android.server.PackageManagerService.scanPackageLI(PackageManagerService.java:2105)
E/AndroidRuntime( 2301): at com.android.server.PackageManagerService.scanDirLI(PackageManagerService.java:1992)
E/AndroidRuntime( 2301): at com.android.server.PackageManagerService.<init>(PackageManagerService.java:582)
E/AndroidRuntime( 2301): at com.android.server.PackageManagerService.main(PackageManagerService.java:339)
E/AndroidRuntime( 2301): at com.android.server.ServerThread.run(SystemServer.java:168)
E/AndroidRuntime( 2301): Crash logging skipped, no checkin service
I/ANDROID_DEBUG( 2301): dumpstate > /data/log/dumpstate_sys.log
I ripped this apk from a ROM where there was the .apk and the .odex file for each app in /system/app, so I think i'm missing something here.
Can anyone shed some light?
Thanks
Phk

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 ?

CM12 - System UI has stopped loop

Hey guys,
just updated to the nightly of CM12 and ended up in the System UI has stopped loop .
Anyone having the same issue?
Regards,
Spoom
Trace:
D/AndroidRuntime( 5112): Shutting down VM
E/AndroidRuntime( 5112): FATAL EXCEPTION: main
E/AndroidRuntime( 5112): Process: com.android.systemui, PID: 5112
E/AndroidRuntime( 5112): java.lang.NullPointerException: Attempt to invoke interface method 'int android.security.IKeystoreService.zero()' on a null object reference
E/AndroidRuntime( 5112): at android.os.Parcel.readException(Parcel.java:1546)
E/AndroidRuntime( 5112): at android.os.Parcel.readException(Parcel.java:1493)
E/AndroidRuntime( 5112): at android.app.admin.IDevicePolicyManager$Stub$Proxy.requireSecureKeyguard(IDevicePolicyManager.java:4627)
E/AndroidRuntime( 5112): at android.app.admin.DevicePolicyManager.requireSecureKeyguard(DevicePolicyManager.java:3491)
E/AndroidRuntime( 5112): at com.android.internal.widget.LockPatternUtils.getActiveProfileLockMode(LockPatternUtils.java:1506)
E/AndroidRuntime( 5112): at com.android.keyguard.KeyguardSecurityModel.getSecurityMode(KeyguardSecurityModel.java:96)
E/AndroidRuntime( 5112): at com.android.keyguard.KeyguardSecurityContainer.showPrimarySecurityScreen(KeyguardSecurityContainer.java:293)
E/AndroidRuntime( 5112): at com.android.keyguard.KeyguardViewBase.onFinishInflate(KeyguardViewBase.java:108)
E/AndroidRuntime( 5112): at android.view.LayoutInflater.rInflate(LayoutInflater.java:814)
E/AndroidRuntime( 5112): at android.view.LayoutInflater.parseInclude(LayoutInflater.java:916)
E/AndroidRuntime( 5112): at android.view.LayoutInflater.rInflate(LayoutInflater.java:802)
E/AndroidRuntime( 5112): at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
E/AndroidRuntime( 5112): at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
E/AndroidRuntime( 5112): at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
E/AndroidRuntime( 5112): at com.android.systemui.statusbar.phone.KeyguardBouncer.inflateView(KeyguardBouncer.java:166)
E/AndroidRuntime( 5112): at com.android.systemui.statusbar.phone.KeyguardBouncer.ensureView(KeyguardBouncer.java:160)
E/AndroidRuntime( 5112): at com.android.systemui.statusbar.phone.KeyguardBouncer.prepare(KeyguardBouncer.java:155)
E/AndroidRuntime( 5112): at com.android.systemui.statusbar.phone.StatusBarKeyguardViewManager.showBouncerOrKeyguard(StatusBarKeyguardViewManager.java:115)
E/AndroidRuntime( 5112): at com.android.systemui.statusbar.phone.StatusBarKeyguardViewManager.reset(StatusBarKeyguardViewManager.java:147)
E/AndroidRuntime( 5112): at com.android.systemui.statusbar.phone.StatusBarKeyguardViewManager.show(StatusBarKeyguardViewManager.java:99)
E/AndroidRuntime( 5112): at com.android.systemui.keyguard.KeyguardViewMediator.handleShow(KeyguardViewMediator.java:1281)
E/AndroidRuntime( 5112): at com.android.systemui.keyguard.KeyguardViewMediator.access$1700(KeyguardViewMediator.java:116)
E/AndroidRuntime( 5112): at com.android.systemui.keyguard.KeyguardViewMediator$4.handleMessage(KeyguardViewMediator.java:1112)
E/AndroidRuntime( 5112): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 5112): at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime( 5112): at android.app.ActivityThread.main(ActivityThread.java:5223)
E/AndroidRuntime( 5112): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 5112): at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime( 5112): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:898)
E/AndroidRuntime( 5112): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:693)
W/ActivityManager( 764): Process com.android.systemui has crashed too many times: killing!
Same here.
After struggle to install CM12, now it keep popping up System UI stopped.
Any response or tip would help greatly .
Mathsiel said:
Same here.
After struggle to install CM12, now it keep popping up System UI stopped.
Any response or tip would help greatly .
Click to expand...
Click to collapse
I had the same issue when updating from KitKat 4.4.4 to the latest build yesterday. I wasn't even aware of installing CM12! Now I installed the NIGHTLY from 15.01.2015 and it's at least working stable. The only thing I've found out so far is, that pictured won't get saved. But I barely use my phone to make pictures...
For the future: We need a better update policy here... Someone should at least post, what we're installing and if it's working. Some kind of a testing threat or something so that you can be sure, that your system most likely won't get screwed!
just install this patch http://forum.xda-developers.com/showpost.php?p=58350489&postcount=223

[Q] "android.process.media has stopped" Stock 5.1.1

Hi,
I've just updated my phone to stock 5.1.1 and I've deleted some system apps I don't need like I've done with 5.1.
Everythings works perfectly except that when I try to open the Download Manager it says "android.process.media has stopped" and I can't use it.
I've seen that I've deleted one more app thant with 5.1, DocumentsUI. Can it be this missing app that cause this error ?
Ive tried to put it back by extracting it from the system.img and moving it's folder in the right place with the same system right but the problem is still the same.
Kind regards
As it's a UI - User interface I'd say so. Start again and freeze apps you are not 100%sure of. You can unfreeze if it's needed.
SENT BY ENTANGLEMENT
I've done some investigations on my brother's phone and now I'm pretty sur that my problem is because I've deleted the Docs app that was in system\app\DocumentsUI.
Is there a way to put it back without flashing the whole ROM again ?
I've still got this problem. I have this logcat if someone is able to help me...
E/AndroidRuntime( 5031): FATAL EXCEPTION: main
E/AndroidRuntime( 5031): Process: android.process.media, PID: 5031
E/AndroidRuntime( 5031): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.providers.downloads.ui/com.android.providers.downloads.ui.DownloadList}: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.provider.action.MANAGE_ROOT dat=content://com.android.providers.downloads.documents/root/downloads }
E/AndroidRuntime( 5031): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325)
E/AndroidRuntime( 5031): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
E/AndroidRuntime( 5031): at android.app.ActivityThread.access$800(ActivityThread.java:151)
E/AndroidRuntime( 5031): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
E/AndroidRuntime( 5031): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 5031): at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime( 5031): at android.app.ActivityThread.main(ActivityThread.java:5254)
E/AndroidRuntime( 5031): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 5031): at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime( 5031): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
E/AndroidRuntime( 5031): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
E/AndroidRuntime( 5031): Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.provider.action.MANAGE_ROOT dat=content://com.android.providers.downloads.documents/root/downloads }
E/AndroidRuntime( 5031): at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1781)
E/AndroidRuntime( 5031): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1501)
E/AndroidRuntime( 5031): at android.app.Activity.startActivityForResult(Activity.java:3745)
E/AndroidRuntime( 5031): at android.app.Activity.startActivityForResult(Activity.java:3706)
E/AndroidRuntime( 5031): at android.app.Activity.startActivity(Activity.java:4016)
E/AndroidRuntime( 5031): at android.app.Activity.startActivity(Activity.java:3984)
E/AndroidRuntime( 5031): at com.android.providers.downloads.ui.DownloadList.onCreate(DownloadList.java:35)
E/AndroidRuntime( 5031): at android.app.Activity.performCreate(Activity.java:5990)
E/AndroidRuntime( 5031): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
E/AndroidRuntime( 5031): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
E/AndroidRuntime( 5031): ... 10 more
Just dirty flash same rom. All the apps will be there

Launcher background image not possible on rooted [Tolino Page 11.2.3]

I rooted my Tolino Page some times ago and was able to install "ADW Launcher" and set background image using "Wallpaper Changer". At the time the firmware was 10.0.1 based on Android 4.0.4.
Since some weeks tolino published an update to 11.2.3, based on Android 4.4.2.
Device updated, factory-reset, rooted, installed all apps again, all is working as expected with the exception the background image cannot be set in launcher. I tried different launchers, all with the same issue, I just get a message "Error appears, please try again after reboot" (message free translated from german).
Any idea what is missed? Is there any software I can install to try to solve the issue? What I can check to find the reason?
I am firm with linux-command line and can apply patches and compile components if I get the right howto how to setup build environment.
I can manupulate directly the system as root trough adb shell
The used build is [not allowed to post , search for "mytolino update", then "page"]
The source code is [not allowed to post , search for "mytolino open source", then "page"]
Found the next mesages in logcat
Code:
W/WallpaperManager( 3098): WallpaperService not running
W/WallpaperManager( 3098): WallpaperService not running
D/AndroidRuntime( 3098): Shutting down VM
W/dalvikvm( 3098): threadid=1: thread exiting with uncaught exception (group=0x40e27ba8)
E/AndroidRuntime( 3098): FATAL EXCEPTION: main
E/AndroidRuntime( 3098): Process: com.simplemobiletools.gallery, PID: 3098
E/AndroidRuntime( 3098): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.simplemobiletools.gallery/com.simplemobiletools.gallery.activities.SetWallpaperActivity}: java.lang.IllegalArgumentException: Cannot set aspect ratio value to a number less than or equal to 0.
E/AndroidRuntime( 3098): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)
E/AndroidRuntime( 3098): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
E/AndroidRuntime( 3098): at android.app.ActivityThread.access$800(ActivityThread.java:135)
E/AndroidRuntime( 3098): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
E/AndroidRuntime( 3098): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 3098): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 3098): at android.app.ActivityThread.main(ActivityThread.java:5017)
E/AndroidRuntime( 3098): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 3098): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 3098): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
E/AndroidRuntime( 3098): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
E/AndroidRuntime( 3098): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 3098): Caused by: java.lang.IllegalArgumentException: Cannot set aspect ratio value to a number less than or equal to 0.
E/AndroidRuntime( 3098): at com.theartofdev.edmodo.cropper.CropOverlayView.setAspectRatioX(SourceFile:274)
E/AndroidRuntime( 3098): at com.theartofdev.edmodo.cropper.CropImageView.a(SourceFile:523)
E/AndroidRuntime( 3098): at com.simplemobiletools.gallery.activities.SetWallpaperActivity.setupAspectRatio(SourceFile:75)
E/AndroidRuntime( 3098): at com.simplemobiletools.gallery.activities.SetWallpaperActivity.handleImage(SourceFile:60)
E/AndroidRuntime( 3098): at com.simplemobiletools.gallery.activities.SetWallpaperActivity.onCreate(SourceFile:42)
E/AndroidRuntime( 3098): at android.app.Activity.performCreate(Activity.java:5231)
E/AndroidRuntime( 3098): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
E/AndroidRuntime( 3098): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
E/AndroidRuntime( 3098): ... 11 more
W/ActivityManager( 2462): Force finishing activity com.simplemobiletools.gallery/.activities.SetWallpaperActivity
Any idea what is missed?
I am Android noob, but I get set up a working AOSP build environment for ntx_6sl. So I can try some compiled files if I know which are necessary to set the WallpaperService running

Categories

Resources