This is for anyone who need help on this
(Also, so I can refer back to it)
All credit goes to: lidroid ==> Original Guide
Install your framework(s) using apktool
Then decompile LidroidSystemUI.apk and SystemUI.apk
If your device does not have flashlight, add this code. If it does, ignore this code.
Modify AndroidManifest.xml. Add this before </application>:
Code:
<activity android:name="com.lidroid.systemui.quickpanel.FlashlightActivity" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:clearTaskOnLaunch="true" android:configChanges="orientation|keyboardHidden" android:launchMode="singleTask" />
Open: SystemUI/smali/com/android/systemui/status/StatusBarService.smali
Search for: Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
OR
Search for: 0x7f030002
You'll find this:
Code:
const v8, 0x7f030002
invoke-static {p1, v8, v10}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object v4
.end local v4 #qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
check-cast v4, Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
.restart local v4 #qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
goto :goto_0
Modify to:
Code:
const v8, [COLOR="RED"]0x3030003[/COLOR]
invoke-static {p1, v8, v10}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object v4
.end local v4 #[COLOR="RED"]Lcom/lidroid/systemui/quickpanel/PowerWidget;[/COLOR]
check-cast v4, [COLOR="RED"]Lcom/lidroid/systemui/quickpanel/PowerWidget;
.local v4, qsv:Lcom/lidroid/systemui/quickpanel/PowerWidget;
invoke-virtual {v4}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->setupWidget()V[/COLOR]
goto :goto_0
Compile SystemUI.apk with apktool and then Sign it.
Copy SystemUI.apk and QuickPanelSettings.apk to: /system/app
Copy lidroid-res.apk to: /system/framework
Reboot & Enjoy!
Thanks, but if i want add signed app (with edited androidmanifest) to my custom rom my statusbar not work. Any solution ?
If you edit or modify androidmanifest in any way you need to resign the apk. But all system apps and framework need to use the same key, so even if you self-sign the apk or use test keys to sign it, untill you sign all files with the same key it will force close.
coccolino_dbro said:
If you edit or modify androidmanifest in any way you need to resign the apk. But all system apps and framework need to use the same key, so even if you self-sign the apk or use test keys to sign it, untill you sign all files with the same key it will force close.
Click to expand...
Click to collapse
You always need to sign a newly compiled APK or JAR, because the AndroidManifest.xml also changes, even if you didn't modify anything.
Because >> The MD5 and CRC32 of the AndroidManifest.xml changes. Even if there was no changes
Actually when editing system files you copy the original signature. That works only if you don't touch androidmanifest.xml. If you do mess with it, file needs signing with a new key, and all system apps need to be signed with the same key.
Point is, if someone wants to edit androidmanifest.xml of a system file, he needs to resign all other system files with the same key, or else it won't work.
Can i use APKMultiTool to sign all System Apps?
Sent from my GT-S5660 using xda app-developers app
If i use in light orange rom then icon change or not?
Sent from my GT-S5660 using xda premium
DQiB said:
Can i use APKMultiTool to sign all System Apps?
Click to expand...
Click to collapse
Any tool that handles signing would be fine. Yes you can use APKMultiTool
cahidkaya said:
If i use in light orange rom then icon change or not?
Click to expand...
Click to collapse
What icon?
nice work tanx
Which program can I use for decompiling and recompiling framework-res.apk? I'm trying to change battery stats icons and apktool and apk manager can't properly recompile apk - there are errors about translations...
Sent from my GT-S5660 using Tapatalk 2
sangokas said:
Which program can I use for decompiling and recompiling framework-res.apk? I'm trying to change battery stats icons and apktool and apk manager can't properly recompile apk - there are errors about translations...
Sent from my GT-S5660 using Tapatalk 2
Click to expand...
Click to collapse
Nothing is wrong with the tool or program, you have to fix those translation errors.
If I leave them, will something bad happen?
sangokas said:
If I leave them, will something bad happen?
Click to expand...
Click to collapse
If you leave them, you still get the same errors and the apk won't compile.
Send me your recompile log, I'll see the translation errors
There seems to be no errors if i put resources from extracted apk to decompiled framework folder. But its size is few megabytes less than original one. I tried to push it with adb in system, but the phone stucks on galaxy gio logo when booting.
Sent from my GT-S5660 using Tapatalk 2
Hello guys. I have a little problem. I do all right and i got this working but i want to mod the libdroid-res.apk only to switch the color of the tex or to hide the it. I decopiled the libdroid-res.apk and swiched wat i want, recopiled again but now im getting FC on systemUi. It is possible to mod the libdroid-res? Or im doing it wrong? Thanks
Sent from my GT-S5660 using xda app-developers app
Nop all is right ...
It contains all res things about it
Sent from my GT-S5660 using xda app-developers app
DQiB said:
Nop all is right ...
It contains all res things about it
Sent from my GT-S5660 using xda app-developers app
Click to expand...
Click to collapse
So why im getting FC? Or it cant be decopiled?
Sent from my GT-S5660 using xda app-developers app
lol dont decompile it ...
exract it using winrar and theme it a bit
and then repack it using 7zip and compressmode: store
oh and rename .zip in .apk! thats it
Sent from my GT-P1000 using xda app-developers app
MatZ69 said:
Hello guys. I have a little problem. I do all right and i got this working but i want to mod the libdroid-res.apk only to switch the color of the tex or to hide the it. I decopiled the libdroid-res.apk and swiched wat i want, recopiled again but now im getting FC on systemUi. It is possible to mod the libdroid-res? Or im doing it wrong? Thanks
Sent from my GT-S5660 using xda app-developers app
Click to expand...
Click to collapse
Lidroid res apk has been made with a unique moddified apktool wich arent available
Sent from my GT-S5830 using xda premium
DQiB said:
lol dont decompile it ...
exract it using winrar and theme it a bit
and then repack it using 7zip and compressmode: store
oh and rename .zip in .apk! thats it
Sent from my GT-P1000 using xda app-developers app
Click to expand...
Click to collapse
Yh a know that. I only swiched the the images and works fine.
CoolCatGetHome said:
Lidroid res apk has been made with a unique moddified apktool wich arent available
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
Yh but look, white background and white text dond combine x)
Please take a look. Do i can solve the problem?
Sent from my GT-S5660 using xda app-developers app
Related
Some of maybe wonder how to enable overscroll glow in your theme..
since we have many ROM, and only some of them have similar framework structure..
Before that, thanks to Jun Hong and fla.sh for their [KPH & KPN] overscroll glow for SGA
don't forget to thanks him
This guide is for advanced user who have an experience in decompiling and compiling files using apkmanager..
So there it is, how to add overscroll glow manually..
1. Download overscrollglow source from HERE. Thanks to dhiru1602 for the source..
2. Decompile your framework-res.apk and framework.jar
3. Navigate to framework.jar.out\smali\android\widget
4. Backup Your AbsListView.smali and open it with notepad++
5. Copy everything inside overscrollglow source.
6. Open your newly copied AbsListView.smali
7. search for .local v1, layoutInflater:Landroid/view/LayoutInflater;, shortly after that you'll find something like const v3, 0x1090070 replace this with your values from original AbsListView.smali
8. Navigate to framework-res/res/values and open public.xml
9. Back to AbsListView.smali search for .line 666 and 2 lines below that you'll find similar value.
9.1. Now go to your public.xml and search for
Code:
<public type="drawable" name="overscroll_edge" id="
and then you'll find some value like 0x0108023d replace the one in AbsListView.smali with this one. DOn't forget to remove the 0 before 1 (example if you have 0x0108023d then replace it as 0x108023d so the line would look like this :
Code:
.line 666
.local v2, res:Landroid/content/res/Resources;
const v3, 0x108023d
9.2. Back to AbsListView.smali and look for .line 667 and 2 line below that you'll find same thing, replace it with overscroll_glow id in your public.xml
so the line would look like this :
Code:
.line 667
.local v0, edge:Landroid/graphics/drawable/Drawable;
const v3, 0x108023e
10. Save the file, and recompile your framework.jar.out, and then go to /framework.jar.out/build/apk/ and copy classes.dex from there inside your original framework.jar (you can open it using 7zip).
11. To change overscroll glow color, you can use UOT (I think), and modify them manually inside /framework-res/res/drawable-mdpi/ overscroll_edge.png and overscroll_glow.png
Yep, that's all
Let me know if you have hard time doing this..
this is very nice tutorial for everyone.
follow it and there shouldnt be any problems
Nicee tutorial bro ...
Good job
I've posted overscroll glow for KPN and KPH
Sent from my GT-S5830 using XDA App
Aadigoku13 said:
Nicee tutorial bro ...
Good job
Click to expand...
Click to collapse
Jun Hong said:
this is very nice tutorial for everyone.
follow it and there shouldnt be any problems
Click to expand...
Click to collapse
Thanks you both
fla.sh said:
I've posted overscroll glow for KPN and KPH
Sent from my GT-S5830 using XDA App
Click to expand...
Click to collapse
yeah, but this is the manual tutorial, so everyone can use it in every rom..
or do you want to be credited too..?
seilent said:
Thanks you both
yeah, but this is the manual tutorial, so everyone can use it in every rom..
or do you want to be credited too..?
Click to expand...
Click to collapse
i think we should credit him... i made overscroll glow for kph but he made overscroll glow for both kpn and kph.
Jun Hong said:
i think we should credit him... i made overscroll glow for kph but he made overscroll glow for both kpn and kph.
Click to expand...
Click to collapse
Thanks. I'm not the "youngest" developer now
fla.sh said:
Thanks. I'm not the "youngest" developer now
Click to expand...
Click to collapse
well, ur just a few months older than me
which decomplier did u use ?
It's not possible to do with the Brazilian FW, it has nothing inside the framework.jar
FMAranda said:
It's not possible to do with the Brazilian FW, it has nothing inside the framework.jar
Click to expand...
Click to collapse
well try deodexing it with this guide: http://androidguyz.blogspot.com/2011/04/howto-deodex-rom.html
you need to be deodexed to get that overscroll glow
Thanks, now my ROM is deodexed and I was able to get the effect to work, but now, all the system apps are having force close, I can open dialer, messages or any other system app, only user app like Gmail and Facebook. What can I do?
I also lost root =/
I fixed by reflashing the ROM, I'll not try to enable the effect or dedoex my ROM again.
Deodexing firmware should be did when your rom still fresh
seilent said:
Deodexing firmware should be did when your rom still fresh
Click to expand...
Click to collapse
But what's the difference between a fresh installed dialer app and a week old one? I was having fcs with system apps and not user apps. We can't modify system app.
FMAranda said:
But what's the difference between a fresh installed dialer app and a week old one? I was having fcs with system apps and not user apps. We can't modify system app.
Click to expand...
Click to collapse
It means the permission isnt fixed properly... i also had this problem. but when i fixed the permission properly it worked without any force close
Did you fixed using ClockWorkMod or you set manually?
Thanks, you were right, I set the permissions to rw-r--r-- and now everything is working, again thanks!
This is the framework.jar to use with the Brazilian FW KP2, replace using Root Explorer and remember to set the permissions to rw-r--r--, the same permission of framework-res.apk.
Jun Hong said:
It means the permission isnt fixed properly... i also had this problem. but when i fixed the permission properly it worked without any force close
Click to expand...
Click to collapse
ah thanks for explanation, I havent faced such problem before
FMAranda said:
Did you fixed using ClockWorkMod or you set manually?
Thanks, you were right, I set the permissions to rw-r--r-- and now everything is working, again thanks!
This is the framework.jar to use with the Brazilian FW KP2, replace using Root Explorer and remember to set the permissions to rw-r--r--, the same permission of framework-res.apk.
Click to expand...
Click to collapse
Glad it works, will post it later the apk of modded framework.jar
Thanks Dude! But, It s not working with my friend's Ace...It just crashes into bootloop!
thanks ...
your tutorial so much easy to be followed
nice work sir
FOR DEODEXED ROM ONLY
2.3.5 has vibrate icon that many people found annoying
here is little guide that explains how to remove it.
1. Decompile SystemUI.apk with APK Manager
2. Open the file res/vaules/public.xml and search for the ID of stat_sys_ringer_vibrate
Code:
<public type="drawable" name="stat_sys_ringer_silent" id="0x7f020086" />
<public type="drawable" name="stat_sys_ringer_vibrate" id="[b]0x7f020087[/b]" />
<public type="drawable" name="stat_sys_roaming_cdma_0" id="0x7f020088" />
3. Edit the file smali/com/android/systemui/statusbar/policy/StatusBarPolicy.smali
Look for these lines and delete them:*
Code:
const-string v5, "volume"
const v6, [b]0x7f020087[/b]
invoke-virtual {v4, v5, v6, v7}, Landroid/app/StatusBarManager;->setIcon(Ljava/lang/String;II)V
Look for these lines and delete them:*
Code:
const-string v3, "volume"
const v3, [b]0x7f020087[/b]
invoke-virtual {v2, v6, v3, v4}, Landroid/app/StatusBarManager;->setIcon(Ljava/lang/String;II)V
* Pay attention! Replace the bolded text with the ID you found on step 2
the v5 and v3 can be other numbers its depend on your firmware
4. Compile the file and replace classes.dex from place-apk-here-for-modding/unsignedSystemUI.apk to your SystemUI.apk
5. Have fun ;]
Or just use the system UI apk with all the work done floating around somewhere on the forum probably in themes section .
jje
JJEgan said:
Or just use the system UI apk with all the work done floating around somewhere on the forum probably in themes section .
jje
Click to expand...
Click to collapse
Have you tried this way? I overwrote with a systemUI.apk that I took from a KH3 ROM, and I just got stuck in continual force closes...
Sent from my GT-I9100 using XDA App
I think he mean to take modded apk from KI3 and not from previous versions
Duh, you're right, that would probably be what he meant...
Sent from my GT-I9100 using XDA App
i dont really want to delete it can you be more specific. i want it to work the way it used to in older roms. where it only comes up when you have the phone in vibrate only mode.. ie silent but vibrate turned on...
thanks
What I find most funny is that with every new firmware, Samsung do something worse...
first it was remove the SMS theming, so we're stuck with the crap iPhone-esque one (no wonder Apple has a problem with you), then something else, and now this!
Just tried this on KI8 but it is still there... must have done something wrong?
ephumuris said:
Just tried this on KI8 but it is still there... must have done something wrong?
Click to expand...
Click to collapse
its working for me...
instead of const-string v5 its was const-string v1
be sure you delete it and update the classes.dex to your file
Can you post your file, please...
Sent from my GT-I9100 using XDA App
k1sr said:
Can you post your file, please...
Sent from my GT-I9100 using XDA App
Click to expand...
Click to collapse
here is my file:
http://www.multiupload.com/4LK7W8RNZY
tripc1 said:
its working for me...
instead of const-string v5 its was const-string v1
be sure you delete it and update the classes.dex to your file
Click to expand...
Click to collapse
Yeah I saw that it was v1 but still... I'll try again later if you say it does work. Thanks
Ephumuris
tripc1 said:
here is my file:
http://www.multiupload.com/4LK7W8RNZY
Click to expand...
Click to collapse
Hm... That left me with a vansihed statusbar on KI8 I took a backup though, so no problem.
I tried to follow your instructions in OP, but I fall off at step 3... Where the hell is that file located?
Edit: I'm on stock odexed firmware btw.
you need to use baksamli with SystemUI.odex
Sadly way too advanced for me, but thanks anyway
Alternatively you can use S-MOD - look in the themes section... There are other enhancements you might or might not want, but certainly gave me the fix I needed...
You could probably just extract SystemUI from the package and only use that, but I haven't tried it...
Sent from my GT-I9100 using XDA App
Somehow, after decompiling and editing the changes above, I get errors while recompiling it through APK manager.
Anyways, I found a "raw method" to fix this prob for the time being. Opened up the SystemUI.apk from my phone using WinRAR (no apk tools needed).
Browse to: res\drawable-hdpi\
Drag my png attachment into this location, overwriting the vibrate icon file.
Close winRAR (systemUI.apk) and force it back into the phone (I used RootExplorer for this).
This png file is simply a transparent file (looks black to you). You will never see this on your status bar ever again (regardless your vibrate is on or off).
One disadvantage is that the icon is physically on your status bar, so a blank space is always reserved.
Thanks tripc1 for the inspiration.
Cheers.
*edit* The image attached is invisible. just right-click and save image as
just wanted to verbally say thanks to OP for showing me where to look for this stuff. i knew it was in SystemUI but had no clue as to what was changed. smali files just have so many lines of code. cheers!
Little help plz
I followed your instructions, but the vibrate icon is still there. Here is my system.apk from Smabergs KI8, can you do it for me tripc1 ??
Hi, there!
It worked fine, thank you!
Best regards!
All Credits belongs to Lidroid
Please refers to lidroid original thread below
http://forum.xda-developers.com/showthread.php?t=1289896
Notes:
1. need a Computer which is has JDK installed
2. apktool
3. notepad++ / other text editor
4. know how to compile/decompile apk (dont ask me.. just use the search bar.. there a bunch of tuts how to do that)
firstly download this file :
1. lidroid-res
http://forum.xda-developers.com/attachment.php?attachmentid=750399&d=1318661697
2. LidroidSystemUI
http://forum.xda-developers.com/attachment.php?attachmentid=750756&d=1318701014
3. QuickPanelSettings
http://forum.xda-developers.com/attachment.php?attachmentid=751238&d=1318747162
or u can visit lid thread above n download it from #1 post attachment
How to :
1. Download LidroidSystemUI.apk and decompile it with apktool, then you get LidroidSystemUI dir.
2. Pull and Decompile your SystemUI.apk, copy LidroidSystemUI/smali/* into SystemUI/smali.
3. Open SystemUI/smali/com/android/systemui/status/StatusBarService.smali. Find(Ctrl + F) QuickSettingsView, changes codes below
(this code i've got from mr. sileshnair. big thanks for him )
Code:
.local v3, qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
const v7, 0x7f030002
invoke-static {p1, v7, v9}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object v3
.end local v3 #qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
check-cast v3, Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
.line 352
.restart local v3 #qsv:Lcom/android/systemui/statusbar/quickpanel/QuickSettingsView;
with
Code:
const v7, 0x3030003
invoke-static {p1, v7, v9}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;
move-result-object v3
check-cast v3, Lcom/lidroid/systemui/quickpanel/PowerWidget;
.line 352
.local v3, qsv:Lcom/lidroid/systemui/quickpanel/PowerWidget;
invoke-virtual {v3}, Lcom/lidroid/systemui/quickpanel/PowerWidget;->setupWidget()V
4. Compile SystemUI with apktool,
5. open up your SystemUI.apk with winrar or 7zip
6. locate to SystemUI/build/apk/ and find classes.dex onto the winrar/7zip
7. Then Push it into /system/app/
5. push lidroid-res.apk in /system/framework/, push QuickPanelSettings.apk in /system/app, reboot.
More mod :
Originally Posted by [email protected]
To have 6 visible toggles : edit : SystemUI/smali/com/lidroid/systemui/quickpanel/PowerWidget.smali
change :
Code:
.field private static final LAYOUT_SCROLL_BUTTON_THRESHOLD_PORT:I = 0x5
to
.field private static final LAYOUT_SCROLL_BUTTON_THRESHOLD_PORT:I = 0x6
Code:
div-int/lit8 v2, v2, 0x5
to
div-int/lit8 v2, v2, 0x6
Note: i skip editing androidmanfest.xml (cuz when we do this... we should sign all of the apk in /system/app and /system/framework. ..but if u insist.. please see the original thread above how to do that...unless if u dont do editing androidmanifest.xml u'll got FC when pressing Flashlight button. anyway i dont need it.. so its not a big deal)
dont thanks me... please thanks too three man above for their great job
sharing is caring
Nice but its too tough for me to do it
Sent from my GT-S5360 using XDA App
Nice tutorial dude just made a nice bar but a bit complicated though.
Sent from my GT-S5360 using xda premium
u'll never know, unless u try
I will try this. Thanks for sharing dude!
was going to modify the PNG files of this apk,
decompiled all files, recompiled and resigned APK however when i force it into the system status bar gets force close,
deathnotice01 said:
was going to modify the PNG files of this apk,
decompiled all files, recompiled and resigned APK however when i force it into the system status bar gets force close,
Click to expand...
Click to collapse
dont resigned the system .apk unless u must resigned all off the apk file in /system/app and /system/framework
The SystemUI.apk is to be pulled from our SGY unit, right? You forgot to mention this on your tutorial.
bumslayer said:
The SystemUI.apk is to be pulled from our SGY unit, right? You forgot to mention this on your tutorial.
Click to expand...
Click to collapse
Ups .... em sorry ... my bad...
Sent from my GT-S5360 using Tapatalk
Here's my statusbar: I'm using Hybrid 2.1.
Thank you very much for your wonderful tutorial bro! I am one happy camper!
bumslayer said:
Here's my statusbar: I'm using Hybrid 2.1.
Thank you very much for your wonderful tutorial bro! I am one happy camper!
Click to expand...
Click to collapse
Well nice dude thanks to lidroid btw
:-D
rawk
ow this is a nice guide ...im planning to make a ICS status bar from this i wish its not impossible
bumslayer said:
Here's my statusbar: I'm using Hybrid 2.1.
Thank you very much for your wonderful tutorial bro! I am one happy camper!
Click to expand...
Click to collapse
Can you share this bro??
Just follow the tutorial kill3d graciously provided. Worked for me.
Sent from my GT-S5360 using xda premium
Hey OP, apparently this works for deodexed ROMS only, because the SystemUI.apk of the DXLB1 stock ROM does not have a smali folder.
bumslayer said:
Hey OP, apparently this works for deodexed ROMS only, because the SystemUI.apk of the DXLB1 stock ROM does not have a smali folder.
Click to expand...
Click to collapse
Indeed...
Cuz the smali came from came from the classes.dex.
rawk
im having a problem on making the notifcations work, i followed the tutorial, the notification works but the 14 toggles isnt working.. hmm. whats wrong
bumslayer said:
Here's my statusbar: I'm using Hybrid 2.1.
Thank you very much for your wonderful tutorial bro! I am one happy camper!
Click to expand...
Click to collapse
can you upload your SystemUI.apk
I dont understand the tutorial
kimbaduds said:
im having a problem on making the notifcations work, i followed the tutorial, the notification works but the 14 toggles isnt working.. hmm. whats wrong
Click to expand...
Click to collapse
Did u edit the smali code??
Did u miss point 6?
Did u push lidroid-res.apk . Quickpanelsettings.apk . ??
rawk
guys dont forget to change the permissions to the files you will push to the phone as well. just look at the permissions of the other files under /system/apps and /system/framework.
Sent from my GT-S5360 using xda premium
Heres a guide to remove the annoying ongoing wifi notification, theres been guides on how to do it via changing the database but those cant be used by rom devs in there roms, so I decided to look into it. Disclaimer: I am not responsible if for some reason this mod makes your gs3 explode or bust into flames etc.... lol
The mod has been posted on my github the changes can be seen here on this commit Remove Ongoing Wifi Notification
Incase you dont want to go on github ill paste it here.
Decompile SecSettings.apk its located in system/apps/ (I removed the dex then used baksmali to decompile)
Find these 3 lines in com/android/settings/wifi/WifiStatusReceiver.smali
Code:
invoke-virtual {v3, p1, v2, v0, v4}, Landroid/app/Notification;->setLatestEventInfo(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V
sget-object v3, Lcom/android/settings/wifi/WifiStatusReceiver;->mNotification:Landroid/app/Notification;
invoke-virtual {v1, v7, v3}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V
comment them out by adding a # in front of them like so
Code:
#invoke-virtual {v3, p1, v2, v0, v4}, Landroid/app/Notification;->setLatestEventInfo(Landroid/content/Context;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/app/PendingIntent;)V
#sget-object v3, Lcom/android/settings/wifi/WifiStatusReceiver;->mNotification:Landroid/app/Notification;
#invoke-virtual {v1, v7, v3}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V
Recompile using smali put the new dex into the apk and push the file to your phone, set the permissions and reboot.
Bask in the glory of removing the notification
Special Shoutouts to jdbeitz for helping figure this out and testing the changes=D
Who's the man? VLARA IS THE MAN!
thanks dude works like a charm ive been wanting to do this just havent looked into to much so this saves me a ton of time
Glad to know it worked
smartguy044 said:
thanks dude works like a charm ive been wanting to do this just havent looked into to much so this saves me a ton of time
Click to expand...
Click to collapse
Thank you!
Sent from my SAMSUNG-SGH-I747 using xda premium
everyone kept asking me how to do this and i just kept saying it's a smali change somewhere lol i knew it thanks mate!
vlara said:
If you dont want to do the mod heres a stock SecSettings.apk with the mod
Download
Click to expand...
Click to collapse
If I use that modded apk, will it reset any of my system settings?
what exactly does it get rid of?
When connected to Wi-Fi, you would get a "Wi-Fi connected" notification in the drop-down. This gets rid of that.
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
I installed the modded apk in the OP, but it didn't work. I put the app in the system/app folder and changed permissions to rw-r--r--, then rebooted. No luck. What am I doing wrong? Do i need to do something with the SecSettings.odex file?
kingwp1 said:
I installed the modded apk in the OP, but it didn't work. I put the app in the system/app folder and changed permissions to rw-r--r--, then rebooted. No luck. What am I doing wrong? Do i need to do something with the SecSettings.odex file?
Click to expand...
Click to collapse
The file is for deodexed roms.
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
kingwp1 said:
I installed the modded apk in the OP, but it didn't work. I put the app in the system/app folder and changed permissions to rw-r--r--, then rebooted. No luck. What am I doing wrong? Do i need to do something with the SecSettings.odex file?
Click to expand...
Click to collapse
Delete the odex.
im on my phone. expect terrible typos.
Edit...late to the party.
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
howtomen said:
Delete the odex.
im on my phone. expect terrible typos.
Click to expand...
Click to collapse
Agreed, I renamed the .odex file and the notification is no longer present.
Sent from my SAMSUNG-SGH-I747 using xda premium
howtomen said:
Delete the odex.
im on my phone. expect terrible typos.
Click to expand...
Click to collapse
Thank you, sir! Notification gone
Any way to have a CWM version of this?
I'll post one up when I get home from work if no one else has posted one by that time
Sent from my SAMSUNG-SGH-I747 using Tapatalk 2
afropoet said:
Any way to have a CWM version of this?
Click to expand...
Click to collapse
Really.. theres an apk man no need to spoonfeed it to youxD but really if u dont know how to push to system app we have issues
im on my phone. expect terrible typos.
howtomen said:
Really.. theres an apk man no need to spoonfeed it to youxD but really if u dont know how to push to system app we have issues
im on my phone. expect terrible typos.
Click to expand...
Click to collapse
+1
afropoet said:
Any way to have a CWM version of this?
Click to expand...
Click to collapse
Here's a recovery flashable zip with the mod applied to UCALG1.
How to enable water ripple effect and ripple effect toggle.
android.policy.jar
com/android/internal/policy/impl/sec/CircleLockScreen.smali
Find around line 1536
Before:
Code:
.line 543
.local v20, isRippleEffect:Z
:goto_306
if-nez v18, :cond_61f
if-eqz v22, :cond_61f
if-eqz v20, :cond_61f
const/4 v3, 0x1
:goto_30d
After:
Code:
.line 543
.local v20, isRippleEffect:Z
:goto_306
if-nez v18, :cond_61f
[COLOR="Red"]# if-eqz v22, :cond_61f[/COLOR]
if-eqz v20, :cond_61f
const/4 v3, 0x1
:goto_30d
Secsettings.apk - smali edit
com/android/settings/LockScreenSettings.smali
Find around line 1373:
Code:
.line 253
:cond_28b
invoke-virtual {p0}, Lcom/android/settings/LockScreenSettings;->getPreferenceScreen()Landroid/preference/PreferenceScreen;
move-result-object v9
iget-object v10, p0, Lcom/android/settings/LockScreenSettings;->mRippleEffect:Landroid/preference/CheckBoxPreference;
invoke-virtual {v9, v10}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z
After:
Code:
.line 253
:cond_28b
invoke-virtual {p0}, Lcom/android/settings/LockScreenSettings;->getPreferenceScreen()Landroid/preference/PreferenceScreen;
move-result-object v9
iget-object v10, p0, Lcom/android/settings/LockScreenSettings;->mRippleEffect:Landroid/preference/CheckBoxPreference;
[COLOR="Red"]# invoke-virtual {v9, v10}, Landroid/preference/PreferenceScreen;->removePreference(Landroid/preference/Preference;)Z
[/COLOR]
It would be helpful if the change between the two scripts was highlighted by a different color, it would be easier to spot.
Not a lot to ask-------? You have to keep it simple for some of us
TIA.
Pp. :beer::thumbup:
Transmitted from another galaxy with a Jellybean infused P-5113 full of Unicorn porn.
PanchoPlanet said:
It would be helpful if the change between the two scripts was highlighted by a different color, it would be easier to spot.
Not a lot to ask-------? You have to keep it simple for some of us
Click to expand...
Click to collapse
Sorry about that. I missed highlighting the first change. The second one is already there but you have to scroll down a little in the code box to see it.
The only change I see in the after scripts is the number symbol is that correct?
Sent from my SPH-D710 using xda premium
prguzman1978 said:
The only change I see in the after scripts is the number symbol is that correct?
Click to expand...
Click to collapse
That is correct.
The # symbol is the same as commenting out or deleting the entire line. It is my personal preference to comment out the code rather than delete it so I can find the code later in case I need to see or reverse changes. You will see this in other places that I have written guides for.
tdunham said:
That is correct.
The # symbol is the same as commenting out or deleting the entire line. It is my personal preference to comment out the code rather than delete it so I can find the code later in case I need to see or reverse changes. You will see this in other places that I have written guides for.
Click to expand...
Click to collapse
So do we enable the symbol or delete that whole script?
Sent from my SPH-D710 using xda premium
Thanks Td for clarifying that for us. :thumbup::beer:
Pp. :thumbup::beer:
Transmitted from another galaxy with a Jellybean infused P-5113 full of Unicorn porn.
prguzman1978 said:
So do we enable the symbol or delete that whole script?
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Don't delete the whole script, either comment out or remove the lines that are highligted in the OP. Effectively, using a" # " at the beginning of the line and deleting the line are the same, but one is easily reversible.
bigj231 said:
Don't delete the whole script, either comment out or remove the lines that are highligted in the OP. Effectively, using a" # " at the beginning of the line and deleting the line are the same, but one is easily reversible.
Click to expand...
Click to collapse
Do apply this with root explorer or adb if with root explorer where's the path can't find.
Sent from my SPH-D710 using xda premium
prguzman1978 said:
Do apply this with root explorer or adb if with root explorer where's the path can't find.
Click to expand...
Click to collapse
This requires a working knowledge of decompiling/compiling and editing the smali classes.dex files contained in android.policy.jar file. It also requires that the full Java suite be installed. Also required for further apk editing is the full android SDK suite and another tool/software to decompile/compile the apk portion of apps.
These guides were written for developers to add these mods themselves so they can see how the source code is modified to make the changes. It's harder than it sounds but you can see it involves more than just a text editor and root/adb explorer method.
tdunham said:
This requires a working knowledge of decompiling/compiling and editing the smali classes.dex files contained in android.policy.jar file. It also requires that the full Java suite be installed. Also required for further apk editing is the full android SDK suite and another tool/software to decompile/compile the apk portion of apps.
These guides were written for developers to add these mods themselves so they can see how the source code is modified to make the changes. It's harder than it sounds but you can see it involves more than just a text editor and root/adb explorer method.
Click to expand...
Click to collapse
Okay I have java androidSDK and apktool I'm going to do some research. And it does require work. Would it be easy if someone upload a modified secsettings apk and replace it.
Sent from my SPH-D710 using xda premium
prguzman1978 said:
Okay I have java androidSDK and apktool I'm going to do some research.
Click to expand...
Click to collapse
Ok good. You also need to add Java to the environment variables in computer/properties/advanced settings. Let me get some screenshots. Also, I have a very easy method to decompile/compile classes.dex I will zip up for you to try.
You need to edit the path to where java installs if yours is different than the screenshots. The 'Class' I think is added manually I can't remember if it is there before the edit. The environment variable path for java is added to the end of the existing path. This is windows 7 screenshots.
Attached is what I use to decompile classes.dex. I put classes.dex in the same folder as the files, run the decompile batch file and it creates a folder called 'classes' with the decompiled code. Make my changes and run the compile batch file and it creates a new file (if there are no errors) called new-classes.dex that you have to rename to classes.dex before reinserting into the jar or apk file.
Also, you know this mod is already included in most custom roms and also in my all in one mod for GA10/FL16.
tdunham said:
Ok good. You also need to add Java to the environment variables in computer/properties/advanced settings. Let me get some screenshots. Also, I have a very easy method to decompile/compile classes.dex I will zip up for you to try.
You need to edit the path to where java installs if yours is different than the screenshots. The 'Class' I think is added manually I can't remember if it is there before the edit. The environment variable path for java is added to the end of the existing path. This is windows 7 screenshots.
Attached is what I use to decompile classes.dex. I put classes.dex in the same folder as the files, run the decompile batch file and it creates a folder called 'classes' with the decompiled code. Make my changes and run the compile batch file and it creates a new file (if there are no errors) called new-classes.dex that you have to rename to classes.dex before reinserting into the jar or apk file.
Also, you know this mod is already included in most custom roms and also in my all in one mod for GA10/FL16.
Click to expand...
Click to collapse
Wow Tdunham thanks homey, you came through.
Sent from my SPH-D710 using xda premium
prguzman1978 said:
Wow Tdunham thanks homey, you came through.
Click to expand...
Click to collapse
Sure no problem. I usually stay out of offering programming or flashing advice but you said you already had Java and SDK so I thought I'd shove you in the proper direction. Also, I use Winrar to extract or insert files into the apk and jar files. Winrar will not know what a jar file is but you can right click and 'open-as' (every time unfortunately, because .jar file extension needs to stay associated with java). The apk files you can associate the .apk filetype with winrar when you first open it and it asks you what you want to open the file with. From then on, any .apk you open will open just like a normal zip file.
tdunham said:
Sure no problem. I usually stay out of offering programming or flashing advice but you said you already had Java and SDK so I thought I'd shove you in the proper direction. Also, I use Winrar to extract or insert files into the apk and jar files. Winrar will not know what a jar file is but you can right click and 'open-as' (every time unfortunately, because .jar file extension needs to stay associated with java). The apk files you can associate the .apk filetype with winrar when you first open it and it asks you what you want to open the file with. From then on, any .apk you open will open just like a normal zip file.[/QUOTE\]
Nice i already set my path and im good to go homey!
---------- Post added at 10:48 PM ---------- Previous post was at 10:18 PM ----------
It Creates a folder name classout should i rename it to classes?
Click to expand...
Click to collapse
prguzman1978 said:
It Creates a folder name classout should i rename it to classes?
Click to expand...
Click to collapse
No, then you won't be able to recompile it later.
Sent from my SPH-D710 using xda premium
tdunham said:
No, then you won't be able to recompile it later.
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Okay one mistake i associated the circlelockscreen.smaili with winrar and i cant return it back to its original file format any idea how to?
prguzman1978 said:
Okay one mistake i associated the circlelockscreen.smaili with winrar and i cant return it back to its original file format any idea how to?
Click to expand...
Click to collapse
Right/click open with, choose default program or Shift right/click same thing.
Something along those lines. And you should be using Notepad+ to edit anything in android too.
tdunham said:
Right/click open with, choose default program or Shift right/click same thing.
Something along those lines. And you should be using Notepad+ to edit anything in android too.
Click to expand...
Click to collapse
Im finished just rebooting!!! Its done and all thanks to you homey!!!
So can we just search for the code then delete and past new one? or should we delete highlighted red line?