[Q] TetherGPS client on NST; or, any hope of keeping background services stable? - Nook Touch General

So I've been toying with the idea of using the NST as a hiking pad. Backcountry Navigator seems to run fairly well on the Nook. After enabling mock locations via Sqlite3, I was able to get TetherGPS picking up GPS location data from my phone... except the service keeps dying.
At first, I thought the service stopped updating the location because of the app's paywall. But after purchasing the full version of TetherGPS, I determined that the Tethergps service seems to be dying after a resource-intensive application such as Maps or Backcountry Navigator starts getting demanding.
Adb reads:
I/NotificationService( 880): enqueueToast pkg=com.comptonsoft.tgps [email protected] duration=0
~service starts~
I/ActivityManager( 880): Process com.comptonsoft.tgps (pid 5222) has died.
W/ActivityManager( 880): Scheduling restart of crashed service com.comptonsoft.tgps/.TGPS_client in 14063ms
I/ActivityManager( 880): Start proc com.comptonsoft.tgps for service com.comptonsoft.tgps/.TGPS_client: pid=5393 uid=10057 gids={3003}
~service attempts to restart, but the notifications flag just hangs and GPS updates do not commence. service needs to be restarted manually~
I tried freeing up a sizeable chunk of RAM for testing, but extra available RAM didn't change the behavior. I'm wondering if I couldn't be hitting some limit in maximum concurrent processes. Are there any settings I could be pushing via Sqlite3 to allow more processes?
I am of course open to any other suggestions or theories.
I'm currently using Pinguy's custom NST firmware. I'll try to make certain the behavior is the same with other rooting methods.

You could try Memory Locker app, it is a paid app but is very cheap. Works on Android 2.1 and working on my NST.
https://play.google.com/store/apps/details?id=com.smartprojects.MemoryLocker

Related

Manual Nooter 4.5.6 Observations

My first voyage down the rooted path was to put Honeycomb on a microSD card. When B&N came out with the 1.2 update, I downloaded that and decided to go the Manual Nooter route.
First of all, many thanks to all who have worked so hard on this! My first objective was to be able to read Kindle and Nook books on my Nook Color, and that is a cinch now! This Manual Nooter setup is more stable than running HC off a card was, and I can access the stock B&N reader and Kindle and other apps without switching cards and rebooting.
I have had only one problem downloading an app from Market so far. I needed to unmount my card before the app would install, but the dev said that this is an issue with the app, not Nook Color or MN.
Gmail would not work with MN 4.5.6, though it worked with 4.5.2. But I downloaded an updated Gmail from Market, and my Gmail problem was cured.
MN includes some "unadvertised" apps, like Facebook and Twitter. I can't seem to uninstall them. Does anyone know how that might be done?
Overall, I'm a happy camper. But I would like to know how to get rid of Facebook and Twitter.
Have you tried using Titanium Backup to uninstall them?
Windsor1959 said:
MN includes some "unadvertised" apps, like Facebook and Twitter. I can't seem to uninstall them. Does anyone know how that might be done?
Overall, I'm a happy camper. But I would like to know how to get rid of Facebook and Twitter.
Click to expand...
Click to collapse
I'm pretty sure those aren't part of MN. If they are, I don't know what they're stuffed in because there isn't an apk for them.
By the way, gmail worked perfect me right out of the gate.
doncaruana said:
I'm pretty sure those aren't part of MN. If they are, I don't know what they're stuffed in because there isn't an apk for them.
By the way, gmail worked perfect me right out of the gate.
Click to expand...
Click to collapse
Looks to me like Twitter and Facebook were in 4.5.2, but were not included in 4.5.6.
Anyways, if you don't want them, just to go system\app, mount as RW, and delete the apk.
EDIT: oh and for the gmail, I found the upgrade from 4.5.2 to 4.5.6 caused a FC on open. But deleting the cache\data cures it. I guess a re-install also works!
Would I need an app like Root Explorer to be able to mount as RW when I go to system/app? I see that a lot of folks have Titanium backup and Root Explorer, so maybe I'd find them pretty useful.
Thanks for the replies.
Both are well worth the money but imo root explorer is a must buy if you nooter.
Sent from my SAMSUNG-SGH-I897 using XDA App
I installed Titanium Backup, and I was able to uninstall Facebook and Twitter with it. Root Explorer looks like something worth the price, too.
Here's a newbie question: Titanium Backup gave me a window telling me I should activate USB debugging on my Nook Color. I'm guessing that USB debugging involves me connecting my Nook Color to a PC or laptop, but what does it actually mean? Thanks!
Edit: Okay, I found my answer for USB debugging. If I want to use ADB to push things into my Nook, or use Titanium Backup to backup my apps, I'll need to enable USB debugging. (Does that sound right?)
Apps force closing
I've rooted the NC since I first got it and tried all different versions when I finally settled on AutoNooter and loved it. When the 1.2 update came out I updated and hated the stock version so went with ManualNooter as soon as it was "kind of up and running OK". The NookHome app takes care of the In-Store stuff. Thanks to everyone working on all of these updates.
The problem I had was that GoogleSearch bar and News and Weather app would force close. Managed to fix the GoogleSearch bar with the FakeGPS app. works fine now. ---- Still have the News and Weather app which came with the installation .zip 4.5.6 in MN force closing though. Tried force-stop and clear Data didn't do anything.
Can't find it on Market either so I could reinstall it. Anyone have ANY ideas? I always loved that app on previous versions and would like to use it.
andream2g said:
I've rooted the NC since I first got it and tried all different versions when I finally settled on AutoNooter and loved it. When the 1.2 update came out I updated and hated the stock version so went with ManualNooter as soon as it was "kind of up and running OK". The NookHome app takes care of the In-Store stuff. Thanks to everyone working on all of these updates.
The problem I had was that GoogleSearch bar and News and Weather app would force close. Managed to fix the GoogleSearch bar with the FakeGPS app. works fine now. ---- Still have the News and Weather app which came with the installation .zip 4.5.6 in MN force closing though. Tried force-stop and clear Data didn't do anything.
Can't find it on Market either so I could reinstall it. Anyone have ANY ideas? I always loved that app on previous versions and would like to use it.
Click to expand...
Click to collapse
Hrm... I was of the understanding that News and Weather was FCing because there was no location. This isn't the case if you're using FakeGPS perhaps you could grab and post a logcat from when trying to run it?
I'm also experiencing this with News and Weather. I just installed Fake GPS and it took care of the Google search issue I also had. I went from a stock 1.2 to 4.5.6.
Also anyone had any luck with HBO GO app? It isn't listed in market, but I tried to download from Android site and it says I have no Android phone in my account......
GabrialDestruir said:
Hrm... I was of the understanding that News and Weather was FCing because there was no location. This isn't the case if you're using FakeGPS perhaps you could grab and post a logcat from when trying to run it?
Click to expand...
Click to collapse
I appologize if this log isn't quiet what you had in mind. It seems to forceclose because it can't get a location. Maybe I need to find something else to fake a location.
Here is a log:
cmp=com.google.android.apps.genie.geniewidget/.activities.NewsActivity }
05-09 10:54:40.124 I/ActivityManager( 966): Start proc com.google.android.apps.genie.geniewidget for activity com.google.android.apps.genie.geniewidget/.activities.NewsActivity: pid=1392 uid=10003 gids={3003, 1015}
05-09 10:54:40.407 D/WifiService( 966): ACTION_BATTERY_CHANGED pluggedType: 0
05-09 10:54:40.831 E/AndroidRuntime( 1392): FATAL EXCEPTION: Thread-12
05-09 10:54:40.831 E/AndroidRuntime( 1392): java.lang.IllegalArgumentException: provider=network
05-09 10:54:40.890 W/ActivityManager( 966): Force finishing activity com.google.android.apps.genie.geniewidget/.activities.NewsActivity
05-09 10:54:40.904 I/ActivityManager( 966): Process com.google.android.apps.genie.geniewidget (pid 1392) has died.
05-09 10:54:40.904 W/ActivityManager( 966): Scheduling restart of crashed service com.google.android.apps.genie.geniewidget/.GenieRefreshService in 5000ms
05-09 10:54:40.906 I/WindowManager( 966): WIN DEATH: Window{4a12f678 com.google.android.apps.genie.geniewidget/com.google.android.apps.genie.geniewidget.activities.NewsActivity paused=true}
05-09 10:54:40.960 W/InputManagerService( 966): Got RemoteException sending setActive(false) notification to pid 1392 uid 10003
05-09 10:54:45.921 I/ActivityManager( 966): Start proc com.google.android.apps.genie.geniewidget for service com.google.android.apps.genie.geniewidget/.GenieRefreshService: pid=1409 uid=10003 gids={3003, 1015}
ActivityManager( 966): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.google.android.apps.genie.geniewidget/.activities.NewsActivity }
05-09 10:57:21.527 E/AndroidRuntime( 1409): FATAL EXCEPTION: Thread-12
05-09 10:57:21.527 E/AndroidRuntime( 1409): java.lang.IllegalArgumentException: provider=network
05-09 10:57:21.573 W/ActivityManager( 966): Force finishing activity com.google.android.apps.genie.geniewidget/.activities.NewsActivity
05-09 10:57:21.603 I/ActivityManager( 966): Process com.google.android.apps.genie.geniewidget (pid 1409) has died.
05-09 10:57:21.603 W/ActivityManager( 966): Service crashed 2 times, stopping: ServiceRecord{4a29cc20 com.google.android.apps.genie.geniewidget/.GenieRefreshService}
05-09 10:57:21.613 I/WindowManager( 966): WIN DEATH: Window{4a2f6590 com.google.android.apps.genie.geniewidget/com.google.android.apps.genie.geniewidget.activities.NewsActivity paused=true}
05-09 10:57:21.700 W/InputManagerService( 966): Starting input on non-focused client [email protected] (uid=10049 pid=1038)
05-09 10:57:21.702 W/InputManagerService( 966): Client not active, ignoring focus gain of: [email protected]
05-09 10:57:23.271 W/InputManagerService( 966): Got RemoteException sending setActive(false) notification to pid 1409 uid 10003
05-09 10:57:31.654 I/ActivityManager( 966): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=ukzzang.android.app.logviewer/.act.MainAct }
05-09
i was able to install Galery 3D from Android 2.3 and Gingerbread keyboard as well from this thread http://forum.xda-developers.com/showthread.php?t=880068
Manual Nooter rocks ...
I applied manual nooter 4.5.6 to my stock 1.2 and I can't get any of the GApps to work (Market, Gmail, GSearch, News and Weather). They all just force shut down as soon as they start. I've looked at all the apps in the Application Manager and none of them have anything in the cache. I've tried shutting them all down, clearing the data and rebooting, but I'm still not getting anything.
Looking at the luck people were having with the faked location I enabled Allow Mock Locations in the Development Settings, but I can't find anywhere to actually set the location. Since I can't access the market, and 4.5.6 didn't come up with a file manager I can't load any apps (i.e. FakeGPS). Anyone have any ideas?
I think I figured out what most of my issues were... I hadn't done a thorough enough reset when I un-rooted 1.1 to install the B&N 1.2 update. I used clockwork mod to do a factory reset, reinstalled manual nooter and the GApps that are not location dependent are now working. Weird thing... I had to go through the steps for the partial market display. That worked and I installed Astro File Manager. However, something about doing that killed the Market app... started getting the forced shutdown. Gmail still works and YouTube still works, but the Market won't load anymore.
I am replying to this thread with my experience to perhaps further a solution to the remaining problems. I have been running a Nook rooted with Auto Nooter. When 1.2 came out, I restored it to stock, updated to 1.2 and rooted with 4.5.6. I initially had a visibility problem with the market, but following the instructions at these forums, I cured most of that. I have noticed the following remaining issues:
1. Like everyone else, I have found that News and Weather doesn't work; it simply opens and closes.
2. Regarding the market, even after making the visibility fix, I have the following problems:
--The "downloads" tab in the market showed all but one of the apps that I had purchased before the 1.2 update, etc., but it showed none of the free installs. By going to the market on my computer browser, I was able to see all of the old downloads, including the free ones, and the one paid one that didn't show on the Nook. However, I couldn't download anything from there because it insisted that there was no "phone" associated with this account. Of course, this was easily solved for the freebies by downloading them again.
--This one is truly bizarre. The purchased app that I have not been able to recover is something called iBird Pro (for which there is a corresponding free app). This app worked fine under the Auto Nooter. When I search for "iBird" in the market from the Nook, it returns a pick list that includes the words "IBird", "ibird pro", and other similar words and phrases. If I pick any of these for my search term, it returns a response that there are no matches for the word in the market. This seems impossible since the market is clearly getting my request corrrectly, in fact guessing the word before I finish typing it, and from that point it shouldn't matter what my side of the conversation is doing. Of course, if I try the same thing on my desktop, it returns with a list of programs, including IBird Pro. I have tried getting to the app in others ways, such as searching for "bird." The market returns other matches, but not the one I want. I have tried to get at this app using the website "android zoom". When I have a link sent to my Nook by the android zoom website and try to access the market with it, I get an error message. I tried android zoom with an app I was able to retrieve from the market and it worked. I don't know if this happens with any other app, but I'd be surprised if it did not.
I've done some additional research here as well and what I've discovered is that I'm getting a single download out of the Market. After that the application doesn't seem to run anymore. I've tried redoing the "fix market" steps and rebooting, but after the first market download/install the Market App just won't run anymore. Doesn't seem to matter what the app is either as I've tried a couple. The only similarity so far is that I've stuck with free apps.
Nook Social App broken after root
I read. A lot, which is why I bought the NC. The thing that made me root it was a.) I root everything and b.) email on the NC SUCKED and very few apps (missed my Maildroid). Since I do read and share what I read (I'm a writer by day, tech junkie at night) I'm a little disappointed that NC social sharing app that came with stock is not letting me change the password settings to my FB account. I recently changed my FB password and went into the stock settings to change the pw and I get an, "Invalid Parameters!" message. How do I correct that? It is really important to me to have that feature.

The differences in the book icon from 1.1 to 1.2

Seems like there are precious few of us out there still using rooted stock - probably 90% of the posts refer to CM7. Personally I tried it (around r83 or so) and it didn't do anything for me, so I'm still on rooted stock 1.2. And I would love for that damned book icon to still work like it does on my rooted 1.1!
Eventually the OS kills the home app if it's just in the background (or something happens) and even that doesn't allow it to work anymore (until you 'refresh' it). So I was wondering if anyone else even cares anymore or if there's any possibility of some more work towards getting it operational. I'd be glad to help in any way I could. I've even kept one of my two nooks on 1.1 just because it still works there even after rooted so I could compare or something.
Anyone still interested in getting the book icon to work on 1.2??
Well, for what it's worth, a little logcat action yielded some interesting info (at least to me).
On my 1.1 rooted nook, with the home launcher *not* running, when I press the book icon it actually starts the nook home app up and the affiledownload service:
D/StatusBar( 829): Sending intent to launch last book
I/ActivityManager( 829): Start proc com.bn.nook.home for broadcast com.bn.nook.home/.HomeBroadcastReceiver: pid=2233 uid=10000 gids={1015, 3003, 2001}
I/ActivityManager( 829): Start proc com.bn.nook.affiledownloadservice for service com.bn.nook.affiledownloadservice/.AFfileDownloadService: pid=2241 uid=10000 gids={1015, 3003, 2001}
D/FileDownloadService( 2233): initService() bound with true
I/ActivityManager( 829): Starting activity: Intent { act=android.intent.action.VIEW dat=<...path to book to be read....> }
Afterward, I see both the home and affiledownload service are now running on 1.1
Now, on my 1.2 rooted nook, with the home app not running, when I press the icon, it tries to launch, but seems to fail:
D/StatusBar( 1049): Sending intent to launch last book
I/ActivityManager( 1049): Start proc com.bn.nook.home for broadcast com.bn.nook.home/.HomeBroadcastReceiver: pid=13588 uid=10000 gids={1015, 3003, 2001}
D/DeviceManagerBroadcastReceiver( 1284): action (com.bn.devicemanager.ACTION_DEVICE_USAGE)
D/FileDownloadService(13588): initService() bound with true
I/DeviceManagerHandler( 1284): HandleMessage(): msg.what (7)
D/FileDownloadService(13588): Service Check :Service is ready
D/FileDownloadService(13588): onServiceConnected() connected
Subsequent attempts no longer try to launch the services, because they are loaded, but the icon still doesn't work.
I haven't gone any farther into the difference yet and I'm just sort of clumsily diving through this. I'll look at the home app and the device manager next to see if anything is of interest there. My hope is that I'll find something that will flip the light on to one of the devs and they can throw something together to fix this.
If anyone else has anything to offer or thinks I'm crazy or on the wrong track, please pipe in...
Little more work here and I looked at the events buffer as well, turned on the timings and merged them. I'm not sure why, but you can see that 1.1 launches the affiledownload service which it seems is key to opening the file. For 1.2, the devicemanager pops here instead of the downloadservice, but I don't get why.

Apps randomly keep starting up in background

So ill go into my system panel and kill all apps. Ill have about 160mb of memory free. Then the launcher obviously restarts and system panel and my widgets all start back up, but what i dint hnderstand is why do thi gs like google voice or the music player start up in the background if i havent even used them? They start up almost instantly....
How can i make sure **** stays off?
Sent from my SGH-T959 using XDA Premium App
Start up manager or similar from the market. Take care though, if you block something that system wants to be launched, it may keep attempting to launch it, leading to high battery consumption
Some app include a service, which they are executed in background. If the service is maually stopped, android can launch it again.
There are many application on the market which stop periodically these app. The point is that if it has a service, there is a reason, and by stopping it, you can obtain a strange comportment.
By example, in the first version of Android, gtalk was used for the authentification on android market, it is very strange but it was like that. The user was not informed of this link which was a kind of transparent. So if you stopped gtalk, you were not able to go on the market.
Do you need a lot of RAM? If yes uninstall the application you don t use, but I advise you to not stop mannually or automatically the application on your phone.
I guess thats how android functions as such. I tried stopping these programs so many times using apps from the market, but it starts again n few minutes. So its like we are wasting our time trying to kill apps.
Autostarts and/or Android Optimizer will stop any unwanted apps from running constantly. Works for me but just make sure you know what you are doing so you don't stop something you need (as described above)..

Why some apps are only like a service?

Hi, why some default apps run only like a service? Gmail app and gtalk app runs only like a service...
And are some apps appear in Active Apps panel ans not appear in In Progress panel... Is very confusing... I'm not understand what app are running and consuming battery and memory...
Someone can help ?
If the cpu usage for app is 0%, it doesn't consume battery. And freeing memory doesn't help with battery drain, it's quite opposite. Try to find some threads here in "General" section with keywords: ram, multitasking, lmk, minfree...
Ps. Android isn't windows, so things work quite differently..
Sent from my GT-I9000 using xda premium
acazsouza said:
Hi, why some default apps run only like a service? Gmail app and gtalk app runs only like a service...
And are some apps appear in Active Apps panel ans not appear in In Progress panel... Is very confusing... I'm not understand what app are running and consuming battery and memory...
Click to expand...
Click to collapse
There is a difference between a service and a process.
A service is a component that runs in the background to perform long-running operations or to perform work for remote processes. A service does not provide a user interface. For example, a service might play music in the background while the user is in a different application, or it might fetch data over the network without blocking user interaction with an activity.
Click to expand...
Click to collapse
When an application component starts and the application does not have any other components running, the Android system starts a new Linux process for the application with a single thread of execution. By default, all components of the same application run in the same process and thread (called the "main" thread).... Every application runs in its own process and all components of the application run in that process, by default
Click to expand...
Click to collapse
The Android system tries to maintain an application process for as long as possible, but eventually needs to remove old processes to reclaim memory for new or more important processes. To determine which processes to keep and which to kill, the system places each process into an "importance hierarchy" based on the components running in the process and the state of those components. Processes with the lowest importance are eliminated first, then those with the next lowest importance, and so on, as necessary to recover system resources.
Click to expand...
Click to collapse
In a few words... Gmail and Talk are only services that are constantly monitoring incoming push data from the Google servers. There is also a WhatsApp, Google+, Music, Email, and many other services that are automatically started when an event triggers them. This depends on the app. Not all apps have services. For instance, a Live Wallpaper is a service, not a process. You should not kill those.
When you run an application, you start a process. This process holds all the UI and logic to display the application in your screen. If you press HOME on your phone, the process goes to inactive mode, and it "in theory" should stop using CPU cycles and will sleep in your RAM until you execute the app again, or until Android claims the RAM and kills the app. RAM does not kill your battery, CPU cycles do.
Source: http://developer.android.com/guide/topics/fundamentals.html
In a few words... Gmail and Talk are only services that are constantly monitoring incoming push data from the Google servers. There is also a WhatsApp, Google+, Music, Email, and many other services that are automatically started when an event triggers them. This depends on the app. Not all apps have services. For instance, a Live Wallpaper is a service, not a process. You should not kill those.
Click to expand...
Click to collapse
Why should not I kill them? I installed Germini App and stop GTalk and others to automatically init on boot.
up........

[Q] How to demo automatic killing of a process

I want to observe an app's process being killed automatically (when the app's activity is stopped and other processes need the memory). I'm keeping my eye on Android Studio's Devices pane while I launch other processes, but this doesn't seem to kill my dormant activity. Is there a way to insure that this happens (and is observable)? (I know, . . . Why would I ever want to do this? It's because I'm teaching Android and I want to illustrate this concept.)

Categories

Resources