Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ A collection of small Xposed Modules.
| [PersistentForegroundServiceNotifications](PersistentForegroundServiceNotifications) | [@binarynoise](https://github.com/binarynoise) | Make notifications of foreground services persistent again | [GitHub](https://github.com/binarynoise/XposedModulets/releases?q=persistentForegroundServiceNotifications) |
| [ResetAllNotificationChannels](ResetAllNotificationChannels) | [@binarynoise](https://github.com/binarynoise) | Reset all Notification Channels: vibrations, ringtones, importance etc. | [GitHub](https://github.com/binarynoise/XposedModulets/releases?q=resetAllNotificationChannels) [IzzyOnDroid](https://apt.izzysoft.de/fdroid/index/apk/de.binarynoise.resetAllNotificationChannels) |
| [RotationControl](RotationControl) | [@programminghoch10](https://github.com/programminghoch10) | Force rotation for selected packages | [GitHub](https://github.com/binarynoise/XposedModulets/releases?q=RotationControl) [IzzyOnDroid](https://apt.izzysoft.de/fdroid/index/apk/com.programminghoch10.RotationControl) |
| [UpsideWifi](UpsideWifi) | [@programminghoch10](https://github.com/programminghoch10) | Turn the WiFi icon upside down | [GitHub](https://github.com/binarynoise/XposedModulets/releases?q=UpsideWifi) |
<!--@formatter:on-->

## License
Expand Down
4 changes: 4 additions & 0 deletions UpsideWifi/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# UpsideWifi
Xposed Module to turn the Wi-Fi icon upside down.

This is a modified version of the legendary module [UpsideWifi](https://github.com/rye761/upsidewifi) by [rye761](https://github.com/rye761).
12 changes: 12 additions & 0 deletions UpsideWifi/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
plugins {
alias(libs.plugins.buildlogic.android.application)
}

android {
namespace = "com.programminghoch10.UpsideWifi"

defaultConfig {
minSdk = 21
targetSdk = 35
}
}
24 changes: 24 additions & 0 deletions UpsideWifi/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.programminghoch10.UpsideWifi">

<application
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
tools:ignore="AllowBackup">
<meta-data
android:name="xposedmodule"
android:value="true"/>
<meta-data
android:name="xposeddescription"
android:value="@string/xposed_description"/>
<meta-data
android:name="xposedminversion"
android:value="30"/>
<meta-data
android:name="xposedscope"
android:resource="@array/scope"/>
</application>

</manifest>
1 change: 1 addition & 0 deletions UpsideWifi/src/main/assets/xposed_init
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
com.programminghoch10.UpsideWifi.UpsideWifi
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package com.programminghoch10.UpsideWifi;

import android.annotation.SuppressLint;
import android.os.Build;
import android.widget.ImageView;

import de.robv.android.xposed.IXposedHookInitPackageResources;
import de.robv.android.xposed.callbacks.XC_InitPackageResources;
import de.robv.android.xposed.callbacks.XC_LayoutInflated;

public class UpsideWifi implements IXposedHookInitPackageResources {
final String PACKAGE_SYSTEMUI = "com.android.systemui";
ImageView wifiIndicator;

@Override
public void handleInitPackageResources(XC_InitPackageResources.InitPackageResourcesParam resparam) throws Throwable {
if (!resparam.packageName.equals(PACKAGE_SYSTEMUI)) {
return;
}
String layoutName =
Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE ? "new_status_bar_wifi_group" :
(Build.VERSION.SDK_INT >= Build.VERSION_CODES.P ? "status_bar_wifi_group" : "signal_cluster_view");
resparam.res.hookLayout(PACKAGE_SYSTEMUI, "layout", layoutName, new XC_LayoutInflated() {
@SuppressLint("DiscouragedApi")
@Override
public void handleLayoutInflated(LayoutInflatedParam liparam) throws Throwable {
wifiIndicator = liparam.view.findViewById(liparam.res.getIdentifier("wifi_signal", "id", PACKAGE_SYSTEMUI));
wifiIndicator.setRotation(180);
}
});
}
}
15 changes: 15 additions & 0 deletions UpsideWifi/src/main/res/drawable/ic_launcher_foreground.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<group android:scaleX="0.12722892"
android:scaleY="0.12722892"
android:translateX="27.6"
android:translateY="33.017242">
<path
android:pathData="M415,253C290.5,351.5 118,349 0.5,253L41.9,202.5C136,281 282.5,281.5 373.5,202.5L415,253ZM364.049,191C276.5,262.5 151.5,269 51.328,191L91.498,142C164,198.5 260.71,194.5 323.782,142L364.049,191ZM313.921,130C248.5,177.571 179.5,183.5 101.336,130L144.153,77.771C182.5,108.5 230.5,109.5 271,77.771L313.921,130ZM260.71,65.25C231.5,91 182,92.5 154.418,65.25L207.5,0.5L260.71,65.25Z"
android:fillColor="#33B6EA"
android:fillType="evenOdd"/>
</group>
</vector>
5 changes: 5 additions & 0 deletions UpsideWifi/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Original file line number Diff line number Diff line change
@@ -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_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions UpsideWifi/src/main/res/values/arrays.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="scope" translatable="false">
<item>com.android.systemui</item>
</string-array>
</resources>
4 changes: 4 additions & 0 deletions UpsideWifi/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#000000</color>
</resources>
4 changes: 4 additions & 0 deletions UpsideWifi/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<resources>
<string name="app_name" translatable="false">UpsideWifi</string>
<string name="xposed_description">Turn the WiFi icon upside down!</string>
</resources>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This Xposed Module turns the statusbar WiFi icon upside down.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Turn the WiFi icon upside down.
1 change: 1 addition & 0 deletions metadata/com.programminghoch10.UpsideWifi/en-US/title.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UpsideWifi
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ include(":PersistentForegroundServiceNotifications")
include(":PreventAudioFocus")
include(":ResetAllNotificationChannels")
include(":RotationControl")
include(":UpsideWifi")
include(":reflection")
include(":logger")

Expand Down