[Q] Get app launch frequency via terminal or script? - Nexus 4 Q&A, Help & Troubleshooting

I know there are plenty of apps that can show your app usage statistics. I would like to know if there is a way to do that using the terminal. My eventual goal is to have a Tasker script to update the order of apps in Glovebox with the most frequently used coming first.
I have been doing a bit of digging on my own, and the files in "/data/system/usagestats" look promising. If anyone can explain or link me to the format that's used, I'd appreciate it.

Related

Tasker Question.

I believe that by using Tasker, we can set up multiple task executions ata set time or situation. I haven't tried it myself but I'm planning to now. I just need some info on how to make it work. Most importantly, if it can do THIS:
LEGEND:
A = An App
B = Titanium Backup
C = Another app
IF - LAUNCH - A - THEN - LAUNCH - B - COMMAND - B - FREEZE - C.
In simple terms, is it possible to have Tasker run Titanium Backup and freeze an app whenever a designated app is launched? Basically, launching a specified app will 'trigger' Titanium Backup to be launched and freeze another app.
I hope I'm not confusing anyone.
Thanks, XDA! I'm so proud to be a part of this community.
It looks like you might be able to. I'm unfamiliar with tasker... But the dev does have something of a user manual on the site. You may want to start there.
http://tasker.dinglisch.net/userguide/en/index.html
Tried tinkering around. Couldn't get anywhere with this. Is there an existing guide somewhere in these forums that I might have missed? Can anyone please point me at the right direction? :'(
Well, I'm fairly new to Tasker myself, but there's no easy "tap, tap, scroll, tap, done" way to do it as far as I can tell. Post #3 here gives a suggested way forward (same question as yours only with a time context instead of an app) but it is quite technical and certainly beyond my understanding at this point.
Otherwise you could ask on the Tasker forum. The developer seems to answer most threads, even if only to say something's not possible.
Can I ask why you need to freeze an app on the fly like that? Maybe if you explain it a little, there could be a workaround.
selection16 said:
Well, I'm fairly new to Tasker myself, but there's no easy "tap, tap, scroll, tap, done" way to do it as far as I can tell. Post #3 here gives a suggested way forward (same question as yours only with a time context instead of an app) but it is quite technical and certainly beyond my understanding at this point.
Otherwise you could ask on the Tasker forum. The developer seems to answer most threads, even if only to say something's not possible.
Can I ask why you need to freeze an app on the fly like that? Maybe if you explain it a little, there could be a workaround.
Click to expand...
Click to collapse
Well I found out that one of my apps doesn't work when the other app is installed or active. I really liked the app in question, so I made an experiment to freeze all apps until I found the culprit. I did found it. That's why I'm trying to check if it can be achieved.
Have you tried just killing the app?
Context: Application > App A
Task: App > Kill App > App C (and most likely check "Use Root")
You may want to add an exit task to restart App C after you're done with App A.
If it works, that would stop it running in the background. The problem is that Android 2.2 and upwards have changes to stop an app being able to kill another app. It's inconsistent though - I've tested it on about 6 apps and it has worked on 2, so it's maybe worth a shot if you haven't tried.
If you or anyone else is still interested, this is easy to do. Just use the Secure Settings plugin, specifically it's Package Manager option, and disable or enable to have the same effect as freeze/unfreeze. TB isn't required.
selection16 said:
If you or anyone else is still interested, this is easy to do. Just use the Secure Settings plugin, specifically it's Package Manager option, and disable or enable to have the same effect as freeze/unfreeze. TB isn't required.
Click to expand...
Click to collapse
Thank you very much!!!
I downloaded the sample tasker app that expires in 7 days from their website and installed it. I can run tasker, enter code and save, and the icon shows it as running when I quit out to test my code. I can't get anything to work using code examples from the wiki for simple items such as action at preset time. I am running CyanogenMod 7.2.0 is this causing my problem?

Automate functions...

hi.. I recently found a solution to a problem I was having with my wifi calling app.
And while the solution is great, it requires that I change several settings manually when going into an area wherein I want to use wifi, and again when I leave that area and want to use the general cell network.
I figured it would be a good exercise to figure this out. But I thought I would ask first, just to sane me time.
if I want to automate several consecutive settings, would it be best I write a script with gscript? Or better to write a shell script in bash. I know bash shell scripting a little but I don't know gscript at all. But how hard can it be?
So what would you guys recommend to say if I wanted to create a little widget or shortcut to a script? I do not know Java unfortunately.
Thanks!
Sent from my HTC Glacier using xda premium

[Q] Going after minimalistic set of programms/feature on N7

Hi, a new guy here!
I recently became a happy owner of 32Gb wi-fi only N7. I’m familiar with software dev (windows developer for 20 years with some work on unix) and customization/modding/flashing process (mostly for satellite receivers). However this is my first tablet and my first Android device so I could use some help 
I successfully unlocked, rooted and installed custom recovery on my N7. I would like to get to a bare bones state of the N7 and then slowly add new features/programs to it when it becomes necessary for me. So I would like to remove all non essential parts that were preinstalled on my N7.
I was under impression that I could uninstall programs using N7 UI after device gets rooted. However it seems that for majority of the apps I still only have an option to disable.
I shelled into N7 and looked around. It seems that all (majority?) of the apps are in /system/apps folder. Can I simply remove the apps and their files from that folder? Does this folder only contain user apps or does it also have system apps that are essential for N7 to function? Is there a chance to brick it by removing something (everything?) from that folder?
I searched on a forum for a list of apps that are safe to remove. I thought it would exist since it seems to be something many of us would be interested in doing. I didn’t find the list. If there is such a thing and someone could direct me there, it would be great!
Given that I can remove apps by deleting them from that folder safely, I still have a question what each app does and how important it is. Is safe to assume that any app that has a wheel with a drive belt on it as an icon in apps screen on N7 is system app and has to stay?
I have two keyboard app installed – one is Android keyboard and one is ASUS keyboard. Judging by the name 2 of these are essential since Android is the OS and ASUS is the manufacturer. But do I really need two of them?
If there is a resource/thread that discussed something similar, please let know. I look forward to learn from anyone on this forum! 
_Diver said:
Hi, a new guy here!
I recently became a happy owner of 32Gb wi-fi only N7. I’m familiar with software dev (windows developer for 20 years with some work on unix) and customization/modding/flashing process (mostly for satellite receivers). However this is my first tablet and my first Android device so I could use some help 
I successfully unlocked, rooted and installed custom recovery on my N7. I would like to get to a bare bones state of the N7 and then slowly add new features/programs to it when it becomes necessary for me. So I would like to remove all non essential parts that were preinstalled on my N7.
I was under impression that I could uninstall programs using N7 UI after device gets rooted. However it seems that for majority of the apps I still only have an option to disable.
I shelled into N7 and looked around. It seems that all (majority?) of the apps are in /system/apps folder. Can I simply remove the apps and their files from that folder? Does this folder only contain user apps or does it also have system apps that are essential for N7 to function? Is there a chance to brick it by removing something (everything?) from that folder?
I searched on a forum for a list of apps that are safe to remove. I thought it would exist since it seems to be something many of us would be interested in doing. I didn’t find the list. If there is such a thing and someone could direct me there, it would be great!
Given that I can remove apps by deleting them from that folder safely, I still have a question what each app does and how important it is. Is safe to assume that any app that has a wheel with a drive belt on it as an icon in apps screen on N7 is system app and has to stay?
I have two keyboard app installed – one is Android keyboard and one is ASUS keyboard. Judging by the name 2 of these are essential since Android is the OS and ASUS is the manufacturer. But do I really need two of them?
If there is a resource/thread that discussed something similar, please let know. I look forward to learn from anyone on this forum! 
Click to expand...
Click to collapse
I don't have the energy right now to address every app one at a time, but I'll nudge you in the right direction. That should help you start tinkering.
The Nexus 7 is very popular in this community because it's intentionally more open, and less bloated, than much of the competition.
That being said, sure there are apps you could uninstall if you decide to. Some of the custom ROM's will have probably already have done this for you, but may create little unexpected quirks here and there.
The first thing you'll want to do is backing everything up thoroughly. I would use Titanium Pro (you'll see it referred to as Tibu a lot), to backup all apps and settings. Then I would use the Google Nexus 7 toolkit (found in the forums here) to do a backup, as well as make a nandroid backup.
Ok, so you're ready to tinker. Well, if you bought Titanium Pro from the app store, you've already got all you really need. First, use titanium to freeze an app you don't feel you need, and don't think is required. Re-boot, go about your daily routine, and see if all is ok. Continue on in this manner. Once you've frozen everything you're interested in, and made sure all is well, you can probably go ahead and uninstall them through Tibu. Freezing them should generally make them not start up anyways, so unless the tiny amount of space they take up is a concern, that's really all you generally need to do *.
* Ok, sometimes you have to fully uninstall things you don't want, but this should get you plenty to tinker with for now.
bladebarrier,
Thanks for your response. I understand the approach you suggested – disabling apps one at a time and then when they all disabled and device is working to my liking for a while I could uninstall them.
However, I’m somewhat frustrated with a sheer number of apps that I have out of the box and I can’t find a good description of what they do. For example:
Mobile Network Configuration
Google Partner Setup
Google Services Framework
Searching online doesn’t yield definitive answers if it’s something I need or will N7 work without them. I have google play store and google play services installed – does store app require services? Reading a bit about it doesn’t make it seem so, but I’m not 100% sure. So I was wondering if there is a list of apps that are required for N7 well being and that cannot be removed no matter what.
For example, Black Viper has an excellent example of what I’m looking for but for windows nt services: (can't post a link)
This page explain what each service is, what it does and if it’s safe to disable it depending on configuration you’re seeking – minimal set, typical, out of box of experimental. I would love to find something like that for N7 system apps 
I installed CWM recovery when I rooted and as far as I can understand I does NAND backups. I plan on moving the backup file from the device to my desktop and keeping it there for safety reason.
The Tibu process that you described, as far as I understand (and I might be wrong here) is basically equivalent of disabling the apps using native N7 setting app, rebooting, using it for a while and then removing .apk and .odex (or simply app_name.*) files from system/apps folder. Tibu just makes it easier. Did I get that right?
And it’s still removing one app/widget at the time. I’d like to clean it out completely first and start from that point. So Tibu will probably not help me there. So my main Q is still out there – can I brick it by removing everything from system/app? Are there only user apps there or essential system apps as well? With CWM back up file on hand will I be able to recover if my experiment goes bad? 
> * Ok, sometimes you have to fully uninstall things you don't want, but this should get you plenty to tinker with for now.
One of the reasons I want to have them removed is to clean up the list of apps I have on N7. Right now I have 5 pages of apps and I have little idea what they do and if I need them – I had Korean keyboard installed for example.
As I mentioned I’m a newb in this area, so maybe my approach is a bit dumb, so please be patient with me
_Diver said:
bladebarrier,
Thanks for your response. I understand the approach you suggested – disabling apps one at a time and then when they all disabled and device is working to my liking for a while I could uninstall them.
However, I’m somewhat frustrated with a sheer number of apps that I have out of the box and I can’t find a good description of what they do. For example:
Mobile Network Configuration
Google Partner Setup
Google Services Framework
Searching online doesn’t yield definitive answers if it’s something I need or will N7 work without them. I have google play store and google play services installed – does store app require services? Reading a bit about it doesn’t make it seem so, but I’m not 100% sure. So I was wondering if there is a list of apps that are required for N7 well being and that cannot be removed no matter what.
For example, Black Viper has an excellent example of what I’m looking for but for windows nt services: (can't post a link)
This page explain what each service is, what it does and if it’s safe to disable it depending on configuration you’re seeking – minimal set, typical, out of box of experimental. I would love to find something like that for N7 system apps 
I installed CWM recovery when I rooted and as far as I can understand I does NAND backups. I plan on moving the backup file from the device to my desktop and keeping it there for safety reason.
The Tibu process that you described, as far as I understand (and I might be wrong here) is basically equivalent of disabling the apps using native N7 setting app, rebooting, using it for a while and then removing .apk and .odex (or simply app_name.*) files from system/apps folder. Tibu just makes it easier. Did I get that right?
And it’s still removing one app/widget at the time. I’d like to clean it out completely first and start from that point. So Tibu will probably not help me there. So my main Q is still out there – can I brick it by removing everything from system/app? Are there only user apps there or essential system apps as well? With CWM back up file on hand will I be able to recover if my experiment goes bad? 
> * Ok, sometimes you have to fully uninstall things you don't want, but this should get you plenty to tinker with for now.
One of the reasons I want to have them removed is to clean up the list of apps I have on N7. Right now I have 5 pages of apps and I have little idea what they do and if I need them – I had Korean keyboard installed for example.
As I mentioned I’m a newb in this area, so maybe my approach is a bit dumb, so please be patient with me
Click to expand...
Click to collapse
Removing Google framework services is a big no-no. To be honest, the easiest way to accomplish what you want is installing a custom ROM like CyanogenMod, especially since you've done all the prep work for such a thing.
Once you install any official CM build it is as close to app-less as you can get on a modular OS like this.
littleemp said:
Removing Google framework services is a big no-no. To be honest, the easiest way to accomplish what you want is installing a custom ROM like CyanogenMod, especially since you've done all the prep work for such a thing.
Once you install any official CM build it is as close to app-less as you can get on a modular OS like this.
Click to expand...
Click to collapse
that's what i suspected! i thought that google framework would be something essential, but there is not much easily available information there to arrive at that conclusion
since i'm new to this, i thought i should stay away from any rom flashing until i get a bit more familiar with a device, terminology and stuff like that. i'm looking at the "[ROM] CyanogenMod 10.1 [OFFICIAL]" thread and i'm not sure about half of the terms - GAPPS, PSA, Nightlies i do know what ROM is, I do know what kernel is, virtual machine, etc. But it's applied to the platform that I have little experience with, so it makes me a little bit uneasy
_Diver said:
bladebarrier,
Thanks for your response. I understand the approach you suggested – disabling apps one at a time and then when they all disabled and device is working to my liking for a while I could uninstall them.
However, I’m somewhat frustrated with a sheer number of apps that I have out of the box and I can’t find a good description of what they do. For example:
Mobile Network Configuration
Google Partner Setup
Google Services Framework
Searching online doesn’t yield definitive answers if it’s something I need or will N7 work without them. I have google play store and google play services installed – does store app require services? Reading a bit about it doesn’t make it seem so, but I’m not 100% sure. So I was wondering if there is a list of apps that are required for N7 well being and that cannot be removed no matter what.
For example, Black Viper has an excellent example of what I’m looking for but for windows nt services: (can't post a link)
This page explain what each service is, what it does and if it’s safe to disable it depending on configuration you’re seeking – minimal set, typical, out of box of experimental. I would love to find something like that for N7 system apps 
I installed CWM recovery when I rooted and as far as I can understand I does NAND backups. I plan on moving the backup file from the device to my desktop and keeping it there for safety reason.
The Tibu process that you described, as far as I understand (and I might be wrong here) is basically equivalent of disabling the apps using native N7 setting app, rebooting, using it for a while and then removing .apk and .odex (or simply app_name.*) files from system/apps folder. Tibu just makes it easier. Did I get that right?
And it’s still removing one app/widget at the time. I’d like to clean it out completely first and start from that point. So Tibu will probably not help me there. So my main Q is still out there – can I brick it by removing everything from system/app? Are there only user apps there or essential system apps as well? With CWM back up file on hand will I be able to recover if my experiment goes bad? 
> * Ok, sometimes you have to fully uninstall things you don't want, but this should get you plenty to tinker with for now.
One of the reasons I want to have them removed is to clean up the list of apps I have on N7. Right now I have 5 pages of apps and I have little idea what they do and if I need them – I had Korean keyboard installed for example.
As I mentioned I’m a newb in this area, so maybe my approach is a bit dumb, so please be patient with me
Click to expand...
Click to collapse
Tibu requires root access, in order to perform what we're discussing. I'm relatively new to JB, but I can't imagine any stock settings replicating its capabilities.
As far as a whole bunch of apps being in your list, that's sort of the way Android works. Think of it like "superfetch", or whatever that term was in Windows Vista. Basically, two things happen when you boot. Android looks at a list of apps that are designed to start on boot, and also apps that it expects you may want to run in the future. Both of these are designed to make the device run smoother overall, and it will kill apps if extra ram is required and they are not in use. Certain Android apps require themselves to run at all times. Some of these are apps like Tasker (if you're using tasker profiles), some of these are system apps that make the device function, some of these are apps that maintain widgets or background monitoring (weather apps, gmail, calendar).
Now, there are two ways to go about sorting what is bloat, and what is there because Android decided to load it. You can install an app called Autostarts, that will give an insight into apps that start up when certain criteria are met. You can also use it to stop those apps from queuing up at those trigger points. This is another root required app, and while I purchased it long ago, may have a free version as well. It's time consuming to use, and not perfect, which is why Tibu is better for flat out locking down unwanted apps.
Back to my initial thoughts though, you will see apps in your system list that you haven't touched since boot, because Android tries to anticipate your needs. People used to use "task killers" to close the apps, and came to realize that unless one is causing a real problem, it's just going to go back into the cached app list again anyways, thus reducing battery life when it has to load it over and over again. "Task killer" is a dirty word around XDA, unless you're using it to close an app that doesn't just go into the background like a good little app should.
Basically, you're going to start playing whack-a-mole if you want your list to remain as small as possible, at all times, and yet still actually use the device for anything interesting. You can reduce it, via various methods, and if this were a device from say "insert-name" brand, and was loaded with bloat apps, by all means you should clean those out. However, I think you'll find that while google does install things that aren't needed, or even used by everyone, it's mostly not a big issue.
Check out Better Battery Stats, in the XDA forums. It's an app that shows a pretty good picture of what is actually going on when you're not looking, and can provide data on how to improve your performance. It's probably a better way to start delving into what processes are actually being used, and which ones are just basically harmless. You'll also learn a good bit about how Android works from the Dev's explanations of many of the processes.
---------- Post added at 08:36 PM ---------- Previous post was at 08:32 PM ----------
_Diver said:
that's what i suspected! i thought that google framework would be something essential, but there is not much easily available information there to arrive at that conclusion
since i'm new to this, i thought i should stay away from any rom flashing until i get a bit more familiar with a device, terminology and stuff like that. i'm looking at the "[ROM] CyanogenMod 10.1 [OFFICIAL]" thread and i'm not sure about half of the terms - GAPPS, PSA, Nightlies i do know what ROM is, I do know what kernel is, virtual machine, etc. But it's applied to the platform that I have little experience with, so it makes me a little bit uneasy
Click to expand...
Click to collapse
Make sure whichever ROM you use, if you decide to, supports your HSPA+ model. There is a separate development section in the Nexus 7 forums, for those of us that have the HSPA+ version. We are the minority, as the Nexus 7 was initially released as a wifi only tablet.
bladebarrier said:
Tibu requires root access, in order to perform what we're discussing. I'm relatively new to JB, but I can't imagine any stock settings replicating its capabilities.
Click to expand...
Click to collapse
i do have SU privileges, so what i was talking about was disabling an app thru N7 setting screen and then when i deem the app ok to remove, going to adb shell and removing the actual file.
i just did this:
mount -o remount rw /system
rm iWnnIME_Kbd_White.apk
rm iWnnIME.apk
and it removed the japanese keyboard. however when i go back to app screen under settings, i still see it but now it has a grey icon with a SD symbols in the corner. so it appears it recognizes that the app is gone, but it's still referenced in the list. i pushed the files back using NRT and it all back to the way it was. so looks like my idea of cleaning the list by removing the apk might not fly.
and now I wonder how Tibu uninstalls the apps.
bladebarrier said:
People used to use "task killers" to close the apps, and came to realize that unless one is causing a real problem, it's just going to go back into the cached app list again anyways, thus reducing battery life when it has to load it over and over again.
Click to expand...
Click to collapse
I understand the notion of apps being in the cache and being removed when more RAM is needed, however the purist in me just doesn't want the junk apps to be there in first place However there is a lot of validity to these of your words:
bladebarrier said:
Basically, you're going to start playing whack-a-mole if you want your list to remain as small as possible, at all times, and yet still actually use the device for anything interesting.
Click to expand...
Click to collapse
My wife got Kindle Fire HD recently and she's been using it happily. While I was thinking why would anyone want a closed up system (well, more closed up system then Nexus), she's been using it and I've been frustrated with my N7 so i might just let it go and enjoy the japanese and korean keyboards anyway
bladebarrier said:
Make sure whichever ROM you use, if you decide to, supports your HSPA+ model.
Click to expand...
Click to collapse
i'm wifi only
ngshniq every
i think i found what i was after: http wiki.cyanogenmod.org/wiki/barebones (url modified since i still can't post urls). this wiki page has the list of app with a short description and if it's safe to remove. it also has additional information that explains why i still saw the reference to the app in the list when apk file was deleted:
looks like i need to pay attention to 2 additional files:
/data/system/packages.xml
/data/system/packages.list
i bet I would find a reference to the apps in these and i would need to remove it in order to have the app disappear from the app list. i'll play around a bit more and report back
One thing, could you explain your reasoning behind wanting to delete everything but the essentials? Do you have a particular goal in mind or is it because of your windows background? Because if so, you should know that android operates very differently when compared to windows, and such, the requirements to keep your device working in tip top shape vary greatly.
In my opinion, with your current limited knowledge of each process/app inner workings, what you're trying to do surefire way to break something beyond repair and needing to use a factory image to get back to zero. A custom ROM will be much safer and yield the exact same results that you're looking for. (Eventually, once you understand what each thing does, then this manual approach could satisfy your needs)
Note: GApps are the basic Google apps to flash on top of the barebones system. Gmail, Play store, and the framework.
Nightlies are experimental builds compiled nightly by a bot with the latest CyanogenMod code available.
Sent from my Nexus 7 using Tapatalk HD
My goal was to simplify my approach to N7 by removing anything that I don’t need now and slowly adding all necessary components as I get familiar with it. But it seems at this point that this approach is a bit more complicated as thought it would be.
So I think I would leave it alone for now and revisit this later 
_Diver said:
My goal was to simplify my approach to N7 by removing anything that I don’t need now and slowly adding all necessary components as I get familiar with it. But it seems at this point that this approach is a bit more complicated as thought it would be.
So I think I would leave it alone for now and revisit this later 
Click to expand...
Click to collapse
From what you've done manually, you're clearly far ahead of a new user when it comes to understanding linux/unix.
If you want to lock down parts of what google implements, purely to keep it minimalistic, I would agree with the above poster. Go for one of the popular ROM options that are available, like CM, and work your way backwards. The Nexus 7 only has as much bloat as you allow it to have via the settings. This is another reason why Better Battery Stats is an excellent way to make sure your device isn't draining battery, yet isn't locked down. The other day I noticed an app that kept fetching my position, even though the case was closed (magnetic sleep mode). It turned out I forgot to disable the tracking in google maps (why it was defaulted to ON, I have no idea). BBS showed me what was running during the sleep phase, and I fixed it when I woke up the next morning after wondering why my battery dropped.
The Kindle Fire is a great option, because it doesn't require any of this fussing about. My woman loves hers. LOVES IT. Personally, I like to tinker a bit, and I'm too invested in Android apps to not have access to the play store. The Nexus 7, is for people like what you find here. We like to tinker, and make everything custom. At the same time, you could spend all day trying to figure out why EntriesRefresh_wakelock is your highest partial wakelock count, at 60seconds per 7 hours, or you can find that you just went 7 hours and only used 6% of the battery, even though you've been connected to wifi, texting, emailing, and checking the weather and news, the whole time. Not bad, honestly.
The biggest investment you can do for your Nexus, is probably getting a case that magnetically puts it to rest when you close it. After that, learn about the settings that drain battery in the background. Then, get Tasker and play around that (it's like programming, without the need to learn the code). After that, go to a custom ROM, or dig out Tibu, and basically start customizing which apps you will use. If that doesn't pass the time long enough, you can literally make your own ROM and put together exactly what you want. Whether the performance will be that much better or not, and whether you'll spend most of your day trying to look for coding errors, is up to you. I don't have the patience to code, but you're a coder, so what is broccoli to me, may be bacon to you.

What does Google Play really need to work properly

Hello there
I'm about to strip my system of any useless (for me) function and/or app and restrict every possible spying activity.
I messed around with the system and deactived alot of bulk and spam. I also restricted all the stupid triggers with autostarts.
Don't know If anyone saw all the things going on behind the surface, using all the following things to analyse:
I'm using several apps to do so. Xprivacy, Android Firewall, Autostarts, Root Cleaner, Android Tuner, Root Uninstaller, LBE-Security Master and Root Explorer.
So my question to someone with experience is:
What exactly does the google play and also the google framework needs to work properly ?
Would be nice to know that.
cya
seems to be a big secret... ? I think, there are several commands in this play store like, if this app or this function does not get X, return "no connection", even if it got its connection...
no one knows ?
I think it is important to know...

Which cloud/sync app? (Nook battery/wakelocks)

Been a long time since I posted here.
I don't use my Nook as much as I I could or I think I should. I think the main reason is that I haven't been using apps which sync across devices for fear of ruining the very good battery life.
What are some good apps which integrate with say Chrome? What things have you found useful? Do you toggle WiFi on and off? If so do you then need to hit sync or does that partial wakelock reciever for detecting that WiFi is on and off do that for you? Or will this app keep trying to sync even when there is no wifi?
I think if I start using something like ReaditLater again (tap button in chrome, sync and then read on Nook)... I'll probably use it more.
Also, pulling apps off Google Play and installing the apk was better for battery but I can't get the apk extractor websites to work anymore. Did anyone have a workaround for that?
One more thing, I have been using the latest Cyanogenmod and I notice it comes with PrivacyGuard. Now, the interersting thing about that is that PrivacyGuard now has options to block autostart, keep device awake and wake up device. So this could be useful to put in a ROM, or something like it, bearing in mind the nice battery life we get. Or, maybe have 2 modes - one with everything disabled for hikes, and another for use at home where a charger is handy and the auto sync is more useful.
Apologies, didn't search well enough:
http://forum.xda-developers.com/showthread.php?t=1898358
(adbsync)
Yeah, Renate NST's adbsync program is definitely going to be your best (and really only) option that fits your description.
Thinking about it, there's probably more efficient ways to do it.
For example, Evernote, Unified Remote Full, Wiki Encyclopedia Offline. I don't think Pocket (formerly ReaditLater works anymore very unfortunately... that was my favorite thing)
But of course, getting these things working on the older Android now could be difficult. How do I get the apks from play these days now the various website extractors don't work?
And ways to automate adbsync. For example, have it as a schedule in the background along with adb connect to your Nook. But remember to give the Nook a static IP on the WiFi by assigning via MAC on the router.
If you save pages as .pdf and automate the sync that's good but browsing pages as pdf isn't great.
edit to avoid bump:
You can use it as a 2nd monitor.
Windows:
http://superuser.com/questions/62051/is-there-a-way-to-fake-a-dual-second-monitor
(then use VNC to access. My thread has a howto for install) (MaxiVista probably works to if you're prepared to pay or steal)
Also possible on other platforms. The key phrase to use when searching is "Extend desktop"
I don't know why I didn't think of this before but you can access Evernote through the web interface. Probably similar for OneNote too.
A browser I heard is good, possible better than Opera now is NakedBrowser and the apk is available from the authors website.
I found a way to get the apk is to find an old phone to install too and then use an apk extractor app. A desktop extractor would still be better
Edit again;
I'm still not using it like I feel I should. I think this is because it's just not as Easy to pick up and read. The problem with advanced is that I have to wake up the nook, turn on WiFi and then hit my sync script on the desktop. Because of this I only use it if I have a lot to read, like a full book. I envisioned using it for just reading lengthier forum posts and white papers.
A start I think is to disable the screen saver.
Next will be to put enabling WiFi and keep awake while charging, and then disable after a period if the user fails to cancel and it's unplugged.
If you know how to do either of these things please let me know.
edit avoid bump:
I can't install the tasker apk unfortunately... and they're not giving out licenses anymore without Play. Is there an similar alternative is now my search..
Would be really good to enable and disable adb wireless and wifi when plugged in.
Actually there's a fix for tasker asking for a .jar. So it should be possible tonautomate connecting to WiFi and adb WiFi. Just a matter of getting tasker license or something else. AutomateIT won't run.
jago25_98 said:
I'm still not using it like I feel I should. I think this is because it's just not as Easy to pick up and read. The problem with advanced is that I have to wake up the nook, turn on WiFi and then hit my sync script on the desktop. Because of this I only use it if I have a lot to read, like a full book. I envisioned using it for just reading lengthier forum posts and white papers.
A start I think is to disable the screen saver.
Next will be to put enabling WiFi and keep awake while charging, and then disable after a period if the user fails to cancel and it's unplugged.
If you know how to do either of these things please let me know.
Click to expand...
Click to collapse
My Nook is currently out of commission, but I know at one point I had Pocket running (while it was still called ReadItLater), so there might be an old apk floating around that works. Alternatively, you can setup Wallabag, which is the same thing but run on your own server. Between that and a feed reader, I had thousands of articles to pick from whenever I picked up my Nook. It was quite a delight.
Also, there are a couple of wifi saving tools that can be found in F-Droid. If I recall, I used one called Battery Fu to have my Nook connect, force a sync, then disconnect once every few hours. It worked quite well.
thanks FbYAx
I looked up wallabag but when I try to install every version back to 1.6 I get the message 'older SDK'. I guess you had an older version... but I don't know how far back i have to go.
i will have to start archiving and hosting apks that work
edit to try to be a bit more helpful for people who might be trying to do this same:
get android version (mine is 2.1. i think that is normal (kitkat)):
Code:
adb shell getprop ro.build.version.release
change sdk apk version to see if it was developed without using newer sdk stuff (force it):
http://stackoverflow.com/questions/...on-and-targetsdkversion-specified-both-in-and

Categories

Resources