@kaeawc/auto-mobile 0.0.87 → 0.0.89

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -792,6 +792,15 @@
792
792
  {
793
793
  "required": ["cameraPoster"]
794
794
  },
795
+ {
796
+ "required": ["screenLock"]
797
+ },
798
+ {
799
+ "required": ["power"]
800
+ },
801
+ {
802
+ "required": ["deviceCondition"]
803
+ },
795
804
  {
796
805
  "required": ["params"]
797
806
  }
@@ -1668,6 +1677,105 @@
1668
1677
  },
1669
1678
  "additionalProperties": false
1670
1679
  },
1680
+ "screenLock": {
1681
+ "description": "Android only. Set a lock-screen PIN, password, or pattern (digits 1-9) with locksettings, or clear one with type none and currentCredential. A recorded plan has the credential replaced by <redacted>: set it by hand before a replay.",
1682
+ "anyOf": [
1683
+ {
1684
+ "type": "object",
1685
+ "properties": {
1686
+ "type": { "type": "string", "const": "pin" },
1687
+ "credential": { "type": "string", "pattern": "^\\d{4,16}$" }
1688
+ },
1689
+ "required": ["type", "credential"],
1690
+ "additionalProperties": false
1691
+ },
1692
+ {
1693
+ "type": "object",
1694
+ "properties": {
1695
+ "type": { "type": "string", "const": "password" },
1696
+ "credential": {
1697
+ "type": "string",
1698
+ "pattern": "^(?!-)[\\x20-\\x26\\x28-\\x7e]{4,16}$"
1699
+ }
1700
+ },
1701
+ "required": ["type", "credential"],
1702
+ "additionalProperties": false
1703
+ },
1704
+ {
1705
+ "type": "object",
1706
+ "properties": {
1707
+ "type": { "type": "string", "const": "pattern" },
1708
+ "credential": { "type": "string", "pattern": "^[1-9]{4,9}$" }
1709
+ },
1710
+ "required": ["type", "credential"],
1711
+ "additionalProperties": false
1712
+ },
1713
+ {
1714
+ "type": "object",
1715
+ "properties": {
1716
+ "type": { "type": "string", "const": "none" },
1717
+ "currentCredential": {
1718
+ "type": "string",
1719
+ "pattern": "^(?!-)[\\x20-\\x26\\x28-\\x7e]{4,16}$"
1720
+ }
1721
+ },
1722
+ "required": ["type", "currentCredential"],
1723
+ "additionalProperties": false
1724
+ }
1725
+ ]
1726
+ },
1727
+ "power": {
1728
+ "description": "Android only. Fake battery (level, charging ac|usb|wireless|none, reset), battery saver, Doze (off|light|deep; light/deep unplug the battery and turn the screen off first), an app's standby bucket and inactive state, Data Saver and thermal status (0-6 or reset). Battery, Doze and thermal faking is refused on physical devices. A session restores every changed field on release.",
1729
+ "type": "object",
1730
+ "properties": {
1731
+ "battery": {
1732
+ "type": "object",
1733
+ "properties": {
1734
+ "level": { "type": "integer", "minimum": 0, "maximum": 100 },
1735
+ "charging": { "type": "string", "enum": ["ac", "usb", "wireless", "none"] },
1736
+ "reset": { "type": "boolean" }
1737
+ },
1738
+ "additionalProperties": false
1739
+ },
1740
+ "batterySaver": { "type": "boolean" },
1741
+ "doze": { "type": "string", "enum": ["off", "light", "deep"] },
1742
+ "standbyBucket": {
1743
+ "type": "object",
1744
+ "properties": {
1745
+ "appId": {
1746
+ "type": "string",
1747
+ "pattern": "^[A-Za-z][A-Za-z0-9_]*(?:\\.[A-Za-z][A-Za-z0-9_]*)+$"
1748
+ },
1749
+ "bucket": {
1750
+ "type": "string",
1751
+ "enum": ["active", "working_set", "frequent", "rare", "restricted"]
1752
+ }
1753
+ },
1754
+ "required": ["appId", "bucket"],
1755
+ "additionalProperties": false
1756
+ },
1757
+ "appInactive": {
1758
+ "type": "object",
1759
+ "properties": {
1760
+ "appId": {
1761
+ "type": "string",
1762
+ "pattern": "^[A-Za-z][A-Za-z0-9_]*(?:\\.[A-Za-z][A-Za-z0-9_]*)+$"
1763
+ },
1764
+ "inactive": { "type": "boolean" }
1765
+ },
1766
+ "required": ["appId", "inactive"],
1767
+ "additionalProperties": false
1768
+ },
1769
+ "dataSaver": { "type": "boolean" },
1770
+ "thermalStatus": {
1771
+ "anyOf": [
1772
+ { "type": "integer", "minimum": 0, "maximum": 6 },
1773
+ { "type": "string", "const": "reset" }
1774
+ ]
1775
+ }
1776
+ },
1777
+ "additionalProperties": false
1778
+ },
1671
1779
  "location": {
1672
1780
  "description": "Set a static fix, start a timed route, or stop route playback on an Android emulator or iOS Simulator.",
1673
1781
  "anyOf": [
@@ -1799,6 +1907,165 @@
1799
1907
  "additionalProperties": false
1800
1908
  }
1801
1909
  ]
1910
+ },
1911
+ "deviceCondition": {
1912
+ "description": "Session-scoped root/integrity/fault test fixtures (behind the 'device-condition' feature flag). Sent in its own setDeviceState call.",
1913
+ "type": "object",
1914
+ "properties": {
1915
+ "version": { "type": "number", "const": 1 },
1916
+ "rootState": { "type": "string", "enum": ["rooted-detectable", "unset"] },
1917
+ "integrityState": { "type": "string", "const": "unset" },
1918
+ "faults": {
1919
+ "type": "object",
1920
+ "properties": {
1921
+ "battery": { "type": "string", "enum": ["unplug", "low", "full", "unset"] },
1922
+ "lowPower": { "type": "string", "enum": ["on", "unset"] },
1923
+ "doze": { "type": "string", "enum": ["on", "unset"] },
1924
+ "thermal": { "type": "string", "enum": ["throttling", "critical", "unset"] },
1925
+ "storage": { "type": "string", "enum": ["low", "full", "unset"] },
1926
+ "dontKeepActivities": { "type": "string", "enum": ["on", "unset"] },
1927
+ "memoryPressure": { "type": "string", "enum": ["on", "unset"] },
1928
+ "readOnlyFilesystem": { "type": "string", "enum": ["on", "unset"] },
1929
+ "revokePermission": {
1930
+ "oneOf": [
1931
+ { "type": "string", "const": "unset" },
1932
+ {
1933
+ "type": "object",
1934
+ "properties": {
1935
+ "package": {
1936
+ "type": "string",
1937
+ "pattern": "^[A-Za-z][A-Za-z0-9_]*(\\.[A-Za-z][A-Za-z0-9_]*)+$"
1938
+ },
1939
+ "permission": { "type": "string", "pattern": "^[A-Za-z][A-Za-z0-9_.]*$" }
1940
+ },
1941
+ "required": ["package", "permission"],
1942
+ "additionalProperties": false
1943
+ }
1944
+ ]
1945
+ },
1946
+ "disablePackage": {
1947
+ "oneOf": [
1948
+ { "type": "string", "const": "unset" },
1949
+ {
1950
+ "type": "object",
1951
+ "properties": {
1952
+ "package": {
1953
+ "type": "string",
1954
+ "pattern": "^[A-Za-z][A-Za-z0-9_]*(\\.[A-Za-z][A-Za-z0-9_]*)+$"
1955
+ }
1956
+ },
1957
+ "required": ["package"],
1958
+ "additionalProperties": false
1959
+ }
1960
+ ]
1961
+ },
1962
+ "corruptAppFile": {
1963
+ "oneOf": [
1964
+ { "type": "string", "const": "unset" },
1965
+ {
1966
+ "type": "object",
1967
+ "properties": {
1968
+ "package": {
1969
+ "type": "string",
1970
+ "pattern": "^[A-Za-z][A-Za-z0-9_]*(\\.[A-Za-z][A-Za-z0-9_]*)+$"
1971
+ },
1972
+ "path": {
1973
+ "type": "string",
1974
+ "pattern": "^(?!\\.{1,2}(?:/|$))[A-Za-z0-9_.-]+(?:/(?!\\.{1,2}(?:/|$))[A-Za-z0-9_.-]+)*$"
1975
+ },
1976
+ "mode": { "type": "string", "enum": ["overwrite", "truncate"] }
1977
+ },
1978
+ "required": ["package", "path", "mode"],
1979
+ "additionalProperties": false
1980
+ }
1981
+ ]
1982
+ },
1983
+ "killApp": {
1984
+ "oneOf": [
1985
+ { "type": "string", "const": "unset" },
1986
+ {
1987
+ "type": "object",
1988
+ "properties": {
1989
+ "package": {
1990
+ "type": "string",
1991
+ "pattern": "^[A-Za-z][A-Za-z0-9_]*(\\.[A-Za-z][A-Za-z0-9_]*)+$"
1992
+ },
1993
+ "mode": { "type": "string", "enum": ["background", "forceStop"] }
1994
+ },
1995
+ "required": ["package", "mode"],
1996
+ "additionalProperties": false
1997
+ }
1998
+ ]
1999
+ },
2000
+ "trimMemory": {
2001
+ "oneOf": [
2002
+ { "type": "string", "const": "unset" },
2003
+ {
2004
+ "type": "object",
2005
+ "properties": {
2006
+ "package": {
2007
+ "type": "string",
2008
+ "pattern": "^[A-Za-z][A-Za-z0-9_]*(\\.[A-Za-z][A-Za-z0-9_]*)+$"
2009
+ },
2010
+ "level": {
2011
+ "type": "string",
2012
+ "enum": [
2013
+ "HIDDEN",
2014
+ "RUNNING_MODERATE",
2015
+ "BACKGROUND",
2016
+ "RUNNING_LOW",
2017
+ "MODERATE",
2018
+ "RUNNING_CRITICAL",
2019
+ "COMPLETE"
2020
+ ]
2021
+ }
2022
+ },
2023
+ "required": ["package", "level"],
2024
+ "additionalProperties": false
2025
+ }
2026
+ ]
2027
+ },
2028
+ "clearPackageData": {
2029
+ "oneOf": [
2030
+ { "type": "string", "const": "unset" },
2031
+ {
2032
+ "type": "object",
2033
+ "properties": {
2034
+ "package": {
2035
+ "type": "string",
2036
+ "pattern": "^[A-Za-z][A-Za-z0-9_]*(\\.[A-Za-z][A-Za-z0-9_]*)+$"
2037
+ }
2038
+ },
2039
+ "required": ["package"],
2040
+ "additionalProperties": false
2041
+ }
2042
+ ]
2043
+ },
2044
+ "clockSkew": {
2045
+ "oneOf": [
2046
+ { "type": "string", "const": "unset" },
2047
+ {
2048
+ "type": "object",
2049
+ "properties": {
2050
+ "offsetSeconds": {
2051
+ "type": "integer",
2052
+ "minimum": -315360000,
2053
+ "maximum": 315360000,
2054
+ "anyOf": [{ "minimum": 3 }, { "maximum": -3 }]
2055
+ }
2056
+ },
2057
+ "required": ["offsetSeconds"],
2058
+ "additionalProperties": false
2059
+ }
2060
+ ]
2061
+ }
2062
+ },
2063
+ "additionalProperties": false
2064
+ },
2065
+ "expiresInSeconds": { "type": "integer", "minimum": 1, "maximum": 86400 },
2066
+ "reset": { "type": "boolean", "const": true }
2067
+ },
2068
+ "additionalProperties": false
1802
2069
  }
1803
2070
  },
1804
2071
  "anyOf": [
@@ -1822,6 +2089,15 @@
1822
2089
  },
1823
2090
  {
1824
2091
  "required": ["cameraPoster"]
2092
+ },
2093
+ {
2094
+ "required": ["screenLock"]
2095
+ },
2096
+ {
2097
+ "required": ["power"]
2098
+ },
2099
+ {
2100
+ "required": ["deviceCondition"]
1825
2101
  }
1826
2102
  ],
1827
2103
  "description": "Parameters for setDeviceState"