[APP][TOOL][AUTOMATION] Cron Phone Your Phone[UPDATE (9/28/11)]!! - Android Software Development

Major Changes to the UI and usage Check the market for the latest version or use the version attached to this post. If you have trouble with the posted version use the market version as it will always have the lastest fixes. The attached version might have an issue I did update the attached version but I won't manage it here.
1. Complete task ui revamp, easier building and management of tasks.
2. Added cron string builder, you can now build time string with rolling pickers and show you the next execution date (great for visualizing your time string). This will build 98% of the schedules most of us use.
3. Clicking on the clock in the Cron tab will now show all the active queued tasks (tasks that were active when cron was started).
4. Added option to run on boot for a task, this makes tasks execute if the option is checked and cron is set to auto restart. This allows a task to run only, at boot, and the task does not have to be active. (Sascha Kerkeling).
5. Added option to import scripts, you can now import the contents of a script file (Sascha Kerkeling).
6. You can now activate/deactivate a task from the tasks view.
7. I have kept the old tasks view in place for this update so that you can trasnfer any existing tasks over... it will be removed next update.
8. Added cron change log... this will automatically show once every update.
9. Added safe guard so that a reboot command cannot be fired with the execute on boot option (just in case).
10. Added better logging of why task commands fail, this will show as a complete stack trace in the execution log.
11. Added 6 new default tasks that might be helpful (Sascha Kerkeling, A. Simmons).
This is cron for your phone a small app I developed to allow me to restart/shutdown my phone on a schedule, but Cron has a billion uses and I wanted to see how others will use it I also use it to backup my market apps on a schedule.
**WARNING YOUR PHONE NEEDS TO BE ROOTED TO USES THIS APP**
This app can be dangerous if used wrong, if you use this app incorrectly and mess your phone up its your fault not mine. You wouldn't blame snap-on if the wrench you used breaks a bolt on your car, so don't try and blame me for what you do wrong with this tool. If you do I will only point at you and laugh.
**WARNING YOUR PHONE NEEDS TO BE ROOTED TO USES THIS APP**
Features:
Uses the standard Cron4Phone time string schedule.
Run all type of shell commands on any schedule you can think of.
Run tasks to shut your phone off on a schedule.
Auto restart so Cron4Phone continues to run even after a restart.
Small apk foot print.
unlimited concurrent tasks available.
Set a task as inactive/active.
Test execution setting to log commands only.
I'm really looking forward to seeing how others will use this tool. Please feel free to point out errors or suggestions. If you want help setting schedule I can give pointers.
Android market download

ooooh
as soon as I can liberate a copy from a market enabled phone I will begin tinkering... that might take a while
would you consider releasing it to f-droid.org if your license allows?

Here you go
Here's a copy... I haven't opened the source up although I probably will in the future, when I have more time to spend on it (working on a video game). This copy is signed with the same key as the market version and its ad supported I will slowing be updating the task management part of the ui.
this is the market description
*****YOUR PHONE NEEDS TO BE ROOTED TO USES THIS APP*****
This app can be dangerous if used wrong, if you use this app incorrectly and mess your phone up its your fault not mine. You wouldn't blame snap-on if the wrench you used breaks a bolt on your car, so don't try and blame me for what you do wrong with this tool. If you do I will only point at you and laugh.
*****YOUR PHONE NEEDS TO BE ROOTED TO USES THIS APP*****
-----------NEW INFO READ------------
After another full audit and help from Sascha Kerkeling and M. Porter, I redesigned Cron to no longer use long running service and instead now (correctly) uses AlarmManager to precisely execute tasks in a WakefullIntentService. This will will insure that all task are executed even when the phone is in deep sleep (even when the phoen doesn't hold any other wake locks) and barely uses any resources to accomplish this. I will now be able to focus on the UI... Dynamic task here we come!
-----------NEW INFO READ------------
Cron4Phone is a time-based job scheduler in Unix-like computer operating systems. Cron4Phone enables users to schedule jobs (commands or shell scripts) to run periodically at certain times or dates. It is commonly used to automate system maintenance or administration, though its general-purpose nature means that it can be used for other purposes, such as connecting to the restart your phone and backing up apps. This is a foreground service so that it is guaranteed to stay running, use the home key to back out of the app or double tap the back arrow to kill the app. Killing the app kills the service.
Features:
Uses the standard Cron4Phone time string schedule.
Run all type of shell commands on any schedule you can think of.
Run tasks to shut your phone off on a schedule.
Auto restart so Cron4Phone continues to run even after a restart.
Small apk foot print.
5 concurrent tasks available.
Set a task as inactive/active.
Test execution setting to log commands only.
This tool can be used to do endless amount of things, I'm really looking forward to see what you guys can use it for so please share your ideas, command and schedules.
I have provided 3 tasks that I thought would be the most useful to most users shutdown, restart, and backup apps.

Interesting
Sent from my SCH-I500 using XDA App

testing your application, it's really simple.., i'm hoping custom task can be added more

New version
EDIT: removed refer to the OP...
I attaching a new version to this post, it fixes a bug with the restart on reboot not registering your tasks. Basically if your phone reboots and you have active tasks and cron is started it will keep on running.
As for the ui I will slowly work on updating the task tab so that task can be managed dynamically, other than that the rest of the ui will basically stay the same, I want it to stay simple and small.
The market version has also been updated.

ttt for updates!

Very nice app, I would like to see more Linux tools working with Android.
Sent from my Zio using xda premium

Yes and this was one that I thought was needed, and while you can run cron on your phone through busy box, this app doesn't need that module and uses standard java to mimic cron all while putting a clean ui on top of it.
Thank you.

[EDIT]
ACK! Okay, I just stopped and started the cron and it is now working. Sorry about this post. :-/
[/EDIT]
I am going to resurrect this thread because I can't figure this out and I'm a Unix admin. I have tried to set a schedule for a job to run every 5 minutes (this was to test, the actual job will run every 30 minutes). I have tried to set */5 * * * *, /5 * * * *, and 0,5 * * * * and none of them work for every 5 minutes. Can you look into this or give an example in here? Thanks!

fstrim
If anyone is still out there -- I use Cron4Phone to schedule daily reboots and would like to add an fstrim command to run daily, maybe weekly. Can anyone help me with setting this up (command syntax, etc)?

Is there any chance to get the apk from somewhere? Thanks in advance!

Related

CommMgrPro for Android (Rules Engine) [ 2012-06-20 V1.1.19 ]

Hi.
Market URL https://play.google.com/store/apps/details?id=com.dhr.commmgrpro&feature=search_result#?t=W251bGwsMSwyLDEsImNvbS5kaHIuY29tbW1ncnBybyJd
I am porting CommMgrPro from Windows Mobile to Android.
This is the original post.
http://forum.xda-developers.com/showthread.php?t=299070
The goal of this project is to customize the behaviour of your device depending of many events, like time, date, position, battery state, calendar, radios states, and any environment element.
Rules Engine is a complete rules engine to customize your device behaviour automatically. The idea is simple and powerfull:
The device broadcast automatically events about many thinks
Hardware events like Bluetooth, wifi, battery level, cpu state, position events, time events, calendar events, phone ring state, screen state
And much more...
And the device can perform automatically many actions without user intervention:
Set hardware state, wifi, bluetooth, speaker, launch or kill a program, apply a predefined profile, send a SMS/Email, ringtones....
And much more...
With Rules Engine you can create many rules. Each one is composed of:
Conditions. Simple or complex conditions using AND/OR clauses. For example, if weekday is monday, between 7:00 and 9:00 and my current position is my office and battery level is higher than 20% then send an email .....
Actions. Actions to be executed when the rule passes from unmatched to matched and actions to be executed when the rule passes from matched to unmatched. User can set their order, delays, etc
Other features:
Profiles: These are set of actions that the user can select / unselect quickly from the main page.
Quick timed switchers: For example, set Bluetooth on, but put off again after 90 minutes
New actions and conditions are being added each day.
Current conditions:
Weekday and time
Wifi state
Speaker state
Bluetooth state
Flight mode state
Data connections enabled / disabled
AC power / Battery
Location. To be inside or outside of some place (defined by point and radius)
Screen state
To match or unmatch other rule
Some program is running or not
Battery level (min, max)
Bluetooth connected to an specified device
Phone status (ringing, in call...)
Calendar events. To be in a caleendar event that contains some word, like 'meeting"
Autorotation screen On/Off
Mobile network type in use (GPRS, HSDPA, CDMA, LTE, etc)
Data connection On/Off
Headphone plugged or not
Car mode activated / deactivated
Current action:
Set wifi state
Set speaker state
Set bluetooth state
Set flightmode state
Set connections enabled / disabled
Launch a program
Kill a program
Apply a profile (Set of rules)
Set autorotation screen state
Set screen bright state
Set auto sync accounts state (gmail, facebook, etc)
Play a song.
Send SMS
Send Email
Set car mode
Set wallpaper
Set ringtone (as user mp3 or android ringtone)
As we did with CommMgrPro for Windows Mobile I hope this project become a user driven project.
Thanks¡¡
Known bugs
Empty
Next features being developed
Roaming condition
Condition connected to a specified hotspot
Was a CommMgrPro user for a long time on WM so I'm looking forward to how this turns out on Android, Daniel. Glad to see you're here!
For my part, I'd like to
1) have ALL of those notifications available to me (with the possible4 exception of date/time set)
2) be able to change settings, run scripts, use Locale plug-ins (no reason for you to replicate functionallity that's available in existing code), start/kill other apps and send arbitrary Intents to other apps. Output to a file would be nice as would being able to read and parse a file (rudimentary parsing is OK)
Perhaps a tall order, eh? Start small. GPS and/or cell tower location-based notifications to trigger actions like turning on/off WiFi, bluetooth, cellular radio, conditioned on time of day/day of week/date would be a good start, for me at least. I'd also like to be able to create profiles that I can trigger manually, preferably by a shortcut. While I'm not big on widgets, people will want them and give you bad ratings in the Market if you don't have them.
short/y said:
Was a CommMgrPro user for a long time on WM so I'm looking forward to how this turns out on Android, Daniel. Glad to see you're here!
For my part, I'd like to
1) have ALL of those notifications available to me (with the possible4 exception of date/time set)
2) be able to change settings, run scripts, use Locale plug-ins (no reason for you to replicate functionallity that's available in existing code), start/kill other apps and send arbitrary Intents to other apps. Output to a file would be nice as would being able to read and parse a file (rudimentary parsing is OK)
Perhaps a tall order, eh? Start small. GPS and/or cell tower location-based notifications to trigger actions like turning on/off WiFi, bluetooth, cellular radio, conditioned on time of day/day of week/date would be a good start, for me at least. I'd also like to be able to create profiles that I can trigger manually, preferably by a shortcut. While I'm not big on widgets, people will want them and give you bad ratings in the Market if you don't have them.
Click to expand...
Click to collapse
Thanks¡ and happy to see you again
Hi Daniel,
Great news that you are thinking of a port to Android. You will make me (and a lot of others as well) very happy with that. I am still using a bunch of programs to let at least do a part of what your program did for WinMo. After I finally ported my HTC HD2 permanently to Android (one of the things that was holding me, was the lack of your program for Android), but I am still missing CommMgrPro.
short/y said:
1) have ALL of those notifications available to me (with the possible4 exception of date/time set)
2) be able to change settings, run scripts, use Locale plug-ins (no reason for you to replicate functionallity that's available in existing code), start/kill other apps and send arbitrary Intents to other apps. Output to a file would be nice as would being able to read and parse a file (rudimentary parsing is OK)
Perhaps a tall order, eh? Start small. GPS and/or cell tower location-based notifications to trigger actions like turning on/off WiFi, bluetooth, cellular radio, conditioned on time of day/day of week/date would be a good start, for me at least. I'd also like to be able to create profiles that I can trigger manually, preferably by a shortcut. While I'm not big on widgets, people will want them and give you bad ratings in the Market if you don't have them.
Click to expand...
Click to collapse
I do totally agree with this. Lets start with cell-tower switched on and off, of 3G, WiFi and GPS. One of the biggest problems with Android is the huge amount of battery drain. This will make a good start. I know, there are a lot of programs which does it in a simular way, but CommMgrPro has a lot more to offer, after some time. And Daniel, you have the proof and skills of a very good programmer
Thanks!
Hi.
Right now there is a fully working version. I am testing it myself and works very well. In a few days I will post it. Then I will fix bugs and will add more features. Basically:
1) More conditions to trigger a rule. Battery level, incomming call from XXX, incomming SMS, etc
2) More actions to be executed when a rule is matched: run or kill a process, etc
Thanks
Gigabyte Gsmart G1345
I will be locking forward to get this working on my device.
It is really needed.
I sincerely hope that it could work on my device with Android 2.3.4.
God damn D man you finally turned to the dark side. Thought you had abandoned development. CMP was the only thing that kept me on WM until Jan this year. Have looked for CMP for android a couple of times but now you are ready. Cool man. I have started to use Tasker, and have some pretty crazy rules, but some things are not possible with Tasker, so I hope that you make it possible to integrate with Tasker as a plugin.
Anyway D. Its good CMP have not died.
One thing I miss. Being able to run my CMP as a service. Actually I believe tons of apps could save battery if they were better programmed and just called the part of the app that is needed. Maybe its nonsense, as I am not a dev, but I look forward to have you back on the train D.
---------- Post added at 11:39 PM ---------- Previous post was at 11:30 PM ----------
Just went to the CMP page. MAN, memories from good old wm days. I really spent many hours tweaking CMP.
I miss the possibility to see all cell towers in a time scheme, and then add them to different profiles..... Is that part coming?
By the way, what phonie are you having?
HI answer in my next post (5 minutes)
Hi Martin. Time passes hehehehehhe
Well, as I posted before I didn't want to waste your time with buggie releases.
Answering your question, positions are given by location + radius. But I will develop a simple way to provide cells. It is a old way but has a good advantage. It doesn't require internet connection. You teach CMP which cells are near your home so CMP doesn't need internet. Well, currently you define a point and a radius.
As you know CMP is a rule engine. The device gets thousand of events (battery levels, positions, week days, hardware status, calendar events) so you can create complex rules to launch actions (set hardware status, launch programs, kill processes and much more.
The program will be FREE and will probably contain ADDs. There will be a donate version (0.99$) to avoid ADDs to support me.
Don't forget Martin, post suggestion about conditions and actions. Rememeber, one rule = Condition 1 AND Condition 2 AND condition 3.......and if matched then execute Action1 and Action 2 and ACtion 3......
There are other rules programs, but this one will what we really need (from programmer to programmer)
andddd just sold my galaxy S2 to buy a galaxy note. I ve iPhone 4s to develop projects for old and busy customers (you know, MAC=MONEY)
Don't worry, I will come up with suggestions if something comes up. Like your way to always answer our good and sometimes stupid questions, but important to me is flexibility. I know there is is problem calling GPS functionality, but Secure Settings solved that by an external plugin that could be called from Tasker and others. So are you planning an SDK or similar to let CMP interact with other software? In my head CMP could be a standalone app, but also the app that could be used in bits or integrated with other software.
Have another...
One thing I miss on android is being able to copy screen press like calling an app and then copy the button interactions. I will send you thoughts on this in a pm later when more thinking have been done as it could be a standalone app you could develope later.... And perhaps make some earning on.
Note..I am thinking about buying it, so I look forward to hear your thoughts about it.... When do you get it?
Hi Martin.
CMP will interact with other programs using android Intents. And other programs can interact with CMP, applying rules for example, using intents too.. I dont really know if you know what intents are, but they are a nice and easy way to allow programs interaction.
I didnt understand your sugestion about copy press. What does it mean? You know my english is poor, hehee
Enviado desde mi GT-N7000 usando Tapatalk
Daniel, I've been away from CMP (and Windows Mobile/Phone) since Android launched but I have missed CMP just about every day. Because of the value I received from CMP back then, I plan to buy it as soon as it's available. And when you're ready for beta testers I want to participate.
looking to test myself,I remember testing back in the wm5-6.5 days
Very soon I will upload the first version. Let me finish a couple of conditions (a program is running or is stopped and other one, battery level range). So probably next week i will upload it,but remember, much work to do
Enviado desde mi GT-N7000 usando Tapatalk
may i ask why you don't simply use one of the many many already available apps of this kind?
just to name a few:
tasker
settings profile pro
llama (it's free)
...
Well, it isnt a profiler. Its a rule engine. Of course, you can use it as a profiler. The idea is a total automation of the device. Soon the conditions can be used as complex AND/OR clauses. Well, its a rule engine as I think it should be. I did it in Windows MObile and I am trying to translate it to Android learning from old errors...
tasker is a rule engine too.
and llama and settings profiles is just a simpler rule engine, more optimized towords profiles, but not only!
Thanks, I am trying to make CMP better than those programs
ok. no worries. i just wanted to mention this as maybe it would be easier.
but this of course is a reasonable reason to port it.
good luck.
I've used several of the other apps (Locale, Tasker, Settings Profile and a few other profile programs I can't recall). Tasker is currently my workhorse. It's extremely powerful but it's a PAIN to program. There's no good way to cross-reference variables or other tasks so, to make global changes to a routine, I need to export my profile, bring it up in a file viewer on my PC and do searches and such on the PC while changing the programming on my phone. I'm not knocking Pent, the developer, he's done a phenomenal job on Tasker, especially given that it's only one person doing the development. But, for all its power, once I got beyond a few relatively trivial profiles, its become nearly unwieldy.
I don't know exactly what Daniel has in mind but I know what I did with CMP on Windows Mobile. With the additional capabilities in Android, I think Daniel could do really really good things (no pressure, Daniel). I'm looking for power with more facilities to make it easier on someone who does lots of things with the app.

Apps that runs on startup/background

I hate it when an app runs in the startup specially if the app is not that important. Is there any way of disabling those apps that run in the startup? As well as those apps that runs in the background even if you don't need em to? They eat up RAM and make the NC slow! I wish I can manage them.
Let them be android takes care of itself.
Read this: http://forums.androidcentral.com/general-help-how/102171-apps-always-running.html#post1088042
---
- Sent from my LG Optimus V using Tapatalk
les02jen17 said:
I hate it when an app runs in the startup specially if the app is not that important. Is there any way of disabling those apps that run in the startup? As well as those apps that runs in the background even if you don't need em to? They eat up RAM and make the NC slow! I wish I can manage them.
Click to expand...
Click to collapse
Yes...get an app in the market called Android Optimizer, it is free. In the menu hit the startup manager icon. Disable the app (s) you don't want to run at start up or background.
StarlahRain said:
Yes...get an app in the market called Android Optimizer, it is free. In the menu hit the startup manager icon. Disable the app (s) you don't want to run at start up or background.
Click to expand...
Click to collapse
You sure of that name? I did a search in the market and do not see it.
StarlahRain said:
Yes...get an app in the market called Android Optimizer, it is free. In the menu hit the startup manager icon. Disable the app (s) you don't want to run at start up or background.
Click to expand...
Click to collapse
You do not need an app like this. People use task killers and startup blockers and then complain about how crappy and slow stuff is because THEY ARE NOT ACTUALLY RUNNING IN THE BACKGROUND. They are cached for faster start up next time. They do not take up any battery or CPU power. Android is linex not windows.
--------------------------------------------------
Here is the post i linked to earlier:
I develop Android apps so I though I'd explain why a task killer isn't needed on an Android system.
Activities
Android apps use activites to preform tasks. For example, if you use a file manager to send a picture via email, the file manager calls the send activity within an email app, passes the file name to it and the email app sends the picture.. not the file manager. This will result in seeing the email app as "running" even though the user didn't actually launch that email app.
Smaller apps
Using activites helps developers design smaller apps. A file manager app that contains every bit of code needed to do everything a file manager does would likely be so large that no one would want to install it. Developers know that an android phone more than likely has an email app so there is no need for the developer to include email code in his/her file manager to send a picture when he/she can call an activity in an existing email app to do the job. This results in a smaller file manager app since there is no need to include email code or any other code for an activity that can be done via an app that is already present on the phone. This also alleviates redundant code. When you install an app outside of the android market, also known as sideloading, the file manager app calls the package installer (already present in Android) to install the requested app.
Running apps vs. cached apps
The "Manage Applications" list included in many android devices lists running apps as well as cached apps. Cached apps don't use any CPU or battery, they're cached so they will load faster the next time you need them. Killing cached apps results in those apps requiring more time to load the next time they are launched.
System management
By default, every android application runs in its own Linux process. Android starts the process when any of the application’s code (activities) needs to be executed, and shuts down the process when it’s no longer needed and system resources are required by other applications.
* Android is hard coded to automatically kill a task when more memory is needed.
* Android is hard coded to automatically kill a task when it’s done doing what it needs to do.
* Android is hard coded to automatically kill a task when you haven’t returned to it in a long time.
* Most services (while possibly running in the background) use very little memory when not actively doing something.
* A content provider is only doing something when there is a notification for it to give. Otherwise it uses very little memory.
* Killing a process when it isn’t ready only causes it to have to reload itself and start from scratch when it’s needed again.
* Because a task is likely running in the background for a reason, killing it will only cause it to re-spawn as soon as the activity that was using it looks for it again. And it will just have to start over again.
* Killing certain processes can have undesirable side effects. Not receiving text messages, alarms not going off, and force closes just to name a few.
* The only true way to prevent something from running at all on your phone would be to uninstall the .apk.
* Most applications will exit themselves if you get out of it by hitting “back” until it closes rather than hitting the “home” button. But even with hitting home, Android will eventually kill it once it’s been in the background for a while.
If you see an app running that you didn't launch, it's most likely because an activity within that app was called by another app to perform a task. If you kill the app you didn't launch, the system has to relaunch that app in order to complete its task. This is why some people kill a task and then see it immediately running again. Constantly killing that app creates a situation where the user is battling the system resulting in wasted system resources.
Android is Linux
Android is not a Windows-based OS, it is based on Linux. Many of the apps you think are running aren't actually running, they're cached, this is typical with a Linux operating system and is much more efficient than other systems. Cached apps don't use any CPU or battery, they're cached and will load faster the next time they're needed.
Let the system manage resources.
---
- Sent from my LG Optimus V using Tapatalk
patruns said:
You sure of that name? I did a search in the market and do not see it.
Click to expand...
Click to collapse
I apologize ..it is called Optimize Tool Box...lite version(free)...
koopakid08 said:
You do not need an app like this. People use task killers and startup blockers and then complain about how crappy and slow stuff is because THEY ARE NOT ACTUALLY RUNNING IN THE BACKGROUND. They are cached for faster start up next time. They do not take up any battery or CPU power. Android is linex not windows.
--------------------------------------------------
Here is the post i linked to earlier:
I develop Android apps so I though I'd explain why a task killer isn't needed on an Android system.
Activities
Android apps use activites to preform tasks. For example, if you use a file manager to send a picture via email, the file manager calls the send activity within an email app, passes the file name to it and the email app sends the picture.. not the file manager. This will result in seeing the email app as "running" even though the user didn't actually launch that email app.
Smaller apps
Using activites helps developers design smaller apps. A file manager app that contains every bit of code needed to do everything a file manager does would likely be so large that no one would want to install it. Developers know that an android phone more than likely has an email app so there is no need for the developer to include email code in his/her file manager to send a picture when he/she can call an activity in an existing email app to do the job. This results in a smaller file manager app since there is no need to include email code or any other code for an activity that can be done via an app that is already present on the phone. This also alleviates redundant code. When you install an app outside of the android market, also known as sideloading, the file manager app calls the package installer (already present in Android) to install the requested app.
Running apps vs. cached apps
The "Manage Applications" list included in many android devices lists running apps as well as cached apps. Cached apps don't use any CPU or battery, they're cached so they will load faster the next time you need them. Killing cached apps results in those apps requiring more time to load the next time they are launched.
System management
By default, every android application runs in its own Linux process. Android starts the process when any of the application’s code (activities) needs to be executed, and shuts down the process when it’s no longer needed and system resources are required by other applications.
* Android is hard coded to automatically kill a task when more memory is needed.
* Android is hard coded to automatically kill a task when it’s done doing what it needs to do.
* Android is hard coded to automatically kill a task when you haven’t returned to it in a long time.
* Most services (while possibly running in the background) use very little memory when not actively doing something.
* A content provider is only doing something when there is a notification for it to give. Otherwise it uses very little memory.
* Killing a process when it isn’t ready only causes it to have to reload itself and start from scratch when it’s needed again.
* Because a task is likely running in the background for a reason, killing it will only cause it to re-spawn as soon as the activity that was using it looks for it again. And it will just have to start over again.
* Killing certain processes can have undesirable side effects. Not receiving text messages, alarms not going off, and force closes just to name a few.
* The only true way to prevent something from running at all on your phone would be to uninstall the .apk.
* Most applications will exit themselves if you get out of it by hitting “back” until it closes rather than hitting the “home” button. But even with hitting home, Android will eventually kill it once it’s been in the background for a while.
If you see an app running that you didn't launch, it's most likely because an activity within that app was called by another app to perform a task. If you kill the app you didn't launch, the system has to relaunch that app in order to complete its task. This is why some people kill a task and then see it immediately running again. Constantly killing that app creates a situation where the user is battling the system resulting in wasted system resources.
Android is Linux
Android is not a Windows-based OS, it is based on Linux. Many of the apps you think are running aren't actually running, they're cached, this is typical with a Linux operating system and is much more efficient than other systems. Cached apps don't use any CPU or battery, they're cached and will load faster the next time they're needed.
Let the system manage resources.
---
- Sent from my LG Optimus V using Tapatalk
Click to expand...
Click to collapse
Yes..I have noticed some side effects.alarms and what not. I guess ur right the only real way is to completely uninstall the apk ..would u happen to know why my adw launcher keeps forceclosing each time boot my nook? I am not running any icon packages..so what other source (or app) could be calling on it to run at startup?
StarlahRain said:
Yes..I have noticed some side effects.alarms and what not. I guess ur right the only real way is to completely uninstall the apk ..would u happen to know why my adw launcher keeps forceclosing each time boot my nook? I am not running any icon packages..so what other source (or app) could be calling on it to run at startup?
Click to expand...
Click to collapse
I am not familiar with adw. Is there an option to save it in memory I know that many replacement launchers do so you might want to make sure that is checked.
Also if you are using a task killer, it is probably trying to kill it and that could cause it to force close.
---
- Sent from my LG Optimus V using Tapatalk
StarlahRain said:
Yes..I have noticed some side effects.alarms and what not. I guess ur right the only real way is to completely uninstall the apk ..would u happen to know why my adw launcher keeps forceclosing each time boot my nook? I am not running any icon packages..so what other source (or app) could be calling on it to run at startup?
Click to expand...
Click to collapse
Do you have Titanium Backup installed? You can clear data and uninstall apps with that as well.
auto starts kills those apps... i run it on my NC>.......i dont need dialer /voicemail...etc.....
Just a thought but if you continue to have force close issues with apps, try running fix permissions. This usually ends the issues. I run adw ex and have no problems. Those few times I have had issues, fix permissions has solved the problem. Just sayin.....
Sent from my NookColor using Tapatalk

[APP]Linux Autoloader v0.9.6.1[BETA]

-This app REQUIRES a rooted device AND busybox installed-
Welcome to Linux AutoLoader (LinLoad for short), the tool for COMPLETE Linux management within your Android
Device through chroot. This app allows you to mount, log in, and manage ANY full Linux system on your Android
Smartphone or Tablet. You can load from either a SDCard partition or from a filesystem image on your
device.
This app comes with built in support for swap usage, transportable and interchange-able home directories, as well
as advanced error management and recovery. This app will tell you what went right, what went wrong, and even has
suggestions on fixing the rare bugs that may come up.
The Profile System allows you to set default settings for different images. Name your system so its easy to keep track of which one is mounted, set default user, home directories, sdcard use, and even automatically clear the VNC locks, without the need to run scripts or type out commands.
The Control Panel allows you to boot straight into the Linux System terminal, start VNC with one click, update different system files, or load in your home directory. A notification service also starts when Linux is detected as mounted, allowing quick access to the Linux Control Panel.
APP Features
--------------
- Built-in automatic VNC screen size setting, detects proper screen to set for ANY device
- Detects difference in Internal Storage and External storage for devices built for
- The ONLY Linux boot utility to properly detect an dedicated ext2/4 partition on your SDCard
- Provides a Profile system to help manage settinhs across multiple Images and partitions
- Runs ALL ARM-based Images and filesystems
- Various How-To's found in the "How do I...?" section
Control Panel Features
--------------
- Links three different designated Android Terminal windows for ease-of-use:
-- Normal Terminal
-- Terminal window deficated to VNC commands
-- Terminal window for system commands and management
- Start VNC, clear all VNC locks left over from previous runs, and (soon) open your favorite VNC app directly from Linux Autoloader
- Connect through SSH using ConnectBot, or through the Android Terminal using chroot
- Keep all your documents inside a seperate home image (EXT4 supported needed) for easier transportability across any system (Android or Linux)
- Mount a swap file for increased stability
- Keep the file system fstab updated with just one click
- Manage services found in /etc/init.d
Keywords:
Backtrack, ArchLinux, Fedora, Gentoo, Linux, Unix, Ubuntu,
Full Changelog can be found at http://forum.xda-developers.com/showthread.php?p=27074347
CHANGELOG
V0.9.6.1
- ConnectBot Support added
- More external storage device configurations detected (/storage/sdcard1)
- External Sdcards accesible through "Boot Image"
- Home and Swap mounting greatly improved
- Fixed random Control Panel crash
- Links 3 terminals through chroot to allow easier tracking of command output:
--Terminal
--VNC
--System
V0.9.5.3
- Fixed Random crash on opening the Control panel from Notification
- If a File Manager is not installed, app will ask you to install one\n- Code tweaks to increase mounting speed
- Insured ll.config is placed as it should be
V0.9.5.2
- Boot Default and Partition properly update screen
- Warnings about needing Android Terminal Emulator to run VNC and Start Terminal
- Quick Start guide now runs first time the app is opened
- "Whats Updated" Dialog added
- Updated Boot Default selection
- Bug-fixes
v0.9.5.1
- Quick Start guide added
- Boot Default image now askes which image to set as default
- Bug-fixes
V0.9.5
- Profiles added - Adds numerous default settings to Linux system images
- Fixed indexOutOfBounds errors (mostly, one still eludes me)
- tutorial coming soon!
V0.9.4 - Major update
- now includes a service to let you know you have something mounted
- Base framework improved
- App logging greatly improved
- settings now contain common export variables, including hostname, user, home, and designating a display number to run applications through the terminal to start GUI programs
- app bitmaps improved
- Numerous bug-fixes
v0.9.3
- Improved mounting methods
- Detect file system by extension working
v0.9.2
-Technically BETA-
-upgraded UI
- Added Linux control panel
- improved mounting methods
- improved swap method
-option to clear vnc locks and update fstab
- automatic VNC geometry setting
- set fs type by extension for images -still very buggy-
EPIC! This is great
good job mate
Sent from my LG-P500 using Tapatalk 2
Thanks
I have to admit, theres a few bugs to be worked out, but its only gonna get better over time
It's ridiculous that i HAVE to buy it to test it (Beta).
Although it is only a small amount, i'm basically AGAINST paying for a BETA product.
Is there a free version i can TRY???
I do not plan on releasing a free version, and the cost will not be going any higher when I deem it as a full release. I released it as a beta to allow those out there that have been looking for something like this to watch the project grow and put in thier input at an early stage in development. The 1 dollar price tag is a very minor amount when you consider how much time this can save if you enjoy using Linux on your android devices.
This project is a great passion of mine, and I have many many more features that I will be adding to if in the coming weeks
z3nful said:
I do not plan on releasing a free version, and the cost will not be going any higher when I deem it as a full release. I released it as a beta to allow those out there that have been looking for something like this to watch the project grow and put in thier input at an early stage in development. The 1 dollar price tag is a very minor amount when you consider how much time this can save if you enjoy using Linux on your android devices.
This project is a great passion of mine, and I have many many more features that I will be adding to if in the coming weeks
Click to expand...
Click to collapse
Hey mate i dont use the google play for paying a app is it possible to pay to you in paypal?
At the moment, thr app is only acailable through Google Play. In the near future though, Ill also have it up on YAAM(Yet Another App Market) which supports Paypal.
Keep an eye on my website at http://wwe.zenfulapps.COM for news on when it is available through there
I need help
How do I switch the default directory to my extsdcard (/storage/sdcard1)

[Q] Script to check for updates?

I recently started using OmniROM, and the integration of OpenDelta is a great feature. I've got a couple minor annoyances with it, however, that I believe I can fix myself.
The first annoyance is that it always seems to check for updates just a couple hours before they're available. Because of this, if I don't check manually I'll basically be a day behind all the time. Sometimes is checks a second time later, but not always. What I'd really like is to be able to control when it checks, so that when I can have it alert me at a time that would be convenient for me to apply the update.
I should be able to accomplish this fairly easily in Tasker, but I've been unsuccessful in reverse-engineering the process this far. When I was using PAC-MAN ROM I was able to trigger the update checker by running the following shell using root:
Code:
am startservice com.pac.console/com.pac.console.updateChecker
I looked into the AndroidManifest.xml for com.chainfire.opendelta but didn't see any activities or services that looked relevent. Regardless, I tried all of them but none triggered an update check.
Preferably, I could run a script that would run the check in the background (with the notification showing). I could have Tasker open the app and send a screen press, but the problem is that if it already found an update the Flash now button replaces the Check now button, so it would trigger the flash, perhaps when I don't want it to.
Can someone more knowledgable than myself ( @Chainfire ?) instruct me on the proper code I could run in a shell that would trigger OpenDelta to check for updates?
The only other annoyance I have is that there's no changelog shown. The changelog at changelog.omnirom.org is wonderful with how it integrates with github and gerrit and breaks everything down by device, but it would be so much more convenient to see the same thing in OpenDelta. As a workaround, what I'm going to set up is to trigger a task in Tasker when the update available notification exists that would then create a second notification to open up the changelog.omnirom.org page for my device.
Thanks!

Just tweak it [Note20] - debloat, root, plugins, battery...

Note20 stock setup​
model used: Note20 Ultra 5G SM-N986B and Note20 SM-N980F with low performance Exynos
another article in a flagshipfest ..->V30->Note9->6T->Mi9->S10->7T->Tab S6->Tab S4->8Pro->Note20Ultra, well, OnePlus doesn't need much setup. So easy to root, so easy to update, so little adware. But omg, this is Samsung, bloated as hell. Need to treat it like Xiaomi and write down some information. This time added links for everything, good for future reference.
We want
* better battery
* better privacy
* call recording
* disk encryption
* tweaks
Rooting​
We want encryption. The era of TWRP encryption access is gone, but it's fine since we even have Magisk ROMs and literally all extras we need is provided in Magisk/Xposed modules.
i really hate reading too long guides, the steps are standard so let's add easy links into compact steps. The links come from here or official sources, so likely virus free (unlike here).
On yer new device in order to get root, lose warranty outside of EU, lose bit of Samsung functionality, wipe your data, abandon archaic Android 10, and get tons of benefits :
[PC] grab your Android 11 firmware in Frija as you do the next step
[mobile] unlock OEM in dev settings (need to be online for big brother to register your activation)
[PC<->mobile] when turned off and nowadays rather plugged it to your Windows PC with drivers installed or Linux PC with no drivers needed, hold Vol+ & Vol- til you see download screen, long press Vol+
[PC<->mobile] after you slap AP*tar file unpacked from step 1 on yer phone, patch it in Magisk 22+
[PC<->mobile] back in download mode, in ODIN 3.14, slap patched AP into AP slot, BL to BL, CP to CP, CSC to CSC and flash
[mobile] hold Power & Vol- to exit download mode
[mobile] install and run Magisk to finalize rooting and reboot again
[mobile] check Magisk status, enable USB debugging in dev settings like you always do, and continue the modulefest (below)
You can Magisk-hide few apps like Flow which moan about root. In case of update, we will perform similar steps with HOME_CSC added to CSC slot.
Modules​
Magisk​In Magisk, we can get stuff from its UI but you can still click on some links FYI:
* Riru - Core, LSPosed or EdExposed -> brings XPosed to Android11. For either XPosed, you need the manager APK. LSPosed seems more stable, both now want to preselect affected apps which is highly undesirable for many plugins like XPrivacy, XPosedEdge, 3C, etc.. anything working with all apps
* Bluetooth Library Patcher -> helps us keep the bluetooth pairings
* (optional) Sui -> to run AppOpps as an alternative to XPrivacy
* (optional) Move certificates -> to install certificate for AdGuard
* (optional) F-Droid Privilleged Extension -> to make F-Droid updates easy
XPosed​in one of the managers, we can get some plugins:
* Xposed Edge Pro -> a fantastic plugin which can do lot of popup menus, edge gestures, control hardware keys, run scripts on triggers.. unbelievable value.
* XPrivacy Lua -> must have. Disabling analytics, tracking, telephony, network, identification for all visible apps and all Google and Samsung apps with some exceptions.
* AppOps -> this is closed source alternative to XPrivacy, not bad actually. You need "Riru - Sui" Magisk extension first.
* Firefds kit -> main customization app for Samsungs. Enables the very important call recording, which is beutifully integrated into call history. Bye bye external apps.
* (optional) Xposed Dex -> some tweaks, not using it just FYI
* (optional) afWall -> not needed in Oneplus because there's a firewall, but Samsung doesn't have one. Alternatively you can use Adguard for this task and avoid some issues and too much duplicit apps in memory. This extension should be disabled, just present.
* (optional) Exi for Swiftkey -> you can make Swiftkey great again, GBoard is still the best, Samsung keyboard is very good, but too tall and leaves gap in fullscreen mode
Apps​Root apps you can get from the web, Google Play or F-Droid:
* 3C toolbox -> too helpful not to pay for the biggest package. It is a backup solution too. It's commercial.
* or TitaniumBackup -> a must since Android was born, however died infamously. Commercial.
* or OAndBackupX -> FYI new open source backup solution
* Adaway -> a must but with AdGuard? not so.. but i use both
* or AdGuard -> this is way more superior adblocker and firewall. Can filter more and can amend requests.. that's a game changer. You can have a efficient proxy when rooted thanks to "Move certificates" Magisk extension. Commercial, licences can be aquired very cheaply. With its paid VPN it can solve the problem of who's first "local VPN or VPN", but this is not needed in our root setup.
* Warden -> rips the guts of apps and removes tracking and logging
* YouTube Vanced -> YouTube without ads and sponsor blocks.. now you need manager APK to install it, might not alwasys work. And Google will be happy to overwrite it
* (optional) MiXplorer -> best file manager, replaces spyware ES File explorer you had before. Edits root files comfortably even when other editors don't. It's a great text editor or media player too! Commercial.
* (optional) FolderSync -> best sync tool. Commercial but works well as a free version.
* (optional) Root Essentials -> a multitool, have a look, it's not huge or useful as 3C
* F-Droid -> open source apps
Debloating​
What the script does:
* choose 8 categories of app removal, in the beginning of the file
for each say 0=skip 1=remove 2=revert back
* use more switch to disable some questionable/helpful stuff
* disable up to 100 apps with possibility to revert back
* remove usage access for google (do manually)
* remove device admin backdoor "Find My Mobile", you won't recover stolen device this way lol, it doesn't work with Secure Startup! it's useful for Govt.
* revert DNS from Google if it's added at boot (minor, AdGuard can also change it btw)
Tested ok on March Android 11 firmware. Error messages will be there for non existing components, and it's ok. It's just a script.
Samsung has too much bloatware installed, and requires shocking permissions to run some basic services. We will further need to reclaim privacy. As for debloat list, i've cooked the list based on knowledge of each process, its current presence in the firmware, and what would fit the common usage. Also checked against 2 more knowledge bases. In this case, i'm leaving Samsung account, Galaxy shop, Bixby and few pen apps and we assume XPrivacy is sending these snitch services bogus personal details.
Download: (file attached)
Installation (omg! it's not an app!):
- run in su terminal once or add to any startup script (3C\Device mgr\Scheduler can assign scripts from (it needs to be /data now, and chmod +x it), or to magisk
Battery​
Battery saving:
- the key is to disable background network activity:
enable Data Saver and make exceptions for individual apps (there's "Allow data usage with Data Saver" and also nice "Allow background activity" & "Optimize battery usage" choices)
enforce it with 3C (Device Mgr\Profiler) or Adguard (App Management), vendor make exception for adwares!
disable bluetooth, wifi, nearby scanning
choose your Power Saving mode, wakelocks like {AOD, fp icon, dt2wake, raise2wake} etc based on yer preference
- nearby scanning should be off, what a useless function of finding unknown devices - once you pair the known, what's the sense? or you keep connection 10 new bt devices each week? just a drain and endless beacon
- didn't test {LSpeed, Naptime, Servicely, FDE, LKT, Universal GMS Doze, Sysconfig patcher} here. Battery looks good even on Exynos, something between S10 (poor) and 1+ (excellent), but without permakilling of apps.
Other
- didn't change ugly boot warning yet
- for call recording make sure XPosed manager whitelists call components
- no boot keys needed like on S10 generation
- not using multidisabler as i'm on stock and i do want encryption on every device ever
- don't be afraid to use another device (mobile) as USB drive.. this way you can restore your apps directly without copying it first! also Smart Switch can be used from non-Samsung phones, but it is as weak as Google backup ever was - no data restore
v1.1 script
* removing Bixby main app by default, leaving useful Bixby Vision or routines
* debloat PrivateShare, privacy unfriendly "private" share
* debloat Blockchain app, won't work with root and who'd store crypto with a corporation really
* debloat more of SmartThings
* debloat EpdgTestapp, while leaving servicemodetest optional (sec.phone, sec.bcservice) -> trigger by *#0011#*
* debloat Digital Wellbeing but optional yet
v1.2 script
* new bonus: set display 48/60/96/120Hz mode for Ultra model
Let's see if 96 is good for battery. BTW You can monitor the fps using the native GPUWatch app.
This is cool but 99.9% of the folks are NOT going to root their devices.
So i've bought the Note20 base model and it works there too. Same procedure with everything.
doggydog2 said:
v1.2 script
* new bonus: set display 48/60/96/120Hz mode for Ultra model
Let's see if 96 is good for battery. BTW You can monitor the fps using the native GPUWatch app.
Click to expand...
Click to collapse
Thanks gonna rock this bad boy!)
Will this work for N9860 (Snapdragon) too?
elmor0 said:
Will this work for N9860 (Snapdragon) too?
Click to expand...
Click to collapse
it should be fine, the other sources of information also typically include your model, so i'm assuming it's same +- small vendor apps difference.
you even have the freedom version (non-US Snapdragon), and i wanted your hard-to-get model, thanksgod Exynos battery @ 96Hz is good for 2 days.
as i'm finding out after many flagships, i simply get battery life per battery size no matter what is the manufacturer, after rooting, and following steps in Battery section. Phone after phone, same setup and data.
doggydog2 said:
it should be fine, the other sources of information also typically include your model, so i'm assuming it's same +- small vendor apps difference.
you even have the freedom version (non-US Snapdragon), and i wanted your hard-to-get model, thanksgod Exynos battery @ 96Hz is good for 2 days.
as i'm finding out after many flagships, i simply get battery life per battery size no matter what is the manufacturer, after rooting, and following steps in Battery section. Phone after phone, same setup and data.
Click to expand...
Click to collapse
Could you expand by what you mean when you said "Battery Section"?
dj24 said:
Could you expand by what you mean when you said "Battery Section"?
Click to expand...
Click to collapse
well the steps in the Battery section of the guide. mostly make sure low priority apps are included in Data Saver or have no background activity allowed. On Samsung you also have 2 more sleep categories to throw apps into. All games have to be in the deep sleep. Aliexpress, Facebook is a typical example of agressive app to block in background. Google app can be uninstalled for the same reason, you can use Google Go or Bing instead. Or Finder which is the best Samsung app. With further debloating, adblocking there's less and less connections to cause wakelocks, and the current connections make a very short list of important apps like Signal, GMS, home assistant app.. very short. Depends on your taste, some people love to be annoyed by popups,, ads, useless notifications and then charge twice a day
@doggydog2,
Does your Mod automatically select what to debloat when flashed via Magisk, or does it give options of what to debloat/ leave alone?
Thank you very much for the above substantial set-up guide.
(BTW, coming from 7T/ 7T Pro, I'm not sure if you have come across arter97 kernel? - it took battery-life to paranormal levels. If there was something similar available for the N20 serires...)
elmor0 said:
@doggydog2,
Does your Mod automatically select what to debloat when flashed via Magisk, or does it give options of what to debloat/ leave alone?
Thank you very much for the above substantial set-up guide.
(BTW, coming from 7T/ 7T Pro, I'm not sure if you have come across arter97 kernel? - it took battery-life to paranormal levels. If there was something similar available for the N20 serires...)
Click to expand...
Click to collapse
This is just a root script where you select yes or no for some categories. The 100 items are carefully thought out, but you can modify it. I set it to run at boot, to make sure it debloats atter ROM updates. Both Oneplus and Samsung will reintroduce bloatware each time, so it saves a lot of time later, while being little bit difficult to set up first (well, it's 1 minute for me).
i came from 7T and 8Pro battery was so good i didn't play with kernels. Now I have 2days every time on Note20 so there's nothing to improve. My expectation is to survive night when charge is skipped. I really hate phones which won't wake you up next day or die in case of emergency (long night out)!
Thanks.
I just tried AdGuard, Warden, MiXplorer & 3c Tools.
One of these or there settings really messed up my device - Phone become very laggy & freezing, SystemUI crashes repeatedly, couldn't access launcher, & no connection to data/ networks/ reception! I'm not sure what went wrong.
Luckily, via TWRP I managed uninstall all things Magisk & started again. I've uninstalled the above apps besides MiXplorer. Will see how it goes for now....
Also, any idea how I change the Screen Lock & Unlock sounds as well UI sounds when connecting/ disconnecting charger?
I tried via SystemUI tuner App, as well manually replacing the relevant UI sound files via Root/ MiXplorer file explorers.
AdGuard, Warden, MiXplorer & 3c Tools - lovely tools to start with. No problems with them! 3C toolbox is what I use to launch the script at boot. Incredible package which replaces also dead TitaniumBackup. MiXplorer is the best file manager, replacing the traditional ES file manager malware. AdGuard is the only relevant adblocker (thou you need to fight to get the automatic proxy via system certificates). I used Warden on every recent phone and no problem, but the Nuke operations hangs recently. But still no consequence.
3C toolbox is also the tool that will find the bottleneck in your case. You can check the logs and usually see who is throwing errors around. Magisk and Xposed usually don't show anything meaningful in logs. Usual suspect of lags is Xposed.
No idea about lock sounds, i'd like a slightly different thing: be aware of phone charging. Such simple expectation. Every device on the planet notifies about charging by notification light, except the "smart" phones. No way to find out phone is being charged except very tiny AOD icon. LED cover also shows the charging status for 2 seconds and that's it. I only remember Xperia and Z Flip permanently showing the charging status. I can't wait to replace Note20* with ZFlip 3 (which will come as a replacement of Note21), and stop caring about display protection
Interesting read. I'm not interested in rooting but am interested in debloating/saving battery of the Note 20. How could you remove the Google app while not crippling the device entirely from a Google perspective? i.e. I still use Waze, Google Maps, Gmail. I'd love a good ad blocker that doesn't require the VPN item as well if that's possible without rooting.
how do you install Note20_cleanup.sh.zip ? I still don't understand, I have root and everything
iagoovalerio said:
how do you install Note20_cleanup.sh.zip ? I still don't understand, I have root and everything
Click to expand...
Click to collapse
it's a script, you unpack it and run .sh like in linux. I use 3C Toolbox to choose the file in U (Device Manager\Scheduler\<profile>\Start script). I and run it at each boot. Booting isn't frequent, meanwhile updates come (reinstalling adware), and this will keep the phone clean all the time. You can use any shell like Termux, ConnectBot, all will ask Magisk for permission when they run root commands (su).
Just want to say thank you I have used your script on my tab S7+

Categories

Resources