I know but i want it alongside this modPlease refer to op. There is a guide on setting custom text color to all notification fields.
Sent from my SM-G920F using Tapatalk
It is along side this mod. The mod for bg is done in systemui, the mod for text colors is done in framework. So you will need to do both mods.I know but i want it alongside this mod
Thx anyway![emoji4]
Sent from my SM-N930F using Tapatalk
It is along side this mod. The mod for bg is done in systemui, the mod for text colors is done in framework. So you will need to do both mods.
Sent from my SM-G920F using Tapatalk
You have a condition in smali that is missing it's mate.why Recompiling gives error?
on your post
Recompiling "SystemUI.apk" With Original Signature,
in work area "_WorkArea5", using "apktool_2.1.1.jar"
----------------
I: Using Apktool 2.1.1
I: Smaling smali folder into classes.dex...
Exception in thread "main" java.lang.IllegalStateException: Cannot get the location of a label that hasn't been placed yet.
I guess there is a method you invoke but don't have.why Recompiling gives error?
on your post
Recompiling "SystemUI.apk" With Original Signature,
in work area "_WorkArea5", using "apktool_2.1.1.jar"
----------------
I: Using Apktool 2.1.1
I: Smaling smali folder into classes.dex...
Exception in thread "main" java.lang.IllegalStateException: Cannot get the location of a label that hasn't been placed yet.
at org.jf.dexlib2.builder.Label.getLocation(Label.java:54)
at org.jf.dexlib2.builder.Label.getCodeAddress(Label.java:48)
at org.jf.dexlib2.builder.BuilderOffsetInstruction.internalGetCodeOffset(BuilderOffsetInstruction.java:60)
at org.jf.dexlib2.builder.BuilderOffsetInstruction.getCodeOffset(BuilderOffsetInstruction.java:50)
at org.jf.dexlib2.writer.InstructionWriter.write(InstructionWriter.java:206)
at org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexWriter.java:988)
at org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java:803)
at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:252)
at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:230)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:53)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:38)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:364)
at brut.androlib.Androlib.buildSources(Androlib.java:295)
at brut.androlib.Androlib.build(Androlib.java:278)
at brut.androlib.Androlib.build(Androlib.java:254)
at brut.apktool.Main.cmdBuild(Main.java:224)
at brut.apktool.Main.main(Main.java:84)
----------------
Recompile Not Successful!
I guess there is a method you invoke but don't have.
You will need to recheck your work. This is not a mod. It's a theoretical guide. It comes with no warranty. Although many people made it work on their devices no problem. So you better start tackling it yourself.
On a further note, I am in the middle of many things right now. And so is Wuby. So there will be no support for a while now. Probably for a long while. In general we don't give support on making our guides work. We have put enough work into writing and explaining them. We cant be responsible if something doesn't work. Its your turn to read the explanations and use your own logic to adapt if needed. We hope you all understand. Especially now, that we are both professionally preoccupied.
For many distractions (becasue asking people to not tag, send pm or quote is apparently asking too much) I am now disabling Tapatalk and all notifications from both this and rc thread. Hoping everyone understands. We have put alot of work into teaching and promoting original development lately on xda. We showed many guides and how they are done with in depth explanations, to provide you with knowledge and tools to keep making mods on your own. Time to get back to real work for us. We will pop up for a visit I guess here and there.
Cheers to all and see you from time to time
Sent from my SM-N920C using Tapatalk
Sorry, instead of invoke-virtual it would be:
Edit:Code:[B]invoke-direct [/B]{p0}, Lcom/android/keyguard/status/SecKeyguardClockSingleView;->setClockStyle()V
And you cant call that directly from the observer you are using. Why don't you just add 6th gear observer instead so you don't have to call another method? It is easy enough to add.
<com.android.keyguard.status.KeyguardTextClock android:textSize="@dimen/kg_singleclock_time_text_size_normal" android:textColor="@color/theme_textclock_color" android:gravity="center" android:id="@id/keyguard_single_clock_time" android:focusable="false" android:visibility="gone" android:clickable="false" android:layout_width="300.0dip" android:layout_height="wrap_content" [color=""blue"]android:fontFamily="samsung-neo-num3T"[/color]android:format12Hour="@string/status_view_12_hours_format" android:format24Hour="@string/status_view_24_hours_format" style="@style/keyguard_clock_weather_text_shadow" />
<com.android.keyguard.status.KeyguardTextClock android:textSize="82.0dip" android:textStyle="bold" android:textColor="@color/theme_textclock_color" android:gravity="center" android:id="@id/custom_clock_hour" android:focusable="false" android:clickable="false" android:layout_width="wrap_content" android:layout_height="wrap_content" [COLOR=blue]android:fontFamily="samsung-neo-num3L"[/COLOR] android:format12Hour="h" android:format24Hour="kk" style="@style/keyguard_clock_weather_text_shadow" />
<com.android.keyguard.status.KeyguardTextClock android:textSize="82.0dip" android:textStyle="bold" android:textColor="@color/theme_textclock_color" android:gravity="center" android:id="@id/custom_clock_min" android:focusable="false" android:clickable="false" android:layout_width="wrap_content" android:layout_height="wrap_content" [COLOR=blue]android:fontFamily="samsung-neo-num3T"[/COLOR] android:format12Hour=":mm" android:format24Hour=":mm" style="@style/keyguard_clock_weather_text_shadow" />
<LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.keyguard.status.KeyguardTextClock android:textSize="37.0dip" android:textStyle="bold" android:textColor="@color/theme_textclock_color" android:id="@id/custom_clock" android:focusable="false" android:clickable="false" android:layout_width="wrap_content" android:layout_height="wrap_content" [color="blue]android:fontFamily="samsung-neo-num3L"[/color] android:layout_marginStart="1.0dip" android:format12Hour=":ss" android:format24Hour=":ss" style="@style/keyguard_clock_weather_text_shadow" />
Label missing. (ex :cond_0 is label)....why Recompiling gives error?
on your post
Recompiling "SystemUI.apk" With Original Signature,
in work area "_WorkArea5", using "apktool_2.1.1.jar"
----------------
I: Using Apktool 2.1.1
I: Smaling smali folder into classes.dex...
Exception in thread "main" java.lang.IllegalStateException: Cannot get the location of a label that hasn't been placed yet.
at org.jf.dexlib2.builder.Label.getLocation(Label.java:54)
at org.jf.dexlib2.builder.Label.getCodeAddress(Label.java:48)
at org.jf.dexlib2.builder.BuilderOffsetInstruction.internalGetCodeOffset(BuilderOffsetInstruction.java:60)
at org.jf.dexlib2.builder.BuilderOffsetInstruction.getCodeOffset(BuilderOffsetInstruction.java:50)
at org.jf.dexlib2.writer.InstructionWriter.write(InstructionWriter.java:206)
at org.jf.dexlib2.writer.DexWriter.writeCodeItem(DexWriter.java:988)
at org.jf.dexlib2.writer.DexWriter.writeDebugAndCodeItems(DexWriter.java:803)
at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:252)
at org.jf.dexlib2.writer.DexWriter.writeTo(DexWriter.java:230)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:53)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:38)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:364)
at brut.androlib.Androlib.buildSources(Androlib.java:295)
at brut.androlib.Androlib.build(Androlib.java:278)
at brut.androlib.Androlib.build(Androlib.java:254)
at brut.apktool.Main.cmdBuild(Main.java:224)
at brut.apktool.Main.main(Main.java:84)
----------------
Recompile Not Successful!
This I don't know for sure. My original guide is only for stock clock which does not have any layout changes as far as I know. I have fonts defined in layout with all mods done there with no problems. But then you add seconds and other modifications to it and layout changes are necessary.Thanks my friend but no luck.
I have look into res/layout/SecKeyguardClockSingleView.xml and i have this for Clock and date color related to android:fontFamilly (see blue text), maybe that's why font dosen't change... How can i replace value from android:fontFamilly ? I i delete , only define font in settings working.
Code:<com.android.keyguard.status.KeyguardTextClock android:textSize="@dimen/kg_singleclock_time_text_size_normal" android:textColor="@color/theme_textclock_color" android:gravity="center" android:id="@id/keyguard_single_clock_time" android:focusable="false" android:visibility="gone" android:clickable="false" android:layout_width="300.0dip" android:layout_height="wrap_content" [color=""blue"]android:fontFamily="samsung-neo-num3T"[/color]android:format12Hour="@string/status_view_12_hours_format" android:format24Hour="@string/status_view_24_hours_format" style="@style/keyguard_clock_weather_text_shadow" /> <com.android.keyguard.status.KeyguardTextClock android:textSize="82.0dip" android:textStyle="bold" android:textColor="@color/theme_textclock_color" android:gravity="center" android:id="@id/custom_clock_hour" android:focusable="false" android:clickable="false" android:layout_width="wrap_content" android:layout_height="wrap_content" [COLOR=blue]android:fontFamily="samsung-neo-num3L"[/COLOR] android:format12Hour="h" android:format24Hour="kk" style="@style/keyguard_clock_weather_text_shadow" /> <com.android.keyguard.status.KeyguardTextClock android:textSize="82.0dip" android:textStyle="bold" android:textColor="@color/theme_textclock_color" android:gravity="center" android:id="@id/custom_clock_min" android:focusable="false" android:clickable="false" android:layout_width="wrap_content" android:layout_height="wrap_content" [COLOR=blue]android:fontFamily="samsung-neo-num3T"[/COLOR] android:format12Hour=":mm" android:format24Hour=":mm" style="@style/keyguard_clock_weather_text_shadow" /> <LinearLayout android:gravity="center_horizontal" android:orientation="vertical" android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="fill_parent"> <com.android.keyguard.status.KeyguardTextClock android:textSize="37.0dip" android:textStyle="bold" android:textColor="@color/theme_textclock_color" android:id="@id/custom_clock" android:focusable="false" android:clickable="false" android:layout_width="wrap_content" android:layout_height="wrap_content" [color="blue]android:fontFamily="samsung-neo-num3L"[/color] android:layout_marginStart="1.0dip" android:format12Hour=":ss" android:format24Hour=":ss" style="@style/keyguard_clock_weather_text_shadow" />
No idea for this ?@daxgirl You are a master of moding. So maybe You know how turn off class/string in MessagingNotification.smali for stop deliviered sms buck. @MohammadAG committed fantastic module for xposed, but this module no working on new phone Samsung lollipop and MM. And dev stop update this module.
![]()
In sec.mms app i found MessagingNotification.smali I think this is a class/string for delivered sms buck. 2x class name is :
Code:const-string/jumbo v2, "updateReportNotification(),type="
Code:const-string/jumbo v0, "Mms/MessagingNotification" new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V [COLOR="red"]const-string/jumbo v2, "updateReportNotification isMuteThread :"[/COLOR] invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 sget-boolean v2, Lcom/android/mms/transaction/MessagingNotification;->am:Z invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 invoke-static {v0, v1}, Lcom/android/mms/j;->b(Ljava/lang/String;Ljava/lang/String;)V :cond_2 new-instance v0, Ljava/lang/StringBuffer; const/16 v1, 0x64 invoke-direct {v0, v1}, Ljava/lang/StringBuffer;-><init>(I)V const-string/jumbo v1, "Mms/MessagingNotification" [COLOR="red"]const-string/jumbo v2, "updateReportNotification(),type="[/COLOR] invoke-virtual {v0, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer; move-result-object v0 invoke-virtual {v0, p1}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer; move-result-object v0 const-string/jumbo v2, ",status=" invoke-virtual {v0, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer; move-result-object v0 invoke-virtual {v0, p2}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer; move-result-object v0 const-string/jumbo v2, ",threadId=" invoke-virtual {v0, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer; move-result-object v0 invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String; move-result-object v0 invoke-static {v1, v0}, Lcom/android/mms/j;->b(Ljava/lang/String;Ljava/lang/String;)V new-instance v3, Landroid/app/Notification$Builder; invoke-direct {v3, p0}, Landroid/app/Notification$Builder;-><init>(Landroid/content/Context;)V invoke-static {p0}, Landroid/support/v4/app/cy;->a(Landroid/content/Context;)Landroid/support/v4/app/cy; move-result-object v4 packed-switch p1, :pswitch_data_0 const-string/jumbo v0, "" goto :goto_0
In sources module from @MohammadAG i see block this class/string and exchange on tost.
Code:package com.mohammadag.deliverytoastnotification; import android.content.Context; import android.database.Cursor; import android.net.Uri; import android.provider.ContactsContract; import android.text.TextUtils; import android.widget.Toast; import de.robv.android.xposed.IXposedHookLoadPackage; import de.robv.android.xposed.XC_MethodHook; import de.robv.android.xposed.XSharedPreferences; import de.robv.android.xposed.XposedHelpers; import de.robv.android.xposed.XposedHelpers.ClassNotFoundError; import de.robv.android.xposed.callbacks.XC_LoadPackage.LoadPackageParam; public class XposedMod implements IXposedHookLoadPackage { private XSharedPreferences mPreferences; @Override public void handleLoadPackage(LoadPackageParam lpparam) throws Throwable { if (!lpparam.packageName.equals(Constants.MMS_PACKAGE_NAME)) return; mPreferences = new XSharedPreferences(XposedMod.class.getPackage().getName()); try { XposedHelpers.findAndHookMethod("com.android.mms.transaction.MessagingNotification", lpparam.classLoader, "updateReportNotification", Context.class, int.class, int.class, long.class, String.class, new XC_MethodHook() { @Override protected void beforeHookedMethod(MethodHookParam param) throws Throwable { Context context = (Context) param.args[0]; int type = (Integer) param.args[1]; int status = (Integer) param.args[2]; String address = (String) param.args[4]; mPreferences.reload(); // Only handle message delivered notifications if (type == 0 && status == 0) { int toastLength = Toast.LENGTH_SHORT; if (mPreferences.getBoolean(Constants.SETTINGS_LONG_TOAST_KEY, false)) toastLength = Toast.LENGTH_LONG; Toast.makeText(context, makeToastText(context, address), toastLength).show(); param.setResult(null); } } }); } catch (ClassNotFoundError e) { e.printStackTrace(); } catch (NoSuchMethodError e) { e.printStackTrace(); } } private String makeToastText(Context context, String address) { String str = context.getString( context.getResources().getIdentifier("delivery_toast_body", "string", Constants.MMS_PACKAGE_NAME)); return String.format(str, getContactDisplayNameForAddress(context, address)); } private String getContactDisplayNameForAddress(Context context, String address) { Cursor cursor = context.getContentResolver().query( Uri.withAppendedPath(ContactsContract.PhoneLookup.CONTENT_FILTER_URI, Uri.encode(address)), new String[] { ContactsContract.PhoneLookup.DISPLAY_NAME }, null, null, null); if (cursor.moveToFirst()) { address = cursor.getString(cursor.getColumnIndex(ContactsContract.PhoneLookup.DISPLAY_NAME)); if (mPreferences.getBoolean(Constants.SETTINGS_SHOW_NUMBER_KEY, true) || address == null || TextUtils.isEmpty(address)) { address += " (" + address + ")"; } } return address; } }
So i think when i off this class/string, i dont receive sound and sms on statusbar when report is deliviered. I try add const/4 v0, 0x0 on button or top const-string/jumbo v2, "updateReportNotification(),type=" but after recompile app FC, or open without FC but when report sms buck app get FC. Lot of people want mod like this, because like report, but dont like exactly some sound and sms buck when deliviered. Samsung in this is verry stupid.
I dont want toast, only disable sms report buck, and turn off sound for this sms report.
So i please help me with this mod.
Thx
Sources for module
https://github.com/MohammadAG/Xposed-Message-Delivered-Toast-Notifications
And .smali in attach file.
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/about_settings" android:key="about_device"
xmlns:android="http://schemas.android.com/apk/res/android">
.
.
.
.
<PreferenceScreen android:title="@string/plmn_update_settings_list_item_title" android:key="plmn_update_settings" android:fragment="com.android.settings.PublicLandMobileNetwork" />
[COLOR=blue]<PreferenceScreen
android:title="@string/my_title_yeah"
android:key="my_keyyeah" >
<intent
android:targetPackage="[/COLOR][COLOR=green]com.wubydax.romcontrol.v2[/COLOR][COLOR=blue]"
android:action="android.intent.action.MAIN"
android:targetClass="[/COLOR][COLOR=green]com.wubydax.romcontrol.v2.MainActivity[/COLOR][COLOR=blue]" />
</PreferenceScreen>[/COLOR]
<PreferenceScreen android:title="@string/device_status" android:key="status_info" android:summary="@string/device_status_summary">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.deviceinfo.Status" />
</PreferenceScreen>
.
.
.
.
</PreferenceScreen>
<?xml version="1.0" encoding="utf-8"?>
<resources>
.
.
.
.
[COLOR=blue]<string name="[I]my_title_yeah[/I]">[B]ROM Control[/B]</string>[/COLOR]
</resources>
:cond_0
const-string v0, "heads_up_notifications_enabled"
invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
move-object/from16 v0, p0
invoke-virtual {v0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->[color="blue"]set.........[/color]
:cond_1
return-void
.end method
Yours is very different, let me see your two smali.Hi @tdunham
I try to add a global setting observer and apply it to phoneStatusBar/phoneStatusBar$2 for this mod
http://forum.xda-developers.com/showpost.php?p=67980049&postcount=8441
I block at the end, to set .method public onContentChanged(Ljava/lang/StringV
See blue colored code :
Code::cond_0 const-string v0, "heads_up_notifications_enabled" invoke-virtual {v0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_1 move-object/from16 v0, p0 invoke-virtual {v0}, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->[color="blue"]set.........[/color] :cond_1 return-void .end method
Can you help me please ?
Yours is very different, let me see your two smali.
Ahh, ok I see what you mean. You shouldn't need to set observer I think just adding the key heads_up_notifications_enabled for on/off toggle is enough. Have you tried it?Here you go.
Look line 16946 from PhoneStatusBar.smali, thats where i try to add observer
Look line 21089 from PhoneStatusBar.smali, thats where i mod for Head-Up notification
Look line 69 from PhoneStatusBar$2.smali, thats where i mod for Head-Up notification
Thanks my friend![]()
Ahh, ok I see what you mean. You shouldn't need to set observer I think just adding the key heads_up_notifications_enabled for on/off toggle is enough. Have you tried it?
The only app I notice headsup notifications is Hangouts but maybe there are more. That is the primary reason I use it.
Great job. I added a link to this one at the end of my guide for reference.I found how to make it working : i add the key and Called method for Head-up in observer line 16946 from PhoneStatusBar.smali
Method is .method public start () V
So i have write
->setPublicStart () V
![]()
[emoji3] [emoji3] [emoji3] [emoji3]
Yes Head-up notifications are Called for more apps as Facebook, Telegram...
Now working on the fly [emoji3] [emoji3] [emoji3] [emoji3]
Can you show this method too? I do not see it in your PhoneStatusBar.smali.I found how to make it working : i add the key and Called method for Head-up in observer line 16946 from PhoneStatusBar.smali
Method is .method public start () V
So i have write
->setPublicStart () V
.method private static concatenate(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/CharSequence;
.locals 5
const/4 v2, 0x1
const/4 v3, 0x0
invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v4
[COLOR="Blue"]if-eqz [/COLOR]v4, :cond_1
move v0, v2
.method private updateIsPoweredLocked(I)V
[COLOR="Blue"].locals 14
[/COLOR]
const-string v4, "charger plug"
invoke-virtual {v8, v0, v4}, Landroid/os/PowerManager;->newWakeLock(ILjava/lang/String;)Landroid/os/PowerManager$WakeLock;
move-result-object v7
invoke-virtual {v7, v3}, Landroid/os/PowerManager$WakeLock;->setReferenceCounted(Z)V
const-wide/16 v4, 0x2710
[COLOR="Red"]invoke-virtual {v7, v4, v5}, Landroid/os/PowerManager$WakeLock;->acquire(J)V
[/COLOR]
:cond_1
iput-boolean v0, p0, Lcom/android/server/power/PowerManagerService;->mPowerIsChanged:Z
:cond_2
invoke-direct {p0, v10, v9, v6}, Lcom/android/server/power/PowerManagerService;->shouldWakeUpWhenPluggedOrUnpluggedLocked(ZIZ)Z
move-result v0
[COLOR="Blue"]goto :goto_td
[/COLOR] if-eqz v0, :cond_3
iput-object v0, p0, Lcom/android/server/power/PowerManagerService;->mScreenOnReason:Ljava/lang/String;
invoke-direct {p0, v1, v2}, Lcom/android/server/power/PowerManagerService;->wakeUpNoUpdateLocked(J)Z
[COLOR="Blue"]:goto_td[/COLOR]
:cond_3
const/16 v5, 0x3e8
.method private updateIsPoweredLocked(I)V
.
.
.
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v2
invoke-direct {p0, v9, v8, v0}, Lcom/android/server/power/PowerManagerService;->shouldWakeUpWhenPluggedOrUnpluggedLocked(ZIZ)Z
move-result v1
[COLOR="Blue"]const v1, 0x0
[/COLOR]
if-eqz v1, :cond_1
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
:cond_1
iget-object v6, p0, Landroid/media/AudioService;->mSafeMediaVolumeState:Ljava/lang/Integer;
invoke-virtual {v6}, Ljava/lang/Integer;->intValue()I
move-result v6
[COLOR="Blue"]goto :goto_td
[/COLOR]
if-ne v6, v7, :cond_4
iget-object v6, p0, Landroid/media/AudioService;->mStreamVolumeAlias:[I
goto :goto_1
[COLOR="Blue"]:goto_td[/COLOR]
:cond_4
monitor-exit v5
:try_end_3
.catchall {:try_start_3 .. :try_end_3} :catchall_0
goto :goto_0
.end method
iget v2, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mLongPressOnHomeBehavior:I
if-eqz v2, :cond_0
iput-boolean v5, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mHomeConsumed:Z
const/4 v2, 0x0
invoke-virtual {p0, v2, v4, v4}, Lcom/android/internal/policy/impl/PhoneWindowManager;->performHapticFeedbackLw(Landroid/view/WindowManagerPolicy$WindowState;IZ)Z
iget v2, p0, Lcom/android/internal/policy/impl/PhoneWindowManager;->mLongPressOnHomeBehavior:I
[COLOR="Red"] if-ne v2, v5, :cond_6
[/COLOR]
invoke-direct {p0}, Lcom/android/internal/policy/impl/PhoneWindowManager;->toggleRecentApps()V
<!-- Call -->
<CscFeature_VoiceCall_ConfigRecording>RecordingAllowed</CscFeature_VoiceCall_ConfigRecording>
move-result-object v0
.line 106
[COLOR="Blue"]if-eqz [/COLOR]v0, :cond_2c
.line 107
const-string v0, "GmsNetworkLocationService"
const-string v1, "applySettings(): provider not available"
.method public constructor <init>()V
.registers 2
.prologue
.line 44
invoke-direct {p0}, Landroid/app/Activity;-><init>()V
.line 59
[COLOR="Blue"]const/4 v0, 0x1
[/COLOR]
iput-boolean v0, p0, Lcom/google/android/location/network/ConfirmAlertActivity;->c:Z
.line 60
const/4 v0, 0x0
iput-object v0, p0, Lcom/google/android/location/network/ConfirmAlertActivity;->d:Landroid/app/Dialog;
.line 163
return-void
.end method
.method public onClick(Landroid/content/DialogInterface;I)V
.registers 6
.prologue
[COLOR="Blue"] const/4 v1, 0x1
[/COLOR]
.line 140
const/4 v0, -0x1
if-ne p2, v0, :cond_2a
const/4 v0, 0x1
:goto_5
iput-boolean v0, p0, Lcom/google/android/location/network/ConfirmAlertActivity;->c:Z
<bool name="display_battery_cover_popup">[COLOR="Blue"]false[/COLOR]</bool>
invoke-virtual {v0, v4}, Landroid/app/Dialog;->setOnCancelListener(Landroid/content/DialogInterface$OnCancelListener;)V
[COLOR="Red"]invoke-virtual {v0}, Landroid/app/Dialog;->show()V
[/COLOR]
return-void
.end method
Change these three lines
New values are in BLUE
<item type="dimen" name="status_bar_icon_drawing_alpha">[COLOR="Blue"]100.0%[/COLOR]</item>
<item type="dimen" name="system_icon_area_alpha">[COLOR="Blue"]1.0[/COLOR]</item>
<item type="dimen" name="notification_icon_area_alpha">[COLOR="Blue"]1.0[/COLOR]</item>
invoke-virtual {v6, v7}, Landroid/view/Window;->setType(I)V
:goto_4
[COLOR="Blue"] new-instance v8, Lcom/android/systemui/statusbar/policy/quicksetting/AirplaneModeQuickSettingButton$4;
invoke-direct {v8, p0, v5}, Lcom/android/systemui/statusbar/policy/quicksetting/AirplaneModeQuickSettingButton$4;-><init>(Lcom/android/systemui/statusbar/policy/quicksetting/AirplaneModeQuickSettingButton;Z)V
const v6, 0x0
invoke-virtual {v8, v6, v5}, Lcom/android/systemui/statusbar/policy/quicksetting/AirplaneModeQuickSettingButton$4;->onClick(Landroid/content/DialogInterface;I)V
return-void
[/COLOR]
iget-object v6, p0, Lcom/android/systemui/statusbar/policy/quicksetting/AirplaneModeQuickSettingButton;->mAlertDialog:Landroid/app/AlertDialog;
invoke-virtual {v6}, Landroid/app/Dialog;->show()V
const/16 v5, 0x7d9
invoke-virtual {v4, v5}, Landroid/view/Window;->setType(I)V
:goto_3
[COLOR="Blue"]
new-instance v6, Lcom/android/systemui/qs/tiles/AirplaneModeTile$6;
invoke-direct {v6, p0, p1}, Lcom/android/systemui/qs/tiles/AirplaneModeTile$6;-><init>(Lcom/android/systemui/qs/tiles/AirplaneModeTile;Z)V
const v4, 0x0
invoke-virtual {v6, v4, p1}, Lcom/android/systemui/qs/tiles/AirplaneModeTile$6;->onClick(Landroid/content/DialogInterface;I)V
return-void[/COLOR]
iget-object v4, p0, Lcom/android/systemui/qs/tiles/AirplaneModeTile;->mAlertDialog:Landroid/app/AlertDialog;
invoke-virtual {v4}, Landroid/app/AlertDialog;->show()V
return-void
<CscFeature_Setting_EnableMenuBlockCallMsg>TRUE</CscFeature_Setting_EnableMenuBlockCallMsg>
const-string/jumbo v1, "tether_dun_required"
[COLOR="Blue"]const/4 v2, 0x0[/COLOR]
invoke-static {v0, v1, v2}, Landroid/provider/Settings$Secure;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z
const-string v0, "Tethering"
[COLOR="Green"]const-string v1, "Set dun requiered as 1"
[/COLOR]
add this entry:
<item type="id" name="dev_settings">false</item>
<header android:icon="@drawable/ic_settings_development" android:id="@id/development_settings" android:title="@string/development_settings_title" android:fragment="com.android.settings.DevelopmentSettings" />
<header android:icon="@drawable/ic_settings_development" android:id="@id/dev_settings" android:title="@string/development_settings_title" android:fragment="com.android.settings.DevelopmentSettings" />
iput-object v9, p0, Lcom/android/server/wm/WindowManagerService;->mFocusedApp:Lcom/android/server/wm/AppWindowToken;
[COLOR="Blue"]const/high16 v9, 0x3f00[/COLOR]
iput v9, p0, Lcom/android/server/wm/WindowManagerService;->mWindowAnimationScale:F
[COLOR="Blue"]const/high16 v9, 0x3f00
[/COLOR]
iput v9, p0, Lcom/android/server/wm/WindowManagerService;->mTransitionAnimationScale:F
[COLOR="Blue"]const/high16 v9, 0x3f00[/COLOR]
iput v9, p0, Lcom/android/server/wm/WindowManagerService;->mAnimatorDurationScale:F
<bool name="show_ongoing_ime_switcher">[COLOR="Blue"]false[/COLOR]</bool>
:sswitch_1
move v0, v1
goto :goto_0
[COLOR="Blue"]:sswitch_4
return v1
nop
[/COLOR]
:sswitch_data_0
.sparse-switch
[COLOR="Blue"]0x3 -> :sswitch_4
[/COLOR] 0x18 -> :sswitch_0
0x19 -> :sswitch_0
iget-object v0, v0, Lcom/android/phone/PhoneGlobals;->notificationMgr:Lcom/android/phone/NotificationMgr;
move-object/from16 v30, v0
[COLOR="Red"] invoke-virtual/range {v30 .. v30}, Lcom/android/phone/NotificationMgr;->showDataDisconnectedRoaming()V
[/COLOR]
goto/16 :goto_0
:sswitch_7
move-object/from16 v0, p0
iget-object v0, v0, Lcom/android/phone/PhoneGlobals$5;->this$0:Lcom/android/phone/PhoneGlobals;
move-object/from16 v30, v0
move-object/from16 v0, v30
iget-object v0, v0, Lcom/android/phone/PhoneGlobals;->notificationMgr:Lcom/android/phone/NotificationMgr;
move-object/from16 v30, v0
[COLOR="Red"]invoke-virtual/range {v30 .. v30}, Lcom/android/phone/NotificationMgr;->hideDataDisconnectedRoaming()V
[/COLOR]
goto/16 :goto_0
.method private createScrollingCache()V
.locals 2
.prologue
[COLOR="Blue"]const/4 v1, 0x0[/COLOR]
.method private initAbsListView()V
.locals 11
.prologue
const-wide/16 v4, 0x0
const/4 v0, 0x0
const/4 v10, 0x1
.line 1159
invoke-virtual {p0, v10}, Landroid/view/View;->setClickable(Z)V
.line 1160
invoke-virtual {p0, v10}, Landroid/widget/AdapterView;->setFocusableInTouchMode(Z)V
.line 1161
invoke-virtual {p0, v0}, Landroid/view/View;->setWillNotDraw(Z)V
.line 1162
invoke-virtual {p0, v0}, Landroid/view/ViewGroup;->setAlwaysDrawnWithCacheEnabled(Z)V
.line 1163
[COLOR="Blue"]invoke-virtual {p0, v0}, Landroid/widget/AbsListView;->setScrollingCacheEnabled(Z)V
[/COLOR]
.method public setScrollingCacheEnabled(Z)V
.locals 1
[COLOR="Blue"].parameter "disabled"[/COLOR]
.prologue
.line 1999
if-nez v2, :cond_c
const-string v2, [COLOR="Blue"]"SPX"
[/COLOR]
sget-object v3, Lcom/android/hiddenmenu/hdata;->mSalesCode:Ljava/lang/String;
invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v2
if-nez v2, :cond_c
const-string v2, "XAS"
sget-object v3, Lcom/android/hiddenmenu/hdata;->mSalesCode:Ljava/lang/String;
invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v2
if-nez v2, :cond_c
const-string v2, "MSM7630_SURF"
:cond_c
const-string v2, [COLOR="Blue"]"SPX"
[/COLOR]
sget-object v3, Lcom/android/hiddenmenu/hdata;->mSalesCode:Ljava/lang/String;
invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result v2
if-nez v2, :cond_d
const-string v2, "MSM7630_SURF"
const-string v3, "username_preference"
invoke-virtual {v2, v3}, Landroid/preference/PreferenceScreen;->setKey(Ljava/lang/String;)V
const-string v3, "Edit"
invoke-virtual {v2, v3}, Landroid/preference/PreferenceScreen;->setTitle(Ljava/lang/CharSequence;)V
const-string v3, [COLOR="Blue"]"SPR"[/COLOR]
sget-object v4, Lcom/android/hiddenmenu/hdata_options;->mSalesCode:Ljava/lang/String;
if-nez v0, :cond_2c
const-class v0, Lcom/android/hiddenmenu/DebugMenu_Check;
invoke-virtual {v3, p1, v0}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;
[COLOR="Red"]move-result-object v0
const-string v1, "keyString"
invoke-virtual {v0, v1, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
[/COLOR]
move v1, v2
goto/16 :goto_5
if-nez v0, :cond_2c
const-class v0, Lcom/android/hiddenmenu/[COLOR="Blue"]DEBUGMENU[/COLOR];
invoke-virtual {v3, p1, v0}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;
move v1, v2
goto/16 :goto_5
.field private static final FEATURE_XML:Ljava/lang/String; = "/system/csc/[COLOR="Red"]feature.xml[/COLOR]"
const-string v10, "/system/csc/[COLOR="Red"]feature.xml[/COLOR]"
.field private static final FEATURE_XML:Ljava/lang/String; = "/system/csc/[COLOR="Blue"]ultimate.xml[/COLOR]"
const-string v10, "/system/csc/[COLOR="Blue"]ultimate.xml[/COLOR]"
.method private shouldEnableScreenRotation()Z
.locals 3
const/4 v1, [COLOR="Blue"]0x1
[/COLOR]
iget-object v2, p0, Lcom/android/keyguard/KeyguardViewManager;->mContext:Landroid/content/Context;
invoke-direct/range {p0 .. p0}, Lcom/android/settings/DeviceInfoSettings;->showKnoxVersion()V
.method public showFullBatteryNotice()V
.locals 12
[COLOR="Blue"]goto :goto_td
[/COLOR].
.
.
[COLOR="Blue"]:goto_td
[/COLOR] return-void
.end method
.method showLowBatteryWarning()V
.locals 21
[COLOR="Blue"]goto :goto_td[/COLOR]
const-string v18, "PowerUI"
new-instance v19, Ljava/lang/StringBuilder;
invoke-virtual {v13, v0, v1}, Landroid/os/PowerManager$WakeLock;->acquire(J)V
goto/16 :goto_2
[COLOR="Blue"]:goto_td
return-void
[/COLOR].end method
.method showOverheatShutdownNotice()V
[COLOR="Red"]<LinearLayout android:orientation="vertical" android:id="@id/sfinder_qconnect_layout" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:paddingLeft="@dimen/finder_connect_button_padding_right" android:paddingTop="@dimen/finder_connect_button_padding_top" android:paddingRight="@dimen/finder_connect_button_padding_left" android:paddingBottom="@dimen/finder_connect_button_padding_bottom" android:layout_width="fill_parent" android:layout_height="wrap_content">
<Button android:textSize="@dimen/tw_quick_panel_sfinder_qconnect_button_text_size" android:textColor="@drawable/tw_quick_panel_sfinder_qconnect_button_text_color" android:id="@id/sfinder_button_big" android:background="@drawable/tw_quick_panel_sfinder_qconnect_button" android:layout_width="0.0dip" android:layout_height="@dimen/finder_connect_button_height" android:layout_marginRight="10.0dip" android:text="@string/accessibility_sfinder_button" android:layout_weight="0.5" android:fontFamily="sec-roboto-light" />
<Button android:textSize="@dimen/tw_quick_panel_sfinder_qconnect_button_text_size" android:textColor="@drawable/tw_quick_panel_sfinder_qconnect_button_text_color" android:id="@id/qconnect_button_big" android:background="@drawable/tw_quick_panel_sfinder_qconnect_button" android:layout_width="0.0dip" android:layout_height="@dimen/finder_connect_button_height" android:layout_marginLeft="10.0dip" android:text="@string/accessibility_qconnect_button" android:layout_weight="0.5" android:fontFamily="sec-roboto-light" />
</LinearLayout>
<View android:id="@id/sfinder_qconnect_divider" android:background="@drawable/notification_bottom_line" android:layout_width="fill_parent" android:layout_height="1.0dip" />
</LinearLayout>[/COLOR]
<ImageView android:id="@id/sfinder_button" android:background="@drawable/ic_notify_button_bg" android:paddingLeft="[COLOR="Red"]0.0dip[/COLOR]" android:paddingTop="@dimen/button_holder_margin_top" android:paddingRight="[COLOR="Red"]0.0dip[/COLOR]" android:paddingBottom="@dimen/button_holder_margin_bottom" android:focusable="true" android:layout_width="[COLOR="Red"]0.0dip[/COLOR]" android:layout_height="fill_parent" android:src="@drawable/tw_quickpanel_icon_search" android:scaleType="center" android:layout_alignParentLeft="true" android:contentDescription="@string/accessibility_sfinder_button" />
<ImageView android:id="@id/expanded_divider_1" android:background="@color/quickpanel_button_divider_color" android:layout_width="[COLOR="Red"]0.0dip[/COLOR]" android:layout_height="fill_parent" android:layout_marginTop="@dimen/button_holder_divider_margin_top" android:layout_marginBottom="@dimen/button_holder_divider_margin_bottom" android:layout_toRightOf="@id/sfinder_button" />
<com.android.systemui.statusbar.phone.NotificationPanelView android:id="@id/notification_panel" [COLOR="Red"]android:background="@drawable/tw_custom_bg[/COLOR]" android:paddingTop="@dimen/notification_panel_padding_top" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_marginStart="@dimen/notification_panel_margin_left"
<ImageView android:id="@id/expanded_divider_2" android:background="@color/quickpanel_button_divider_color" android:visibility="gone" android:layout_width="1.0dip" android:layout_height="fill_parent" android:layout_marginTop="@dimen/button_holder_divider_margin_top" android:layout_marginBottom="@dimen/button_holder_divider_margin_bottom" android:layout_toLeftOf="@id/edit_button_holder" />
[COLOR="Blue"]<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:paddingLeft="1.0dip" android:paddingRight="2.0dip" android:layout_width="35.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_notify_recent" android:scaleType="center" android:layout_toLeftOf="@id/expanded_divider_2" android:contentDescription="@string/accessibility_recent" systemui:keyCode="187" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
[/COLOR] <FrameLayout android:id="@id/edit_button_holder" android:layout_width="@dimen/button_holder_width" android:layout_height="fill_parent" android:layout_toLeftOf="@id/expanded_divider_3">
.method private makeConvertPanelName()V
.
.
.
[COLOR="Blue"] const-string v1, "Flashlight"
const-string v2, "notification_panel_flashlight"
invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iget-object v0, p0, Lcom/android/settings/NotificationPanelMenu;->mConvertPanelItemstring:Ljava/util/HashMap;
const-string v1, "notification_panel_flashlight"
const-string v2, "Flashlight"
invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
iget-object v0, p0, Lcom/android/settings/NotificationPanelMenu;->mConvertPanelItemstring:Ljava/util/HashMap;
[/COLOR]
return-void
.end method
[COLOR="Blue"]<string name="notification_panel_flashlight">Flashlight</string>
[/COLOR]</resources>
.method protected makeStatusBarView()Lcom/android/systemui/statusbar/phone/PhoneStatusBarView;
.
.
.
iget-object v4, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mCarrierLabel:Landroid/widget/TextView;
move-object/from16 v0, p0
iget-object v5, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mClearAll:Landroid/widget/TextView;
invoke-virtual {v3, v4, v5}, Lcom/android/systemui/statusbar/phone/NotificationPanelView;->setCarrierView(Landroid/widget/TextView;Landroid/widget/TextView;)V
:cond_d
:goto_7
[COLOR="Red"]const/4 v3, 0x0[/COLOR]
[COLOR="Blue"]new-instance v3, Lcom/android/systemui/statusbar/policy/FlashlightController;
move-object/from16 v0, p0
iget-object v4, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mContext:Landroid/content/Context;
invoke-direct {v3, v4}, Lcom/android/systemui/statusbar/policy/FlashlightController;-><init>(Landroid/content/Context;)V
[/COLOR]
move-object/from16 v0, p0
iput-object v3, v0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mFlashlightController:Lcom/android/systemui/statusbar/policy/FlashlightController;
new-instance v3, Lcom/android/systemui/statusbar/policy/AccessibilityController;
[COLOR="Blue"]<string name="quickpanel_flashlight_text">Flashlight</string>[/COLOR]
</resources>
.method protected handleUpdateState(Lcom/android/systemui/qs/QSTile$BooleanState;Ljava/lang/Object;)V
.
.
.
iput-object v1, p1, Lcom/android/systemui/qs/QSTile$BooleanState;->label:Ljava/lang/String;
iget-boolean v1, p1, Lcom/android/systemui/qs/QSTile$BooleanState;->value:Z
if-eqz v1, :cond_6
const v1, 0x[COLOR="Blue"]7f0206e8[/COLOR] ## tw_quick_panel_icon_flashlight_on
:goto_2
iput v1, p1, Lcom/android/systemui/qs/QSTile$BooleanState;->iconId:I
iget-boolean v1, p1, Lcom/android/systemui/qs/QSTile$BooleanState;->value:Z
if-eqz v1, :cond_7
const v0, 0x7f0c0278
:goto_3
iget-object v1, p0, Lcom/android/systemui/qs/tiles/FlashlightTile;->mContext:Landroid/content/Context;
invoke-virtual {v1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;
move-result-object v1
iput-object v1, p1, Lcom/android/systemui/qs/QSTile$BooleanState;->contentDescription:Ljava/lang/String;
return-void
:cond_4
iget-object v1, p0, Lcom/android/systemui/qs/tiles/FlashlightTile;->mHandler:Lcom/android/systemui/qs/QSTile$H;
iget-object v2, p0, Lcom/android/systemui/qs/tiles/FlashlightTile;->mRecentlyOnTimeout:Ljava/lang/Runnable;
invoke-virtual {v1, v2}, Lcom/android/systemui/qs/QSTile$H;->removeCallbacks(Ljava/lang/Runnable;)V
iget-object v1, p0, Lcom/android/systemui/qs/tiles/FlashlightTile;->mHandler:Lcom/android/systemui/qs/QSTile$H;
iget-object v2, p0, Lcom/android/systemui/qs/tiles/FlashlightTile;->mRecentlyOnTimeout:Ljava/lang/Runnable;
iget-wide v4, p0, Lcom/android/systemui/qs/tiles/FlashlightTile;->mWasLastOn:J
add-long/2addr v4, v8
invoke-virtual {v1, v2, v4, v5}, Lcom/android/systemui/qs/QSTile$H;->postAtTime(Ljava/lang/Runnable;J)Z
goto :goto_0
:cond_5
const/4 v1, 0x0
goto :goto_1
:cond_6
const v1, 0x[COLOR="Blue"]7f0206e7[/COLOR] ## tw_quick_panel_icon_flashlight_on
goto :goto_2
:cond_7
const v0, 0x7f0c0277
goto :goto_3
.end method