Raspberry pi 4 4gb android

Как установить Android 11 на Raspberry Pi 4

Raspberry Pi был незаменимым помощником для технических специалистов и энтузиастов. Он предлагает множество вариантов обновления и во многих случаях поставляется со своим собственным набором микросхем и оперативной памятью, что позволяет использовать несколько вариантов использования. Вы можете использовать его для управления камерами видеонаблюдения, создания удаленной рабочей станции, создания медиацентра и многого другого.

Многие люди уже довольно давно пытаются запустить Android на Pi 4, и мы увидели несколько крупных релизов еще в 2019 году. Все они были основаны на Android 10, но, к счастью, только что была выпущена новая сборка, которая позволит вам чтобы наслаждаться Android 11 на Raspberry Pi 4. Давайте быстро взглянем на него.

Что такое ОмниРОМ?

OmniROM — это новая сборка Raspberry Pi на базе Android 11. Она поставляется в флэш-архиве .zip и может быть получена из Разработчики XDA. OmniROM уже довольно давно является заметным именем в сообществе XDA. За последние несколько месяцев они выпустили несколько сборок на базе Android 11 для нескольких телефонов. Этот опыт, вероятно, сделал их достаточно смелыми, чтобы создать сборку для Pi 4.

OmniROM для Pi 4 поставляется в двух вариантах: один в комплекте с приложениями microG, а другой позволяет устанавливать стандартные Gapps. Сборка microG больше ориентирована на конфиденциальность, поскольку она не полагается на сервисы Google Play или Play Store.

Еженедельные сборки предназначены для установки с Google Apps, когда вы записываете ПЗУ на SD-карту. Хотя сборка из коробки довольно стабильна, это пока только первая. Может быть несколько ошибок, поэтому не рекомендуется использовать его в качестве повседневного драйвера.

Кроме того, хотя новый OmniROM поддерживает установку на USB-носители и жесткие диски, вам необходимо будет создать свои собственные разделы, а затем отформатировать их на основе файловых систем, поддерживаемых Pi 4. Поэтому мы рассмотрим только процедуру для SD-карты, которые автоматически распознаются как загрузочный диск при подключении к вашему Pi 4.

Связанный: Как установить официальное обновление Android 11

Что следует иметь в виду

Это первая сборка OmniROM на базе Android 11 для Pi 4, и она не рекомендуется в качестве ежедневного драйвера для большинства пользователей. Кроме того, в текущей сборке отсутствует поддержка аппаратного кодирования и декодирования, что не позволит вам транслировать HD-контент в большинстве популярных приложений. Однако, если вы все еще хотите транслировать контент, вы можете попробовать Firefox для Android, который на данный момент работает довольно хорошо в качестве временного решения.

Кроме того, вам также следует просмотреть страницу readme, опубликованную разработчиком по адресу эта ссылка. Это поможет вам выявить дополнительные недостатки сборки, которые помогут вам определить, следует ли вам переходить на нее или нет.

Как установить Android 11 на Raspberry Pi 4

Чтобы запустить Android 11 на вашем Pi 4, вам необходимо убедиться, что вы используете последнюю версию прошивки для своего устройства. Если вы недавно обновили прошивку, вы можете пропустить это руководство и сразу перейти к процедуре перепрошивки. Но если вы давно не обновляли свой Pi 4, давайте кратко рассмотрим процедуру.

Как сначала обновить прошивку Raspberry Pi 4

Перед установкой OmniROM нам необходимо сначала обновить прошивку.

Необходимый

  • Ваш Pi 4 работает под управлением Raspberry Pi OS
  • Ваш Pi 4 подключен к Интернету

Включите Raspberry Pi 4 и запустите окно терминала с панели задач.

После открытия окна терминала введите следующую команду.

Примечание: Вам нужен только текст в кавычках.

Нажмите Enter, чтобы запустить команду.

Ваш Pi 4 теперь проверит установленную прошивку вместе с последней прошивкой, доступной на серверах Raspberry. Затем он отобразит всю информацию о вашем устройстве. В последних двух строках будет отображаться текущая прошивка и последняя доступная прошивка. Если эти два числа совпадают, значит, у вас установлена ​​последняя версия прошивки.

Но если они не совпадают, вам нужно будет обновить прошивку до последней версии. Введите следующую команду, чтобы обновить прошивку до последней версии.

Теперь ваш Pi 4 будет связываться с серверами и получать все необходимые файлы, необходимые для установки. После завершения этого процесса используйте команду ниже, чтобы установить последнюю версию прошивки.

Ваш Pi 4 начнет обновляться до последней доступной прошивки. Убедитесь, что вы не выключаете свое устройство во время этой процедуры, так как это может привести к повреждению установки и вынудить вас выполнить восстановление на вашем Pi 4.

После завершения процесса на вашем Pi 4 должна быть установлена ​​последняя версия ОС Pi. Теперь мы можем двигаться дальше и установить OmniROM на базе Android 11 на ваше устройство.

Как установить OmniROM для Android 11

Перед тем, как начать установку OmniROM, вам нужно будет загрузить несколько файлов. В основном сборка OmniROM для вашего Pi 4, Gapps, если они вам нужны, и инструмент для перепрошивки. Вы можете скачать их все по ссылкам ниже.

Примечание: Если вы не хотите использовать приложения Google в OmniROM, убедитесь, что вы загрузили версию microG, как показано ниже.

Если вы хотите использовать Gapps с OmniROM, убедитесь, что вы загрузили последнюю еженедельную сборку OmniROM. Кроме того, при загрузке Gapps вы получите множество вариантов. Мы рекомендуем пакет приложений nano для вашего Pi 4, но вы можете получить дополнительную информацию о каждой сборке на эта ссылка. Для этой процедуры мы будем использовать сборку MicroG для OmniROM. Сборка microG поставляется с предустановленными сервисами Aurora и магазином Aurora.

Читайте также:  Изучение андроид с нуля самостоятельно

Необходимый

После того, как вы загрузили все в свое хранилище, запустите инструмент для перепрошивки Etcher. Он поставляется как переносимый исполняемый файл для систем Windows и как установщик для macOS и Linux. Если вы используете Windows, просто дважды щелкните файл .exe, чтобы запустить программу. Если вы используете macOS или Linux, следуйте инструкциям по установке, а затем запустите приложение после его установки.

Теперь нажмите «Прошить из файла».

Откроется окно, показывающее локальное хранилище на вашем устройстве. Найдите и выберите сборку OmniROM, которую вы только что скачали, и нажмите «Открыть», когда закончите.

Теперь подключите SD-карту, которую вы планируете использовать с Pi 4. Подождите, пока карта распознается. Как только он будет распознан, нажмите «Изменить» под значком диска посередине.

Установите флажок для вашей SD-карты Pi 4.

Нажмите «Выбрать» внизу.

Наконец, нажмите «Flash».

Теперь сборка OmniROM будет записана на вашу SD-карту. Этот процесс может занять некоторое время в зависимости от скорости передачи данных, доступной для вашей SD-карты. После завершения процесса вы сможете использовать OmniROM на своем Pi 4.

Ваш компьютер может отображать несколько сообщений об ошибках, но они распространены, поскольку карта теперь отформатирована для распознавания вашим Pi 4, поэтому Windows столкнется с ошибками при чтении ее содержимого.

Примечание: Если вы скачали еженедельную сборку, сейчас самое время прошить файл .zip на SD-карту. Используйте Etcher таким же образом, как указано выше, но вместо выбора сборки OmniROM в начале просто выберите пакет Gapps, который вы загрузили из OpenGapps, и запишите его на SD-карту.

После прошивки подключите SD-карту к Pi 4 и включите ее.

И это все! Теперь у вас должен быть Android 11 на вашем Pi 4. Первая загрузка может занять некоторое время, поэтому будьте терпеливы и не выключайте устройство на полпути. После загрузки вы автоматически попадете на рабочий стол своего устройства. Теперь вы можете использовать новый Pi 4 под управлением Android 11, как хотите.

Примечание: Текущая сборка OmniROM не поддерживает аппаратное кодирование или декодирование видео, что означает, что вы не сможете транслировать высококачественный контент на свой Pi 4. Однако Firefox как браузер, похоже, работает достаточно хорошо при потоковой передаче контента 720p, который требует аппаратное кодирование. Таким образом, вы можете попробовать Firefox в качестве альтернативы, пока не будет выпущено обновление для OmniROM с поддержкой аппаратного кодирования и декодирования.

Мы надеемся, что это руководство помогло вам легко установить Android 11 на Raspberry Pi 4. Если у вас есть к нам какие-либо вопросы или проблемы, не стесняйтесь обращаться к нам, используя раздел комментариев ниже.

Источник

How to Install Android on Raspberry Pi 4? (with Play Store)

Installing Android on Raspberry Pi is a dream that is difficult to achieve. Perhaps you’ve already tried, but were unsuccessful. Me too, many times :).
I already created a tutorial on this topic using Emteria and a Raspberry Pi 3. But Emteria is a paid software, and the whole system was a bit slow and unstable on Pi 3.
How does it work now with a better Raspberry Pi and OS? We’ll see learn about this in today’s post.

Konstakang has created a custom image of LineageOS, an open-source version of Android, that can be installed on Raspberry Pi 3 and 4. Google Apps can then be added on the SD card to have a complete Android version running on Raspberry Pi.

In this tutorial, I will guide you through all of the steps with LineageOS, which is a good alternative to run Android on Raspberry Pi 4.

Edit : I recently tested this Android version with a touch screen for Raspberry Pi (I have this one from SunFounder to be precise), and it works very well. Android is designed for touch devices, so it makes sense :).

If you are looking to quickly progress on Raspberry Pi, you can check out my e-book here. It’s a 30-day challenge, where you learn one new thing every day until you become a Raspberry Pi expert. The first third of the book teaches you the basics, but the following chapters include projects you can try on your own.

What is LineageOS?

To view this video please enable JavaScript, and consider upgrading to a web browser that supports HTML5 video

Introduction

LineageOS is a free and open source operating system, like most new systems I introduce on this website.
The first thing to understand, LineageOS is made for smartphones and tablets, it’s not an emulator or something specially dedicated to single board computers.

LineageOS was created in 2016, and is a fork from CyanogenMod.
LineageOS comes with a few basic applications (browser, calendar, calculator, etc.), but it doesn’t com with any Google applications or any useless preinstalled software.
If you are interested, you can get further information on their website.

Does it work on Raspberry Pi?

As you can imagine, I will not write about something that doesn’t work on Raspberry Pi on this site :).
So yes, there is a way to make it work on your Pi, but it’s not with the official release.

As you can see on the download page here, LineageOS is available for many devices (Samsung, Huawei, Sony, etc.), but not for anything other than smartphones and tablets.

Читайте также:  Htc hd2 with android

However, there is an unofficial version available on this website for Raspberry Pi 4.
It’s not the latest LineageOS version (it’s Android 11 at the time of writing), but it’s good enough for the moment.
So, I’ll show you how to install this version on your Raspberry Pi 4.
There is also a version available for Raspberry Pi 3 if you use this model.

One good idea is to use it with a touch screen.
This way you can get a real Android tablet for cheap.
As explained in the Introduction, I have tested it with a 7″ one from SunFounder, and it works really well (you can read my review here).

Install Android on Raspberry Pi

Here are the required steps to install Android on Raspberry Pi:

  • Download the LineageOS version for Raspberry Pi from Konstakang.
  • Download OpenGapps and save it on a USB key.
  • Flash the LineageOS image on a SD card and start the Raspberry Pi.
  • Reboot in recovery mode to install the Google apps.

I will now explain each step in detail.

Prerequisites

Ok, so you’ll need to download several things before starting the installation process.
It’s not always easy to download it directly from Raspberry Pi, so I recommend downloading it from your computer.
I will explain what to do with each file later.

So, download all these files on your computer:

  • Balena Etcher.
    We’ll use it to flash the SD card. It’s available on any operating system.
    You may already have it or prefer another tool, which isn’t a problem.
    Raspberry Pi Imager will work, you just need to choose “custom OS” in the OS selection menu.
  • LineageOS for Raspberry Pi 4 or LineageOS for Raspberry Pi 3.
    Download it from the Konstakang website, take the latest version available for your device:
  • OpenGapps.
    The alternative to install Google Apps on a custom Android device.
    Choose the ARM platform, the corresponding Android version and the “pico” variant:

I recommend copying the “OpenGapps” file to a USB key.
It’s easier than downloading it from the Android system. I’ll show you in the last part how to install them.
Attention: make sure the USB key is formatted in FAT32. It won’t work with another file format.

Note: At the time I’m updating this article, OpenGapps is not yet available for Android 12, so you need to stay with the previous version of LineageOS (Android 11) if you want to use the Play Store.
An alternative is to use the Gapps from another developer. I tried NikGapps, and it worked fine (here is the website).

Flash the SD card

Next, we need to prepare the SD card.
As usual, I’m using Etcher to do this:

  • Install Etcher if not already done.
  • Start it, you’ll get something like this:
  • On the left, pick the LineageOS image file from your Downloads directory.
    Then insert your SD card in your computer, Etcher should select it automatically.
    And finally click on “Flash!” to start the copy.

A few minutes later, your SD is ready and you can insert it in your Raspberry Pi.

Boot on LineageOS

Start your Raspberry Pi.
The first boot will take a bit longer, as the system initialize the configuration in the background.

Then, you’ll access directly the Android desktop. There is no longer any setup wizard as with the older versions:

Depending on your goal, you can start working with the basic apps (browser, file browse, etc.).
To access them, scroll up the bottom bar.

But you’re probably not here to only use the email and browser apps, there is not much you can do with only the default apps. That’s why we’ll quickly move to the Google Play Store installation.

Android configuration

Before going further, now is a good time to adjust the default configuration if needed. As there is no wizard anymore to guide you with the configuration, you can go to the “Settings” app if needed to configure your Internet connection, language, date/time, etc.

I’m using my Raspberry Pi 4 with the Ethernet cable plugged, but it doesn’t work, I have no network. If you are in the same situation, start by configuring the Wi-Fi network. It will then synchronize with the time server and fix the date/time for you.

Install Google Play Store on Android

This is always the most complex part on an Android installation, for any device or system.
As we don’t use an official Android image and device, there are additional steps to enable Google Play Store. But Konstakang has made this really simpler now, and you’ll quickly have everything your need on your device.

Reboot in recovery mode

We’ll need to boot in recovery mode to install OpenGapps.
To do this, we need to unlock the access to this mode by enabling the advanced restart.

Here is how to do this:

  • Open the “Settings” app.
  • Go to “System” > “Advanced settings”
  • Enable the first option “Reboot to recovery”
  • Scroll down the notification bar and click on the power icon.
    Then click on Restart:

In theory, F5 should work to display this screen, but it doesn’t work anymore once the reboot to recovery enabled.

Plug your USB key with OpenGapps on it, and wait a few second for the recovery mode to start.

The system will now reboot on recovery mode.

We can now move to the Google Apps installation.

Install Google Apps

Once in recovery mode, follow this procedure:

  • Click on “Mount”.
    This is where you can choose which partition to mount.
    We need to mount the USB key, so check the USB item in the list.
  • Then, back on the main menu, click on “Install”.
  • Click on “Select Storage” and choose the USB key.
  • Finally, your files appear.
    Click on the Open Gapps file to install it:

Swipe to confirm, there is nothing else to change.

  • Don’t reboot after the installation, as it will come back to the recovery mode.
  • If everything is OK, you can now restart in normal mode, choose “System” in the menu when you click on Reboot.

    That’s it, your Raspberry Pi will now restart in normal mode.
    Once on the Android desktop, you can see that Play Store is available in the apps.

    Sign in on Play Store

    The last step is to sign in on Google Play, as you would for any Android device.
    Open the Play Store app and try to sign in with your Google account:

    You may get some error messages during this process, asking if you want to close or wait:

    Keep choosing “Wait” until you manage to log in.

    Once logged in, you can close the app and reboot the device.
    After the reboot, everything should be fine.
    You can now install any app or game you want on your Raspberry Pi :).

    Video

    I have recorded the whole process in video simultaneously. You can watch it here if you want:

    Subscribe to the RaspberryTips YouTube channel to receive new videos directly in your feed:

    • Raspberry Pi 4: If you don’t have one yet, I highly recommend switching to the fastest Raspberry Pi model available. Android is still a bit slow on any other model.
    • SSD drive: If you want better performances, a Raspberry Pi and a SSD allows you to run systems really fast. My favorite model is this one. SSD drives are now really affordable, go for it! (USB adapter included).
    • Touch screen: Android is built to use on a tactile screen, this one is cheap and allow you to have a better experience with your new Android system.
    • RasPad 3: This has been my best experience so far. A “real” tablet with a battery and a touchscreen, it’s perfect to use with this Android build. Check the link for more details.

    Conclusion

    That’s, we finally found a way to have Android working better than ever on Raspberry Pi
    And it’s not so difficult to install, we don’t need any account (except from Google), and it’s free 🙂

    Support us: Join the community on Patreon to show your support, get behind-the-scenes content and other awesome perks!

    Raspberry Pi Resources

    Not sure where to start?
    Understand everything about the Raspberry Pi, stop searching for help all the time, and finally enjoy completing your projects.
    Watch the Raspberry Pi Bootcamp course now

    Master your Raspberry Pi in 30 days
    Don’t want the basic stuff only? If you are looking for the best tips to become an expert on Raspberry Pi, this book is for you. Learn useful Linux skills and practice multiples projects with step-by-step guides.
    Download the e-book

    VIP Community
    If you just want to hang out with me and show your support, you can also join the Patreon community. I share behind-the-scenes content there and give you early access to my content. You’ll also get a shoutout when you join.
    More details here

    Need help to build something with Python?
    Create, understand and improve any Python script for your Raspberry Pi.
    Learn the essentials, step-by-step, without losing time understanding useless concepts.
    Get the e-book now

    You can also find all my recommendations for tools and hardware on this page.

    I’m the lead author and owner of RaspberryTips.com. My goal is to help you with your Raspberry Pi problems using detailed guides and tutorials. In real life, I’m a Linux system administrator with a web developer experience.

    Recent Posts

    Kodi is a great tool for Raspberry Pi, it allows you to use it as a media center (Videos, Music, Pictures and Games).However, it’s not always easy to find the add-on you want to watch your favorite.

    Do you enjoy Retropie and small games on Raspberry Pi? ProbablyAre you running the last PC games on your Raspberry Pi? NopeBut since December 2018, it’s possible to play Steam games on your $35.

    Welcome

    Hi, I’m Patrick. I am a Linux system administrator, and I am passionate about the Raspberry Pi and all projects on this topic.
    I created this site to share with you what I learned about it.

    Raspberry Pi Course

    Sale: 10% off today.
    Get started the right way on Raspberry Pi, follow my tips and save a lot of time by doing your first steps with me.

    Write For RaspberryTips

    If you’d like to get paid for your Raspberry Pi and Linux knowledge, and earn a little extra to pay for your hobby, then this is a great opportunity.

    Источник

    Читайте также:  Реальная девушка для андроид
    Оцените статью