Here are all the hidden changes in Android 11 we learned from source code
Shortly after releasing the first stable build of Android 11 for its range of Pixel devices, Google started uploading the Android 11 source code to AOSP. We’ve been digging around in the code to find hidden features that we may have missed in our previousВ coverage, and here’s what we found:
New volume stream for virtual assistants
Andriod 11 introduces a new stream type for virtual assistants: AUDIO_STREAM_ASSISTANT. The new stream isВ “intended to be used by a virtual assistant like Google Assistant, Bixby, etc. The audio stream has own volume alias and the volume does not change by volume changes of other streams.”В
Currently, virtual assistant apps typically send audio over the media volume stream, which is shared by other media apps. With the new stream, Android 11 should allow developers of virtual assistant apps to send audio over this new stream, letting users set the assistant volume independently of other media apps.
Clock Plugins in Android 11
In Android 10 we spotted work on lockscreen clock customization that provided 3 different options: default, text, bubble, and analog. This feature would have been available in the Pixel Themes app (“Styles & Wallpapers”) as a separate tab called “Clock,” however, it didn’t make it to the final Android 10 release.
While the feature is still not available in the Android 11 stable release, Google has re-enabled the custom clock feature. But since Google removed the text clock in Android 10 and removed the analog and bubble clocks in Android 11, there are currently no other clock options available.
We suspect that Google has either enabled the feature for OEMs only or the company could be working on new custom clocks to launch alongside the updated Pixel Themes app on the Pixel 5 and Pixel 4a 5G.
Freezing Cached Apps
In Android 11 Beta 2, we spotted a new in-development feature titled “suspend execution for cached apps.” At the time, we learned that the feature would reside in Developer Options but we didn’t have enough information on how it worked or how to enable it.
From the source code, though, we can see that the feature is intended toВ “freeze apps when cached and unfreeze them once removed from the cache or killed. Frozen apps won’t use any CPU cycles, reducing power consumption for misbehaving processes which might attempt to run while cached.”
XDA Recognized DeveloperВ luca020400 says that this feature needs updated cgroups (a Linux kernel feature), so it doesn’t work on current devices. It could be a feature aimed at OEMs or it may be implemented on the Pixel 5.
Blur for notification shade
In Android 11 Developer Preview 3, we managed to enable a hidden toggle to enable window blurs. However, the toggle didn’t work at the time. XDA Recognized Developer luca020400 has now managed to get it working.
He flashed the Android 11 GSI on his ASUS ZenFone 6 and enabled the feature by changing a system property. The feature enables a Kawase blur effect, which is an approximation of Gaussian blur, behind the notification panel when it’s pulled down.
Deep Press support for expanding notifications in Android 11
In the second Pixel Feature Drop, Google added “improved long press options” that let you firmly press on the screen in the Pixel Launcher, Google Photos, and Google Drive to show the context menu. It’s an alternative way to access the context menu which is designed for people who may not be aware that they can access it by long-pressing the screen.
The feature makes use of the Deep Press API that uses an ML model to infer when a user is pressing more forcefully on the screen. In Android 11, you can now do a deep press on notifications in the notification panel to expand them.
What is Gabeldorsche?
Android 11’s Developer Options has a toggle called “Enable Gabeldorsche” with the description “enables the Bluetooth Gabeldorsche feature stack.” Google has finally published documentation of Gabeldorsche, and it appears to be a complete rewrite of Android’s Bluetooth stack. Hopefully, the rewrite will result in lower latency and more stability. If you’re interested in learning more, you can view the Gabeldorsche Bluetooth stack architecture and style guide now. Just note that the GD Bluetooth stack is not yet ready for prime time and is likely intended for launch in Android 12 or later.
What is enhanced connectivity?
Android 11 Developer Preview 2 added another mysterious Developer Option called “enhanced connectivity” without any description of what it does. Thanks to the source code, we’ve now learned that the feature will “allow the connectivity thermal power manager to actively shutoff 5G in order to save power when cellular throughput is below the set threshold.”
Multi Audio focus
Back in May, we covered a root app called App Volume Control that lets you control the individual volume levels of Android apps. This is needed because Android doesn’t have a native volume mixer like Windows, so you can’t mix the volume levels for multiple apps playing audio simultaneously. Android has the concept of “audio focus,” and only one app can have focus at a time.
The app that has audio focus decides what happens to other apps playing audio — either ducking (lowering the volume) or pausing it. This means that users can’t control whether or not their favorite music app always plays in whatever app they have open, if that app takes audio focus away and chooses to pause playback. In Android 11, it looks like Google is working on a multi-audio focus feature, which will allow apps to simultaneously play audio without pausing or ducking one another.
Faster share sheet
Adding on to the enhancements made in Android 10, Google has made some improvements to the share sheet in Android 11. For example, the loading of icons is now cached, which means that they appear faster. Scroll jankiness has also been reduced by caching the itemViewType in the ViewHolder, caching the result of shouldDisplayLandscape to reduce the number of IPC calls while scrolling, and caching the work profile user handle.
Better memory management
Google has introduced a new OOM Adjuster design (OOM = out-of-memory, i.e., what should the system do when the amount of free memory is close to depleted). There are 3 factors for OOM Adjuster tweaks: Process State (determine if a process is in the foreground versus background), OOM Adj score (used by the low memory killer daemon, or lmkd, to determine which process should be killed when low on memory), and the Scheduler Group (which tweaks the CPU process group and thread priorities).
The system server adjusts these 3 factors for 4 types of different Android processes: Activity, Service, Content Provider, and Broadcast Receiver. OOM Adjuster is designed to avoid killing a process if “it would result [in a] user-perceptible interruption of service.”
Android 11 Go Edition improvements
Low RAM devices (read: Android Go Edition) can now support multiple users, managed profiles, and notification listeners. For multiple users and managed profiles, Google has only removed runtime restrictions that prevented these from working on low RAM devices, so OEMs will still need to make some configuration changes to get them working. Notification listeners (apps that have been granted permission to intercept notifications, like Pushbullet) should just work without input from OEMs, though.
WCG wallpaper support
10-bit (wide color) images can now be set as wallpapers in Android 11. Previously, applying such wallpapers would always get them converted to sRGB. A bug in the conversion process is what interestingly caused the infamous cursed wallpaper crashes earlier this year.
Volume key customization
It seems like Google is working on an API for detecting single press, double tap, or triple taps of the volume keys. We’ve discovered two commits titled “support customization of volume keys” and “support customization of single/double/triple clicks,” which point towards this undocumented change in Android 11. To enable the feature, long/single/double/triple key presses will be differentiated by the length of time and patterns of KeyEvents.
Apps using an Accessibility Service, such as flar2’s ButtonMapper app, can already intercept the KeyEvent for volume button presses and use their own logic to determine what kind of press was done by the user. It looks like Google is now writing native support for such customizations, but we’re not sure if it will be used to power a feature on Pixel devices or it’s only being written with OEMs in mind. There’s no evidence to suggest that the feature will be used to change music tracks and it could just be used for safety-related features, like, for example, detecting when a triple tap of the volume down key is done to send an SOS. Interestingly, Android already has a hidden API for detecting long-presses of the volume keys.
Automatic unlocking of work profile by Digital Wellbeing
In Digital Wellbeing 1.0.327635162, we spotted strings for a new work scheduler feature that will automatically disable the work profile when the scheduled time is reached. In Android 11, Digital Wellbeing can now automatically unlock the work profile, paving the way for this feature to arrive.
If you wish to learn more about all the changes introduced in Android 11, check out our posts on the first Android 11 stable release and developer-focused changes. To install the latest update on your device, you can check out our Android 11 update trackers linked below.
Suspend execution for cached apps что это
Обсуждение Google Pixel 4 XL

Описание | Обсуждение » | Покупка » | Обсуждение камеры » | Прошивки »
Qualcomm® Snapdragon 855™
2.84 GHz + 1.78 GHz, 64-bit Octa-core
Adreno 640
Titan M Security Module⁵
Pixel Neural Core™
6 GB LPDDR4x
64 GB or 128 GB
Rear Camera
16 MP
1.0 μm pixel width
Autofocus with phase detection
Optical + electronic image stabilization
Spectral + flicker sensor
ƒ/2.4 aperture
52° field of view
12.2 MP
1.4 μm pixel width
Autofocus with dual pixel phase detection
Optical + electronic image stabilization
ƒ/1.7 aperture
77° field of view
Front Camera
8 MP
1.22 μm pixel width
ƒ/2.0 aperture
Fixed focus
90° field of view
NIR flood emitter
NIR dot projector
2 NIR cameras
Video
Rear Camera:
1080p @ 30 FPS, 60 FPS, 120 FPS
720p @ 240 FPS
4K @ 30 FPS
Front Camera:
1080p @ 30 FPS
Sensors
Active Edge™
Proximity / Ambient light sensor
Accelerometer / Gyrometer
Magnetometer
Barometer
Android Sensor Hub
Sharp and textured haptics
Microphones
Motion Sense⁶
Charging
USB-C™ 18 W adapter with USB-PD 2.0
18 W fast charging³
External Buttons and Ports
USB Type-C™ 3.1 Gen 1
Power button
Volume controls
SIMs
Single Nano SIM
eSIM
Media & Audio
Stereo speakers
3 microphones
Noise suppression
Wireless and Location
Wi-Fi 2.4 GHz + 5 GHz 802.11 a/b/g/n/ac 2×2 MIMO
Bluetooth 5.0 + LE (HD codecs: AptX, AptX HD, LDAC)
NFC
Google Cast
GPS,⁸ GLONASS, Galileo⁸
Pixel 4
Up to 5xCA, LAA, DL 4×4 MIMO, CAT 18 up to 1.2 Gbps download, CAT 13 150 Mbps upload
Models G020I
GSM/EDGE: Quad-band (850, 900, 1800, 1900 MHz)
UMTS/HSPA+/HSDPA: Bands 1/2/4/5/8
CDMA EVDO Rev A: BC0/BC1/BC10
LTE: Bands 1/2/3/4/5/7/ 8/12/13/14/17/18/19/20/25/ 26/28/29/30/38/39/40/41/46/48/ 66/71
eSIM⁷
Pixel 4 XL
Up to 5xCA, LAA, DL 4×4 MIMO, CAT 18 up to 1.2 Gbps download, CAT 13 150 Mbps upload
Models G020J
GSM/EDGE: Quad-band (850, 900, 1800, 1900 MHz)
UMTS/HSPA+/HSDPA: Bands 1/2/4/5/8
CDMA EVDO Rev A: BC0/BC1/BC10
LTE: Bands 1/2/3/4/5/7/ 8/12/13/14/17/18/19/20/25/ 26/28/29/30/38/39/40/41/46/48/ 66/71
eSIM⁷
Materials
Aluminum frame + matte finish hybrid coating
Corning® Gorilla® Glass 5 on the front Soft touch or polished glass (Corning® Gorilla® Glass 5) on the back
IP68 dust and water protection
AR/VR
ARCore
Комплект поставки
18 W USB-C™ power adapter
1 m USB-C to USB-C cable (USB 2.0)
Quick Start Guide
Quick Switch Adapter
SIM tool
Pixel 4
Fullscreen 5.7″ (144.7 mm) display
FHD+ flexible OLED at 444 ppi
19:9
Ambient EQ
Smooth Display¹ (up to 90 Hz)
Corning® Gorilla® Glass 5
Always-on display
Now Playing
100,000:1 super contrast ratio
Full 24-bit depth or 16.77 million colors
True black level
HDR Support (UHDA certification)
Pixel 4 XL
Fullscreen 6.3″ (160.0 mm) display
QHD+ flexible OLED at 537 ppi
19:9
Ambient EQ
Smooth Display¹ (up to 90 Hz)
Corning® Gorilla® Glass 5
Always-on display
Now Playing
100,000:1 super contrast ratio
Full 24-bit depth or 16.77 million colors
True black level
HDR Support (UHDA certification)
Pixel 4
2800 mAh
18 W/2 A USB Type-C™ charger
18 W fast charging³
Qi-certified wireless charging
Pixel 4 XL
3700 mAh
18 W/2 A USB Type-C™ charger
18 W fast charging³
Qi-certified wireless charging
Настройка ядра Linux для повышения производительности памяти
Контекст
Linux старается оптимизировать использование памяти, занимая свободное место кэшем. Если память никак не используется, то это память, потраченная впустую.
Кэш заполняется данными по мере работы системы и когда приложениям требуется память, ядро ищет среди страниц кэша блок подходящего размера, освобождает его и выделяет приложению.
В некоторых случаях этот процесс может влиять на производительность, поскольку освобождение кэша занимает больше времени, чем просто доступ к неиспользуемой оперативной памяти. Поэтому иногда можно наблюдать снижение производительности.
Причина этого исключительно в том, что оперативная память используется на полную мощность, и других симптомов, кроме случайного эпизодического увеличения задержек, может и не быть. Такая же картина может наблюдаться, если жесткий диск не справляется с чтением и записью. Влияние может быть и на такие компоненты операционной системы как сетевая карта / iptables / ebtables / iproute2 — вместо реальной причины вы видите проблемы в сетевой задержке. В этой статье обсудим это подробнее и посмотрим, как минимизировать воздействие на систему.
Объяснение
В Linux есть несколько видов кэшей:
dirty cache — блоки данных, которые еще не записаны на диск (в файловых системах, поддерживающих кэширование, например, ext4). Этот кэш можно очистить командой sync. Очистка этого кэша может привести к снижению производительности. При обычном режиме работы не стоит этого делать, если только вам не нужно сбросить данные на жесткий диск, например, при аварии.
clean cache — блоки данных, которые для ускорения доступа находятся и на жестком диске и в памяти. Очистка clean cache может привести к снижению производительности, поскольку все данные будут считываться с диска.
inode cache — кэш информации о местоположении inode. Его можно очистить аналогично clean cache, но также с последующим снижением производительности.
slab cache — хранит объекты, выделенные приложениям с помощью malloc, таким образом, что в будущем они могут быть повторно выделены с уже заполненными данными объекта, что ускоряет выделение памяти.
С dirty cache мало что можно сделать, но другие типы кэшей можно очистить. Их очистка может привести к двум результатам. В приложениях, потребляющих много памяти, таких как Aerospike, задержки уменьшатся. Но с другой стороны, замедлится скорость ввода-вывода, так как все данные придется считывать с диска.
Очистка slab cache может привести к временному кратковременному снижению скорости. По этой причине очищать кэш не рекомендуется. Вместо этого, лучше сообщить системе, что определенный объем памяти всегда должен быть свободен и его нельзя занимать кэшем.
При необходимости очистку кэша можно выполнить следующим образом:
Большую часть памяти занимает page cache, поэтому если очищаете кэш, то рекомендуется очищать его (echo 1).
Для исправления проблемы можно установить минимальное количество свободной памяти. Рассмотрим следующий пример:
Настройка выполняется следующим образом:
Чтобы на компьютере со 100 ГБ оставить 3% памяти незанятыми, выполните следующую команду:
При установке этого параметра следует проявлять осторожность: слишком маленькое или слишком большое значение может отрицательно сказаться на производительности системы. Слишком низкое значение min_free_kbytes не позволит системе освободить память. Что может привести к зависанию системы или уничтожению процессов через OOM.
Слишком большое значение (5-10% от общей памяти) приведет к тому, что в системе быстро закончится память. Linux для кэширования данных файловой системы использует всю доступную оперативную память. Установка высокого значения min_free_kbytes может привести к тому, что система будет тратить слишком много времени на восстановление памяти.
RedHat рекомендует поддерживать min_free_kbytes на уровне 1-3% от объема памяти в системе. При этом Aerospike рекомендует оставлять не менее 1,1 ГБ, даже если это выше официально рекомендуемого значения.
Также рекомендуется либо уменьшать параметр swappiness до нуля, либо не использовать своп. В любом случае для операций с низкой задержкой использование свопа резко снизит производительность.
Примечания
Добавьте следующие строки:
Как всегда, будьте внимательны при редактировании подобных параметров. Проверьте их на тестовых серверах перед внесением изменений в продакшн-окружение.
Для проверки, что zone_reclaim отключен используйте следующую команду:
Если вам интересно узнать о курсе подробнее, приглашаем на день открытых дверей онлайн, где преподаватель расскажет о формате обучения и программе.
Android 11 Can Now Suspend Cached Apps in the Background
As part of its efforts to help users get the best battery life possible on Android phones, Google has added a new feature to Android 11 that suspends cached apps. The feature exists behind a toggle in Developer options and is reportedly enabled by default on phones running Android 11.
As spotted by Reddit user u/JayYouTea, the feature automatically suspends apps that are in the background. This seems similar to the good old Greenify app that hibernates background apps. While suspended apps could help reduce CPU usage, it will take a hit on the overall multitasking experience.
“Freeze apps when cached and unfreeze them once removed from the cache or killed. Frozen apps will not use any CPU cycles, reducing power consumption for misbehaving processes which might attempt to run while cached,” reads the description of the feature on a commit in Android 11’s source code.
According to the post, the toggle was apparently enabled by default. The Reddit user noticed that apps in the background kept stopping, which in turn made it impossible to seamlessly switch between apps. In fact, the Redditor guides how users can disable this option. The user claims to have noticed better multitasking after disabling it.
If you’re already running Android 11, you can check if the option ‘Suspend execution for cached apps’ is present under Developer options. The toggle seems to be present only on Pixel phones at the moment. Let us know if you’re noticing any difference in performance or battery life after disabling the option in the comments.
8 приложений для Android, которые нужно удалить. Они опасны
Кто бы что ни говорил, но Google Play – это помойка. Не даром её признали самым популярным источником вредоносного софта для Android. Просто пользователи в большинстве своём доверяют официальном магазину приложений Google и скачивают оттуда любое ПО без разбору. А какой ещё у них есть выбор? Ведь их всегда учили, что скачивать APK из интернета куда опаснее. В общем, это действительно так. Но остерегаться опасных приложений в Google Play нужно всегда. По крайней мере, постфактум.
Есть как минимум 8 приложений, которые нужно удалить
Google добавила в Google Play функцию разгона загрузки приложений
Исследователи кибербезопасности из антивирусной компании McAfee обнаружили в Google Play 8 вредоносных приложений с многомиллионными загрузками. Попадая на устройства своих жертв, они скачивают получают доступ к сообщениям, а потом совершают от их имени покупки в интернете, подтверждая транзакции кодами верификации, которые приходят в виде SMS.
Вредоносные приложения для Android
Нашли вирус? Удалите его
В основном это приложения, которые потенциально высоко востребованы пользователями. Среди них есть скины для клавиатуры, фоторедакторы, приложения для создания рингтонов и др.:
Это названия пакетов приложений, то есть что-то вроде их идентификаторов. Поскольку всё это вредоносные приложения, их создатели знают, что их будут искать и бороться с ними. Поэтому они вполне могут быть готовы к тому, чтобы менять пользовательские названия приложений, которые видим мы с вами. Но это мы не можем этого отследить. Поэтому куда надёжнее с этой точки зрения отслеживать именно идентификаторы и удалять вредоносный софт по ним.
Как найти вирус на Android
Но ведь, скажете вы, на смартфоны софт устанавливается с пользовательскими названиями. Да, это так. Поэтому вам понадобится небольшая утилита, которая позволит вам эффективно выявить весь шлаковый софт, который вы себе установили, определив название их пакетов.
В красном квадрате приведен пример названия пакета
Package Name Viewer удобен тем, что позволяет не просто найти нужное приложение по названию его пакета, но и при необходимости перейти в настройки для его удаления. Для этого достаточно просто нажать на иконку приложения, как вы попадёте в соответствующий раздел системы, где сможете остановить, отключить, удалить накопленные данные, отозвать привилегии или просто стереть нежелательную программу.
Как отменить подписку на Андроиде
Лучше всего приложение именно удалить. Это наиболее действенный способ защитить себя от его активности. Однако не исключено, что оно могло подписать вас на платные абонементы, поэтому для начала проверьте свою карту на предмет неизвестных списаний, а потом просмотрите список действующих подписок в Google Play:
Если подписка оформлена через Google Play, отменить её ничего не стоит
В принципе, если подписка была оформлена через Google Play и оплата уже прошла, вы можете потребовать у Google вернуть уплаченные деньги. О том, как это делается, мы описывали в отдельной статье. Но поскольку разработчики таких приложений обычно тщательно продумывают способы воровства денег, как правило, они не используют встроенный в Google Play инструмент проведения платежей, чтобы их в случае чего не могли отозвать.




