日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Google Apps – Framework, Phonesky, GmsCore w/ AOSP Build.

發布時間:2025/3/15 编程问答 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Google Apps – Framework, Phonesky, GmsCore w/ AOSP Build. 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

Useful links:
Android.mk File syntax specification
AOSPforNexus5

—————————–
1.) The purpose of this article is to have basic play services embedded into AOSP.
b.) Simply put, minimum shell to get it going. None of that factory images bloat.
2.) During your play services account setup, play may crash once or twice.
b.) It’s a hint to restart the phone for possibly updates to take place.
—————————–

According to the link above, three files are necessary to get Play Store going, to add an account then you can install whatever you wish.
GmsCore.apk
Phonesky.apk
GoogleServicesFramework.apk

The files above can be found on any of the latest 5.1 Gapps available on the internet.
GmsCore.apk?was originally ‘PrebuiltGmsCore.apk‘. Just rename it.

Let’s go to ‘~/workingDir‘ folder: Based from the AOSP build.
$ cd ~/workingDir

Go to ‘device/lge/hammerhead‘ and let’s gedit ‘full_hammerhead.mk‘ – don’t forget to make a copy of it first.
$ gedit full_hammerhead.mk
-Let’s add ‘$(call inherit-product-if-exists, vendor/gapp/hammerhead/device-vendor.mk)‘ right after ‘$(call inherit-product-if-exists, vendor/lge/hammerhead/device-vendor.mk)
-Save, exit the file.

Go back to ‘~/workingDir. Browse to ‘vendor/‘. Make a folder ‘gapp/‘ then ‘hammerhead/‘ then create a file ‘device-vendor.mk
$ mkdir gapp
$ cd gapp
$ mkdir hammerhead
$ cd hammerhead
$ touch device-vendor.mk

Edit ‘device-vendor.mk‘ add the following inside the file:$ gedit device-vendor.mk
PRODUCT_PACKAGES += \
Phonesky GoogleServicesFramework GmsCore

You should still be inside ‘hammerhead‘ folder. Create a ‘proprietary‘ folder then browse it. Create a file ‘Android.mk
$ mkdir proprietary
$ cd proprietary
$ touch Android.mk
$ gedit Android.mk

——————-INSERT THE FOLLOWING INSIDE—————————
LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
LOCAL_MODULE := Phonesky
LOCAL_MODULE_TAGS := optional
LOCAL_BUILT_MODULE_STEM := package.apk
LOCAL_MODULE_OWNER := google
LOCAL_MODULE_CLASS := APPS
LOCAL_PRIVILEGED_MODULE := true
LOCAL_SRC_FILES := $(LOCAL_MODULE).apk
LOCAL_CERTIFICATE := PRESIGNED
include $(BUILD_PREBUILT)

include $(CLEAR_VARS)
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
LOCAL_MODULE := GmsCore
LOCAL_MODULE_TAGS := optional
LOCAL_BUILT_MODULE_STEM := package.apk
LOCAL_MODULE_OWNER := google
LOCAL_MODULE_CLASS := APPS
LOCAL_PRIVILEGED_MODULE := true
LOCAL_SRC_FILES := $(LOCAL_MODULE).apk
LOCAL_CERTIFICATE := PRESIGNED
include $(BUILD_PREBUILT)

include $(CLEAR_VARS)
LOCAL_MODULE_SUFFIX := $(COMMON_ANDROID_PACKAGE_SUFFIX)
LOCAL_MODULE := GoogleServicesFramework
LOCAL_MODULE_TAGS := optional
LOCAL_BUILT_MODULE_STEM := package.apk
LOCAL_MODULE_OWNER := google
LOCAL_MODULE_CLASS := APPS
LOCAL_PRIVILEGED_MODULE := true
LOCAL_SRC_FILES := $(LOCAL_MODULE).apk
LOCAL_CERTIFICATE := PRESIGNED
include $(BUILD_PREBUILT)
——————-END INSERT —————————
Save, exit the file.

This is where you want to make sure the three files are in the same ‘proprietary‘ folder.
$ cp GoogleServicesFramework.apk ~/workingDir/vendor/gapp/hammerhead/proprietary
$ cp Phonesky.apk ~/workingDir/vendor/gapp/hammerhead/proprietary
$ cp GmsCore.apk ~/workingDir/vendor/gapp/hammerhead/proprietary

Back out to ‘~/workingDir
$ cd ~/workingDir
$ make clean
?<<– You can ignore this step, the build will be done quicker.
$ . build/envsetup.sh
$ lunch aosp_hammerhead-user?or?$ lunch aosp_hammerhead-userdebug
$ make -jN?<<– N==# of cpus chosen for vm.

-Flash the new files in bootloader and test play services on your new build/rebuild.


原文地址:?https://dcrin3.com/unscrambled/?p=931

總結

以上是生活随笔為你收集整理的Google Apps – Framework, Phonesky, GmsCore w/ AOSP Build.的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。