Could not get Default (SecurityException) - Android Q&A, Help & Troubleshooting

Hello all,
I have a quick (hopefully) question regarding an app that I'm using. I ported an app from AOSP to Touchwiz and removed the Touchwiz stock InCallUI, forcing the phone to use the AOSP one instead. However, the app tends to hang before changing displays. I took a logcat and the only error I believe could have had an effect is this one:
Code:
[ 04-12 00:53:28.636 1605: 1672 E/Telecom ]
TelecomServiceImpl: Could not get default dialer.
java.lang.SecurityException: Package com.android.incallui does not belong to 10003
at android.app.AppOpsManager.checkPackage(AppOpsManager.java:1686)
at com.android.server.telecom.TelecomServiceImpl.isDefaultDialerCalling(TelecomServiceImpl.java:680)
at com.android.server.telecom.TelecomServiceImpl.enforceModifyPermissionOrDefaultDialer(TelecomServiceImpl.java:626)
at com.android.server.telecom.TelecomServiceImpl.cancelMissedCallsNotification(TelecomServiceImpl.java:462)
at com.android.internal.telecom.ITelecomService$Stub.onTransact(ITelecomService.java:312)
at android.os.Binder.execTransact(Binder.java:446)
It seems like the issue was due to it not being set as the default app or some issue with the permissions. I tried looking for an xml that sets the default apps, but couldn't find one. I also looked through the build.prop, but I don't think there was anything of noticeable change in there.
My Device Specs:
SM-G900A
Lollipop 5.0 Based on G900F ROM
Rooted
No Xposed
Stock Kernel
I would appreciate any and all assistance in solving this issue.

Related

[Q] Porting TouchWiz Calendar

Hi there,
I know this seems very backwards (most people have only negative things to say about the TouchWiz Calendar from the Galaxy S series) but my dad really likes the TouchWiz Calendar because of it's easy readability and simplicity.
Is there any way to port it from the SGS to the Sony XPERIA x10 (CM6.1)?
I tried copying the .apks (CalendarProvider and TouchWizCalendar specifically), and it FC's.
This is the error retrieved from logcat:
I/ActivityManager( 1567): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]flg=0x10200000 cmp=com.android.calendar/.LaunchActivity }
I/ActivityManager( 1567): Start proc com.android.calendar for activity com.android.calendar/.LaunchActivity: pid=2253 uid=10037 gids={3003, 1015}
I/ActivityManager( 1567): Starting activity: Intent { flg=0x20020000 cmp=com.android.calendar/.MonthActivity (has extras) }
I/ActivityManager( 1567): Start proc com.android.providers.calendar for content provider com.android.providers.calendar/.CalendarProvider2: pid=2275 uid=10037 gids={3003, 1015}
W/ResourceType( 2253): No known package when getting value for resource number 0x02050001
D/AndroidRuntime( 2253): Shutting down VM
W/dalvikvm( 2253): threadid=1: thread exiting with uncaught exception (group=0x4001d7c8)
E/AndroidRuntime( 2253): FATAL EXCEPTION: main
E/AndroidRuntime( 2253): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.calendar/com.android.calendar.MonthActivity}:android.view.InflateException: Binary XML file line #17: Error inflating class android.widget.LinearLayout
Click to expand...
Click to collapse
Thanks in advance.
Remove the other calendar first, system default app - com.android.calendar - xrecovery dalvik cache
Titanium backup first and clean installation with clear cache and logcat again? O
rm-rf /data/dalvik-cache/*
@ root set your cache to relocate.. nothing essential..
mv /data/dalvik-cache /cache/dc
symlink;
ln-s /cache/dc /data/dalvik-cache
Wait, so:
1) Clean ROM Install
2) Remove Default Calendar
3) Install TouchWiz Calendar
4) Wipe Cache in xRecovery
Is that all? It should work following these steps?
Moved to Q&A as not android development
Got a little further...
So after following MrHassell's instructions and reading the errors, I got a little further
The errors seemed to indicate that it was missing a few files, so I decided I'd put them on to the phone from my gt-I9000 as long as they weren't already there.
I pushed the two files:
android.test.runner.jar and
com.google.maps.jar (don't know why it needs this, but it was complaining so I gave it to it)
to the XPERIA.
Now I'm getting the following error:
E/AndroidRuntime( 2188): Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path):TypedValue{t=0x1/d=0x2050001 a=-1 r=0x2050001}
Click to expand...
Click to collapse
This is part of a series of errors but this was the lowest "Caused by" error.
Obviously it's missing something still, but the cryptic TypedValue code doesn't help me much. I've used the apktool to decode the TouchWizCalendar.apk calendar into smali files and res, but this also hasn't helped me much.
Any further suggestions?
Okay, I am posting the full logcat here by request along with the apk and both of the aforementioned jar files (that I am aware of so far). The TouchWiz calendar I am trying to port is from a GT-I9000M running Froyo and it's being copied to a Sony XPERIA x10a running CM6.1(i.e. Froyo as well).
EDIT: Forgot to attach log!
mangelok said:
TouchWiz calendar from a GT-I9000M running Froyo and to a Sony XPERIA x10a running CM6.1(i.e. Froyo as well).
Click to expand...
Click to collapse
seems reasonable, I'lll switch to Froyo and port it. Looks like it's waffling on about resources, might have to rip some stuff out of Darky's rom.. do you know if it works in Darky''s rom or is it vanilla Galaxy S? Looks like some cool set of widgets.. just the Galaxy S.. too blue, evn the pictures are blue - lol
MrHassell said:
seems reasonable, I'lll switch to Froyo and port it. Looks like it's waffling on about resources, might have to rip some stuff out of Darky's rom.. do you know if it works in Darky''s rom or is it vanilla Galaxy S? Looks like some cool set of widgets.. just the Galaxy S.. too blue, evn the pictures are blue - lol
Click to expand...
Click to collapse
That would be super awesome if you did that!
My phone runs Darky's at the moment so yes, yes it does work in Darky's.
mangelok said:
That would be super awesome if you did that!
My phone runs Darky's at the moment so yes, yes it does work in Darky's.
Click to expand...
Click to collapse
Think that I might have a quick solution worth looking into;
http://forum.xda-developers.com/showthread.php?t=955803
TouchWiz Launcher for the Xperia x10 - by cruzin_cruzing is ported to Xperia and confirmed working in Froyo as I have it running on my phone right now.. the one thing that I have not done as yet, is backup and remove my default calendar app and try to reinstall, which is what is needed to see the output from logcat or demesg - either way in the install it will log and my apologies, I've had too many things that have kept me from doing this!
I didn't find that one, but I found the Nexus One version of TWLauncher.
Unfortunately, installing it didn't help me get the TW Calendar any, and I would imagine that this wouldn't either.
Thanks for looking into it though.
Need a specific activity or make it work as a service. It runs in a global context - com.android.calendar - and the remove (global) and re-install fails as it isn't signed.
Deodex and sign again isn't the only problem though, only part of it. I'm continuing to look into it, although which X10 firmware are you using? Xfree Beta 4? It's needs to be deodexed, rooted and resigned, with the missing dependant files;
android.policy.jar
framework.jar
framework-res.apk
Settings.apk
twframework-res.apk
EDIT: I'm grabbing these from Darky's rom decompiled and found the missing parts were all twframework-res.apk dependencies. Rebuilding now..
I'm running one of the CM6 releases. Found it here on the forum. Just don't know which. I'll run any rom so long as this calendar works with it.
What is your method of checking dependencies? (e.g. how do you do it?)
Did you figure out the twframework-res.apk dependencies?
So, are you suggesting that I just need to do what you said for it to work? Your edit confuses me.
Are you suggesting you took apart the apks and figured out what the Calendar specifically needed and are now rebuilding a version that doesn't need the other apks?
Or are you suggesting that there's more dependencies yet, but you are currently rebuilding it with them?
Click to expand...
Click to collapse
Hey - Hope your well and sorry I've taken so long in responding. Not been working on this lately - other things happening and one of which is why I'm, posting this and not private messaging, it's been disabled on me..
Yes! - What I've been doing is using the dependent framework file to reverse engineer the apk.
twframework-res.apk
This is the Touchwiz specific framework that Samsung included for any of the widgets or apps. This way it isolates itself from the core operating system and can be modified independently etc..
http://code.google.com/p/android-apktool/
Reverse engineering is easy. What is hard is recompiling it back to a working version and that is where I'm stuck with it at the moment and have had little progress or time to work on it... also noting that nobody else is working with this is making it a one way project..
That's what I feared. I wish I could help.. I'm just not very experienced..
but I can learn!
http://forum.xda-developers.com/showthread.php?t=707189
I'm sure you've probably seen that guide .
Can you upload what you have? I have lots of free time now (I've got the week off) so maybe I can figure something out.
So you decompiled it with APKTool, fixed it, and now you're trying to compile it again?
I'm sure if we ask enough questions on these boards, one of us will be able to get it to work.
Thanks so much for doing this !
http://code.google.com/p/smali/
This is the de-compiled source from the touchwiz framework mentioned. It de-compiles but the problem is using baksmali code to figure out what is going on with the framework dependency.. sorry I've just not had enough time to look into it properly

[Q] Error - Cannot xposed/modules.whitelist with Padawan JB V2 || 4.1.2| 5|31

I have tried several JB ROMS(Padawan,JellyBeer and decide to settle with "|ROM||AROMA|| Padawan JB V2 || PIE || Per App DPI ||4.1.2| 5|31".
- with S Note/Calendar and other additional tweaks that I like.
But these are few question and issue I like to get some help.
Q1. Error after I uninstall app "cannot read /data/xposed/modules.whitelist"
I already found another topic thread(http://forum.xda-developers.com/showthread.php?t=2169638)
but still could find the clear solution to remove this error.
Yes, this is my third/forth flashing to make sure everything to avoid bad flashing situation and wait 15 min with stopwatch level!
Does anyone know the fix on specifically for this ROM?
I only found "i solved it by installing xposed framework from the rom's settings."
=> How do I run/use/apply this?
Q2. Camera App
While I am installing ROM, I did select "4.2Camera" module.
I was expecting the 4.2 JB style camera (w/ lots of new options.). But it seems like NOT the newest version.
(My factor to the new version things are different option buttons and layout along with function(like burst shooting, timer shooting) with
kind the "O" ring option dial. I do not see anything on my camera app.
Did I do something wrong? or Is there any solution to load new version of camera app?
It would be great if I just could fix/update these two keep 4.1 JB version
Q3. Very Minor - want to change boot/exit animation.
Any easy solution to suggest?
Thank you for all support from everybody in advance.
Issue 1 & 3 Solved. Still need help on Camera App!
Q1. Error after I uninstall app "cannot read /data/xposed/modules.whitelist"
I already found another topic thread(http://forum.xda-developers.com/showthread.php?t=2169638)
but still could find the clear solution to remove this error.
Yes, this is my third/forth flashing to make sure everything to avoid bad flashing situation and wait 15 min with stopwatch level!
Does anyone know the fix on specifically for this ROM?
I only found "i solved it by installing xposed framework from the rom's settings."
=> How do I run/use/apply this?
FIXED! => by installing xposed framework! NO MORE ERROR after uninstall.
Q2. Camera App
While I am installing ROM, I did select "4.2Camera" module.
I was expecting the 4.2 JB style camera (w/ lots of new options.). But it seems like NOT the newest version.
(My factor to the new version things are different option buttons and layout along with function(like burst shooting, timer shooting) with
kind the "O" ring option dial. I do not see anything on my camera app.
Did I do something wrong? or Is there any solution to load new version of camera app?
It would be great if I just could fix/update these two keep 4.1 JB version
Q3. Very Minor - want to change boot/exit animation.
Any easy solution to suggest?
SOME WORK DONE
=> by using Bootanimation4U.zip for Boot Animation
=> by using shutdown.qmg for shutdown/exit Animation
I still need help on Camera App. Can someone help me?
Thank you~!
[/QUOTE]
[email protected] said:
I have tried several JB ROMS(Padawan,JellyBeer and decide to settle with "|ROM||AROMA|| Padawan JB V2 || PIE || Per App DPI ||4.1.2| 5|31".
- with S Note/Calendar and other additional tweaks that I like.
But these are few question and issue I like to get some help.
Q1. Error after I uninstall app "cannot read /data/xposed/modules.whitelist"
I already found another topic thread(http://forum.xda-developers.com/showthread.php?t=2169638)
but still could find the clear solution to remove this error.
Yes, this is my third/forth flashing to make sure everything to avoid bad flashing situation and wait 15 min with stopwatch level!
Does anyone know the fix on specifically for this ROM?
I only found "i solved it by installing xposed framework from the rom's settings."
=> How do I run/use/apply this?
Q2. Camera App
While I am installing ROM, I did select "4.2Camera" module.
I was expecting the 4.2 JB style camera (w/ lots of new options.). But it seems like NOT the newest version.
(My factor to the new version things are different option buttons and layout along with function(like burst shooting, timer shooting) with
kind the "O" ring option dial. I do not see anything on my camera app.
Did I do something wrong? or Is there any solution to load new version of camera app?
It would be great if I just could fix/update these two keep 4.1 JB version
Q3. Very Minor - want to change boot/exit animation.
Any easy solution to suggest?
Thank you for all support from everybody in advance.
Click to expand...
Click to collapse
A1 The answer in the thread you provided was "Originally Posted by aztr0 Go to Settings, Interface, Install Xposed DPI Installer. That is all."
xposed is a separate framework that runs on a low level. There should be a lil green android guy with "xposed installer" in your applications. Open it and press "install/Update"
A2 If you're on a 4.1.2 version you won't be able to get the 4.2.2 camera. There's 3rd party apps like JB Camera or Snap Camera available for purchase though. JamieD also posted this Google Edition Camera recently. It might be the one you enabled though.
A3 Here ishttp://forum.xda-developers.com/showthread.php?t=2340301
Here is a few more ways!!!
Boot animations aren't that difficult to change. I haven't seen anything about exit animations though.
440bro said:
A1 The answer in the thread you provided was "Originally Posted by aztr0 Go to Settings, Interface, Install Xposed DPI Installer. That is all."
xposed is a separate framework that runs on a low level. There should be a lil green android guy with "xposed installer" in your applications. Open it and press "install/Update"
A2 If you're on a 4.1.2 version you won't be able to get the 4.2.2 camera. There's 3rd party apps like JB Camera or Snap Camera available for purchase though. JamieD also posted this Google Edition Camera recently. It might be the one you enabled though.
A3 Here ishttp://forum.xda-developers.com/showthread.php?t=2340301
Here is a few more ways!!!
Boot animations aren't that difficult to change. I haven't seen anything about exit animations though.
Click to expand...
Click to collapse
wrong, the 4.2.2 camera from google edition does work on the 4.1.2 tw roms, it just has some focus issues with photosphere/panorama
OP you can find my zip for the camera in the themes/apps section here
[email protected] said:
I have tried several JB ROMS(Padawan,JellyBeer and decide to settle with "|ROM||AROMA|| Padawan JB V2 || PIE || Per App DPI ||4.1.2| 5|31".
- with S Note/Calendar and other additional tweaks that I like.
But these are few question and issue I like to get some help.
Q1. Error after I uninstall app "cannot read /data/xposed/modules.whitelist"
I already found another topic thread(http://forum.xda-developers.com/showthread.php?t=2169638)
but still could find the clear solution to remove this error.
Yes, this is my third/forth flashing to make sure everything to avoid bad flashing situation and wait 15 min with stopwatch level!
Does anyone know the fix on specifically for this ROM?
I only found "i solved it by installing xposed framework from the rom's settings."
=> How do I run/use/apply this
Thank you for all support from everybody in advance.
Click to expand...
Click to collapse
Hi, sorry for bumping old thread. I am currently facing the same problem, tried enabling a module (app setting) in xposed and this message pops-out ("cannot read /data/xposed/modules.whitelist")
I tried unistalling XPosed by clicking the Uninstall(restore app process) button and reinstalling it back and the performed a reboot. Still no success...
By the way I am running on android 4.3, with xposed framework version 2.2 and rooted using chainfire SuperSU 6.5...
Any help is much appreciated.
EDIT [SOLVED]:
Problem was caused because of SELinux. Upgraded my Xposed Framework to 2.3 (beta) and module can now be enabled again!
Link to Xposed Framework 2.3 (Beta) : http://forum.xda-developers.com/showpost.php?p=46002463&postcount=4050&nocache=1&z=2521732670720666

[Q] Default language & input

Hello Everyone,
I am hoping that the Q&A section here can be some assistance as I am unable to post in the more appropriate thread in my opinion.
Samsung Galaxy S4 - ROM CM11 - M7 build jflte (4.4.3) - I545VRUAMDK baseband
Trying to determine if anyone else who uses another keyboard such as swiftkey or others on CM11 are seeing their default input changing with no interaction from the user. I have done a dirty and clean rom install however it seems regardless they both are showing the same errors. I dumped a log however again, nothing our of the ordinary from what I am able to find.
I rolled back to the 6-4 version directly after the experimental and haven't been able to replicate the error thus far.
Recommendations? Has anyone else been seeing default inputs changing after the M7 snapshot?
*** Yes I know that you are able to just disable default input and force it to use the keyboard of choice. Trying to replicate or confirm an issue more than anything ***
Thanks

[Q] Sideloading AOSP Apps to Stock: Odd Bug?

I am running stock 4.4.4 KTU84P on a Nexus7 with many system apps stripped out.
I have included apks for the AOSP browser from a ROM intended for my device.
The problem I've noticed is under the menu, "Find in Page" Item was titled "Password".
So I replaced this Apk with one from a recent CM Nightly for my device and it reads "ISO A5".
My question is, why would just this string be impacted? Any ideas on where the bug stems from?
Thanks for your ideas!

[HELP] How to fix RIL and THEMES APP in MIUI 7?

Hello Guys! I have ported MIUI 7 for my device Xperia M. Took base as CM11 and ported. It boots up and everything works fine. All the apps. But there is a continuous FC com.android.phone has stopped. And com.themes.activity has stopped. I disabled FC messages from dev options to try out other things and all other apps work fine.
The list of non working things:
1. Messaging App (RIL problem)
2. Phone app (RIL problem)
3. Contacts app (Again RIL)
4. Themes app. (No idea why)
I am most probably missing telephony files or something but I don't know so please help me guys.
The logcat link is : pastebin.com/buLzqyZH
Too many dalvikvm errors..Refer to the earlier pages of this thread and add build.prop lines at the end..Also replace /system/bin/app_process with port rom.
This answer was given by STRYDER~007 so can you look into it? I don't know coding... He said to look into earlier pages of this thread
http://forum.xda-developers.com/and...-to-device-t3250984/post65319924#post65319924

Categories

Resources