一个用于在 macOS 上平滑你的鼠标滚动效果或单独设置滚动方向的小工具, 让你的滚轮爽如触控板 | A lightweight tool used to smooth scrolling and set scroll direction independently for your mouse on macOS.
P.S. You can also do the similar on Windows,
Mac,
and iOS.
Features That Requires System App Installation
The following features in the app requires it to be installed under /system/priv-app since some restricted permissions are required.
One way to do this is to use App systemizer for Magisk.
(Android 8-10, since app v2.4.0) android.permission.OVERRIDE_WIFI_CONFIG: Read/write system Wi-Fi hotspot configuration. (#117)
Installing as system app also has the side benefit of launching root daemon less frequently due to having privileged permissions listed below.
Other system-app exclusive features that are not gated by permissions.
Whenever you install an app update, if there was a new protected permission addition (last updated in v2.17.1), you should update the app installed in system as well to make the system grant the privileged permission.
What persistent changes can this app do to my system?
This app only indirectly write persistent changes through system APIs thus it should be generally pretty safe.
In Supplicant mode, the repeater asks wpa_supplicant to create a persistent group on startup, which Android persists in /data/vendor/wifi/wpa/p2p_supplicant.conf or /data/misc/wifi/p2p_supplicant.conf.
If you edited the system Wi-Fi hotspot configuration through this app, those changes will persist.
If you toggle tethering hardware offload through this app, the Android global tether_offload_disabled setting will persist.
Toggle it back in this app or the matching Developer options setting to revert it.
Routing, firewall, addresses, and daemon/service state managed by this app are cleaned up when stopped, by Clean, or upon reboot.
Failed to create group due to internal error/repeater shuts down after a while?
This could caused by the Wi-Fi channel you selected is no longer available, due to:
Your device doesn't support operating on this channel, or
There is some nearby Wi-Fi direct device that broadcasted that it can't operate on the channel you picked.
For maximum stability, you need to set channel = 0 so that your device will pick a channel automatically.
You can also use WPS to connect your 2.4GHz-only device to force the repeater to switch from 5GHz to 2.4GHz for this time.
Private APIs used / Assumptions for Android customizations
a.k.a. things that can go wrong if this app doesn't work.
Greylisted/blacklisted APIs or internal constants: (some constants are hardcoded or implicitly used)
(prior to API 30) Landroid/net/ConnectivityManager;->getLastTetherError(Ljava/lang/String;)I,max-target-r
(prior to API 30) Landroid/net/ConnectivityManager;->EXTRA_ACTIVE_LOCAL_ONLY:Ljava/lang/String;,lo-prio,max-target-o
(prior to API 30) Landroid/net/ConnectivityManager;->EXTRA_ACTIVE_TETHER:Ljava/lang/String;,max-target-r
(prior to API 30) Landroid/net/ConnectivityManager;->EXTRA_AVAILABLE_TETHER:Ljava/lang/String;,max-target-r
(prior to API 30) Landroid/net/ConnectivityManager;->ACTION_TETHER_STATE_CHANGED:Ljava/lang/String;,max-target-r
(prior to API 30) Landroid/net/ConnectivityManager;->EXTRA_ERRORED_TETHER:Ljava/lang/String;,max-target-r
(since API 30) Landroid/net/ConnectivityModuleConnector;->IN_PROCESS_SUFFIX:Ljava/lang/String;
(since API 31) Landroid/net/INetd$Stub;->asInterface(Landroid/os/IBinder;)Landroid/net/INetd;
(since API 31) Landroid/net/INetd;->ipSecUpdateSecurityPolicy(IIILjava/lang/String;Ljava/lang/String;IIII)V
(since API 30) Landroid/net/IIntResultListener$Stub;-><init>()V,blocked
(since API 30) Landroid/net/IIntResultListener;->onResult(I)V,blocked
(since API 30) Landroid/net/ITetheringConnector;->stopTethering(ILjava/lang/String;Landroid/net/IIntResultListener;)V,blocked
(since API 30) Landroid/net/ITetheringConnector;->stopTethering(ILjava/lang/String;Ljava/lang/String;Landroid/net/IIntResultListener;)V,blocked
(since API 30) Landroid/net/TetheringManager$ConnectorConsumer;->onConnectorAvailable(Landroid/net/ITetheringConnector;)V,blocked
(since API 30) Landroid/net/TetheringManager$TetheringEventCallback;->onTetherableInterfaceRegexpsChanged(Landroid/net/TetheringManager$TetheringInterfaceRegexps;)V,blocked
(since API 31) Landroid/net/TetheringManager$TetheringEventCallback;->onSupportedTetheringTypes(Ljava/util/Set;)V,blocked
(since API 30) Landroid/net/TetheringManager;->getConnector(Landroid/net/TetheringManager$ConnectorConsumer;)V,blocked
(since API 30) Landroid/net/TetheringManager;->TETHERING_VIRTUAL:I,blocked
(since API 30) Landroid/net/TetheringManager;->TETHERING_WIGIG:I,blocked
(since API 31) Landroid/net/IpSecManager;->DIRECTION_FWD:I,blocked
(since API 31) Landroid/net/IpSecManager;->INVALID_SECURITY_PARAMETER_INDEX:I,blocked
(since API 31) Landroid/net/wifi/SoftApCapability;->getCountryCode()Ljava/lang/String;,blocked
(since API 33) Landroid/net/wifi/SoftApConfiguration$Builder;->setRandomizedMacAddress(Landroid/net/MacAddress;)Landroid/net/wifi/SoftApConfiguration$Builder;,blocked
(since API 31) Landroid/net/wifi/SoftApConfiguration;->BAND_TYPES:[I,blocked
(since API 31) Landroid/net/wifi/SoftApInfo;->getApInstanceIdentifier()Ljava/lang/String;,blocked
(since API 33) Landroid/net/wifi/IWifiManager;->registerLocalOnlyHotspotSoftApCallback(Landroid/net/wifi/ISoftApCallback;Landroid/os/Bundle;)V,blocked
(prior to API 31) Landroid/net/wifi/IWifiManager;->registerSoftApCallback(Landroid/os/IBinder;Landroid/net/wifi/ISoftApCallback;I)V,max-target-o
(since API 31) Landroid/net/wifi/IWifiManager;->registerSoftApCallback(Landroid/net/wifi/ISoftApCallback;)V,blocked
(since API 33) Landroid/net/wifi/IWifiManager;->unregisterLocalOnlyHotspotSoftApCallback(Landroid/net/wifi/ISoftApCallback;Landroid/os/Bundle;)V,blocked
(prior to API 31) Landroid/net/wifi/IWifiManager;->unregisterSoftApCallback(I)V,max-target-o
(since API 31) Landroid/net/wifi/IWifiManager;->unregisterSoftApCallback(Landroid/net/wifi/ISoftApCallback;)V,blocked
(since API 31) Landroid/net/wifi/WifiClient;->getApInstanceIdentifier()Ljava/lang/String;,blocked
(prior to API 30) Landroid/net/wifi/WifiConfiguration;->AP_BAND_2GHZ:I,lo-prio,max-target-o
(prior to API 30) Landroid/net/wifi/WifiConfiguration;->AP_BAND_5GHZ:I,lo-prio,max-target-o
(prior to API 30) Landroid/net/wifi/WifiConfiguration;->AP_BAND_ANY:I,lo-prio,max-target-o
(prior to API 30) Landroid/net/wifi/WifiConfiguration;->apBand:I,unsupported
(prior to API 30) Landroid/net/wifi/WifiConfiguration;->apChannel:I,unsupported
(since API 30) Landroid/net/wifi/WifiContext;->ACTION_RESOURCES_APK:Ljava/lang/String;,blocked
(since API 30) Landroid/net/wifi/WifiContext;-><init>(Landroid/content/Context;)V,blocked
(since API 30) Landroid/os/ServiceManager;->waitForDeclaredService(Ljava/lang/String;)Landroid/os/IBinder;,blocked
(since API 30) Landroid/os/ServiceManager;->waitForService(Ljava/lang/String;)Landroid/os/IBinder;,blocked
(since API 30) Lcom/android/server/wifi/SupplicantStaIfaceHalAidlMainlineImpl;->isServiceAvailable(Landroid/content/Context;)Z
(since API 30) Landroid/system/wifi/mainline_supplicant/IMainlineSupplicant$Stub;->asInterface(Landroid/os/IBinder;)Landroid/system/wifi/mainline_supplicant/IMainlineSupplicant;
(since API 30) Landroid/system/wifi/mainline_supplicant/IMainlineSupplicant;->getVendorSupplicant()Lcom/android/wifi/x/android/hardware/wifi/supplicant/ISupplicant;
(prior to API 30) Landroid/provider/Settings$Global;->SOFT_AP_TIMEOUT_ENABLED:Ljava/lang/String;,lo-prio,max-target-o
(on API 34) Landroid/service/quicksettings/TileService;->mToken:Landroid/os/IBinder;,lo-prio,max-target-o
(prior to API 30) Lcom/android/internal/R$array;->config_tether_bluetooth_regexs:I,max-target-q
(prior to API 30) Lcom/android/internal/R$array;->config_tether_usb_regexs:I,max-target-q
(prior to API 30) Lcom/android/internal/R$array;->config_tether_wifi_regexs:I,max-target-q
(on API 29) Lcom/android/internal/R$bool;->config_wifi_p2p_mac_randomization_supported:I,blacklist
(prior to API 30) Lcom/android/internal/R$integer;->config_wifi_framework_soft_ap_timeout_delay:I,greylist-max-o
P2P AIDL mode probes the Wi-Fi mainline service wifi_mainline_supplicant from live
service-wifi.jar to recover the stable vendor supplicant AIDL binder before falling back to direct
vendor HAL registration.
IPv6 NAT mode depends on the iptables TPROXY and NFQUEUE targets and
transparent sockets. ICMPv6 Echo interception uses app-owned queue 30000
and assumes queued downstream packets expose six-byte source hardware-address
metadata through NFQA_HWADDR.
(since API 30) Relevant tethering APEX classes used here, including android.net.ITetheringConnector,
may be jarjar-relocated under the optional prefixes
android.net.connectivity or com.android.connectivity.
(since API 31) Relevant netd APEX classes used here, including android.net.INetd*,
may be jarjar-relocated under the optional prefixes
android.net.connectivity or com.android.connectivity.
(since API 30) When runtime TetheringEventCallback.onLocalOnlyInterfacesChanged is present, AOSP dispatches
startup tether-state callbacks from one executor.execute { ... } block in onCallbackStarted,
and later tether-state updates from one executor.execute { ... } block in
onTetherStatesChanged.
The Rust DNS proxy submits upstream queries through android_res_nsend/android_res_nresult.
To keep daemon tasks nonblocking while still using android_res_nresult as the public result
reader/closer, it waits for dnsproxyd to close the one-shot resnsend client socket before
reading the result. This assumes resnsend writes the complete resolver result before returning
and the socket receive buffer can hold that result until the framework socket listener closes the
client socket.
For ip rule priorities, AOSP local-network/tethering priorities are assumed to be 17000/18000
on API 29..30 and 20000/21000 on API 31+. VPNHotspot uses the 17500..17900 or 20500..20900
gap between them.
For route-table numbers, Android interface tables are assumed to start at ifindex + 1000; IPv6 NAT
TPROXY uses table 900 to stay below that range and away from AOSP fixed tables 97..99 and kernel built-ins.
Clean flushes table 900 because that table is reserved by VPNHotspot. IPv6 NAT also adds its
deterministic ULA /64 route to Android's shared local_network route table 97; Clean never flushes
that table and only deletes VPNHotspot prefixes reconstructed from current interface names.
For packet marks, Android fwmark is assumed to use low bits for netId and routing metadata.
IPv6 NAT fwmark fallback for TPROXY uses masked high reserved bits 0x10000000/0x10000000.
That fallback is expected on only kernels without effective FRA_IP_PROTO policy-rule support, which upstream Linux added in 4.17.
Probe cleanup deletes at most one rule, omitting FRA_IP_PROTO when support or
the mutation outcome is uncertain; repeated stale-rule deletion is reserved for Clean.
Daemon reply sockets use the AOSP local-network protected mark 0x00030063, which assumes
LOCAL_NET_ID = 99 plus the explicitlySelected and protectedFromVpn fwmark bits.
System/root command assumptions:
The following Android system binaries are assumed to be bundled and executable: