1x Indicator app for Sprint?? - Motorola Photon 4G

Sprint doesn't show when 3G goes to 1x. The phone's reception indicator simply continues to show 3G no matter what (beside 4G). Sprint specifically disabled the 1x indicator to make it seem like it had 3G everywhere??
This article got me thinking about the 1x indicator
Any app that shows 1x in notification bar or elsewhere??

This has always bothered me about the Photon. Thanks for reminding me

If someone wants to try and fix it, this worked on the Samsung Moment so maybe it will work on the Photon as it appears to be in a file that is not brand specific.
I might try to learn how to edit smali files, if someone doesn't beat me to the mod.
It's a 30 second fix for anyone that has edited a smali before, can use the find command in a text editor, and who has all the correct tools set up on their computer.
Basically, in the Sevices.jar, there's a smali filed called
\smali\com\android\server\status\StatusBarPolicy.smali
The bolded/underlined text was changed:
Change
Quote
.line 1541
sget-object v0, Lcom/android/server/status/StatusBarPolicy;->sDataNetType_3g:[I
to
Quote
.line 1541
sget-object v0, Lcom/android/server/status/StatusBarPolicy;->sDataNetType_1x:[I
Change
Quote
.line 1527
switch_3
sget-object v0, Lcom/android/server/status/StatusBarPolicy;->sDataNetType_3g:[I
to
Quote
.line 1527
switch_3
sget-object v0, Lcom/android/server/status/StatusBarPolicy;->sDataNetType_1x:[I
Change
Quote
.line 1532
switch_4
sget-object v0, Lcom/android/server/status/StatusBarPolicy;->sDataNetType_3g:[I
to
Quote
.line 1532
switch_4
sget-object v0, Lcom/android/server/status/StatusBarPolicy;->sDataNetType_1x:[I
Change
Quote
.line 1626
switch_0
sget-object v0, Lcom/android/server/status/StatusBarPolicy;->sDataNetType_3g:[I
to
Quote
.line 1626
switch_0
sget-object v0, Lcom/android/server/status/StatusBarPolicy;->sDataNetType_1x:[I
Once you know where it is, it's really easy to change. You're basically just changing 4 instances of "sDataNetType_3g" to "sDataNetType_1x"
That is where it's telling the notification/status bar what icon to display under certain conditions.
Click to expand...
Click to collapse

So is that what happens when the bars and icon turn from blue to grey? Or what is that?
Sent from my MB855 using xda premium

Related

Ads appearing

I have a rooted vibrant running nero v3, and I am having problems with ads appearing on my notification bar. They either have a white star with an orange spot, or a green plus as their icon. (the plus is the same green as my signal bars, battery icon, etc., so it could be a default icon.) I have lookout free, it doesn't see anything. Is it adware, an app I have, our something else?
Sent from my SGH-T959 using XDA App
It isn't adware but a push notification. Go to market and get Adson or search the Apps & Themes section because this has been covered and that thread has a few more links in it to solve your problem.
Thanks. "adson" didn't work, but I found a separate adblock.

[Q] Transparent status bar?

Hello everyone!
Today I have been working on trying to make the status bar transparent (ex. ios). So far I have tried uot kitchen; no good (just a solid black bar). I tried manually editing the statusbar_background.9.PNG, and while I can change the apearance that way, it has no effect on transparency. I even tried editing the XML as seen here; http://forum.xda-developers.com/showthread.php?t=1327565, still no transparency. Google hasn't been much help. I was wondering if anyone else has figured out how to do this for the galaxy players? Mind sharing how? Thank you!
Sent using Tapatalk
On the hydrogen ICS, there's an option in ROM control to change the status bar's transparency. It doesn't work on fully transparent, but it does on 75%. I can upload whatever files you need (framework, systemui) tomorrow if you want.
Sent from my 5.0 US with ICS
Yeah, I doubt there is much similarity between doing it in ics and gingerbread. I would think the method that I linked above would do it, but idk why it doesn't. Maybe because I am odexed?
Sent using Tapatalk
I can have a look, upload framework.res /system/framework
http://db.tt/Zb1tVbLPThis is my framework-res.apk, twframework-res.apk, and systemUI.apk. Do you need my entire framework folder, or is this enough? Thank you for your time!
Sent using Tapatalk
Well,I use YP-G1 and I did make it
View attachment 1092260
Change those codes "android:background="#77000000"" just meant to make the statusbar's menu transparent.
However,I notice that Tw4.5,Tw3.0 and Launcherpro can't be compatible with status bar transparency. I use the Xperia Home launcher.
In order to transparent status bar,after changing that "#77000000" you also need to do:
Decompiling systemUI.apk,then open smali\com\android\systemui\statusbar\StatusBarService.smali.
change
new-instance v0, Landroid/view/WindowManager$LayoutParams;
const/4 v1, -0x1
const/16 v3, 0x7d0
const/16 v4, 0x48
const/4 v5, 0x2
to
new-instance v0, Landroid/view/WindowManager$LayoutParams;
const/4 v1, -0x1
const/16 v3, 0x7d0
const/16 v4, 0x48
const/4 v5, -0x3
Compiling.
Replace classex.dex.
Transparent the statusbar_background.9.png and replace the original file.
That's all.Hope you can have it.
Ah, so I do need to be deodexed. I guess I just need to do it.
Sent using Tapatalk
iJimaniac said:
Ah, so I do need to be deodexed. I guess I just need to do it.
Sent using Tapatalk
Click to expand...
Click to collapse
Yes,you should do a full 'deodex' if possible because it's easier to modify a apk while it is a single file
But odexed ROM supports deodexed apk in fact.
However there are some bugs if you transparent the status bar.For example,it would become very ugly while running stock browser... Some apps may have issues too.Then if you find any way to handle these problem,don't forget to remind me~
Yeah, I know what you are talking about with the bugs. When I put the transparent PNG in, notification icons would get stuck halfway between two layers of black, hard to explain, but weird. I think I will probably keep my custom solid status bar, but still deodex, as there are so many things you need it to do!
Sent using Tapatalk
Sorry taking a while, school studies :s
It is alright with me if you stop, because the person above told me how. Thanks for the effort!
Sent using Tapatalk
Here you go, please note you have to manually replace the files rather than flash them
Harry GT-S5830 Theme
fromnowon said:
Well,I use YP-G1 and I did make it
View attachment 1092260
Change those codes "android:background="#77000000"" just meant to make the statusbar's menu transparent.
However,I notice that Tw4.5,Tw3.0 and Launcherpro can't be compatible with status bar transparency. I use the Xperia Home launcher.
In order to transparent status bar,after changing that "#77000000" you also need to do:
Decompiling systemUI.apk,then open smali\com\android\systemui\statusbar\StatusBarService.smali.
change
new-instance v0, Landroid/view/WindowManager$LayoutParams;
const/4 v1, -0x1
const/16 v3, 0x7d0
const/16 v4, 0x48
const/4 v5, 0x2
to
new-instance v0, Landroid/view/WindowManager$LayoutParams;
const/4 v1, -0x1
const/16 v3, 0x7d0
const/16 v4, 0x48
const/4 v5, -0x3
Compiling.
Replace classex.dex.
Transparent the statusbar_background.9.png and replace the original file.
That's all.Hope you can have it.
Click to expand...
Click to collapse
In which features I have to edit the code

[Q] How To Remove Added Soft Keys Showing On Lock Screen?

Hi Everyone...
I have added a couple of soft keys through navigation_bar.xml in SystemUI.apk. The soft keys show great, but are also showing on the lockscreen, when the others "disappear".
The added ones are Menu and Search, the order is Home, Menu, Recent Apps, Back, Search. This is to be the same as my desire hard keys. I know, no point in it, but have just got used to the soft keys so much!
Anyway, here is my coding, I have removed the android:visibilty="invisble" attribute to no ill effects...
I have also added the relevant strings and ids in their respective places.. Don't know if it acutally helps, but it makes neater..
Code:
<FrameLayout android:id="@id/rot0" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal" android:id="@id/nav_buttons" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:animateLayoutChanges="true">
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/home" android:layout_width="65.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_home" android:layout_weight="0.0" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:keyRepeat="false" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/menu" android:layout_width="65.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_menu" android:layout_weight="0.0" android:contentDescription="@string/accessibility_menu" systemui:keyCode="82" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:layout_width="65.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_recent" android:layout_weight="0.0" android:contentDescription="@string/accessibility_recent" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:layout_width="65.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_back" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/search" android:layout_width="65.0dip" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_search" android:layout_weight="0.0" android:contentDescription="@string/accessibility_search" systemui:keyCode="84" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/menu" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="40.0dip" android:src="@drawable/ic_sysbar_menu" android:layout_weight="0.0" android:contentDescription="@string/accessibility_menu" systemui:keyCode="82" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
</LinearLayout>
I'm guessing it would be a smali edit.. I know no smali, and barely any actual .xml coding... Just learnt what I have picked up over my time with android!
Could it be to do with the ID's? (I know that when I made the center clock, I added the "@id/clock" and it made the clock "disappear" on the lockscreen, where taking it out the clock stayed in the status bar!)...
Is there anyone who could help me with this? I want to get it perfect, and at the moment, it isn't
Below are a couple of screen shots that show what i'm on about!!
Thanks in advance,
Matt
Needless to say, I am trying the same mainly for a request of someone but I also like using the softkeys as the hardware keys are less responsive now after 2 years heavy use.
I got it slightly different, I got the menu key moved but it will only show up when an app that supports it calls for it. If anyone knows what to do in either case we can make the softkeys with additional buttons and have them work properly and not show at lock screen.
If anyone knows the smali edit to do so the menu key stays in the navigationbar it would help me a lot. Or how to have the keys not show in lockscreen would do as well. Much appreciated!
Link to the question I asked in the ROM thread.
Bojan155 said:
Needless to say, I am trying the same mainly for a request of someone but I also like using the softkeys as the hardware keys are less responsive now after 2 years heavy use.
I got it slightly different, I got the menu key moved but it will only show up when an app that supports it calls for it. If anyone knows what to do in either case we can make the softkeys with additional buttons and have them work properly and not show at lock screen.
If anyone knows the smali edit to do so the menu key stays in the navigationbar it would help me a lot. Or how to have the keys not show in lockscreen would do as well. Much appreciated!
Link to the question I asked in the ROM thread.
Click to expand...
Click to collapse
Figured out the smali edit to make the menu button persistent. But it gives the same effect like doing only the XML edit from Matt.
The smali edit to make menu stick without xml edit is:
Code:
invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/NavigationBarView;->getMenuButton()Landroid/view/View;
move-result-object v1
iget-boolean v0, p0, Lcom/android/systemui/statusbar/phone/NavigationBarView;->mShowMenu:Z
if-eqz v0, :cond_1
const/4 v0, 0x0
:goto_1
invoke-virtual {v1, v0}, Landroid/view/View;->setVisibility(I)V
goto :goto_0
:cond_1
const/4 v0, [COLOR="Red"]0x4[/COLOR] [COLOR="Green"]0x0[/COLOR]
goto :goto_1
.end method
So change the last 0x4 to 0x0.
Now we just need a guru to help us please figure out how to add the menu button to the "ANIMATE_HIDE_TRANSITION" effect.
bump, anyone? pretty please?
I could do with getting this done... Anyone know of a fix?
Sent from my HTC One X using xda premium

[MOD][GUIDE][TUTORIAL] DISPLAY PROPER SIGNAL - 1x/3g Mod

This will allow proper signal indicators to show on your status bar. Shame on Sprint for always showing 3G or 4G...
I am not responsible for anything that happens to your phone. You do this at your own risk.
Decompile SystemUI.apk
Browse to SystemUI\com\android\systemui\statusbar\policy\NetworkController.smali
Make The Following Edits...
Code:
.line 1667
:pswitch_fc
[B] [COLOR="Red"]--invoke-direct {p0}, Lcom/android/systemui/statusbar/policy/NetworkController;->updateSPRDataNetType()V
[/COLOR][COLOR="Lime"]++invoke-direct {p0}, Lcom/android/systemui/statusbar/policy/NetworkController;->updateVZWDataNetType()V
[/COLOR]
[/B] goto/16 :goto_d
All we did was change SPR to VZW. This will give us the Verizon Icon Set, which I believe is the same as the Sprint ones on the Note3. (My Icons are all themed)
If it is different, simply change to the public id for the 4g icon you want to use. The public Ids are located in res/values/public. search for the name of the 4g image you want to use. (Drawable-xxhdpi)
here is where the Public ID would go... still in the same .smali file
Code:
.line 2220
:pswitch_11f
sget-object v0, Lcom/android/systemui/statusbar/policy/TelephonyIcons;->DATA_4G_LTE:[[I
iget v1, p0, Lcom/android/systemui/statusbar/policy/NetworkController;->mInetCondition:I
aget-object v0, v0, v1
iput-object v0, p0, Lcom/android/systemui/statusbar/policy/NetworkController;->mDataIconList:[I
.line 2221
const v0, [COLOR="DeepSkyBlue"][B]0x7f0200e0[/B]
[/COLOR]
RESERVED
Thread Closed, We Now have a Sticky for all GUIDES and HOW TO's.
That Thread is HERE!

Where to get this launcher

Hi anyone knows which launcher is this one? In the picture name it says JY but i've installed JY launcher and is not this one. I would like to install it on malaysk last rom for rk3188 1024X600
Edit: Found! Now i need some help to customize it!!
Edit2: Cool that works little by little. I got to fix the spanish translation because it was horrible, mixing capital and small letters, etc.
1 - Now what i wanna do is to delete some icons from the dock, as it is now you can go to the right 2 times, i would like lo leave just 6 icons, without other screens on the right (just a fix dock). I think that is not a business for the launcher because i know someone who has install with the same file as me and he has 1 icon less so i think thats configured by the system. Somebody know if that's keept in a config file or how does it work?
2 - I would like that when i push music icon it opens jetAudio plus i can directly changed the package on the .smali file?
Change this
const-string v24, "com.microntek.music"
for this
const-string v24, "jetAudio.apk"
That would work??
This is the code i found about that in the BottmAppBar.smali:
const-string v24, "*MUSIC*"
move-object/from16 v0, v24
invoke-virtual {v5, v0}, Ljava/lang/String;->equals(Ljava/lang/ObjectZ
move-result v24
if-eqz v24, :cond_b
.line 207
new-instance v15, Landroid/content/Intent;
.end local v15 #intent:Landroid/content/Intent;
const-string v24, "com.microntek.music"
move-object/from16 v0, v24
invoke-direct {v15, v0}, Landroid/content/Intent;-><init>(Ljava/lang/StringV
.line 208
.restart local v15 #intent:Landroid/content/Intent;
const-string v24, "com.microntek.music"
const-string v25, "com.microntek.music.MusicActivity"
move-object/from16 v0, v24
move-object/from16 v1, v25
invoke-virtual {v15, v0, v1}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/StringLandroid/content/Intent;
Eonon is selling units with this launcher.
It's crap becouse you can't change order or remove any of the bottom bar icon.
Do you know where can i get it?
three threads you have spammed this in.. pull your head in..
the guy has no respect for XDA rules..
Same question multiple threads with in minutes of each other..
Sent from my K00C using Tapatalk
xtr33 said:
Eonon is selling units with this launcher.
It's crap becouse you can't change order or remove any of the bottom bar icon.
Click to expand...
Click to collapse
I got it! It's possible to change the icons recompiling the apk.
dgcruzing said:
three threads you have spammed this in.. pull your head in..
the guy has no respect for XDA rules..
Same question multiple threads with in minutes of each other..
Click to expand...
Click to collapse
You're right sorry, is just that i was a bit in a hurry. I've edited one of the messages and this one can be deleted.
Btw i got it.
---------- Post added at 09:15 AM ---------- Previous post was at 09:09 AM ----------
[/COLOR]
vomesk said:
Hi anyone knows which launcher is this one? In the picture name it says JY but i've installed JY launcher and is not this one. I would like to install it on malaysk last rom for rk3188 1024X600
Click to expand...
Click to collapse
This launcher is in the KLD 4.2.2 FIRMWARE but the problem when we used It in 4.4.4 we can t have the icon app drawer in the statusbar
---------- Post added at 09:09 AM ---------- Previous post was at 09:08 AM ----------
if you have a idee
if you want I have the apk
I've got it yesterday i've already managed to fix the icon translation for the app bar icons, now i'm trying to change the order of that icons.
App drawer means the menu with all app? for mi it works, the 3 points icon on the right do that.
Cool that works little by little. I got to fix the spanish translation because it was horrible, mixing capital and small letters, etc.
1 - Now what i wanna do is to delete some icons from the dock, as it is now you can go to the right 2 times, i would like lo leave just 6 icons, without other screens on the right (just a fix dock). I think that is not a business for the launcher because i know someone who has install with the same file as me and he has 1 icon less so i think thats configured by the system. Somebody know if that's keept in a config file or how does it work?
2 - I would like that when i push music icon it opens jetAudio plus i can directly changed the package on the .smali file?
Change this
const-string v24, "com.microntek.music"
for this
const-string v24, "jetAudio.apk"
That would work??
This is the code i found about that in the BottmAppBar.smali:
const-string v24, "*MUSIC*"
move-object/from16 v0, v24
invoke-virtual {v5, v0}, Ljava/lang/String;->equals(Ljava/lang/ObjectZ
move-result v24
if-eqz v24, :cond_b
.line 207
new-instance v15, Landroid/content/Intent;
.end local v15 #intent:Landroid/content/Intent;
const-string v24, "com.microntek.music"
move-object/from16 v0, v24
invoke-direct {v15, v0}, Landroid/content/Intent;-><init>(Ljava/lang/StringV
.line 208
.restart local v15 #intent:Landroid/content/Intent;
const-string v24, "com.microntek.music"
const-string v25, "com.microntek.music.MusicActivity"
move-object/from16 v0, v24
move-object/from16 v1, v25
invoke-virtual {v15, v0, v1}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/StringLandroid/content/Intent;
vomesk said:
I've got it yesterday i've already managed to fix the icon translation for the app bar icons, now i'm trying to change the order of that icons.
App drawer means the menu with all app? for mi it works, the 3 points icon on the right do that.
Click to expand...
Click to collapse
of corse it s the menu with all apps
BENAN94 said:
of corse it s the menu with all apps
Click to expand...
Click to collapse
It works for me.
the home icon or the 3 points icon?
BENAN94 said:
the home icon or the 3 points icon?
Click to expand...
Click to collapse
Home button show home screen and 3 points icon shows app drawer.
Anyone know about delete the icons or the scroll from the dock? Im trying with the code but i'm not especially good on smali developing

Categories

Resources