[NEW][GUIDE][MOD]Team Rejectz Extended Power Menu FI03 - Samsung Epic 4G Touch

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

Related

[Mod&How to] 4 shortcut on lock screen (XXLSJ/XWLS8)

Hello xda'ers,
I decided to write-step how to add a 4 shortcut on lock screen.
{
"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"
}
How to:
-Decompile SecSettings.apk and go to smali/com/android/settings/lockscreenshortcut/LockScreenShortcutSettings.smali
-Open this file with a text editor and look for
Code:
# direct methods
.method static constructor <clinit>()V
.locals 2
.prologue
const/4 v1, 0x0
.line 79
[B]- const/4 v0, 0x3[/B]
[COLOR="Red"][B]+ const/4 v0, 0x4[/B][/COLOR]
sput v0, Lcom/android/settings/lockscreenshortcut/LockScreenShortcutSettings;->MAX_SHORTCUT_ICON:I
-Recompile and enjoy
Download flashable zip for Deodex XWLS8
4 shortcut + on/off ripple lock & Smart Rotation options on Settings (XWLS8) - http://www.mediafire.com/?v1a2bmhfpugcgcb
Download flashable zip for Deodex XXLSJ
4 shortcut on lock - http://www.mediafire.com/?bf682nnjc3emto6
4 shortcut + on/off ripple lock & Smart Rotation options on Settings - http://www.mediafire.com/?dmwn3dbafro9p5p
Click to expand...
Click to collapse
4 shortcut + on/off ripple lock & Smart Rotation options on Settings version not include ripple lock mod..only on/off option in Settings! If you need ripple lock effect, install first this: http://forum.xda-developers.com/showthread.php?t=1998682
If you like this post, please click "Thanks" button
Wow thanks for this! Any idea how to do the 4 shortcuts in an odexed xxlsj?
very good, excellent contribution, thanks!
gyxter said:
Wow thanks for this! Any idea how to do the 4 shortcuts in an odexed xxlsj?
Click to expand...
Click to collapse
+1
Can anyone give me framework-res.apk here ? Pls
Sent from my GT-I9100G using xda premium
ICS_XD said:
Can anyone give me framework-res.apk here ? Pls
Sent from my GT-I9100G using xda premium
Click to expand...
Click to collapse
https://www.dropbox.com/s/poc65xo6nfxkbfn/twframework-res.apk
Here you go. Is it for the MOD? :laugh:
gyxter said:
Wow thanks for this! Any idea how to do the 4 shortcuts in an odexed xxlsj?
Click to expand...
Click to collapse
there is no need to make odex version
just delete SecSettings.odex in system/app
and then flash this or replace manually SceSettings.apk from this zip
nims11 said:
there is no need to make odex version
just delete SecSettings.odex in system/app
and then flash this or replace manually SceSettings.apk from this zip
Click to expand...
Click to collapse
i have mods Ripple & Smart Rotation installed before
1. if i did like you said, would i lose both of them?
2. say i lose both of them, can i flash Ripple_Smart.zip from http://forum.xda-developers.com/showthread.php?t=1997919 without losing 4 shortcut mod?
JoFury said:
https://www.dropbox.com/s/poc65xo6nfxkbfn/twframework-res.apk
Here you go. Is it for the MOD? :laugh:
Click to expand...
Click to collapse
I also need framework-res.apk
( u gimme twframework-res.apk)
Sent from my GT-I9100G using xda premium
---------- Post added at 10:56 AM ---------- Previous post was at 10:56 AM ----------
Hey man can i include this mode in my rom which will be in next 2 days ??
Sent from my GT-I9100G using xda premium
Stock Recovery
Can I flash the zip from the stock recovery?? Sorry if the question is dumb...please reply
Can I do this for odexed LSJ?
Sent from my GT-I9100 using xda app-developers app
As JB 4.1.2 XXLSJ is real new I'd be remiss if I didn't ask :fingers-crossed:
has anyone tested this?? & if yes, what were the results?? :angel:
King_Rat said:
As JB 4.1.2 XXLSJ is real new I'd be remiss if I didn't ask :fingers-crossed:
has anyone tested this?? & if yes, what were the results?? :angel:
Click to expand...
Click to collapse
Don't work on 4.1.2 leak lsj ><
Sent from my GT-I9100 using Tapatalk 2
work great here ..thank you ...
Ripple on/off option not working for me. All the time I have ripple lock.
For those that want to access shortcuts from lock screen & keep their lock screen free of icons, you could try THIS
Screenie:
The notification bar can be accessed via lock screen... why not hide your short cuts here?
Not working for me
mythtrandyr said:
Hello xda'ers,
I decided to write-step how to add a 4 shortcut on lock screen.
How to:
-Decompile SecSettings.apk and go to smali/com/android/settings/lockscreenshortcut/LockScreenShortcutSettings.smali
-Open this file with a text editor and look for
Code:
# direct methods
.method static constructor <clinit>()V
.locals 2
.prologue
const/4 v1, 0x0
.line 79
[B]- const/4 v0, 0x3[/B]
[COLOR="Red"][B]+ const/4 v0, 0x4[/B][/COLOR]
sput v0, Lcom/android/settings/lockscreenshortcut/LockScreenShortcutSettings;->MAX_SHORTCUT_ICON:I
-Recompile and enjoy
Download flashable zip for Deodex XXLSJ
4 shortcut on lock - http://www.mediafire.com/?bf682nnjc3emto6
4 shortcut + on/off ripple lock & Smart Rotation options on Settings - http://www.mediafire.com/?dmwn3dbafro9p5p
4 shortcut + on/off ripple lock & Smart Rotation options on Settings version not include ripple lock mod..only on/off option in Settings! If you need ripple lock effect, install first this: http://forum.xda-developers.com/showthread.php?t=1998682
If you like this post, please click "Thanks" button
Click to expand...
Click to collapse
HEY IM HAPPY FOR YOUR MOD BUT IM USING SIMPLISTIC ROM FOR GII XXLSJ BUT YOUR MOD 4 SHORTCUT IS NOT WORKING BUT THE OTHER MOD LIKE MULTIWINDOWS E.T.C IS WORKING PLEASE EMAIL ME TO FIX MY PROBLEM.....WHEN I GO TO SETTING I CAN ADD OTHER APP BUT WHEN IAM GOING TO LOCK IT THE RIPPLE WORK BUT THERE IS NO ICON SHOWING
[email protected]
THANK YOU IN ADVANCE
ihackerp1337 said:
HEY IM HAPPY FOR YOUR MOD BUT IM USING SIMPLISTIC ROM FOR GII XXLSJ BUT YOUR MOD 4 SHORTCUT IS NOT WORKING BUT THE OTHER MOD LIKE MULTIWINDOWS E.T.C IS WORKING PLEASE EMAIL ME TO FIX MY PROBLEM.....WHEN I GO TO SETTING I CAN ADD OTHER APP BUT WHEN IAM GOING TO LOCK IT THE RIPPLE WORK BUT THERE IS NO ICON SHOWING
[email protected]
THANK YOU IN ADVANCE
Click to expand...
Click to collapse
Leaving you gmail on public forum is not advisable.
Neither is writing in CAPS.
Cut your losses and flash rom that has all this built in
Sent from my GT-I9100 using Tapatalk 2
Will this work on stock 4.0.4 ROM...
Sent from my GT-I9100 using Tapatalk 2
sirkula said:
Will this work on stock 4.0.4 ROM...
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
AFAIK, the mods and guides in the OP are directed for the Jelly Bean 4.1.2 Leak Firmware - XXLSJ. Wouldn't work on any ROM differing from this.

[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][MOD]Add Jelly Bean Easter Egg with Bean Bag in system

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

[MOD][HOW-TO] Add Flashlight quick toggle [4.3|4.4]

Hey guys! Today I'll be showing you how to add the Flashlight toggle to your quick toggles:
{
"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"
}
UPDATE: Once you have completed the mod below, you (and your users) can enable the flashlight toggle by flashing the zip HERE. It uses busybox and an included binary to add the toggle to notification_panel_active_app_list, so it will work with all devices that this mod applies to. Again, feel free to share this but give credits where due!
Items you will need
SystemUI.apk from the rom you are modding
SecSettings.apk from the rom you are modding
Notepad++ or another text editor of your choice (NOT regular Notepad, it messes up the encoding)
apktool or baksmali+smali or VTS, etc
Click to expand...
Click to collapse
Items you will need
Step 1: Modding SystemUI.apk
Step 2: Modding SecSettings.apk
Click to expand...
Click to collapse
Now before we get started, download the attachment with the files you will need for this mod (attached to this post...make sure you grab the right version for the system you are modifying)
Now lets get started!
[size=+1]Step 1: Modding SystemUI.apk[/size]
Decompile SystemUI.apk and navigate to com/android/systemui/statusbar/policy/quicksetting in your file browser
Copy and paste FlashlightQuickSettingButton.smali from inside the zip you downloaded (flashlight_files.zip/SystemUI/FlashlightQuickSettingButton.smali) into this folder
Navigate to SystemUI/res/drawable-xhdpi (or SystemUI/res/drawable-xxhdpi depending on your device)
Copy and paste the two pngs (tw_quick_panel_icon_flashlight_off.png and tw_quick_panel_icon_flashlight_on.png) from the SystemUI folder of the attachment into the decompiled drawable folder you opened above
Now navigate to SystemUI/res/values and open the strings.xml with your text editor
Search for "quickpanel_flashlight_text". If it does not exist anywhere in the file, add this to the bottom of your strings.xml file:
PHP:
<string name="quickpanel_flashlight_text">Flashlight</string>
That's it or SystemUI! Now recompile SystemUI.apk and move on to step 2. At this point, the toggle will show up in the full toggles view (when you add ";Flashlight" to the CscFeature... or to the notification_panel_active_app_list in /data/data/com.android.providers.settings/settings.db) in the status bar, but Settings will FC if you try to go into edit mode/rearrange toggles mode
Click to expand...
Click to collapse
[SIZE=+1]Step 2: Modding SecSettings.apk[/SIZE]
Decompile SecSettings and navigate to com/android/settings
Open NotificationPanelMenu.smali and search for the method ".method private makeConvertPanelName"
Make sure that the following lines are present somewhere in the makeConvertPanelName method. Notice that they are NOT the same, but indeed very similar.
Code:
iget-object v0, p0, Lcom/android/settings/NotificationPanelMenu;->mConvertPanelItemstring:Ljava/util/HashMap;
const-string v1, "Flashlight"
const-string v2, "notification_panel_flashlight"
invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
[B]AND[/B]
iget-object v0, p0, Lcom/android/settings/NotificationPanelMenu;->mConvertPanelItemstring:Ljava/util/HashMap;
const-string v1, "notification_panel_flashlight"
const-string v2, "Flashlight"
invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
If the 8 lines above are not anywhere in the
Code:
makeConvertPanelName
method, then add them to the end of the method before the
Code:
return-void
Now save the file and close it and navigate to SecSettings/res/values/strings.xml
Add the following line to your strings.xml if it does not already exist (yes, it has the same name as the image. That's supposed to happen so don't worry)
PHP:
<string name="notification_panel_flashlight">Flashlight</string>
Save and close strings.xml and navigate to SecSettings/res/drawable-xhdpi or drawable-xxhdpi depending on your device
Extract the notification_panel_flashlight.png from attachment.zip/SecSettings and copy it into the drawable folder from above
Finally, recompile SecSettings with your modifications
Click to expand...
Click to collapse
Now for the final step, take your modified SecSettings.apk, SystemUI.apk and add them to the /system/app folder of your rom and you are good to go!
Congratulations, you just added the Flashlight toggle to your rom. Enjoy
Note: Devs are free to use this mod in their rom. Just make sure you give credits where they are due
If you have any issues, I'd be more than happy to help :good:
Thanks to:
Samsung for the AT&T base code this was pulled from!
Rompnit for finding the at&t code and the first part of the mod!
Google for the wonderful logcat tool built into Android that allowed me to figure out the second part of the mod!!
Nice! Thanks so much for spelling it out. I'll be running through this tomorrow. Cheers. :thumbup:
Sent from my SPH-L710 using xda premium
Thanks man you are awesome! !!!!!
Sent from my SPH-L900 using Xparent Green Tapatalk 2
Very nice man. I'll get this added next weekend.
Thanks CNexus, great tutorial.
Thanks dude, I will be trying this tomorrow. Greatly appreciated
Sent from my SPH-L900 using XDA Premium 4 mobile app
Thank you bro! Just wish we had a simple flashable mod or xposed mod but since these are based off unique res, it is not possible (well somewhat, but it can be too buggy). Sucks we have to go through this. Lazy ass me lol.
Sent from my SGH-M919 using XDA Premium 4 mobile app
Nice work.. Thanks
Sent from my SCH-I535 using Tapatalk
CNexus said:
Hey guys! Today I'll be showing you how to add the Flashlight toggle to your quick toggles:
[SIZE=+1]Now before we get started, download the attachment with the files you will need for this mod (attached to this post...scroll down)[/size]
Now lets get started!
Click to expand...
Click to collapse
Great Job OP...
Sent from my SM-N900P using XDA Premium 4 mobile app
I've gotten as far as step 10
Code:
Now navigate to com/android/systemui/statusbar/policy/quicksetting and open FlashlightQuickSettingButton.smali with your text editor
but can't find FlashlightQuickSettingButton.smali there. Using AndroidMultitool. Will try again with different decompiled app.:good:
baseballfanz said:
I've gotten as far as step 10
Code:
Now navigate to com/android/systemui/statusbar/policy/quicksetting and open FlashlightQuickSettingButton.smali with your text editor
but can't find FlashlightQuickSettingButton.smali there. Using AndroidMultitool. Will try again with different decompiled app.:good:
Click to expand...
Click to collapse
You added that file into that folder in step 2.
baseballfanz said:
I've gotten as far as step 10
Code:
Now navigate to com/android/systemui/statusbar/policy/quicksetting and open FlashlightQuickSettingButton.smali with your text editor
but can't find FlashlightQuickSettingButton.smali there. Using AndroidMultitool. Will try again with different decompiled app.:good:
Click to expand...
Click to collapse
See below. You either skipped a step or misread it or something
MetalMan2 said:
You added that file into that folder in step 2.
Click to expand...
Click to collapse
I did add the two files but might have added them to the wrong folder. I'll try it again with the other folder.
Thanks guys.
baseballfanz said:
I did add the two files but might have added them to the wrong folder. I'll try it again with the other folder.
Thanks guys.
Click to expand...
Click to collapse
It's 3 files you need to add. The flashlight smali file into the quicksettings folder in SystemUI/smali/... and the two pngs into res/drawable.
Can you make a flash zip?
Sent from my SPH-L710 using xda app-developers app
Small question Cnexus..
I believe this sceenshot to be the incorrect way.
Or do i just replace the "0x0" the the id# of 0x........ ?
Thanks for the tut and the Help
https://www.dropbox.com/s/3nl68ro9cmfucgu/Screenshot 2014-01-20 19.16.36.png
jlyle said:
Small question Cnexus..
I believe this sceenshot to be the incorrect way.
Or do i just replace the "0x0" the the id# of 0x........ ?
Thanks for the tut and the Help
https://www.dropbox.com/s/3nl68ro9cmfucgu/Screenshot 2014-01-20 19.16.36.png
Click to expand...
Click to collapse
Don't know if you figured it out yet, but the screenshot is wrong. I just got this working on the synergy rom. Just the "0x0" with whatever corresponds to it, like 0x154whatever
jlyle said:
Small question Cnexus..
I believe this sceenshot to be the incorrect way.
Or do i just replace the "0x0" the the id# of 0x........ ?
Thanks for the tut and the Help
https://www.dropbox.com/s/3nl68ro9cmfucgu/Screenshot 2014-01-20 19.16.36.png
Click to expand...
Click to collapse
You replace each 0x0 with the corresponding id
jorv976 said:
Can you make a flash zip?
Sent from my SPH-L710 using xda app-developers app
Click to expand...
Click to collapse
I made this one for the synergy rom, I think you'll still have to use this guide to do the rest, but that's all on the phone and real simple
http://d-h.st/Zqx

Categories

Resources