Skip to content
This repository has been archived by the owner on Apr 18, 2022. It is now read-only.

Commit

Permalink
Initial Release
Browse files Browse the repository at this point in the history
  • Loading branch information
nadeemsultan committed Feb 27, 2015
0 parents commit 77d2476
Show file tree
Hide file tree
Showing 12 changed files with 120 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/bin
/gen
/libs
.classpath
.project
.settings/

25 changes: 25 additions & 0 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.nadeemsultan.hidecarrierlabel"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
android:minSdkVersion="21"
android:targetSdkVersion="21" />

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<meta-data
android:name="xposedmodule"
android:value="true" />
<meta-data
android:name="xposeddescription"
android:value="Hide the carrier label on the lockscreen" />
<meta-data
android:name="xposedminversion"
android:value="30" />
</application>

</manifest>
1 change: 1 addition & 0 deletions assets/xposed_init
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
com.nadeemsultan.hidecarrierlabel.Main
Binary file added lib/XposedBridgeApi-54.jar
Binary file not shown.
20 changes: 20 additions & 0 deletions proguard-project.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
14 changes: 14 additions & 0 deletions project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

# Project target.
target=android-21
16 changes: 16 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#Hide Carrier Label - Xposed

A small Xposed module for Lollipop that hides the carrier label on the lockscreen.

###Requirements
* [Xposed alpha for Lollipop](http://forum.xda-developers.com/showthread.php?t=3034811)
* Stock Android 5.0 or higher

[Download](http://repo.xposed.info/module/com.nadeemsultan.hidecarrierlabel)
<center>
**Before and After**
![](http://i.imgur.com/Va9xeFu.png?2)
![](http://i.imgur.com/4WyIPHA.png?2)
</center>
###Changelog
* **1.0** : Initial Release
Binary file added res/drawable-hdpi/ic_launcher.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/ic_launcher.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_launcher.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<resources>

<string name="app_name">Hide Carrier Label</string>

</resources>
32 changes: 32 additions & 0 deletions src/com/nadeemsultan/hidecarrierlabel/Main.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
package com.nadeemsultan.hidecarrierlabel;

import android.view.View;
import android.widget.TextView;
import de.robv.android.xposed.IXposedHookInitPackageResources;
import de.robv.android.xposed.IXposedHookZygoteInit;
import de.robv.android.xposed.callbacks.XC_InitPackageResources.InitPackageResourcesParam;
import de.robv.android.xposed.callbacks.XC_LayoutInflated;

public class Main implements IXposedHookZygoteInit, IXposedHookInitPackageResources {
private static String MODULE_PATH = null;

@Override
public void initZygote(StartupParam startupParam) throws Throwable {
MODULE_PATH = startupParam.modulePath;
}

@Override
public void handleInitPackageResources(InitPackageResourcesParam resparam) throws Throwable {
if (!resparam.packageName.equals("com.android.systemui"))
return;

resparam.res.hookLayout("com.android.systemui", "layout", "keyguard_status_bar", new XC_LayoutInflated() {
@Override
public void handleLayoutInflated(LayoutInflatedParam liparam) throws Throwable {
TextView keyguard_carrier_text = (TextView) liparam.view.findViewById(
liparam.res.getIdentifier("keyguard_carrier_text", "id", "com.android.systemui"));
keyguard_carrier_text.setVisibility(View.GONE);
}
});
}
}

0 comments on commit 77d2476

Please sign in to comment.