mirror of
https://github.com/opengapps/opengapps.git
synced 2025-11-08 07:54:31 +00:00
Add YouTube Music, replace Play Music for SDK21+
This commit is contained in:
committed by
Maarten Fonville
parent
3901263dc6
commit
d3b737c7e9
@@ -194,6 +194,7 @@ form(
|
||||
"WebViewGoogle", "<b>Android System WebView</b>", "Requires Android 5.1 or later, WebViewStub is installed on Android 7.0+ instead when Google Chrome is selected", "check",
|
||||
"Wellbeing", "<b>Digital Wellbeing</b>", "Requires Android 9.0 or later", "check",
|
||||
"YouTube", "<b>YouTube</b>", "", "check",
|
||||
"YTMusic", "<b>YouTube Music</b>", "", "check",
|
||||
"Zhuyin", "<b>Google Zhuyin Input</b>", "", "check"
|
||||
);
|
||||
# Duplicate aromagapps.prop and rename it to gapps.prop - this is useful because the selections won't be erased by the complete installation (menu.prop selected ==2)
|
||||
@@ -738,6 +739,12 @@ then
|
||||
appendvar("gapps", "YouTube\n");
|
||||
endif;
|
||||
|
||||
if
|
||||
prop("gapps.prop", "YTMusic")=="1"
|
||||
then
|
||||
appendvar("gapps", "YTMusic\n");
|
||||
endif;
|
||||
|
||||
if
|
||||
prop("gapps.prop", "Zhuyin")=="1"
|
||||
then
|
||||
|
||||
@@ -56,7 +56,6 @@ chrome
|
||||
drive
|
||||
keep
|
||||
movies
|
||||
music
|
||||
newsstand
|
||||
playgames
|
||||
talkback"
|
||||
@@ -381,6 +380,7 @@ get_package_info(){
|
||||
packagegappsremove="product/overlay/WellbeingOverlay.apk vendor/overlay/WellbeingOverlay.apk"
|
||||
fi;;
|
||||
youtube) packagetype="GApps"; packagename="com.google.android.youtube"; packagetarget="app/YouTube";;
|
||||
ytmusic) packagetype="GApps"; packagename="com.google.android.apps.youtube.music"; packagetarget="app/YouTubeMusicPrebuilt";;
|
||||
zhuyin) packagetype="GApps"; packagename="com.google.android.apps.inputmethod.zhuyin"; packagetarget="app/GoogleZhuyinIME";; # ZhuyinIME exists in some ROMs
|
||||
|
||||
# TV GApps
|
||||
|
||||
@@ -501,7 +501,10 @@ setupwizardtablet"
|
||||
}
|
||||
|
||||
api21hack(){
|
||||
if [ "$API" -ge "21" ]; then
|
||||
if [ "$API" -le "21" ]; then
|
||||
gappsfull="$gappsfull
|
||||
music"
|
||||
else
|
||||
if [ "$API" -eq "21" ]; then
|
||||
gappscore="$gappscore
|
||||
gmssetup
|
||||
@@ -516,6 +519,8 @@ wallpapers"
|
||||
gappsstock="$gappsstock
|
||||
androidauto
|
||||
contactsgoogle"
|
||||
gappsfull="$gappsfull
|
||||
ytmusic"
|
||||
miniremove="$miniremove
|
||||
clockstock
|
||||
tagstock"
|
||||
|
||||
+1
-1
Submodule sources/all updated: 986b728c2f...bc33f0f935
+1
-1
Submodule sources/arm updated: 703bd6fd11...249e67b27f
+1
-1
Submodule sources/arm64 updated: 958bbedc5e...b2e88a0a16
+1
-1
Submodule sources/x86 updated: f866366a2e...ba6f8c2271
+1
-1
Submodule sources/x86_64 updated: f1a91e1549...18d1dbccbd
Reference in New Issue
Block a user