[MOD][HOW TO][GT-S7562] Enabling/modding Transparency - Miscellaneous Android Development

Hi Samsung Galaxy S Duos GT-S7562 users
Many of you asked me questions/helps for regarding transparency in our device.
So, i decided to make a help thread for everyone for GT-S7562 [This is what i did to make transparency in my GT-S7562 ]
This guide will tell you to how to enable transparency and modding transparency levels in your device.
You will need:
1. 7zip
2. Notepad++
3. ApkToolv3 Donwload here (Not any other ApkTool) [For this ApkTool, Credit goes to Kryten2k35]
Now the steps:
1. Extract apktoolv3
2 There will be a 'READ_ME.txt file, with the help of this decompile your SystemUI.apk
3. Now open WORKING folder and go to- SystemUI\smali\com\android\systemui\statusbar
4. Open StatusBar.smali with notepad++ and search for this:
Code:
Landroid/view/WindowManager$LayoutParams;->(IIIII)V
Go to the line above it and change the last value to -0x3
Save it and close
This will enable the transparency for StatusBar
Now for StatusBar Expanded/Notification Background
1. Go to- SystemUI\smali\com\android\systemui\statusbar\phone
2. Open PhoneStatusBar.smali with notepad++ and search for this:
Code:
const v4, 0x4800068
replace the 2 lines underneath with this:
Code:
const/4 v5, -0x3
move v2, v1
Now search for this:
Code:
Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPixelFormat:I
Go to the line above it and change the last value to -0x3
Save it and close.
This will enable transparency in your device
Now for making transparency
1. In WORKING folder go to- SystemUI\res\values
2. Open drawables.xml using notepad++ and in this line:
Code:
<item type="drawable" name="status_bar_background">#[COLOR="Red"]xxxxxxxx[/COLOR]</item>
where 'xxxxxxxx' is some value.
Change xxxxxxxx to as per your need of transparency level:
00000000 - 100% transparency
3F000000 - 75% transparency
7F000000 - 50% transparency
BF000000 - 25% transparency
FF000000 - 0% transparent (No transparency)
Save it and close
3. And do the same with:
(a) SystemUI\res\values-sw600dp\drawables.xml
Code:
<item type="drawable" name="status_bar_background">#[COLOR="red"]xxxxxxxx[/COLOR]</item>
Save it and close
(b) SystemUI\res\values-sw800dp\drawables.xml
Code:
<item type="drawable" name="status_bar_background">#[COLOR="red"]xxxxxxxx[/COLOR]</item>
Save it and close
This will make your StatusBar transparent as per your values.
Now for making StatusBar Expanded/Notification Background transparent.
1. In WORKING folder go to- SystemUI\res\values
2 Open drawables.xml using notepad++ and in this line:
Code:
<item type="drawable" name="notification_tracking_bg">#[COLOR="red"]xxxxxxxx[/COLOR]</item>
Change xxxxxxxx to as per your need of transparency level.
Save it and close
3. And do the same with:
(a) SystemUI\res\layout\tw_status_bar_tracking.xml
Code:
<FrameLayout android:background="#[COLOR="red"]xxxxxxxx[/COLOR]" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
Save it and close
(b) SystemUI\res\layout\tw_status_bar_tracking_dual.xml
Code:
<LinearLayout android:gravity="bottom" android:orientation="vertical" android:background="#[COLOR="red"]xxxxxxxx[/COLOR]" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
Save it and close.
This will make your StatusBar Expanded/Notification Background transparent as per your values.
Now recompile and sign SystemUI.apk with the help of that READ_ME.txt file.
--------------------------------------------------------------------------------------------------------------------------------------------
Enjoy! :good:
And Dont Forget To Press Thanks :good: Button
IF YOU LIKE MY WORK, PLEASE CONSIDER ANY DONATION FOR CONTINUE DEVELOPMENT

Isn't it too .... complicated for a simple user?
Can't you make a simple zip and we ll flash through cwm
Anyway thanks for your work for our device.
Sent from my GT-S7562 using xda premium

saifzahid said:
Isn't it too .... complicated for a simple user?
Can't you make a simple zip and we ll flash through cwm
Anyway thanks for your work for our device.
Sent from my GT-S7562 using xda premium
Click to expand...
Click to collapse
It can be complicated but its a most simple way
You can try it, afterwards may be you will not find this complicated
And its good for learning new thing...
It can help you for many other devices and for making transparencies in many other apps too
Sent from my GT-S7562 using Tapatalk 2

Can i do it on stock rom....nd is this really workss...i mean is there any risk
Sent from my GT-S7562 using xda premium

mohit.bhagat1 said:
Can i do it on stock rom....nd is this really workss...i mean is there any risk
Sent from my GT-S7562 using xda premium
Click to expand...
Click to collapse
Yes you can do it on stock rom
Yes it works for sure with no risk
Just do the steps clearly
And its better to keep backup of original SystemUI.apk :good:

Mohitash said:
Hi Samsung Galaxy S Duos GT-S7562 users
Many of you asked me questions/helps for regarding transparency in our device.
So, i decided to make a help thread for everyone for GT-S7562 [This is what i did to make transparency in my GT-S7562 ]
This guide will tell you to how to enable transparency and modding transparency levels in your device.
You will need:
1. 7zip
2. Notepad++
3. ApkToolv3 Donwload here (Not any other ApkTool) [For this ApkTool, Credit goes to Kryten2k35]
Now the steps:
1. Extract apktoolv3
2 There will be a 'READ_ME.txt file, with the help of this decompile your SystemUI.apk
3. Now open WORKING folder and go to- SystemUI\smali\com\android\systemui\statusbar
4. Open StatusBar.smali with notepad++ and search for this:
Code:
Landroid/view/WindowManager$LayoutParams;->(IIIII)V
Go to the line above it and change the last value to -0x3
Save it and close
This will enable the transparency for StatusBar
Now for StatusBar Expanded/Notification Background
1. Go to- SystemUI\smali\com\android\systemui\statusbar\phone
2. Open PhoneStatusBar.smali with notepad++ and search for this:
Code:
const v4, 0x4800068
replace the 2 lines underneath with this:
Code:
const/4 v5, -0x3
move v2, v1
Now search for this:
Code:
Lcom/android/systemui/statusbar/phone/PhoneStatusBar;->mPixelFormat:I
Go to the line above it and change the last value to -0x3
Save it and close.
This will enable transparency in your device
Now for making transparency
1. In WORKING folder go to- SystemUI\res\values
2. Open drawables.xml using notepad++ and in this line:
Code:
<item type="drawable" name="status_bar_background">#[COLOR="Red"]xxxxxxxx[/COLOR]</item>
where 'xxxxxxxx' is some value.
Change xxxxxxxx to as per your need of transparency level:
00000000 - 100% transparency
3F000000 - 75% transparency
7F000000 - 50% transparency
BF000000 - 25% transparency
FF000000 - 0% transparent (No transparency)
Save it and close
3. And do the same with:
(a) SystemUI\res\values-sw600dp\drawables.xml
Code:
<item type="drawable" name="status_bar_background">#[COLOR="red"]xxxxxxxx[/COLOR]</item>
Save it and close
(b) SystemUI\res\values-sw800dp\drawables.xml
Code:
<item type="drawable" name="status_bar_background">#[COLOR="red"]xxxxxxxx[/COLOR]</item>
Save it and close
This will make your StatusBar transparent as per your values.
Now for making StatusBar Expanded/Notification Background transparent.
1. In WORKING folder go to- SystemUI\res\values
2 Open drawables.xml using notepad++ and in this line:
Code:
<item type="drawable" name="notification_tracking_bg">#[COLOR="red"]xxxxxxxx[/COLOR]</item>
Change xxxxxxxx to as per your need of transparency level.
Save it and close
3. And do the same with:
(a) SystemUI\res\layout\tw_status_bar_tracking.xml
Code:
<FrameLayout android:background="#[COLOR="red"]xxxxxxxx[/COLOR]" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
Save it and close
(b) SystemUI\res\layout\tw_status_bar_tracking_dual.xml
Code:
<LinearLayout android:gravity="bottom" android:orientation="vertical" android:background="#[COLOR="red"]xxxxxxxx[/COLOR]" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1.0" />
Save it and close.
This will make your StatusBar Expanded/Notification Background transparent as per your values.
Now recompile and sign SystemUI.apk with the help of that READ_ME.txt file.
--------------------------------------------------------------------------------------------------------------------------------------------
Enjoy! :good:
And Dont Forget To Press Thanks :good: Button
Click to expand...
Click to collapse
You rock man... keep gng...!!!
Sent from my GT-S7562 using xda app-developers app

Thanks, this is really what i had been looking for a few days back but gave up due to lack of time. Now this has got me interested
Hit thanks if I helped
sent from GT-S7562 with a better,faster and stronger stock ROM

einst31n said:
Thanks, this is really what i had been looking for a few days back but gave up due to lack of time. Now this has got me interested
Hit thanks if I helped
sent from GT-S7562 with a better,faster and stronger stock ROM
Click to expand...
Click to collapse
Dude, you havent seen this before? My this thread is very old.
Well good luck
Sent from my GT-S7562 using Tapatalk 2

Man i had really been out of touch with xda because i just got some preparations to do. I just got into my final year and immediately got busy with the placement stuff and all. I didnt upload any themes which i had made either coz of the fact that indian hostels dont provide a fast and reliable net
Will find time to continue my work hopefully
Hit thanks if I helped
sent from GT-S7562 with a better,faster and stronger stock ROM

Superb
Sent from my GT-S7562 using xda app-developers app

Related

[MOD][CM10.1]Centered Clock (for now) [Currently Alpha 8]

[MOD][CM10.1]Centered Clock (for now) ​
How to Install?​
1.Put the file to your sdcard
2.boot into recovery
3.flash the file
4.done
note:if you don't like the mod just flash backup in universal flasher folder
Download
CM10.1 ALPHA 5
100% Tranparent Status Bar+Centered Clock+White Clock:
DropBox
CM10.1 ALPHA 6
(alpha 6 dhiru latest build)
100% Transparent Status Bar+Centered Clock+White Clock
DropBox
CM10.1 ALPHA 7
Centered Clock
as per request for now only centered clock for transparent status bar use Tweakbox for Xposed Framework
DropBox
CM10.1 ALPHA
Centered Clock
Thanks for @martin.la.gib
martin.la.gib said:
Center Clock for CM10.1 A8 : Centerclock CM10.1 A8 Blue ICS / Grey
ATTENTION : this MOD is not compatible with other MOD who used an other SystemUI.apk ("Task Manager in recent app" by TopDroid for exemple)
There are 2 colour : Blue ICS (SystemUI_center_clock.apk) and in grey (SystemUI_center_clock__grey.apk)
If you no happy, to return on default it's : SystemUI.apk
Installation :
- put the apk on your SD card
- with a ROOT explorer (Solid Explorer for exemple) go to : /system/app
- put the apk here (verify permissions :-rw-r--r--) and delete the older SystemUI.apk
- the phone reboot automatically
- Enjoy !!!
Click to expand...
Click to collapse
GUIDE:
If you want to change the colour of the clock
(For Centered Clock)
1.Open res/layout/status_bar.xml
find this line
Code:
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textColor="#ffffff" android:gravity="center" android:id="@id/clock" android:paddingLeft="6.0dip" android:clickable="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
2.Change this:
Code:
android:textColor="[B]#ffffff[/B]"
#ffffff : White
you can find hex code to change the colour of the clock
3.Done !
If you want to change the colour of the clock
(For Stock Clock)
1.Open res/Values/Styles.xml
find this code:
Code:
<style name="TextAppearance.StatusBar.Clock" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">#ffffffff</item>
</style>
2.change this
Code:
<item name="android:textColor">#ffffffff</item>
#ffffff: white
@*android:color/holo_blue_light: stock colour (Blue)
3.Done!
​
Sent from my GT-I9003 using xda premium
Upload you framework-res.apk,systemui.apl,and androidpolicy.jar i think same as with another transparent mod
Sent from my GT-I9003 using xda premium
martin.la.gib said:
Yes, here they are : framework-res.apk ; SystemUI.apk ; android.policy.jar
Thank you
Click to expand...
Click to collapse
umm sorry sir,i always fail to recompilling it
martin.la.gib said:
do you know why ? :/
Click to expand...
Click to collapse
dunno :\ you are using alpha 6 latest build by dhiru ? if yes try in OP
martin.la.gib said:
Tes ok I'll try
---------- Post added at 09:48 AM ---------- Previous post was at 09:44 AM ----------
Link error ...
Click to expand...
Click to collapse
DropBox here you go:victory:
Yes i can,wait i'll do it for you
White clock or blue clock?
Sent from my GT-I9003 using xda premium
Thank you for this mod It cool :good:
And with the speed of the Internet 0.00kb/s. There is a modification?
If u guys open any app thats not coming with the rom, how does the statusbar look then? Like ugly weird grey/white or something?
Thanks I will try,
it looks nice
I have flashed and it looks very nice.
Is there a way to modify the transparency of the status bar? I mean, something similar such the clock changing color?
Thanks
Try module from xposed
Sent from my GT-I9003 using xda premium
@martin.la.gip hey friend i was make one for you Centered blue clock,if you want transparent use xposed module:good:
SORRY FOR LATE UPDATE cause i had an exam
ALPHA 8 by @martin.la.gib
i have whiship cm 10.1 ace plus how i know my rom alpha version
Different phone different rom ma friend
Sent from my GT-I9003 using xda app-developers app
The links doesn't work??
Re-upload may be please??

[GUIDE][SecLauncher] Make seclauncher(samsung launcher) super snappy and fast

This guide is just a quick guide on making seclauncher faster by changing integers...
the only tool you need would be the one i made here - Quickmod tool
1. Decompile seclauncher (in my case seclaucher3.apk)
2. go to res/values and open integers.xml
3. Find this line (note, your integer value might be different in any of these steps)
NOTE: the lower the value the faster the launcher gets. mine just maintain the smootheness.
Code:
<integer name="config_workspaceUnshrinkTime">[COLOR="Red"]300[/COLOR]</integer>
Change it to
Code:
<integer name="config_workspaceUnshrinkTime">[COLOR="Blue"]250[/COLOR]</integer>
4. Find this
Code:
<integer name="config_appsCustomizeWorkspaceAnimationStagger">[COLOR="Red"]40[/COLOR]</integer>
Change it to
Code:
<integer name="config_appsCustomizeWorkspaceAnimationStagger">[COLOR="Blue"]30[/COLOR]</integer>
5. Find these
Code:
<integer name="config_crosshairsFadeInTime">[COLOR="Red"]600[/COLOR]</integer>
<integer name="config_dragOutlineFadeTime">[COLOR="red"]900[/COLOR]</integer>
<integer name="config_folderAnimDuration">[COLOR="red"]200[/COLOR]</integer>
<integer name="config_scrollZoneScrollDelay">[COLOR="red"]500[/COLOR]</integer>
Change them to
Code:
<integer name="config_crosshairsFadeInTime">[COLOR="Blue"]525[/COLOR]</integer>
<integer name="config_dragOutlineFadeTime">[COLOR="blue"]800[/COLOR]</integer>
<integer name="config_folderAnimDuration">[COLOR="blue"]175[/COLOR]</integer>
<integer name="config_scrollZoneScrollDelay">[COLOR="blue"]400[/COLOR]</integer>
6. Find this
Code:
<integer name="config_pagePreviewSnapDelay">[COLOR="Red"]400[/COLOR]</integer>
Change it to
Code:
<integer name="config_pagePreviewSnapDelay">[COLOR="Blue"]300[/COLOR]</integer>
7. This step the folder could differ, Go to res/values-sw359dp-xxhdpi <------ this could very likely be different.
8. Open integers.xml
9. Find this
Code:
<integer name="page_snap_animation_duration">[COLOR="Red"]520[/COLOR]</integer>
Change it to
Code:
<integer name="page_snap_animation_duration">[COLOR="blue"]300[/COLOR]</integer>
And thats it! recompile and feel how speedy/smoothe it is
thanks mate!
This sounds wonderful, but I have a question, if anyone can answer, if its this simple to make it much better, why is Sammy sending it out the way it is now aka crappy, when Sammy themselves could put it out with the new settings and be better out of the box. Do Sammy have a reason for sending out with the original settings? saving battery or some other reason?
I don't want to sound like I'm knocking your stuff but I don't understand why something this simple isn't already done.
Sent from my GT-I9505 using xda app-developers app
I decompile my seclauncher3.apk but there is no values folder in res and no integers.xml file in any folder I'm using JB4.3 XXUEMK9 I9505
Send from my I9505 using XDA Premium App
ranger4740 said:
This sounds wonderful, but I have a question, if anyone can answer, if its this simple to make it much better, why is Sammy sending it out the way it is now aka crappy, when Sammy themselves could put it out with the new settings and be better out of the box. Do Sammy have a reason for sending out with the original settings? saving battery or some other reason?
I don't want to sound like I'm knocking your stuff but I don't understand why something this simple isn't already done.
Sent from my GT-I9505 using xda app-developers app
Click to expand...
Click to collapse
I would not have a clue..
LyuboA said:
I decompile my seclauncher3.apk but there is no values folder in res and no integers.xml file in any folder I'm using JB4.3 XXUEMK9 I9505
Send from my I9505 using XDA Premium App
Click to expand...
Click to collapse
Well then it hasnt decompiled properly...
not working
I decompile my seclauncher3 with apk tool and change the value but not the same as your values and recompile but its not working. I have gt i9500 with 4.3. Can you post your seclauncher3.apk? Thanks
[email protected] said:
I decompile my seclauncher3 with apk tool and change the value but not the same as your values and recompile but its not working. I have gt i9500 with 4.3. Can you post your seclauncher3.apk? Thanks
Click to expand...
Click to collapse
change the values to the same as mine!
ricky310711 said:
change the values to the same as mine!
Click to expand...
Click to collapse
Can u do an example for us with this i9505 MKF seclauncher: https://www.dropbox.com/s/fj0s50ovu6...cLauncher3.apk
I can't find the value folder either
tranbeelze said:
Can u do an example for us with this i9505 MKF seclauncher: https://www.dropbox.com/s/fj0s50ovu6...cLauncher3.apk
I can't find the value folder either
Click to expand...
Click to collapse
decompile it and upload the res folder?
ricky310711 said:
decompile it and upload the res folder?
Click to expand...
Click to collapse
here is the res folder: https://www.dropbox.com/s/4o9kgmx3i0dq8ti/res.zip :fingers-crossed:
tranbeelze said:
here is the res folder: https://www.dropbox.com/s/4o9kgmx3i0dq8ti/res.zip :fingers-crossed:
Click to expand...
Click to collapse
Hmm, did you install framework prior to this? Send me your .apk!
works now.thanks man
Those with seclauncher2? Can this work for me?
Sent from my GT-N7000 using xda premium
NoteboyTech said:
Those with seclauncher2? Can this work for me?
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
ofcoarse!
i will be adding more to this soon!
Does someone know what I have to do to maximize the numbers of apps placed at the bottom of the screen?
I mean the place, where the menu icon is located. (is it called menu bar? I don't know )
And would it be possible to make this bar scrollable (like the homescreen itself)?
Praetoriani said:
Does someone know what I have to do to maximize the numbers of apps placed at the bottom of the screen?
I mean the place, where the menu icon is located. (is it called menu bar? I don't know )
And would it be possible to make this bar scrollable (like the homescreen itself)?
Click to expand...
Click to collapse
you need to mod the values in dimens.xml
ricky310711 said:
you need to mod the values in dimens.xml
Click to expand...
Click to collapse
So this is the content of \res\values\dimens.xml
Code:
<item type="dimen" name="config_menuBgDarkenAmountNormal">0.1</item>
<item type="dimen" name="config_bgDarkenAmountEdit">0.3</item>
<item type="dimen" name="config_wsBaseDarkenAmountEdit">0.1</item>
<item type="dimen" name="config_bgDarkenAmountContextualPage">0.4</item>
<dimen name="folderIcon_hCenterAlign">-100.0px</dimen>
<dimen name="folderIcon_hRightAlign">-200.0px</dimen>
<dimen name="hoverScrollVerticalPaddingMatchParent">-1.0px</dimen>
<dimen name="config_dynamicShadowOffset">2.669983dip</dimen>
<dimen name="config_dynamicShadowBorder">1.0dip</dimen>
<dimen name="ged_home_cellWidth_land">106.0dip</dimen>
<dimen name="ged_home_cellWidth_port">80.0dip</dimen>
<dimen name="ged_home_cellHeight_land">74.0dip</dimen>
<dimen name="ged_home_cellHeight_port">100.0dip</dimen>
<dimen name="downloaded_text_padding">0.0dip</dimen>
<dimen name="help_hub_gallery_image_margin_left">0.0dip</dimen>
<dimen name="help_hub_gallery_image_margin_top">0.0dip</dimen>
<dimen name="help_hub_live_wallpaper_image_margin_left">0.0dip</dimen>
<dimen name="help_hub_live_wallpaper_image_margin_top">0.0dip</dimen>
<dimen name="help_hub_wallpaper_image_margin_left">0.0dip</dimen>
<dimen name="help_hub_wallpaper_image_margin_top">0.0dip</dimen>
<dimen name="help_hub_wallpaper_type_image_margin_top">0.0dip</dimen>
<dimen name="menu_downloaded_icon_margin_top">0.0dip</dimen>
<dimen name="help_hub_change_wallpaper_pointer_up_margin_top">0.0dip</dimen>
<dimen name="help_hub_move_apps_up_pointer_margin_top">0.0dip</dimen>
<dimen name="help_hub_chooser_insert_item_pointer_up_margin_top">0.0dip</dimen>
Which values I have to edit to put more icons/apps at the bottom of my screen?
Or do you mean a different dimens.xml? I found some more in \res\values-sw800dp\ and \res\values-sw800dp-land\
Praetoriani said:
So this is the content of \res\values\dimens.xml
Code:
<item type="dimen" name="config_menuBgDarkenAmountNormal">0.1</item>
<item type="dimen" name="config_bgDarkenAmountEdit">0.3</item>
<item type="dimen" name="config_wsBaseDarkenAmountEdit">0.1</item>
<item type="dimen" name="config_bgDarkenAmountContextualPage">0.4</item>
<dimen name="folderIcon_hCenterAlign">-100.0px</dimen>
<dimen name="folderIcon_hRightAlign">-200.0px</dimen>
<dimen name="hoverScrollVerticalPaddingMatchParent">-1.0px</dimen>
<dimen name="config_dynamicShadowOffset">2.669983dip</dimen>
<dimen name="config_dynamicShadowBorder">1.0dip</dimen>
<dimen name="ged_home_cellWidth_land">106.0dip</dimen>
<dimen name="ged_home_cellWidth_port">80.0dip</dimen>
<dimen name="ged_home_cellHeight_land">74.0dip</dimen>
<dimen name="ged_home_cellHeight_port">100.0dip</dimen>
<dimen name="downloaded_text_padding">0.0dip</dimen>
<dimen name="help_hub_gallery_image_margin_left">0.0dip</dimen>
<dimen name="help_hub_gallery_image_margin_top">0.0dip</dimen>
<dimen name="help_hub_live_wallpaper_image_margin_left">0.0dip</dimen>
<dimen name="help_hub_live_wallpaper_image_margin_top">0.0dip</dimen>
<dimen name="help_hub_wallpaper_image_margin_left">0.0dip</dimen>
<dimen name="help_hub_wallpaper_image_margin_top">0.0dip</dimen>
<dimen name="help_hub_wallpaper_type_image_margin_top">0.0dip</dimen>
<dimen name="menu_downloaded_icon_margin_top">0.0dip</dimen>
<dimen name="help_hub_change_wallpaper_pointer_up_margin_top">0.0dip</dimen>
<dimen name="help_hub_move_apps_up_pointer_margin_top">0.0dip</dimen>
<dimen name="help_hub_chooser_insert_item_pointer_up_margin_top">0.0dip</dimen>
Which values I have to edit to put more icons/apps at the bottom of my screen?
Or do you mean a different dimens.xml? I found some more in \res\values-sw800dp\ and \res\values-sw800dp-land\
Click to expand...
Click to collapse
fo to res/values-**dpi and look for dimens.xml, there should be alot more then that!
Good
Work Perfect on my galaxy s2 plus 4.2.2
Thank You

[MOD] 4.4.2 TW enable App Ops

All credits to @Calkulin his thread: Enable App Ops again in 4.4.2 / KOT49H
But, we don't need to touch the smali, because code is already there.
Needed tools:
Apktool
Notepad++
1. Decompile SecSettings.apk
2. Navigate to \res\xml
3. Open general_headers.xml
4. Find : ic_settings_applications
Delete RED lines.
Add BLUE line.
Code:
<header android:icon="@drawable/[COLOR="green"]ic_settings_applications[/COLOR]" android:id="@id/application_settings" android:title="@string/applications_settings" android:fragment="com.android.settings.applications.ManageApplications" />
[COLOR="Red"] <header android:icon="@drawable/ic_settings_applicationpermissions" android:id="@id/application_function_control" android:title="@string/application_function_control">
<intent android:targetPackage="com.sec.android.app.capabilitymanager" android:targetClass="com.sec.android.app.cm.ui.CMApplicationListActivity" />
</header>[/COLOR]
[COLOR="Blue"]<header android:icon="@drawable/ic_settings_applicationpermissions" android:title="@string/app_ops_settings" android:key="app_ops_summary" android:summary="@string/application_function_control" android:fragment="com.android.settings.applications.AppOpsSummary" />[/COLOR]
<header android:icon="@drawable/ic_setting_launch_apps" android:id="@id/launch_application_settings" android:title="@string/launch_application_settings" android:fragment="com.android.settings.LaunchApplication" />
5. Save your changes
6. Build SecSettings.apk
7. Push to your Phone, set permissions, reboot
work on I9500?
tkari4 said:
All credits to @Calkulin his thread: Enable App Ops again in 4.4.2 / KOT49H
But, we don't need to touch the smali, because code is already there.
Needed tools:
Apktool
Notepad++
1. Decompile SecSettings.apk
2. Navigate to \res\xml
3. Open general_headers.xml
4. Find : ic_settings_applications
Delete RED lines.
Add BLUE line.
Code:
<header android:icon="@drawable/[COLOR="green"]ic_settings_applications[/COLOR]" android:id="@id/application_settings" android:title="@string/applications_settings" android:fragment="com.android.settings.applications.ManageApplications" />
[COLOR="Red"] <header android:icon="@drawable/ic_settings_applicationpermissions" android:id="@id/application_function_control" android:title="@string/application_function_control">
<intent android:targetPackage="com.sec.android.app.capabilitymanager" android:targetClass="com.sec.android.app.cm.ui.CMApplicationListActivity" />
</header>[/COLOR]
[COLOR="Blue"]<header android:icon="@drawable/ic_settings_applicationpermissions" android:title="@string/app_ops_settings" android:key="app_ops_summary" android:summary="@string/application_function_control" android:fragment="com.android.settings.applications.AppOpsSummary" />[/COLOR]
<header android:icon="@drawable/ic_setting_launch_apps" android:id="@id/launch_application_settings" android:title="@string/launch_application_settings" android:fragment="com.android.settings.LaunchApplication" />
5. Save your changes
6. Build SecSettings.apk
7. Push to your Phone, set permissions, reboot
Click to expand...
Click to collapse
work on I9500(4.4.2)?
thx
kin201303 said:
work on I9500(4.4.2)?
thx
Click to expand...
Click to collapse
I don't know...
Try it out.
csc/others.xml
add
<CscFeature_Common_ConfigLocalSecurityPolicy>ChinaNalSecurity</CscFeature_Common_ConfigLocalSecurityPolicy>
copy ApplicationPermissions.apk and AutoRunChecker.apk to system/app
kin201303 said:
work on I9500(4.4.2)?
thx
Click to expand...
Click to collapse
If you gave a beautiful rating for the thread, than:
THX,
this is a Note 3 section,
without an S4 I can't test it.
If wasn't you, than forget it.
tkari4
Hi! Can I ask you to push here already modified file? Thank you!
tkari4 said:
If you gave a beautiful rating for the thread, than:
THX,
...
Click to expand...
Click to collapse
That was me
Sent from my SM-N9005
Techn1cian said:
tkari4
Hi! Can I ask you to push here already modified file? Thank you!
Click to expand...
Click to collapse
Of course, download link in the OP.
lqhorochi said:
csc/others.xml
add
<CscFeature_Common_ConfigLocalSecurityPolicy>ChinaNalSecurity</CscFeature_Common_ConfigLocalSecurityPolicy>
copy ApplicationPermissions.apk and AutoRunChecker.apk to system/app
Click to expand...
Click to collapse
First Time i've seen this mod at any forum. This actually works and its great. When AppOps is enabled, the Permission controller will not work. But the Autorun Manager is working.

[MOD][GUIDE]Add CPU usage in notification panel

I never seen any guide how to add the cpu usage into notification panel to this is a guide how to do it!
Files need modification
Smali
\SystemUI\smali\com\android\systemui\statusbar\policy
XML's
status_bar_expanded_header.xml
id.xml
strings.xml
public.xml
1: Decompile the SystemUI.apk using apktool.
2: Now download the cpu_smali attachment and put the smalis inside the folder \SystemUI\smali\com\android\systemui\statusbar\policy
3: Open the file \SystemUI\res\values\id.xml and scroll down at the bottom and add these lines
Code:
<item type="id" name="cpu">false</item>
<item type="id" name="sys_id">false</item>
4: Open the file \SystemUI\res\values\strings.xml and scroll down at the bottom and add these lines
Code:
<string name="cpu_idle">idle</string>
<string name="cpu_text">CPU Usage</string>
5: Open the file \SystemUI\res\layout\status_bar_expanded_header.xml and look for the line
Code:
<com.android.systemui.statusbar.policy.ClockStock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="@color/notification_header_clock_color" android:gravity="bottom" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/notification_panel_header_clock_margin_left" android:singleLine="true" systemui:ampmSmall="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="@color/notification_header_date_color" android:gravity="bottom" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/notification_panel_header_date_margin_left" android:layout_marginRight="@dimen/notification_panel_header_date_margin_right" android:layout_marginBottom="@dimen/notification_panel_header_date_margin_bottom" android:layout_toEndOf="@id/clock" />
Now we gonna comment out these codes just incase u want the date and clock back in the future so we need to do is replace with these codes
Code:
<!--
<com.android.systemui.statusbar.policy.ClockStock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="@color/notification_header_clock_color" android:gravity="bottom" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/notification_panel_header_clock_margin_left" android:singleLine="true" systemui:ampmSmall="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="@color/notification_header_date_color" android:gravity="bottom" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginLeft="@dimen/notification_panel_header_date_margin_left" android:layout_marginRight="@dimen/notification_panel_header_date_margin_right" android:layout_marginBottom="@dimen/notification_panel_header_date_margin_bottom" android:layout_toEndOf="@id/clock" />
-->
6: Now right under the lince we just comment out we will add these lines
Code:
<LinearLayout android:gravity="left" android:orientation="vertical" android:id="@id/cpu" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TextView android:textSize="15.0dip" android:textColor="#ffffffff" android:id="@id/sys_id" android:paddingLeft="11.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/cpu_text" android:layout_marginLeft="@dimen/status_bar_expanded_notification_margin" />
<com.android.systemui.statusbar.policy.CpuUsageView android:textSize="12.0dip" android:textColor="#ffffffff" android:paddingLeft="23.0px" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</LinearLayout>
7: Now save everything and lets compile the SystemUI.apk and sign it.
8: Take the SystemUI.apk we just compiled and signed and decompile it again using apktool
9: Now we open the file public.xml and look for the line <public type="string" name="cpu_idle" id=" now all we needed is the id inside the id=""
10: Now we open the file \SystemUI\smali\com\android\systemui\statusbar\policy\CpuUsageView$1.smali and search for # virtual methods few lines below you will see const v9, 0x7f0a01ad and all we need to do is change the 0x7f0a01ad to the one we found in public.xml
11: Save everything Compile & Sign and push it inside your system\priv-app.
12: Enjoy
Do you need root for this?
Sent from my SM-N9005 using XDA Premium 4 mobile app
Does ram booster pro actually work??
Sent from my SM-N9005 using XDA Premium 4 mobile app
HaloTwenty3 said:
Do you need root for this?
Sent from my SM-N9005 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Yes
speedyjay said:
Does ram booster pro actually work??
Sent from my SM-N9005 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Yes i think been using it since i got my note 3
Awesome job
Hi meawww,
Is it possible to add CPU Freq value like "CPU Usage: @1600mHz"
What toggles are those? They look so nice..
kadiremrah said:
Hi meawww,
Is it possible to add CPU Freq value like "CPU Usage: @1600mHz"
Click to expand...
Click to collapse
Nope
DrawnToLife said:
What toggles are those? They look so nice..
Click to expand...
Click to collapse
Made those while ago and never been released
Can anyone make a vrtheme flashable zip with the modded .xml only please
Sent from my SM-N900A using XDA Premium 4 mobile app
Anyone???
Sent from my SM-N900A using XDA Premium 4 mobile app
---------- Post added at 11:45 PM ---------- Previous post was at 11:41 PM ----------
@dr.ketan pleasee
Why do you only want the xml?
Sent from my SM-G900F using Tapatalk
Goldie said:
Why do you only want the xml?
Sent from my SM-G900F using Tapatalk
Click to expand...
Click to collapse
I dont have a pc to do the modding so a flashable vrtheme with the modded .xml will work
I upload my systemui.apk so if anyone can modded it for me i will be thankfull
Sent from my SM-N900A using XDA Premium 4 mobile app
But then you will not have the smali files that do the actual mod and it will just fc
Sent from my SM-G900F using Tapatalk
carlospr21 said:
I dont have a pc to do the modding so a flashable vrtheme with the modded .xml will work
I upload my systemui.apk so if anyone can modded it for me i will be thankfull
Sent from my SM-N900A using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Try this
meawww said:
Try this
Click to expand...
Click to collapse
Thank u sir
Sent from my SM-N900A using XDA Premium 4 mobile app
meawww said:
Try this
Click to expand...
Click to collapse
@meawww, once again great job...worked as advertised. One question, is it possible to show the clock/date with the CPU usage? I was thinking about playing with the size (dpi) to see what would happen...perhaps even removing the 'CPU Usage' header just to show the core usages as well.
Also, I think your screen dpi is slightly different than mine as well. I lose the last core reading, see pic
deuce_biggins said:
@meawww, once again great job...worked as advertised. One question, is it possible to show the clock/date with the CPU usage? I was thinking about playing with the size (dpi) to see what would happen...perhaps even removing the 'CPU Usage' header just to show the core usages as well.
Also, I think your screen dpi is slightly different than mine as well. I lose the last core reading, see pic
Click to expand...
Click to collapse
Yes you can add clock date back just edit the xml and my dpi is 320
meawww said:
Yes you can add clock date back just edit the xml and my dpi is 320
Click to expand...
Click to collapse
I never edited out my clock and date in the xml file. It just didn't show up (must be overlapping with the cpu usage). I'm wondering if I need to increase the size of my status bar header??
nice guide master..thank you
carlospr21 said:
I dont have a pc to do the modding so a flashable vrtheme with the modded .xml will work
I upload my systemui.apk so if anyone can modded it for me i will be thankfull
Sent from my SM-N900A using XDA Premium 4 mobile app
Click to expand...
Click to collapse
meawww said:
Try this
Click to expand...
Click to collapse
Would that theme work with Sprint NAC 4.42? Some themes don't because they don't include Wifi Calling, Hotspot, Mobile Data, Torch, etc... Thanks in advance.

[GUIDE] How to Add REAL Recent Cardstack to You're SystemUI

Hy I'm noobs want to share little guide for you are...
this guide is how to bring recent cardstack to youre ROM... Ok lets to mod.
First Big Thanks to :​
1. Muhammad Bagus Prasetyo (My best friend which first person who can bring cardstack on Samsung Core 2).
2. Lollifox ROM and Paranoid ROM for file comparation.
Click to expand...
Click to collapse
NOTE :​
1. If you get FC use LOGCAT to know the error and fix by youre self.
2. I'm try this on Stock touchwiz Kitkat 4.4.2 (My device use Spreadrum Shark (sc8830) Chipset)
3. In my stock Stock touchwiz Kitkat 4.4.2 UI will Forceclose when Im use Navbar
4. In my stock Stock touchwiz Kitkat 4.4.2 UI will Forceclose when any moddification in android.policy.jar which contain navbar modding.
5. In my heart and my mind Navbar not critical uses so I'M AVOID THE FC WHEN USE NAVBAR AND I'M NOT USE NAVBAR.
6. CONCLUSION : If youre want to fix FC when use Navbar , please compare again with Lollifox ROM file.
7. I DON'T KNOW WILL WORK ON ANOTHER OS BUT JUST TRY IT.
Click to expand...
Click to collapse
BUG : NOT AVAILABLE CLEAR ALL RECENT.
Requirepment :
1. Brain
2. Apktool
3. A cup of tea or cofee
STEP 1 :
1. Decompile Framework-res.apk then marger file on attachment.
2. add this on string.xml
HTML:
<string name="setting_confirmation_ask_me_later">Ask later</string>
<string name="setting_confirmation_yes">Yes</string>
<string name="setting_confirmation_no">No</string>
3. recompile and decompile again to get id public
4. open res/value/public.xml and dont close it.
Click to expand...
Click to collapse
STEP 2 :
1. Decompile framework.jar
2. marger file on attached to Landroid/content/pm/HERE
3. recompile again
STEP 3 :
1. Decompile framework2.jar
2. marger gifview.smali TO Landroid/widget/HERE
3. marger file which have name SettingConfirmationHelper...... TO Landroid/util/HERE
4. Change id public in SettingConfirmationHelper.smali with your id public on framework-res.apk/res/value/public.xml (7 ids which MUST changed)
Code:
- 0x01040bcb ----> <public type="string" name="setting_confirmation_yes" id="0x01040bcb" />
- 0x01040bca ----> <public type="string" name="setting_confirmation_ask_me_later" id="0x01040bca" />
- 0x01040bcc ----> <public type="string" name="setting_confirmation_no" id="0x01040bcc" />
- 0x0109014b (on smali have 2 id like this) ----> <public type="layout" name="setting_confirmation_dialog" id="0x0109014b" />
- 0x01020473 ----> <public type="id" name="setting_confirmation_dialog_visual_hint" id="0x01020473" />
- 0x01020474 ----> <public type="id" name="setting_confirmation_dialog_visual_gif" id="0x01020474" />
5. recompile again
STEP 4 :
1. Decompile SystemUI.apk and merger/replace folder file from me in drawable and drawable-hdpi
2. Delete all file on folder smali\com\android\systemui\recent\ DELETE ALL
3. Merger file which in folder recent in attachment file to smali\com\android\systemui\recent\HERE
4. Merger file which in folder sands in attachment file to smali\com\android\systemui\HERE
5. Merger file in folder Layout to Layout folder ... If exist on youre folder REPLACE IT.
6. Merger file in folder Layout-land to Layout-land folder ... If exist on youre folder REPLACE IT.
7. Change all file status_bar_recent_panel.xml and status_bar_recent_item in youre layout folder with file in folder Layout from ME.
8. Change all file status_bar_recent_panel.xml and status_bar_recent_item from folder Layout-land if you see to youre folder which have name contain land.
9. add this to string.xml
HTML:
<string name="status_bar_recents_card_stack_title">Recents card stack view</string>
<string name="status_bar_recents_card_stack_message">Would you like to enable recents card stack view?</string>
<string name="navbar_recents_clear_all_title">Clear all</string>
<string name="navbar_recents_clear_all_message">Would you like the recents button to clear all apps?</string>
<string name="floating_mode_blacklisted_app">The current app is blacklisted as it may not work as expected in floating mode</string>
<string name="status_bar_recent_floating_item_title">Floating mode</string>
10. add this to values/dimen.xml
HTML:
<dimen name="status_bar_recents_card_margin">15.0dip</dimen>
<dimen name="status_bar_recents_app_color_bar_height">50.0dip</dimen>
<dimen name="status_bar_recents_app_color_bar_label_size">16.0dip</dimen>
<dimen name="status_bar_recents_app_color_bar_icon_size">30.0dip</dimen>
<dimen name="status_bar_recents_app_color_bar_icon_margin">13.0dip</dimen>
<dimen name="status_bar_recents_app_color_bar_button_sep">9.0dip</dimen>
<dimen name="status_bar_recents_app_color_bar_button_margin">18.0dip</dimen>
<dimen name="status_bar_recents_app_color_bar_button_size">14.0dip</dimen>
11. add this to values/ids.xml
HTML:
<item type="id" name="floating_mode_blacklisted_app">false</item>
<item type="id" name="app_top_colored_bar">false</item>
<item type="id" name="app_floating">false</item>
<item type="id" name="app_kill">false</item>
<item type="id" name="app_thumbnail_border">false</item>
<item type="id" name="recent_launch_floating">false</item>
add this to values/color.xml
HTML:
<color name="status_bar_recents_app_bar_color">#ffdcdcdc</color>
<color name="status_bar_recents_app_label_color_dark">#e0181818</color>
<color name="status_bar_recents_app_label_color_light">#e0ffffff</color>
12. recompile and decompile again.
13. Go to smali\com\android\systemui\recent\HERE ... change the ids on smalis ... Because contain a lot off id so Im give my id public off my SystemUI and my Framework... use it to compere ids. Compare in this smali :
--> RecentTasksLoader.smali
--> RecentsVerticalScrollView.smali
--> RecentsPanelView.smali
--> RecentsHorizontalScrollView.smali
--> RecentsCardStackView.smali
--> RecentsActivity.smali
--> Recents.smali
--> FadedEdgeDrawHelper.smali
14. open basestatusbar in Lcom/android/systemui/statusbar/BaseStatusBar.smali
--> add this under # instance fields
Code:
.field protected mImmersiveModeStyle:I
--> search .method public toggleRecentApps()V
change whole method with this :
-->
Code:
.method public toggleRecentApps()V
.locals 2
const/16 v0, 0x3fc
iget-object v1, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mHandler:Lcom/android/systemui/statusbar/BaseStatusBar$H;
invoke-virtual {v1, v0}, Landroid/os/Handler;->removeMessages(I)V
iget-object v1, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mHandler:Lcom/android/systemui/statusbar/BaseStatusBar$H;
invoke-virtual {v1, v0}, Landroid/os/Handler;->sendEmptyMessage(I)Z
return-void
.end method
--> next search .method protected toggleRecentsActivity()V
change whole method with this :
-->
Code:
.method protected toggleRecentsActivity()V
.locals 4
iget-object v0, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mRecents:Lcom/android/systemui/RecentsComponent;
if-eqz v0, :cond_0
iget-boolean v0, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mBlockRecents:Z
if-nez v0, :cond_0
iget-object v0, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mRecents:Lcom/android/systemui/RecentsComponent;
iget-object v1, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mDisplay:Landroid/view/Display;
iget v2, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mLayoutDirection:I
invoke-virtual {p0}, Lcom/android/systemui/statusbar/BaseStatusBar;->getStatusBarView()Landroid/view/View;
move-result-object v3
iget p0, p0, Lcom/android/systemui/statusbar/BaseStatusBar;->mImmersiveModeStyle:I
invoke-interface {v0, v1, v2, v3, p0}, Lcom/android/systemui/RecentsComponent;->toggleRecents(Landroid/view/Display;ILandroid/view/View;I)V
:cond_0
return-void
.end method
15. go to Lcom/android/systemui/ replace RecentsComponent.smali with my RecentsComponent.smali which Im attachment.
16. All done ... RECOMPILE all edited apk and jar ... AND DONT FORGET TO SIGN THE APK FILE.
17. Put All editted file to flashable.zip and flash it....
Click to expand...
Click to collapse
I has been attached all file and the guide in xml type. Download in attached file.
I'm from Indonesian specially from Central Java and I'm bad in English so I'm so sorry for my bad English in whole text in this guide .
I'm only need a little Credit if you use this guide. Thank you!
DON'T FORGET TO HIT THANKS BUTTON IF YOU LIKE MY WORK AND HELP YOU :good: ​
For Video Recent Cardstact from this guide Go HERE YOUTUBE​
Thanks for this Guide will try it soon. One question: Where can I download Lollifox and Paranoid ROM??
Thank me, by hitting the Thanks Button!
AnDrOiiiD_YT said:
Thanks for this Guide will try it soon. One question: Where can I download Lollifox and Paranoid ROM??
Thank me, by hitting the Thanks Button!
Click to expand...
Click to collapse
For lollifox here XDA
For PA ROM you can download from everywhere use 4.6 beta version
Mantep bro:highfive:
fzn tools said:
Mantep bro:highfive:
Click to expand...
Click to collapse
Hihihi yuph ... try that om
Ih24n said:
Hihihi yuph ... try that om
Click to expand...
Click to collapse
Mumet om
fzn tools said:
Mumet om
Click to expand...
Click to collapse
Wkwkwk this is masih sederhana... all inti is di id2nya... basestatusbar only add instance field. And change method.... plis teliti semua smali kira2 ada id langsung compare... because if not all id changed with youre id ... recent will fc.
Ih24n said:
Wkwkwk this is masih sederhana... all inti is di id2nya... basestatusbar only add instance field. And change method.... plis teliti semua smali kira2 ada id langsung compare... because if not all id changed with youre id ... recent will fc.
Click to expand...
Click to collapse
Ok bro, u very very smart:highfive:
Manteeep om.. suksesss
savixx said:
Manteeep om.. suksesss
Click to expand...
Click to collapse
Sukses nerapin?
Good job mastah, i will try this ASAP :thumbsup:
Ih24n said:
Sukses nerapin?
Click to expand...
Click to collapse
Iyaaa om.
@DSttr said:
Good job mastah, i will try this ASAP :thumbsup:
Click to expand...
Click to collapse
I hope youre success sir om
savixx said:
Iyaaa om.
Click to expand...
Click to collapse
Wkwkwkwk selamat menikmati ...
An error .. while recompiling framework2.jar
Gifview.smali is giving me a recompiling error .. It's saying "Invalid literal value 16384. Low 16 bits must be zeroed out. And 4 other same type of error are there ". Help me ... Sir.
I am using Samsung Star Pro s7262 ROM : 4.1.2 jb
Chinmay.wiz said:
Gifview.smali is giving me a recompiling error .. It's saying "Invalid literal value 16384. Low 16 bits must be zeroed out. And 4 other same type of error are there ". Help me ... Sir.
I am using Samsung Star Pro s7262 ROM : 4.1.2 jb
Click to expand...
Click to collapse
Use apktool v1.5.2 for compile .jar. because smali in guide .jar i use apktool v1.5.2 to decompile it.
Is it work on Android4.3?
Timeral said:
Is it work on Android4.3?
Click to expand...
Click to collapse
I dont know will working on JB(4.3) and lower ... But to know it work or not just try and see work or not sir

Categories

Resources