How to install Google Apps (GApps) on your Android Device / Phone

http://senk9.wordpress.com/2010/12/03/how-to-install-google-apps-gapps-on-your-android-device-phone/


Google’s Android OS has often been touted as open – this is true to a large extent. Android is based on a modified Linux kernel, with it’s own Java interpreter and libraries, and Google has released the majority of Android code to the world as the “Android Open Source Project” under the Apache license. What this means is that anybody can download the Android OS, install it on a device of their choosing, and run Android, without having to pay any costs to Google. However, there are a selection of proprietary Google Applications within Android which are not included within this distribution: these are only available to Google’s partners within the Open Handset Alliance (generally technology manufacturers who develop branded devices and work together to develop the platform). This guide will explain how to install these applications on your device.

This may possibly be due to Google wanting to protect the code within these applications (which are based tightly around their core technologies), and/or wanting to preserve the user experience by only associating the Google branding / applications with known partners and companies (for example, one of the requirements of OHA devices is a Google logo printed on it). It’s important to note that this stage why this is the case and clarify some important distinctions. First off, Google does not make phones, it’s partner’s make the phones, so Google does not generate an income stream from the open-source Android. It is however, in their best interest to distribute Android as widely as possible, because their actual income stream (advertising revenue from searches, paid placements, etc) is increasingly coming from mobile devices. Since Android is so closely intertwined with Google’s services (including their search services of course), simply put: the more people using the free Android, the more money Google can make. More importantly, on an ONGOING basis, rather than a once off. Contrast this with hardware manufacturers like Apple, who’s profit primary comes from hardware sales (and very profitable it is as well).

Just what are we talking about here?

So how does this affect us? It generally doesn’t, as the device you purchase should already have the Google Apps loaded onto it. Users will blissfully go about their activities without having to think if the software they are using is open or proprietary. However, if you are of the tinkering type and have experimented with loading various ROMs onto your device, OR you have purchased a non-OHA device (generic or low-end devices often are not OHA certified), then these applications will be notably missing.

You are probably wondering at this stage, what is this Google Apps thing, and what does it affect? It includes applications which people have come to associate with Android devices, such as the GMail application, Google Maps, Navigation, Google Talk, Car Dock, Google Account Syncing (including Picasa / Contact / Calendar sync), Google Voice, Street View, Youtube, Voice Search as well as the big kahuna, the official Android Marketplace. Pretty much all the good stuff on Android devices. You can still install and run Android without these devices and everything works fine, but it’s not quite the same if you are used to these applications. Note that recently, Google has released the Youtube and Maps apps onto the market, facilitating more direct updates to the end user. If this is an easier option for you, just grab those off the market.

So how do we fix it?

Good question. Fortunately, there are ways around this: There are generally little restrictions on the user loading their own applications onto devices (unless you have a side-locked device from a carrier, in which case, that’s a carrier-caused issue and something you’ll have to figure out on your own). Kind souls have packaged the above mentioned Google Apps into packages, ready for people to install onto their devices. Here is how you do it, note that root access is NOT required, although a complete backup is recommended just in case.

Step 1) Download the Google Apps package.

There are two choices here, a talented ROM developer named Cyanogen has made available the Google Apps as a package here (scroll to bottom – dated 20/10/10). Download the package that suits your device, where HDPI indicates resolutions with 800×480 resolution, and MDPI generally for those with 480×320. Alternatively, there is a slightly older version located here (26/09), or if you want to choose which applications you want to install, you can use YAAM’s GApps Kitchen here, which generates a file based on the applications you want. The net result is that you will have downloaded a file called update.zip. Within this file are the Google Apps themselves (in a series of .apk packages). Copy the entire update.zip to the root directory of your sdcard, generally /sdcard/ or /mnt/sdcard.

Step 2) Flash the update.zip

Now assuming that you have access to the recovery environment on your device, boot into recovery. Generally, this is done by holding one of the volume buttons, the home button and power button on a cold boot (even without root access), although with each device it may vary. You can also reboot into recovery through ADB, by using ‘adb reboot recovery’ command, or use an application such as Quick Boot to boot into recovery. Once you are in the recovery menu (these days it’s a 2E/3E recovery system) there will be an option to ‘flash update.zip’, select and wait, then when complete, just reboot. If you DO NOT have access to the recovery console, check out Step 2B, installing via alternative method. If it worked, then you now have the full complement of apps. Head to Step 3.

Step 2B) If 2 doesn’t work, install manually

OK so what do you do if you don’t have access to recovery or the flash didn’t work? You will need to install the applications manually. Reboot your phone as per normal, then on your PC, open the update.zip with an archive explorer (Windows will do it, as will WinZip/WinRar/etc), and you will notice a series of folders. Depending on which update.zip you downloaded, navigate to data/apps or system/apps and find a series of .apk files in there. Grab the ones you want, and either install via ADB, or use a file explorer to install them after copying them to the phone.

Here’s a quick summary of what apps are what to my knowledge. The items in bold are critical for basic Google Account Sync functions. The list is based on the Froyo release of GApps (dated 09/10/10).

CarHomeGoogle.apk – Car Dock interface (with the large simplified icons / shortcuts).
CarHomeLauncher.apk - Car Dock interface (with the large simplified icons / shortcuts).
Contacts.apk – Contact/People manager, front end GUI.
ContactsProvider.apk – Database backend for contact manager.
Facebook.apk – Facebook application. Up to date version available from Market.
GenieWidget.apk – Homescreen widget which provides weather/news.
Gmail.apk – GMail application. Also installs Mail sync provider.
GoogleBackupTransport.apk – Allows backup option in settings menu to functions, backing up settings/apps to Google servers. (?)
GoogleCalendarSyncAdapter.apk – Installs Calendar sync provider. Registers specific calendars on device for use in other Calendar applications.
GoogleContactsSyncAdapter.apk – Installs Contact sync provider. Required for Google Talk application to function correctly.
GoogleFeedback.apk – When a program crashes, option to log crash report.
GooglePartnerSetup.apk – Unknown, most likely used on initialisation of device.

GoogleQuickSearchBox.apk – Widget on home screen for quick search. Also has voice search shortcut, and search type box.
GoogleServicesFramework.apk – Core for Google services backend on phone. Required for nearly all Sync functions.
googlevoice.apk – Google Voice app. Useful in countries where Google Voice is supported.
HtcCopyright.apk – HTC application to display copyright information, can be used on non-HTC devices as well, but useless.
HtcEmailPolicy.apk - HTC application to display copyright information, can be used on non-HTC devices as well, but useless.
HtcSettings.apk - HTC application to display customised settings, can be used on non-HTC devices as well, but useless.
kickback.apk – Unknown. Does not appear to be useful.
LatinImeTutorial.apk – Tutorial on how to use the touch screen keyboard. Chances are you already know how to use it.
Maps.apk – Google Maps application. Latest version also available on Market.
MarketUpdater.apk – Specific software updater for market, automatically runs as required.
MediaUploader.apk – Background service which launches everytime you run an upload function (ie. Picasa / Facebook / Emails)
NetworkLocation.apk – Uses cell triangulation and/or wireless networks to help speed up GPS location. Toggled through Location settings.
OneTimeInitializer.apk – Most likely OOBE, not necessary.
PassionQuickOffice.apk – Office suite. If you have other office suites, then not required.
SetupWizard.apk – When you enter details for your Google Account initially, this is called.
soundback.apk – Unknown, not necessary.
Street.apk – Street View, called when zoomed in on a location on Google Maps and want street level view.
Talk.apk – Google Talk, chat program. Is critical when using Android Market to download apps. Many downloads will not initialise with Talk being logged in.
talkback.apk – Possibly similar to Feedback. Does not appear to be necessary.
Twitter.apk – Twitter application and/or widget. Latest version is available from Market.
Vending.apk – Official Android Market.
VoiceSearch.apk – Voice search, can be called from shortcut, keyboards or via app drawer.
YouTube.apk – Youtube application. Latest version can be found on market.

For the absolute basic functions, you just need the items in bold. If you want all the shiny bits, then install the whole lot. I’m very much a minimalist myself, so I will generally stick to only the bare necessities, and install more later if required (since it’s a very quick process, especially via ADB). Note that if any of these apps already exist on the device, then you will need to uninstall them first. If they are marked as system apps, then  you will require root access to remove them. Though you shouldn’t have to reinstall existing apps at all.

Step 3) We’re done. Initialise!

Once all apps are installed, then reboot the device. Upon rebooting, go to Accounts and Settings in menu, and a new option to enter a Google account should now be present. Your device now has the Google Apps on it. Enjoy!

NOTES:

* On some devices, the Market may not display applications correctly. Try clearing the cache/data for ‘Google Services Framework’ within the ‘Manage Applications’ settings menu, then clear/data for ‘Market’. Reboot and try again.
* On first run, a permission request may appear in the notification bar when Sync attempts to contact the Google services. Grant permissions as required.
* If you are installing over previous versions of these apps, ensure you wipe the cache/data before removing the old apps, as residual data may cause issues with the new apps.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: AOSP是Android的开源版本,缺少Google AppsGApps)。因此,用户安装AOSP时会错过Google Play商店和其他Google服务。为了解决这个问题,用户需要把GApps集成到AOSP中。 首先,用户需要下载和安装AOSP源代码。下载完源代码后,用户可以在AOSP项目中的Packages目录中找到vendor/google目录。用户需要将GApps的ZIP文件复制到vendor/google目录下。 然后,用户需要在vendor/google目录下创建一个脚本来在AOSP中集成GApps。在创建脚本之前,用户需要下载一个叫作Google API的SDK。打开Terminal窗口并切换到vendor/google目录,然后输入以下命令来初始化脚本: source build/envsetup.sh lunch full-eng make -j4 此命令将初始化脚本并编译AOSP源代码,其中“make -j4”指令将以4个线程进行编译,这将加快编译过程。 接下来,用户需要编辑先前创建的脚本。脚本应该包含GApps的适当文件夹路径和其它所需信息。完成编辑后,用户需要保存脚本并运行以下命令来集成GApps: make updatepackage make -j4 这将启动AOSP的集成过程,并将GApps包含在AOSP中。当编译完成后,用户可以将新的AOSP映像刷入设备中并Enjoy Google Apps的服务。 ### 回答2: AOSP (Android Open Source Project) 是一个开源的 Android 操作系统源代码项目,它提供了 Android 系统的核心功能和基础设施。但是,由于 Google 出于商业考虑并未将 Google 应用程序 (GApps) 包含在 AOSP 中,因此如果您想使用 Google 应用程序和服务,您需要将它们手动集成到 AOSP 中。 集成 GApps 允许 AOSP 用户像使用 Google Play 商店、谷歌地图和 Gmail 等应用程序,从而提供更为完整和便利的使用体验。它的集成步骤也相对简单,有以下几个步骤: 1. 下载 GApps 软件包。您需要根据您的 Android 系统版本和设备架构下载合适的 GApps 软件包。 2. 在 AOSP 中挂载 /system 分区。通过 adb 命令将设备连接到电脑上,并以 root 权限装载 /system 分区。 3. 拷贝 GApps。通过 adb 命令将 GApps 软件包从电脑拷贝到设备上。 4. 安装 GApps。通过在设备上运行相应的 shell 命令来安装所需的 GApps 软件。安装可能需要一段时间,具体时间因安装包大小和设备性能而定。 5. 重新启动设备。重启设备后,您现在可以在 AOSP 中运行 Google 应用程序并享受相关功能和服务了。 需要注意的是,GApps 软件包不属于 AOSP 的一部分,也不是由 Google 公司提供的官方软件包。因此,在安装 GApps 之前,请确保您从可靠的来源下载软件包,并理解相关法律规定和风险。同时,不同版本的 GApps 软件包可能不兼容不同的 AOSP 版本和设备类型,因此请仔细查看官方文档或咨询相关社区的支持人员,以确保安装的正确性和稳定性。 ### 回答3: AOSP即Android Open Source Project,是Android的开源项目。它提供了一套完整的Android源代码,开发人员可以使用这个代码库开发自己的定制版Android系统。 但是AOSP并不包含Google应用和服务(GApps),例如谷歌商店、谷歌地图、Gmail等等。这些应用和服务是Google的专有软件,不能直接加入到AOSP中。 如果我们想在AOSP中使用GApps,就需要进行集成。集成GApps的方法有多种,下面我们简单介绍一下其中一种方法: 1. 下载GApps包 首先需要从可信的第三方网站(如opengapps.org)下载GApps包。我们需要选择支持AOSP版本的GApps包,同时要选择与自己的手机对应的CPU架构和安卓版本。 2. 解压GApps包 下载完成后,将GApps包解压缩。得到的文件夹中应该有一些.apk文件(Android应用程序)和一些库文件(包括.so文件)。 3. 将GApps文件复制到系统目录中 将GApps文件复制到系统目录中,例如/system/app、/system/priv-app以及/system/lib等等。复制时需要注意文件权限和所有权。 4. 设置权限和所有者 在一些情况下,很可能需要手动设置GApps文件的权限和所有者。通常,这些文件的所有者应该是“system”或“root”,因为它们需要访问系统级的资源。 5. 重启手机 重启手机,等待一段时间。一旦手机启动成功,你就可以在应用列表中找到GApps应用。如果你尝试安装Google Play Store,它应该就能正确运行。 综上所述,集成GApps到AOSP中需要一些技术和操作知识,需要仔细阅读相关文档和资料,才能确保集成成功。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值