fix: Add build script and fix manifest
- Add build-apk.sh for easy compilation - Simplify AndroidManifest.xml - Fix themes.xml to use basic Android themes - Enable BuildConfig - Add okhttp-dnsoverhttps dependency
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2011 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
<bool name="show_ongoing_ime_switcher">true</bool>
|
||||
<bool name="kg_share_status_area">false</bool>
|
||||
<bool name="kg_sim_puk_account_full_screen">false</bool>
|
||||
<!-- No camera for you, tablet user -->
|
||||
<bool name="kg_enable_camera_default_widget">false</bool>
|
||||
<bool name="kg_center_small_widgets_vertically">true</bool>
|
||||
<bool name="kg_top_align_page_shrink_on_bouncer_visible">false</bool>
|
||||
</resources>
|
||||
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/* //device/apps/common/assets/res/any/colors.xml
|
||||
**
|
||||
** Copyright 2006, The Android Open Source Project
|
||||
**
|
||||
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||
** you may not use this file except in compliance with the License.
|
||||
** You may obtain a copy of the License at
|
||||
**
|
||||
** http://www.apache.org/licenses/LICENSE-2.0
|
||||
**
|
||||
** Unless required by applicable law or agreed to in writing, software
|
||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
** See the License for the specific language governing permissions and
|
||||
** limitations under the License.
|
||||
*/
|
||||
-->
|
||||
<resources>
|
||||
<!-- keyguard clock -->
|
||||
<color name="lockscreen_clock_background">#ffffffff</color>
|
||||
<color name="lockscreen_clock_foreground">#ffffffff</color>
|
||||
<color name="lockscreen_clock_am_pm">#ffffffff</color>
|
||||
<color name="lockscreen_owner_info">#ff9a9a9a</color>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
** Copyright 2009, The Android Open Source Project
|
||||
**
|
||||
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||
** you may not use this file except in compliance with the License.
|
||||
** You may obtain a copy of the License at
|
||||
**
|
||||
** http://www.apache.org/licenses/LICENSE-2.0
|
||||
**
|
||||
** Unless required by applicable law or agreed to in writing, software
|
||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
** See the License for the specific language governing permissions and
|
||||
** limitations under the License.
|
||||
*/
|
||||
-->
|
||||
|
||||
<!-- These resources are around just to allow their values to be customized
|
||||
for different hardware and product builds. -->
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<!-- Enable lockscreen rotation -->
|
||||
<bool name="config_enableLockScreenRotation">true</bool>
|
||||
|
||||
<!-- see comment in values/config.xml -->
|
||||
<integer name="config_longPressOnHomeBehavior">0</integer>
|
||||
|
||||
<!-- see comment in values/config.xml -->
|
||||
<dimen name="config_prefDialogWidth">580dp</dimen>
|
||||
|
||||
<!-- If true, the screen can be rotated via the accelerometer in all 4
|
||||
rotations as the default behavior. -->
|
||||
<bool name="config_allowAllRotations">true</bool>
|
||||
|
||||
<!-- Maximum number of grid columns permitted in the ResolverActivity
|
||||
used for picking activities to handle an intent. -->
|
||||
<integer name="config_maxResolverActivityColumns">3</integer>
|
||||
|
||||
<!-- Use a larger scaling span for larger screen devices. -->
|
||||
<dimen name="config_minScalingSpan">32mm</dimen>
|
||||
|
||||
<integer name="config_dockedStackDividerSnapMode">1</integer>
|
||||
|
||||
<!-- Controls whether the nav bar can move from the bottom to the side in landscape.
|
||||
Only applies if the device display is not square. -->
|
||||
<bool name="config_navBarCanMove">false</bool>
|
||||
|
||||
<!-- Set to true to enable the user switcher on the keyguard. -->
|
||||
<bool name="config_keyguardUserSwitcher">true</bool>
|
||||
|
||||
<!-- If true, show multiuser switcher by default unless the user specifically disables it. -->
|
||||
<bool name="config_showUserSwitcherByDefault">true</bool>
|
||||
</resources>
|
||||
|
||||
@@ -0,0 +1,121 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/* //device/apps/common/assets/res/any/dimens.xml
|
||||
**
|
||||
** Copyright 2006, The Android Open Source Project
|
||||
**
|
||||
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||
** you may not use this file except in compliance with the License.
|
||||
** You may obtain a copy of the License at
|
||||
**
|
||||
** http://www.apache.org/licenses/LICENSE-2.0
|
||||
**
|
||||
** Unless required by applicable law or agreed to in writing, software
|
||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
** See the License for the specific language governing permissions and
|
||||
** limitations under the License.
|
||||
*/
|
||||
-->
|
||||
<resources>
|
||||
<!-- The width that is used when creating thumbnails of applications. -->
|
||||
<dimen name="thumbnail_width">360dp</dimen>
|
||||
<!-- The height that is used when creating thumbnails of applications. -->
|
||||
<dimen name="thumbnail_height">360dp</dimen>
|
||||
<!-- Default height of an action bar. -->
|
||||
<dimen name="action_bar_default_height">56dip</dimen>
|
||||
<!-- Vertical padding around action bar icons. -->
|
||||
<dimen name="action_bar_icon_vertical_padding">4dip</dimen>
|
||||
<!-- Text size for action bar titles -->
|
||||
<dimen name="action_bar_title_text_size">18dp</dimen>
|
||||
<!-- Text size for action bar subtitles -->
|
||||
<dimen name="action_bar_subtitle_text_size">14dp</dimen>
|
||||
<!-- Top margin for action bar subtitles -->
|
||||
<dimen name="action_bar_subtitle_top_margin">-3dp</dimen>
|
||||
<!-- Bottom margin for action bar subtitles -->
|
||||
<dimen name="action_bar_subtitle_bottom_margin">9dip</dimen>
|
||||
|
||||
<!-- Size of clock font in LockScreen. -->
|
||||
<dimen name="keyguard_pattern_unlock_clock_font_size">112sp</dimen>
|
||||
|
||||
<!-- Size of lockscreen outerring on unsecure unlock LockScreen -->
|
||||
<dimen name="keyguard_lockscreen_outerring_diameter">364dp</dimen>
|
||||
|
||||
<!-- Copied from SysUI's @dimen/navigation_key_width for the embedded nav bar in the IME -->
|
||||
<dimen name="input_method_navigation_key_width">128dp</dimen>
|
||||
<!-- Copied from SysUI's @dimen/navigation_key_padding for the embedded nav bar in the IME -->
|
||||
<dimen name="input_method_navigation_key_padding">25dp</dimen>
|
||||
|
||||
<!-- Height of FaceUnlock view in keyguard -->
|
||||
<dimen name="face_unlock_height">430dip</dimen>
|
||||
|
||||
<!-- target placement radius for GlowPadView. Should be 1/2 of outerring diameter. -->
|
||||
<dimen name="glowpadview_target_placement_radius">182dip</dimen>
|
||||
|
||||
<!-- Size of status line font in LockScreen. -->
|
||||
<dimen name="keyguard_pattern_unlock_status_line_font_size">14sp</dimen>
|
||||
|
||||
<!-- Minimum width for an action button in the menu area of an action bar -->
|
||||
<dimen name="action_button_min_width">64dip</dimen>
|
||||
|
||||
<!-- The platform's desired fixed width for a dialog along the major axis
|
||||
(the screen is in landscape). This may be either a fraction or a dimension.-->
|
||||
<item type="dimen" name="dialog_fixed_width_major">60%</item>
|
||||
<!-- The platform's desired fixed width for a dialog along the minor axis
|
||||
(the screen is in portrait). This may be either a fraction or a dimension.-->
|
||||
<item type="dimen" name="dialog_fixed_width_minor">90%</item>
|
||||
<!-- The platform's desired fixed height for a dialog along the major axis
|
||||
(the screen is in portrait). This may be either a fraction or a dimension.-->
|
||||
<item type="dimen" name="dialog_fixed_height_major">60%</item>
|
||||
<!-- The platform's desired fixed height for a dialog along the minor axis
|
||||
(the screen is in landscape). This may be either a fraction or a dimension.-->
|
||||
<item type="dimen" name="dialog_fixed_height_minor">90%</item>
|
||||
|
||||
<!-- Height of the bottom navigation bar in portrait; on sw600dp devices
|
||||
this is a bit taller -->
|
||||
<dimen name="navigation_bar_height_portrait">56dp</dimen>
|
||||
|
||||
<!-- Preference fragment padding, sides -->
|
||||
<dimen name="preference_fragment_padding_side">24dp</dimen>
|
||||
<dimen name="preference_screen_header_padding_side">24dip</dimen>
|
||||
|
||||
<!-- Keyguard dimensions -->
|
||||
<!-- Size of the clock font in keyguard's status view -->
|
||||
<dimen name="kg_status_clock_font_size">141dp</dimen>
|
||||
|
||||
<!-- Size of the date font in keyguard's status view -->
|
||||
<dimen name="kg_status_date_font_size">25.5dp</dimen>
|
||||
|
||||
<!-- Size of the generic status lines keyguard's status view -->
|
||||
<dimen name="kg_status_line_font_size">16sp</dimen>
|
||||
|
||||
<!-- Top margin for the clock view -->
|
||||
<dimen name="kg_clock_top_margin">0dp</dimen>
|
||||
|
||||
<!-- Size of margin on the right of keyguard's status view -->
|
||||
<dimen name="kg_status_line_font_right_margin">50dp</dimen>
|
||||
|
||||
<!-- Horizontal padding for the widget pager -->
|
||||
<dimen name="kg_widget_pager_horizontal_padding">24dp</dimen>
|
||||
|
||||
<!-- Top padding for the widget pager -->
|
||||
<dimen name="kg_widget_pager_top_padding">0dp</dimen>
|
||||
|
||||
<!-- Bottom padding for the widget pager -->
|
||||
<dimen name="kg_widget_pager_bottom_padding">0dp</dimen>
|
||||
|
||||
<!-- Top margin for the runway lights. We add a negative margin in large
|
||||
devices to account for the widget pager padding -->
|
||||
<dimen name="kg_runway_lights_top_margin">-10dp</dimen>
|
||||
|
||||
<!-- Margin around the various security views -->
|
||||
<dimen name="keyguard_muliuser_selector_margin">12dp</dimen>
|
||||
|
||||
<!-- width of ImmersiveModeConfirmation (-1 for match_parent) -->
|
||||
<dimen name="immersive_mode_cling_width">380dp</dimen>
|
||||
|
||||
<dimen name="floating_toolbar_preferred_width">544dp</dimen>
|
||||
|
||||
<dimen name="chooser_width">624dp</dimen>
|
||||
|
||||
</resources>
|
||||
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2014 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<resources>
|
||||
|
||||
<!-- Use the default title sizes on tablets. -->
|
||||
<dimen name="text_size_title_material_toolbar">20dp</dimen>
|
||||
<!-- Use the default subtitle sizes on tablets. -->
|
||||
<dimen name="text_size_subtitle_material_toolbar">16dp</dimen>
|
||||
<!-- Default height of an action bar. -->
|
||||
<dimen name="action_bar_default_height_material">64dp</dimen>
|
||||
<!-- Default content inset of an action bar. -->
|
||||
<dimen name="action_bar_content_inset_material">24dp</dimen>
|
||||
<!-- Default content inset of an action bar with navigation present. -->
|
||||
<dimen name="action_bar_content_inset_with_nav">80dp</dimen>
|
||||
|
||||
<!-- Default start padding of an action bar. -->
|
||||
<dimen name="action_bar_default_padding_start_material">8dp</dimen>
|
||||
<!-- Default end padding of an action bar. -->
|
||||
<dimen name="action_bar_default_padding_end_material">8dp</dimen>
|
||||
</resources>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
/*
|
||||
** Copyright 2012, The Android Open Source Project
|
||||
**
|
||||
** Licensed under the Apache License, Version 2.0 (the "License");
|
||||
** you may not use this file except in compliance with the License.
|
||||
** You may obtain a copy of the License at
|
||||
**
|
||||
** http://www.apache.org/licenses/LICENSE-2.0
|
||||
**
|
||||
** Unless required by applicable law or agreed to in writing, software
|
||||
** distributed under the License is distributed on an "AS IS" BASIS,
|
||||
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
** See the License for the specific language governing permissions and
|
||||
** limitations under the License.
|
||||
*/
|
||||
-->
|
||||
<resources>
|
||||
<integer name="kg_carousel_angle">60</integer>
|
||||
</resources>
|
||||
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Copyright (C) 2010 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<resources>
|
||||
<style name="Widget.Holo.TabWidget" parent="Widget.TabWidget">
|
||||
<item name="android:tabStripLeft">@null</item>
|
||||
<item name="android:tabStripRight">@null</item>
|
||||
<item name="android:tabStripEnabled">false</item>
|
||||
<item name="android:divider">?android:attr/dividerVertical</item>
|
||||
<item name="android:showDividers">middle</item>
|
||||
<item name="android:dividerPadding">8dip</item>
|
||||
<item name="android:measureWithLargestChild">true</item>
|
||||
<item name="android:tabLayout">@android:layout/tab_indicator_holo</item>
|
||||
</style>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user