[MOD] Disable Full/Low Battery Notification (no vibration) - Galaxy S II Themes and Apps
Hi guys, i have noticed that most people here in order to disable battery Full/Low sound notification just delete these files:
-system/media/audio/ui/TW_Battery_caution.ogg
-system/media/audio/ui/TW_Low_Battery.ogg
Well this is not the right way to do it, because the vibration is still here to wake us up while sleeping
I decided to share this simple mod to avoid this inconvenience!
How to (for dev)
Decompile SystemUI.apk
Open with your favourite Text Editor this file: smali\com\android\systemui\statusbar\policy\StatusBarPolicy.smali
search for this method signature: .method private onBatteryLow(Landroid/content/IntentV
The following code will disable Dialog popup for low battery warning (if you don't want to disable it but just sound and vibration then leave this function as it is)
Change code from
Code:
.method private onBatteryLow(Landroid/content/Intent;)V
.locals 0
.parameter "intent"
.prologue
.line 985
invoke-direct {p0}, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->showLowBatteryWarning()V
.line 990
return-void
.end method
to
Code:
.method private onBatteryLow(Landroid/content/Intent;)V
.locals 0
.parameter "intent"
.prologue
return-void
.line 985
invoke-direct {p0}, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->showLowBatteryWarning()V
.line 990
return-void
.end method
Now to disable Sound and Vibration notification search for this method signature: .method private playTone(Landroid/net/UriV
Edit code from
Code:
.method private playTone(Landroid/net/Uri;)V
.locals 5
.parameter
.prologue
const-string v4, "StatusBarPolicy"
.line 1180
const-string v0, "StatusBarPolicy"
...
...
...
to
Code:
.method private playTone(Landroid/net/Uri;)V
.locals 5
.parameter
.prologue
return-void
const-string v4, "StatusBarPolicy"
.line 1180
const-string v0, "StatusBarPolicy"
...
...
...
That's it! Recompile apk and you can sleep deeply
In addition it is possible to leave it as an option! I got it working following the IDEA behind JKAY theme settings application! (big thanks to Jkay)
If you'd like to get sound back, you can create a folder "battery_SOUND_ON" in some places for this example i used this path: /sdcard/Revolution/battery_SOUND_ON (if you don't want sound just delete or rename this folder)
Now we can modify smali code as following:
Code:
.method private playTone(Landroid/net/Uri;)V
.locals 5
.parameter
.prologue
new-instance v0, Ljava/io/File;
const-string v1, "/sdcard/Revolution/battery_SOUND_ON"
invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V
invoke-virtual {v0}, Ljava/io/File;->exists()Z
move-result v0
if-eqz v0, :goto_1
const-string v4, "StatusBarPolicy"
.line 1180
const-string v0, "StatusBarPolicy"
...
...
...
"goto_1" label if followed by return-void which means that if this folder does not exists this method will return straight away, if this folder exists then the normal code will be executed!
Note:
This mod will also display battery full charge icon on the status bar when the charge is completed!
so could any dev make a mod to enable to battery full notifacations and sounds and vibrations??
would be handy to have one in the kitchen for your rom leo so peeps can either have it or not have it etc
it is another way to customise the device as well which is always good
buxz777 said:
so could any dev make a mod to enable to battery full notifacations and sounds and vibrations??
would be handy to have one in the kitchen for your rom leo so peeps can either have it or not have it etc
it is another way to customise the device as well which is always good
Click to expand...
Click to collapse
Yes it is also possible to leave it as an option, i am testing it now and if it works i will update the OP!
\EDIT
It is working, OP has been updated!
Yeah, working great! Allways great thing when user can decide whether use it or not.
Thanks LeoMar!
fisrt off thanks alot about the grate MOD
but can i use it only with LOW battery?? and keep the notification when the battery is full
KinG_Ruin said:
fisrt off thanks alot about the grate MOD
but can i use it only with LOW battery?? and keep the notification when the battery is full
Click to expand...
Click to collapse
\EDIT
Yes it is possible of course!
1)Modify method "private onBatteryLow(Landroid/content/Intent; )V" as shown to the OP.
2)Don't change code (leave the original code) for this method ".method private playTone(Landroid/net/Uri; )V"
In this way you will only disable Low battery notification Dialod + Sound
thanks alot dude
it works fine, keep it up
edit:-
when i tried to edit another ROM i got this code
Code:
.method private onBatteryLow(Landroid/content/Intent;)V
[COLOR="Red"][B] .registers 2
.parameter "intent"[/B][/COLOR]
.prologue
.line 985
invoke-direct {p0}, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->showLowBatteryWarning()V
.line 990
return-void
.end method
so is it save to replace it with
Code:
.method private onBatteryLow(Landroid/content/Intent;)V
[COLOR="Red"][B] .locals 0
.parameter "intent"[/B][/COLOR]
.prologue
return-void
.line 985
invoke-direct {p0}, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->showLowBatteryWarning()V
.line 990
return-void
.end method
KinG_Ruin said:
thanks alot dude
it works fine, keep it up
edit:-
when i tried to edit another ROM i got this code
Code:
.method private onBatteryLow(Landroid/content/Intent;)V
[COLOR="Red"][B] .registers 2
.parameter "intent"[/B][/COLOR]
.prologue
.line 985
invoke-direct {p0}, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->showLowBatteryWarning()V
.line 990
return-void
.end method
so is it save to replace it with
Code:
.method private onBatteryLow(Landroid/content/Intent;)V
[COLOR="Red"][B] .locals 0
.parameter "intent"[/B][/COLOR]
.prologue
return-void
.line 985
invoke-direct {p0}, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->showLowBatteryWarning()V
.line 990
return-void
.end method
Click to expand...
Click to collapse
It's not safe, therefore just add "return-void" after .prologue don't change anithing else!
hi, thanks for sharing, works great.
one thing...
when i use this code:
.method private playTone(Landroid/net/UriV
.locals 5
.parameter
.prologue
new-instance v0, Ljava/io/File;
const-string v1, "/sdcard/Revolution/battery_SOUND_ON"
invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/StringV
invoke-virtual {v0}, Ljava/io/File;->exists()Z
move-result v0
if-eqz v0, :goto_1
const-string v4, "StatusBarPolicy"
.line 1180
const-string v0, "StatusBarPolicy"
compiling classes.dex gives me an error "goto_1" not specified.
i am on kh3, can you tell me where to go?
methux
LeoMar75 said:
It's not safe, therefore just add "return-void" after .prologue don't change anithing else!
Click to expand...
Click to collapse
I love u
thanks alot dude, it works fine
juberg said:
hi, thanks for sharing, works great.
one thing...
when i use this code:
.method private playTone(Landroid/net/UriV
.locals 5
.parameter
.prologue
new-instance v0, Ljava/io/File;
const-string v1, "/sdcard/Revolution/battery_SOUND_ON"
invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/StringV
invoke-virtual {v0}, Ljava/io/File;->exists()Z
move-result v0
if-eqz v0, :goto_1
const-string v4, "StatusBarPolicy"
.line 1180
const-string v0, "StatusBarPolicy"
compiling classes.dex gives me an error "goto_1" not specified.
i am on kh3, can you tell me where to go?
methux
Click to expand...
Click to collapse
You should find a label followed by return-void then modify
Code:
if-eqz v0, :goto_1
to the correct label!
Pls quote your complete function code if you need help!
there are many goto´s
which part of the code do you need for helping me out?
The whole StatusBarPolicy.smali or just the part from
.method private playTone(Landroid/net/UriV?
thanks
juberg said:
there are many goto´s
which part of the code do you need for helping me out?
The whole StatusBarPolicy.smali or just the part from
.method private playTone(Landroid/net/UriV?
thanks
Click to expand...
Click to collapse
Just that method.
Basicly you want to find goto or cond what will follow code "return-void"
For example in my .method private playTone it looks like this:
Code:
invoke-virtual {v0, v2, v1}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V
.line 1204
:cond_42
:goto_42
return-void
So in that case it would be that goto_42
that was fast.
ok, got it...
thanks
Could someone upload the systemUI.apk with this mod?
celiocalves said:
Could someone upload the systemUI.apk with this mod?
Click to expand...
Click to collapse
SystemUI.apk can be posted because it's not generic... SystemUI.apk is rensponsible for status bar, Quick toggle icons, edt tweaks support, jkay support...
There are plenty of version depending on the theme and the mod you are using!
LeoMar75 said:
SystemUI.apk can be posted because it's not generic... SystemUI.apk is rensponsible for status bar, Quick toggle icons, edt tweaks support, jkay support...
There are plenty of version depending on the theme and the mod you are using!
Click to expand...
Click to collapse
I didn't know that! :/
Thanks for the explanation!
thanks for the tutorial, i am having issue compiling this. i lose my status bar every time.
Leo,
Thank you for the tutorial. Here's how the method looks on the SGS2 Skyrocket for AT&T:
Code:
.method private playTone(Landroid/net/Uri;Z)V
.locals 5
.parameter
.parameter
.prologue
const-string v2, "playTone() - "
const-string v3, "audio"
const-string v4, "StatusBarPolicy"
.line 1212
const-string v0, "StatusBarPolicy"
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "playTone() - "
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
invoke-static {v4, v0}, Landroid/util/Slog;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 1213
Not sure where I should add the "return-void" in this snippet, or if I need something else. Let me know!
How do I disable low and full battery sounds on Ics? thank you!
Related
[MOD] AOSP lock screen custom wallpaper support
Want to have AOSP lock screen (Android stock) with opportunity to use your own wallpaper as it is with the Glass lockscreen (Settings/Display/Wallpapers/Lock screen wallpaper)? Not a problem This MOD is suitable to the JVS/JVT, you may try and tell me if it works with JVU and other GB versions. 1. Decompile android.policy.jar 2. Replace existing LockScreen.smali file (attached). 3. Edit LockPatternKeyguardView.smali 4. Replace whole section: Code: .method private getLockScreenMode()Lcom/android/internal/policy/impl/LockPatternKeyguardView$LockScreenMode; .locals 1 .prologue .line 1338 invoke-direct {p0}, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->isMissedEventsArrived()Z move-result v0 if-eqz v0, :cond_0 .line 1339 sget-object v0, Lcom/android/internal/policy/impl/LockPatternKeyguardView$LockScreenMode;->PuzzleLock:Lcom/android/internal/policy/impl/LockPatternKeyguardView$LockScreenMode; .line 1342 :goto_0 return-object v0 :cond_0 sget-object v0, Lcom/android/internal/policy/impl/LockPatternKeyguardView$LockScreenMode;->GlassLock:Lcom/android/internal/policy/impl/LockPatternKeyguardView$LockScreenMode; goto :goto_0 .end method with Code: .method private getLockScreenMode()Lcom/android/internal/policy/impl/LockPatternKeyguardView$LockScreenMode; .locals 1 .prologue .line 1338 invoke-direct {p0}, Lcom/android/internal/policy/impl/LockPatternKeyguardView;->isMissedEventsArrived()Z move-result v0 sget-object v0, Lcom/android/internal/policy/impl/LockPatternKeyguardView$LockScreenMode;->TapLock:Lcom/android/internal/policy/impl/LockPatternKeyguardView$LockScreenMode; return-object v0 .end method 5. Decompile framework-res.apk 6. Replace existing keyguard_screen_tab_unlock.xml and keyguard_screen_tab_unlock_land.xml files (attached). 7. Compile both files, upload them to the device and be happy
hi xxjvt screen is black LockScreen.smali not fixed thank..
flonec said: xxjvt screen is black LockScreen.smali not fixed thank.. Click to expand... Click to collapse This has been tested on XXJVT so it is working on this release... Please do the whole procedure once again.
Does this work on lollipop?
[DEV] [MOD] [HOW-TO] CRT Off on LG2 Based Sprint ROMS [MOD]
Hey everyone! In response to sudden events i am deciding to make tutorials for all my MODS for interested DEVS. Here is CRT Off MOD First you're going to need to decompile the Smali in services.jar Now edit the following code in the following smali: \com\android\server\PowerManagerService$BrightnessState.smali Edit the following code: Code: .line 2685 .restart local v3 #turningOff:Z :cond_38 iget-object v4, p0, Lcom/android/server/PowerManagerService$BrightnessState;->this$0:Lcom/android/server/PowerManagerService; [COLOR="Green"] ++const/16 v3, 0x11 ++#calls: Lcom/android/server/PowerManagerService;->nativeStartSurfaceFlingerAnimation(I)V invoke-static {v4, v3}, Lcom/android/server/PowerManagerService;->access$9000(Lcom/android/server/PowerManagerService;I)V ++iget-object v4, p0, Lcom/android/server/PowerManagerService$BrightnessState;->this$0:Lcom/android/server/PowerManagerService;[/COLOR] #getter for: Lcom/android/server/PowerManagerService;->mScreenBrightness:Lcom/android/server/PowerManagerService$BrightnessState; invoke-static {v4}, Lcom/android/server/PowerManagerService;->access$6000(Lcom/android/server/PowerManagerService;)Lcom/android/server/PowerManagerService$BrightnessState; move-result-object v4 Now edit the following smali: \com\android\server\PowerManagerService.smali Edit the following code: Code: .prologue .line 116 iget-object v0, p0, Lcom/android/server/PowerManagerService;->mBatteryService:Lcom/android/server/BatteryService; return-object v0 .end method [COLOR="Green"]++.method static synthetic access$9000(Lcom/android/server/PowerManagerService;I)V .registers 2 .parameter "x0" .parameter "x1" .prologue .line 110 invoke-direct {p0, p1}, Lcom/android/server/PowerManagerService;->nativeStartSurfaceFlingerAnimation(I)V return-void .end method[/COLOR] .method private acquireDVFSLockLocked(IILandroid/os/IBinder;IILjava/lang/String;)V Thats it Compile the smali and push services.jar to /system/framework/ to test. Have fun
Nice job. I was going to post this up, then i saw yours.
Does the effect still flicker? Sent from my Galaxy Nexus using Tapatalk 2
jdbeitz said: Does the effect still flicker? Sent from my Galaxy Nexus using Tapatalk 2 Click to expand... Click to collapse *bump* And also does anyone know if this works after the LG8 update?
[How To] SecMms mods
Replace code = BLUE Remove code = RED Add code = GREEN Based on I337UCUAMDL Here we go: Add toggle to disable Screen ON when receiving a message: Go here: \SecMms\smali\com\android\mms\ui\MessagingPreferenceActivity.smali Change this: Code: .line 876 .local v2, NotiCategory:Landroid/preference/PreferenceCategory; invoke-static {}, Lcom/android/mms/MmsConfig;->getEnableNotificationBacklight()Z move-result v10 if-nez v10, :cond_7 .line 877 const-string v10, "pref_key_backlight" invoke-virtual {p0, v10}, Lcom/android/mms/ui/MessagingPreferenceActivity;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference; move-result-object v10 [COLOR=red] invoke-direct {p0, v2, v10}, Lcom/android/mms/ui/MessagingPreferenceActivity;->removePreference(Landroid/preference/PreferenceGroup;Landroid/preference/Preference;)V[/COLOR] .line 879 :cond_7 invoke-static {}, Lcom/android/mms/MmsConfig;->getEnableCmas()Z move-result v10 if-eqz v10, :cond_8 invoke-static {}, Lcom/android/mms/MmsConfig;->getCMASProvider()I move-result v10 To this: Code: .line 876 .local v2, NotiCategory:Landroid/preference/PreferenceCategory; invoke-static {}, Lcom/android/mms/MmsConfig;->getEnableNotificationBacklight()Z move-result v10 if-nez v10, :cond_7 .line 877 const-string v10, "pref_key_backlight" invoke-virtual {p0, v10}, Lcom/android/mms/ui/MessagingPreferenceActivity;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference; move-result-object v10 .line 879 :cond_7 invoke-static {}, Lcom/android/mms/MmsConfig;->getEnableCmas()Z move-result v10 if-eqz v10, :cond_8 invoke-static {}, Lcom/android/mms/MmsConfig;->getCMASProvider()I move-result v10 Increase Limits, Image sending resolution, Message Save/Restore Function Go here: \SecMms\smali\com\android\mms\MmsConfig.smali MMS Max size to 1024000 bytes: Change this: Code: .line 151 sput-boolean v2, Lcom/android/mms/MmsConfig;->mMmsWidgetEnabled:Z .line 152 const v0, 0x4b000 sput v0, Lcom/android/mms/MmsConfig;->mMaxMessageSize:I To this: Code: .line 151 sput-boolean v2, Lcom/android/mms/MmsConfig;->mMmsWidgetEnabled:Z .line 152 const v0, [COLOR=blue]0xfa000[/COLOR] sput v0, Lcom/android/mms/MmsConfig;->mMaxMessageSize:I Increase MMS Image size (2048x1536 or 3.2MP): Change this: Code: .line 158 sput-object v4, Lcom/android/mms/MmsConfig;->mEmailGateway:Ljava/lang/String; .line 159 sget v0, Lcom/android/mms/MmsConfig;->MAX_IMAGE_HEIGHT:I sput v0, Lcom/android/mms/MmsConfig;->mMaxImageHeight:I .line 160 sget v0, Lcom/android/mms/MmsConfig;->MAX_IMAGE_WIDTH:I sput v0, Lcom/android/mms/MmsConfig;->mMaxImageWidth:I .line 161 const/16 v0, 0x1e0 To this: Code: .line 158 sput-object v4, Lcom/android/mms/MmsConfig;->mEmailGateway:Ljava/lang/String; .line 159 [COLOR=blue]const/16 v0, 0x600[/COLOR] sput v0, Lcom/android/mms/MmsConfig;->mMaxImageHeight:I .line 160 [COLOR=blue]const/16 v0, 0x800[/COLOR] sput v0, Lcom/android/mms/MmsConfig;->mMaxImageWidth:I .line 161 const/16 v0, 0x1e0 Enable message Save/Restore function: Change this: Code: .method public static getEnableSaveRestoreSDCardMessage()Z .locals 1 .prologue .line 907 const/4 v0, 0x0 return v0 .end method To this: Code: .method public static getEnableSaveRestoreSDCardMessage()Z .locals 1 .prologue .line 907 [COLOR=blue]const/4 v0, 0x1[/COLOR] return v0 .end method Text message limit (1000): Change this: Code: .method public static getMaxRecipientLength()I .locals 1 .prologue .line 2510 sget v0, Lcom/android/mms/MmsConfig;->mMaxRecipientLength:I return v0 .end method To this: Code: .method public static getMaxRecipientLength()I .locals 1 .prologue .line 2510 [COLOR=blue]const/16 v0, 0x3e8[/COLOR] return v0 .end method Max recipients (1000): Change this: Code: .method public static getMmsMaxRecipient()I .locals 1 .prologue .line 2751 sget v0, Lcom/android/mms/MmsConfig;->mMmsRecipientLimit:I return v0 .end method To this: Code: .method public static getMmsMaxRecipient()I .locals 1 .prologue .line 2751 [COLOR=blue]const/16 v0, 0x3e8[/COLOR] return v0 .end method Change this: Code: .method public static getRecipientLimit()I .locals 1 .prologue .line 759 sget v0, Lcom/android/mms/MmsConfig;->mRecipientLimit:I return v0 .end method To this: Code: .method public static getRecipientLimit()I .locals 1 .prologue .line 759 [COLOR=blue]const/16 v0, 0x3e8[/COLOR] return v0 .end method Change this: Code: .line 1767 const-string v11, "CscFeature_Message_MaxRecipientLengthAs" invoke-virtual {v1, v11}, Lcom/sec/android/app/CscFeature;->getInteger(Ljava/lang/String;)I move-result v11 sput v11, Lcom/android/mms/MmsConfig;->mMaxRecipientLength:I .line 1768 sget v11, Lcom/android/mms/MmsConfig;->mMinRecipientLength:I To this: Code: .line 1767 const-string v11, "CscFeature_Message_MaxRecipientLengthAs" invoke-virtual {v1, v11}, Lcom/sec/android/app/CscFeature;->getInteger(Ljava/lang/String;)I move-result v11 [COLOR=green]const/16 v11, 0x3e8[/COLOR] sput v11, Lcom/android/mms/MmsConfig;->mMaxRecipientLength:I .line 1768 sget v11, Lcom/android/mms/MmsConfig;->mMinRecipientLength:I Change this: Code: .line 2049 const-string v1, "pref_key_max_recipient" invoke-interface {v0, v1, v4}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I move-result v1 sput v1, Lcom/android/mms/MmsConfig;->mRecipientLimit:I To this: Code: .line 2049 const-string v1, "pref_key_max_recipient" invoke-interface {v0, v1, v4}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I move-result v1 [COLOR=green]const/16 v1, 0x3e8[/COLOR] sput v1, Lcom/android/mms/MmsConfig;->mRecipientLimit:I .line 2050 const-string v1, "Mms/MmsConfig" SMS to MMS Conversion (1000): Change this: Code: .method public static getSmsToMmsTextThreshold()I .locals 1 .prologue .line 688 sget v0, Lcom/android/mms/MmsConfig;->mSmsToMmsTextThreshold:I return v0 .end method To this: Code: .method public static getSmsToMmsTextThreshold()I .locals 1 .prologue .line 688 [COLOR=blue]const/16 v0, 0x3e8[/COLOR] return v0 .end method Change this: Code: .line 2044 const-string v1, "pref_key_threshold" const/4 v2, 0x4 invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I move-result v1 sput v1, Lcom/android/mms/MmsConfig;->mSmsToMmsTextThreshold:I .line 2045 const-string v1, "Mms/MmsConfig" To this: Code: .line 2044 const-string v1, "pref_key_threshold" const/4 v2, 0x4 invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I move-result v1 [COLOR=green]const/16 v1, 0x3e8[/COLOR] sput v1, Lcom/android/mms/MmsConfig;->mSmsToMmsTextThreshold:I .line 2045 const-string v1, "Mms/MmsConfig" Thanks: Wanam for 1000 Recipients and SMS/MMS conversion FEEL FREE TO USE THIS BUT PLEASE GIVE THANKS TO MYSELF AND WANAM
Saved just in case.
Awesome work!! Works perfectly... thanks a bunch for this. Hate the damn screen coming on for messages. ~If shoman doesnt mind, heres the finished product +no texts added to logs.
sulpher said: Awesome work!! Works perfectly... thanks a bunch for this. Hate the damn screen coming on for messages. I'll have to come back to click thanks, spent all mine ~If shoman doesnt mind, heres the finished product +no texts added to logs. Click to expand... Click to collapse Just so you know, the no text to logs is not needed.... The log can be viewed without messages and set that way by default.
shoman94 said: Just so you know, the no text to logs is not needed.... The log can be viewed without messages and set that way by default. Click to expand... Click to collapse Hmm couldnt figure out how to set it to that default... if i backed out of the log instead of home key or rebooted it was reverting.
sulpher said: Hmm couldnt figure out how to set it to that default... if i backed out of the log instead of home key or rebooted it was reverting. Click to expand... Click to collapse I'm confused now....lol Mine always reverts to "ALL CALLS" when backing out or rebooting... Not sure of the reason for the differences. This may be something to look into. Are you running your own modded stock that you did yourself or did you use something posted here?
shoman94 said: I'm confused now....lol Mine always reverts to "ALL CALLS" when backing out or rebooting... Not sure of the reason for the differences. This may be something to look into. Are you running your own modded stock that you did yourself or did you use something posted here? Click to expand... Click to collapse I'm on the odin from here (http://forum.xda-developers.com/showthread.php?t=2261573) plus the OTA... honestly i cant remember if it was doing it when i first got the phone.. i bricked it pretty fast with the xposed framework. Only mod i did myself to it was jeboo's removing sms from call log mod. +stolen's systemui, dev threads framework & secsettings
Cool, I'm going to add a few of these to my Xposed mod, coming soon.
Nottach said: Cool, I'm going to add a few of these to my Xposed mod, coming soon. Click to expand... Click to collapse I would love too see this as an exposed mod. What u hiding under the sleeve?
How do you know all this stuff
Ok being VERY new to this... where are you finding the \SecMms\smali\com\android\mms\ui\MessagingPreferen ceActivity.smali ??? I'm trying to learn this a bit and some guidance would be appreciated. I want to contribute. I appologize but I'm on Rogers with I337UCUAMDJ and the APK attached does not seem to work so I'll mod myself. I only want to eliminate the pop up when screen off. Baby steps. I always donate to XDA contributors so I'm hoping someone can show me this little tweak. Pay it forward. Thanks
To fine that file you need a deodexed ROM and have to decompile secmms.apk If your on a odexed ROM you will not find the smali files Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
Ah THANK YOU for this!! I was patiently waiting for this mod.
ibike2much said: Ok being VERY new to this... where are you finding the \SecMms\smali\com\android\mms\ui\MessagingPreferen ceActivity.smali ??? I'm trying to learn this a bit and some guidance would be appreciated. I want to contribute. I appologize but I'm on Rogers with I337UCUAMDJ and the APK attached does not seem to work so I'll mod myself. I only want to eliminate the pop up when screen off. Baby steps. I always donate to XDA contributors so I'm hoping someone can show me this little tweak. Pay it forward. Thanks Click to expand... Click to collapse As said above... You must deodex and decompile to get to that file. Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
akira02rex said: How do you know all this stuff Click to expand... Click to collapse Practice practice practice Nottach said: Cool, I'm going to add a few of these to my Xposed mod, coming soon. Click to expand... Click to collapse Cool beans Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
shoman94 said: Practice practice practice Sent from my SAMSUNG-SGH-I337 using Tapatalk 2 Click to expand... Click to collapse And a lot of soft bricks/apk's crashing Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
Learn how to read logs. Usually logcat will tell you exactly what the error is and where.
shoman94 said: As said above... You must deodex and decompile to get to that file. Sent from my SAMSUNG-SGH-I337 using Tapatalk 2 Click to expand... Click to collapse Thanks all. For now I'll let the experts continue your fine work and gladly continue to generously donate.
After dl happens it sayz not installed so I guess we have to push to systems/apps folders Sent from my SAMSUNG-SGH-I337 using xda app-developers app
azz72 said: After dl happens it sayz not installed so I guess we have to push to systems/apps folders Sent from my SAMSUNG-SGH-I337 using xda app-developers app Click to expand... Click to collapse Or use your favorite root explorer to copy/paste/overwrite the apk. Sent from my SAMSUNG-SGH-I337 using Tapatalk 2
Enabling auto correct feature
hi, the post for Note 2 seems to work fine for S2 as well. If I type "Thw", it corrects it to "The". However, it does not always work for all words. I normally use continous input and hence not really useful to me but it may be useful for some. http://forum.xda-developers.com/showthread.php?t=2093588 For auto-ocrrect, I simply replaced the entire function ".method private processWordSeparator(I[I)V" in the .smali file 'SwiftkeyQwertyLatinInputModule' for S2 (.method to .end) [see attached file for the function]. This code was taken from the apk file attached to the above post by "eclipxe" For long press delay, I simply changed to the following code. ---.method private getLongpressTimoutDelay(I)J .locals 3 .parameter "keyCode" .prologue .line 507 const/16 v0, 0xc8 .line 508 .local v0, delay:I packed-switch p1, switch_data_0 .line 513 const/16 v0, 0xc8 .line 516 :goto_0 int-to-long v1, v0 return-wide v1 .line 510 switch_0 const/16 v0, 0xc8 .line 511 goto :goto_0 .line 508 switch_data_0 .packed-switch -0x7a switch_0 .end packed-switch .end method ------------------ Thanks to "eclipxe" for the original post for Note 2.
[TUTORIAL] [MOD] How to Add Colorey Platlogo
Note: Do at your own risk, I won't take responsibility Required Framework.jar Deodex ROM Colorey Platlogo Apktool or other tool to decompile Instructions: 1) Decompile Your framework.jar 2)Go in /smali/com/android/internal/app/PlatLogoActivity.smali 3)Remove All Lines 4) Add This 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, "com.androidfire.colorey" const-string v4, "com.androidfire.colorey.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 5)Recompile Push to /system/framework 6)Install ColoreyPlatlogo as Normal App 7)Reboot Your Phone 8)Go to Settings\About Section 9)Click 3.x Times on Android Version Shake Your Phone Credits: iamareebjamal
Reserved
Could you give some SS of your work ?
Nice share bro
wanna see first before decompile? try this >adb shell >am start -n com.androidfire.colorey/.PlatLogoActivity Click to expand... Click to collapse
SHA20 said: Nice share bro Click to expand... Click to collapse Don't need To Say Anything just press
AndroidFire said: Don't need To Say Anything just press Click to expand... Click to collapse Ok sir