[GUIDE][MOD]Add Jelly Bean Easter Egg with Bean Bag in system - Galaxy Y GT-S5360 General

Jelly Bean Easter Egg​Integrating in system​
Note: Do at your own risk, I won't take responsibility of any haphazard you may cause to your or your friend/wife/husband/sister/blah phone by adding this mod. Neither will I account for any misuse of it
Again, don't add this in your ROM to fool people in believing it's real Jelly Bean(as it's seen previously)
It ALSO contains the Game (BeanBag - Bean Flinging)
No flaming tolerated
Pre-Requisite
framework.jar
Deodexed ROM
ADB (Optional)
APK-Multitool to decompile framework.jar classes.dex
Easter Egg app attached below
GUIDE​
1. Pull your framework.jar in your working folder. You can do this manually or by adb
Shift+Right Click in your working folder and choose Open command Window here and type:
Code:
adb pull /system/framework/framework.jar
2. Rename your framework.jar to framework.apk.
Place it in "place-apk-here-for-modding" folder
Go to script.bat of APK-Multitool, choose 24 and select framework.apk
Choose 9 and decompile it .
3. Go to projects folder, and in framework.apk folder
Go in /smali/com/android/internal/app/PlatLogoActivity.smali
Now I have made a very simple code to make it work rather than just adding the Jelly Bean PlatLogoActivity in GingerBread and solving errors. Short and sweet and easy as hell.
Select all and replace it with this code:
Code:
.class public Lcom/android/internal/app/PlatLogoActivity;
.super Landroid/app/Activity;
.source "PlatLogoActivity.java"
# direct methods
.method public constructor <init>()V
.registers 1
.prologue
.line 12
invoke-direct {p0}, Landroid/app/Activity;-><init>()V
return-void
.end method
# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
.registers 7
.parameter "savedInstanceState"
.prologue
.line 16
invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V
.line 18
new-instance v1, Landroid/content/Intent;
const-string v2, "android.intent.action.MAIN"
invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V
.line 19
.local v1, intent:Landroid/content/Intent;
new-instance v2, Landroid/content/ComponentName;
const-string v3, "iaj.areeb.jellybean"
const-string v4, "iaj.areeb.jellybean.PlatLogoActivity"
invoke-direct {v2, v3, v4}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V
invoke-virtual {v1, v2}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;
.line 23
:try_start_16
invoke-virtual {p0, v1}, Lcom/android/internal/app/PlatLogoActivity;->startActivity(Landroid/content/Intent;)V
:try_end_19
.catch Landroid/content/ActivityNotFoundException; {:try_start_16 .. :try_end_19} :catch_1d
.line 39
:goto_19
invoke-virtual {p0}, Lcom/android/internal/app/PlatLogoActivity;->finish()V
.line 41
return-void
.line 31
:catch_1d
move-exception v0
.line 35
.local v0, e:Landroid/content/ActivityNotFoundException;
const-string v2, "First install that app iamareebjamal told you to!"
const/4 v3, 0x0
invoke-static {p0, v2, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;
move-result-object v2
invoke-virtual {v2}, Landroid/widget/Toast;->show()V
goto :goto_19
.end method
Also, I've made it noob proof by ActivityNotFoundException so if someone does not follow full guide, his framework doesn't crash
4. Now, go again to script.bat and choose 11 to compile it.
Then choose 8 to push it in your system and type
Code:
/system/framework/framework.jar
5. Now, you have to install this app by me, it contains the Easter Egg code and that smali above redirects to it:
Download (Version 1.1- Contains Bean Bag (Game too))
6. Now, Hot Reboot your Phone. Rebooting is too long
You can either do that by EPM or by following code in command prompt:
Code:
adb shell killall system_server
7. Now go in your Settings and multiple tap on Android Version
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Voila!
I removed the Build.Version information from code as it will look funny if it said Android 2.3.6 JELLY BEAN, as most of us have build.prop set as original 2.3.6
You can change the amount of Beans by going into Menu -> Number of beans. Remember: Less beans, more smoothness
GitHub Source
Source is licensed under GPL. I think you know what that means. If you don't, read this
​
Code:
Changelog
Version 1:
Platlogo only
Version 1.1:
Added Bean Bag
Reduced amount of Beans from 30 to 20 to reduce lag
Credits
Google for the PlatLogo Code (Obviously :silly
Geo Piskas for app source for adding Bean Bag and ability to change number of beans
m4rinko2 for giving me idea of adding it in my app :good:
StackOverflow for codes regarding hiding of Status Bar
Eclipse, APK-Multitool for making this mod possible

thats realy cool,great work!!! :good:

nice work
it is a great work i have made this but in other method, you can check HYPERION 8's PlatLogoActivity.
very interesting
Edit:
otherwise miniROM TouchWizUX already has this feature, go check it out doesnt mean that you're kanging his project.

AuliaYF said:
it is a great work i have made this but in other method, you can check HYPERION 8's PlatLogoActivity.
very interesting
Edit:
otherwise miniROM TouchWizUX already has this feature, go check it out doesnt mean that you're kanging his project.
Click to expand...
Click to collapse
Didn't know that
Thanks for telling

This thing is awesome!!! If bean gaming would work it would be the biggest success!. Great mod for gingerbread theming.
Sent from my A110 using XDA Premium HD app

if possible could you share source code ?
looks pretty nice
Sent from my S500 using xda app-developers app

How bout a video guide on this!
And I guess it works with cm7

Damn, Areeb! U were faster than me. Great job!
Akhilendra Gadde said:
This thing is awesome!!! If bean gaming would work it would be the biggest success!. Great mod for gingerbread theming.
Sent from my A110 using XDA Premium HD app
Click to expand...
Click to collapse
I tried that. Needs many new files and animations which gb doesnt have
Sent from my GT-S5570I using Tapatalk 2
---------- Post added at 09:29 AM ---------- Previous post was at 09:26 AM ----------
SpaceCaker said:
if possible could you share source code ?
looks pretty nice
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
https://github.com/android/platform...om/android/internal/app/PlatLogoActivity.java
Sent from my GT-S5570I using Tapatalk 2

If you press it,it will show all the beans like jellybean?
Sent from my BCM21553 using Tapatalk 2

devilyuri said:
If you press it,it will show all the beans like jellybean?
Sent from my BCM21553 using Tapatalk 2
Click to expand...
Click to collapse
No
Sent from my GT-S5570I using Tapatalk 2

I am trying to add BeanBag
It's animation requirements can be solved by nineolddroid library
The real problem is it uses DayDream service
So either add that service in services.jar which can be a difficult task(and rather useless, as only this can use it) or use a pre-existing app - https://play.google.com/store/apps/details?id=geo.piskas.jellybeangame
I'll try for some time and if I fail, I'll just redirect to this app

SpaceCaker said:
if possible could you share source code ?
looks pretty nice
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
i just want you to know that, in HYP8, i used 25 images, i put it inside framework-res. then in the activity, i used looping method, inside the looping method, it changed the ImageView based on the first image public id then + 1. but it becomes laggy, since the images are from framework-res.

nice work buddy i will try it:thumbup:
Sent from my GT-S5360 using Tapatalk 2

nice guide !!!

Areeb strikes again :beer::beer:
Great tut btw i was about to ask u this as u showd me ur cosmic v3's SS..
Sent from my GT-S5360 using xda app-developers app

AuliaYF said:
i just want you to know that, in HYP8, i used 25 images, i put it inside framework-res. then in the activity, i used looping method, inside the looping method, it changed the ImageView based on the first image public id then + 1. but it becomes laggy, since the images are from framework-res.
Click to expand...
Click to collapse
If that's the case, extract them to temp location run animation.
eg, when rom installs, extract image to a particular location (say data/local/ympia)
so when that action is triggered, the sequence of images is shown.
or like areeb said redirect to app.

iamareebjamal said:
I am trying to add BeanBag
It's animation requirements can be solved by nineolddroid library
The real problem is it uses DayDream service
So either add that service in services.jar which can be a difficult task(and rather useless, as only this can use it) or use a pre-existing app - https://play.google.com/store/apps/details?id=geo.piskas.jellybeangame
I'll try for some time and if I fail, I'll just redirect to this app
Click to expand...
Click to collapse
Here is the lib of that app!
Jelly Bean Game

m4RinKo2 said:
Here is the lib of that app!
Jelly Bean Game
Click to expand...
Click to collapse
Thanks
Will update the app with Bean Bag on Wednesday

AuliaYF said:
i just want you to know that, in HYP8, i used 25 images, i put it inside framework-res. then in the activity, i used looping method, inside the looping method, it changed the ImageView based on the first image public id then + 1. but it becomes laggy, since the images are from framework-res.
Click to expand...
Click to collapse
hmm yeah
but it would be possible as a sideloaded app
or let the app use the images from different app
also the real beanbag thing
basicly uses 1/ 2 images
and uses the java code to color them
Sent from my S500 using xda app-developers app

SpaceCaker said:
hmm yeah
the real beanbag thing
basicly uses 1/ 2 images
and uses the java code to color them
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
I implented beanbag in my app. Works.
Sent from my GT-S5570I using xda app-developers app

Related

[NEW][GUIDE][MOD]Team Rejectz Extended Power Menu FI03

I originally didn't post the "how to" on this mod because there are a few ways to accomplish it and I didn't wan't to step anyone's toes or debate about it. But since its been requested to post the guide,here we go...
Firstly there are a few resources you need to download for this MOD. You could just create three new smali's but since they are already done that seems pointless not to mention all of the coding involved. So download the smali resources here;
Extended Power Menu resources-DOWNLOAD HERE
Once you've downloaded those resource smali's , unzip the zip file to your desktop and follow the tree directory till you get to 3 files:
1.GlobalActions$99$1.smali
2.GlobalActions$99$2.smali
3.GlobalActions$99.smali
Now believe it or not all we need to edit (in ICS anyway) is the Android Policy Jar.
1. Open the android.policy.jar (archive) with 7zip and drag out the "classes.dex" to your desktop.
2. Open apktool1.43 or Team RejecZ Quick Fix and baksmali the classes.dex - you should get a classout folder.
3. Go to \com\android\internal\policy\impl and paste the three resource files; (GlobalActions$99$1.smali, GlobalActions$99$2.smali and GlobalActions$99) there with the rest of the smali's.
4.With notepad++ open the GlobalActions.smali. (Note: Don't confuse it with GlobalAction$Action.smali)
**In GlobalActions.smali, go to lines 853 and 859...and change GlobalActions$5 to GlobalActions$99 on both lines, and save it.
**The Code should look like this:
new-instance v0, Lcom/android/internal/policy/impl/GlobalActions$99;
const v1, 0x108064b
const v2, 0x1040169
invoke-direct {v0, p0, v1, v2}, Lcom/android/internal/policy/impl/GlobalActions$99;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V
iput-object v0, p0, Lcom/android/internal/policy/impl/GlobalActions;->mRestart:Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;
Click to expand...
Click to collapse
5. Save that smali. Now Open GlobalActions$SinglePressAction.smali with Notepad++. Just above line "# instance fields" lines 17 and 18 place your cursor and hit enter 2 times to make room to paste THIS code;
# static fields
.field protected static rebootMode:I
.field protected static final rebootOptions:[Ljava/lang/String;
Click to expand...
Click to collapse
6.Still in GlobalActions$SinglePressAction.smali, Go to line 32 (about) and look for the code "direct methods". Place your curser directly behind "direct methods" and hit enter to bring your curser down to the next line. Then paste THIS code:
.method static constructor <clinit>()V
.registers 3
const/4 v0, 0x4
new-array v0, v0, [Ljava/lang/String;
const/4 v1, 0x0
const-string v2, "Reboot"
aput-object v2, v0, v1
const/4 v1, 0x1
const-string v2, "Quick Reboot"
aput-object v2, v0, v1
const/4 v1, 0x2
const-string v2, "Download"
aput-object v2, v0, v1
const/4 v1, 0x3
const-string v2, "Recovery"
aput-object v2, v0, v1
sput-object v0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootOptions:[Ljava/lang/String;
return-void
.end method
Click to expand...
Click to collapse
(*****Note: If you want to customize your menu , this is where you change the lines to say whatever you want, Just remember to change the boolean name value in your framework-res.apk/values/layout to reflect whatever name you put, or it won't work*****)
7.Recompile (smali) your jar. If you're Using Team RejectZ Quick Fix to edit your Android policy.jar, (which I highly suggest) and if you did everything right, you will get a "new-classes.dex". Rename it to classes.dex and with 7zip, open the archive of the original Android Policy.jar. Then drag and drop the classes.dex you just compiled into the jar. Push the jar to /system/framework using a root explorer, or just use 7 zip to drag and drop it into a flashable zip.
This is exactly how I made this..Send Thanks to this thread that made it possible for me to port it HERE. Make sure that you've made a NANDROID BACKUP prior to flashing this. Also remember to make sure that your spaces are in line and that there are no typos. Please don't ask me to help you with this mod if you are having trouble, this guide is the best help I can give. Below I have compiled an FI03 version for you to use and/or compare with the mod you're trying to make. I also added CRT off with my mod when I compiled (smali'd) it. Good Luck and Enjoy!!
FI03 Team RejectZ Extended Power Menu/CRT off
Team RejectZ Extended Power Menu FI03
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Team RejectZ Extended Power Menu FI03​
Thanks to mengpo from the Galaxy Tab 7 forum for the guide I used to help me port this MOD** Check out his link and thank him http://forum.xda-developers.com/showthread.php?t=1900424
Warning: This was made from Stock FI03 android policy jar. I recommend using this mod with FI03
This will replace your android.policy.jar. A nandroid back up is always recommended prior to flashing anything.
Directions:
1. Download Team RejectZ Extended Power Menu zip to your SD card.
2. Boot into Recovery. Wipe Cashe, Wipe Dalvik Cashe
3. Navigate to where you saved the zip on your sd card and flash. Reboot, enjoy!
What? No one likes the extended power menu???
timmetal6669 said:
What? No one likes the extended power menu???
Click to expand...
Click to collapse
Thank you!!! I was gonna post in q&a asking how to get CRT on a stock Rom. Good thing I looked in here first. Very much appreciated
Sent from my PG86100 using Tapatalk 2
---------- Post added at 08:42 PM ---------- Previous post was at 07:55 PM ----------
Just reporting back. It seems it doesn't work. It booted up fine after the flash but no crt no extended power menu either. I'm running stock rooted fi03 odexed
Sent from my SPH-D710 using Tapatalk 2
dr.chucky said:
Thank you!!! I was gonna post in q&a asking how to get CRT on a stock Rom. Good thing I looked in here first. Very much appreciated
Sent from my PG86100 using Tapatalk 2
---------- Post added at 08:42 PM ---------- Previous post was at 07:55 PM ----------
Just reporting back. It seems it doesn't work. It booted up fine after the flash but no crt no extended power menu either. I'm running stock rooted fi03 odexed
Sent from my SPH-D710 using Tapatalk 2
Click to expand...
Click to collapse
This isn't the crt mod. That is in framework res. I could post it, but I've already got it on my.rom. If you would like to.make the crt mod yourself, workload the latest version of java. Download the team rejects quick fix, and the java jdk ,,7 zip, NotePad ++, and Android sdk. Pull your framework res from your stock rom with root explorer. Put it on your desktop. Load the framework in the apktool-if.cmd. Decompile it with quick fix quick decompile. It will make a framework res folder. Go to framework res/res/values/bools.xml. Find the line that says animate screen lights. Change the value to false. Recompile . Go back to the framework res folder. Inside you'll see a folder named dist. In there is your new apk. Open the new framework res apk archive with 7 zip. Now open the original framework res apk with 7 zip and drag the meta-inf folder from the old apk to your new one. Close the archives and push your new framework-res to your /system/ framework folder on your phone. Set the permissions and reboot. You now have crt mod.
Ps, i have crt mod, 360degree rotation /rotating lockscreen, centered lockscreen clock, aosp lockscreen and many more mods in the fi03 black rom thread in the dev section... Or just click Here.
Yep, I just downloaded the mod in the black rom thread. Btw in the title it also says crt off which is why I came to this thread. But thanks foe your help. Finally got everything working.
Sent from my SPH-D710 using Tapatalk 2
dr.chucky said:
Yep, I just downloaded the mod in the black rom thread. Btw in the title it also says crt off which is why I came to this thread. But thanks foe your help. Finally got everything working.
Sent from my SPH-D710 using Tapatalk 2
Click to expand...
Click to collapse
You're right, I was getting confused with some framework res mods i was making at the same time. I edited three OP, Thanks. So which mod did you end up using?
Looking awesome. I missed the extended power options.
Sent from my SPH-D710 using XDA
Nice to see some actual mods/themes etc in this section again. Seemed to turn into a second Q&A kinda for a while. Good work.
Sent from my SPH-D710 using xda premium
Nice job. I'm using it on a beta I'm testing out.
timmetal6669 said:
What? No one likes the extended power menu???
Click to expand...
Click to collapse
Dont pay no attention..... This is the ****!
Sent from my SPH-D710 using xda premium
---------- Post added at 02:53 AM ---------- Previous post was at 02:44 AM ----------
sleshepic said:
Nice to see some actual mods/themes etc in this section again. Seemed to turn into a second Q&A kinda for a while. Good work.
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Agreed. Thinking maybe I might just start theming again. I mean, Im no sleshepic, but......who knows. Need to find the time, and an apktool worth a damn.
Sent from my SPH-D710 using xda premium
timmetal6669 said:
You're right, I was getting confused with some framework res mods i was making at the same time. I edited three OP, Thanks. So which mod did you end up using?
Click to expand...
Click to collapse
I'm using the "framework tweaks/camera fix" zip. It's working very well.
Sent from my SPH-D710 using Tapatalk 2
noobtoob said:
Dont pay no attention..... This is the ****!
Sent from my SPH-D710 using xda premium
---------- Post added at 02:53 AM ---------- Previous post was at 02:44 AM ----------
Agreed. Thinking maybe I might just start theming again. I mean, Im no sleshepic, but......who knows. Need to find the time, and an apktool worth a damn.
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Hint, Hint.. I keep bumping the Team Rejectz Quick Fix threads for reason.. Honestly the easiest and most reliable way to decompile and recompile. Its all I use really, I can baksmali, smali, decompile and recompile, gb, ics, jb. Try it out for real, totally easy if you follow the instructions
sleshepic said:
Nice to see some actual mods/themes etc in this section again. Seemed to turn into a second Q&A kinda for a while. Good work.
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Thanks Sleshepic. That means a lot coming from you bro. This mod wasn't too bad, but it took a bit more effort than say a CRT mod lol. Oh btw, I'm working on another mod that I think you might be interested in that hasn't been ported to this device before. I'm still only somewhat familiar with the specific code for the e4gt and was thinking if you would like to go in on this port with me, that we prolly could get it working... Hit me up on gtalk for more details if you're [email protected]
noobtoob said:
Dont pay no attention..... This is the ****!
Sent from my SPH-D710 using xda premium
---------- Post added at 02:53 AM ---------- Previous post was at 02:44 AM ----------
Agreed. Thinking maybe I might just start theming again. I mean, Im no sleshepic, but......who knows. Need to find the time, and an apktool worth a damn.
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Thank you, being I've of the more technical mods, i really v worked hard on it. .i hope everyone can use it and enjoys ..
Just thought Id mention that I've updated this mod to FI27 on the "black" rom thread in the DEV section.
g_ding84 said:
Looking awesome. I missed the extended power options.
Sent from my SPH-D710 using XDA
Click to expand...
Click to collapse
Shoot, I can't live without them.. I'm flashing all the time lol
A how to would make this mod a lot more appealing...
Sent from my SPH-D710 using xda premium
Mattix724 said:
A how to would make this mod a lot more appealing...
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
I was just waiting for someone to ask. Gimme an hour to get the kids down to bed and its coming right up!
EDIT: Guide has been posted!
Thanks. I'll definitely be giving this a try now.
Sent from my SPH-D710 using xda premium
Mattix724 said:
Thanks. I'll definitely be giving this a try now.
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Awesome

[DEV][MOD][HOW TO GUIDE] 4 way "rejectz" Reboot Menu MC3 build, ZiP Posted

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I've been working on some things for my ROM I'm about to release here in about a week and noticed that there wasn't an MC3 4way reboot guide with the updated resource files, so I figured I'd make life easier for some of the devs and anyone who wants to learn how to make the mod. First off I have to say that I couldn't find a guide. I ended up having to do a diff off of one of the reboot menu's from the NoteII forums, So thanks to "Lultima" for the original mod that I diffed from here...http://forum.xda-developers.com/showthread.php?t=2065271 . The biggest difference that I saw was in the resource files themselves. I couldn't get any of the reboot menus from the s3 forums to work. There are quite a few differences with this MC 3 build, especially in the smali. So imagine my suprise when I diffed the Note 2 reboot menu and the only differences between the mod that I had built and thiers was the resource files. I swapped out the necessary codes and it worked like a charm.
​So heres the resource files and the how to guide....
First Download the resource files that i diffed for this build here, http://d-h.st/GkI
1.Decompile android policy.jar
Navigate to smali\com\android\internal\policy\impl
Copy the Galaxy S3 resource files (GlobalActions$99 ,GlobalActions$99$1 ,GlobalActions$99$2,) to "smali\com\android\internal\policy\impl"
Navigate to smali\com\android\internal\policy\impl\GlobalActions.smali
Find, search for:
Code:
new-instance v1, Lcom/android/internal/policy/impl/GlobalActions$5;
and change to ...
Code:
new-instance v1, Lcom/android/internal/policy/impl/GlobalActions$99
a few lines down, find/ search for
Code:
invoke-direct {v1, v0, v2, v3}, Lcom/android/internal/policy/impl/GlobalActions$5;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V
and change to ..
Code:
invoke-direct {v1, v0, v2, v3}, Lcom/android/internal/policy/impl/GlobalActions$99;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V
save file.
Navigate to GlobalActions$SinglePressAction.smali
Find...
Code:
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x40a
name = "SinglePressAction"
.end annotation
Between " . end annotation" and "#instance fields", paste the following:
Code:
# static fields
.field protected static rebootMode:I
.field protected static final rebootOptions:[Ljava/lang/String;
About 4 lines down, just under #direct methods, paste the following code:
Code:
.method static constructor <clinit>()V
.registers 3
const/4 v0, 0x4
new-array v0, v0, [Ljava/lang/String;
const/4 v1, 0x0
const-string v2, "Rejectz Reboot"
aput-object v2, v0, v1
const/4 v1, 0x1
const-string v2, "Hot Boot"
aput-object v2, v0, v1
const/4 v1, 0x2
const-string v2, "Download"
aput-object v2, v0, v1
const/4 v1, 0x3
const-string v2, "Recovery"
aput-object v2, v0, v1
sput-object v0, Lcom/android/internal/policy/impl/GlobalActions$SinglePressAction;->rebootOptions:[Ljava/lang/String;
return-void
.end method
**Note: The Above code can be changed between the parentheses to say whatever you want on the reboot menu, like my Rejectz Reboot.
Recompile Android Policy Jar ,push to system/framework and Enjoy!!
All devs and rejectz alike are welcome to use this in their ROMS, i did edit the resource files so please throw me some thanks and some credit.. Thanks.
Here is the zip for the development impaired. This is to be flashed over stock MC3 deodexed. You can try it on other ROMS but any other changes that may have been made in the android.policy.jar will be overwritten and may cause mods made by other developers in THAT jar to break. If you do try it on another ROM, please post if it works so that we all know, thanks.
Rejectz Reboot Menu --- http://d-h.st/yKi
Nice work brother. Always surprising the team
Sent from my SPH-L710 using xda premium
Look fantastic man....great work!
Nice job Tim and thanks for sharing.
jdsingle76 said:
Look fantastic man....great work!
Click to expand...
Click to collapse
Thanks man, i really had to look around for the resource files. Figures they were in the note 2 forum. Still I had to diff like 5 reboot menus before i found the right ones. Worked all day on this mod.. Was expecting to be done in like 20 minutes when i started at like 8 this morning lol
dazednconfused said:
Nice job Tim and thanks for sharing.
Click to expand...
Click to collapse
No prob. I figured since the old resource files weren't working anymore (at least i couldn't get them to) Id share for any other devs so it wasn't such a pain in the arce. Lol
You smali modding beast..hooking up the reboot mod like a boss..awesome work man!!!
Infecting the world, one rom at a time.
Nice work on the how to. Very "Rejectz" and noob friendly
How was I not first! ! Lol looks good brother!!
BigRitz said:
How was I not first! ! Lol looks good brother!!
Click to expand...
Click to collapse
What's up big Ritz!! Love wheni see you around. Man pheasably this mod should work on the Note2, since i built it from their resource files.. Just saying.
timmetal6669 said:
What's up big Ritz!! Love wheni see you around. Man pheasably this mod should work on the Note2, since i built it from their resource files.. Just saying.
Click to expand...
Click to collapse
Well my device is your device you know I'll test it for ya lol
Inside the Lab , bout to take over the "World"
BigRitz said:
Well my device is your device you know I'll test it for ya lol
Inside the Lab , bout to take over the "World"
Click to expand...
Click to collapse
I'll post a zip for this as soon as i release the Black Hole SuperNovA Rom. I'm just trying to get it in the testing phase and I'm just about done.
Timmetal! Nice to see you here! I loved the black rom on the e4gt hope you plan to stay a while before moving on to the s4 or or something
Shadefactor said:
Timmetal! Nice to see you here! I loved the black rom on the e4gt hope you plan to stay a while before moving on to the s4 or or something
Click to expand...
Click to collapse
Thanks. That ROM was my baby. The OP looked like a wiki page lol
Shadefactor said:
Timmetal! Nice to see you here! I loved the black rom on the e4gt hope you plan to stay a while before moving on to the s4 or or something
Click to expand...
Click to collapse
Oh ya budd, I'm here to stay. I don't forsee an upgrade for at least a few years. And three screen shot of the reboot menu is just teaser of what's to come.. I'm really close to finishing.. Be looking out for the Black Hole SuperNovA Rom
Good to hear loved super nova on the e4gt
Shadefactor said:
Good to hear loved super nova on the e4gt
Click to expand...
Click to collapse
Well I'm on a new device with the latest build. Building it from the ground up, so its taking me a little bit too get everything modded themed and compiled but I would say that it should be done fairly soon. All new Icons and theming. And when I say all new.. I mean it. I made the icons myself... most of them anyway.
timmetal6669 said:
Well I'm on a new device with the latest build. Building it from the ground up, so its taking me a little bit too get everything modded themed and compiled but I would say that it should be done fairly soon. All new Icons and theming. And when I say all new.. I mean it. I made the icons myself... most of them anyway.
Click to expand...
Click to collapse
Alright man can't wait for my s3 to get rejected
Shadefactor said:
Alright man can't wait for my s3 to get rejected
Click to expand...
Click to collapse
Thanks. I need some motivation. I'll get it out asap.
timmetal6669 said:
Thanks. I need some motivation. I'll get it out asap.
Click to expand...
Click to collapse
Take as long as ya need man. That way it'll be as smooth as it should be

(Guide)How to Make Hidden DateView like CM10 on stock GB 2.3+

spacecaker said:
Hello guys
after trying this for a long time i finally managed it
this modification will hide the dateview tag in statusbar so it will be fullscreen on expanded
it will look something like this
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
First Step :
1. you must know how to decompiling/compiling apk
2. knowledge about editing smali/xml
3. you must have apktool/apkmanager
Second Step :
1. Pull your SystemUI.apk and Framework-res.apk
2. Do if framework on apktool/apkmanager
3. Decompile your SystemUI.apk and open statusbarservice.smali​
1. Find this line :
Code:
.method getExpandedHeight
and delete
Code:
iget-object v1, p0, Lcom/android/systemui/statusbar/StatusBarService;->mStatusBarView:Lcom/android/systemui/statusbar/StatusBarView;
invoke-virtual {v1}, Lcom/android/systemui/statusbar/StatusBarView;->getHeight()I
move-result v1
sub-int/2addr v0, v1
Now Find this line.
Code:
const v4, 0x20300
above it u will see
Code:
const/16 v3, 0x7de
change it to:
Code:
const/16 v3, 0x7d3
now find
Code:
method onTrackingViewAttached
then find
Code:
const/16 v1, 0x7de
change it to this:
Code:
const/16 v1, 0x7d3
now find these
Code:
.line 1388
iget-object v8, p0, Lcom/android/systemui/statusbar/StatusBarService;->mStatusBarView:Lcom/android/systemui/statusbar/StatusBarView;
invoke-virtual {v8}, Lcom/android/systemui/statusbar/StatusBarView;->getHeight()I
move-result v3
and delete them.​
now find
Code:
.line 1410
:cond_2
and under it paste
Code:
const/4 v3, 0x0
now compile the apk and it should work
also if this guide isnt clear enough
check this https://github.com/spacecaker/git_status_xp/commit/59a39cd9181cf5241960c105e3d3fb607ce9a59a
Special Thanks to:
JMKL SIX
Rizaleon
Petrukgrinder​
Click to expand...
Click to collapse
Epic right ?
Very usefull
Such a big task just for a small thing, but worth it!
Nice work bro..:thumbup:
So this remove the notification text. Thanks
Send from Batman's Bat- Phone
Good job space! This will make those jb stock roms get more and more to the original!
Sent from my GT-S5830 using xda app-developers app
You get me it guide from GitHub, is it?
Thanks for post it on xda
Sent from my GT-S5830i using xda app-developers app
misha1996 said:
You get me it guide from GitHub, is it?
Thanks for post it on xda
Sent from my GT-S5830i using xda app-developers app
Click to expand...
Click to collapse
i modded my files and after i git diffed the changes
Sent from my S500 using xda app-developers app
It causes a bug on s5830i ROMs of having to pull notification tab in order to see the window when we click on the reboot menu in lidroid toggles.
Do you know any way to fix that?
iamareebjamal said:
It causes a bug on s5830i ROMs of having to pull notification tab in order to see the window when we click on the reboot menu in lidroid toggles.
Do you know any way to fix that?
Click to expand...
Click to collapse
screenshoot or video ?
Sent from my S500 using xda app-developers app
SpaceCaker said:
screenshoot or video ?
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
This is what I was talking about :
If we click on Reboot Menu, it should come as a popup above expanded status bar, instead it comes below the expanded status bar
So we have to pull up the status bar to view the reboot menu
When we click on reboot menu:
We have to pull it up to see the menu
iamareebjamal said:
This is what I was talking about :
If we click on Reboot Menu, it should come as a popup above expanded status bar, instead it comes below the expanded status bar
So we have to pull up the status bar to view the reboot menu
When we click on reboot menu:
We have to pull it up to see the menu
Click to expand...
Click to collapse
either modify the lidroid toggle to onclick collapse systemui
otherway i not know atm
you can also use pwoermenu instead of powrbutton in statusbar
remmove it can be a option
spacecaker your the man.... I'm waiting for this mod for a long time. but now the wait is over. thanks mate. i will try it asap
Need A Help =)
Hello Space Why My Statusbar Like This ?:crying:
YawningCat said:
Hello Space Why My Statusbar Like This ?:crying:
Click to expand...
Click to collapse
u added lines at wrong place or forgot some
Sent from my S500 using xda app-developers app
Space, I figured out what was going on. Instead of aptly hiding the date view (status bar), Petruk Grinder had written the code for just changing the layer of popup. First, status bar remained on top of all activities, but with this it is pushed back than notification drawer. So, the windows popup remain behind it.
However I am not a bit good in coding, if you want to fix that bug, you can try editing some code
Thought of just telling you this
Sent from my GT-S5830i using xda app-developers app
Code:
iget-object v8, p0, Lcom/android/systemui/statusbar/StatusBarService;->mStatusBarView:Lcom/android/systemui/statusbar/StatusBarView;
invoke-virtual {v8}, Lcom/android/systemui/statusbar/StatusBarView;->getHeight()I
move-result v3
I Can't find these?? in Cm7
Instead I found these
Code:
iget-object v8, p0, Lcom/android/systemui/statusbar/StatusBarService;->mStatusBarView:Lcom/android/systemui/statusbar/CmStatusBarView;
invoke-virtual {v8}, Lcom/android/systemui/statusbar/CmStatusBarView;->getHeight()I
move-result v8
How do I proceed?
Edit: Solved by petrukgrinder's Code
Good tutorial, thanks
SpaceCaker said:
u added lines at wrong place or forgot some
Sent from my S500 using xda app-developers app
Click to expand...
Click to collapse
Try to compare your StatusBarService.smali with this
https://github.com/spacecaker/git_status_xp/commit/59a39cd9181cf5241960c105e3d3fb607ce9a59a
just in case you put the codes in wrong line:good:
iamareebjamal said:
Space, I figured out what was going on. Instead of aptly hiding the date view (status bar), Petruk Grinder had written the code for just changing the layer of popup. First, status bar remained on top of all activities, but with this it is pushed back than notification drawer. So, the windows popup remain behind it.
However I am not a bit good in coding, if you want to fix that bug, you can try editing some code
Thought of just telling you this
Sent from my GT-S5830i using xda app-developers app
Click to expand...
Click to collapse
hey bro, can you tell me how to fix that?
chutanh7 said:
hey bro, can you tell me how to fix that?
Click to expand...
Click to collapse
Sorry, I am as bad in smali as bad is Justin Bieber in singing
I only know what's happening in a code and what's happened so I just told here if any of the great minds would be able to think over it and produce some yielding results.
Good work dude, i've waiting so much time for that.

[GUIDE] Remove STOCK TW toggles on expandedView or just move it to anywhere

Requirements
Brain (Any version will work)
SystemUI.apk (Stock because we will remove stock toggles)
Notepad++ (Any text editor will do)
APK-tool (Or any tools that can decompile/compile apk)
Steps
Decompile SystemUI.apk
Go to
Code:
SystemUI.apk\smali\com\android\systemui\statusbar\[COLOR=Red]StatusBarService.smali[/COLOR]
Find
Code:
.line 350
.local v3, qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
const v7, 0x7f030002
invoke-static {p1, v7, v9}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object v3
.end local v3 #qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
check-cast v3, Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
.line 352
.restart local v3 #qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
iget-object v7, p0, Lcom/android/systemui/statusbar/StatusBarService;->mExpandedView:Lcom/android/systemui/statusbar/ExpandedView;
invoke-virtual {v7, v3, v12}, Lcom/android/systemui/statusbar/ExpandedView;->addView(Landroid/view/View;I)V
Then delete it :good::good::good:
Compile:fingers-crossed:
Le wild cleaner ui appear!
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
​
Moving the toggles
Just put this anywhere in the statusbar_expanded.xml
Code:
<include layout="@layout/quickpanel_quick_settings" />
​
​
mariozawa said:
Requirements
Brain (Any version will work)
SystemUI.apk (Stock because we will remove stock toggles)
Notepad++ (Any text editor will do)
APK-tool (Or any tools that can decompile/compile apk)
Steps
Decompile SystemUI.apk
Go to
Code:
SystemUI.apk\smali\com\android\systemui\statusbar\[COLOR=Red]StatusBarService.smali[/COLOR]
Find
Code:
.line 350
.local v3, qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
const v7, 0x7f030002
invoke-static {p1, v7, v9}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object v3
.end local v3 #qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
check-cast v3, Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
.line 352
.restart local v3 #qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
iget-object v7, p0, Lcom/android/systemui/statusbar/StatusBarService;->mExpandedView:Lcom/android/systemui/statusbar/ExpandedView;
invoke-virtual {v7, v3, v12}, Lcom/android/systemui/statusbar/ExpandedView;->addView(Landroid/view/View;I)V
Then delete it :good::good::good:
Compile:fingers-crossed:
Le wild cleaner ui appear!
​
Moving the toggles
Just put this anywhere in the statusbar_expanded.xml
Code:
<include layout="@layout/quickpanel_quick_settings" />
​
​
Click to expand...
Click to collapse
Nice guide boss! But how to remove the text below the stock toggles?
ryan_joshua said:
Nice guide boss! But how to remove the text below the stock toggles?
Click to expand...
Click to collapse
Try to edit
Code:
<com.android.systemui.statusbar.quickpanel.WifiSettingButton android:textSize="13.0dip" android:textStyle="normal" [COLOR="Red"]android:textColor="#ffffff" [/COLOR]android:gravity="center" android:id="@id/quickpanel_wifi_btn_text" android:background="@drawable/quickpanel_button_selector_bg" android:paddingTop="63.0dip" android:paddingBottom="3.0dip" android:focusable="true" android:layout_width="fill_parent" android:layout_height="fill_parent" android:text="@string/quickpanel_wifi_text" />
change the value of textColor to #00ffffff since when you read the smali it will set the text to On/Off so you can't hide it. The easiest way to hide is set the color to transparent or modify its class so it will not set text anyMore.That's only my theory if you have any suggestions feel free to post it
Nice guide bro. :good:
Why mine its still appear ?
wow . why didnt i find this guide before if this for toggle . how about that carrier .
@mariozawa, to move the toogles to bottom must we delete that smali line first sir ?
or what ?
Mranggapo said:
@mariozawa, to move the toogles to bottom must we delete that smali line first sir ?
or what ?
Click to expand...
Click to collapse
Yes you need to remove first the stock toggles from expanded view.
Try to add this in status_bar_tracking.xml
<include layout="@layout/quickpanel_quick_settings" />I don't know the exact location but try it inside <com.android.systemui.statusbar.CloseDragHandle
mariozawa said:
Yes you need to remove first the stock toggles from expanded view.
Try to add this in status_bar_tracking.xml
<include layout="@layout/quickpanel_quick_settings" />I don't know the exact location but try it inside <com.android.systemui.statusbar.CloseDragHandle
Click to expand...
Click to collapse
but i have modified toogle (not lidroid)
still same ?
Mranggapo said:
but i have modified toogle (not lidroid)
still same ?
Click to expand...
Click to collapse
Maybe if your toggles has its own layout like lidroid with taking care of lidroid by dcsms
mariozawa said:
Maybe if your toggles has its own layout like lidroid with taking care of lidroid by dcsms
Click to expand...
Click to collapse
sir ive done it thanks , but why my toogles didnt get inside close drag handle ? its floating outside
Sir,post a guide regarding Moving lidroid toggles below jellyheader ...
or moving jelly header above the lidroid toggles..
Himan Boro said:
Sir,post a guide regarding Moving lidroid toggles below jellyheader ...
or moving jelly header above the lidroid toggles..
Click to expand...
Click to collapse
Try this awesome guide by @dcsms
http://forum.xda-developers.com/showthread.php?t=1952943
You will now have a linear layout that will hold your toggles.
Just move that linearlayout any where you want inside status_bar_expanded.xml
I tryd it many tym ..But Evrytym M Getting FC... ...no other guides rather than this...
Nice thread very help full
mariozawa said:
Maybe if your toggles has its own layout like lidroid with taking care of lidroid by dcsms
Click to expand...
Click to collapse
Nice guide
How to make Notification layout stable..
always usefull guide...
youre great teacher... :good:
btw i have a idea...
how to make signal bars n data all one place ... like ics
im very noobs in xml n smali editing
Hey Hii... I've got few doubts btw... Followin DCSMS's guide we include the lidroid toggles by replacin the stock toggles... In your guide u hav asked to delete the complete section where we replaced lidroid toggles with stock toggles... How do we move lidroid toggles to anywer we need ??
wilfredcool007 said:
Hey Hii... I've got few doubts btw... Followin DCSMS's guide we include the lidroid toggles by replacin the stock toggles... In your guide u hav asked to delete the complete section where we replaced lidroid toggles with stock toggles... How do we move lidroid toggles to anywer we need ??
Click to expand...
Click to collapse
This is Stock TW Toggles.
For Lidroid toggles follow dcsms guide "Taking care of lidroid in statusbar expanded" :good:

[MOD][25/07/14]Custom NetworkIcon for StatusBar. Wifi+Signal+Data+InOut.

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Hi guys! Im back. Sorry if i abbandoned my BatteryMod, but like i said, i have something bigger. It will remove stock signal icon, stock data icon. and stock wifi icon I'm sorry if you found any BUG just tell me
A little help from me
If you guys confused, here's my SystemUI.apk
Download: here
That includes my BatteryMOD, my own Toggle, android.support.v4 library and SignalCluster
Click to expand...
Click to collapse
Changelogs:
24/06/14: Initial build
26/06/14: Added In/Out Icon.
24/07/17: CM7 Support!
25/07/14: Added WifiCluster
*note: maybe this is the last update for this mod, im working on an API for theming usage.
Spoiler Alert!
​
Click to expand...
Click to collapse
What it it?
It's a SignalCluster, ICS/JB/KK signal+data view+wifi. Something like this.. Top|Left icon..
​
Click to expand...
Click to collapse
What to do?
1. Removing the stock signal icon
2. Removing the stock data icon
3. Removing the stock wifi icon
4. Installing the SignalCluster
Click to expand...
Click to collapse
Step 1. Removing the stock signal icon
Stock
1. Decompile your SystemUI
2. Open your com.android.systemui.statusbar.policy.StatusBarPolicy
3. Find this. There are 2 lines i think.
Code:
const-string v1, "phone_signal"
iget v2, p0, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->mPhoneSignalIconId:I
invoke-virtual {v0, v1, v2, v5}, Landroid/app/StatusBarManager;->setIcon(Ljava/lang/String;II)V
4. Add this code below
Code:
const v2, 0x0
invoke-virtual {v0, v1, v2}, Landroid/app/StatusBarManager;->setIconVisibility(Ljava/lang/String;Z)V
CM7
1. Decompile your SystemUI
2. Open your com.android.systemui.statusbar.StatusBarPolicy
3. Find this.
Code:
const-string v6, "phone_signal"
iget v6, p0, Lcom/android/systemui/statusbar/StatusBarPolicy;->mPhoneSignalIconId:I
invoke-virtual {v5, v9, v6, v7}, Landroid/app/StatusBarManager;->setIcon(Ljava/lang/String;II)V
4. Add this code below
Code:
const v2, 0x0
invoke-virtual {v5, v9, v2}, Landroid/app/StatusBarManager;->setIconVisibility(Ljava/lang/String;Z)V
5. Find this.
Code:
const-string v4, "phone_signal"
iget v5, p0, Lcom/android/systemui/statusbar/StatusBarPolicy;->mPhoneSignalIconId:I
invoke-virtual {v3, v4, v5, v6}, Landroid/app/StatusBarManager;->setIcon(Ljava/lang/String;II)V
6. Add this code below
Code:
const v2, 0x0
invoke-virtual {v3, v4, v2}, Landroid/app/StatusBarManager;->setIconVisibility(Ljava/lang/String;Z)V
Click to expand...
Click to collapse
Step 2. Removing the stock data icon
Stock
1. Still on the StatusBarPolicy
2. Delete this line. There are 3 lines
Code:
invoke-direct {p0}, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->updateDataIcon()V
3. Find this code
Code:
.line 1118
return-void
4. Delete the this
Code:
.line 1118
5. It should be like this
Code:
.line 1117
:goto_0
return-void
CM7
1. Still on the StatusBarPolicy
2. Delete this line. There are 3 lines
Code:
invoke-direct {p0}, Lcom/android/systemui/statusbar/StatusBarPolicy;->updateDataIcon()V
3. Find this code
Code:
.line 1101
return-void
4. Delete the this
Code:
.line 1101
5. It should be like this
Code:
.line 1100
:goto_0
return-void
Click to expand...
Click to collapse
Step 2. Removing the stock data icon
1. Still on the StatusBarPolicy
2. Delete this line.
Code:
invoke-direct {p0, p1}, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->updateWifi(Landroid/content/Intent;)V
3. find this line and change v9 to v7
Code:
invoke-virtual {v5, v8, v9}, Landroid/app/StatusBarManager;->setIconVisibility(Ljava/lang/String;Z)V
Click to expand...
Click to collapse
Step 3. Installing the SignalCluster
1. Download the file here
2. Extract to decompiled SystemUI folder.
3. If you want to use the SignalCluster just put this code wherever you like inside the status_bar.xml(LinearLayout with id: icons)
Code:
<ucup.tech.icons.SignalCluster android:layout_width="wrap_content" android:layout_height="wrap_content" />
Click to expand...
Click to collapse
That's it. If you have problem with compiling or something just ask here ok?
FAQs:
Question: My SystemUI FC!
Answer: You know how to logcat right?
Question: This thread is awful!
Answer: I know...
Click to expand...
Click to collapse
Credits:
- Google
- Stackoverflow
- b16h22 for the inspiration
- Dedy Prayetno < this guy is awesome. he made awesome things by only his awesome phone
Click to expand...
Click to collapse
Current Issues:
1. No In/Out icon for now
2. I still find a way to detect if network data is connected not just by the data state
3. I use Handler and Runnable for WifiInOut, since this is the only possible way for API 10.
Post here if you found it
Click to expand...
Click to collapse
AuliaYF said:
Click to expand...
Click to collapse
Waw. Nice guide pakde
+1
I know this look like in evo x4 ui
but without in out icon
i try to make like that but failed ... i mean has 2 signal icon
:ngakak
and now u make this possible
thanks dude
cool
Minions_Army said:
I know this look like in evo x4 ui
but without in out icon
i try to make like that but failed ... i mean has 2 signal icon
:ngakak
and now u make this possible
thanks dude
cool
Click to expand...
Click to collapse
no problem bro
thanks sir i did is already
thanks i did this already by inspiring with evo 4x dev sir
but those user using dual sim will got problem
soon
Next update will be In/Out icons guys
sir can you make for dual sim?
sir can you make it for dual for dual sim user?
should i give you my system ui for to study for dual sim activitys?
---------- Post added at 01:25 PM ---------- Previous post was at 01:22 PM ----------
AuliaYF said:
Next update will be In/Out icons guys
Click to expand...
Click to collapse
sir i have code for in or out data
SK(SurajKumar) said:
sir can you make it for dual for dual sim user?
should i give you my system ui for to study for dual sim activitys?
Click to expand...
Click to collapse
even though i have your systemui i cant test it. i dont have the device.
sir i have code for in or out data
Click to expand...
Click to collapse
so do i thanks by the way
new update
new update guys
AuliaYF said:
new update guys
Click to expand...
Click to collapse
mantap mastah... :good:
work on gb?
Myth2014 said:
work on gb?
Click to expand...
Click to collapse
look at screenshoot
op use stockrom gb 236
Myth2014 said:
work on gb?
Click to expand...
Click to collapse
GB with single sim.
Minions_Army said:
look at screenshoot
op use stockrom gb 236
Click to expand...
Click to collapse
yeah,i see,,thanks sir
---------- Post added at 02:16 AM ---------- Previous post was at 02:14 AM ----------
AuliaYF said:
GB with single sim.
Click to expand...
Click to collapse
hehe..my phone is single sim..i try to do :good:
please help me,
My English is bad..
Myth2014 said:
please help me,
My English is bad..
Click to expand...
Click to collapse
what is it? dont send files since i dont know the problem. just screen shot, i'll help you with a guide, not me fixing..
AuliaYF said:
what is it? dont send files since i dont know the problem. just screen shot, i'll help you with a guide, not me fixing..
Click to expand...
Click to collapse
please look at the picture
thanks sir..
Sent from my IM-A690S using Tapatalk 2
Myth2014 said:
please look at the picture
thanks sir..
Sent from my IM-A690S using Tapatalk 2
Click to expand...
Click to collapse
delete all lines that contains those codes.
im afraid i can't it'll be different, please dont be lazy
Cool tutorial bro. Reserve.
Slick101 said:
Cool tutorial bro. Reserve.
Click to expand...
Click to collapse
no problem bro just trying to keep GB alive :highfive:

Categories

Resources