Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
62acc17e
Commit
62acc17e
authored
Feb 02, 2019
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support API 16 (Android 4.1)
Because why not
parent
9fbe5895
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
125 additions
and
97 deletions
+125
-97
LocaleManager.java
...c/main/java/com/topjohnwu/magisk/utils/LocaleManager.java
+9
-3
Utils.java
app-core/src/main/java/com/topjohnwu/magisk/utils/Utils.java
+1
-1
SuRequestActivity.java
...src/full/java/com/topjohnwu/magisk/SuRequestActivity.java
+8
-2
StringListAdapter.java
...java/com/topjohnwu/magisk/adapters/StringListAdapter.java
+1
-1
SettingsFragment.java
...java/com/topjohnwu/magisk/fragments/SettingsFragment.java
+4
-0
activity_request.xml
app/src/full/res/layout/activity_request.xml
+39
-38
fragment_magisk.xml
app/src/full/res/layout/fragment_magisk.xml
+15
-10
info_item_row.xml
app/src/full/res/layout/info_item_row.xml
+20
-19
list_item_policy.xml
app/src/full/res/layout/list_item_policy.xml
+7
-6
list_item_repo.xml
app/src/full/res/layout/list_item_repo.xml
+9
-8
list_item_sulog_group.xml
app/src/full/res/layout/list_item_sulog_group.xml
+1
-0
section.xml
app/src/full/res/layout/section.xml
+5
-4
update_card.xml
app/src/full/res/layout/update_card.xml
+4
-3
build.gradle
build.gradle
+1
-1
flash_script.sh
scripts/flash_script.sh
+1
-1
No files found.
app-core/src/main/java/com/topjohnwu/magisk/utils/LocaleManager.java
View file @
62acc17e
...
...
@@ -100,9 +100,13 @@ public class LocaleManager {
}
public
static
Context
getLocaleContext
(
Context
context
,
Locale
locale
)
{
if
(
Build
.
VERSION
.
SDK_INT
>=
17
)
{
Configuration
config
=
new
Configuration
(
context
.
getResources
().
getConfiguration
());
config
.
setLocale
(
locale
);
return
context
.
createConfigurationContext
(
config
);
}
else
{
return
context
;
}
}
public
static
Context
getLocaleContext
(
Locale
locale
)
{
...
...
@@ -114,6 +118,8 @@ public class LocaleManager {
}
public
static
void
loadAvailableLocales
(
@StringRes
int
compareId
)
{
if
(
Build
.
VERSION
.
SDK_INT
<
17
)
return
;
Shell
.
EXECUTOR
.
execute
(()
->
{
locales
=
new
ArrayList
<>();
HashSet
<
String
>
set
=
new
HashSet
<>();
...
...
app-core/src/main/java/com/topjohnwu/magisk/utils/Utils.java
View file @
62acc17e
...
...
@@ -77,7 +77,7 @@ public class Utils {
public
static
String
getAppLabel
(
ApplicationInfo
info
,
PackageManager
pm
)
{
try
{
if
(
info
.
labelRes
>
0
)
{
if
(
info
.
labelRes
>
0
&&
Build
.
VERSION
.
SDK_INT
>=
17
)
{
Resources
res
=
pm
.
getResourcesForApplication
(
info
);
Configuration
config
=
new
Configuration
();
config
.
setLocale
(
LocaleManager
.
locale
);
...
...
app/src/full/java/com/topjohnwu/magisk/SuRequestActivity.java
View file @
62acc17e
...
...
@@ -4,6 +4,7 @@ import android.content.Intent;
import
android.content.SharedPreferences
;
import
android.content.pm.PackageManager
;
import
android.hardware.fingerprint.FingerprintManager
;
import
android.os.Build
;
import
android.os.Bundle
;
import
android.os.CountDownTimer
;
import
android.text.TextUtils
;
...
...
@@ -127,8 +128,13 @@ public class SuRequestActivity extends BaseActivity {
appIcon
.
setImageDrawable
(
policy
.
info
.
loadIcon
(
pm
));
appNameView
.
setText
(
policy
.
appName
);
packageNameView
.
setText
(
policy
.
packageName
);
if
(
Build
.
VERSION
.
SDK_INT
>=
17
)
{
warning
.
setCompoundDrawablesRelativeWithIntrinsicBounds
(
AppCompatResources
.
getDrawable
(
this
,
R
.
drawable
.
ic_warning
),
null
,
null
,
null
);
}
else
{
warning
.
setCompoundDrawablesWithIntrinsicBounds
(
AppCompatResources
.
getDrawable
(
this
,
R
.
drawable
.
ic_warning
),
null
,
null
,
null
);
}
ArrayAdapter
<
CharSequence
>
adapter
=
ArrayAdapter
.
createFromResource
(
this
,
R
.
array
.
allow_timeout
,
android
.
R
.
layout
.
simple_spinner_item
);
...
...
app/src/full/java/com/topjohnwu/magisk/adapters/StringListAdapter.java
View file @
62acc17e
...
...
@@ -73,7 +73,7 @@ public abstract class StringListAdapter<VH extends StringListAdapter.ViewHolder>
((
Activity
)
rv
.
getContext
()).
getWindowManager
()
.
getDefaultDisplay
().
getMetrics
(
displayMetrics
);
screenWidth
=
displayMetrics
.
widthPixels
;
padding
=
rv
.
getPadding
Start
()
+
rv
.
getPaddingEnd
();
padding
=
rv
.
getPadding
Left
()
+
rv
.
getPaddingRight
();
this
.
rv
=
rv
;
}
...
...
app/src/full/java/com/topjohnwu/magisk/fragments/SettingsFragment.java
View file @
62acc17e
...
...
@@ -111,6 +111,10 @@ public class SettingsFragment extends BasePreferenceFragment implements Topic.Su
setSummary
();
// Remove language setting when API < 17
if
(
Build
.
VERSION
.
SDK_INT
<
17
)
generalCatagory
.
removePreference
(
findPreference
(
Config
.
Key
.
LOCALE
));
// Disable dangerous settings in secondary user
if
(
Const
.
USER_ID
>
0
)
{
suCategory
.
removePreference
(
multiuserConfig
);
...
...
app/src/full/res/layout/activity_request.xml
View file @
62acc17e
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:id=
"@+id/su_popup"
tools:context=
".SuRequestActivity"
android:layout_height=
"wrap_content"
android:layout_width=
"wrap_content"
android:
minWidth=
"350dp
"
android:
layout_height=
"wrap_content
"
android:layout_gravity=
"center"
android:background=
"?attr/colorBackgroundFloating"
android:minWidth=
"350dp"
android:orientation=
"vertical"
android:background=
"?attr/colorBackgroundFloating
"
>
tools:context=
".SuRequestActivity
"
>
<TextView
android:
text=
"@string/su_
request_title"
android:
id=
"@+id/
request_title"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textAppearance=
"?android:attr/textAppearanceLarge"
android:id=
"@+id/request_title"
android:gravity=
"center_horizontal"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"20dp"
android:layout_marginBottom=
"5dp"
/>
android:layout_marginBottom=
"5dp"
android:gravity=
"center_horizontal"
android:text=
"@string/su_request_title"
android:textAppearance=
"?android:attr/textAppearanceLarge"
/>
<LinearLayout
android:orientation=
"horizontal"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_horizontal"
android:layout_marginTop=
"10dp"
android:layout_marginBottom=
"10dp"
android:orientation=
"horizontal"
android:paddingStart=
"10dp"
android:paddingEnd=
"10dp"
android:layout_gravity=
"center_horizontal"
>
android:paddingEnd=
"10dp"
>
<ImageView
android:id=
"@+id/app_icon"
android:layout_weight=
"0"
android:layout_marginEnd=
"10dp"
android:layout_height=
"50dp"
android:layout_width=
"50dp"
android:layout_height=
"50dp"
android:layout_gravity=
"center_vertical"
android:layout_marginStart=
"5dp"
android:layout_gravity=
"center_vertical"
/>
android:layout_marginLeft=
"5dp"
android:layout_marginEnd=
"10dp"
android:layout_marginRight=
"10dp"
android:layout_weight=
"0"
/>
<LinearLayout
android:orientation=
"vertical"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:gravity=
"center_vertical"
android:
layout_
gravity=
"center_vertical"
android:layout_weight=
"1"
android:layout_gravity=
"center_vertical"
>
android:gravity=
"center_vertical"
android:orientation=
"vertical"
>
<TextView
android:id=
"@+id/app_name"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:
minWidth=
"200dp
"
android:
ellipsize=
"end
"
android:maxWidth=
"300dp"
android:maxLines=
"1"
android:ellipsize=
"end"
android:textColor=
"?android:textColorPrimary"
android:minWidth=
"200dp"
android:textAppearance=
"?android:attr/textAppearanceMedium"
android:
id=
"@+id/app_name
"
/>
android:
textColor=
"?android:textColorPrimary
"
/>
<TextView
android:id=
"@+id/package_name"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:
minWidth=
"200dp
"
android:
ellipsize=
"end
"
android:maxWidth=
"300dp"
android:maxLines=
"1"
android:ellipsize=
"end"
android:textColor=
"?android:textColorSecondary"
android:id=
"@+id/package_name"
/>
android:minWidth=
"200dp"
android:textColor=
"?android:textColorSecondary"
/>
</LinearLayout>
</LinearLayout>
<Spinner
android:id=
"@+id/timeout"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:id=
"@+id/timeout"
android:layout_gravity=
"center_horizontal"
/>
<TextView
android:id=
"@+id/warning"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"?android:textColorSecondary"
android:text=
"@string/su_warning"
android:layout_gravity=
"center_horizontal"
android:layout_margin=
"5dp"
android:drawablePadding=
"10dp"
/>
android:drawablePadding=
"10dp"
android:text=
"@string/su_warning"
android:textColor=
"?android:textColorSecondary"
/>
<LinearLayout
style=
"?android:buttonBarStyle"
android:orientation=
"horizontal"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:gravity=
"bottom"
android:orientation=
"horizontal"
android:paddingLeft=
"30dp"
android:paddingRight=
"30dp"
>
<Button
android:id=
"@+id/deny_btn"
style=
"?android:buttonBarButtonStyle"
android:text=
"@string/deny_with_str"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:
id=
"@+id/deny_btn
"
android:
layout_weight=
"1
"
/>
android:
layout_weight=
"1
"
android:
text=
"@string/deny_with_str
"
/>
<Button
android:id=
"@+id/grant_btn"
...
...
app/src/full/res/layout/fragment_magisk.xml
View file @
62acc17e
<?xml version="1.0" encoding="utf-8"?>
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
<androidx.swiperefreshlayout.widget.SwipeRefreshLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
android:id=
"@+id/swipeRefreshLayout"
android:layout_width=
"match_parent"
...
...
@@ -42,6 +41,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"0dp"
android:layout_marginEnd=
"16dp"
android:layout_marginRight=
"16dp"
app:layout_constraintBottom_toBottomOf=
"@+id/app_name"
app:layout_constraintEnd_toStartOf=
"@+id/app_name"
app:layout_constraintHorizontal_bias=
"0.42"
...
...
@@ -110,6 +110,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"16dp"
android:layout_marginLeft=
"16dp"
android:tint=
"?attr/imageColorTint"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintStart_toEndOf=
"@+id/title"
...
...
@@ -173,6 +174,7 @@
android:layout_height=
"30dp"
android:layout_marginTop=
"12dp"
android:layout_marginEnd=
"24dp"
android:layout_marginRight=
"24dp"
android:layout_marginBottom=
"12dp"
android:tint=
"@color/green500"
app:layout_constraintBottom_toBottomOf=
"parent"
...
...
@@ -198,6 +200,7 @@
android:layout_width=
"25dp"
android:layout_height=
"25dp"
android:layout_marginStart=
"24dp"
android:layout_marginLeft=
"24dp"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintStart_toEndOf=
"@+id/safetyNet_status"
app:layout_constraintTop_toTopOf=
"parent"
...
...
@@ -226,6 +229,7 @@
android:layout_width=
"25dp"
android:layout_height=
"25dp"
android:layout_marginEnd=
"8dp"
android:layout_marginRight=
"8dp"
app:layout_constraintBottom_toBottomOf=
"@+id/cts_status"
app:layout_constraintEnd_toStartOf=
"@+id/cts_status"
app:layout_constraintTop_toTopOf=
"@+id/cts_status"
/>
...
...
@@ -245,6 +249,7 @@
android:layout_width=
"25dp"
android:layout_height=
"25dp"
android:layout_marginEnd=
"8dp"
android:layout_marginRight=
"8dp"
app:layout_constraintBottom_toBottomOf=
"@+id/basic_status"
app:layout_constraintEnd_toStartOf=
"@+id/basic_status"
app:layout_constraintTop_toTopOf=
"@+id/basic_status"
/>
...
...
@@ -286,11 +291,11 @@
android:id=
"@+id/paypal"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:gravity=
"center_horizontal"
android:background=
"?android:attr/selectableItemBackground"
android:clickable=
"true"
android:focusable=
"true"
android:background=
"?android:attr/selectableItemBackground"
android:gravity=
"center_horizontal"
android:orientation=
"horizontal"
app:layout_constraintEnd_toStartOf=
"@+id/patreon"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toTopOf=
"parent"
>
...
...
@@ -317,11 +322,11 @@
android:id=
"@+id/patreon"
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:orientation=
"horizontal"
android:gravity=
"center_horizontal"
android:background=
"?android:attr/selectableItemBackground"
android:clickable=
"true"
android:focusable=
"true"
android:background=
"?android:attr/selectableItemBackground"
android:gravity=
"center_horizontal"
android:orientation=
"horizontal"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toEndOf=
"@+id/paypal"
app:layout_constraintTop_toTopOf=
"parent"
>
...
...
@@ -380,9 +385,9 @@
<ImageView
android:layout_width=
"35dp"
android:layout_height=
"35dp"
android:layout_gravity=
"center_horizontal"
android:layout_margin=
"10dp"
android:tint=
"?attr/imageColorTint"
android:layout_gravity=
"center_horizontal"
app:srcCompat=
"@drawable/ic_github"
/>
</FrameLayout>
...
...
@@ -401,9 +406,9 @@
<ImageView
android:layout_width=
"35dp"
android:layout_height=
"35dp"
android:layout_gravity=
"center_horizontal"
android:layout_margin=
"10dp"
android:tint=
"?attr/imageColorTint"
android:layout_gravity=
"center_horizontal"
app:srcCompat=
"@drawable/ic_xda"
/>
</FrameLayout>
...
...
app/src/full/res/layout/info_item_row.xml
View file @
62acc17e
<?xml version="1.0" encoding="utf-8"?>
<!--
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright 2016 dvdandroid
~
~ Licensed under the Apache License, Version 2.0 (the "License");
...
...
@@ -15,12 +14,13 @@
~ limitations under the License.
-->
<LinearLayout
android:id=
"@+id/container
"
xmlns:android=
"http://schemas.android.com/apk/res/android
"
<LinearLayout
xmlns:android=
"http://schemas.android.com/apk/res/android
"
android:id=
"@+id/container
"
android:layout_width=
"fill_parent"
android:layout_height=
"wrap_content"
android:background=
"?android:attr/selectableItemBackground"
android:clickable=
"true"
android:focusable=
"true"
android:gravity=
"center_vertical"
android:minHeight=
"48dp"
android:orientation=
"horizontal"
...
...
@@ -31,28 +31,29 @@
android:id=
"@android:id/icon"
android:layout_width=
"24dp"
android:layout_height=
"24dp"
android:tint=
"#757575"
/>
android:tint=
"#757575"
/>
<LinearLayout
android:layout_width=
"fill_parent"
android:layout_height=
"wrap_content"
android:layout_marginStart=
"32dp"
android:layout_marginLeft=
"32dp"
android:orientation=
"vertical"
android:padding
Bottom
=
"8dp"
android:padding
Top
=
"8dp"
>
android:padding
Top
=
"8dp"
android:padding
Bottom
=
"8dp"
>
<TextView
android:id=
"@android:id/title"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textAppearance=
"@style/TextAppearance.AppCompat.Subhead"
/>
android:textAppearance=
"@style/TextAppearance.AppCompat.Subhead"
/>
<TextView
android:id=
"@android:id/summary"
android:visibility=
"gone"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textAppearance=
"@style/TextAppearance.AppCompat.Caption"
/>
android:textAppearance=
"@style/TextAppearance.AppCompat.Caption"
android:visibility=
"gone"
/>
</LinearLayout>
...
...
app/src/full/res/layout/list_item_policy.xml
View file @
62acc17e
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView
xmlns:android=
"http://schemas.android.com/apk/res/android"
<androidx.cardview.widget.CardView
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
style=
"?attr/cardStyle"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_marginBottom=
"@dimen/card_vertical_margin"
android:layout_marginEnd=
"@dimen/card_horizontal_margin"
android:layout_marginStart=
"@dimen/card_horizontal_margin"
android:layout_marginTop=
"@dimen/card_vertical_margin"
android:layout_marginEnd=
"@dimen/card_horizontal_margin"
android:layout_marginBottom=
"@dimen/card_vertical_margin"
android:minHeight=
"?android:attr/listPreferredItemHeight"
app:cardCornerRadius=
"@dimen/card_corner_radius"
app:cardElevation=
"@dimen/card_elevation"
>
...
...
@@ -63,8 +61,8 @@
android:textColor=
"@android:color/tertiary_text_dark"
android:textIsSelectable=
"false"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintStart_toStartOf=
"@id/app_name"
app:layout_constraintEnd_toStartOf=
"@id/arrow"
app:layout_constraintStart_toStartOf=
"@id/app_name"
app:layout_constraintTop_toBottomOf=
"@id/app_name"
/>
<ImageView
...
...
@@ -72,6 +70,7 @@
android:layout_width=
"20dp"
android:layout_height=
"20dp"
android:layout_marginStart=
"5dp"
android:layout_marginLeft=
"5dp"
android:tint=
"?attr/imageColorTint"
app:layout_constraintBottom_toBottomOf=
"@+id/package_name"
app:layout_constraintEnd_toEndOf=
"@+id/app_name"
...
...
@@ -122,6 +121,7 @@
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_marginStart=
"16dp"
android:layout_marginLeft=
"16dp"
android:tint=
"@color/icon_grey"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toStartOf=
"@+id/notification_switch"
...
...
@@ -166,6 +166,7 @@
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_marginEnd=
"16dp"
android:layout_marginRight=
"16dp"
android:checked=
"false"
android:gravity=
"center_vertical"
app:layout_constraintBottom_toBottomOf=
"parent"
...
...
app/src/full/res/layout/list_item_repo.xml
View file @
62acc17e
...
...
@@ -5,10 +5,10 @@
android:layout_width=
"fill_parent"
android:layout_height=
"wrap_content"
android:layout_gravity=
"center"
android:layout_marginBottom=
"@dimen/card_vertical_margin"
android:layout_marginEnd=
"@dimen/card_horizontal_margin"
android:layout_marginStart=
"@dimen/card_horizontal_margin"
android:layout_marginTop=
"@dimen/card_vertical_margin"
android:layout_marginEnd=
"@dimen/card_horizontal_margin"
android:layout_marginBottom=
"@dimen/card_vertical_margin"
android:minHeight=
"?android:attr/listPreferredItemHeight"
app:cardCornerRadius=
"@dimen/card_corner_radius"
app:cardElevation=
"@dimen/card_elevation"
>
...
...
@@ -79,17 +79,17 @@
android:textColor=
"@android:color/tertiary_text_dark"
android:textStyle=
"bold|italic"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"@+id/title"
app:layout_constraintStart_toStartOf=
"@+id/title"
app:layout_constraintTop_toBottomOf=
"@+id/description"
app:layout_constraintEnd_toEndOf=
"@+id/title"
/>
app:layout_constraintTop_toBottomOf=
"@+id/description"
/>
<View
android:id=
"@+id/info_layout"
android:layout_width=
"0dp"
android:layout_height=
"0dp"
android:background=
"?android:attr/selectableItemBackground"
android:clickable=
"true"
android:focusable=
"true"
android:foreground=
"?android:attr/selectableItemBackground"
app:layout_constraintBottom_toBottomOf=
"@+id/update_time"
app:layout_constraintEnd_toEndOf=
"@+id/title"
app:layout_constraintStart_toStartOf=
"@+id/title"
...
...
@@ -101,16 +101,17 @@
android:layout_height=
"wrap_content"
android:layout_gravity=
"center_vertical"
android:layout_marginStart=
"8dp"
android:layout_marginLeft=
"8dp"
android:background=
"?android:attr/selectableItemBackground"
android:clickable=
"true"
android:focusable=
"true"
android:foreground=
"?android:attr/selectableItemBackground"
android:gravity=
"end"
android:tint=
"@color/icon_grey"
app:srcCompat=
"@drawable/ic_file_download_black"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toEndOf=
"@+id/title"
app:layout_constraintTop_toTopOf=
"parent"
/>
app:layout_constraintTop_toTopOf=
"parent"
app:srcCompat=
"@drawable/ic_file_download_black"
/>
</androidx.constraintlayout.widget.ConstraintLayout>
...
...
app/src/full/res/layout/list_item_sulog_group.xml
View file @
62acc17e
...
...
@@ -14,6 +14,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"25dp"
android:layout_marginEnd=
"10dp"
android:layout_marginRight=
"10dp"
android:tint=
"?attr/imageColorTint"
app:srcCompat=
"@drawable/ic_arrow"
/>
...
...
app/src/full/res/layout/section.xml
View file @
62acc17e
<?xml version="1.0" encoding="utf-8"?>
<TextView
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:id=
"@+id/section_text"
android:layout_width=
"match_parent"
android:layout_height=
"48dp"
android:background=
"@android:color/transparent"
android:gravity=
"center_vertical"
android:maxLines=
"1"
android:paddingStart=
"16dp"
android:paddingLeft=
"16dp"
android:textAllCaps=
"true"
android:textColor=
"?colorAccent"
android:background=
"@android:color/transparent"
android:textSize=
"16sp"
android:id=
"@+id/section_text"
android:textStyle=
"bold"
android:maxLines=
"1"
/>
\ No newline at end of file
android:textStyle=
"bold"
/>
\ No newline at end of file
app/src/full/res/layout/update_card.xml
View file @
62acc17e
<?xml version="1.0" encoding="utf-8"?>
<androidx.cardview.widget.CardView
xmlns:android=
"http://schemas.android.com/apk/res/android"
<androidx.cardview.widget.CardView
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
style=
"?attr/cardStyle"
android:layout_width=
"match_parent"
...
...
@@ -47,6 +46,7 @@
android:layout_width=
"0dp"
android:layout_height=
"wrap_content"
android:layout_marginEnd=
"8dp"
android:layout_marginRight=
"8dp"
android:maxLines=
"1"
android:paddingTop=
"3dp"
android:paddingBottom=
"3dp"
...
...
@@ -63,8 +63,8 @@
android:layout_height=
"wrap_content"
android:maxLines=
"1"
android:text=
"@string/checking_for_updates"
app:autoSizeTextType=
"uniform"
app:autoSizeMinTextSize=
"1sp"
app:autoSizeTextType=
"uniform"
app:layout_constraintEnd_toEndOf=
"@+id/status"
app:layout_constraintStart_toStartOf=
"@+id/status"
app:layout_constraintTop_toBottomOf=
"@+id/status"
/>
...
...
@@ -99,6 +99,7 @@
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginEnd=
"8dp"
android:layout_marginRight=
"8dp"
android:text=
"@string/install"
android:visibility=
"gone"
app:layout_constraintBottom_toBottomOf=
"parent"
...
...
build.gradle
View file @
62acc17e
...
...
@@ -34,7 +34,7 @@ subprojects {
defaultConfig
{
if
(
minSdkVersion
==
null
)
minSdkVersion
1
7
minSdkVersion
1
6
targetSdkVersion
28
}
...
...
scripts/flash_script.sh
View file @
62acc17e
...
...
@@ -57,7 +57,7 @@ ui_print "- Target image: $BOOTIMAGE"
# Detect version and architecture
api_level_arch_detect
[
$API
-lt
1
7
]
&&
abort
"! Magisk is only for Jellybean MR1 and above (4.2
+)"
[
$API
-lt
1
6
]
&&
abort
"! Magisk is only for Jellybean and above (4.1
+)"
ui_print
"- Device platform:
$ARCH
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment