[MOD][GUIDE] Device Status Info "Normal" Instead Of "Modified" Mod! - T-Mobile, Samsung Galaxy SIII

[MOD][GUIDE] Device Status Info "Normal" Instead Of "Modified" Mod!
Hello to all Developers and XDA members! I have come here to give you a guide on how you can change the device status info from "Modified" to "Normal" and here is how you can do it!
What Is Required...
★ First you need to have experience and know how to decompile/recompile apks with Apktools, apkmanager, smali, and baksmali
★ Have 7-zip installed onto your computer/laptop
★ Make sure you have Notepad++ also installed!
★HOW TO CHANGE THE DEVICE STATUS INFO FROM "MODIFIED" TO "NORMAL"★
WHAT DOES THIS MOD DO: Instead Of The Device Status Showing As "Modified" It Now Shows As "Normal". So Now The Custom Rom Can Look More Like It's Stock.
STEP 1
★ Go into your system/app folder and take out your "SecSettings.apk"
★ Then use one of the applications such as apktools or apkmanager and then use the commands to decompile the SecSettings.apk
★ Once you have decompiled the SecSettings.apk, navigate and go to:
smali/com/android/settings/deviceinfo/Status.smali
Click to expand...
Click to collapse
Now open up "Status.smali" with Notepad++ for editing:
Now for this part of this guide what I have highlighted in GREEN text is what you have to find using Notepad++, What you see in RED is the line you have to remove/delete, And also what you see in BLUE is the line you have to make the modified changes to:
SEARCH FOR METHOD:
Code:
[COLOR="Green"].method private changeSysScopeStatus()V[/COLOR]
NOW REMOVE THIS WHOLE ENTIRE LINE THAT YOU SEE IN RED ALL THE WAY DOWN TO THE .END METHOD:
Code:
[COLOR="Green"].method private changeSysScopeStatus()V[/COLOR]
[COLOR="Red"].locals 7
.prologue
const-wide/16 v3, 0x3e8
const v6, 0x7f090129
const/4 v5, -0x1
.line 827
const-string v0, "sysscope_status"
invoke-virtual {p0, v0}, Lcom/android/settings/deviceinfo/Status;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;
move-result-object v2
.line 829
invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J
move-result-wide v0
div-long/2addr v0, v3
.line 830
invoke-static {}, Landroid/os/SystemClock;->elapsedRealtime()J
move-result-wide v0
div-long/2addr v0, v3
.line 832
const-wide/16 v3, 0x0
cmp-long v3, v0, v3
if-nez v3, :cond_0
.line 833
const-wide/16 v0, 0x1
.line 836
:cond_0
iget-object v3, p0, Lcom/android/settings/deviceinfo/Status;->mSysScope:Lcom/sec/android/app/sysscope/service/SysScope;
invoke-virtual {v3}, Lcom/sec/android/app/sysscope/service/SysScope;->isConnected()Z
move-result v3
if-nez v3, :cond_1
const-wide/16 v3, 0x78
cmp-long v0, v0, v3
if-lez v0, :cond_1
.line 837
invoke-virtual {p0, v6}, Lcom/android/settings/deviceinfo/Status;->getString(I)Ljava/lang/String;
move-result-object v0
.line 854
:goto_0
invoke-virtual {v2, v0}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V
.line 855
return-void
.line 840
:cond_1
:try_start_0
iget-object v0, p0, Lcom/android/settings/deviceinfo/Status;->mSysScope:Lcom/sec/android/app/sysscope/service/SysScope;
invoke-virtual {v0}, Lcom/sec/android/app/sysscope/service/SysScope;->getLastScanResult()Lcom/sec/android/app/sysscope/service/SysScopeResultInfo;
move-result-object v0
invoke-virtual {v0}, Lcom/sec/android/app/sysscope/service/SysScopeResultInfo;->getResult()I
move-result v0
iput v0, p0, Lcom/android/settings/deviceinfo/Status;->isSysScopeStatus:I
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
.line 845
:goto_1
iget v0, p0, Lcom/android/settings/deviceinfo/Status;->isSysScopeStatus:I
const/4 v1, 0x2
if-ne v0, v1, :cond_2
.line 846
invoke-virtual {p0, v6}, Lcom/android/settings/deviceinfo/Status;->getString(I)Ljava/lang/String;
move-result-object v0
goto :goto_0
.line 841
:catch_0
move-exception v0
.line 842
iput v5, p0, Lcom/android/settings/deviceinfo/Status;->isSysScopeStatus:I
goto :goto_1
.line 847
:cond_2
iget v0, p0, Lcom/android/settings/deviceinfo/Status;->isSysScopeStatus:I
if-ne v0, v5, :cond_3
.line 848
const v0, 0x7f09012a
invoke-virtual {p0, v0}, Lcom/android/settings/deviceinfo/Status;->getString(I)Ljava/lang/String;
move-result-object v0
goto :goto_0
.line 850
:cond_3
const v0, 0x7f09012a
invoke-virtual {p0, v0}, Lcom/android/settings/deviceinfo/Status;->getString(I)Ljava/lang/String;
move-result-object v0
goto :goto_0
.end method[/COLOR]
AND THEN ADD THIS ENTIRE NEW METHOD RIGHT UNDER TO THE METHOD YOU HAVE SEARCHED FOR IN GREEN:
Code:
[COLOR="Green"].method private changeSysScopeStatus()V[/COLOR]
[COLOR="Blue"].locals 2
const-string v0, "sysscope_status"
invoke-virtual {p0, v0}, Lcom/android/settings/deviceinfo/Status;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;
move-result-object v0
const v1, 0x7f090128 #sysscope_normal
invoke-virtual {p0, v1}, Lcom/android/settings/deviceinfo/Status;->getString(I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V
return-void
.end method
[/COLOR]
STEP 2
I have added a hashtag which is #sysscope_normal from the new method you have to add from above that I have highlighted in BLUE. For your next step on how you can find your public id which mines in this guide is 0x7f090128 for sysscope_normal since for other carriers your public id might be different. To find yours here is how...
Once your "SecSettings.apk" is decompiled head to:
res/values/public.xml
Click to expand...
Click to collapse
Now open up "public.xml" with Notepad++:
Now for this part what I have highlighted in GREEN text is what you have to find using Notepad++, What you see in BLUE is the line you have to look at to get your sysscope_normal public string id:
SEARCH FOR PUBLIC STRING:
Code:
[COLOR="Green"]<public type="string" name="sysscope_normal"[/COLOR]
My syscope_normal public string id for T-Mobile is what you see in BLUE:
Code:
[COLOR="Green"]<public type="string" name="sysscope_normal" id="[/COLOR][COLOR="Blue"]0x7f090128[/COLOR][COLOR="Green"]" />[/COLOR]
If your sysscope_normal public string id is different than mines, what your going to need to do is copy your public string id that's different, and then paste it over the the public id right next to #sysscope_normal from the entire new method that you have added that is highlighted in BLUE from STEP 1.
Now once your done with modifying the "Status.smali" and checking that you have the right public id, Save your Notepad changes, Recompile your SecSettings.apk using apktool or smali commands and your DONE! You should now head to "Settings - About device - Status" and where it says "Device Status" It should now say "Normal" Instead Of "Modified"!... ENJOY!
REMINDER...
Remember this works for all S3 Devices on all carriers T-Mobile, ATT, Verizon, Sprint, And Etc!

Oh man.... this.... this is freaking awesome! You rock Jovy! Amazing job as always man. So adding to my next update. Thanks bro.

nice find! :good:

I have think there is a typo in step one, you said to decompile SecMms.apk, I believe you meant SecSettings
Sent from my Galaxy Note 10.1!

Jamison904 said:
Oh man.... this.... this is freaking awesome! You rock Jovy! Amazing job as always man. So adding to my next update. Thanks bro.
Click to expand...
Click to collapse
Thanks bro! Enjoy the mod its great implementing this mod on any modified rom, the modified rom now acts as if its a real stock rom since it is now "Normal"! :good:
Sent from my SGH-T999 using Tapatalk 2

semorebutts123 said:
nice find! :good:
Click to expand...
Click to collapse
Thanks! :good:
Sent from my SGH-T999 using Tapatalk 2

Great job bro!!! I have been waiting for something like this for a while.... Your instructions are on point and easy to follow. Thanks for your dedication man.

LoopDoGG79 said:
I have think there is a typo in step one, you said to decompile SecMms.apk, I believe you meant SecSettings
Sent from my Galaxy Note 10.1!
Click to expand...
Click to collapse
Oops thanks for the heads up I have just fixed it and also to let everyone know I have updated the OP with a Reminder for the people who have a S3 device on another carrier...

prototype.77 said:
Great job bro!!! I have been waiting for something like this for a while.... Your instructions are on point and easy to follow. Thanks for your dedication man.
Click to expand...
Click to collapse
Your welcome bro. :good:
Sent from my SGH-T999 using Tapatalk 2

Damn Jovy you always find the best tweaks! Great job man. Will try it and install Isis wallet
One question though, Will this let your phone search for updates or OTA when their out? And not say your device is modded anymore

gypsy214 said:
Damn Jovy you always find the best tweaks! Great job man. Will try it and install Isis wallet
One question though, Will this let your phone search for updates or OTA when their out? And not say your device is modded anymore
Click to expand...
Click to collapse
Im not sure since i always remove/hide the firmware update setting from my roms so i cant test that part out hopefully someone could post and let me know, but imo it shouldnt ask for firmware OTA updates if the developer has already removed the specific apk files that has to do with anything about checking/searching for OTA updates.
Sent from my SGH-T999 using Tapatalk 2

jovy23 said:
Im not sure since i always remove/hide the firmware update setting from my roms so i cant test that part out hopefully someone could post and let me know, but imo it shouldnt ask for firmware OTA updates if the developer has already removed the specific apk files that has to do with anything about checking/searching for OTA updates.
Sent from my SGH-T999 using Tapatalk 2
Click to expand...
Click to collapse
Well every now and then I like to go completely stock. Was just wondering if with this method it will actually notify when there is an update. Will go flash the stock ROM with a previous firmware and this and see if it happens.
Was just wondering

Nice work and find bro!

sbreen94 said:
Nice work and find bro!
Click to expand...
Click to collapse
Thanks man! Enjoy... :good:

Shows normal but apps that check for root like media hub still won't work.
Sent from my SGH-T999 using xda premium

Great job! I'll be sure and add the credit to the how-to here. Oh wait..how did the date on this thread? Definitely something weird....
http://forum.xda-developers.com/showthread.php?t=2192199

digiblur said:
Great job! I'll be sure and add the credit to the how-to here. Oh wait..how did the date on this thread? Definitely something weird....
http://forum.xda-developers.com/showthread.php?t=2192199
Click to expand...
Click to collapse
lol nice work digiblur! I added your mod to my rom and it worked great! I will be giving you credit in my op for making the mod
Thanx for sharing

Hey Jovy. I love the ROM. X2 is definitely a beast. After I flashed the mod for normal status, it shows normal but I still can't play content from media hub or connect via all share cast. Any help would be greatly appreciated being that I would like to use this awesome ROM and view on big screen via all share cast.
Sent from my SGH-T999 using xda premium

seshaz said:
Shows normal but apps that check for root like media hub still won't work.
Sent from my SGH-T999 using xda premium
Click to expand...
Click to collapse
Media Hub does work with root. I'm rooted stock right now and I have a working media hub. as long as device status is "normal" media hub should work fine.

christucker97 said:
Hey Jovy. I love the ROM. X2 is definitely a beast. After I flashed the mod for normal status, it shows normal but I still can't play content from media hub or connect via all share cast. Any help would be greatly appreciated being that I would like to use this awesome ROM and view on big screen via all share cast.
Sent from my SGH-T999 using xda premium
Click to expand...
Click to collapse
It's because it is a cosmetic change only.
Sent from my little Note2

Related

[FIX][HOWTO] Lockscreen loading Bug

This mod (JVU/JW4/JW5/JW6) fixes bug when battery is below 20 % in lockscreen displayed "charging %" instead of "Please connect charger".
HOWTO
1. Decompile android.policy.jar
For beginers here is a guide by pantrif13 : http://forum.xda-developers.com/show...1&postcount=16
2. Edit android.policy\smali\com\android\internal\policy\impl\ClockWidget.smali
Search
.method public setBatteryInfo()V
Change line:
Code:
invoke-virtual {v3}, Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;->shouldShowBatteryInfo()Z
by
Code:
invoke-virtual {v3}, Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;->shouldShowBatteryInfo1()Z
3. Edit android.policy\smali\com\android\internal\policy\impl\KeyguardUpdateMonitor.smali
Search
Code:
.line 360
new-instance v1, Lcom/android/internal/policy/impl/KeyguardUpdateMonitor$3;
invoke-direct {v1, p0}, Lcom/android/internal/policy/impl/KeyguardUpdateMonitor$3;-><init>(Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;)V
invoke-virtual {p1, v1, v0}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;
Add bellow
Code:
new-instance v1, Lcom/android/internal/policy/impl/KeyguardUpdateMonitor$4;
invoke-direct {v1, p0}, Lcom/android/internal/policy/impl/KeyguardUpdateMonitor$4;-><init>(Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;)V
invoke-virtual {p1, v1, v0}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;
And add to end of file
Code:
.method public shouldShowBatteryInfo1()Z
.locals 1
.prologue
.line 962
iget v0, p0, Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;->mBatteryStatus:I
invoke-direct {p0, v0}, Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;->isPluggedIn(I)Z
move-result v0
if-nez v0, :cond_0
iget v0, p0, Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;->mBatteryLevel:I
invoke-direct {p0, v0}, Lcom/android/internal/policy/impl/KeyguardUpdateMonitor;->isBatteryLow(I)Z
move-result v0
if-eqz v0, :cond_1
:cond_0
const/4 v0, 0x1
:goto_0
return v0
:cond_1
const/4 v0, 0x0
goto :goto_0
.end method
4. Copy the file KeyguardUpdateMonitor$4.smali attached in "android.policy\smali\com\android\internal\policy\impl\" and recompile
Thanks, I hope to see your fix in some ROM now !
Sent from my GT-I9000 using XDA
.Slane. said:
Thanks, I hope to see your fix in some ROM now !
Sent from my GT-I9000 using XDA
Click to expand...
Click to collapse
S A U R O M - Projekt---> JW5/JW4/JVU/JW1/JVZ for I9000
Good news and good job. thanks
I'm just curious how ppl find something like that out. And what does the smileys mean?
What changes did you make to this fix in your jw6 rom?
Yes,jw6 aviable
Sent from my GT-I9000 using xda app-developers app
dark_knight35 said:
I'm just curious how ppl find something like that out. And what does the smileys mean?
Click to expand...
Click to collapse
The smileys ar ;/) (w/out "/" ) and the forum rules are the smileys are activated
Sent from my GT-I9000 using Tapatalk 2
Is there a chance for us with the lack of skills to get this as a flashable zip?
This bug is gone in 2.3.6 ZSJW4 for chinese market. I think it is the only version of JW...firmware that comes with this fixed.
Hey there lirik0.
I tried your guide so as to fix this bug for the Samsung Galaxy S Plus (i9001).
I have made all the changes to the files that you describe (with some differences on the 3rd - it was a different line number).
But i probably need a different attachment file to download and recompile.
Could you please help all the i9001 community to resolve this issue cause?
Thanks in advance!
PS: I have also attached our android.policy.jar from XXKQH ROM.

[DEV] [MOD] [HOW-TO] Remove Fully Charge Notification on LG8 Based Sprint ROMS [MOD]

Hello again! Here is a quick tutorial on how to remove the annoying fully battery notification! This also disables the screen from turning on by itself when its fully charged!
First you're going to need to decompile the Smali in SystemUI.apk
TIP: When decompiling classes.dex, run the -b tag as well so you can remove all the .line's ect and keep it just code
Navigate to the following smali file: com\android\systemui\power\PowerUI.smali
Remove the the following lines (Or comment them out, whichever you prefer):
Code:
invoke-virtual {v7, v8, v6, v5, v3}, Landroid/app/Notification;->setLatestEventInfo(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V
iget-object v7, p0, Lcom/android/systemui/power/PowerUI;->mFullBatteryNotification:Landroid/app/Notification;
iget v7, v7, Landroid/app/Notification;->icon:I
iget-object v8, p0, Lcom/android/systemui/power/PowerUI;->mFullBatteryNotification:Landroid/app/Notification;
[COLOR="Red"] [B]--[/B] invoke-virtual {v2, v7, v8}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V[/COLOR]
iget-object v7, p0, Lcom/android/systemui/SystemUI;->mContext:Landroid/content/Context;
const-string v8, "power"
invoke-virtual {v7, v8}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v4
check-cast v4, Landroid/os/PowerManager;
The next line is here:
Code:
const-string v8, "PowerUI"
invoke-virtual {v4, v7, v8}, Landroid/os/PowerManager;->newWakeLock(ILjava/lang/String;)Landroid/os/PowerManager$WakeLock;
move-result-object v0
const-wide/16 v7, 0x4e20
[COLOR="red"][B]--[/B] invoke-virtual {v0, v7, v8}, Landroid/os/PowerManager$WakeLock;->acquire(J)V[/COLOR]
goto :goto_14
.end method
.method playSound(Landroid/net/Uri;)V
.registers 10
const-string v4, "PowerUI"
new-instance v5, Ljava/lang/StringBuilder;
invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V
Thats it! Now compile and push your new SystemUI.apk and enjoy not being bugged by that annoying notification
Have fun!
thanks for this! I had this mod on my Samsung Moment and Samsung Transform, but they made it a flashable zip. Any chance of that happening?
So umm how about that mms mod lol sorry couldn't resist
Apple just give up the IPHONE sucks deal with it.
blackdragon79 said:
So umm how about that mms mod lol sorry couldn't resist
Apple just give up the IPHONE sucks deal with it.
Click to expand...
Click to collapse
Haha its STILL a WIP. Its a tough MOD trust me.
Thank you again sir. Its nice to see you sharing helpful information the way that you do.
Sent from my SGS3 while experiencing some Wicked Sensations™.
clark44 said:
Haha its STILL a WIP. Its a tough MOD trust me.
Click to expand...
Click to collapse
Apple just give up the IPHONE sucks deal with it.
Trust me I know it is. Wish Samsung wouldn't put a limit on that.
Hmm I did this as my first adventure in DE-compile/rebuild all seem to work fine.. I also wiped dalvik/cache after reinstal of modded SUI.
Since Iv'e noticed two things. That the phone no longer wakes up on an incoming call. and it seems to take a really long time to boot. Maybe I did something wrong (I did pull/install framework-res.apk b4 decompile of SUI could that have messed up something?)
LP
That's great. thanks for share.
Is there a ZIP for this? I am a little slow with the changing of codes.
Sent from my SPH-L710 using xda premium
Great Work OP!
I too would appreciate a flashable zip file for this Mod since I have not taken the time to learn to alter the code strings myself.
I am on Blazer ROM 1.8 and for some reason Mod's like this are not present even on the most recent version.

[MOD][GUIDE] Add abbreviated day of the week to status bar

I realize most over here on the Sprint GS3 are probably running some sort of JB varient by now but those of us stuck on verizon cant play yet . So I worked this mod out for the VW GS3 and figured I would share with anyone still running an ICS Sprint GS3. The code for making this work with a JB ROM is very similar from what I can tell. I think you can actually skip the smali edits entirely if you are running a JB ROM and just mod the layout files. Anyway here is the guide...
This will cover two scenarios.
1. Center Clock Applications
2. Stock Clock Applications
First one will be for Center Clock....
Decompile SystemUI and navigate to res/layout/tw_status_bar.xml
Find the following code
Code:
<com.android.systemui.statusbar.policy.Clock
Right above this line paste the following code
Code:
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="right" android:id="@id/date" android:paddingRight="2.0dip" android:paddingTop="7.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:includeFontPadding="false" android:layout_weight="1.0" />
If you are running a JB ROM i am pretty sure you dont need to do this next part. ICS guys will want to continue....
Navigate to smali/com/android/systemui/statusbar/policy/dateview.smali
Find the following code
Code:
.method private final updateClock()V
Starting with and including the very next line, delete everything all the way to and including the first "end Method you come to and paste the following code in its place
Code:
.locals 9
.prologue
const v8, [B][COLOR="Red"]0x7f080002
[/COLOR][/B]
const/4 v5, 0x2
const/4 v7, 0x1
const/4 v6, 0x0
.line 92
invoke-virtual {p0}, Lcom/android/systemui/statusbar/policy/DateView;->getContext()Landroid/content/Context;
move-result-object v0
.line 93
.local v0, context:Landroid/content/Context;
new-instance v3, Ljava/util/Date;
invoke-direct {v3}, Ljava/util/Date;-><init>()V
.line 94
.local v3, now:Ljava/util/Date;
const-string v4, "EEE"
invoke-static {v4, v3}, Landroid/text/format/DateFormat;->format(Ljava/lang/CharSequence;Ljava/util/Date;)Ljava/lang/CharSequence;
move-result-object v2
.line 95
.local v2, dow:Ljava/lang/CharSequence;
invoke-static {v0}, Landroid/text/format/DateFormat;->getLongDateFormat(Landroid/content/Context;)Ljava/text/DateFormat;
move-result-object v4
invoke-virtual {v4, v3}, Ljava/text/DateFormat;->format(Ljava/util/Date;)Ljava/lang/String;
move-result-object v1
.line 98
.local v1, date:Ljava/lang/CharSequence;
sget-boolean v4, Lcom/android/systemui/statusbar/StatusBar;->useTouchWizGUI:Z
if-eqz v4, :cond_1
.line 99
sget-boolean v4, Lcom/android/systemui/statusbar/StatusBar;->canStatusBarHide:Z
if-eqz v4, :cond_0
.line 100
new-array v4, v5, [Ljava/lang/Object;
aput-object v1, v4, v6
aput-object v2, v4, v7
invoke-virtual {v0, v8, v4}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v4
invoke-virtual {p0, v4}, Lcom/android/systemui/statusbar/policy/DateView;->setText(Ljava/lang/CharSequence;)V
.line 108
:goto_0
return-void
.line 102
:cond_0
const v4, [B][COLOR="red"]0x7f080003
[/COLOR][/B]
new-array v5, v5, [Ljava/lang/Object;
aput-object v2, v5, v6
aput-object v1, v5, v7
invoke-virtual {v0, v4, v5}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v4
invoke-virtual {p0, v4}, Lcom/android/systemui/statusbar/policy/DateView;->setText(Ljava/lang/CharSequence;)V
goto :goto_0
.line 105
:cond_1
new-array v4, v5, [Ljava/lang/Object;
aput-object v2, v4, v6
aput-object v1, v4, v7
invoke-virtual {v0, v8, v4}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v4
invoke-virtual {p0, v4}, Lcom/android/systemui/statusbar/policy/DateView;->setText(Ljava/lang/CharSequence;)V
goto :goto_0
.end method
Pay attention to the code above in RED. Those ID's must match up to the date ID's in your res/values/public.xml. If they dont you will need to change them.
Since this will also change the layout of the date in your dropdown menu, you may want to delete the date reference from there. If you do, this is how you delete it
Navigate to res/layout/tw_status_bar_expanded
Find the code that begins with the following and delete the entire line
Code:
<com.android.systemui.statusbar.policy.DateView
Thats it, recompile, chmod 644, and push to /system/app.
The next steps are for a stock clock setup. I have mine setup as a center clock so I will give you the basics for the stock clock. You may have to add some padding to tweak your location in the status bar. I will assume if you know how to de/recompile, you know how to pad your code.
In SystemUI Navigate to res/layout/tw_status_bar
Find the following code
Code:
<com.android.systemui.statusbar.policy.Clock
Add the following code on top of it
Code:
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_toLeftOf="@id/clock" />
If you are running a JB ROM i am pretty sure you dont need to do this next part. ICS guys will want to continue....
Navigate to smali/com/android/systemui/statusbar/policy/dateview.smali
Find the following code
Code:
.method private final updateClock()V
Starting with and including the very next line, delete everything all the way to and including the first "end Method you come to and paste the following code in its place
Code:
.locals 9
.prologue
const v8, [B][COLOR="Red"]0x7f080002
[/COLOR][/B]
const/4 v5, 0x2
const/4 v7, 0x1
const/4 v6, 0x0
.line 92
invoke-virtual {p0}, Lcom/android/systemui/statusbar/policy/DateView;->getContext()Landroid/content/Context;
move-result-object v0
.line 93
.local v0, context:Landroid/content/Context;
new-instance v3, Ljava/util/Date;
invoke-direct {v3}, Ljava/util/Date;-><init>()V
.line 94
.local v3, now:Ljava/util/Date;
const-string v4, "EEE"
invoke-static {v4, v3}, Landroid/text/format/DateFormat;->format(Ljava/lang/CharSequence;Ljava/util/Date;)Ljava/lang/CharSequence;
move-result-object v2
.line 95
.local v2, dow:Ljava/lang/CharSequence;
invoke-static {v0}, Landroid/text/format/DateFormat;->getLongDateFormat(Landroid/content/Context;)Ljava/text/DateFormat;
move-result-object v4
invoke-virtual {v4, v3}, Ljava/text/DateFormat;->format(Ljava/util/Date;)Ljava/lang/String;
move-result-object v1
.line 98
.local v1, date:Ljava/lang/CharSequence;
sget-boolean v4, Lcom/android/systemui/statusbar/StatusBar;->useTouchWizGUI:Z
if-eqz v4, :cond_1
.line 99
sget-boolean v4, Lcom/android/systemui/statusbar/StatusBar;->canStatusBarHide:Z
if-eqz v4, :cond_0
.line 100
new-array v4, v5, [Ljava/lang/Object;
aput-object v1, v4, v6
aput-object v2, v4, v7
invoke-virtual {v0, v8, v4}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v4
invoke-virtual {p0, v4}, Lcom/android/systemui/statusbar/policy/DateView;->setText(Ljava/lang/CharSequence;)V
.line 108
:goto_0
return-void
.line 102
:cond_0
const v4, [B][COLOR="red"]0x7f080003
[/COLOR][/B]
new-array v5, v5, [Ljava/lang/Object;
aput-object v2, v5, v6
aput-object v1, v5, v7
invoke-virtual {v0, v4, v5}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v4
invoke-virtual {p0, v4}, Lcom/android/systemui/statusbar/policy/DateView;->setText(Ljava/lang/CharSequence;)V
goto :goto_0
.line 105
:cond_1
new-array v4, v5, [Ljava/lang/Object;
aput-object v2, v4, v6
aput-object v1, v4, v7
invoke-virtual {v0, v8, v4}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v4
invoke-virtual {p0, v4}, Lcom/android/systemui/statusbar/policy/DateView;->setText(Ljava/lang/CharSequence;)V
goto :goto_0
.end method
Pay attention to the code above in RED. Those ID's must match up to the date ID's in your res/values/public.xml. If they dont you will need to change them.
Since this will also change the layout of the date in your dropdown menu, you may want to delete the date reference from there. If you do, this is how you delete it
Navigate to res/layout/tw_status_bar_expanded
Find the code that begins with the following and delete the entire line
Code:
<com.android.systemui.statusbar.policy.DateView
For the JB guys you will want to make one more edit....
Navigate to res/values/strings and modify the following code to look like below
Code:
<string name="status_bar_date_formatter">%2$s</string>
<string name="tw_status_bar_date_formatter">%2$s</string>
Thats it, recompile, chmod 644, and push to /system/app.
Hit the thanks button if this has been helpful to you!
By request I have added a screenshot in the OP.
Very nice!
How to change the color?
thanx for sharing tut...
what does that 2 id refers to ??? found that one refers to "status_bar_date_formatter" but i don know about the other one.... im using stock ICS rom....
Mate,
Fantastic guide! I followed it to the letter and it worked but...
I now have the date (12 May. 2013) in the status bar instead of Sun. I'm guessing it's to do with the %2$s?? I don't understand how they work though.
Any advise please??? I'm using stock JB 4.1.2 XWLSD on Samsung Galaxy S II GT-I9100.
Any advise would be hugely appreciated.
Thanks again for the great tutorials. XDA needs more Devs like you who are willing to teach noobs like me how to do awesome things to their phones.
Thanks mate,
Dave
Hi man!!!
I've also followed your guide to the letter and it has worked but... see yourself
I've upload a picture of what happens.
I'm on stock 4.1.2 Jelly Bean.
Any advise would be hugely appreciated.
Thanks for the tutorial and your support.
rockernaxo said:
Hi man!!!
I've also followed your guide to the letter and it has worked but... see yourself
I've upload a picture of what happens.
I'm on stock 4.1.2 Jelly Bean.
Any advise would be hugely appreciated.
Thanks for the tutorial and your support.
Click to expand...
Click to collapse
I think you messed with padding... correct padding by comparing with stock one ... edit xml again...
Sent from my IRIS_501 using xda premium
akash akya said:
I think you messed with padding... correct padding by comparing with stock one ... edit xml again...
Sent from my IRIS_501 using xda premium
Click to expand...
Click to collapse
Ok, thanks for the info. I don't know very well how to do it, but I'll investigate.
I have also an issue with the date too, it doesn't appear the day of the week, maybe coz the smali modification, but I can't find what those ids are.
Enviado desde mi zapatófono tuneado
akash akya said:
thanx for sharing tut...
what does that 2 id refers to ??? found that one refers to "status_bar_date_formatter" but i don know about the other one.... im using stock ICS rom....
Click to expand...
Click to collapse
daveyannihilation said:
Mate,
Fantastic guide! I followed it to the letter and it worked but...
I now have the date (12 May. 2013) in the status bar instead of Sun. I'm guessing it's to do with the %2$s?? I don't understand how they work though.
Any advise please??? I'm using stock JB 4.1.2 XWLSD on Samsung Galaxy S II GT-I9100.
Any advise would be hugely appreciated.
Thanks again for the great tutorials. XDA needs more Devs like you who are willing to teach noobs like me how to do awesome things to their phones.
Thanks mate,
Dave
Click to expand...
Click to collapse
rockernaxo said:
Hi man!!!
I've also followed your guide to the letter and it has worked but... see yourself
I've upload a picture of what happens.
I'm on stock 4.1.2 Jelly Bean.
Any advise would be hugely appreciated.
Thanks for the tutorial and your support.
Click to expand...
Click to collapse
akash akya said:
I think you messed with padding... correct padding by comparing with stock one ... edit xml again...
Sent from my IRIS_501 using xda premium
Click to expand...
Click to collapse
rockernaxo said:
Ok, thanks for the info. I don't know very well how to do it, but I'll investigate.
I have also an issue with the date too, it doesn't appear the day of the week, maybe coz the smali modification, but I can't find what those ids are.
Enviado desde mi zapatófono tuneado
Click to expand...
Click to collapse
Guys,
I suggest you follow this updated tutorial
http://forum.xda-developers.com/showthread.php?t=2109973
It will provide what you are looking for with more options.
Solved!
I did this! I got it to work!! I followed the guide to the letter but I didn't completely replace the smali file with what is written here.
All I had to do a bit differently was I added 2 new strings to /res/values/strings.xml which were:
Code:
<string name="status_bar_day_formatter">%1$s</string>
<string name="tw_status_bar_day_formatter">%1$s</string>
Then I had to recompile SystemUI.apk and then decompile it again and found the ids for the 2 new lines I created in /res/values/public.xml
In DateView.smali all I changed was 'EEEE' to 'EEE' and then changed the first id to the same as status_bar_day_formatter and the second id to the same as tw_status_bar_day_formatter and that was it!
EDIT: I now have a little problem... the date in the top left of the expanded status bar which used to say Wednesday 5 June. 2013 now just says Wed. Oops. If I delete the line beginning with <com.android.systemui.statusbar.policy.DateView will I get that original date layout back, or will it just not be there anymore?
EDIT 2: I deleted that line in tw_status_bar_expanded_header but it still shows up as Wed in the expanded status bar. I looked in tw_status_bar_expanded but there is no reference to the date anywhere in that xml file.
Please advise any suggestions on how to get back the original Wednesday 5 June. 2013 in the expanded status bar, but keep the Wed in the status bar?
Thanks in advance.
P.S. I followed your multi mod guide but it didn't work for me. All I really wanted is this day in the status bar.
Any help to port it to Xperia devices??
I get stuck at
.local v1, date:Ljava/lang/CharSequence;
sget-boolean v4, Lcom/android/systemui/statusbar/StatusBar;->useTouchWizGUI:Z
if-eqz v4, :cond_1
.line 99
sget-boolean v4, Lcom/android/systemui/statusbar/StatusBar;->canStatusBarHide:Z
Click to expand...
Click to collapse
Thanks!
will this work on htc one sense framework?

[DEV] [MOD] [HOW-TO] Change Modified device status to Normal - Note2 MA7

Please give thanks/credit if you use this in your ROM - Donations are also appreciated!
This mod will change the Device status from displaying Modified/Scanning to Normal. This is listed in the Settings -> About device -> Status screen at the bottom. This mod is purely a cosmetic change and does not enable/disable anything in the OS.
Decompile SecSettings.apk
Edit SecSettings/smali/com/android/settings/devinceinfo/Status.smali and modify the following:
Around line #539
Code:
.method private changeSysScopeStatus()V
.locals 7
.prologue
const-wide/16 v3, 0x3e8
[COLOR="Red"]--const v6, 0x7f090125[/COLOR]
[COLOR="Green"]++const v6, 0x7f090124[/COLOR]
const/4 v5, -0x1
.line 834
const-string v0, "sysscope_status"
Edit #2 (around line 651)
Code:
.line 854
:cond_2
iget v0, p0, Lcom/android/settings/deviceinfo/Status;->isSysScopeStatus:I
if-ne v0, v5, :cond_3
.line 855
[COLOR="Red"]--const v0, 0x7f090126[/COLOR]
[COLOR="Green"]++const v0, 0x7f090124[/COLOR]
invoke-virtual {p0, v0}, Lcom/android/settings/deviceinfo/Status;->getString(I)Ljava/lang/String;
move-result-object v0
goto :goto_0
.line 857
Edit #3 (around line 1846)
Code:
.method private setSysScopeStatus()V
.locals 2
.prologue
.line 828
const-string v0, "sysscope_status"
invoke-virtual {p0, v0}, Lcom/android/settings/deviceinfo/Status;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;
move-result-object v0
.line 829
[COLOR="Red"]--const v1, 0x7f090126[/COLOR]
[COLOR="Green"]++const v1, 0x7f090124[/COLOR]
invoke-virtual {p0, v1}, Lcom/android/settings/deviceinfo/Status;->getString(I)Ljava/lang/String;
If you like this MOD and would like to see others please consider a donation via my profile. I encourage other developers to share their work in How-To's as well.
Edit, wrong thread...
akapaul26 said:
I will donate to the original only this is kanged.
Click to expand...
Click to collapse
Not sure I understood what you said between the entire re-quote, 10 mile long signature, and broken english. Could you please explain?
akapaul26 said:
I will donate to the original only this is kanged.
Deviant Development Team Member!
Click to expand...
Click to collapse
Bold statement to make wothout providing proof.
Sent from my SPH-L900 using xda premium
Thanks digi love the how to's.
digiblur said:
Not sure I understood what you said between the entire re-quote, 10 mile long signature, and broken english. Could you please explain?
Click to expand...
Click to collapse
the_plattypus said:
Bold statement to make wothout providing proof.
Sent from my SPH-L900 using xda premium
Click to expand...
Click to collapse
My apologies fellas. I totally posted this in the wrong forum...I edited my previous post as well... sorry guys!
YOUR work seems to have been kanged...
http://forum.xda-developers.com/showthread.php?p=40160661

[Guide] full lockscreen/hide statusbar on lockscreen

Hai XDA. I just want share little guide and very simple
How to full lockscreen/ hide statusbar on lockscreen,
Lets go to guide
Requirement
Apktool
Notepad
android.policy.jar
Decompile your android.policy.jar
Go to : smali\com\android\internal\policy\impl\KeyguardViewManager.smali
find .method public declared-synchronized show()V
and scrool down, find line similiar like this
Code:
const/4 v5, 0x0
invoke-direct {v1, v2, v3, v5}, Lcom/android/internal/policy/impl/KeyguardViewManager$KeyguardViewHost;-><init>(Landroid/content/Context;Lcom/android/internal/policy/impl/KeyguardViewCallback;Lcom/android/internal/policy/impl/KeyguardViewManager$1;)V
iput-object v1, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mKeyguardHost:Landroid/widget/FrameLayout;
.line 119
const/4 v9, -0x1
.line 120
.local v9, stretch:I
const v4, [COLOR="Red"]0x100800[/COLOR]
.line 125
.local v4, flags:I
iget-boolean v1, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mNeedsInput:Z
if-nez v1, :cond_2
.line 126
const/high16 v1, 0x2
or-int/2addr v4, v1
see the code I marked in red : 0x100800 and change it to 0x10000504
Save, recompile your android.policy.jar and DONE!!
Happy Modding :highfive:
full lockscreen
you can be edited to me full lockscreen which is not hide statebar
Thanks for the guide its work for me.
kulphat said:
you can be edited to me full lockscreen which is not hide statebar
Click to expand...
Click to collapse
what do you mean full lockscreen which is not hide statebar?
amadeuszxd said:
Thanks for the guide its work for me.
Click to expand...
Click to collapse
You'r welcome
I lock the screen while listening to music with headphones , the music I was lag
I often listen to music and it makes me feel very uncomfortable ... you can not fix it
nice guide mastah
syaeful said:
Hai XDA. I just want share little guide and very simple
How to full lockscreen/ hide statusbar on lockscreen,
Lets go to guide
Requirement
Apktool
Notepad
android.policy.jar
Decompile your android.policy.jar
Go to : smali\com\android\internal\policy\impl\KeyguardViewManager.smali
find .method public declared-synchronized show()V
and scrool down, find line similiar like this
Code:
const/4 v5, 0x0
invoke-direct {v1, v2, v3, v5}, Lcom/android/internal/policy/impl/KeyguardViewManager$KeyguardViewHost;-><init>(Landroid/content/Context;Lcom/android/internal/policy/impl/KeyguardViewCallback;Lcom/android/internal/policy/impl/KeyguardViewManager$1;)V
iput-object v1, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mKeyguardHost:Landroid/widget/FrameLayout;
.line 119
const/4 v9, -0x1
.line 120
.local v9, stretch:I
const v4, [COLOR="Red"]0x100800[/COLOR]
.line 125
.local v4, flags:I
iget-boolean v1, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mNeedsInput:Z
if-nez v1, :cond_2
.line 126
const/high16 v1, 0x2
or-int/2addr v4, v1
see the code I marked in red : 0x100800 and change it to 0x10000504
Save, recompile your android.policy.jar and DONE!!
Happy Modding :highfive:
Click to expand...
Click to collapse
nice guide can you make a guide for4.0+ How to create lollipop lockscreen.??:good:
veneetsingh said:
nice guide can you make a guide for4.0+ How to create lollipop lockscreen.??:good:
Click to expand...
Click to collapse
Thanks sir. Maybe not diferent too much with this tut. Just find similiar line.
syaeful said:
Thanks sir. Maybe not diferent too much with this tut. Just find similiar line.
Click to expand...
Click to collapse
i know it is Easy but I am creating lollipop rom for my device and i need help All is done but need only lollipop lockscreen..?
can you help me.?:victory:
thanx sir, nice guide and work great to me :good:
Doctor Be said:
thanx sir, nice guide and work great to me :good:
Click to expand...
Click to collapse
You're welcome
veneetsingh said:
i know it is Easy but I am creating lollipop rom for my device and i need help All is done but need only lollipop lockscreen..?
can you help me.?:victory:
Click to expand...
Click to collapse
Sorry sir... i can't port it
maybe you can use this application,, or port
https://play.google.com/store/apps/details?id=com.hi.locker&hl=en
Nice Guide Dude!
Keep it up :thumbup:
SuperMan(Alex) said:
Nice Guide Dude!
Keep it up :thumbup:
Click to expand...
Click to collapse
Thanks :highfive:
inquiry
syaeful said:
Hai XDA. I just want share little guide and very simple
How to full lockscreen/ hide statusbar on lockscreen,
Lets go to guide
Requirement
Apktool
Notepad
android.policy.jar
Decompile your android.policy.jar
Go to : smali\com\android\internal\policy\impl\KeyguardViewManager.smali
find .method public declared-synchronized show()V
and scrool down, find line similiar like this
Code:
const/4 v5, 0x0
invoke-direct {v1, v2, v3, v5}, Lcom/android/internal/policy/impl/KeyguardViewManager$KeyguardViewHost;-><init>(Landroid/content/Context;Lcom/android/internal/policy/impl/KeyguardViewCallback;Lcom/android/internal/policy/impl/KeyguardViewManager$1;)V
iput-object v1, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mKeyguardHost:Landroid/widget/FrameLayout;
.line 119
const/4 v9, -0x1
.line 120
.local v9, stretch:I
const v4, [COLOR="Red"]0x100800[/COLOR]
.line 125
.local v4, flags:I
iget-boolean v1, p0, Lcom/android/internal/policy/impl/KeyguardViewManager;->mNeedsInput:Z
if-nez v1, :cond_2
.line 126
const/high16 v1, 0x2
or-int/2addr v4, v1
see the code I marked in red : 0x100800 and change it to 0x10000504
Save, recompile your android.policy.jar and DONE!!
Happy Modding :highfive:
Click to expand...
Click to collapse
will this work on kitkat firmware?
boszjhiee22 said:
will this work on kitkat firmware?
Click to expand...
Click to collapse
not tested sir... maybe different
apktool
I would like to do it but i dont know how to install apktool i did step by step, but i dont kn0ow how to write the code in cmd
Is this guide for JB?
It works!
Thank you so much. Cheers
how to hide status bar in lollipop 5.1.1 lockscreen
Dear friend,
can u help me to edit android policy.jar to remove the status bar in lock screen?
thanks in advance

Categories

Resources