pig tv support
This commit is contained in:
@@ -15,18 +15,19 @@
|
||||
<application
|
||||
android:name=".App"
|
||||
android:allowBackup="true"
|
||||
android:banner="@mipmap/ic_banner"
|
||||
android:enableOnBackInvokedCallback="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:icon="@mipmap/pig_launcher"
|
||||
android:label="@string/app_name_pig"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/Theme.Videobox"
|
||||
tools:ignore="UnusedAttribute">
|
||||
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:banner="@mipmap/ic_banner"
|
||||
android:configChanges="screenSize|screenLayout|orientation|smallestScreenSize"
|
||||
android:exported="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
android:supportsPictureInPicture="true">
|
||||
|
||||
<intent-filter>
|
||||
@@ -61,6 +62,7 @@
|
||||
|
||||
<activity-alias
|
||||
android:name=".PiggyActivity"
|
||||
android:banner="@mipmap/ic_pig_banner"
|
||||
android:enabled="false"
|
||||
android:exported="true"
|
||||
android:icon="@mipmap/pig_launcher"
|
||||
@@ -72,6 +74,11 @@
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
|
||||
</intent-filter>
|
||||
|
||||
<intent-filter>
|
||||
<action android:name="ru.shadowsparky.vbox.action.OPEN_SAVED_MOVIES" />
|
||||
</intent-filter>
|
||||
@@ -96,7 +103,9 @@
|
||||
android:exported="true">
|
||||
<intent-filter>
|
||||
<action android:name="android.provider.Telephony.SECRET_CODE" />
|
||||
<data android:scheme="android_secret_code" android:host="676767" />
|
||||
<data
|
||||
android:host="676767"
|
||||
android:scheme="android_secret_code" />
|
||||
</intent-filter>
|
||||
</receiver>
|
||||
</application>
|
||||
|
||||
+1
@@ -6,6 +6,7 @@ import android.content.Context
|
||||
import android.content.Intent
|
||||
import android.content.pm.PackageManager
|
||||
|
||||
// adb shell am broadcast -a android.provider.Telephony.SECRET_CODE -d android_secret_code://676767
|
||||
class SecretCodeReceiver : BroadcastReceiver() {
|
||||
override fun onReceive(context: Context?, intent: Intent?) {
|
||||
if (context == null || intent?.action != "android.provider.Telephony.SECRET_CODE") return
|
||||
|
||||
@@ -0,0 +1,128 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="320dp"
|
||||
android:height="180dp"
|
||||
android:viewportWidth="471"
|
||||
android:viewportHeight="458">
|
||||
<group android:scaleX="0.6666667"
|
||||
android:scaleY="0.6666667"
|
||||
android:translateX="78.5"
|
||||
android:translateY="76.333336">
|
||||
<group android:scaleX="0.3470797"
|
||||
android:scaleY="0.6"
|
||||
android:translateX="26.592731"
|
||||
android:translateY="91.6">
|
||||
<path
|
||||
android:pathData="M197.58,203.61C170.88,160.97 122.56,149.44 92.05,188.63C74.25,212.83 70.43,237.04 45,250.87C31.02,258.93 33.56,276.22 50.09,281.99C84.42,294.66 140.36,278.53 168.34,250.87C186.14,233.58 195.04,217.44 197.58,203.61Z"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="7"
|
||||
android:fillColor="#FFE1D8"
|
||||
android:strokeColor="#7C5A50"
|
||||
android:strokeLineCap="round"/>
|
||||
<path
|
||||
android:pathData="M155.94,188.24C126.64,181.34 101.52,196.53 84.78,225.53C73.62,243.48 62.45,258.67 49.89,268.34C76.41,276.63 122.45,268.34 150.36,240.72C167.1,224.15 174.08,204.82 155.94,188.24Z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:startX="91.76"
|
||||
android:startY="174.43"
|
||||
android:endX="161.85"
|
||||
android:endY="291.08"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FFF8B3AD"/>
|
||||
<item android:offset="1" android:color="#FFF2A099"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:pathData="M273.42,203.61C300.12,160.97 348.44,149.44 378.95,188.63C396.75,212.83 400.57,237.04 426,250.87C439.98,258.93 437.44,276.22 420.91,281.99C386.58,294.66 330.64,278.53 302.66,250.87C284.86,233.58 275.96,217.44 273.42,203.61Z"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="7"
|
||||
android:fillColor="#FFE1D8"
|
||||
android:strokeColor="#7C5A50"
|
||||
android:strokeLineCap="round"/>
|
||||
<path
|
||||
android:pathData="M313.06,188.24C342.36,181.34 367.48,196.53 384.23,225.53C395.39,243.48 406.55,258.67 419.11,268.34C392.6,276.63 346.55,268.34 318.64,240.72C301.9,224.15 294.92,204.82 313.06,188.24Z"
|
||||
android:fillColor="#F2AAA3"/>
|
||||
<path
|
||||
android:pathData="M149.68,219.53C149.68,174.25 187.7,150.67 235.5,150.67C283.3,150.67 321.32,174.25 321.32,219.53V258.2C321.32,313.85 281.13,340.26 235.5,340.26C189.88,340.26 149.68,313.85 149.68,258.2V219.53Z"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="7"
|
||||
android:strokeColor="#7C5A50"
|
||||
android:strokeLineCap="round">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:centerX="235.5"
|
||||
android:centerY="210.09"
|
||||
android:gradientRadius="124.5"
|
||||
android:type="radial">
|
||||
<item android:offset="0" android:color="#FFFFEFE8"/>
|
||||
<item android:offset="1" android:color="#FFFFD8CE"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:pathData="M197.96,203.74C203.68,203.74 208.32,199.23 208.32,193.67C208.32,188.11 203.68,183.6 197.96,183.6C192.24,183.6 187.6,188.11 187.6,193.67C187.6,199.23 192.24,203.74 197.96,203.74Z"
|
||||
android:fillColor="#5A4844"/>
|
||||
<path
|
||||
android:pathData="M270.8,203.74C276.52,203.74 281.16,199.23 281.16,193.67C281.16,188.11 276.52,183.6 270.8,183.6C265.08,183.6 260.45,188.11 260.45,193.67C260.45,199.23 265.08,203.74 270.8,203.74Z"
|
||||
android:fillColor="#5A4844"/>
|
||||
<path
|
||||
android:pathData="M237.5,318.3C278.28,318.3 311.34,292.62 311.34,260.93C311.34,229.24 278.28,203.56 237.5,203.56C196.71,203.56 163.65,229.24 163.65,260.93C163.65,292.62 196.71,318.3 237.5,318.3Z"
|
||||
android:strokeLineJoin="round"
|
||||
android:strokeWidth="5"
|
||||
android:strokeColor="#7C5A50"
|
||||
android:strokeLineCap="round">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:centerX="237.5"
|
||||
android:centerY="242.68"
|
||||
android:gradientRadius="88.67"
|
||||
android:type="radial">
|
||||
<item android:offset="0" android:color="#FFFFC4C1"/>
|
||||
<item android:offset="1" android:color="#FFF6A5A5"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:pathData="M204.07,286.38C218.67,286.38 230.51,274.98 230.51,260.93C230.51,246.88 218.67,235.49 204.07,235.49C189.46,235.49 177.62,246.88 177.62,260.93C177.62,274.98 189.46,286.38 204.07,286.38Z"
|
||||
android:fillColor="#4E403D"/>
|
||||
<path
|
||||
android:pathData="M269.93,286.38C284.53,286.38 296.37,274.98 296.37,260.93C296.37,246.88 284.53,235.49 269.93,235.49C255.32,235.49 243.48,246.88 243.48,260.93C243.48,274.98 255.32,286.38 269.93,286.38Z"
|
||||
android:fillColor="#4E403D"/>
|
||||
<path
|
||||
android:pathData="M278.41,274.97C275.1,274.97 272.42,272.29 272.42,268.98V253.02C272.42,249.71 275.1,247.03 278.41,247.03C281.72,247.03 284.4,249.71 284.4,253.02V268.98C284.4,272.29 281.72,274.97 278.41,274.97ZM262.44,274.97C259.14,274.97 256.46,272.29 256.46,268.98V253.02C256.46,249.71 259.14,247.03 262.44,247.03C265.75,247.03 268.43,249.71 268.43,253.02V268.98C268.43,272.29 265.75,274.97 262.44,274.97ZM276.41,268.98C276.41,270.08 277.31,270.98 278.41,270.98C279.51,270.98 280.4,270.08 280.4,268.98V253.02C280.4,251.91 279.51,251.02 278.41,251.02C277.31,251.02 276.41,251.91 276.41,253.02V268.98ZM260.45,268.98C260.45,270.08 261.34,270.98 262.44,270.98C263.55,270.98 264.44,270.08 264.44,268.98V253.02C264.44,251.91 263.55,251.02 262.44,251.02C261.34,251.02 260.45,251.91 260.45,253.02V268.98Z"
|
||||
android:fillColor="#FFD9D0"/>
|
||||
<path
|
||||
android:pathData="M198.66,276.05C197.33,276.9 195.59,275.95 195.59,274.37V248.63C195.59,247.05 197.33,246.1 198.66,246.95L218.88,259.81C220.11,260.6 220.11,262.4 218.88,263.19L198.66,276.05ZM200.3,265.75C200.3,267.33 202.05,268.29 203.38,267.44L210.04,263.19C211.27,262.4 211.27,260.6 210.04,259.81L203.38,255.56C202.05,254.71 200.3,255.67 200.3,257.25V265.75Z"
|
||||
android:fillColor="#FFDAD0"/>
|
||||
</group>
|
||||
|
||||
<group android:scaleX="0.492"
|
||||
android:scaleY="0.14991412"
|
||||
android:translateX="391.2"
|
||||
android:translateY="71.247826">
|
||||
<group android:translateY="133.66406">
|
||||
<path android:pathData="M92.75,-96.890625L92.75,-81.921875Q85.578125,-88.59375,77.453125,-91.890625Q69.328125,-95.203125,60.1875,-95.203125Q42.1875,-95.203125,32.625,-84.203125Q23.0625,-73.203125,23.0625,-52.390625Q23.0625,-31.640625,32.625,-20.640625Q42.1875,-9.640625,60.1875,-9.640625Q69.328125,-9.640625,77.453125,-12.9375Q85.578125,-16.25,92.75,-22.921875L92.75,-8.09375Q85.296875,-3.03125,76.953125,-0.484375Q68.625,2.046875,59.34375,2.046875Q35.515625,2.046875,21.796875,-12.546875Q8.09375,-27.140625,8.09375,-52.390625Q8.09375,-77.703125,21.796875,-92.28125Q35.515625,-106.875,59.34375,-106.875Q68.765625,-106.875,77.09375,-104.375Q85.4375,-101.890625,92.75,-96.890625Z"
|
||||
android:fillColor="#000000"/>
|
||||
<path android:pathData="M127.015625,-36.28125L127.015625,-10.34375L145.4375,-10.34375Q154.29688,-10.34375,158.9375,-13.671875Q163.57812,-17.015625,163.57812,-23.34375Q163.57812,-29.671875,158.9375,-32.96875Q154.29688,-36.28125,145.4375,-36.28125L127.015625,-36.28125ZM127.015625,-68.421875L127.015625,-46.625L144.03125,-46.625Q151.34375,-46.625,155.98438,-49.53125Q160.625,-52.453125,160.625,-57.65625Q160.625,-62.859375,155.98438,-65.640625Q151.34375,-68.421875,144.03125,-68.421875L127.015625,-68.421875ZM114.078125,-78.75L144.875,-78.75Q158.73438,-78.75,166.1875,-73.6875Q173.64062,-68.625,173.64062,-59.28125Q173.64062,-52.03125,169.84375,-47.78125Q166.04688,-43.53125,158.59375,-42.46875Q167.51562,-40.78125,172.4375,-35.4375Q177.35938,-30.09375,177.35938,-22.078125Q177.35938,-11.53125,169.23438,-5.765625Q161.125,0,146.07812,0L114.078125,0L114.078125,-78.75Z"
|
||||
android:fillColor="#000000"/>
|
||||
<path android:pathData="M266.51562,-78.75L266.51562,0L253.64062,0L253.64062,-63.21875L215.67188,0L199.07812,0L199.07812,-78.75L211.95312,-78.75L211.95312,-15.6875L249.84375,-78.75L266.51562,-78.75Z"
|
||||
android:fillColor="#000000"/>
|
||||
<path android:pathData="M292.07812,-78.75L305.09375,-78.75L305.09375,-46.625L347.0625,-46.625L347.0625,-78.75L360.07812,-78.75L360.07812,0L347.0625,0L347.0625,-36.28125L305.09375,-36.28125L305.09375,0L292.07812,0L292.07812,-78.75Z"
|
||||
android:fillColor="#000000"/>
|
||||
<path android:pathData="M417.09375,-69.6875Q406.6875,-69.6875,400.64062,-61.5625Q394.59375,-53.4375,394.59375,-39.3125Q394.59375,-25.171875,400.59375,-17.046875Q406.60938,-8.9375,417.09375,-8.9375Q427.42188,-8.9375,433.46875,-17.09375Q439.51562,-25.25,439.51562,-39.3125Q439.51562,-53.296875,433.46875,-61.484375Q427.42188,-69.6875,417.09375,-69.6875ZM417.09375,-80.65625Q433.96875,-80.65625,443.59375,-69.6875Q453.23438,-58.71875,453.23438,-39.3125Q453.23438,-19.96875,443.59375,-8.953125Q433.96875,2.046875,417.09375,2.046875Q400.14062,2.046875,390.54688,-8.953125Q380.95312,-19.96875,380.95312,-39.3125Q380.95312,-58.71875,390.54688,-69.6875Q400.14062,-80.65625,417.09375,-80.65625Z"
|
||||
android:fillColor="#000000"/>
|
||||
<path android:pathData="M541.9375,-42.609375L541.9375,-36.28125L482.45312,-36.28125Q483.29688,-22.921875,490.5,-15.921875Q497.70312,-8.9375,510.57812,-8.9375Q518.03125,-8.9375,525.0156,-10.765625Q532.0156,-12.59375,538.90625,-16.25L538.90625,-4.015625Q531.9531,-1.0625,524.6406,0.484375Q517.3281,2.046875,509.79688,2.046875Q490.95312,2.046875,479.95312,-8.921875Q468.95312,-19.90625,468.95312,-38.609375Q468.95312,-57.9375,479.39062,-69.296875Q489.82812,-80.65625,507.54688,-80.65625Q523.4375,-80.65625,532.6875,-70.421875Q541.9375,-60.1875,541.9375,-42.609375ZM529,-46.40625Q528.8594,-57.03125,523.0469,-63.359375Q517.25,-69.6875,507.6875,-69.6875Q496.85938,-69.6875,490.35938,-63.5625Q483.85938,-57.453125,482.875,-46.34375L529,-46.40625Z"
|
||||
android:fillColor="#000000"/>
|
||||
<path android:pathData="M624.34375,-93.3125L624.34375,-53.859375L642.2031,-53.859375Q652.1094,-53.859375,657.5156,-58.984375Q662.9375,-64.125,662.9375,-73.625Q662.9375,-83.046875,657.5156,-88.171875Q652.1094,-93.3125,642.2031,-93.3125L624.34375,-93.3125ZM610.1406,-104.984375L642.2031,-104.984375Q659.84375,-104.984375,668.875,-97Q677.9219,-89.015625,677.9219,-73.625Q677.9219,-58.078125,668.875,-50.125Q659.84375,-42.1875,642.2031,-42.1875L624.34375,-42.1875L624.34375,0L610.1406,0L610.1406,-104.984375Z"
|
||||
android:fillColor="#000000"/>
|
||||
<path android:pathData="M770.96875,-78.75L783.90625,-78.75L783.90625,0L770.96875,0L770.96875,-78.75ZM777.4375,-80.65625L777.4375,-80.65625ZM745.5781,-23.34375Q745.5781,-29.671875,740.96875,-32.96875Q736.375,-36.28125,727.5156,-36.28125L709.09375,-36.28125L709.09375,-10.34375L727.5156,-10.34375Q736.375,-10.34375,740.96875,-13.671875Q745.5781,-17.015625,745.5781,-23.34375ZM696.0781,-78.75L709.09375,-78.75L709.09375,-46.625L728.0781,-46.625Q743.125,-46.625,751.2344,-40.890625Q759.3594,-35.15625,759.3594,-23.34375Q759.3594,-11.53125,751.2344,-5.765625Q743.125,0,728.0781,0L696.0781,0L696.0781,-78.75Z"
|
||||
android:fillColor="#000000"/>
|
||||
<path android:pathData="M802.34375,0L802.34375,-10.765625Q815.1406,-12.734375,819.0781,-21.59375Q823.8594,-34.03125,823.8594,-65.890625L823.8594,-78.75L877.09375,-78.75L877.09375,0L864.15625,0L864.15625,-68.421875L836.7969,-68.421875L836.7969,-60.609375Q836.7969,-30.234375,830.6094,-16.59375Q824,-2.046875,802.34375,0Z"
|
||||
android:fillColor="#000000"/>
|
||||
<path android:pathData="M934.09375,-69.6875Q923.6875,-69.6875,917.6406,-61.5625Q911.59375,-53.4375,911.59375,-39.3125Q911.59375,-25.171875,917.59375,-17.046875Q923.6094,-8.9375,934.09375,-8.9375Q944.4219,-8.9375,950.46875,-17.09375Q956.5156,-25.25,956.5156,-39.3125Q956.5156,-53.296875,950.46875,-61.484375Q944.4219,-69.6875,934.09375,-69.6875ZM934.09375,-80.65625Q950.96875,-80.65625,960.59375,-69.6875Q970.2344,-58.71875,970.2344,-39.3125Q970.2344,-19.96875,960.59375,-8.953125Q950.96875,2.046875,934.09375,2.046875Q917.1406,2.046875,907.5469,-8.953125Q897.9531,-19.96875,897.9531,-39.3125Q897.9531,-58.71875,907.5469,-69.6875Q917.1406,-80.65625,934.09375,-80.65625Z"
|
||||
android:fillColor="#000000"/>
|
||||
</group>
|
||||
</group>
|
||||
</group>
|
||||
</vector>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@color/ic_pig_banner_background"/>
|
||||
<foreground android:drawable="@drawable/ic_pig_banner_foreground"/>
|
||||
</adaptive-icon>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 6.7 KiB |
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="ic_pig_banner_background">#FDD5D5</color>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user