Showing posts with label getting. Show all posts
Showing posts with label getting. Show all posts

Saturday, September 23, 2017

Nexus 6 is finally getting Android 7 1 1

Nexus 6 is finally getting Android 7 1 1



After much delay Google rolled out Android 7.1.1 Nougat to Nexus 6 earlier this year.  However, the Pixel maker halted the update due to bug issues, and rolled out a fresh update that downgraded, the Nexus 6s software to Android 7.0.

Now Google is finally pushing Android 7.1.1 build to Nexus 6. The update weighs around 370MB and includes the latest security patches, and should fix all the bugs reported by users.

In order to get stable Android 7.1.1, your Nexus 6 must be on Android 7.0 build, and if you happen to be on the previous version of Android 7.1.1 (pulled by Google),  you need to flash back to the main update track.

To recap, Android 7.1.1 Nougat will bring new emojis, circular icons, GIF Keyboard support and app shortcuts to Nexus 6.

Its worth mentioning that Android 7.1.1 will be the last major software update Nexus 6 will receive, and theres no Android O, since the phone is reaching its end of life status. However, it will continue to receive security updates. 

Source | Via

download file now

Read more »

Thursday, September 21, 2017

Getting Santa Tracker Into Shape

Getting Santa Tracker Into Shape


















Posted by Sam Stern, Developer Programs Engineer





Santa Tracker is a holiday tradition at Google.  In addition to bringing seasonal joy to millions of users around the world, its a yearly testing ground for the latest APIs and techniques in app development.  Thats why the full source of the app is released on Github every year.






In 2016, the Santa team challenged itself to introduce new content to the app while also making it smaller and more efficient than ever before.  In this post, you can read about the road to a more slimmer, faster Santa Tracker.


APK Bloat



Santa Tracker has grown over the years to include the visual and audio assets for over a dozen games and interactive scenes.  In 2015, the Santa Tracker APK size was 66.1 MB.






The Android Studio APK analyzer is a great tool to investigate what made the 2015 app so large.





Screenshot from 2017-02-01 11:59:09.png







First, while the APK size is 66.1 MB, we see that the download size is 59.5MB! The majority of that size is in the resources folder, but assets and native libraries contribute a sizable piece.






The 2016 app contains everything that was in the 2015 app while adding four completely new games.  At first, we assumed that making the app smaller while adding all of that would be impossible, but (spoiler alert!) here are the final results for 2016:





Screenshot from 2017-02-01 12:06:23.png







The download size for the app is now nearly 10MB smaller despite the addition of four new games and a visual refresh. The rest of this section will explore how we got there.


Multiple APK Support on Google Play with APK Splits



The 2015 app added the "Snowdown" game by Googles Fun Propulsion Labs team.  This game is written in C++, so its included in Santa Tracker as a native library.  The team gave us compiled libraries for armv5, armv7, and x86 architectures.  Each version was about 3.5MB, which adds up to the 10.5MB you see in the lib entry for the 2015 APK.






Since each device is only using one of these architectures, two thirds of the native libraries could be removed to save space - the tradeoff here is that we�ll publish multiple APKs.  The Android gradle build system has native support for building an APK for each architecture (ABI) with only a few lines of configuration in the apps build.gradle file:







ext.abiList = [armeabi, armeabi-v7a, x86]


android {


   


   // ...


   splits {


       abi {


           // Enable ABI splits


           enable true


           // Include the three architectures that we support for snowdown


           reset()


           include(*abiList)


           // Also build a "universal" APK that will run on any device


           universalApk true


       }


   }


}








Once splits are enabled, each split needs to be given a unique version code so that they can co-exist in the Play Store:






// Generate unique versionCodes for each APK variant: ZXYYSSSSS


//   Z is the Major version number


//   X is the Minor version number


//   YY is the Patch version number


//   SSSS is information about the split (default to 0000)


// Any new variations get added to the front


import com.android.build.OutputFile;


android.applicationVariants.download file now

Read more »