Is android made by linux

Содержание
  1. А вы знали, что в основе ОС 85% смартфонов лежит Linux?
  2. Android-смартфоны работают на Linux
  3. Исследования рынка
  4. Многообещающие смартфоны на базе Linux
  5. Librem 5 – безопасность и конфиденциальность
  6. Pinephone – власть пользователям
  7. F(x)tec Pro¹ – обладатель полноценной QWERTY клавиатуры
  8. Ubuntu Touch для смартфонов и планшетов
  9. Plasma Mobile – от создателей KDE Plasma
  10. А какое ядро в вашем Android?
  11. Заключение
  12. Сноски
  13. Is Android Linux?
  14. Short Answer: Yeah– but not exactly.
  15. But What Exactly are the Differences?
  16. The Origins of Android OS
  17. How Linux Came To Be?
  18. Conclusion:
  19. About the author
  20. Younis Said
  21. Android
  22. Contents
  23. Transferring files
  24. App development
  25. Android Studio
  26. SDK packages
  27. Android Emulator
  28. Other SDK packages in the AUR
  29. Making /opt/android-sdk group-writeable
  30. Other IDEs
  31. Netbeans
  32. Vim / Neovim
  33. Emacs
  34. Other Tools
  35. Marvin
  36. Building
  37. Required packages
  38. Java Development Kit
  39. Setting up the build environment
  40. Downloading the source code
  41. Building the code
  42. Testing the build
  43. Creating a flashable Image
  44. Flashing
  45. Fastboot
  46. Samsung devices
  47. samloader
  48. Heimdall
  49. Odin (Virtualbox)
  50. Use Android on GNU/Linux
  51. Troubleshooting
  52. Android Studio: Android Virtual Devices show ‘failed to load’.
  53. Android Studio: ‘failed to create the SD card’
  54. Eclipse: During Debugging «Source not found»
  55. ValueError: unsupported pickle protocol
  56. libGL error: failed to load driver: swrast OR AVD does not load and no error message displayed
  57. sh: glxinfo: command not found
  58. Android Emulator: no keyboard input in xfwm4
  59. Android Emulator: Window is shaking and blinking when used in WM tiled mode
  60. Android Emulator: Segmentation fault (core dumped)
  61. adb: sideload connection failed: insufficient permissions for device

А вы знали, что в основе ОС 85% смартфонов лежит Linux?

По факту на рынке смартфонов доминирующее положение занимают именно устройства на базе Linux. Некоторые от такого заявления призадумаются, другие же преисполнятся гордостью за Linux в стиле The Sound of Music – The Hills are Alive. Далее я приведу интересные факты, подтверждающие, что в основе 85% смартфонов действительно лежит ядро Linux, а также представлю ряд многообещающих новинок этого рынка.

Нередко в ходе общения с профессионалами вне рабочего пространства меня спрашивают: «Чем ты занимаешься?». Когда я отвечаю, что работаю системным аналитиком Linux, многие реагируют так: «А мне не особо нравится Linux, потому что в нем нельзя открывать или редактировать документы Word»* или «Ты имеешь ввиду ОС для настольных ПК, в которой все в виде текста, и отсутствует графический интерфейс?»** и даже так «Linux? Это что?». В ответ я обычно строю ехидную гримасу с вопросом…«А вы в курсе, что сами прямо сейчас используете смартфон, работающий на Linux?».

Да, на самом деле, как многие из вас знают, в основе дистрибутивов Android и Chrome OS изначально лежит ядро Linux.

Android-смартфоны работают на Linux

Как заявляют сами разработчики Google: «Android построен на открытом Linux Kernel» (ссылка содержит видео). Начиная с Android 11, эта ОС базируется на LTS-ядре (ядро с долгосрочной поддержкой) Linux, а именно его версиях 4.19 и 5.4.

Говоря конкретнее: «С 2019 года при каждом размещении Линусом Торвальдсом очередного релиза или пре-релиза главная ветка Linux сливается с главной веткой Android. До 2019 года ядра Android собирались путем клонирования свежего LTS-ядра и добавления в него Android-патчей. Новая модель взаимодействия позволяет избежать существенных усилий по переадресации портов и тестированию патчей Android, реализуя все это пошагово». — source.android.com

Есть очень информативное видео (правда в 240p), раскрывающее строение архитектуры Android, в котором инженер Google объясняет, что при использовании в основе Android архитектура ядра Linux дорабатывается. Есть и более свежее видео в лучшем качестве, которое отвечает на вопрос: «Действительно ли Android – это, по сути, Linux?». Глава подразделения открытых проектов Google, Крис ДиБона, описывает Android так: «Десктопная мечта Linux, ставшая реальностью».

Убедившись, что Android-смартфоны действительно работают на базе Linux, можно вкратце ознакомиться с данными некоторых исследований, а также узнать о новых перспективных моделях устройств и некотором сопутствующем ПО.

Исследования рынка

В ноябре 2020 года компания IDC опубликовала исследование, которое показало, что системы Android занимают лидирующее положение на рынке смартфонов. Согласно собранным данным, в течение последнего квартала было продано около 261.1 миллионов устройств, 85% из которых на базе Android.

По информации Gartner и Statista эта платформа на данный момент занимает 86% мирового рынка. Взгляните на график ниже, демонстрирующий двух основных игроков индустрии – Android и Apple iOS.

Многообещающие смартфоны на базе Linux

Если вас интересуют смартфоны на ядре Linux, то советую присмотреться к описываемым далее моделям, а также сопутствующему ПО.

Librem 5 – безопасность и конфиденциальность

Purism, известная по разработке ноутбуков с Linux, фокусирующихся на конфиденциальности и бесплатном ПО, успешно провела краудфандинговую кампанию для создания нового смартфона Librem 5. При этом разработчикам удалось собрать на 1 миллион долларов больше, чем планировалось.

Смартфон Librem 5 основан на Debian Linux и по умолчанию оснащен механическими выключателями оборудования, гарантирующими безопасность и конфиденциальность использования. В качестве операционной системы используется GNU/Linux с поддержкой бесплатного ПО. — puri.sm

Pinephone – власть пользователям

PinePhone – это смартфон от компании Pine64, разработавшей Pinebook Pro. Основной замысел состоит в предоставлении пользователю полного контроля над устройством. Обеспечивается это за счет использования мобильных ОС на базе стандартной Linux и оснащения корпуса 6 выключателями элементов оборудования, доступными под задней крышкой. В добавок к этому, конструкция собирается на винтах, что упрощает последующий ремонт и апгрейд. — pine64.org

F(x)tec Pro¹ – обладатель полноценной QWERTY клавиатуры

Pro1 – это сенсорный смартфон с выдвижной горизонтальной клавиатурой. Он разработан и производится компанией F(x)tec, базирующейся в Лондоне. Это устройство представляет собой более совершенную альтернативу клавиатуре Moto Mod Livermorium. На данный момент сообщество Pro1 уже помогло в разработке ОС на базе Linux, и вскоре также планируется поддержка Sailfish. – fxtec.com

Ubuntu Touch для смартфонов и планшетов

Ubuntu Touch (ранее Ubuntu Phone) – это мобильная версия ОС Ubuntu, изначально разработанная компанией Canonical Ltd. Сейчас ее разработкой занимается сообщество UBports. Спроектирована она главным образом для сенсорных мобильных устройств, а именно смартфонов и планшетов. Эта платформа полностью независима и поддерживается исключительно сообществом.

Вот список устройств, находящихся на разной стадии поддержки этой ОС, в который также входит Fairphone 3. Более зрелые устройства позволяют удобную установку системы с помощью UBports. Для тех же, что находятся на ранней стадии поддержки, обычно установка делается вручную. – ubuntu-touch.io

Plasma Mobile – от создателей KDE Plasma

Plasma Mobile – это вариант Plasma для смартфонов. На данный момент она доступна для Nexus 5 и Nexus 5x, а также PinePhone и устройств, поддерживаемых postmarketOS. Работает Plasma Mobile на протоколе Wayland и при этом совместима с приложениями Ubuntu Touch. 1 декабря 2020 года KDE совместно с Pine64 анонсировали возможность предзаказа PinePhone – KDE Community Edition. – plasma-mobile.org

Читайте также:  Accessing the internet on windows 10

А какое ядро в вашем Android?

Для получения расширенного доступа к Linux потребуются рут-права, но ради чисто спортивного интереса предлагаю просто заглянуть в стандартную систему Android, чтобы узнать, какая у вас установлена версия Linux Kernel. В большинстве Android-смартфонов ее можно посмотреть в разделе Настройки –> Об устройстве (иногда нужно нажать на версию Android).

Если же рут-права у вас есть, то обычно можно установить “Termux”, после чего запустить его и ввести uname -a

В ответ команда вернет примерно такой вывод (на устройстве OnePlus):

Конечно же, рутованное устройство с доступом к терминалу обеспечивает много крутых возможностей. Например, с помощью top или htop можно отслеживать состояние приложений, а через командную строку устанавливать пакеты, удалять приложения, запускать службы и т.д.

Заключение

Армия андроидов продолжает захватывать рынок смартфонов. Главная причина в том, что в их основе лежит открытое ПО, дающее опытным пользователям и инженерам свободу для исследования, разработки и совершения новых технических прорывов.

Надеюсь, что перечисленным в статье смартфонам удастся занять на рынке весомую долю. К другим приметным карманным устройствам на Linux можно отнести NecunOS NE_1, Fenniy, Cosmo Communicator и Volla Phone.

Напоследок добавлю, что буду рад, если с Linux познакомится как можно больше пользователей, которые оценят его преимущества и пополнят уникальное сообщество.
Даешь свободу и власть пользователям!

Сноски

* По факту Linux поддерживает просмотр и редактирование файлов Word, таблиц Excel и прочих, причем не только на настольных ПК, но также на планшетах и смартфонах.
** Для Linux есть гораздо больше вариантов графического интерфейса, чем для любой другой операционной системы. К примеру, Gnome, KDE, Xfce и многие-многие другие.

Источник

Is Android Linux?

Short Answer: Yeah– but not exactly.

Android as a framework is definitely created as an extension of the Linux kernel– let’s get that right out of the way first. The developers of Android didn’t have to write the code from scratch; they had the necessary work laid out for them in the form of Linux or as a “pre-built.” But this doesn’t qualify Android to be called “Linux”.

See, the word Linux has some really blurry definitions. It could be used to refer to the Linux Kernel or the GNU software. It also refers to the multitude of Linux distributions.

On top of that, Android doesn’t fully utilize the Linux Kernel, only a few parts that it finds relevant, so it’s not “Linux” in the sense that it’s a Linux distro.

Not to mention the contrast between the devices they’re designed for. Android is used as an interface in hand-held devices with touch-screen pads, while Linux distributions suit desktop computers and servers.

You can make the connection between the two by looking at the loading screens in android devices; it’s actually the Linux kernel that boots up. However, it’s easy to see that the similarities only go so far. On closer inspection, you’ll find that the Glibc library, along with other libraries, typically found on a Linux device is missing.

But What Exactly are the Differences?

To make a concrete argument against classifying Android OS as “Linux”, let’s take a closer look at some of the primary features of the two.

To start off, Android does not use the standard Linux kernel, and it’s also missing some of the fundamental Linux libraries, which it discards in favor of libraries special to Android. Keeping this in perspective, we can discredit the argument that Android is akin to Linux distribution since a typical distro doesn’t alter the Linux kernel to the extent that Android has done.

One of the defining features of Linux Distributions is customizability; a feature that Android doesn’t nearly integrate to that extent. For example, the root access is only a couple of command lines away in Linux, while a special application is required to break into the Android kernel.

The Linux software is quite foreign to Android. The applications for one Linux distribution works across all other distributions and this isn’t the case with Android. In fact, the similarities between Android and Linux distros end with the kernel, the rest of the software bearing had no resemblance to each other.

Lastly, there’s the matter of licensing. Linux distros are open-source. It is a characteristic of all things Linux. While Android is technically open-source in the sense that its base software is made publically available, further developments have been made strictly private.

The Origins of Android OS

Google acquired Android OS from Android Inc. in 2005 and released it in 2008. Since then, it’s become the de facto operating system for handheld touch devices alongside IOS. Android presented itself as a perfect competitor to IOS. While IOS is restrictive and private in regards to customizability, Android, with its open-source nature that invited programmers and developers to bring their own interpretations and build their own applications.

Fun fact: Android was first marketed to digital camera companies as an advanced OS. This didn’t go anywhere, and the OS eventually found a market in the smartphone industry.

How Linux Came To Be?

Linux is a free and open-source Unix-like computer operating system based on Linux kernel, originally conceived for the Intelx86 computers, but quickly found it’s placed in other platforms. If Android is to be considered a Linux-based OS, then Linux would be the most popular general-purpose operating system in history so far.

The “strictly “Linux distributions are more popular among niche tech enthusiasts than among general-purpose users. It has also found a market in the modern-day among server hosts who frequently use Linux distributions such as Ubuntu and CentOS.

Conclusion:

The answer really lies in what exactly you’re referring to when you say “Linux”. If Linux in your definition has to include the GNU software, then Android doesn’t fit your definition. Likewise, Android isn’t a Linux distro in the sense that it doesn’t live up to the characteristics that we’ve come to expect from a typical Linux distribution. But if an application that is built on the Linux kernel fits the definition of “Linux” in your book, then it definitely is Linux.

About the author

Younis Said

I am a freelancing software project developer, a software engineering graduate and a content writer. I love working with Linux and open-source software.

Источник

Android

Contents

Transferring files

There are various ways to transfer files between a computer and an Android device:

  • USB cable
    • Media Transfer Protocol for modern Android devices
    • USB mass storage for older devices
    • Android Debug Bridge
  • special USB sticks / regular USB stick with adapter
  • Bluetooth
  • Arch Linux software with Android counterparts
    • client or server for protocols that can be used to transfer files (eg. SSH, FTP, Samba or HTTP)
    • KDE Connect ( kdeconnect ) – integrates your Android device with the KDE or Gnome desktop (featuring synced notifications & clipboard, multimedia control, and file/URL sharing).
    • cloud synchronization clients
    • Syncthing
    • sendanywhereAUR – cross-platform file sharing
    • qrcpAUR – transfer files over wifi from your computer to your mobile device by scanning a QR code
Читайте также:  Как исправлять ошибки реестра windows

App development

The officially supported way to build Android apps is to use #Android Studio.[1]

Android Studio

Android Studio is the official Android development environment based on IntelliJ IDEA. It provides integrated Android developer tools for development and debugging.

The Android Studio Setup Wizard installs the required #SDK packages and places the SDK by default in

To build apps from the command-line (using e.g. ./gradlew assembleDebug ) set the ANDROID_SDK_ROOT environment variable to your SDK location.

SDK packages

Android SDK packages can be installed directly from upstream using #Android Studio’s SDK Manager or the sdkmanager command line tool (part of the Android SDK Tools). Some Android SDK packages are also available as AUR packages, they generally install to /opt/android-sdk/ .

Android SDK Package SDK-style path AUR package AUR dummy CLI tools
Command-Line Tools tools android-sdk-cmdline-tools-latest AUR android-sdk-cmdline-tools-latest-dummy AUR apkanalyzer, avdmanager, lint, retrace, screenshot2, sdkmanager
SDK Build-Tools build-tools;version android-sdk-build-tools AUR android-sdk-build-tools-dummy AUR aapt, aapt2, aidl, apksigner, bcc_compat, d8, dexdump, dx, lld, llvm-rs-cc, mainDexClases, split-select, zipalign
SDK Platform-Tools platform-tools android-sdk-platform-tools AUR android-sdk-platform-tools-dummy AUR adb, dmtracedump, e2fsdroid, etc1tool, #fastboot, hprof-conv, make_f2fs, make_f2fs_casefold, mke2fs, sload_f2fs, sqlite3, systrace
SDK Platform platforms;android-level android-platform AUR , older versions android-platform-dummy AUR (unnecessary)

The android-tools package provides adb, #fastboot, e2fsdroid and mke2fs.android from the SDK Platform-Tools along with mkbootimg and ext2simg .

Android Emulator

The Android Emulator is available as the emulator SDK package, the android-emulator AUR package, and there is also a dummy package for it: android-emulator-dummy AUR .

To run the Android Emulator you need an Intel or ARM System Image. You can install them through the AUR[2], with the sdkmanager or using Android Studio’s AVD Manager.

Other SDK packages in the AUR

The Android Support Library is now available online from Google’s Maven repository. You can also install it offline through the extras;android;m2repository SDK package (also available as android-support-repository AUR ).

Making /opt/android-sdk group-writeable

The factual accuracy of this article or section is disputed.

The AUR packages install the SDK in /opt/android-sdk/ . This directory has root permissions, so keep in mind to run sdk manager as root. If you intend to use it as a regular user, create the android-sdk users group, add your user.

Set an access control list to let members of the newly created group write into the android-sdk folder. As running sdkmanager can also create new files, set the ACL as default ACL. the X in the default group entry means «allow execution if executable by the owner (or anyone else)»

Re-login or as log your terminal in to the newly created group:

Other IDEs

Android Studio is the official Android development environment based on IntelliJ IDEA. Alternatively, you can use Netbeans with the NBAndroid-V2. All are described below.

Netbeans

If you prefer using Netbeans as your IDE and want to develop Android applications, use NBAndroid-V2 .

Install android-sdk AUR package and follow the instructions from the NBANDROID README.

Vim / Neovim

It is possible to write flutter applications for Android and iOS using (Neo)vim like an IDE. Install coc using a Vim plugin manager. Also install the coc-flutter extension for autocompletion (like in Android Studio) and to load the code into an Android emulator.

Emacs

To develop a mobile flutter application using Emacs, as the the official instruction at flutter.dev suggests, install lsp-dart.

Other Tools

Marvin

Marvin is a tool which helps beginners set up an Android development environment. Installing marvin_dsc AUR helps you set up the following things: JDK, Android SDK, IDE(s), and AVD.

Building

Please note that these instructions are based on the official AOSP build instructions. Other Android-derived systems such as LineageOS will often require extra steps.

Required packages

As of 2020/April, to build either AOSP 10 or LineageOS 17.1 you need (possibly a subset of) base-devel , multilib-devel , gcc , repo , git , gnupg , gperf , sdl , wxgtk2 , squashfs-tools , curl , ncurses , zlib , schedtool , perl-switch , zip , unzip , libxslt , bc , rsync , ccache , lib32-zlib , lib32-ncurses , lib32-readline , ncurses5-compat-libs AUR , lib32-ncurses5-compat-libs AUR , and a TTF font installed (e.g. ttf-dejavu ). In particular, no Python2 or Java are required, as they are provided by AOSP/Lineage. The aosp-devel AUR metapackage provides them all for simple installation.

Additionally, LineageOS requires the following packages: xml2 AUR , lzop , pngcrush , imagemagick . They can be installed with the lineageos-devel AUR metapackage.

The factual accuracy of this article or section is disputed.

Java Development Kit

The required JDK version depends on the Android version you are building:

  • For Android 9 (Pie) and up, Java is included with the Android source and no separate installation is needed.
  • For Android 7 and 8 (Nougat and Oreo), OpenJDK 8 is required, which is available with the jdk8-openjdk package.
  • For Android 5 and 6 (Lollipop and Marshmallow), OpenJDK 7 is required, which is available with the jdk7-openjdk package.

Set JAVA_HOME to avoid this requirement and match the Arch Linux installation path. Example:

This change will be valid only for the current terminal session.

Setting up the build environment

Create a directory to build.

The Android build process expects python to be python2. Prepend it to the PATH :

Alternatively, create a python2 virtual environment and activate it:

/android to reflect your build directory if different than above).

or (assuming build directory Data/Android_Build):

Downloading the source code

This will clone the repositories. You only need to do this the first time you build Android, or if you want to switch branches.

  • The repo has a -j switch that operates similarly to the one used with make . Since it controls the number of simultaneous downloads, you should adjust the value depending on downstream network bandwidth.
  • You will need to specify a branch (list of branches) to check out with the -b switch. If you leave the switch out, you will get the so-called master branch.
Читайте также:  Linux firefox no icon

The -c switch will only sync the branch which is specified in the manifest, which in turn is determined by the branch specified with the -b switch, or the default branch set by the repository maintainer.

Wait a long time. Just the uncompiled source code, along with the .repo and .git directories that are used to keep track of it, are very large. As of Android 10, at least 250 GB of free disk space is required.

Building the code

This should do what you need for AOSP:

If you run lunch without arguments, it will ask what build you want to create. Use -j with a number between one and two times number of cores/threads.

The build takes a very long time.

Testing the build

When finished, run/test the final image(s).

Creating a flashable Image

To create an image that can be flashed it is necessary to:

This will create a zip image under out/target/product/hammerhead (hammerhead being the device name) that can be flashed.

Flashing

In some cases, you want to return to the stock Android after flashing custom ROMs to your Android mobile device. For flashing instructions of your device, please use XDA forums.

Fastboot

Fastboot (as well as ADB) is included in the android-tools package.

Samsung devices

Samsung devices cannot be flashed using Fastboot tool. Alternatives are Heimdall and Odin (by using Windows and VirtualBox).

samloader

To download original Samsung firmware, a platform independent script, samloader can be used.

Heimdall

Heimdall is a cross-platform open-source tool suite used to flash firmware (also known as ROMs) onto Samsung mobile devices and is also known as an alternative to Odin. It can be installed as heimdall .

The flashing instructions can be found on Heimdall’s GitHub repository or on XDA forums.

Odin (Virtualbox)

It is also possible to restore firmware (Android) on the Samsung devices using Odin, but inside the VirtualBox.

Arch Linux (host) preparation:

  1. Install VirtualBox together with its extension pack and guest additions.
  2. Install your preferred, but compatible with Odin, Windows operating system (with VirtualBox guest additions) into a virtual hard drive using VirtualBox.
  3. Open VirtualBox settings of your Windows operating system, navigate to USB, then tick (or make sure it is ticked) Enable USB 2.0 (EHCI) Controller.
  4. At VirtualBox running Windows operating system, click in the menu bar Devices > USB Devices, then click on your Samsung mobile device from the list, which is connected to your computer via USB.

Windows (guest) preparation:

Check if configuration is working:

  1. Turn your device into Download mode and connect to your Linux machine.
  2. In virtual machine toolbar, select Devices > USB > . Samsung. device.
  3. Open Odin. The white box (a big one at the bottom-left side) named Message, should print a line similar to this:

which means that your device is visible to Odin & Windows operating system and is ready to be flashed.

Use Android on GNU/Linux

There are several projects and methods which support running Android on GNU/Linux:

  • Anbox: container-based software to run Android on Linux kernels
  • Android-x86: a direct port of Android for the x86 architecture

Troubleshooting

Android Studio: Android Virtual Devices show ‘failed to load’.

Make sure you have exported the variable ANDROID_HOME as explained in #Android Studio.

Android Studio: ‘failed to create the SD card’

If you try to run an AVD (Android Virtual Device) under x86_64 Arch and get the error above, install the lib32-gcc-libs package from the multilib repository.

Eclipse: During Debugging «Source not found»

Most probably the debugger wants to step into the Java code. As the source code of Android does not come with the Android SDK, this leads to an error. The best solution is to use step filters to not jump into the Java source code. Step filters are not activated by default. To activate them: Window > Preferences > Java > Debug > Step Filtering. Consider to select them all. If appropriate you can add the android.* package. See the forum post for more information: http://www.eclipsezone.com/eclipse/forums/t83338.rhtml

ValueError: unsupported pickle protocol

One fix is to issue:

If that does not work, then try this:

libGL error: failed to load driver: swrast OR AVD does not load and no error message displayed

Sometimes, beginning to load an AVD will cause an error message similar to this to be displayed, or the loading process will appear to finish but no AVD will load and no error message will be displayed.

The AVD loads an incorrect version of libstdc++, you can remove the folder libstdc++ from

/.android-sdk/emulator/lib64 (for 64-bit) or

/.android-sdk/emulator/lib (for 32-bit) , e.g.:

Note that in versions before Android Studio 3.0, this directory was in a different location:

Alternatively you can set and export ANDROID_EMULATOR_USE_SYSTEM_LIBS in

Fix for the .desktop file might be achieved by using env command, prefixing the Exec line Desktop entries#Modify environment variables

sh: glxinfo: command not found

Here is the full error:

You can try to install glxinfo ( mesa-demos ) but if your computer has enough power you could simply use software to render graphics. To do so, go to Tools > Android > AVD Manager, edit the AVD (click the pencil icon), then select Software — GLES 2.0 for Emulated Performance > Graphics.

Android Emulator: no keyboard input in xfwm4

In xfwm4, the vertical toolbar buttons window that is on the right of the emulator takes focus from the emulator and consumes keyboard events. (bug report)

You can use the workaround described in [3]:

  1. Open the xfwm4 settings.
  2. Switch to the Focus tab.
  3. Change the Focus Model to «Focus follow mouse».
  4. Disable Automatically raise windows when they receive focus option below.\

Android Emulator: Window is shaking and blinking when used in WM tiled mode

When using Tiled Window Manager like dwm, Android Emulator will shake and blink. You can use the workaround described in krohnkite issue 72 (window floating is induced by Alt+f in dwm).

Android Emulator: Segmentation fault (core dumped)

When using Nouveau drivers try to disable gpu hardware acceleration.

In some devices it can only be done by editing $HOME/.avd/device_name.avd/config.ini .[4]

  1. Set hw.gpu.enabled=no
  2. Set hw.gpu.mode=off

adb: sideload connection failed: insufficient permissions for device

If you get the error:

you might solve it by restarting the adb server:

Источник

Оцените статью