Credits to @TheOnlyAnil-@Firelord[^stackoverflow]
-
Requirements: a) stock recovery + rooted phone b) custom recovery
-
Files changed:
import com.google.android.gms.common.GoogleApiAvailability | |
import com.google.android.gms.tasks.Task | |
import splitties.init.appCtx | |
import kotlin.coroutines.experimental.suspendCoroutine | |
val googleApiAvailability = GoogleApiAvailability.getInstance()!! | |
inline val playServicesAvailability get() = googleApiAvailability.isGooglePlayServicesAvailable(appCtx) | |
@JvmName("awaitVoid") | |
suspend fun Task<Void>.await() = suspendCoroutine<Unit> { continuation -> |
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<color name="red_500_main">#f44336</color> | |
<color name="red_50">#ffebee</color> | |
<color name="red_100">#ffcdd2</color> | |
<color name="red_200">#ef9a9a</color> | |
<color name="red_300">#e57373</color> | |
<color name="red_400">#ef5350</color> | |
<color name="red_500">#f44336</color> | |
<color name="red_600">#e53935</color> |
/** | |
* Copyright 2015 Bartosz Lipinski | |
* | |
* 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 |
//wearversion | |
//wearlog | |
//wearvoiceinputenable | |
//wearvoiceinputdisable | |
//weargoogleapi | |
//assert | |
//pushassert | |
//uplog | |
//upcrash | |
//switchnotificationstatus |
import android.annotation.SuppressLint; | |
import android.content.Context; | |
import android.support.v4.view.MotionEventCompat; | |
import android.view.InputDevice; | |
import android.view.MotionEvent; | |
import android.view.View; | |
import android.widget.HorizontalScrollView; | |
import android.widget.ScrollView; | |
/** |
name: cnbeta1 | |
version: 1 | |
handle: | |
- rewrite: if ( path ~ "^(.*)\.png$" ) goto "img.php?url=$1.png" | |
- rewrite: if ( path ~ "^(.*)\.gif$" ) goto "img.php?url=$1.gif" | |
- rewrite: if ( path ~ "^(.*)\.jpg$" ) goto "img.php?url=$1.jpg" | |
- rewrite: if ( path ~ "^(.*)\.jpeg$" ) goto "img.php?url=$1.jpeg" |
Unless specified otherwise, all of the below tinting applies to both Lollipop and pre-Lollipop using AppCompat v21. To use the support version of these attributes, remove the android namespace. For instance, "android:colorControlNormal" becomes "colorControlNormal". These attributes will be propagated to their corresponding attributes within the android namespace for devices running Lollipop. Any exceptions to this will be noted by including the "android:" prefix. | |
All Clickable Views: | |
----------- | |
* ripple effect (Lollipop only) -- "colorControlHighlight" | |
Status Bar: | |
------------ | |
* background (Lollipop only) - "colorPrimaryDark" |
use the build in sizes like @dimen/text_size_body_2_material
or style/TextAppearance.Material.Headline
.
Simple helper file for standard text sizes in material design. The sizes are provided by the material design documentation https://www.google.com/design/spec/style/typography.html#typography-roboto