[SOLVED] Remove lockscreen tint on CM10.2 Maclaw ROM - Galaxy S III Mini Q&A, Help & Troubleshooting

Hello,
i search to remove the tint on my lockscreen, i have try it by manually changing the wallpaper in lockscreen settings but tint stay, i have try it:
http://forum.xda-developers.com/showpost.php?p=19032014&postcount=6
But i don't find the line:
<com.android.internal.widget.LinearLayoutWithDefaultTouchRecepient android:gravity="center_horizontal" androidrientation="vertical" android:background="#70000000" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
And in this thread:
http://forum.xda-developers.com/showpost.php?p=47225409&postcount=57
I have found this line:
invoke-virtual {p0}, Lcom/android/internal/policy/impl/keyguard/KeyguardViewBase;->resetBackground()V
So i have replace this line by it:
invoke-virtual {p0}, Lcom/android/internal/policy/impl/keyguard_obsolete/KeyguardViewBase;->resetBackground()V
I have recompile and take the file with same name in:
C:\apktool1.5.2\android.policy.jar.out\dist
Put same permissions of original file in same location (with ES file explorer)
But when i have reboot, i have bootlop (regeneration of odex files and again bootanimation)
So if someone have a solution to remove the tint
Another idea:
I can install GravityBox (version for JB) and enable option for it, it work on my phone but this app make a luminosity bug for me:
http://forum.xda-developers.com/showpost.php?p=56945897&postcount=8494
Thanks for help :good:

I have found the solution: set the defaut wallpaper in lockscreen settings.
And enable the first option in lockscreen modifications.

Related

[GUIDE] Creating Transparent Statusbars for CM7 based and most other ROM

Reading the next couple of paragraphs will help you to yourself create a Transparent Statusbar for CM7 based and also most other ROMs. I feel that despite some good programs available for doing this, for example the excellent patcher from ZduneX25, users face quite a bit of difficulty in creating their own transparent statusbars. So here is a detaild guide based on my experience. I have prepared status bars at least for 20 different ROMs using this process with zero fails. Hope it helps people out here.
Prerequisites:
Properly configured Apktool - http://code.google.com/p/android-apktool/
7-zip - http://www.7-zip.org/
Framework-res.apk and SystemUI.apk of the ROM for which you wish to create the statusbar
SystemUI.apk from an existing ROM or theme having transparent statusbar from which you want to copy the transparent images. I have attached the one I am using currently. Use it if you want.
Steps to create the statusbar:
Step 1 – Edit the SystemUI.apk to enable transparency
Open command prompt and go to the directory where you have installed Apktool
Install Framework-res.apk
Code:
apktool if Framework-res.apk
Decompile SystemUI.apk
Code:
apktool d /path/to/SystemUI.apk /path/to/decompiled_files
Now in the decompiled_files folder, open the following file ina a text editor
Code:
/path/to/decompiled_files/smali/com/android/systemui/statusbar/StatusBarService.smali
Search and Find the following string:
Code:
new-instance v0, Landroid/view/WindowManager$LayoutParams;
Three or four lines below this string you will find the following:
Code:
const/4 v5, 0x2
Replace it with
Code:
const/4 v5, -0x3
Now open the following file in a text editor
Code:
/path/to/decompiled_files/res/layout/status_bar.xml
You will find the following code at the end of the file
Code:
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="left|center" android:id="@id/date" android:background="@drawable/statusbar_background" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
Replace it with
Code:
<com.android.systemui.statusbar.DateView android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:gravity="center|center" android:id="@id/date" android:background="@drawable/statusbar_background2" android:paddingLeft="6.0px" android:paddingRight="6.0px" android:layout_width="fill_parent" android:layout_height="fill_parent" android:singleLine="true" />
Save and close the file
Browse to
Code:
/path/to/decompiled_files/drawable-mdpi or drawable-hdpi
Copy
Code:
statusbar_background.9.png
and paste it again as
Code:
statusbar_background2.9.png
in the same folder. You can also copy-paste and rename the file.
Recompile the SystemUI.apk
Code:
apktool b /path/to/decompiled_files
The new SystemUI.apk is saved to
Code:
/path/to/decompiled_files/dist/SystemUI.apk
Step 2 – Add the transparent images
Open the new SystemUI.apk in 7-zip and browse to the following locations depending on your device resolution
Code:
\res\drawable-mdpi\ or \res\drawable-hdpi\
Open the other SystemUI.apk (no. 4 in the prerequisites above) also in 7-zip and browse to the same folder,
Code:
\res\drawable-mdpi\ or \res\drawable-hdpi\
depending on your device resolution. Select the following files
statusbar_background.9.png
statusbar_background2.9.png
shade_bg.png (if you want a transparent pull down as well. Make sure the shade_bg.png is a transparent image.)
Drag and drop these files over to the other open 7-zip window containing your new SystemUI.apk. 7-zip will ask for confirmation, click OK.
Step 3 – Sign SystemUI.apk
You can use a number of signing tools to sign your files but in my experience it results in error many times, specially on Windows. The alternative way is use the signed files of the original apk.
Open the new SystemUI.apk in 7-zip
Open the original SystemUI.apk in 7-zip. This is the original SystemUI.apk from the ROM for which you want to create the statusbar, the one you decompiled.
Drag and drop the META-INF folder and AndroidManifest.xml file from the original to the new SystemUI.apk.
Close all files. That’s it. You just signed your APK with zero chances of any error.
Now push this final SystemUI.apk to /system/app on you phone and reboot.
Of course the risk is your own here. If something bad happens just push your original SystemUI.apk to the phone and you should be good.
Also in case you find any error here, please inform me and I will try to correct it.
Click the Thanks button if this writeup helped you.
wow !! gonna try it dude
can you make another guide on changing font colors,for example the font color in the settings menu screen?
dyetheskin said:
can you make another guide on changing font colors,for example the font color in the settings menu screen?
Click to expand...
Click to collapse
I will have a go at it next time.
Awesome thanx for explaining it so nicely
Sent from my GT-S5570 using xda premium
Very nice tutorial up there, but is there any solution for overlapping date when there are many notification icon on dropped down status bar?
@Cortiis
i tried but failed many times..so will u plzzz do it for me...here are the files..the 1st two are from the rom in which i want trans s.bar...3rd one(renamed) is from the rom which already has trans s.bar..
btw all the files here are not from my phone but from respective rom zips in my comp..
This worked for me but only on the lockscreen and when I have holo launcher running. Samsung home (touchwiz i presume) still has black status bar. search for solution to that with no success... anyone know what else needs to be modded for the transparent status bar in touchwiz? btw thanks to ccgh for pointing me to this thread
Will it work with 4.1?
(Cm10)
Sent from my Slim Jelly phone

[MOD] Statusbar MOD

Greetings all! Attention devs, themers and whoever else wants to do this lol. This is going to be a long post but I am putting this out there for whoever wants to use it. I cannot take full credit for this as there are quite a few posts that explain how to do this. I just went a lot more in depth and explained things so that even someone who has never done anything like this, can do it too.
This is going to be a tutorial of sorts on modding the statusbar so that you have the following:
Centered Clock
Statusbar Icons on the left
Centered Date
First, let me start by saying that I am in no way an expert on this and if this doesn't work for you, I might not be able to answer too many questions about it.
That being said, let's get started. First, you are going to need some stuff.
apkmanager: http://forum.xda-developers.com/showthread.php?t=695701
Notepad++: http://notepad-plus-plus.org/download/v5.9.6.2.html
The SystemUI.apk from your phone.
Now what you need to do is take that zip file for apkmanager that you downloaded and extract it somewhere that's easy to get to, like your desktop.
Inside the apkmanager folder on your desktop you should have 6 folders and 2 files. It should look like this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
NOTE: Do not change the names of any of these files or folders or the process will not work!
What you want to do next is take the SystemUI.apk that you pulled from your phone, either with Root Explorer or via ADB. And put your SystemUI.apk in the folder named "place apk here for modding."
Now double click the "Script" file to run it. A command prompt window will open up that looks like this:
Press "22" and hit the enter key to select your "project." Now press "1" and hit enter to select your SystemUI.apk as your current "project." Now you want to press "9" and hit enter to decompile the apk.
*NOTE: If you are trying to use a heavily themed SystemUI, this process might not work for you and you may have to find a stock SystemUI.apk and use it instead.
Now that the SystemUI is decompiled, go into the "projects" folder and you should see a SystemUI folder now. Open that up, then open the "res" folder and finally open the "layout" folder.
You should now be looking at a bunch of XML files. The one we're going to be editing is named "status_bar." That's the only XML file you're going to need to edit. Right click on that file and select either "Edit with Notepad++" or "Open with Notepad++," either one.
Now you should be looking at something similar to this:
Now comes the fun part!!
Centering the clock:
Open a new tab in your xml editor and paste this into it:
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
</LinearLayout>
That's the section that puts the clock in the center of the statusbar. But there's currently no clock element in it yet. Go back to your status_bar.xml and look for the line that starts like this:
Code:
<com.android.systemui.statusbar.Clock
Remember, that clock line doesn't finish until you find the closing ">". Highlight and copy that entire line, then delete it, then go back to your new tab and paste it into the middle of the code snippet above. It should look something like this:
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" [COLOR="Red"][B]android:gravity="center"[/B][/COLOR] android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
See the part in the string above that is red? I've highlighted it to show you that you have to change this part of the string from "left|center" to "center."
Now copy that entire string of code above and paste it just BELOW the line that looks like this:
Code:
xmlns:android="http://schemas.android.com/apk/res/android">
This is what you should end up with:
Code:
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" android:background="@drawable/statusbar_background" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textColor="#ffffffff" android:gravity="center" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
Now we need to fix some stuff, like making the date centered and making it so that the date and the notifications don't overlap the clock.
To center the date, find the string of code that starts like this:
Code:
<com.android.systemui.statusbar.DateView
And scroll right, across that line until you see this:
Code:
android:gravity="left|center"
Change that part to this:
Code:
android:gravity="center"
Now scroll across that same line a little more, until you find this part:
Code:
android:layout_width="wrap_content"
Change it to this:
Code:
android:layout_width="fill_parent"
Congratulations your date is now centered!!
Now to fix the notification overlap, you need to find the line that starts like this:
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/ticker"
Scroll all the way to end of that line and add this to the end:
Code:
android:background="@drawable/statusbar_background">
That entire line should now look like this:
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/statusbar_background">
Clock centered, no overlap!!
Setting the icons to the left hand side of the statusbar: (optional)
First, find the line that starts like this:
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons"
Copy that entire line, then delete it and paste it above the line that starts like this:
Code:
<com.android.systemui.statusbar.IconMerger
In that same line, change this part:
Code:
android:layout_alignParentRight="true"
To this:
Code:
android:layout_alignParentLeft="true"
Now find the line that starts like this:
Code:
<com.android.systemui.statusbar.IconMerger
And change this part:
Code:
android:layout_alignParentLeft="true"
To this:
Code:
android:layout_alignParentRight="true"
Guess what? That's it, you're finally done lol! Now let's recompile the SystemUI.apk.
Before you close out of Notepad++, check your edited XML and make sure there are NO GAPS between the lines. What I mean is this, this is kind of what your xml should look like all the way through it:
dfsdfsdfsdfsdfsd
sdfsdfsdf
sdfsdfsdfsdsdfsdfsdfsdf
fsdfsdfsdfs
See, no gaps. It should NOT look like this:
asdasdasdasd
asdasdasdasd
asdasdasd
asdasdasdasd
See what I'm saying?
Close out of Notepad++ and make sure you save all the changes. If you don't, you're back at square one and will have to do everything again lol. You don't want that.
Go back to that command prompt window that opened up for apkmanager. If you closed it, that's fine, just double click the "Script" file again to open it back up.
Press "22" and hit enter to select your "project" again. Press "1" then hit enter to select the SystemUI.apk.
Press "11" to Compile the apk and cross your fingers that you didn't mess anything up. If you did, you will get an error upon compiling the apk and will have to start over again. If you don't get an error, you should get a message that says this:
Code:
Is this a system apk <y/n>
Press "y" and hit enter.
Then you should get:
Code:
Aside from signatures, would you like to copy over any additional files that you did not modify from the original apk in order to ensure least number of errors <y/n>
Press "y" and hit enter.
Next you should get this:
Do as it says and go into the "keep" folder that you now see with all the other folders (place apk here for blah blah blah).
Delete this file:
resources.arsc
And the "status_bar.xml", now go back to the command prompt and hit enter.
Let it run it's course and you should be good to go!!! Now look in the "place apk here for modding" folder and you should see a "unsignedSystemUI.apk"
Yes the file size will be a little different. That's ok!!!
Rename the file to "SystemUI" and either use adb to push it to your phone or place the apk on your sdcard and use Root Explorer to copy/paste it into /system/app
If you use Root Explorer, maybe even if you use adb. You will probably get some force closes after you push or paste the app. Your phone might even freeze up, mine did. That's ok too!!!! Pull the battery and restart your phone.
Now when you first boot up, you might not have a statusbar anymore. That's ok too lol. Using Root Explorer, navigate to /system/app and "mount as R/W." Now find the SystemUI.apk. Press and hold on it and select "Permissions." Change the permissions to look like this:
Exit out of Root Explorer and reboot. That's it, you're completely done! As soon as I can perfect it a little better, I will also post a walkthrough on switching around the order of the statusbar icons as well! Final results should look something similar to this:
Enjoy!!!! If you like this post and think it contributes, please press the "Thanks" button.
If you are having troubles with the process, take a look at my status_bar.xml and compare it to yours.
status_bar.xml download:
http://www.multiupload.com/7MXI3ME1QR
Reserved for more stuff !
Thanks to share, available for download ah
owen.d said:
Thanks to share, available for download ah
Click to expand...
Click to collapse
Not sure I understand what you're asking.
spc_hicks09 said:
Not sure I understand what you're asking.
Click to expand...
Click to collapse
Im gonna guess he thinks theres a download for the whole process like V6 Supercharger. Just a guess.
ChaoticWeaponry said:
Im gonna guess he thinks theres a download for the whole process like V6 Supercharger. Just a guess.
Click to expand...
Click to collapse
Ah ok, gotchya.
owen.d said:
Thanks to share, available for download ah
Click to expand...
Click to collapse
This isn't a mod that you can download. You have to do all this by yourself.
Oh thats nice I'll be trying this when I get home.
Good work.
-smc
somemadcaaant said:
Oh thats nice I'll be trying this when I get home.
Good work.
-smc
Click to expand...
Click to collapse
Thanks!
Sent from my DROID3 using Tapatalk
OP has been updated!!! If you're having troubles, look at the bottom of Post #1 and find the download link for a copy of my status_bar.xml. You can download this and compare it to your status_bar.xml

[MOD] Statusbar MOD

As everyone that frequents this forum knows, I haven't had the Revolution in a while. However, I really loved this community when I did have it and I'm always still stopping by on IRC and posting comments here and there. Well I wrote up a tutorial for modding the statusbar and would like to share it with you guys. So here you go.
Greetings all! Attention devs, themers and whoever else wants to do this lol. This is going to be a long post but I am putting this out there for whoever wants to use it. I cannot take full credit for this as there are quite a few posts that explain how to do this. I just went a lot more in depth and explained things so that even someone who has never done anything like this, can do it too.
This is going to be a tutorial of sorts on modding the statusbar so that you have the following:
Centered Clock
Statusbar Icons on the left
Centered Date
First, let me start by saying that I am in no way an expert on this and if this doesn't work for you, I might not be able to answer too many questions about it.
That being said, let's get started. First, you are going to need some stuff.
apkmanager: http://forum.xda-developers.com/showthread.php?t=695701
Notepad++: http://notepad-plus-plus.org/download/v5.9.6.2.html
The SystemUI.apk from your phone.
Now what you need to do is take that zip file for apkmanager that you downloaded and extract it somewhere that's easy to get to, like your desktop.
Inside the apkmanager folder on your desktop you should have 6 folders and 2 files. It should look like this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
NOTE: Do not change the names of any of these files or folders or the process will not work!
What you want to do next is take the SystemUI.apk that you pulled from your phone, either with Root Explorer or via ADB. And put your SystemUI.apk in the folder named "place apk here for modding."
Now double click the "Script" file to run it. A command prompt window will open up that looks like this:
Press "22" and hit the enter key to select your "project." Now press "1" and hit enter to select your SystemUI.apk as your current "project." Now you want to press "9" and hit enter to decompile the apk.
*NOTE: If you are trying to use a heavily themed SystemUI, this process might not work for you and you may have to find a stock SystemUI.apk and use it instead.
Now that the SystemUI is decompiled, go into the "projects" folder and you should see a SystemUI folder now. Open that up, then open the "res" folder and finally open the "layout" folder.
You should now be looking at a bunch of XML files. The one we're going to be editing is named "status_bar." That's the only XML file you're going to need to edit. Right click on that file and select either "Edit with Notepad++" or "Open with Notepad++," either one.
Now you should be looking at something similar to this:
Now comes the fun part!!
Centering the clock:
Open a new tab in your xml editor and paste this into it:
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
</LinearLayout>
That's the section that puts the clock in the center of the statusbar. But there's currently no clock element in it yet. Go back to your status_bar.xml and look for the line that starts like this:
Code:
<com.android.systemui.statusbar.Clock
Remember, that clock line doesn't finish until you find the closing ">". Highlight and copy that entire line, then delete it, then go back to your new tab and paste it into the middle of the code snippet above. It should look something like this:
Code:
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" [COLOR="Red"][B]android:gravity="center"[/B][/COLOR] android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
See the part in the string above that is red? I've highlighted it to show you that you have to change this part of the string from "left|center" to "center."
Now copy that entire string of code above and paste it just above the line the ends like this:
Code:
xmlns:android="http://schemas.android.com/apk/res/android">
This is what you should end up with:
Code:
<com.android.systemui.statusbar.StatusBarView android:orientation="vertical" android:background="@drawable/statusbar_background" android:focusable="true" android:descendantFocusability="afterDescendants"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent">
<com.android.systemui.statusbar.Clock android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textColor="#ffffffff" android:gravity="center" android:paddingRight="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>
Now we need to fix some stuff, like making the date centered and making it so that the date and the notifications don't overlap the clock.
To center the date, find the string of code that starts like this:
Code:
<com.android.systemui.statusbar.DateView
And scroll right, across that line until you see this:
Code:
android:gravity="left|center"
Change that part to this:
Code:
android:gravity="center"
Now scroll across that same line a little more, until you find this part:
Code:
android:layout_width="wrap_content"
Change it to this:
Code:
android:layout_width="fill_parent"
Congratulations your date is now centered!!
Now to fix the notification overlap, you need to find the line that starts like this:
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/ticker"
Scroll all the way to end of that line and add this to the end:
Code:
android:background="@drawable/statusbar_background">
That entire line should now look like this:
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/ticker" android:paddingLeft="6.0dip" android:animationCache="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/statusbar_background">
Clock centered, no overlap!!
Setting the icons to the left hand side of the statusbar: (optional)
First, find the line that starts like this:
Code:
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:id="@id/statusIcons"
Copy that entire line, then delete it and paste it above the line that starts like this:
Code:
<com.android.systemui.statusbar.IconMerger
In that same line, change this part:
Code:
android:layout_alignParentRight="true"
To this:
Code:
android:layout_alignParentLeft="true"
Now find the line that starts like this:
Code:
<com.android.systemui.statusbar.IconMerger
And change this part:
Code:
android:layout_alignParentLeft="true"
To this:
Code:
android:layout_alignParentRight="true"
Guess what? That's it, you're finally done lol! Now let's recompile the SystemUI.apk.
Before you close out of Notepad++, check your edited XML and make sure there are NO GAPS between the lines. What I mean is this, this is kind of what your xml should look like all the way through it:
dfsdfsdfsdfsdfsd
sdfsdfsdf
sdfsdfsdfsdsdfsdfsdfsdf
fsdfsdfsdfs
See, no gaps. It should NOT look like this:
asdasdasdasd
asdasdasdasd
asdasdasd
asdasdasdasd
See what I'm saying?
Close out of Notepad++ and make sure you save all the changes. If you don't, you're back at square one and will have to do everything again lol. You don't want that.
Go back to that command prompt window that opened up for apkmanager. If you closed it, that's fine, just double click the "Script" file again to open it back up.
Press "22" and hit enter to select your "project" again. Press "1" then hit enter to select the SystemUI.apk.
Press "11" to Compile the apk and cross your fingers that you didn't mess anything up. If you did, you will get an error upon compiling the apk and will have to start over again. If you don't get an error, you should get a message that says this:
Code:
Is this a system apk <y/n>
Press "y" and hit enter.
Then you should get:
Code:
Aside from signatures, would you like to copy over any additional files that you did not modify from the original apk in order to ensure least number of errors <y/n>
Press "y" and hit enter.
Next you should get this:
Do as it says and go into the "keep" folder that you now see with all the other folders (place apk here for blah blah blah).
Delete this file:
resources.arsc
And the "status_bar.xml", now go back to the command prompt and hit enter.
Let it run it's course and you should be good to go!!! Now look in the "place apk here for modding" folder and you should see a "unsignedSystemUI.apk"
Yes the file size will be a little different. That's ok!!!
Rename the file to "SystemUI" and either use adb to push it to your phone or place the apk on your sdcard and use Root Explorer to copy/paste it into /system/app
If you use Root Explorer, maybe even if you use adb. You will probably get some force closes after you push or paste the app. Your phone might even freeze up, mine did. That's ok too!!!! Pull the battery and restart your phone.
Now when you first boot up, you might not have a statusbar anymore. That's ok too lol. Using Root Explorer, navigate to /system/app and find the SystemUI.apk. Press and hold on it and select "Permissions." Change the permissions to look like this:
Exit out of Root Explorer and reboot. That's it, you're completely done! As soon as I can perfect it a little better, I will also post a walkthrough on switching around the order of the statusbar icons as well! Final results should look something similar to this:
Enjoy!!!! If you like this post and think it contributes, please press the "Thanks" button.
Very cool, hicks. Props.
How you like your droid charge hicks?
BLITZ Bulletproof ledded AWD SuperCharged GV + Nitro ;p
bhp117 said:
How you like your droid charge hicks?
BLITZ Bulletproof ledded AWD SuperCharged GV + Nitro ;p
Click to expand...
Click to collapse
Liked it at first but got sick of it. Traded it for a D3 which I now also hate lol. Let me tell you, Dual Core doesn't mean s**t. The Revo and the Charge I had were way faster than this piece of crap.
Wow. You took a lot of time for this lol. Good job
Haro912 said:
Wow. You took a lot of time for this lol. Good job
Click to expand...
Click to collapse
Lol yeah it only takes about 15 minutes to do all this but it took me 3 hours to write up haha.
hey spc_hicks09,
I have followed ur step, but couldn't change the position of the clock.
I want the clock and date should be middle of the screen and not the icon to the left
I have attached my systemUI.apk file, please mod the requirement? I am using Samsung galaxy ace
Thanks
ananrocks22 said:
hey spc_hicks09,
I have followed ur step, but couldn't change the position of the clock.
please post the systemui.apk which ur have mod?
I want the clock and date should be middle of the screen and only the icon to the left
I am using Samsung galaxy ace
Thanks
Click to expand...
Click to collapse
This isn't a tutorial for any device other than the LG Revolution.
Sent from my GingerFusion Revo using Tapatalk.
I haven't looked at your SystemUI or looked to see if spc mentioned it but this mod should work on anything as long a you are in gingerbread its just like transparency in the pulldown and status bar.
Sent from my VS910 4G using xda premium
Beamer9408 said:
I haven't looked at your SystemUI or looked to see if spc mentioned it but this mod should work on anything as long a you are in gingerbread its just like transparency in the pulldown and status bar.
Sent from my VS910 4G using xda premium
Click to expand...
Click to collapse
The instructions won't work for a CyanogenMod Based ROM. The framework and systemUI are different.
Sent from my GingerFusion Revo using Tapatalk.
Very true..I wasn't taking that into consideration
Sent from my VS910 4G using xda premium

(How To) Force device to become low.ram feature+trans. Statusbar on 4.0+ TEAM-OPTIMA

Ok i think the most here knows the cool low.ram feature in newer Android roms,but in some cases its not used because
it can have issues with the transperancy in statusbar.
So most user need to deceide to have lowram but no great looking transparent statusbar,or in other case have trans statusbar but no lowram.
Here is a sollution to have low.ram feature in case you need it as alone,or when need both,im not sure its working on all devices and roms,its tested
on some different devices on different roms,but thats no garanty for 100%,please do it only when you have a lil knowledge
about this stuff,there is a high failrisk for beginner,so dont cry and learn by doing.
------
First, we need:
- Android device with rooted 4.4+ rom,deodexed.
- A nandroid backup,just in case
- Apktool or any thing like that and the knowledge to use it
- Notepad++ (on Windows)
- Its better to wipe dalvik before reboot the system when done.
------
Ok, so let's start:
Step 1:
Copy these files from your phone to your computer:
/system/framework/framework.jar
/system/priv-app/SystemUI.apk
/system/build.prop
------
Step 2:
open build.prop in notepad++, find this line:
"ro.config.low_ram="
if it say "true", skip to step 4 ,if it say "false", just change to "true" and reboot your phone,
if you can not find this line, or nothing change after you changed it to "true" and reboot, follow step 3.
------
Step 3:
(force enable low Ram)
Add this line to your build.prop:
"ro.config.low_ram.mod=true"
-------
Now use apktool etc. to decompile your framework.jar.
Navigate to \framework.jar.out\smali\android\app\ActivityManag er.smali, open it in notepad++ and find this line:
"ro.config.low_ram"
and change it to:
"ro.config.low_ram.mod"
-------
Compile it and move it back to your phone to replace the old one with it.Wipe dalvik and reboot,done.
-------
Step 4:
(force enable status bar transparent)
Decompile SystemUI.apk
Navigate to \SystemUI\smali\com\android\systemui\statusbar\phone\BarTransitions.smali and find these line:
"invoke-static {}, Landroid/app/ActivityManager;->isHighEndGfx()Z"
move-result v0
------
Change it to:
"const/4 v0, 0x1"
-------------
Compile it and do it on your phone to replace the old one with it.
Wipe dalvik and reboot your phone,done.
--------
WHEN YOU HAVE LUCK AND HAVE DONE IT RIGHT,THAN MAYBE IT LOOKS LIKE THE SECOND
PICTURE BELOW ME,THE FIRST IS BEFORE AND WITH BLACK STATBAR.
--------
AS I SAY BEFORE,I CANT GIVE A GARANTY FOR UNIVERSAL WORK!!!!
HAVE FUN-PRESENTED BY TEAM-OPTIMA!!!!!!!​
-CALIBAN666- said:
"ro.config.low_ram"
Click to expand...
Click to collapse
Hey, without de-compile the apk, if you set low_ram in build.prop, then you can go to setting>performance and check the "force graphic high-end" then reboot, and you have again trasparent effects
However as far as i know adding ro.config.lowram it remove trasparent effect from system, no other about ram :'(
this should be a flag that developers can read from their apps and use custom setting for old phone, if they dont use it, there wont be nothing to do
change only "invoke-static {}, Landroid/app/ActivityManager;->isHighEndGfx()Z" to "const/4 v0, 0x1" or "invoke-static {}, Landroid/app/ActivityManager;->isHighEndGfx()Z" and "move-result v0" to "const/4 v0, 0x1"? Another question though does it matter if I have odexed apks and jar? or do I need to deodex them first before compiling?
deodex before
-CALIBAN666- said:
Step 4:
(force enable status bar transparent)
Decompile SystemUI.apk
Navigate to \SystemUI\smali\com\android\systemui\statusbar\phone\BarTransitions.smali and find these line:
"invoke-static {}, Landroid/app/ActivityManager;->isHighEndGfx()Z"
move-result v0
------
Change it to:
"const/4 v0, 0x1"
-------------
Compile it and do it on your phone to replace the old one with it.
Wipe dalvik and reboot your phone,done.
[/COLOR]​
Click to expand...
Click to collapse
I don't understand here only. Help me!!

[Tutorial][Updated]3 Minit Battery for Oreo 8.0/PIE 9.0[Note FE/DS][12 May 2018]

Updated for PIE, 9.0
First of all, thanks to @dr.ketan for getting this to work for the Note 8 (Oreo). After seeing how he implemented the 3 Minit Battery in his ROM, I have implemented, for the Note FE/DS, what he did for the Note 8.
WARNING:
YOU DO THIS MODIFICATION AT YOUR OWN RISK. I NOR XDA-DEVELOPERS WILL NOT BE RESPONSIBLE FOR ANYTHING THAT HAPPENS AS A RESULT OF USING THESE MODIFICATIONS IN YOUR ROM. IF YOU HAVE NEVER MODIFIED AN APK FILE, I RECOMMEND LEARNING HOW TO DO IT BEFORE TRYING THIS MOD.
If you do not know how to decompile an apk, make changes to xml files and recompile an apk, I highly recommend you learn how-to-do-it before attempting this mod. Please refer to other threads on xda-developers regarding how to decompile/recompile apks.
The attached 3minit.zip file contains the following:
- apktool folder: in case you do not have the updated apktools
- sysinstall folder: where you put your modded SystemUI.apk and create an installable .zip file; also includes 3MinitBatterySettings.apk and MinitBatteryResources.apk
- res folder: drawable-xxxhdpi (fixed pip_dismiss_scrim.9.png file); layout folder (system_icons.xml - modded for 3minit battery) and status_bar.xml (if you want your clock centered)
- smali_classes2 folder: new folder (android) added to com folder - add complete android folder.
I HIGHLY recommend you make your own changes to the system_icons.xml file (and, if using the center clock mod, make changes to your status_bar.xml file)....Please do not just copy these 2 files into your ROM...they may be the same, but they may also be different...just make the changes to your files.
Steps to implement 3MinitBattery icons:
For OREO:
1 - MAKE A ROM BACKUP - Just in case - VERY IMPORTANT!
2 - Copy your deodexed SystemUI.apk to your work folder (with the apktool and baksmal.jar, smali.jar files)
3 - Decompile your SystemUI.apk (if you do not know how to do this, STOP - you should not be making this change)
4 - Copy pip_dismiss_scrim.9.png into res\drawable-xxxhdpi folder
5 - Copy the android folder into smali_classes2\com folder
6 - Edit the res\layout\system_icons.xml files - make the changes based on the file I provided - mods are near end of file - IMPORTANT: make sure you mod <LinearLayout info to android:layout_width="0.0dip" android:layout_height="0.0dip" - if you do not set to 0.0dip, both the stock and 3Minit batteries will be displayed.
7. When finished with mods, recompile SystemUI - do not forget to copy META_INF folder from original SystemUI.apk and the AndroidManifest.xml from the original SystemUI.apk into your new SystemUI.apk, otherwise your phone may bootloop or get stuck with a blank screen.
8. Put your modded SystemUI.apk in the system/SystemUI folder of the sysintall.zip file
9. Copy sysinstall.zip to your phone
10. Reboot into TWRP and install sysinstall.zip
11. You can use 3MinitbatterySettings to choose the battery style and other misc. properties.
For PIE:
1 - MAKE A ROM BACKUP - Just in case - VERY IMPORTANT!
2 - Copy your deodexed SystemUI.apk to your work folder (with the apktool) - use apktool 2.4.0 (attached)
3 - Decompile your SystemUI.apk (if you do not know how to do this, STOP - you should not be making this change)
4 - Copy pip_dismiss_scrim.9.png into res\drawable-xxxhdpi folder
5 - Copy the android folder into smali_classes2\com folder
6 - Edit the res\layout\system_icons.xml files - make the changes based on the file I provided - mods are near end of file - IMPORTANT: make sure you mod <LinearLayout info to android:layout_width="0.0dip" android:layout_height="0.0dip" - if you do not set to 0.0dip, both the stock and 3Minit batteries will be displayed.
7. When finished with mods, recompile SystemUI - do not forget to copy META_INF folder from original SystemUI.apk and the AndroidManifest.xml from the original SystemUI.apk into your new SystemUI.apk, otherwise your phone may bootloop or get stuck with a blank screen.
8. Put your modded SystemUI.apk in the system/SystemUI folder of the sysintall.zip file
8a. I have included my SystemUI.apk file - it is for XXU4CSC5 ROM - it includes double-tap to lock and removes entering password on reboot (just use fingerprint, if enabled)
9. Copy sysinstall.zip to your phone
10. Reboot into TWRP and install sysinstall.zip
11. You can use 3MinitbatterySettings to choose the battery style and other misc. properties.
3Minit.zip Link:
For OREO:
Google Drive: 3Minit.zip
Mega: 3Minit.zip
For PIE:
Google Drive: 3Minit.zip-PIE
Mega: 3Minit.zip-PIE
Reserved
Thank you for taking time to write up the guide!
Just one request - Since deodexed Oreo Roms are still not up yet, Much appreciated if you can share an updated guide to learn how to deodex a single APK in a rom as well.
Cheers!
JazonX said:
Thank you for taking time to write up the guide!
Just one request - Since deodexed Oreo Roms are still not up yet, Much appreciated if you can share an updated guide to learn how to deodex a single APK in a rom as well.
Cheers!
Click to expand...
Click to collapse
All you need is a deodexed SystemUI.apk and framework-res.apk.
I use Fulmics Deodexer: Fulmics Deodexer on XDA
I use dsixda's kitchen which I modified (with his permission, of course) to unpack the system.img folder.
Then I use Fulmic's Deodexer on the system folder.
From there, you can get the deodexed framework-res.apk and the SystemUI.apk.
The boot.img and the system.img are in .lz4 compressed format. You need to uncompress them using an lz4 uncompressor...see attached file... (lz4 -d file.img.lz4)
I tried on my S9+ Exynos but no luck, I lost status bar and navigation bar too!
Thanks
I am confused between tow lines.
1. <com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="fill_parent">
2.<LinearLayout android:gravity="start|center" androidrientation="horizontal" android:id="@id/system_icons_battery_container" android:layout_width="fill_parent" android:layout_height="fill_parent" />
Which one do I need to edit?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:id="@id/system_icons" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<com.android.systemui.statusbar.policy.NetspeedView android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:layout_gravity="center" android:id="@id/networkSpeed" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:importantForAccessibility="no" android:layout_marginEnd="@dimen/battery_level_padding_start" />
<com.android.keyguard.AlphaOptimizedLinearLayout android:gravity="center_vertical" androidrientation="horizontal" android:id="@id/statusIcons" android:layout_width="wrap_content" android:layout_height="fill_parent" />
<include android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="@dimen/signal_cluster_margin_start" layout="@layout/signal_cluster_view" />
<com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="fill_parent">
<LinearLayout android:gravity="start|center" androidrientation="horizontal" android:id="@id/system_icons_battery_container" android:layout_width="fill_parent" android:layout_height="fill_parent" />
</com.android.systemui.BatteryMeterView>
</LinearLayout>
Click to expand...
Click to collapse
zoya4u said:
I am confused between tow lines.
1. <com.android.systemui.BatteryMeterView android:id="@id/battery" android:layout_width="wrap_content" android:layout_height="fill_parent">
2.<LinearLayout android:gravity="start|center" androidrientation="horizontal" android:id="@id/system_icons_battery_container" android:layout_width="fill_parent" android:layout_height="fill_parent" />
Which one do I need to edit?
Click to expand...
Click to collapse
Attached is my system_icons.xml. You can compare yours with mine to see the correct changes.
gcrutchr said:
Attached is my system_icons.xml. You can compare yours with mine to see the correct changes.
Click to expand...
Click to collapse
Something going wrong. No status bar and navigation bar too!!
zoya4u said:
Something going wrong. No status bar and navigation bar too!!
Click to expand...
Click to collapse
How did you install SystemUI.apk on your phone?
Also, what did you do after you modded your SystemUI.apk and recompiled it?
gcrutchr said:
How did you install SystemUI.apk on your phone?
Also, what did you do after you modded your SystemUI.apk and recompiled it?
Click to expand...
Click to collapse
Recompiled the apk >installed 3mint battery setting.apk> copy MinitBatteryResources.apk to Pri-app > copy SystemUI to systemUI folder and reboot.
zoya4u said:
Recompiled the apk >installed 3mint battery setting.apk> copy MinitBatteryResources.apk to Pri-app > copy SystemUI to systemUI folder and reboot.
Click to expand...
Click to collapse
I added few more detailed steps to instructions. Please read.
The sysinstall.zip has a script to also set permissions correctly
Hi, I was wondering what you mean by including the original android manifest and meta-inf folder, Do I just take them out of the original apk and put them in the SystemUI/build folder?
Do I use the decompiled one that apktool provides (it makes manifest but not Meta-inf) at all?
I'm trying to mess around with a Doogee S60, got the framework files and sysui installed as stuff for apktool to use, specify it needs to use them at decompile
make my modifications, throw your fixed 9.png into the xxhdpi folder.... I think last time I used the manifest apktool makes, copied the META-INF to project/build and project/
And I'm still ending up with 'android is starting' for a minute or so, then my launcher's there, but without the status bar, nav bar and such.
After messing with it some the phone forces me to Factory Reset. :c
BerserkLeon said:
Hi, I was wondering what you mean by including the original android manifest and meta-inf folder, Do I just take them out of the original apk and put them in the SystemUI/build folder?
Do I use the decompiled one that apktool provides (it makes manifest but not Meta-inf) at all?
I'm trying to mess around with a Doogee S60, got the framework files and sysui installed as stuff for apktool to use, specify it needs to use them at decompile
make my modifications, throw your fixed 9.png into the xxhdpi folder.... I think last time I used the manifest apktool makes, copied the META-INF to project/build and project/
And I'm still ending up with 'android is starting' for a minute or so, then my launcher's there, but without the status bar, nav bar and such.
After messing with it some the phone forces me to Factory Reset. :c
Click to expand...
Click to collapse
Yes, replace the android manifest and add the META-INF folder. Easiest way: open original and compiled SystemUI.apks; drag 'n drop android manifest file and META-INF folder from original SystemUI.apk to compiled version.
lost the status bar and nav
gcrutchr said:
Yes, replace the android manifest and add the META-INF folder. Easiest way: open original and compiled SystemUI.apks; drag 'n drop android manifest file and META-INF folder from original SystemUI.apk to compiled version.
Click to expand...
Click to collapse
Hello
I used your instruction as this:
1- pull the SystemUI.apk and framefork-res.apk from the installed rom on my Samsung device that run android 8
2- decompiled the SystemUI.apk
3- I just replace the pip_dismiss_scrim.9.png from your 3minit.zip file (I do anything more)
4- recompile the SystemUI
5- replace the (Manifest.xml And META_INF folder) from 'original' folder to 'build/apk/' folder
6- do recompile the SystemUI again
7- copy the SystemUI.apk to the /system/priv-app/SystemUI/SystemUI.apk
8- change the permission of app
9- restart the phone
10- as the result I see no status bar and nav
>>> please help me for this ... where is wrong from my work steps (I just replace pip_dismiss_scrim.9.png file) ???? why the status bar and navber lost from os ??
---------- Post added at 02:24 PM ---------- Previous post was at 02:06 PM ----------
hossein_sys said:
Hello
I used your instruction as this:
1- pull the SystemUI.apk and framefork-res.apk from the installed rom on my Samsung device that run android 8
2- decompiled the SystemUI.apk
3- I just replace the pip_dismiss_scrim.9.png from your 3minit.zip file (I do anything more)
4- recompile the SystemUI
5- replace the (Manifest.xml And META_INF folder) from 'original' folder to 'build/apk/' folder
6- do recompile the SystemUI again
7- copy the SystemUI.apk to the /system/priv-app/SystemUI/SystemUI.apk
8- change the permission of app
9- restart the phone
10- as the result I see no status bar and nav
>>> please help me for this ... where is wrong from my work steps (I just replace pip_dismiss_scrim.9.png file) ???? why the status bar and navber lost from os ??
Click to expand...
Click to collapse
I just want to disable the status bar , but I lost the status bar and nav bar access(recent app , back , home button lost) .
my instruction step as I follow from this link():
- pull SystemUI.apk from your device: adb pull /system/priv-app/SystemUI/SystemUI.apk the path to SystemUI.apk may be different
- pull framework-res.apk from your device adb pull /system/framework/framework-res.apk the path to framework-res.apk may be different
- run apktool if framework-res.apk
- run apktool if SystemUI.apk
- run apktool d SystemUI.apk
- Open SystemUI\res\layout\status_bar.xml and add android:visibility="gone" to the top most xml element (for me it was com.android.systemui.statusbar.phone.PhoneStatusBarView)
- run apktool b SystemUI
- Go to SystemUI\original and copy AndroidManifest.xml and META-INF to SystemUI\build\apk\
- run apktool b SystemUI again
- Go to SystemUI\dist\ and override the device's original SystemUI.apk with the one at SystemUI\dist\SystemUI.apk with adb push SystemUI\dist\SystemUI.apk /system/priv-app/SystemUI/SystemUI.apk
- Restart device
hossein_sys said:
Hello
>>> please help me for this ... where is wrong from my work steps (I just replace pip_dismiss_scrim.9.png file) ???? why the status bar and navber lost from os ??
I just want to disable the status bar , but I lost the status bar and nav bar access(recent app , back , home button lost) .
my instruction step as I follow from this link():
Click to expand...
Click to collapse
Uh, what you are doing has nothing to do with the 3 Minit Battery Mod. Here is what I would suggest. Go to Google Play Store. Find a launcher or an app that allows you to hide the status bar. This is the easiest way - no programming.
I need this instruction for my specific work(remove permanently status bar)
gcrutchr said:
Uh, what you are doing has nothing to do with the 3 Minit Battery Mod. Here is what I would suggest. Go to Google Play Store. Find a launcher or an app that allows you to hide the status bar. This is the easiest way - no programming.
Click to expand...
Click to collapse
Many many thanks for your reply .
I need to remove status bar permanently from the android 8 .
As you say , my work dosnt have relationship with 3 mint battery but for removing the status bar in android 8 , i need follow your instruction... I say that follow your instruction but I dosnt change any thing expect replacing the nine path file.
So if you can help me to do this work I thank you .
I dosnt have problem in android 6 and previous android versions.
I just have problem on correct decompile and recompile of SystemUI.apk in android 8 , as your instruction I can decompile and recompile the file but after it the status bar and nav bar will be lost .
Please help me on this problem ... I need just this work .
Thanks
Updated for PIE, 9.0

Categories

Resources