Thursday, June 23, 2016

Tasker Pro: Calendar-based Alarms to Never Miss Work and Save yourself from Embarrassment!

Automation is supposed to be about simplifying everyday tasks to give you more precious time doing the things you love. At XDA, we’ve shown you how you can use Tasker to secure your device, improve productivity, or make driving safer, all a part of our series called ‘Tasker Week.’

But the fun doesn’t end there. If you’ve been itching for some seriously awesome Tasker tasks (and are tired of the boring stuff like telling you how to reboot your phone or shake your phone to wake the display), then our new Tasker Pro series is for you.

We will be posting a series of highly advanced Tasker profiles that will show you just how powerful Tasker can be if you are willing to think outside of the box. Although we’ve done most of the hard work for you and you’re certainly free to import my profiles and use them as-is, I highly recommend you give learning how to use Tasker a shot if you want to be able to customize these tasks yourself. Over on our Tasker Tips & Tricks forums or on Reddit’s /r/Tasker subreddit, you can share and work with others on how to implement an idea you might have (as I have done many times).

This is Week 5 of Tasker pro. Last week, we showed you how you can use Tasker to copy two-factor authentication codes sent via SMS without leaving your app. This week, we will show you how to set a calendar-based alarm and disable any alarms set to go off during work!


Tasker Pro #5: Calendar Based Alarm

You wake up at 7AM. You shower, eat breakfast, grab a cup of coffee, hop in your car, and you’re on your way to work. If this is your routine every morning, you probably don’t have many issues with remembering to set an alarm clock. For those of us who work irregular hours, it’s pretty crucial for us to check our work schedule to be sure of what time we need to be up and ready to arrive on time. Remembering to set an alarm clock is crucial to being a punctual worker, but we’re all humans so we’re bound to make mistakes. That’s why I’ve devised this calendar-based alarm clock using Tasker and the AlarmPad app to make sure that if you have work scheduled the next day, you are guaranteed to have an alarm set for that time.

alarm


Requirements


Instructions

You will need some preparation to make this task truly work for you. First of all, you will actually need to make sure you are keeping track of your work schedule in a Google Calendar. My work schedule for example has an option to export to Google Calendar which is how I set it up. After you’ve set up your calendar, we will now discuss the two separate, independent Tasker scripts that will work to ensure that you both make it on time to work and to ensure that you never have an embarrassing situation where you forgot to turn off an alarm at work. You can implement one or both of these set-ups as you see fit.

First, how to make a calendar-based alarm. Below is a screenshot of the actions needed to set up this task. This task should be run once every night, preferably before you go to bed. You can set it up to run based off of a time context (eg. every night at midnight) or based off of some other trigger like an NFC tag (this is my preferred method).

1 2

  1. Task –> Perform Task. Name: Get Events. If you’ll notice, the first action in this step actually calls upon another task. This is a task I edited from the work of a Redditor on Tasker and showed off to XDA back in March during Tasker Week. A full guide on what this task is and what it does can be found in our Tasker Tips & Tricks forum. You can download that task in the thread linked or down below as I’ve re-uploaded it for the sake of this guide. A bit of a warning here, if you use your calendar for a whole bunch of different things that you don’t want to have an alarm set for, then be sure that you edit the ‘Get Events’ script to only pull from your specific work calendar.
  2. Task –> If. If %Calstart1 is Set. This will make the script only run if there is actually an event in your Google Calendar for tomorrow.
  3. Plugins –> AutoAlarm. This will pull a ton of detail about the next occurring alarm. Technically this is possible to do with a few Java functions, but it involves more steps than is necessary and the plugin just makes it far easier.
  4. Variables –> Variable Set. Name: %nextalarm to %TIMES + %seconds. Check “Do Maths.” This will pull the time that the next alarm is currently scheduled at (represented as seconds since the epoch) as a variable called ‘nextalarm.’
  5. Variables –> Variable Set. Name: %diff to (%Calstart1-%nextalarm)/3600. Check “Do Maths.” This formula will determine the difference in time between the next event on your calendar and the time that the next alarm is set to, in hours.
  6. Task –> If. If %diff < 2. If the next alarm is greater than 2 hours away (before or after the calendar event, it doesn’t matter), then we need to schedule a more appropriate alarm.
  7. Variables –> Variable Set. Name: %alarm to %Calstart1*1000. All we’re doing here is preparing the time we need to set the alarm clock to so we can feed it into AutoTools in a format it can recognize.
  8. Plugins –> AutoTools –> AutoTools Time. Click on Add Time. Go to Date and click on Data Millis and enter %alarm. Go back and for Add Unit set it to Hours. For Add Value set it to -2 (this is how long prior to the calendar event that Tasker will set an alarm for, if you think 2 hours before work is too long you can change the number, but make sure it’s a negative number). For Output Format: set it to HH:mm.
  9. Variables –> Variable Split. Name: %atcalculateddate. Splitter : (yes, that’s a colon). This will get the next alarm into two separate variables, one for the hours and one for the minutes.
  10. Plugins –> AlarmPad run action. Disable: Next occurring alarm.
  11. Plugins –> AlarmPad set alarm.  For hour make it %atcalculateddate1 and for minute make it %atcalculateddate2. Check “automatically delete after running.”
  12. Task –> End if.
  13. Task –> End if.

And that’s it for the calendar-based alarm part! Now if you’ve been using AlarmPad for awhile now, you might think this entire task is redundant because AlarmPad itself has a feature to monitor for calendar events, but it only asks you if you want to set them (meaning you have to do it manually) and it doesn’t discriminate between your various calendars. Assuming you’ve set up your work calendar properly, this will do everything automatically so you don’t have to worry about anything.

Next up, a variation of a pretty common Tasker script that involves silencing your phone at work … but with the added benefit of disabling any alarms that happen to be set to go off during work! Here is an overview of how it looks:

3

As you can see, you’ll be creating a state profile that is active whenever a calendar event is detected. Create a new profile and name it Silent Calendar. Leave the title, location, description all blank but for the calendar choose your work calendar. Create an entry task without a name. Here are the steps in order, which we’ll cover in detail below.

4

  1. Audio –> Silent Mode. Mode: Vibrate. Self explanatory. Set your phone to vibrate only mode when at work.
  2. App –> Test App. Type: Calendar Start (Seconds). Data: %TIMES. Store result in: %currstart. Get the start time of the current calendar event. We will use this to compare with the next alarm that is set.
  3. Plugin –> AutoAlarm. Get info about the next alarm.
  4. Variables –> Variable Set. Name: %nextalarm to %TIMES+%seconds. Get the time that the next alarm is set to, defined in seconds since the epoch.
  5. Test App. Type: Calendar Title. Data: %nextalarm. Store result in: %title. Get the title of the event that matches, if any, the time that the next alarm is set to.
  6. Test App. Type: Calendar Calendar. Data: %nextalarm. Store result in %calendar. Get the calendar that corresponds to the event above.
  7. Test App. Type: Calendar Start (Seconds). Data: %nextalarm. Store result in: %nextstart. Get the start time of the calendar event that corresponds to the next alarm, if any.
  8. Plugin –> AlarmPad run action. Disable: Next occurring alarm. Check If and set it to if %title1 is Set & %calendar1 ~ YOURWORKCALENDARNAME & %currstart1 = %nextstart1. This is doing three checks to ensure that the next alarm is disabled properly. If the next alarm is set during a calendar event AND that calendar event is from your work calendar AND that calendar event overlaps with your current work right now, then and ONLY THEN disable the next alarm.

You can use this script separately from the one above or in coordination with it. I use both and it helps me out really well with my irregular work schedule. Give it a shot!


And voila! If you are able to follow along this, then congratulations, you’re pretty much a master of Tasker! Confused on a step and just want to import the script and get on with your life? I can’t blame you, this one took myself a lot of thinking to get it down right.

If you want to import this Tasker script, you can download it from Android File Host. You will need to download these three files and import them all: [1] [2] [3] In order to import the task, you need to first disable Beginner Mode in Tasker by going to the menu –> preferences. Under the UI tab, uncheck ‘Beginner Mode.’ Then back in the main Tasker menu, click on the ‘Tasks’ tab. Then long-press on the ‘Tasks’ tab and press ‘Import.’ Navigate to where you downloaded my .prf.xml file and select it to import it. Once you import it, you’re free to play around with it as you see fit.

Next week for Tasker Pro I will show you how to unlock your Windows PC using your fingerprint!

Check out all Tasker Pro scripts!

What would you like to see me make with Tasker? Let us know below and we might feature your idea in a future article!

Dash Charge Speed Analysis: Even with Heavy Usage, Your Phone Will Charge Rapidly and Stay Cool

Faster charging has becoming a common specification for OEMs to gloat over, pushing forward their own standards and implementations to top you up in no time. Nowadays, when a phone doesn’t charge fast, it sticks out like a sore thumb.

The OnePlus 2 was one of such cases, with a horrifically slow (relatively speaking) charging in time in comparison to the Quick Charge 2.0 we saw in other devices of 2015. What was most frustrating is that the OnePlus 2 had the chipset necessary to implement that faster charging standard, but for one reason or another, OnePlus 2 owners were left with a pretty-but-useless USB Type C port that arguably did more harm than good.

Then came the OnePlus 3 seeking to correct this misfortune, bringing the USB Type C port again – now at a time when it’s common place – yet sporting a different technology, a modified version of Oppo’s VOOC Fast Charging. On Tuesday, we explained precisely how this works, and also why you are (luckily) likely to see it in custom ROMs sometime after July. In this article, we’ll spare you the technical details in order to talk about something we feel has been under-addressed in the blogosphere: the actual user experience, and just why Dash Charging is so useful. You likely heard a thing or two in its official presentation and early reviews, but few touch upon its most important function: unrestrained charging speeds.

img_thermal_1466533489500We carried out some benchmarks and real-world usage tests, backed up by some tools to standardize and graph the charging rate. The results we found were very impressive, especially when running the test against a Nexus 6P for reference. While many simply tout the ability of Dash Charging to achieve over 63% battery in 30 minutes (which we corroborated), the other two unique functions are ultimately what this charging standard has over most competitors. First is the fact that heat is concentrated on the charger, and not the phone itself. This is, of course, mostly an issue if you intend to use the phone while charging — otherwise, the only benefit is hardware longevity. The really useful aspect of Dash Charging kicks in when you do decide to use your device, or even keep it running background tasks or services, features like hotspotting, all being use-scenarios that affect charging on other devices. Before jumping in, it must be noted that the charger itself does get quite warm: we found that the charger itself can reach upwards of 48°C | 118.4°F while charging. Be careful!

30 min app loopingThe feature we are most delighted by, however, is the ability to charge at full or near-full speed regardless of phone usage. Indeed, at some point in your life you likely found yourself needing or wanting to use your phone before setting out or heading back home, only to find it at low battery and in need of an emergency charge. Other phones typically limit the charging rate while the phone is being used, but Dash Charging can top you up at roughly the same rate, not accounting for the battery you use up while using the phone. We ran various tests to measure to which extent Dash Charging accomplished this under-discussed feature, and the results are more than satisfying. First we wanted to test how using the phone while charging stacked up to the 63% in 30 minutes figure touted by OnePlus. To the left you will find the device going from 1% to about 51% in 30 minutes, at maximum brightness, while repeatedly cycling through apps including the Google Play Store, GMail, Chrome, and Hangouts (using DiscoMark) with every app launching cold. This alone is a very interesting result, but the fast charging also makes it to the end.

In the sample below, you can see the same sample as the one above but carrying on, past the 30 minute mark. Moreover, after that point we continued to use the device for a combination of YouTube and Hangouts messaging (or rather, test liveblogging) until the phone was topped up.  The final time for this test (when the phone hit 100%) was exactly 1 hour and 20 minutes, with the only nuisance being that the last few percentage points took longer, as shown in the graphs below.

fullpercent1h20m

As you can see, the CPU remained rather active throughout the live tasks after the 30 minute mark. Below you can also see the rate of change, and it’s clear that phone begins toning down its charging speed once it crosses 80%, as is expected of pretty much every other phone.

fullpercent1h20mdelta

While that’s already a pretty good demonstration of the capabilities of Dash Charging, we also ran two more tests, one heavier and one lighter. In the heavy one, we played Asphalt 8 at maximum brightness for 20 minutes, taking the battery from 14% to 51% (37% change). In the light-weight test, we casually web-browsed for 30 minutes at minimum brightness, taking the battery from 1% to 60%. That’s extremely close the idle charging rate touted by OnePlus, but keep in mind that this was low-intensity and at minimum brightness, and as seen in the rate of change graphs above, charging begins slowing down close before that point.

30mintest60percent

From these samples, we estimate that the fastest charging rate is found when the battery is roughly between 8% and 50%, with 80% being the point where charging speed starts dropping significantly. We also ran the app cycling test at maximum brightness on the Nexus 6P, with very pitiful results (1% to 17%). It’s also worth noting that the Nexus 6P reached 37° C | 98.6° F, higher than the temperature it accumulates after 10 consecutive GeekBench benchmarks.

nexus 6p


I hope this illustrated just why Dash Charging is different and useful. Being able to charge the device at near full speed while using the phone is something that I personally appreciate, given I work on the move and use my phone for both work and college, often as my personal hotspot while commuting or moving around campus. It’s a liberating feeling that not everyone will incorporate to their use-case to the same degree, but I believe everyone can appreciate it nonetheless. That being said, this does not necessarily outweigh the consequences of the Dash Charging standard for everyone: if you intend to rapidly charge your OnePlus 3 at all, you need the proprietary technology in your charger — meaning you are stuck with OnePlus (and perhaps Oppo’s) charger and cable (it’s very thick for a reason).

It’s frustrating having so many charging standards at the same time that we are transitioning from microUSB to USB Type C, but at the very least we get to see them become more useful in their own special snowflake way. Having Dash Charging is bitter sweet in this regard: being limited to the OEM’s charger nullifies your past investments into quick charging battery banks or charging accessories (which I have plenty of). At the same time, Dash Charging is one of the most convenient charging technologies out there for those needing to top quick or charge with their usage uninterrupted. Weighing those pros and cons is up to you, but we hope you came out of this article with a cleaner perspective to achieve that decision.

We are still working towards our full review where we will incorporate our findings on RAM, performance, charging, the upcoming fixes and more! Stay tuned to XDA for more in-depth coverage!

Check Out XDA’s OnePlus 3 Forums!

5 Free, Unique, and Modern Icon Packs

If you like customizing your Android device as much as we do then you’ve come to the right place. Today we are going to take a look at five free icon packs that we love and feel like they’re worth adding to your collection.

Desaturate – Free Icon Pack

Download

1

The Desaturate icon pack comes with 1500 icons along with over 150 wallpapers to choose from. They’re going for a much darker look with their color scheme that matches up perfectly with their wallpapers. The main objective is to only show color where it’s needed and desaturate it where it isn’t. This is definitely a one of a kind icon pack.

KAIP – Icons

Download

5

If you are a fan of big bright colorful icons then you’re going to want to check out the KAIP icon pack. This icon pack will brighten up your home screen with over 750 icons and 28 wallpapers. The high quality material design icons will appeal to many fans of the stock Android design. The free version of this pack is more than enough to get you a nice, fresh, colorful look on your home screen.

Fluxo – Icon Pack

Download

2

Fluxo is up next with 2200 icons, with more on the way, and 20 wallpapers. This icon pack has a very unique theme. The wallpapers that are provided work great with this icon pack. If you’re looking for something a little more fun and cartoonish then this might be the one for you.

PixBit – Icon Pack

Download

3

If you’re looking for something that will bring you back t the days of 8 and 16 bit games we all know and love, then this is the one to get. This pack has over 330 icons and 10 wallpapers. If you’re a fan of retro pixel art then this is the pack to get.

VIT – Icon Pack

Download

4

This grey scale theme has over 2000 icons and 30 wallpapers to match. If you happen to have icons that aren’t supported yet, then they will be masked to match the theme. This keeps everything nice and uniform throughout your home screen. These icons are designed for QHD displays so they’re sure to look great on any phone.

That’s about it! Let us know in the comments what your favorite icon pack is.

OnePlus 3 (Reviewer) OTA Brings sRGB Mode and RAM Adjustments

The OnePlus 3 is a good phone, and there are just a few roadblocks in its way from becoming a great one. The phone is amongst the few in the mainstream to sport a humongous 6GB of RAM, but the software side of things leaves a vast part of this 6GB underutilized.

OnePlus reasoned that this decision was in the interest of battery and the best user experience. What’s the point of having RAM if you can’t use it in the first place? OnePlus mentions that they built the camera and other modules to benefit from this increase, and since having so much RAM is a new thing for Android, their team is exploring and optimizing for further enhancements.

In addition to complaints on the underutilized RAM, critics have been vocal against the display on the OnePlus 3 as well. Anandtech’s review of the OnePlus 3 notes a poorly calibrated display which targeted the NTSC color gamut instead of sRGB. We hold back our opinions for our full review, but OnePlus made note of the criticism mentioning that the sRGB is a “niche requirement and not the right choice for the vast majority of smartphone users”. But, to go ahead and please this “niche” request as well, OnePlus promised that a sRGB mode will come in the future.

And it has, actually. The latest OTA update to the OnePlus 3 brings fixes on both these accounts: RAM Management and sRGB tuning. The OTA update for OxygenOS 3.1.4, coming in at 12MB packs in both of this along with audio improvements. A OnePlus Community Manager took to the OnePlus forums to share some pictures depicting the new sRGB mode in action:

homescreen

The differences are much more apparent in the next image, with the phone on the left depicting a less saturated sRGB mode and the phone on the right depicting the default color gamut:

windmill

There’s a small catch to this update: this update is rolling out only to the review units of the device. OnePlus will eventually roll it out to all OnePlus 3 devices, but the plan for right now is to incorporate feedback from reviewers on this change. Final consumers will have to wait till everything has been ironed out, but if you can’t, you can take matters into your own hands and fix one of the issues at least.

Does the update actually fix these aspects of the device? Stay tuned for more on this from our resident reviewer Mario.

New Android Malware, Godless, Targets Android 5.1 and Earlier

Trend Micro has spotted a new piece of Android malware that contains multiple root exploits to inject malicious code into your smartphone or tablet. The root exploits target Android 5.1 and earlier and is reportedly already infecting 850,000 devices. Trend Micro even claims there are apps in the Google Play Store that include this malware, and use “Summer Flashlight” as an example.

Huawei’s EmotionUI 5.0 is Rumored for Release this Fall

Huawei recently hired Abigail Brody to lead up their UI department and give the company’s OEM skin, EmotionUI, a new look. A new rumor claims this major update will be ready for release sometime in the fall season. These sources also say the new update will make EmotionUI resemble what some people are used to with stock Android.

Sony Decides to Stop Manufacturing Smartphones in Brazil

Due to the current financial crisis, and the lack of fiscal incentives, Sony has chosen to no longer manufacture smartphones in the country of Brazil. Companies used to get tax exemptions for these products, but this has ended. So Foxconn and Arima will no longer be producing smartphones for Sony in Brazil, and instead, will be assembled in China and Thailand.