[Q] Help troubleshooting an application crashing (JuiceDefender) - Nexus 4 Q&A, Help & Troubleshooting

I have an application called JuiceDefender which runs for a while, but then I'll unlock my phone and notice the service isn't running.
I looked through the logs and I see the following error occurring:
12-28 07:27:23.200 W/ActivityManager(559): Permission Denial: broadcast from android asks to run as user -1 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL or android.permission.INTERACT_ACROSS_USERS
12-28 07:27:23.210 W/System.err(18616): at android.os.Parcel.readException(Parcel.java:1425)
12-28 07:27:23.210 W/System.err(18616): at android.os.Parcel.readException(Parcel.java:1379)
12-28 07:27:23.210 W/System.err(18616): at android.net.wifi.IWifiManager$Stub$Proxy.setWifiEnabled(IWifiManager.java:692)
12-28 07:27:23.210 W/System.err(18616): at android.net.wifi.WifiManager.setWifiEnabled(WifiManager.java:891)
12-28 07:27:23.210 W/System.err(18616): at com.latedroid.juicedefender.bj.c(SourceFile:2330)
12-28 07:27:23.210 W/System.err(18616): at com.latedroid.juicedefender.bj.a(SourceFile:2294)
12-28 07:27:23.210 W/System.err(18616): at com.latedroid.juicedefender.bj.a(SourceFile:2125)
12-28 07:27:23.210 W/System.err(18616): at com.latedroid.juicedefender.eh.handleMessage(SourceFile:3884)
12-28 07:27:23.210 W/System.err(18616): at android.os.Handler.dispatchMessage(Handler.java:99)
12-28 07:27:23.210 W/System.err(18616): at android.os.Looper.loop(Looper.java:137)
12-28 07:27:23.210 W/System.err(18616): at com.latedroid.juicedefender.bj.run(SourceFile:5118)
I'm running on a Nexus 4, CyanogenMod 10.1 (JellyBro 12/27), and I have SuperSU installed for root access.
Anyone have any ideas what I can check out based on that stack trace above?

dmorand said:
I have an application called JuiceDefender which runs for a while, but then I'll unlock my phone and notice the service isn't running.
I looked through the logs and I see the following error occurring:
12-28 07:27:23.200 W/ActivityManager(559): Permission Denial: broadcast from android asks to run as user -1 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL or android.permission.INTERACT_ACROSS_USERS
12-28 07:27:23.210 W/System.err(18616): at android.os.Parcel.readException(Parcel.java:1425)
12-28 07:27:23.210 W/System.err(18616): at android.os.Parcel.readException(Parcel.java:1379)
12-28 07:27:23.210 W/System.err(18616): at android.net.wifi.IWifiManager$Stub$Proxy.setWifiEnabled(IWifiManager.java:692)
12-28 07:27:23.210 W/System.err(18616): at android.net.wifi.WifiManager.setWifiEnabled(WifiManager.java:891)
12-28 07:27:23.210 W/System.err(18616): at com.latedroid.juicedefender.bj.c(SourceFile:2330)
12-28 07:27:23.210 W/System.err(18616): at com.latedroid.juicedefender.bj.a(SourceFile:2294)
12-28 07:27:23.210 W/System.err(18616): at com.latedroid.juicedefender.bj.a(SourceFile:2125)
12-28 07:27:23.210 W/System.err(18616): at com.latedroid.juicedefender.eh.handleMessage(SourceFile:3884)
12-28 07:27:23.210 W/System.err(18616): at android.os.Handler.dispatchMessage(Handler.java:99)
12-28 07:27:23.210 W/System.err(18616): at android.os.Looper.loop(Looper.java:137)
12-28 07:27:23.210 W/System.err(18616): at com.latedroid.juicedefender.bj.run(SourceFile:5118)
I'm running on a Nexus 4, CyanogenMod 10.1 (JellyBro 12/27), and I have SuperSU installed for root access.
Anyone have any ideas what I can check out based on that stack trace above?
Click to expand...
Click to collapse
Just to add to this. This app was working fine when I was running as Stock. I'm thinking this is probably being caused from CM, but not exactly sure.

bump

Is there a particular reason you're using juice defender? In my experience, it doesn't really provide much benefit.

I like how it shuts down the mobile data when my screen is off so I can try and squeeze out more battery life.

dmorand said:
I like how it shuts down the mobile data when my screen is off so I can try and squeeze out more battery life.
Click to expand...
Click to collapse
What's the point in that? No syncing of Gmails, etc.
No point in using a smartphone if you're going to be doing that. Look for battery maximization elsewhere such as optimizing wakelocks (ensure no wakelocks), phone is deep sleeping, google maps latitude off (huge... on by default), turn google now cards off that you dont use, sync interval higher (set it higher... not every 10mins), etc.
+1 to not benefiting. I find any memory or battery app to be very useless and is more of a gimmick.

How do I change the sync interval?

dmorand said:
How do I change the sync interval?
Click to expand...
Click to collapse
that specific app's settings menu
e.g. facebook, tweet,etc

While many "battery savers" appear gimmicky, Juicedefender is (IMHO) one that actually works and works well. I've used it for a long long time on Gingerbread-based phones and it does help to extend battery life as you can control how often you want your device to turn on data when the screen is off. (For example, my phone turns on data every 15 minutes, syncs everything, then turns data off, but keeps data active when the screen is on.
Anyway, is there an answer to the original question? I'm running into the same issue on my Nexus 7, whereas JD still works great on my CM7 phone ROM.

Try with the "Fix Permission" app.
It works to me.

Not a huge fan of the "why have a smartphone if you aren't going to sync blah blah" argument. It's my phone and I am really not bothered by manual syncing. Facebook wants to sync? That's weird because unless I intend to use the app when I turn on the screen why bother letting it poll to sync? Same with Twitter or other syncing apps such as RSS. If I'm not going to use it then it can wait until I am to sync. Running an app that shuts off data when the screen is off does no harm to anyone, so I fail to understand why everyone is so against it. If a user wants to shut off data when the screen is off, who gives a ****? It's their phone. The argument that "why have extra services running to save battery?" Is also not the greatest because the battery an app like AutoData or similar data toggling apps use is miniscule compared to how much battery syncing over 3G uses.
TL;DR let people do what they want with their phone. After all, it is theirs.
Sent from my Nexus 4 using Tapatalk 2

Related

post-froyo phone freeze issue

My phone has never frozen but I was on the web after flashing 2.2 , i pressed home, then I pressed settings and it froze. After about a minute I was able to press hold power, no menu but screen went black and I pressed power again and was able to unlock screen and was presented with a launcher force close on the desktop.
I've never rooted my phone and this is the first time my nexus has ever frozen could this just be the device getting used to the new firmware or should I be concerned? If this wasn't the first time my phone ever froze I wouldn't have thought twice.
I have two nexus's that get black screens when trying to run the Dialer. Working on it now...
UPDATE: Logs are telling me that (1) there is an issue syncing contacts and (2) this is related to why the phone app isn't starting. Looking more...
Anyone ever see this before:
D/SyncManager( * 81): failed sync operation authority: com.android.contacts account: Account {[email protected], type=com.google} extras: [] syncSource: 4 when: 1943383 expedited: false, SyncResult: syncAlreadyInProgress: true stats []
Click to expand...
Click to collapse
I'm unable to sync with any of my google accounts because of the "syncAlreadyInProgress"-- as a result the contact list is screwy and I can't use the Dialer or contact list.

Facebook for HTC Sense

So I had to replace my Aria today, and now the HTC Sense Facebook will not log in for some reason, is there another way to Sync FB with your contacts?
Sent from my HTC Liberty using XDA App
This program has not worked right since i got the phone on June 20th. My main problem is that once it syncs once the contact pictures don't reliably update automatically if someone changes their picture. my work around is to remove the acct from "accounts and sync" and re-add it.
today i did this and now it won't connect so it's not working at all! I'm not very happy with this app which is sad because i love the htc software in general!
russell1997 said:
This program has not worked right since i got the phone on June 20th. My main problem is that once it syncs once the contact pictures don't reliably update automatically if someone changes their picture. my work around is to remove the acct from "accounts and sync" and re-add it.
today i did this and now it won't connect so it's not working at all! I'm not very happy with this app which is sad because i love the htc software in general!
Click to expand...
Click to collapse
I did the same thing and after re-adding my account to Facebook for HTC Sense, all my fb contacts are gone…
Seems like a lot of other users are facing the same problem:
h t t p : / / community.htc.com/na/htc-forums/android/f/94/t/4807.aspx?PageIndex=2
Used adb logcat and this is the output I got:
D/SocialNetwork-UserSyncTask( 2191): Start sync friends
D/SocialNetwork-UserSyncTask( 2191): <FB_ID#> start get friends
D/SocialNetwork-SimpleFacebookInterface( 2191): GZIP encoded stream
D/dalvikvm( 2191): GC freed 42307 objects / 3318392 bytes in 99ms
D/dalvikvm( 2191): GC freed 247 objects / 322640 bytes in 75ms
D/dalvikvm( 2191): GC freed 32 objects / 281368 bytes in 70ms
I/dalvikvm-heap( 2191): Grow heap (frag case) to 5.179MB for 629990-byte allocation
D/dalvikvm( 2191): GC freed 0 objects / 0 bytes in 84ms
D/dalvikvm( 2191): GC freed 3144 objects / 563808 bytes in 75ms
D/dalvikvm( 2191): GC freed 8487 objects / 380056 bytes in 101ms
D/dalvikvm( 2191): GC freed 9903 objects / 449160 bytes in 102ms
D/SocialNetwork-UserSyncTask( 2191): com.htc.socialnetwork.SocialNetworkException errorCode: 2000
**Retries sync friends 4 times**
D/SocialNetwork-UserSyncTask( 2191): Retry: 3
V/SocialNetworkSyncManager( 2191): MSG_TASK_FINISH(LOCK): facebook , syncType:1 , time: 2010-07-23 19:46:15
D/SocialNetworkSyncManager( 2191): normal MSG_TASK_FINISH no pendingSubTasks facebook , syncType: 1 , time: 2010-07-23 19:46:15
V/SocialUpdate( 2191): onFinish: facebook , syncType: 1 , hasPendingSync: false , complete: false , time: 2010-07-23 19:46:15
D/HtcContactsProvider2( 154): onReceive service facebook
D/HtcContactsProvider2( 154): onReceive syncResult SYNC_FAIL
D/FacebookUserActivity( 2297): SocialNetworkClient.SYNC_FINISH, result = SYNC_FAIL, SerName = facebook, SyncType = 1.0
I/NotificationService( 83): enqueueToast pkg=com.htc.socialnetwork.facebook [email protected] duration=0
D/Sensors ( 83): close_akm, fd=147
One of my friends just got an Aria today because he liked mine. He can't get his FB syncd either.
Its a widespread issue and from what I read over on the HTC forums, an HTC specific one.
I've had my Aria for about a week now and have not been able to sync a single contact with my facebook list. If I go to my contact list and click on facebook, it shows 0 contacts and refreshing does nothing. I set it to sync in the settings but the only picture that it pulled was my own. I hope they fix this soon and make a better facebook app for Android. That was one of my favorite things about my Blackberry.
Looks like it's back up and running.
h t t p : / / community.htc.com/na/htc-forums/android/f/94/t/4807.aspx?PageIndex=10
Works now, but looks like it's synching only 100 contacts...
Sent from my HTC Aria using XDA App
I've got an Aria in Virginia Beach and its still not working for me. I tried removing and re-adding it in "Accounts&Sync"...still getting a connection error. This sucks.
yes, it's definitely working.
maybe you should log out from android app, delete facebook for htc sense account, delete data for both facebook apps in app manager then relogin + readd fb account. Sync & refresh in people's facebook directory tab.
@wizja - I just tried everything you said to do, I even logged into facebook on my PC and deleted the HTC app so it would re-add it by itself, but when I go to "People" and hit refresh it waits about 2 minutes and then gives me a "connection error".
For those that are seeing this work, are you also getting the 100 contact limit?
Ki77erB said:
@wizja - I just tried everything you said to do, I even logged into facebook on my PC and deleted the HTC app so it would re-add it by itself, but when I go to "People" and hit refresh it waits about 2 minutes and then gives me a "connection error".
Click to expand...
Click to collapse
For the first time sync was ok, then I've tried second time and it gave me connection error but after phone reset it synced once again... so maybe you're just expecting some temporary problem?
Woke up this morning and all my facebook contacts are there. Looks like its fixed on my end now.
Works for me too!
Now, I'm interested to see if picture updates are more reliable than they were before.
Sorry to keep pushing, but are you seeing all of your contacts? Mine won't sync over 100.
Sent from my HTC Aria using XDA App
Mine pulled 111. I guess those are the only friends I have that provided their phone numbers to facebook.
guido.rosso said:
Sorry to keep pushing, but are you seeing all of your contacts? Mine won't sync over 100.
Sent from my HTC Aria using XDA App
Click to expand...
Click to collapse
Yes I got all 201 of mine
All my fb contacts were back this morning! Hope everyone's has cleared up too.
Sent from my HTC Liberty using XDA App
pcruz said:
All my fb contacts were back this morning! Hope everyone's has cleared up too.
Sent from my HTC Liberty using XDA App
Click to expand...
Click to collapse
Experienced the same thing here.
Sent from my HTC Aria

Server error when I try to access market download

It just happened to me, anyone has this problem?
Sent from my Nexus S
I had the same problem. In the help docs you can access from your menu button while in the market it tells you to log into google checkout from your desktop and fix your payment methods. Worked for me. there was old incorrect info in there and once i cleared out the old stuff and updated my payment method I was good on my phone.
Also if you are with tmobile and charge your market purchases to your bill you can just go on google checkout and remove the current instances of your tmo account from your payment methods and when you try to buy your next app you will be prompted to set up your carrier billing again.
Sent from my Nexus S
I am having the same issue.. I just picked up my NS this morning and when I went to my downloaded apps I kept getting a server error.. I tried the google checkout method but it didnt help
Seems to me like this is on Google's end:
Logcat:
Code:
I/vending ( 1377): com.android.vending.api.ApiException: Error from backend. Req
uest=com.android.vending.model.AssetRequest, Response=INTERNAL_SERVICE_ERROR
krohnjw said:
Seems to me like this is on Google's end:
Logcat:
Code:
I/vending ( 1377): com.android.vending.api.ApiException: Error from backend. Req
uest=com.android.vending.model.AssetRequest, Response=INTERNAL_SERVICE_ERROR
Click to expand...
Click to collapse
Also getting the same error.
My guess is GOOG is having issue matching up my phone ID to my GOOG account?
If it just with NS then maybe they are pushing the new market to us?
im having this problem on my nexus one and nexus S.. its been driving me nuts!!
I got my NS yesterday and now I'm having the same problem. I can do everything else in the market but look at my downloaded apps.... Oh and btw my N1 got the new market last night with no sim card in it?
Sent from my Nexus S using XDA App
I think that has something to do with it.. since our N1s are still hooked up with our gmail account, I think its conflicting with our gmail accounts on the NS.. basically the system sees both phones associated with the same account .. just my two cents
Oh and also, the reason ur N1 got updated with out a sim, is BC it was most likely connected to wifi and updated according ...
ah I forgot about the wifi's
Sent from my Nexus S using XDA App

[Issue] Gmail app force close when opening second account

Hi all,
i have successfully added second gmail acount through accounts and sync and everything went very well but wheni switch to gmail app and select menu>accounts to switch between accounts, the app is force closing
when i perform clear cache of gmail app and open the app, i am able to select the second account and from there gmail app force closes whenever i try to move to first account.
dual accounts Gmail app is working fine on my Nexus S perfectly
do any one have this issue? any solutions?
Similar problem here too, even worst for me is after setup the gmail and now when I click on the Email app (on widget or app) it will force close and give a error: com.android.email force to close...... I cannot even setup second account, and now I can only access my gmail by clicking on Gmail app...... any solution or same problem???
tintin169 said:
Similar problem here too, even worst for me is after setup the gmail and now when I click on the Email app (on widget or app) it will force close and give a error: com.android.email force to close...... I cannot even setup second account, and now I can only access my gmail by clicking on Gmail app...... any solution or same problem???
Click to expand...
Click to collapse
I'm simply getting a terrible lag where it never opens my inbox. Very frustrating.
Sent from my GT-N7000 using xda premium
nobody else has this issue with gmail app?
I'm having the same issue with the e-mail program. I have set up my exchange account, and it displays correctly in the widget, but if I try to open the app, it force closes. Is there a way to uninstal the app and reinstall it? I have tried clearing all the data and recreating the account. Many thanks!
surprising to see no one else has gmail app issues with second account as i have tried on 3 G Notes and all force closed.........strange coz nobody tested this wanted feature or busy about bragging about pentile matrix (even though you don't know what it is)???????!!!!!!!!!
For the dual count I don't know but it seems for me Gmail app have a stange behaviour. After quiting a sleep of the phone, gmail lag sometimes before opening...
Maybe there's a link between our problems.

Gmail Error

Anyone else getting a gmail app has stopped working error like every few hours?

Categories

Resources