Hi all,
is there a way to disable FLAG_SECURE on Nougat?
Before update from Android 6 I used Xposed module to do that, but I need a way to disable it on Nougat untill Xposed will be relised.
Thanks for attention
I need the answer aswell
I'm looking for the same thing, everything I tried so far didn't work.
Even with Root it seems to be quite hard to overcome this FLAG_SECUE.
Only way to allow taking screenshots and record video with apps that have FLAG_SECURE in Android 7.0+ (Nougat) is to modify and remove LayoutParams.FLAG_SECURE instances, and recompile the apk to remove the restraint. I don't think FLAG_SECURE can be globally disabled in Nougat yet.
Resources:
https://commonsware.com/blog/2016/06/06/psa-flag-secure-window-leaks.html
https://commonsware.com/blog/2012/01/16/secure-against-screenshots.html
https://developer.android.com/reference/android/view/WindowManager.LayoutParams.html
https://github.com/appium/android-a...um/android/apis/app/SecureWindowActivity.java
https://reverseengineering.stackexc...repackaging-apk-file-using-baksmali-and-smali
Ok guys, i found the solution !!!
Thanks to @fOmey for your help to find in witch file and smali i needed to look [emoji6]
Here we go :
services.jar/smali/com/android/server/wm/WindowManagerSmali
Code:
.method isSecureLocked(Lcom/android/server/wm/WindowState;)Z
Replace complete method by this :
Code:
.method isSecureLocked(Lcom/android/server/wm/WindowState;)Z
.locals 4
const/4 v0, 0x0
return v0
.end method
That's it.
edzamber said:
Ok guys, i found the solution !!!
Thanks to @fOmey for your help to find in witch file and smali i needed to look [emoji6]
Here we go :
services.jar/smali/com/android/server/wm/WindowManagerSmali
Code:
.method isSecureLocked(Lcom/android/server/wm/WindowState;)Z
Replace complete method by this :
Code:
.method isSecureLocked(Lcom/android/server/wm/WindowState;)Z
.locals 4
const/4 v0, 0x0
return v0
.end method
That's it.
Click to expand...
Click to collapse
Very Nice!
Does services.jar belongs to target apk Itself??
Ive tried to decompile a specific apk to Disable flag secure on it (not global), but i Cant find any file to edit those strings you mentioned.
Do you have any idea on where can i find them?
renganyen said:
Very Nice!
Does services.jar belongs to target apk Itself??
Ive tried to decompile a specific apk to Disable flag secure on it (not global), but i Cant find any file to edit those strings you mentioned.
Do you have any idea on where can i find them?
Click to expand...
Click to collapse
I found it at /system/framework/services.jar
However, I don't see the targeted location in mine. Just classes.dex and MANIFEST.MF
edzamber said:
Ok guys, i found the solution !!!
Thanks to @fOmey for your help to find in witch file and smali i needed to look [emoji6]
Here we go :
services.jar/smali/com/android/server/wm/WindowManagerSmali
Code:
.method isSecureLocked(Lcom/android/server/wm/WindowState;)Z
Replace complete method by this :
Code:
.method isSecureLocked(Lcom/android/server/wm/WindowState;)Z
.locals 4
const/4 v0, 0x0
return v0
.end method
That's it.
Click to expand...
Click to collapse
there will be some way to do it with a patch like lcpatch?
Kayjay0x said:
I found it at /system/framework/services.jar
However, I don't see the targeted location in mine. Just classes.dex and MANIFEST.MF
Click to expand...
Click to collapse
Deodex Services.jar first kid?
Anyone have a way to do this in Android 9.0 PIE for S9+ ?
bobfrantic said:
Anyone have a way to do this in Android 9.0 PIE for S9+ ?
Click to expand...
Click to collapse
Hi
This working also on S9 Pie services.jar
https://forum.xda-developers.com/showthread.php?p=73802410
edzamber said:
Hi
This working also on S9 Pie services.jar
https://forum.xda-developers.com/showthread.php?p=73802410
Click to expand...
Click to collapse
Thanks for the response but just a slight bit of confusion. Inside my Services.jar it is empty other than the META-INF folder. See screenshot. where is classes.dex? lol
Wait, now I remember, I need to deodex the file(s) in framework. Any recomendation on a program to deodex pie by chance?
bobfrantic said:
Thanks for the response but just a slight bit of confusion. Inside my Services.jar it is empty other than the META-INF folder. See screenshot. where is classes.dex? lol
View attachment 4711282
Wait, now I remember, I need to deodex the file(s) in framework. Any recomendation on a program to deodex pie by chance?
Click to expand...
Click to collapse
I use SuperR Kitchen paid but this tool working as well
https://forum.xda-developers.com/android/general/toad-source-android-deodexer-t3848307
edzamber said:
I use SuperR Kitchen paid but this tool working as well
https://forum.xda-developers.com/android/general/toad-source-android-deodexer-t3848307
Click to expand...
Click to collapse
Thanks, I had discovered that program and yes it deodexed the framework ok. I extrated classes.dex and tried to baksmali it to get the file but got error. Using latest versions from jesusfreke so trying to figure that out now lol. This stuff was so much easier way back with s advance days.
bobfrantic said:
Thanks, I had discovered that program and yes it deodexed the framework ok. I extrated classes.dex and tried to baksmali it to get the file but got error. Using latest versions from jesusfreke so trying to figure that out now lol. This stuff was so much easier way back with s advance days.
Click to expand...
Click to collapse
What error do you have ?
edzamber said:
What error do you have ?
Click to expand...
Click to collapse
This is the error when trying to decompile the classes.dex
C:\android\java>java -jar baksmali.jar -o classout/ classes.dex
Exception in thread "main" com.beust.jcommander.MissingCommandException: Expected a command, got -o
at com.beust.jcommander.JCommander.parseValues(JCommander.java:725)
at com.beust.jcommander.JCommander.parse(JCommander.java:304)
at com.beust.jcommander.JCommander.parse(JCommander.java:287)
at org.jf.baksmali.Main.main(Main.java:90)
C:\android\java>
bobfrantic said:
This is the error when trying to decompile the classes.dex
C:\android\java>java -jar baksmali.jar -o classout/ classes.dex
Exception in thread "main" com.beust.jcommander.MissingCommandException: Expected a command, got -o
at com.beust.jcommander.JCommander.parseValues(JCommander.java:725)
at com.beust.jcommander.JCommander.parse(JCommander.java:304)
at com.beust.jcommander.JCommander.parse(JCommander.java:287)
at org.jf.baksmali.Main.main(Main.java:90)
C:\android\java>
Click to expand...
Click to collapse
Use last TMA (tickle my android) to decompil/recompil
edzamber said:
Use last TMA (tickle my android) to decompil/recompil
Click to expand...
Click to collapse
Ok, will give it a try, thanks..
Edit:
SUCCESS!! Thanks very much.
help
Hi, could some kind soul post a step by step instructions how to do this? I am trying to disable FLAG_SECURE on AVD emulator (running on Ubuntu 18.04)
I tried adb pull /system/framework/services.jar but I only got a file which is 316 bytes, and not sure what should I do with that file after that anyway.
Thanks!
Hi All.
For all the inexperienced users/beginners, there are a few ways to achieve this:
1) https://forum.xda-developers.com/apps/magisk/module-smali-patcher-0-7-t3680053 - Secure flag - Allow screenshots/screensharing in secure apps.
2) https://github.com/veeti/DisableFlagSecure - Disable flag secure system wide using Xposed Framework.
3) Post 8 in this thread (https://forum.xda-developers.com/showpost.php?p=75323166&postcount=8)
Let me know how you get on Android family. Peace!
Related
Hey Community,
Was wondering if someone could point me in the direction to find the clock on the dragdown bar on home screen. I want to change the color and can't seem to find it.
Thanks!
madguitarist63 said:
Hey Community,
Was wondering if someone could point me in the direction to find the clock on the dragdown bar on home screen. I want to change the color and can't seem to find it.
Thanks!
Click to expand...
Click to collapse
Do you mean the notification bar clock color??
Mr. Apocalypse said:
Do you mean the notification bar clock color??
Click to expand...
Click to collapse
Yes sir. Do you know where I can find the file?
madguitarist63 said:
Yes sir. Do you know where I can find the file?
Click to expand...
Click to collapse
It's in the services.jar
pull /system/framework/services.jar
.....you need to open services.jar with WinRAR or 7-Zip..
take the classes.dex from it & put it in your android-sdk-windows\tools\ folder
Run the following command from the current directory
Code:
java -jar baksmali.jar -o classout/ classes.dex
Then go to classout\com\android\server\status\StatusBarIcon.smali...open it with Notepad++
Find line 34 and you'll see somthing like:
Code:
const/4 v7, -0x1
Change it to
Code:
const v7, 0xff(hex code here)
For example: for red it would be const v7, 0xffff0000
Put your color hex code after 0xff
Save your changes in Notepad++, then go back into the command prompt
Code:
java -Xmx512M -jar smali.jar classout/ -o new-classes.dex
Rename new-classes.dex to classes.dex
Put it back in the services.jar...and push it back to /system/framework
Reboot phone, NOTE: Initial boot will take a while....this is normal....if you need help...PM me
Hi Guys,
I'm trying to disable the increasing ring by modding the Phone.apk (Odex rom).
I decompiled Phone.apk, but I can't find the file (Ringer$1.smali) that contains the line that should be deleted -
Code:
invoke-virtual {v1, v3, v5, v4}, Landroid/media/AudioManager;->setStreamVolume(III)V
I can't even find the 'smali\com\android\phone\' folder.
I also want to add the option to record the calls.
Can some one guide me to it ?
Thanks!
Is that not already available .
Disable increase ring tone and recording are both in some custom roms .
jje
Yeah, You're right, but I have a Carrier rom that I want to keep.
So I did some more reading on the subject...
As I understand, I have to deodex the Phone.odex, to get the Classes.dex, but when I try to decompile it using baksmali tool, I get errors...
I did make Java&apktool system paths, and I pulled the whole framwork folder from the phone.
I used this command -
Code:
java -jar baksmali.jar -x C:\...\Phone.odex -d ../framework -o C:\...\Phone
Opera Mobile is a nice browser and to my knowleage the only one that can turn off animated gifs. On the Streak Mini opera mobile has a clumsy interface: With the big buttons at the top and the bottom, there is less space for the content.
Basically you have what you see in attachment one.
When you start opera on the Streak 7 or another devices with 800x480 you will get the sleek tablet mode interface. Like in attachment two.
What happend? Opera Inc. deliberately turns tablet mode off for the model name "Dell Streak"
Here I will show how circumvent this.
Prerequisites:
adb and a connection to your device
java
aapt from android-sdk
apktool.jar
signapk.jar with testkey.x509.pem and testkey.pk8 (google for them, or create you own)
minimal commandline skills, how to edit text files
20 MiB space in a temporary directory
Make a nandroid-backup before you tinker around!
Recipe:
Fetch the opera-apk from your device with adb pull /data/app/com.opera.browser-1.apk
Sometimes it is -2 or -3. Have a look with adb shell ls /data/app/com.opera.browser*
Decompile the apk with java -jar apktool.jar d -r com.opera.browser-1.apk com.opera.browser
You will find the model name "Dell Streak" inside "com.opera.browser/smali/com/opera/common/CommonUtils$2.smali"
and "com.opera.browser/smali/com/opera/common/CommonUtils$1.smali"
Basically these files define who should see tablet mode, and who not.
Edit "com.opera.browser/smali/com/opera/common/CommonUtils$2.smali" and remove the lines
Code:
const-string v0, "Dell Streak"
invoke-virtual {p0, v0}, Lcom/opera/common/CommonUtils$2;->add(Ljava/lang/Object;)Z
Edit "com.opera.browser/smali/com/opera/common/CommonUtils$1.smali" and add the following line lines just before "Dell Streak 7"
Code:
const-string v0, "Dell Streak"
invoke-virtual {p0, v0}, Lcom/opera/common/CommonUtils$1;->add(Ljava/lang/Object;)Z
While at it, we should remove the unused libraries in "com.opera.browser/lib/armeabi". Delete the directory (leave armeabi-v7a alone!) and later gain 8 MiB space on your streak /data partition.
Now we compile the changes into an (unsigned) apk with java -jar apktool.jar b com.opera.browser com.opera.browser_unsign.apk
Sign the apk with java -jar signapk.jar testkey.x509.pem testkey.pk8 com.opera.browser_unsign.apk com.opera.browser.apk
We can't update the opera-apk on the device, because we changed the signing key. That is no problem as long you have no preferences changed in opera or didn't made bookmarks. So it is time to backup your opera configuration with adb shell tar cf /data/local/tmp/backup.tar data/data/com.opera.browser/opera
Now we uninstall the old opera apk with adb uninstall com.opera.browser
... and install the modified apk with adb install com.opera.browser.apk
Last step is to get back our old configuration with adb shell tar xf /data/local/tmp/backup.tar
I'm not so ever responsible of any damages you create while trying to reproduce this guidance.
Have fun,
hunderteins
Hi dude.. Really a very nice work looks great.. Can you upload the final apk file alone..? since I m not very keen with this work please.. B. R
i lyk ur way :good:
but der is an easy way too just edit ur build.prop and change the following line...reboot !!!
ro.product.model=GT-N7000
ro.product.manufacturer=samsung
and we can get updates...
MadHaker said:
i lyk ur way :good:
but der is an easy way too just edit ur build.prop and change the following line...reboot !!!
ro.product.model=GT-N7000
ro.product.manufacturer=samsung
and we can get updates...
Click to expand...
Click to collapse
well, but after that, every app thinks you are on a note, expecting 800 x 1280 pixels, 8MP or an other GPU. Don't know in what trouble you will run into with that hack.
Best way would be an app dependant way to fake getprop.
For example intercept property_get() in /system/lib/libcutils.so - would be nice for the market, too. Later, when I have a lot of time ...
"intercept property_get() in /system/lib/libcutils.so" -
i'm in!
(f.e. dpi, etc.)
No probs in applying the patch, dumb question - can opera top bar be removed?
_n0p_ said:
No probs in applying the patch, dumb question - can opera top bar be removed?
Click to expand...
Click to collapse
so how soon will this patch become available to us?
Did you mean a patched apk? I can share mine.
That would be good a patched apk
Sent from my Dell Streak using xda premium
http://n0p.8bit.fm/streak/com.opera.browser-1.apk
Cheers _nop_
Sent from my Dell Streak using xda premium
Thank hunderteins, the OP - it's his find.
Thank hunderteins
Thanks button pressed
Sent from my Dell Streak using xda premium
@hunderteins Have you an idea how to change the Nexus 10 to use the phone mode? The icons are so tiny and it is difficult to use them.
I tried to move the lines for
const-string v0, "Full Android"
from the one file to the other but without success.
I think I need to know what identifier is used for my Nexus 10...
EDIT: Just found it out! Add below
Code:
const-string v0, "Dell Streak"
this
Code:
const-string v0, "Nexus 10"
invoke-virtual {p0, v0}, Lcom/opera/common/r;->add(Ljava/lang/Object;)Z
:laugh:
is anyone still here?
I don't use opera browser but a friend wants to use opera phone mode on his Nexus 7. I have already dicompiled the apk but I can't find the files mentioned in first post to edit them.
is something changed in the latest versions of opera? shouldn't find them just by browsing the folders or I need eclipse to do it?
sorry for the noob question
thanks
psybill said:
is anyone still here?
is something changed in the latest versions of opera?
Click to expand...
Click to collapse
I expected this to be configurable with about:config by now.
Well opera uses code obfuscating now.
That means every symbols in a new release is renamed. In this 12.1.4, versionCode="1301080958"
I'm just snooping, you will find smali/com/opera/common/CommonUtils$2.smali renamed to
smali/com/opera/common/I.smali and smali/com/opera/common/CommonUtils$1.smali is renamed to
smali/com/opera/common/H.smali.
You can find this files on other releases of opera with
$ grep -r 'Dell Streak' smali/
on a linux command prompt. I know windows can search insides files, too. But find that by yourself.
Have fun,
hunderteins
hunderteins said:
I expected this to be configurable with about:config by now.
Well opera uses code obfuscating now.
That means every symbols in a new release is renamed. In this 12.1.4, versionCode="1301080958"
I'm just snooping, you will find smali/com/opera/common/CommonUtils$2.smali renamed to
smali/com/opera/common/I.smali and smali/com/opera/common/CommonUtils$1.smali is renamed to
smali/com/opera/common/H.smali.
You can find this files on other releases of opera with
$ grep -r 'Dell Streak' smali/
on a linux command prompt. I know windows can search insides files, too. But find that by yourself.
Have fun,
hunderteins
Click to expand...
Click to collapse
thanks for your help. you ΄re right about the file names. I'll have it in mind for the next version update.
But first I have to make this version work, and still didn't make it.
I had no problems with decompile, complie and sign the apk, but I know nothing about java files and I get fc's after installation. I want to do what billyx1 says in the post above, phone mode in tablet.
Can anyone care to share apk of latest modded version? The link shared by n0p doesn't work anymore.
Sent from my Dell Streak using Tapatalk 2
ammujee said:
Can anyone care to share apk of latest modded version? The link shared by n0p doesn't work anymore.
Sent from my Dell Streak using Tapatalk 2
Click to expand...
Click to collapse
Install Opera browser beta from Google play. It has tablet mode interface
ryan.nguyen said:
Install Opera browser beta from Google play. It has tablet mode interface
Click to expand...
Click to collapse
Thanks! I know that already, but I found that a bit too heavy for my ageing Streak.
Sent from my Dell Streak using Tapatalk 2
Since removing the extra "USB Connected" notification from my ROM, I've been getting a lot of questions about how to remove that notification so I thought I'd put the answer in one place. This is a simple mod (one once you know where to find it). As usual, this post assumes knowledge of decompiling and recompiling.
First, decompiled Settings.apk. Once decompiled, open com\android\settings\PSService.smali and find the SetUSBNotification method and do this:
Before:
Code:
.method public static SetUSBNotification(Landroid/content/Context;Z)V
.locals 12
.parameter "context"
.parameter "visible"
.prologue
const/4 v0, 0x1
After:
Code:
.method public static SetUSBNotification(Landroid/content/Context;Z)V
.locals 12
.parameter "context"
.parameter "visible"
.prologue
[COLOR="Red"]goto :goto_0[/COLOR]
const/4 v0, 0x1
Recompile and you're good to go. FYI, the other notification (the one where you get the selection for disk drive) is in a similar method in com\android\settings\SmartNSUtility.smali. You should leave that one alone though because that's the one that allows you to switch to disk drive mode.
Mike
Taking post 2 just in case.
Awesome thanks
Sent from my EVO using xda premium
your a beast mike!:good:
this guy is a frikkin genius
NICE!! Thanks Mike
nice, thx mike!
Mikey is at it again! Awesome. I'm excited that the LTE supports OTG.
Thanx for the info. By any chance you know how to remove the annoying data connect message that pops up when either wifi connects or when data disconnects.
Sent from my A500 using XDA Premium HD app
Nice. I've been fiddling around in the sysUI to get the old notification of usb back. Its a headach.
Sent from my EVO using xda app-developers app
Hey mikey. I think this edit wont work. the original code is changed in 3.16 base. instead of const/4 v0, 0x1, its const/4 v11, 0x0
PuRE IVIonztah said:
Hey mikey. I think this edit wont work. the original code is changed in 3.16 base. instead of const/4 v0, 0x1, its const/4 v11, 0x0
Click to expand...
Click to collapse
It'll still work, just put the 'goto :goto_0' abouve the 'const/4 v11, 0x0'
PuRE IVIonztah said:
Hey mikey. I think this edit wont work. the original code is changed in 3.16 base. instead of const/4 v0, 0x1, its const/4 v11, 0x0
Click to expand...
Click to collapse
Should still work: the goto jumps around all that anyway.
Mike
Sent from my EVO using xda premium
mikeyxda said:
Should still work: the goto jumps around all that anyway.
Mike
Sent from my EVO using xda premium
Click to expand...
Click to collapse
Vinchenzop said:
It'll still work, just put the 'goto :goto_0' abouve the 'const/4 v11, 0x0'
Click to expand...
Click to collapse
Thanks guys, I did try it anyway and i get errors thrown at me in vts when recompiling.
PuRE IVIonztah said:
Thanks guys, I did try it anyway and i get errors thrown at me in vts when recompiling.
Click to expand...
Click to collapse
I'm getting an error too....
Code:
C:\Android\baksmali1.4.1>java -Xmx1024M -jar smali.jar smali/ -o classes.dex
smali\com\android\settings\PSService.smali[2939,7] Label "goto_0" is not defined
.
smali\com\android\settings\PSService.smali[2940,4] The address offset cannot be
0. Use goto/32 instead.
PuRE IVIonztah said:
Thanks guys, I did try it anyway and i get errors thrown at me in vts when recompiling.
Click to expand...
Click to collapse
O.M.J said:
I'm getting an error too....
Code:
C:\Android\baksmali1.4.1>java -Xmx1024M -jar smali.jar smali/ -o classes.dex
smali\com\android\settings\PSService.smali[2939,7] Label "goto_0" is not defined
.
smali\com\android\settings\PSService.smali[2940,4] The address offset cannot be
0. Use goto/32 instead.
Click to expand...
Click to collapse
Worked fine for me...
Here is the modded Settings.apk from the latest base with this mod. It removes the 'USB connected' as described in the first post.
http://d-h.st/3Sg
Vinchenzop said:
Here is the modded Settings.apk from the latest base with this mod. It removes the 'USB connected' as described in the first post.
http://d-h.st/3Sg
Click to expand...
Click to collapse
Thanks a lot Vin!
Sent from my EVO using Xparent Purple Tapatalk 2
I've been trying to add this mod to the new 3.17 base and I'm getting the afore mentioned error:
Code:
C:\Android\baksmali1.4.1>java -Xmx1024M -jar smali.jar smali/ -o classes.dex
smali\com\android\settings\PSService.smali[2939,7] Label "goto_0" is not defined
.
smali\com\android\settings\PSService.smali[2940,4] The address offset cannot be
0. Use goto/32 instead.
I realize I could probably just use the same Settings.apk or the same PSService.smali, from 3.16, but there are some differences in the code and I want to keep the 3.17 update files as they are if possible.
Did anyone ever figure out how to avoid/fix this error?
sharkie405 said:
I've been trying to add this mod to the new 3.17 base and I'm getting the afore mentioned error:
Code:
C:\Android\baksmali1.4.1>java -Xmx1024M -jar smali.jar smali/ -o classes.dex
smali\com\android\settings\PSService.smali[2939,7] Label "goto_0" is not defined
.
smali\com\android\settings\PSService.smali[2940,4] The address offset cannot be
0. Use goto/32 instead.
I realize I could probably just use the same Settings.apk or the same PSService.smali, from 3.16, but there are some differences in the code and I want to keep the 3.17 update files as they are if possible.
Did anyone ever figure out how to avoid/fix this error?
Click to expand...
Click to collapse
That's the error I was getting before. Tey kdiffing the files
Sent from my EVO using Tapatalk 4
Hi All... This is my first theming guide
This guide is for set Transparent Statusbar, Transparent Notification Drawer and Change Clock Colour
NOTE ONLY FOR CM10
Having a problem? You can ask me in this thread :good:
Things you will need
PC or Laptop
apktool, zipalign and others
WinRAR or WinZip
Notepad++
Patience!
Click to expand...
Click to collapse
So, lets begin..
INSTALLING APKTOOL AND OTHER TOOLS
STEP 1
You must install apktool to your PC from HERE and other tools HERE
Extract it to a same directory same as the screenshot below
Then, copy cmd from Windows/System32 Directory (ex. C:\Windows\System32) and move it your apktool directory
STEP 2
Download zipalign from HERE, move it to Windows Directory (ex. C:\Windows)
GUIDE FOR TRANSPARENT NOTIFICATION DRAWER
STEP 1
Copy your framework-res.apk from system/framework and SystemUI.apk from /system/app/ then place it in your apktool directory
STEP 2
Open cmd in your apktool directory, type
Code:
apktool if framework-res.apk
and
Code:
apktool if SystemUI.apk
then
Code:
apktool d SystemUI.apk
STEP 3
Go to SystemUI\smali\com\android\system ui\statusbar\phone
Open PhoneStatusBar$FastColorDrawable.smali with Notepad++
Go to this and edit
Code:
# virtual methods
.method public draw(Landroid/graphics/Canvas;)V
.locals 2
.parameter "canvas"
.prologue
.line 2856
[COLOR="Red"]iget v0, p0, Lcom/android/systemui/statusbar/phone/PhoneStatusBar$FastColorDrawable;->mColor:I[/COLOR]
sget-object v1, Landroid/graphics/PorterDuff$Mode;->SRC:Landroid/graphics/PorterDuff$Mode;
invoke-virtual {p1, v0, v1}, Landroid/graphics/Canvas;->drawColor(ILandroid/graphics/PorterDuff$Mode;)V
.line 2857
return-void
.end method
to this
Code:
# virtual methods
.method public draw(Landroid/graphics/Canvas;)V
.locals 2
.parameter "canvas"
.prologue
.line 2856
[COLOR="Red"]const v0, (your transparency values; look at [URL="http://forum.xda-developers.com/showpost.php?p=40251761&postcount=4"]post #4[/URL])[/COLOR]
sget-object v1, Landroid/graphics/PorterDuff$Mode;->SRC:Landroid/graphics/PorterDuff$Mode;
invoke-virtual {p1, v0, v1}, Landroid/graphics/Canvas;->drawColor(ILandroid/graphics/PorterDuff$Mode;)V
.line 2857
return-void
.end method
and save
STEP 4
Open cmd in your apktool directory, type
Code:
apktool b SystemUI al.apk
then open al.apk and SystemUI.apk with WinRAR, drag META-INF folder and AndroidManifest.xml from SystemUI.apk to al.apk same as the screenshot below, when it ask to compress click OK
STEP 5
Open cmd in your apktool directory, type
Code:
zipalign -v 4 al.apk SystemUImod.apk
STEP 6
Move your SystemUImod.apk to your phone, rename to SystemUI.apk, move it to /system/app/ and change permission to rw-r--r--
Then reboot
GUIDE FOR STATUSBAR COLOR W/ TRANSPARENCY
STEP 1
Copy your android.policy.jar from /system/framework/ and place it in your apktool directory
Download phonewindowmanager.zip in the attachment below and extract it to your apktool directory
STEP 2
Open cmd in your apktool directory, type
Code:
apktool d android.policy.jar
STEP 3
Go to android.policy.jar.out\smali\com\android\internal\policy\impl
Replace your PhoneWindowManager.smali with my PhoneWindowManager.smali
STEP 4
Open cmd in your apktool directory, type
Code:
apktool b android.policy.jar.out
Go to android.policy.jar.out\dist, move android.policy.jar to your phone, move to /system/framework/ and set permission rw-r--r--
Then reboot
STEP 5
Download xposed framework here, install, open it and tap install/update, then reboot
Download tweakbox here, install, Open xposed installer, tap on modules and enable tweakbox, then reboot
Open tweakbox, tap on statusbar, enable background color and change color/transparency whatever you want
Then reboot
TRANSPARENCY VALUES
0x00000000 (100%)
0x88000000 (75%)
0x7f000000 (50%)
0xd8000000 (25%)
0xee000000 (15%)
Click to expand...
Click to collapse
OFF TOPIC
What's that theme you use at your PC screenshot?
Metro Tile Skin Pack for Windows7
What's that wallpaper you use at your phone?
HERE
Click to expand...
Click to collapse
CREDITS TO
powerpoint45 for his compiling guide HERE
reaper61616 for his transparent notification drawer guide HERE
Adi_ai****eru for his android.policy.jar transparent statusbar guide HERE
galaxynote2 for his transparent statusbar guide HERE
Hmmm...screenshot of the transparent status bar/dropdown drawer would make this this guide more complete
iPusak Gaoq™ said:
Hmmm...screenshot of the transparent status bar/dropdown drawer would make this this guide more complete
Click to expand...
Click to collapse
Okay, that's good idea!
via XDA for Timescape™
hey friend thanks a lot for the post. today i have learned lot and managed to get my status bar with transparent.
but TRANSPARENT NOTIFICATION DRAWER didnt work from this part
apktool b SystemUI al.apk.
i couldnt find SystemUI al.apk. also pls tell when we change the value to const v0, (your transparency values; look at post #4) will it looks like
this if i want 100% transparent?
const v0, 0x00000000
and how to make status bar 100% transparent? which value should we change?
keep up the good work
will dis work on CM9.1 too please??
nice tutorial.....
Dilesh Perera said:
hey friend thanks a lot for the post. today i have learned lot and managed to get my status bar with transparent.
but TRANSPARENT NOTIFICATION DRAWER didnt work from this part
apktool b SystemUI al.apk.
i couldnt find SystemUI al.apk. also pls tell when we change the value to const v0, (your transparency values; look at post #4) will it looks like
this if i want 100% transparent?
const v0, 0x00000000
and how to make status bar 100% transparent? which value should we change?
keep up the good work
Click to expand...
Click to collapse
After you type
Code:
apktool b SystemUI al.apk
There's al.apk (not SystemUI al.apk) and the original SystemUI.apk
Open original SystemUI.apk with WinRAR, click META-INF folder and AndroidManifest.xml inside original SystemUI.apk, copy META-INF folder and AndroidManifest.xml, and open al.apk using WinRAR, paste it, when ask to compress click yes/OK
Yes, if you want 100% transparency it will look like this
Code:
# virtual methods
.method public draw(Landroid/graphics/Canvas;)V
.locals 2
.parameter "canvas"
.prologue
.line 2856
[COLOR="Red"]const v0, 0x00000000[/COLOR]
sget-object v1, Landroid/graphics/PorterDuff$Mode;->SRC:Landroid/graphics/PorterDuff$Mode;
invoke-virtual {p1, v0, v1}, Landroid/graphics/Canvas;->drawColor(ILandroid/graphics/PorterDuff$Mode;)V
.line 2857
return-void
.end method
via XDA for Timescape™
whalesplaho said:
will dis work on CM9.1 too please??
nice tutorial.....
Click to expand...
Click to collapse
Try it, but I though it will be possible
via XDA for Timescape™
Diaz1999 said:
After you type
Code:
apktool b SystemUI al.apk
There's al.apk (not SystemUI al.apk) and the original SystemUI.apk
Open original SystemUI.apk with WinRAR, click META-INF folder and AndroidManifest.xml inside original SystemUI.apk, copy META-INF folder and AndroidManifest.xml, and open al.apk using WinRAR, paste it, when ask to compress click yes/OK
Yes, if you want 100% transparency it will look like this
Code:
# virtual methods
.method public draw(Landroid/graphics/Canvas;)V
.locals 2
.parameter "canvas"
.prologue
.line 2856
[COLOR="Red"]const v0, 0x00000000[/COLOR]
sget-object v1, Landroid/graphics/PorterDuff$Mode;->SRC:Landroid/graphics/PorterDuff$Mode;
invoke-virtual {p1, v0, v1}, Landroid/graphics/Canvas;->drawColor(ILandroid/graphics/PorterDuff$Mode;)V
.line 2857
return-void
.end method
via XDA for Timescape™
Click to expand...
Click to collapse
thanks. but seems i can do De compile without any issue. but re compile not works. see the atachment
any idea whats wrong ??
Dilesh Perera said:
thanks. but seems i can do De compile without any issue. but re compile not works. see the atachment
any idea whats wrong ??
Click to expand...
Click to collapse
That's because apktool.yml not exist in your SystemUI decompiled folder
Try to decompiled SystemUI.apk again and find the apktool.yml in the decompiled folder
Look at the attachment
Nice guide for modders :good:
Diaz1999 said:
That's because apktool.yml not exist in your SystemUI decompiled folder
Try to decompiled SystemUI.apk again and find the apktool.yml in the decompiled folder
Look at the attachment
Click to expand...
Click to collapse
i tried many apks. but i never gets apktool.yml. have read many in xda. decompile not getting correctly it seems. i dont know how to fix it.
i followed all ur steps.
Dilesh Perera said:
i tried many apks. but i never gets apktool.yml. have read many in xda. decompile not getting correctly it seems. i dont know how to fix it.
i followed all ur steps.
Click to expand...
Click to collapse
See the second link in my sig for tips.
Dilesh Perera said:
i tried many apks. but i never gets apktool.yml. have read many in xda. decompile not getting correctly it seems. i dont know how to fix it.
i followed all ur steps.
Click to expand...
Click to collapse
Hmmm...better you use TickleMyAndroid cause this tool is much easy to use than other tool....
Diaz1999 said:
Try it, but I though it will be possible
via XDA for Timescape™
Click to expand...
Click to collapse
gonna try it out now... thanks!!!
dis is not in my smali folder; PhoneStatusBar$FastColorDrawable.smali
am using CM9.1 ROM.
whalesplaho said:
dis is not in my smali folder; PhoneStatusBar$FastColorDrawable.smali
am using CM9.1 ROM.
Click to expand...
Click to collapse
I though you want the transparent statusbar. Try to find in res/values/drawables.xml
Find a line that named status_bar_background (CMIIW) and change the colour
via XDA for Timescape™
hey nice guide, but I have a problem.
When i type this: apktool b SystemUI al.apk.
the al.apk does not get compiled. I also noticed that im missing the apktool.yml file in the folder of the decompiled SystemUI.