Skip to content
This repository was archived by the owner on Nov 10, 2024. It is now read-only.

Commit 17daa8a

Browse files
committed
new flags, fix sqlite and bootloop on a11
1 parent 3ffd525 commit 17daa8a

9 files changed

Lines changed: 100 additions & 49 deletions

File tree

changelog.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
**2022-03-03 (22030300)**
2+
- Fixed [insert_gms_features()](https://github.com/Pixel-Props/pixel.features/blob/main/addon/SQLite3/install.sh) where variables were not defined which caused the service to not install flags properly.
3+
- Added more flags to the [service.sh](https://github.com/Pixel-Props/pixel.features/blob/main/system/product/etc/sysconfig/service.sh)
4+
- SDK checks installer. [privapp-permissions-google-p.xml](https://github.com/Pixel-Props/pixel.features/blob/main/system/product/etc/permissions/privapp-permissions-google-p.xml) will be removed from the module (Causing [Bootloop on A11](https://github.com/Pixel-Props/pixel.features/issues/3#issuecomment-1057879710)).
5+
- The service.sh is still not working. I am opening an issue on the Magisk repo.
6+
17
**2022-02-28 (22022801-22022802)**
28
- Enabling new Google Dialer pad on sqlite3 GMS
39
- Disabled uninstaller as it is too destructive for now
@@ -10,7 +16,7 @@
1016
- SDK checks for NgaResources, DevicePersonalization and PixelWallpapers2021
1117
- Previously the script was not installing packages, Now it has a proper [install_package()](https://github.com/Pixel-Props/pixel.features/blob/main/addon/Utils/install.sh).
1218
- The script now automatically warns the user if there is a newer version of the script.
13-
- Patching device_config flags and system prefs at [service.payload.sh](https://github.com/Pixel-Props/pixel.features/blob/main/system/product/etc/sysconfig/service.payload.sh)
19+
- Patching device_config flags and system prefs at [service.sh](https://github.com/Pixel-Props/pixel.features/blob/main/system/product/etc/sysconfig/service.sh)
1420
- Checks for memory availability before using [GoogleCamera_6gb_or_more_ram.xml](https://github.com/Pixel-Props/pixel.features/blob/main/system/product/etc/sysconfig/GoogleCamera_6gb_or_more_ram.xml)
1521
- Volume keys now have a fallback that re-assign new keys
1622
- The installer now has an option to automatically install recommended settings

common/adaptive_audio.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if [ -f "$MusicDetector_location" ] &&
1717

1818
# Adding flags
1919
ui_print ' [+] Adding flags...'
20-
insert_gms_features "FlagOverrides" $packageName 0 null 1 null null 0 "Echo__enable_headphones_suggestions_from_agsa" "Echo__smartspace_enable_doorbell" "Echo__smartspace_enable_earthquake_alert_predictor" "Echo__smartspace_enable_echo_settings" "Echo__smartspace_enable_light_predictor" "Echo__smartspace_enable_paired_device_predictor" "Echo__smartspace_enable_safety_check_predictor" "NowPlaying__ambient_music_on_demand_enabled" "NowPlaying__cloud_api_allowed" "NowPlaying__enable_usage_fa" "NowPlaying__favorites_enabled" "NowPlaying__handle_ambient_music_results_with_history" "NowPlaying__youtube_export_enabled" "Overview__enable_lens_r_overview_long_press" "Overview__enable_lens_r_overview_select_mode" "Overview__enable_lens_r_overview_translate_action"
20+
insert_gms_features "FlagOverrides" $packageName 0 null 1 null null 1 "Echo__enable_headphones_suggestions_from_agsa" "Echo__smartspace_enable_doorbell" "Echo__smartspace_enable_earthquake_alert_predictor" "Echo__smartspace_enable_echo_settings" "Echo__smartspace_enable_light_predictor" "Echo__smartspace_enable_paired_device_predictor" "Echo__smartspace_enable_safety_check_predictor" "NowPlaying__ambient_music_on_demand_enabled" "NowPlaying__cloud_api_allowed" "NowPlaying__enable_usage_fa" "NowPlaying__favorites_enabled" "NowPlaying__handle_ambient_music_results_with_history" "NowPlaying__youtube_export_enabled" "Overview__enable_lens_r_overview_long_press" "Overview__enable_lens_r_overview_select_mode" "Overview__enable_lens_r_overview_translate_action"
2121

2222
# Done
2323
ui_print " [✓] Installed"

common/addon/SQLite3/install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ insert_gms_features() {
3232
shift # Remove floatVal argument
3333
[ "$1" ] && stringVal=$1 || stringVal=null
3434
shift # Remove stringVal argument
35-
[ "$1" ] && committed=$1 || committed=0
35+
[ "$1" ] && committed=$1 || committed=1
3636
shift # Remove committed argument
3737

3838
# Make sure database is open
@@ -53,11 +53,11 @@ insert_gms_features() {
5353
$SQLite3 $gms "DELETE FROM $tableName WHERE packageName='$packageName' AND name='$featureName';"
5454

5555
# Enable feature for system
56-
$SQLite3 "$gms" "INSERT INTO $tableName (packageName, flagType, user, name, intVal, boolVal, committed) VALUES ('$packageName', '$flagType', '', '$featureName', '$intVal', '$boolVal', '$committed');"
56+
$SQLite3 "$gms" "INSERT INTO $tableName (packageName, flagType, user, name, intVal, boolVal, floatVal, stringVal, committed) VALUES ('$packageName', '$flagType', '', '$featureName', '$intVal', '$boolVal', '$floatVal', '$stringVal', '$committed');"
5757

5858
# Enable feature per account
5959
for user in $google_accounts; do
60-
$SQLite3 "$gms" "INSERT INTO $tableName (packageName, flagType, user, name, intVal, boolVal, committed) VALUES ('$packageName', '$flagType', '$user', '$featureName', '$intVal', '$boolVal', '$committed');"
60+
$SQLite3 "$gms" "INSERT INTO $tableName (packageName, flagType, user, name, intVal, boolVal, floatVal, stringVal, committed) VALUES ('$packageName', '$flagType', '$user', '$featureName', '$intVal', '$boolVal', '$floatVal', '$stringVal', '$committed');"
6161
done
6262
done
6363
}

common/gboard.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ packageName="com.google.android.inputmethod.latin#com.google.android.inputmethod
44

55
if selector "Enable Pixel GBoard Features ?" "$useRecommendedSettings" "Enable" "Disable"; then
66
ui_print ' [+] Adding flags...'
7-
insert_gms_features "FlagOverrides" $packageName 0 null 1 null null 0 "crank_trigger_decoder_inline_completion_first" "crank_trigger_decoder_inline_prediction_first" "enable_core_typing_experience_indicator_on_candidates" "enable_core_typing_experience_indicator_on_composing_text" "enable_email_provider_completion" "enable_floating_keyboard_v2" "enable_inline_suggestions_on_client_side" "enable_inline_suggestions_on_decoder_side" "enable_inline_suggestions_space_tooltip" "enable_inline_suggestions_tooltip_v2" "enable_matched_predictions_as_inline_from_crank_cifg" "enable_multiword_predictions_as_inline_from_crank_cifg" "enable_multiword_predictions_from_user_history" "enable_multiword_suggestions_as_inline_from_crank_cifg" "enable_next_generation_hwr_support" "enable_nga" "enable_single_word_predictions_as_inline_from_crank_cifg" "enable_single_word_suggestions_as_inline_from_crank_cifg" "enable_user_history_predictions_as_inline_from_crank_cifg" "nga_enable_mic_button_when_dictation_eligible" "nga_enable_mic_onboarding_animation" "nga_enable_spoken_emoji_sticky_variant" "nga_enable_sticky_mic" "nga_enable_undo_delete" "silk_on_all_devices" "silk_on_all_pixel"
8-
insert_gms_features "FlagOverrides" $packageName 0 4 null null null 0 "inline_suggestion_experiment_version"
9-
insert_gms_features "FlagOverrides" $packageName 0 1 null null null 0 "user_history_learning_strategies"
7+
insert_gms_features "FlagOverrides" $packageName 0 null 1 null null 1 "crank_trigger_decoder_inline_completion_first" "crank_trigger_decoder_inline_prediction_first" "enable_core_typing_experience_indicator_on_candidates" "enable_core_typing_experience_indicator_on_composing_text" "enable_email_provider_completion" "enable_floating_keyboard_v2" "enable_inline_suggestions_on_client_side" "enable_inline_suggestions_on_decoder_side" "enable_inline_suggestions_space_tooltip" "enable_inline_suggestions_tooltip_v2" "enable_matched_predictions_as_inline_from_crank_cifg" "enable_multiword_predictions_as_inline_from_crank_cifg" "enable_multiword_predictions_from_user_history" "enable_multiword_suggestions_as_inline_from_crank_cifg" "enable_next_generation_hwr_support" "enable_nga" "enable_single_word_predictions_as_inline_from_crank_cifg" "enable_single_word_suggestions_as_inline_from_crank_cifg" "enable_user_history_predictions_as_inline_from_crank_cifg" "nga_enable_mic_button_when_dictation_eligible" "nga_enable_mic_onboarding_animation" "nga_enable_spoken_emoji_sticky_variant" "nga_enable_sticky_mic" "nga_enable_undo_delete" "silk_on_all_devices" "silk_on_all_pixel"
8+
insert_gms_features "FlagOverrides" $packageName 0 4 null null null 1 "inline_suggestion_experiment_version"
9+
insert_gms_features "FlagOverrides" $packageName 0 1 null null null 1 "user_history_learning_strategies"
1010

1111
# Done
1212
ui_print " [✓] Installed"

common/google_dialer.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@ packageName="com.google.android.dialer"
44

55
if selector "Enable Pixel Google Dialer Features ?" "$useRecommendedSettings" "Enable" "Disable"; then
66
ui_print ' [+] Adding flags...'
7-
insert_gms_features "FlagOverrides" $packageName 0 null 1 null null 0 "enable_theme_pushing" "enable_precall_dialpad_v2" "enable_dialpad_v2_ux" "CallLogInformationArchitecture__enable_call_log_information_architecture" "CallRecording__enable_call_recording_for_fi" "G__always_enable_new_call_log_framework_and_fragment" "G__are_embeddings_jobs_enabled" "G__bypass_revelio_roaming_check" "G__config_caller_id_enabled" "G__enable_atlas" "G__enable_call_recording" "G__enable_call_screen_audio_stitching" "G__enable_call_screen_data_in_call_log" "G__enable_call_screen_saving_audio" "G__enable_embedding_spam_revelio" "G__enable_new_voicemail_tab" "G__enable_patronus_spam" "G__enable_reject_embedding_spam_calls" "G__enable_revelio" "G__enable_revelio_on_bluetooth" "G__enable_revelio_on_wired_headset" "G__enable_revelio_r_api" "G__enable_spam_blocking_promo" "G__enable_speakeasy_details" "G__enable_wifi_calling_icons_all_carriers" "G__force_disable_enriched_call" "G__force_within_call_recording_geofence_value" "G__force_within_crosby_geofence_value" "G__is_call_log_item_anim_null" "G__new_call_log_fragment_enabled" "G__show_call_screen_recording_player_in_call_log" "G__speak_easy_bypass_locale_check" "G__speak_easy_enable_listen_in_button" "G__speak_easy_enabled" "G__speak_easy_use_soda_asr" "G__use_call_recording_geofence_overrides" "G__voicemail_change_greeting_enabled" "Scooby__are_spam_jobs_enabled" "Scooby__enable_same_prefix_logging" "atlas_use_soda_for_transcription" "enable_android_s_notifications" "enable_atlas_on_tidepods_voice_screen" "enable_dialer_hold_handling" "enable_hold_detection" "enable_revelio_transcript" "enable_smart_reply" "enable_stir_shaken_call_log" "enable_video_call_landscape" "enable_video_handover_dialog" "enable_xatu" "enable_xatu_music_detection" "show_atlas_hold_for_me_confirmation_dialog"
8-
insert_gms_features "FlagOverrides" $packageName 0 null 0 null null 0 "G__enable_pride_month_celebration" "G__enable_primes" "G__enable_primes_crash_metric" "G__enable_primes_timer_metric" "G__enable_tidepods_video" "enable_profile_photo_for_on_hold_video_call"
7+
insert_gms_features "FlagOverrides" $packageName 0 null 1 null null 1 "CallLogInformationArchitecture__enable_call_log_information_architecture" "CallRecording__enable_call_recording_for_fi" "G__always_enable_new_call_log_framework_and_fragment" "G__answer_false_touch_detection_enabled" "G__are_embeddings_jobs_enabled" "G__bypass_revelio_roaming_check" "G__call_screen_audio_listener_enabled" "G__config_caller_id_enabled" "G__enable_after_call_spam_blocking_promo" "G__enable_atlas" "G__enable_call_recording" "G__enable_call_screen_audio_stitching" "G__enable_call_screen_data_in_call_log" "G__enable_call_screen_saving_audio" "G__enable_duplicates_promo_v2_ui" "G__enable_embedding_spam_revelio" "G__enable_embedding_spam_revelio" "G__enable_new_voicemail_tab" "G__enable_patronus_spam" "G__enable_pendingcall" "G__enable_phone_number_classification_spam" "G__enable_reject_embedding_spam_calls" "G__enable_revelio" "G__enable_revelio_on_bluetooth" "G__enable_revelio_on_wired_headset" "G__enable_revelio_r_api" "G__enable_rtt_visibility_setting_part2" "G__enable_spam_blocking_promo" "G__enable_speak_easy_is_spam_survey" "G__enable_speakeasy_details" "G__enable_video_share" "G__enable_wifi_calling_icons_all_carriers" "G__force_disable_enriched_call" "G__force_within_call_recording_geofence_value" "G__force_within_crosby_geofence_value" "G__is_call_log_item_anim_null" "G__new_call_log_fragment_enabled" "G__new_voicemail_fragment_enabled" "G__show_call_screen_recording_player_in_call_log" "G__speak_easy_bypass_locale_check" "G__speak_easy_enable_listen_in_button" "G__speak_easy_enabled" "G__speak_easy_use_soda_asr" "G__use_call_recording_geofence_overrides" "G__voicemail_change_greeting_enabled" "G_answer_proximity_sensor_enabled" "G_call_screen_audio_listener_enabled" "Scooby__are_spam_jobs_enabled" "Scooby__enable_same_prefix_logging" "atlas_use_soda_for_transcription" "enable_android_s_notifications" "enable_atlas_on_tidepods_voice_screen" "enable_dialer_hold_handling" "enable_dialpad_v2_ux" "enable_hold_detection" "enable_precall_dialpad_v2" "enable_revelio_transcript" "enable_smart_reply" "enable_stir_shaken_call_log" "enable_theme_pushing" "enable_video_call_landscape" "enable_video_handover_dialog" "enable_voice_autofill" "enable_xatu" "enable_xatu_music_detection" "force_flip_to_silence" "show_atlas_hold_for_me_confirmation_dialog"
8+
insert_gms_features "FlagOverrides" $packageName 0 null 0 null null 1 "G__enable_pride_month_celebration" "G__enable_primes" "G__enable_primes_crash_metric" "G__enable_primes_timer_metric" "G__enable_tidepods_video" "enable_profile_photo_for_on_hold_video_call"
9+
insert_gms_features "FlagOverrides" $packageName 0 null null null "" 1 "CallRecording__call_recording_countries" "CallRecording__call_recording_countries_with_built_in_audio_file" "CallRecording__call_recording_force_enable_built_in_audio_file_countries" "CallRecording__call_recording_force_enable_tts_countries" "CallRecording__crosby_countries" "G__assisted_dialing_csv_country_codes"
910

1011
# Done
1112
ui_print " [✓] Installed"
1213
ui_print ''
1314
else
14-
ui_print " [~] Ignoring Google Dialer Call Recording"
15+
ui_print " [~] Removing from module"
1516
ui_print ''
1617
fi

common/install.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ if [ "$(grep MemTotal /proc/meminfo | tr -dc '0-9')" -le "6000000" ]; then
3535
rm -rf "$MODPATH/system/product/etc/sysconfig/*6gb*.xml"
3636
fi
3737

38+
# Crashing on boot
39+
if [ "$API" -lt 31 ]; then
40+
ui_print " [!] (SDK) Safely removing privapp permissions xml..."
41+
ui_print ''
42+
rm -rf "$MODPATH"/system/product/etc/permissions/privapp-permissions-google-p.xml
43+
fi
44+
3845
# Running installer addins
3946
for addin in "$MODPATH"/common/*.sh; do
4047
if [ "$addin" != "$MODPATH"/common/install.sh ]; then

customize.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ chmod 0644 "$MODPATH/system/product/app/*/*.apk"
1212
# Remove comments from files and place them, add blank line to end if not already present
1313
for file in $(find "$MODPATH" -type f -name "*.sh" -o -name "*.prop" -o -name "*.rule"); do
1414
[ -f "$file" ] && {
15-
sed -i -e "/^#/d" -e "/^ *$/d" "$file"
15+
sed -i -e "/#/d" -e "/^ *$/d" "$file"
1616
[ "$(tail -1 "$file")" ] && echo "" >>"$file"
1717
}
1818
done

module.prop

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
id=Pixel_Features
22
name=Pixel Features
3-
version=2022-02-28
4-
versionCode=22022801
3+
version=2022-03-03
4+
versionCode=22030300
55
author=Tesla
66
description=A mix of files from the Pixel Phones to unlock the full potential of Android
77
updateJson=https://raw.githubusercontent.com/Pixel-Props/pixel.features/main/update.json

0 commit comments

Comments
 (0)