MJ5 [4.3][DEV GUIDE] Extended restart menu UPDATED - Galaxy S 4 i9505 Android Development

Hey guys, as requested by many here is extended restart menu for MJ5 4.3 Enjoy.
For deodexed roms only just flash via recovery.
Rom devs if you use it please give credits.
MD5:5A777C7ED6270F43AC44581AB05E100C
UPDATED
Now includes images. (Warning framework-res included so you may loose some theming)
Download
MD5:2BB2CB1F2E950C09FAF3AB4FBB41D42C
{
"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"
}
DEV GUIDE
Copy my files from the zip into folder com/android/internal/policy/impl
In android.policy open file com/android/internal/policy/impl/GlobalActions.smali with Notepad ++ or whatever you use.
Look for:
Code:
new-instance v0, Lcom/android/internal/policy/impl/GlobalActions$7;
const v1, 0x1080a5b
const v2, 0x10401c9
invoke-direct {v0, p0, v1, v2}, Lcom/android/internal/policy/impl/GlobalActions$7;-><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;
Change it to:
Code:
new-instance v0, Lcom/android/internal/policy/impl/GlobalActions$Reboot;
const v1, 0x1080a5b
const v2, 0x10401c9
invoke-direct {v0, p0, v1, v2}, Lcom/android/internal/policy/impl/GlobalActions$Reboot;-><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;
Job done yes I really made it that easy. Dont forget to give me credits.

Great, thank u
Working well
tapatalked by an Echoenian

Thank You and WELCOME BACK mate!!
All our good energy is towards your side :good:

Have one for odex ?

Glad to have you back Gary. Good work sir.

Many thanks. Good work.
Sent from my GT-P3110 using Tapatalk 4

Can you upload a picture of the mod Thank you!

nice job man!!!... looking over that code change... that must have been fun :cyclops:

Thank you so much, that was what's missing on my rom.
Works perfectly on Echoe v5 slim.

Thanks, many thanks
Inviato dal mio GT-I9505 utilizzando Tapatalk

Thank you for putting this together. Just wanted to say it's also working for the Atat 4.3 MJ6 as well.

Michael3214 said:
Thank you for putting this together. Just wanted to say it's also working for the Atat 4.3 MJ6 as well.
Click to expand...
Click to collapse
Off topic...but what theme is that?...

marcoxx626 said:
Off topic...but what theme is that?...
Click to expand...
Click to collapse
Most of it is Foxhound 3.0. Clean flash of StockUp1.1, restored data only from nand of FH3.0. Added Cleanvertising font and lastly vr-CS-jbBlue for battery and signal indicators. So far no FC's......But it's the extended restart menu that finally makes it complete.

egel1 said:
Can you upload a picture of the mod Thank you!
Click to expand...
Click to collapse
Sent from my GT-I9505 using Tapatalk 4

koko115 said:
Have one for odex ?
Click to expand...
Click to collapse
Try this , make backup before.
Wrote what is happen.

Worked on GoldenEye 9.0 that didn't include this for those not wanting to do an entire reflash.
Sent from my GT-I9505 using XDA Premium HD app

gharrington said:
Hey guys, as requested by many here is extended restart menu for MJ5 4.3 Enjoy.
For deodexed roms only just flash via recovery.
Rom devs if you use it please give credits.
MD5:5A777C7ED6270F43AC44581AB05E100C
Click to expand...
Click to collapse
Works perfect on Omega 13.1 !

Hey sorry for the noob question...
Will this work if I have the current framework (working) and app flashed on Hyperdrive ROM Rls 10?
Also, Gary, can you expand the menu even further upon shutdown?
IE, take a screenshot, etc. Original Hyperdrive had a 9 way reboot menu, it got broken once I installed 3Minit but the other benefits of the framework are WELL worth it.
White we are at it, any way newest release of 3Minit allows expanded volume menu?
Thanks!!

Works perfectly on Omega V13.1! :thumbup:
Sent from my GT-I9505 using Tapatalk 4

Update
I have further updated this mod to include images (see screenshot)..

Related

[MOD] Auto-rotating Dialer + Call Screen [V3][2.3.3]

{
"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"
}
About
This is basically the stock dialer modded so that it would automatically rotate to landscape mode. (Samsung created the landscape mode for its car dock.) Update.zip files are attached. If you need it for any other version, you can either do it yourself using the information below or post your DialerTabActivity.apk (and tell me the ROM version so that others can use it too) and I'll do it for you. Requires deodexed ROM.
Changelog
v3: Respect user auto-rotate setting
v2r2: Fix bugs in auto-rotating call screen
v2: Added auto-rotating call screen
v1: Initial Relase
Technical Detail
The mod was created by editing com/sec/android/app/dialertab/DialerTabActivity.smali in DialerTabActivity.apk.
In the function onResume, replace
Code:
if-eq v0, v3, :cond_0
.line 206
invoke-direct {p0, v3}, Lcom/sec/android/app/dialertab/DialerTabActivity;->updateScreenOrientation(I)V
with
Code:
if-eq v0, v4, :cond_0
.line 206
invoke-direct {p0, v4}, Lcom/sec/android/app/dialertab/DialerTabActivity;->updateScreenOrientation(I)V
A shell script (tested on OSX, needs apktool and android tools in PATH) is also attached.
The call screen mod was created by editing several files in Phone.apk
com/android/phone/InCallScreen.smali, com/android/phone/InCallScreen$1.smali, com/android/phone/InVTCallScreen.smali
(Look for the diff file in attached source)
UPDATE: If anyone had any problems with certificates/dialer not working, I've uploaded new versions.
UPDATE2: v2r2 versions posted. The Froyo mods are untested, but should work. Please post your results.
UPDATE2: v3 versions posted. The Froyo mods will no longer be updated.
WARNING: XXJVK and XWJVB are for 2.3.3. Others are for 2.2.1. Please do not flash the wrong versions or you will experience bootloop.
Other versions available here
JVQ Odexed Version by $omator
thanks alot,now i can drive without bend my head 90 deg. when im calling hehe
this is GOLD !
many thanks and credit to you
This is nice, how do you edit the smali files? Sorry i dont have much experience yet but I already have smali and baksmali, do you use notepad or a command prompt to change the lines?
Sent from my HTC Mytouch 3g using XDA App
Any text editor, including notepad, will do. I don't use [bak]smali directly, but use apktool to extract the apk, edit using a text editor and use apktool to build it again. And then replace the AndroidManifest.xml, META-INF with the one from the old apk then zipalign before packing it into update.zip.
Big thanks..... i try with Froyo 2.2.1... Good Job
I've added a 2.2.1 version (ZSJPK). Feel free to request other versions, I have an automated shell script for creating them.
i think imho, this is the best mod EVER!!!!
lol...
*gets sgs windscreen car holder out*
owww, i've just moved to cm7. i would have loved this! good job man
If anyone had any problems with certificates/dialer not working, I've uploaded new versions. (Made a mistake in my script not replacing AndroidManifest.xml, XXJVB was okay because I did it manually.)
Cheers,i'll try it
ขอบคุณครับ
how do i install it?
i need some instructions...
Pick the update.zip which is the same as your ROM version (or you can try any near version). Then flash with CWM.
Option or something to activate this!? I've used XWJVB version flashed with CWM and the dialer in not auto-rotating! I am on XWJVB stock!Thanx!
Thank you very much
Is this mod can be applied to the in-call page ?:-
to be auto-rotatable just like the main Dialer page ?
Thanks
lazy_ursache said:
Option or something to activate this!? I've used XWJVB version flashed with CWM and the dialer in not auto-rotating! I am on XWJVB stock!Thanx!
Click to expand...
Click to collapse
You need auto-rotation on for it to work. And this is for deodexed ROMs, I don't think it works on stock.
Ok thanx! Sad that is not working also on odexed ROMs it is a fantastic mod!
There
This requires modifying Phone.apk, release will come later.
EDIT: Uploaded a v2 version for XWJVB, other versions will come later.
really cool stuff here !
I've moved to deodexed ROM for this mod! You are great! Thanx!

[MOD][ICS]How to Set Logs type to "View by All Call Logs" - Hide SMS from Call Logs

[MOD][ICS]How to Set Logs type to "View by All Call Logs" - Hide SMS from Call Logs
I made this mod to fix Homam's mod, Homam tried in his mod to prevent sms from being logged, this mod worked well for GB Roms, but is not compatible with Stock Email app on ICS Roms.
So i followed karl999999's idea, and i made a more clean and stable changes.
This mod will :
Not remove any log
Set the Default Call logs type to "View All Call logs" (no SMS)
Let you view/edit all other logs types
You have to decompile "Contacts.apk" (use my Apk_Manager if you have any issue with your apktool).
Edit "Contacts.apk\smali\com\android\contacts\activities\DialtactsActivity.smali" (Red changes) :
Code:
.method public onBackPressed()V
.locals 3
const/4 v2, [COLOR=Red]0x1[/COLOR]
iget-object v0, p0, Lcom/android/contacts/activities/DialtactsActivity;->mDialpadFragment:Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;
if-eqz v0, :cond_0
Then edit "Contacts.apk\smali\com\sec\android\app\dialertab\calllog\CallLogFragment.smali" (Red changes) :
Code:
.method public constructor <init>()V
.locals 2
const/4 v1, 0x1
invoke-direct {p0}, Lcom/sec/android/app/dialertab/widget/DialtactsListFragment;-><init>()V
const/4 v0, -0x1
iput v0, p0, Lcom/sec/android/app/dialertab/calllog/CallLogFragment;->mCallType:I
iput-boolean v1, p0, Lcom/sec/android/app/dialertab/calllog/CallLogFragment;->mSweepActionEnabled:Z
const/4 v0, 0x0
iput [COLOR=Red]v1[/COLOR], p0, Lcom/sec/android/app/dialertab/calllog/CallLogFragment;->mWhichButton:I
That's all, compile and enjoy.
Uploaded patches to be used on stock deodexed Roms.
Nice work again Wanam.
I hope that now that the S3 is coming devs will not leave S2 forums
siberian tiger said:
Nice work again Wanam.
I hope that now that the S3 is coming devs will not leave S2 forums
Click to expand...
Click to collapse
Maybe, but not soon, at least for me .
Added CWM flashable XWLP9 mod (Stock Deodexed).
Hi wanam, your work is really impressive.
I tried your tutorial but I couldn't. Could you help me?
I flashed my S2 I9100 with de AndersonDJ v3.3 ROM. Then I did this steps:
1)Copy the /system/app/Contacts.apk to C:\Apk_Manager_ICS\place-apk-here-for-modding
2)Execute script.bat
3)Type "22" and select option "1" = Contacts.apk
4)Type "9" to decompile
5)Open "Contacts.apk\smali\com\android\contacts\activitie s\DialtactsActivity.smali" with Editplus and change.
6)Open "Contacts.apk\smali\com\sec\android\app\dialertab\ calllog\CallLogFragment.smali" and change.
7)Type "11" to compile.
Then I choose "yes" for next two questions (something like "Is it a system apk" and "Copy the files not changed").
An unsigned file was created in "C:\Apk_Manager_ICS\place-apk-here-for-modding"
I renamed to "Contacts.apk" and copy to /system/app/
But "View All Call logs" is not default yet..
What am I doing wrong?
Thanks
Parrillo said:
Hi wanam, your work is really impressive.
I tried your tutorial but I couldn't. Could you help me?
I flashed my S2 I9100 with de AndersonDJ v3.3 ROM. Then I did this steps:
1)Copy the /system/app/Contacts.apk to C:\Apk_Manager_ICS\place-apk-here-for-modding
2)Execute script.bat
3)Type "22" and select option "1" = Contacts.apk
4)Type "9" to decompile
5)Open "Contacts.apk\smali\com\android\contacts\activitie s\DialtactsActivity.smali" with Editplus and change.
6)Open "Contacts.apk\smali\com\sec\android\app\dialertab\ calllog\CallLogFragment.smali" and change.
7)Type "11" to compile.
Then I choose "yes" for next two questions (something like "Is it a system apk" and "Copy the files not changed").
An unsigned file was created in "C:\Apk_Manager_ICS\place-apk-here-for-modding"
I renamed to "Contacts.apk" and copy to /system/app/
But "View All Call logs" is not default yet..
What am I doing wrong?
Thanks
Click to expand...
Click to collapse
You have to remove the classes.dex from "keep" folder after the 2nd "Yes".
Sorry wanam but I didn't find the "classes.dex".
It is the first time that I use an apk_tool. I don't know if I have been made correctly.
I used "Windows Search" before put 2nd YES, but I didn't find the "classes.dex".
The ROM was based on XWLP9. The only option that I have use is 9 and 11?
Thank you very much.
Thanx a Ton for Tutorial Brother
but m not even able to decompile apk
it is giving me following error
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b20)
Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
Could Not Find C:\Users\PriyamSura\Desktop\Theme Porter\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-for-modding/signedContacts.apk
Could Not Find C:\Users\PriyamSura\Desktop\Theme Porter\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedContacts.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\PriyamSura\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=contentDescription, value=0x0104057c
W: Could not decode attr value, using undecoded value instead: ns=android, name=contentDescription, value=0x0104057c
I: Decoding values*/* XMLs...
I: Done.
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x0104057c
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:59)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:43)
at brut.androlib.res.decoder.ResAttrDecoder.decode(ResAttrDecoder.java:40)
at brut.androlib.res.decoder.AXmlResourceParser.getAttributeValue(AXmlResourceParser.java:315)
at org.xmlpull.v1.wrapper.classic.XmlPullParserDelegate.getAttributeValue(XmlPullParserDelegate.java:69)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.writeStartTag(StaticXmlSerializerWrapper.java:267)
at org.xmlpull.v1.wrapper.classic.StaticXmlSerializerWrapper.event(StaticXmlSerializerWrapper.java:211)
at brut.androlib.res.decoder.XmlPullStreamDecoder.decode(XmlPullStreamDecoder.java:46)
at brut.androlib.res.decoder.ResStreamDecoderContainer.decode(ResStreamDecoderContainer.java:34)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:100)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:86)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:132)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
Thanks this very simple to do.
Not having to remove it from logsprovider is a plus!
hi wanam
can you please update this for 404 based roms
engloa said:
hi wanam
can you please update this for 404 based roms
Click to expand...
Click to collapse
Up Up :good:
Will this work with GB roms?
Sent from my GT-I9100 using xda premium
jebuchanan said:
Will this work with GB roms?
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
On Gb and 4.0.3 roms yes on fw 4.0.4 no :'(
Inviato dal mio GT-I9100 usando Tapatalk
.malo2000 said:
On Gb and 4.0.3 roms yes on fw 4.0.4 no :'(
Inviato dal mio GT-I9100 usando Tapatalk
Click to expand...
Click to collapse
It's the same mod for 4.0.4, you can compare with my 4.0.4 files.
For those of us that haven't programmed for 25 years and are out of the loop so to speak, could you make this a flashable mod?
Sent from my GT-I9100 using xda premium
Ok I have only to change the second file and now it's perfect
{
"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"
}

[DEV][HOW TO][GUIDE] MultiWindow -enable all apps on MC3, with native hotspot

{
"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"
}
Ok, so I'm back at it again today and I couldn't find a guide to enable all apps on multiwindow for mc3 and above, so.... here we go again... lol.
MultiWindow add all apps
1.Decompile FlashBarService.apk or pull the classes.dex and Baksmali
2.Navigate to com\sec\android\app\FlashBarService\FlashBarInfo.smali
3.Find the following code:
Code:
const-string v8, "android.intent.category.MULTIWINDOW_LAUNCHER"
...and change to this..
Code:
const-string v8, "android.intent.category.LAUNCHER"
4.Smali the classout or recompile the FlashBarService.apk
5.Decompile the services.jar
6.Navigate to com\android\server\am\MultiWindowManagerService.smali
7.Search for the METHOD....
Code:
method public isSupportApp(Ljava/lang/String;)Z
.....in the METHOD, change the following code from this....
Code:
.line 459
const/4 v0, 0x1
.line 462
:goto_9
return v0
to THIS...
Code:
.line 459
const/4 p0, 0x1
.line 462
:goto_9
return p0
8. Recompile services.jar or baksmali it.
9. Flash BOTH the modified FlashBarService.apk and services.jar.
This is was built from STOCK MC3. If you're running a prior version you most likely will end up in a boot loop. If you are running a custom rom,
such as the MOAR or Mijjahz Goodness.., I haven't tested this on thier custom ROMS. It may boot loop, or it may break any other mods that other
developers of custom ROMS might have included in thier services.jar, such as the native HOTSPOT mod.
You have been WARNED. Devs.. feel free to use this guide, just shoot me some respect
and give me some thanks.
(verified breaks native hotspot unless you add that to the services jar too like I did....)
Here's a zip for the developing impaired..., This zip includes all apps multwindow moD AND native hotspot ... Enjoy!!http://d-h.st/x3j
Another great option. You the man.
Sent from my SPH-L710 using xda premium
Tim, you are the man!
Thanks for this!
Ladys and gents the man is a machine! ! Wish we had some rejectz love on the note2 , makes me want to get an s3 to play!!
Keep Em coming tim... good work
Awesome, thank you:beer:
Slithering from the nether regions of a twisted mind and tarnished soul
Nice, nice :thumbup:
does this work on stock md4?
darknatas said:
does this work on stock md4?
Click to expand...
Click to collapse
I would say it does. The differences in the 2 builds don't have any differences I'm aware of with the services.jar. Id say go ahead and flash it, just make sure you've made a nandroid back up just in case.. And let me know how it goes please
Awesome work yet again man
Infecting the world, one rom at a time.
tried it with freeza's md1 deodexed and got the boot loop
iamnotbrian said:
tried it with freeza's md1 deodexed and got the boot loop
Click to expand...
Click to collapse
Md1?
Can any one else verify this? Ill check the code on md4 if that's the case
timmetal6669 said:
Md1?
Can any one else verify this? Ill check the code on md4 if that's the case
Click to expand...
Click to collapse
I meant MD4, my bad.
timmetal6669 said:
Md1?
Can any one else verify this? Ill check the code on md4 if that's the case
Click to expand...
Click to collapse
so this works on freza MD4?
TIA:good:
djelmonstruo said:
so this works on freza MD4?
TIA:good:
Click to expand...
Click to collapse
Over stock deodexed , id say yes.
timmetal6669 said:
Over stock deodexed , id say yes.
Click to expand...
Click to collapse
Can any one else verify that this does/or doesn't work with md4?
rwilco12 said:
Tim, you are the man!
Thanks for this!
Click to expand...
Click to collapse
Thanks RW.. won't be long now.. I'm compiling the ROM this week end...
iamnotbrian said:
I meant MD4, my bad.
Click to expand...
Click to collapse
So you're running stock md 4?
Im on md4 with a fresh backup. Here we go, downloading now
Update: definitely boot loops on md4
Sent from my SPH-L710 using xda premium
@timmetal6669
Read a little about your rom in another thread. Would enjoy taking it for a spin when its ready
Sent from my SPH-L710 using xda premium

[MOD][HOW-TO] Completely remove "Data off" Popups

Goal: Remove all "Data off" notifications
{
"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"
}
Two places:
Through using the status-bar toggle (picture 1)
Through using the checkbox in Settings > Mobile Data (picture 2)
Click to expand...
Click to collapse
GUIDE
Decompile SystemUI.apk
Navigate to "com/android/systemui/statusbar/policy/quicksetting"
Open "MobileDataQuickSettingButton.smali"
Find the following method signature:
Code:
.method private setMobileDataEnabled(Z)V
Scroll down to the end of the method and look for this section:
Code:
if-nez p1, :cond_0
if-nez v0, :cond_0
invoke-direct {p0}, Lcom/android/systemui/statusbar/policy/quicksetting/MobileDataQuickSettingButton;->onDisplayMobileDataOffAlert()V
:goto_0
return-void
:cond_0
invoke-direct {p0, p1}, Lcom/android/systemui/statusbar/policy/quicksetting/MobileDataQuickSettingButton;->setMobileDataEnabled(Z)V
goto :goto_0
Now add/delete the following:
Code:
[COLOR="Red"]--if-nez p1, :cond_0
--if-nez v0, :cond_0
--invoke-direct {p0}, Lcom/android/systemui/statusbar/policy/quicksetting/MobileDataQuickSettingButton;->onDisplayMobileDataOffAlert()V
--:goto_0
--return-void
--:cond_0[/COLOR]
invoke-direct {p0, p1}, Lcom/android/systemui/statusbar/policy/quicksetting/MobileDataQuickSettingButton;->setMobileDataEnabled(Z)V
[COLOR="Red"]--goto :goto_0[/COLOR]
[COLOR="Green"]++return-void[/COLOR]
Click to expand...
Click to collapse
Now, unfortunately, I have not been able to find where the second alert shows up. Any help on that would be appreciated. I took a logcat to help with the first one, but with the second one it kept saying "STATUSBAR-MobileDataConnection" which does not help since I already disabled it from the status bar.
Devs: Feel free to use this in your ROMs, no need to ask permission. Credits would be nice, but it doesn't really matter :good:
Thanks to:
timmetal6669 for help with the signature
Downloads BELOW
Downloads and Instructions
Instructions:
Download the zip (MAKE SURE YOU PICK THE RIGHT ONE, ODEX OR DEODEX, AND NOT BOTH EITHER)
Boot into recovery
**OPTIONAL but recommended** Wipe dalvik-cache and /cache
Flash the zip
Reboot
Profit
Click to expand...
Click to collapse
Downloads for removeMobileOffAlert.zip: (only removes from Status Bar, at the moment)
**ODEX** version
**DEODEX** version
Click to expand...
Click to collapse
thanks! ive been trying to figure this out for a week! granted i aint no dev or anything close to that lol
PhxkinMassacre said:
thanks! ive been trying to figure this out for a week! granted i aint no dev or anything close to that lol
Click to expand...
Click to collapse
Flashable zips are now in OP, check it out
And I did this today because I got my phone 2 weeks ago and it was annoying the heck out of me lol
You are the man!!!!!!!
Is possible to remove the notification when sending pictures via wifi?
stas333 said:
You are the man!!!!!!!
Is possible to remove the notification when sending pictures via wifi?
Click to expand...
Click to collapse
There's a notification? I'll look into and see what I can come up with, but there's probably a way
CNexus said:
There's a notification? I'll look into and see what I can come up with, but there's probably a way
Click to expand...
Click to collapse
the mms still goes through on wifi with mobile data turned off.
stas333 said:
the mms still goes through on wifi with mobile data turned off.
Click to expand...
Click to collapse
Yeah I just sent one and saw that....
I'll work on disabling that later today
one of the best mods:good:
stas333 said:
one of the best mods:good:
Click to expand...
Click to collapse
Glad you got this going bro! Very nice indeed.
stas333 said:
one of the best mods:good:
Click to expand...
Click to collapse
I still can't find that darned MMS code. I have one more trick to find it though, so I'll see if it works or not...
Thank you! This is awesome.
------------------------
Sprint Galaxy S3 "Supernexus"
Whiplashh Rom
Look it up.
CNexus said:
I still can't find that darned MMS code. I have one more trick to find it though, so I'll see if it works or not...
Click to expand...
Click to collapse
:good:
Is moar a deoxed rom?
Sent from my SPH-L710 using xda premium
justin24 said:
Is moar a deoxed rom?
Sent from my SPH-L710 using xda premium
Click to expand...
Click to collapse
go to system, app. if you see a file name that ends with .odex, then you are odexed. if you dont, then you are deodexed.
stas333 said:
go to system, app. if you see a file name that ends with .odex, then you are odexed. if you dont, then you are deodexed.
Click to expand...
Click to collapse
Just my 2 cents, but I'd go to the original OP and ask the dev that made it,
Back to this OP, CNexus, you are friggin awesome!
justin24 said:
Is moar a deoxed rom?
Sent from my SPH-L710 using xda premium
Click to expand...
Click to collapse
The only custom rom here that I know for a fact is odexed, is Odexed Blue
However, if you flash this, it will break any theming done by Morphology as Morphology uses a modified SystemUI.apk that's easier to inject with mods.
Yo cnex..awesome mod man...you are an evil genius..well..not sure if you are in fact evil...you could be a well mannered genius i guess..but technically you could be a well mannered evil genius too..
infecting the world, one rom at a time...
manufan721 said:
Yo cnex..awesome mod man...you are an evil genius..well..not sure if you are in fact evil...you could be a well mannered genius i guess..but technically you could be a well mannered evil genius too..
infecting the world, one rom at a time...
Click to expand...
Click to collapse
^Random post is random
CNexus said:
^Random post is random
Click to expand...
Click to collapse
LOL

[MOD][GUIDE][GB]Guide to ICS styled pattern lockscreen with reduced thickness

Guide to changing path thickness of Pattern Lockscreen to ICS style​
I wandered places searching this off. I found some traces in direction of my destiny but none of them worked fully correctly
So, as stated, I searched a lot for this mod and came face to face with failures and smali errors. So, I had to figure it out myself some modification to do in it to make it work.
This guide was made by me a while ago but I thought on sharing this here as this is very active community
Note: IT is not COMPLETELY my mod but I have done modifications in it to make it work. This is based on a guide for Froyo outside of XDA. So, I have ported it to gingerbread after some small smali modifications.
Pre-Requisites:
1. PC with Java JDK or JRE
2. Deodexed ROM
3. 7-Zip
4. classes.dex decompiling tool
5. Notepad++
6. Patience
7. Carefulness for editing smali files
Let's Start
1. First we would have to decompile classes.dex inside framework.jar
For that, you can use my Tool ROM Tool v3
First using 7zip, Right click on your framework.jar and open it as archive and drag and drop classes.dex in input folder of the tool
(Note: If you don't have classes.dex in framework.jar [only META-INF and preloaded-classes.dex], then your framework isn't deodexed)
Now, open Script.bat and choose 1 (Decompile classes.dex)
2. Now, we will make the changes. Go to decompiled folder and go to \classout\com\android\internal\widget and open LockPatternView.smali in Notepad++
Search for mDiameterFactor:F [Ctrl+F]​
See the code above it.
It should be like this:-
Code:
const[COLOR="Red"]/high16[/COLOR] v2, 0x3f00
If it is, then you will have to remove red part /high16
Because it will not allow the change of code we will be doing which will have a different hexadecimal value which will not be supported till this code is in effect
Now, it will look like this:-
Code:
const v2, 0x[COLOR="Red"]3f00[/COLOR]
Now, we will change the thickness value 3f00 to 3dcccccd
Final code will look like this
Code:
const v2, 0x3dcccccd
Save it
I am attaching final and before smali for comparison below.
View attachment 1936707
(Note: If you don't have /high16, it's good , then just just change the value and save)
3. Go to Script.bat again and choose 2 (Recompile classes.dex) and after it's done, you will get classes.dex
Drop it in framework.jar
4. Push framewotk.jar in /system/framework
Eg:
Copy it in platform-tools folder of android SDK and type following with pressing Enter after each command
Code:
adb remount
adb push framework.jar /system/framework/
adb shell chmod 644 /system/framework/framework.jar
adb shell killall system_server
Last command will Hot Reboot your phone to apply changes. It is fast and better than rebooting phone.
5. Enjoy
Screenshots
{
"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"
}
Before
After
Credits​
A member from other forum to answer a question to other member of that forum
Google for letting me search somethings
Samsung Galaxy Ace s5830i members for supporting me so much :highfive:
http://forum.xda-developers.com/showthread.php?t=2264849
Sent from my GT-S5830i
Mohinkx said:
http://forum.xda-developers.com/showthread.php?t=2264849
Sent from my GT-S5830i
Click to expand...
Click to collapse
I know. I shared here as many people would not reach there
thanks bro, very nice guide :good: :good: :good: :good: :good: :good:
hey whats that script.bat??
well i extracted frmwrk.jar i got classes.dex . what to do nw??
Yeah.. I got..its very very nice..
Sent from my GT-S6802
Just one suggestion type these
Code:
iput v2, p0, Lcom/android/internal/widget/LockPatternView;->mDiameterFactor:F
code instead of
Code:
mDiameterFactor:F
for searching.
Hitesh2626 said:
Just one suggestion type these
Code:
iput v2, p0, Lcom/android/internal/widget/LockPatternView;->mDiameterFactor:F
code instead of
Code:
mDiameterFactor:F
for searching.
Click to expand...
Click to collapse
the reason why he used that is because the iput v2,p0 code differs per device.
mDiameterFactor instead not
Sent from my Acer S500 CloudMobile
SpaceCaker said:
the reason why he used that is because the iput v2,p0 code differs per device.
mDiameterFactor instead not
Sent from my Acer S500 CloudMobile
Click to expand...
Click to collapse
Oh Ok
well nice guide....
will definately try to reduce thickness of my pattern lockscreen...:good:

Categories

Resources