欢迎使用CSDN-markdown编辑器

来源:互联网 发布:unity3d 高通arapi 编辑:程序博客网 时间:2024/06/05 04:14

OpenGApps精简安装

参考官方wikiAdvanced Features and Options

OpenGApps是网上推荐的比较多的全家桶套餐,多种组合任你挑,最贴近原生Nexus的是Stock版709M,但是刷完LineageOS 之后,奶骑7的system分区只有300+M,大小完全不够,搜了很久,大部分的人都说只能装较小的版本,其他的可以到play商店去下,但是较小的版本里边并没有相机、启动器和其他那种商店上没有的应用。
因此,摆在面前的解决方案剩下三种:
1. 用优秀的第三方应用代替(追求原生体验,放弃)
2. 手动扩容system分区(操作太复杂,放弃)
3. 精简OpenGApps安装包

下载刷机包

选好平台、版本之后,下载最大的super包,或者是包含你所需要应用的最小包(具体哪些包有哪些软件,这个百度会告诉你的)

Aroma包除外,官方说除了Aroma以外所有的都支持,寻找和使用附加的配置

编写配置文件

配置文件的原版可以在官方wiki上找到,等下贴在后边

1. 转换包

从大包转换到小包

目标包 最小需要的包 StockGApps Super FullGApps Stock+ MiniGApps Full+ MicroGApps Mini+ NanoGApps Micro+ PicoGApps Nano+

2. 包含或排除某些包

在所需软件包列表开头添加关键字Include
下边是官方列表
依靠官方列表,删掉自己不想要的就可以,#后边为注释
* 要是不加Include的话,就是不安装* 缺省是Exclude

Include# Pico+DialerFramework        # Install Dialer FrameworkCalSync                # Install Google Calendar Sync (except if Google Calendar is being installed)GoogleTTS              # Install Google Text-to-Speech (Micro+ on 5.0-, Pico+ on 6.0+)PackageInstallerGoogle # Install Google Package Installer# Nano+BatteryUsage           # Install Device Health Services (7.1+)FaceDetect             # Install Face Detect library for photo appsFaceUnlock             # Install FaceUnlockSearch                 # Install Google Search (excluding excludes GoogleNow and PixelLauncher)Speech                 # Install Offline Speech Files# Micro+Gmail                  # Install GmailCalendarGoogle         # Install Google CalendarExchangeGoogle         # Install Google Exchange ServicesGoogleNow              # Install Google Now Launcher (requires Search)# GoogleTTS              # Install Google Text-to-Speech (Micro+ on 5.0-, Pico+ on 6.0+)# Mini+CalculatorGoogle       # Install Google CalculatorClockGoogle            # Install Google ClockMaps                   # Install Google MapsMessenger              # Install Android Messages (except on tablet devices)TagGoogle              # Install Google NFC TagsPhotos                 # Install Google PhotosGooglePlus             # Install Google+YouTube                # Install YouTube# Full+Chrome                 # Install Google Chrome BrowserCloudPrint             # Install Google Cloud PrintDocs                   # Install Google DocsDrive                  # Install Google DriveFitness                # Install Google FitKeep                   # Install Google KeepNewsWidget             # Install Google News & WeatherBooks                  # Install Google Play BooksPlayGames              # Install Google Play GamesMovies                 # Install Google Play Movies & TVMusic                  # Install Google Play MusicNewsStand              # Install Google Play NewsstandSheets                 # Install Google SheetsSlides                 # Install Google SlidesTalkback               # Install Google TalkBack# Stock+CameraGoogle           # Install Google CameraContactsGoogle         # Install Google ContactsDialerGoogle           # Install Google DialerDuo                    # Install Google DuoHangouts               # Install HangoutsKeyboardGoogle         # Install Google KeyboardPixelIcons             # Install Google Pixel IconsStorageManagerGoogle   # Install Google Storage ManagerVRService              # Install Google VR ServicesWebViewGoogle          # Install Google WebviewPixelLauncher          # Install Pixel Launcher (requires Search and Wallpapers)PrintServiceGoogle     # Install Print Service Recommendation ServiceWallpapers             # Install Wallpapers# Super+AndroidPay             # Install Android PayDMAgent                # Install Google Apps Device PolicyGCS                    # Install Google Connectivity Services (excluding also excludes ProjectFi)Earth                  # Install Google EarthIndic                  # Install Google Indic KeyboardJapanese               # Install Google Japanese InputKorean                 # Install Google Korean InputPinyin                 # Install Google Pinyin InputStreet                 # Install Google Street ViewTranslate              # Install Google TranslateZhuyin                 # Install Google Zhuyin InputProjectFi              # Install Project Fi by Google

3. 保留自带应用

OpenGApps会将自己的应用替换掉ROM中原先的应用,可以通过+来标记保留共存

+Browser       # 保留浏览器+CameraStock   # 保留相机+Email         # 保留Email+Gallery       # 保留壁纸+Launcher      # 保留启动器+MMS           # 保留SMS+PicoTTS       # 保留TTS

4 .删除自带应用

偷个懒,引用官方列表,要删除的,把#去掉就好
有点长,我贴到文末

5. 其他配置选项


  1. 开启Google助理
    添加语句ro.opa.eligible_device=true
    可开启Google助理,默认是不开启的,但是如果你的ROM已经在build.prop文件中配置了这个选项,则OpenGApps不会对其进行修改。
  2. 强制DPI设置
    添加语句forcedpiXXX
    (xxx中为你想要设置的DPI)替换默认设置

可选项有:120, 160, 213, 240, 260, 280, 300, 320, 340, 360, 400, 420, 480, 560, 640 or nodpi.
  • 强制使用新相机
    添加语句forcenewcamera
    如果是有google new camera API或者在OpenGApps白名单的设备,默认是安装新相机的(3.0以上的版本),否则会选用Version 2,但是你可通过语句forcenewcamera,强制使用新相机,但是可能不支持你的机型。
  • 跳过安装Google’s Swype Library
    添加语句skipswypelibs
    OpenGApps默认会为你安装加装google键盘,但是有些ROM不支持,可以选择禁用
  • 用Google’s Swype Library Setting替换 AOSP Library
    添加语句substituteswypelibs
    同样是对虚拟键盘的配置,替换AOSP的输入法
  • 跳过升级预装库
    添加语句skipvendorlibs
    默认是对当前ROM的库(原文是vendor libraries,不知翻译是否正确)进行升级
  • 设置Smart Pre-ODEXing
    添加语句NoPreODEX,跳过Smart Pre-ODEXing
    添加语句PreODEX,允许Smart Pre-ODEXing
  • 强制重新安装
    添加语句forceclean
    默认OpenGApps安装的过程中会检测是升级还是重新安装(原文是clean install,我理解是放弃之前的,直接安装新的),官方说这会在升级过程中影响到谷歌相机的安装
  • 关闭保护
    添加语句Override
    默认情况OpenGApps,会保证你有虚拟键盘、启动器、短信等基础应用,你不装谷歌版的,也不会删除ROM自带,但是你可以关闭这种选项(╯‵□′)╯︵┻━┻真贴心
  • 写在最后

    窥视原生安卓系统已久了,都说原生的好,终于前段时间入了一台Nexus 7,感受了一下原生的魅力,确实,原生的就是爽,除了科学上网费点劲,原生的应用和系统体验上比国内的系统舒服得多。但是可惜的是,谷歌只给奶骑7升级到Android 6.0,如今8.0都出了,再用 6.0怎么说也跟不上时代了,千挑万选,最总选择了比较贴近原生的LineageOS,目前Nightly版更新到14.1,也就是基于Android 7.1.2 的版本。刷了第三方系统,但是开机一看,谷歌家的应用一个都没有,亲儿子怎么说也要用自家的东西啊(尤其是谷歌相机里边的SpaceHere功能和Pixel启动器,让人割舍不下)。

    删除自带应用的列表

    # Remove apps (uncomment a line to remove the app)# CMAccount               # Remove CM Account# CMBugReport             # Remove CM Bug Report# CMAudioFX               # Remove CM AudioFX# CMFileManager           # Remove CM File Manager# CMMusic                 # Remove CM Music# CMScreenCast            # Remove CM ScreenCast# CMSetupWizard           # Remove CM Setup Wizard (see Notes for CMSetupWizard)# CMUpdater               # Remove CM Updater# CMWallpapers            # Remove CM Wallpapers# CMWeatherProvider       # Remove CM Weather Underground# DashClock               # Remove DashClock Widget (found in certain ROMs)# Hexo                    # Remove Hexo Libre CM Theme# LRecorder               # Remove LineageOS Recorder# LSetupWizard            # Remove LineageOS Setup Wizard# OmniSwitch              # Remove OmniSwitch recent apps switcher replacement# BasicDreams             # Remove Basic Dreams Wallpaper# Galaxy                  # Remove Galaxy (also known as BlackHole) Wallpaper# HoloSpiral              # Remove Holo Spiral Wallpaper# NoiseField              # Remove Noise Field Wallpaper# Phasebeam               # Remove Phasebeam Wallpaper# PhotoPhase              # Remove Photo Phase Wallpaper# PhotoTable              # Remove Photo Table Wallpaper# Browser                 # Remove Stock Browser# CalculatorStock         # Remove Stock Calculator (automatically removed when Google Calculator is installed)# CalendarStock           # Remove Stock Calendar (automatically removed when Google Calendar is installed)# CameraStock             # Remove Stock Camera (Including CAF's camera application, Snap)# ClockStock              # Remove Stock Desk Clock (automatically removed when Google Clock is installed)# Email                   # Remove Stock Email Client# ExchangeStock           # Remove Stock Exchange Services (automatically removed when Google Exchange Services is installed)# MzFileManager           # Remove Stock FlymeOS File Manager# MzPay                   # Remove Stock FlymeOS Pay system (because MzPay services works only in China)# MzSetupWizard           # Remove Stock FlymeOS SetupWizard# MzUpdater               # Remove Stock FlymeOS Updaters# MzWeather               # Remove Stock FlymeOS Weather (because MzWeather service work only in China)# FMRadio                 # Remove Stock FM Radio (not found on all devices or ROMs)# Gallery                 # Remove Stock Gallery# KeyboardStock           # Remove Stock Keyboard (automatically removed when Google Keyboard is installed)# Launcher                # Remove Stock Launcher(s)# LiveWallpapers          # Remove Stock Live Wallpapers# LockClock               # Remove Stock Lockscreen Clock Widget# Studio                  # Remove Stock Movie Studio# TagStock                # Remove Stock NFC Tags (automatically removed when Google NFC Tags is installed)# PicoTTS                 # Remove Stock PicoTTS# PrintServiceStock       # Remove Stock Print Service Recommendation Service (automatically removed when Google Print Service Recommendation Service is installed)# SimToolKit              # Remove Stock SimToolKit# SoundRecorder           # Remove Stock Sound Recorder# MMS                     # Remove Stock SMS (automatically removed if Android Messages is installed)# StorageManagerStock     # Remove Stock Storage Manager (automatically removed when Google Storage Manager is installed)# Terminal                # Remove Stock Terminal# Themes                  # Remove Stock Theme Engine (will break the Settings Entry and can cause unexpected reboots on some ROMs)# VisualizationWallpapers # Remove Stock Visualization Wallpapers# WhisperPush             # Remove Stock WhisperPush support
    原创粉丝点击