[TUTORIAL][KK/JB 4.3][STOCK_ROM] Transparent Framework - Sony Cross-Device General

Transparent framework for Xperia KK/JB 4.3 Stock Rom (Update For Theme.Holo.Light)
This mod affect to Settins.apk, Conversations.apk and SemcPhone.apk
Screenshot:
{
"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"
}
Tested work on:
- Sony Xperia SP (JB 4.3)
- Sony Xperia Z (KK)
- Sony Xperia Z1 (KK)
I get the basic tutorial of thread by ZduneX25
REQUIREMENTS:
- Advance Apktool, you can get it here http://forum.xda-developers.com/showthread.php?t=2639400
- Notepad++
- 7zip
- Root Explorer
- A deodex rom
- Framework-res.apk​
1. Decompile Framework-res.apk
2. Open /res/value/drawable.xml with Notepad++ add the following lines:
Code:
<item type="drawable" name="kalel_background_white">#a6ffffff</item>
<item type="drawable" name="kalel_background">#80000000</item>
Save drawable.xml
3. Open /res/value/styles.xml with Notepad++
a. Find : <style name="Theme.Holo" parent="@style/Theme"> edit line
Code:
<item name="windowShowWallpaper">false</item>
To :
Code:
<item name="windowShowWallpaper">true</item>
do the same for
Code:
<style name="Theme.Holo.Light" parent="@style/Theme.Light">
b. Find: <style name="Theme.DeviceDefault" parent="@style/Theme.Holo"> edit:
Code:
<item name="windowBackground">@drawable/kalel_background</item>
find : <style name="Theme.DeviceDefault.Light" parent="@style/Theme.Holo.Light"> edit:
Code:
<item name="windowBackground">@drawable/kalel_background_white</item>
c. Add this code
Code:
<item name="windowShowWallpaper">false</item>
under this lines:
Code:
- <style name="Theme.NoTitleBar" parent="@style/Theme">
- <style name="Theme.Black" parent="@style/Theme">
- <style name="Theme.Light" parent="@style/Theme">
- <style name="Theme.Translucent" parent="@style/Theme">
- <style name="Theme.NoDisplay" parent="@style/Theme">
- <style name="Theme.Panel" parent="@style/Theme">
- <style name="Theme.WallpaperSettings" parent="@style/Theme">
- <style name="Theme.Holo.Dialog" parent="@style/Theme.Holo">
- <style name="Theme.Holo.Light.Dialog" parent="@style/Theme.Holo.Light">
- <style name="Theme.Holo.Panel" parent="@style/Theme.Holo">
- <style name="Theme.Holo.Light.Panel" parent="@style/Theme.Holo.Light">
- <style name="Widget.ListPopupWindow" parent="@style/Widget">
- <style name="Widget.Holo.AutoCompleteTextView" parent="@style/Widget.AutoCompleteTextView">
- <style name="Widget.Holo.Spinner" parent="@style/Widget.Spinner.DropDown">
- <style name="Widget.Holo.ListPopupWindow" parent="@style/Widget.ListPopupWindow">
- <style name="Widget.Holo.Light.AutoCompleteTextView" parent="@style/Widget.AutoCompleteTextView">
- <style name="Widget.Holo.Light.Spinner" parent="@style/Widget.Holo.Spinner">
- <style name="Widget.Holo.Light.ListPopupWindow" parent="@style/Widget.ListPopupWindow">
- <style name="Theme.Holo.Light.NoActionBar" parent="@style/Theme.Holo.Light">
- <style name="Theme.Holo.Light.DarkActionBar" parent="@style/Theme.Holo.Light">
- <style name="Theme.DeviceDefault.Dialog" parent="@style/Theme.DeviceDefault">
- <style name="Theme.DeviceDefault.Panel" parent="@style/Theme.DeviceDefault">
- <style name="Theme.DeviceDefault.Light.Panel" parent="@style/Theme.DeviceDefault.Light">
- <style name="Widget.DeviceDefault.AutoCompleteTextView" parent="@style/Widget.AutoCompleteTextView">
- <style name="Widget.DeviceDefault.Spinner" parent="@style/Widget.Holo.Spinner.DropDown">
- <style name="Widget.DeviceDefault.ListPopupWindow" parent="@style/Widget.Holo.ListPopupWindow">
- <style name="Widget.DeviceDefault.Light.AutoCompleteTextView" parent="@style/Widget.AutoCompleteTextView">
- <style name="Widget.DeviceDefault.Light.Spinner" parent="@style/Widget.DeviceDefault.Spinner">
- <style name="Widget.DeviceDefault.Light.ListPopupWindow" parent="@style/Widget.ListPopupWindow">
- <style name="Widget.WebTextView" parent="@style/Widget">
- <style name="Widget.GenericQuickContactBadge" parent="@style/Widget">
- <style name="Widget.QuickContactBadge.WindowSmall" parent="@style/Widget.QuickContactBadge">
- <style name="Widget.QuickContactBadge.WindowMedium" parent="@style/Widget.QuickContactBadge">
- <style name="Widget.TextSuggestionsPopupWindow" parent="@style/Widget">
- <style name="Widget.Holo.PopupWindow.ActionMode" parent="@style/Widget.Holo.PopupWindow">
- <style name="Widget.Holo.Light.PopupWindow.ActionMode" parent="@style/Widget.Holo.Light.PopupWindow">
- <style name="Widget.DeviceDefault.PopupWindow.ActionMode" parent="@style/Widget.Holo.PopupWindow.ActionMode">
- <style name="Theme.Dialog.NoFrame" parent="@style/Theme.Dialog">
- <style name="Theme.ExpandedMenu" parent="@style/Theme.Holo">
- <style name="Theme.Holo.Light.CompactMenu" parent="@style/Theme.Holo.Light">
- <style name="Theme.Toast" parent="@style/Theme.Dialog">
- <style name="Theme.Holo.Dialog.NoFrame" parent="@style/Theme.Holo.Dialog">
- <style name="Theme.DeviceDefault.Dialog.NoFrame" parent="@style/Theme.DeviceDefault.Dialog">
For sample:
4. Save styles.xml
5. edit file (semc_ab_solid_light_holo.9.png) this setings header transparency with photoshop or other program. (sample on attachment)
6. Recompile and sign Framework-res.apk
7. Copy Framework-res.apk to /system/framework zip installer (sample on attachment)
8. Install Zip in Recovery
Done
Thanks To; (if I forgot someone, please remember me)
- BDFreak
- Frogy Furnetral
- ZduneX25
- dickey
- All android users
Do With Your Own Risk

awesome kk.... nice guide....

ronii ahmad said:
awesome kk.... nice guide....
Click to expand...
Click to collapse

Useful tutorial. I want to ask why everytime I want to decompile or compile framework it's always error. Framework from stock rom.

can i use this for other devices, like Samsung, LG, etc ?

Awsome I'll try this on my xperia z
Sent from my C6603 using XDA Premium 4 mobile app

Whenever i enter the command in command prompt i get this error "java is not recognized as internal or external command,operable program or batch file"
How to fix this?

@kalel2012
Thanks a lot. Working fine on my L.

I'll wait for the Xposed module
Sent from my C6833 using Tapatalk

fails to compile
Xperia Z
4.3
10.4.1.B.0.101

Congratulations!!! Now on Xda portal

it is not possible to provide direct modual like xposed in this case???

Could you please be more clear on step 6. it seems a bit confusing. Thanks for tutorial
Edit: OK got the answer myself. need to push new build folder things to original Framework-res.apk

+1 Thanx.
it works on my MT6589 Cross a88
will wait another great tutorial from you suhu. _/|\_

zhalx said:
+1 Thanx.
it works on my MT6589 Cross a88
will wait another great tutorial from you suhu. _/|\_
Click to expand...
Click to collapse
How you forced translucent UI?

lukakas said:
How you forced translucent UI?
Click to expand...
Click to collapse
where translucent UI sir?

zhalx said:
where translucent UI sir?
Click to expand...
Click to collapse
I mean translucent statusbar.

No working Xperia Z 4.3 . I just get a Background Transperant when watching video
Please fix it

lukakas said:
I mean translucent statusbar.
Click to expand...
Click to collapse
oo, i follow this guide by Adi sir.
http://forum.xda-developers.com/showthread.php?t=2234355

nasheich said:
can i use this for other devices, like Samsung, LG, etc ?
Click to expand...
Click to collapse
not tested another devices
henry chip said:
No working Xperia Z 4.3 . I just get a Background Transperant when watching video
Please fix it
Click to expand...
Click to collapse
i think you need to edit semcvideo.apk

Related

[HOWTO] Add ICS 'Recent Apps' button (or other softkeys) to Status bar

Preview :
{
"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"
}
this mod is originally posted in nexus s forum.
[MOD] Add ICS 'Recent Apps' button to Status bar
i added just 'recent apps' button only but you can add other buttons what you want. like this :
anyway, if you want to add 'recent apps' button..
1) fix "APP_SWITCH" keycode to call ICS Recent Apps dialog.
- basically, same process to this mod : [HOWTO] Remap hardware button to ICS recent apps
platform/frameworks/base/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
from :
Code:
} else if (keyCode == KeyEvent.KEYCODE_APP_SWITCH) {
if (down && repeatCount == 0) {
showOrHideRecentAppsDialog(RECENT_APPS_BEHAVIOR_SHOW_OR_DISMISS);
}
return -1;
}
to :
Code:
} else if (keyCode == KeyEvent.KEYCODE_APP_SWITCH) {
if (down && repeatCount == 0 && !keyguardOn) {
try {
mStatusBarService.toggleRecentApps();
} catch (RemoteException e) {
Slog.e(TAG, "RemoteException when showing recent apps", e);
}
}
return -1;
}
2) modifiy Expanded Status bar layout
- decompile SystemUI.apk -> /res/layout/status_bar_expanded.xml
..or..
- platform/frameworks/base/packages/SystemUI/res/layout/status_bar_expanded.xml
from :
Code:
<RelativeLayout android:background="@drawable/notification_header_bg" android:paddingTop="3.0dip" android:paddingRight="3.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="52.0dip">
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="16.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_alignParentLeft="true" />
<ImageView android:id="@id/settings_button" android:paddingLeft="8.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_quicksettings" android:layout_toRightOf="@id/date" android:contentDescription="@string/accessibility_settings_button" />
<ImageView android:id="@id/clear_all_button" android:paddingLeft="8.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_clear" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_clear_all" />
</RelativeLayout>
to :
Code:
<RelativeLayout android:background="@drawable/notification_header_bg" android:paddingTop="3.0dip" android:paddingRight="3.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="52.0dip">
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Date" android:gravity="left|center" android:id="@id/date" android:paddingLeft="16.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" android:layout_alignParentLeft="true" />
<ImageView android:id="@id/settings_button" android:paddingLeft="8.0dip" android:paddingRight="4.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_quicksettings" android:layout_toRightOf="@id/date" android:contentDescription="@string/accessibility_settings_button" />
[COLOR="Blue"]<com.android.systemui.statusbar.policy.KeyButtonView android:paddingLeft="4.0dip" android:paddingRight="4.0dip" android:id="@id/recent_apps" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_recent" android:layout_toRightOf="@id/settings_button" android:contentDescription="@string/accessibility_recent" systemui:keyCode="187" systemui:glowBackground="@drawable/ic_sysbar_highlight" />[/COLOR]
<ImageView android:id="@id/clear_all_button" android:paddingLeft="8.0dip" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_notify_clear" android:layout_alignParentRight="true" android:contentDescription="@string/accessibility_clear_all" />
</RelativeLayout>
3) you'd better replace /res/drawable-****/ic_sysbar_recent.png with smaller one...
mine(in above preview - for hdpi) is here : http://www.mediafire.com/?qxy9l1emmeofa4s
-----------------------------------------------------------------------------
and caution
- when i tested this on stock rom, search button works only when long pressed (=voice search).
- adding some kind of button like menu or back is meaningless.. (surely)
- and at least on my phone(nexus s), ICS blue(#33b1e1) doesn't look same color to date and quick settings button.. (don't know why)
- and do not use this mod with tablet ui or onscreen softkeys mod.
- and if you cannot compile android.policy.jar for some reason, try with my files instead.
you can find my files in these thread :
[MOD] Search key to ICS recent apps
[MOD] Add ICS 'Recent Apps' button to Status bar
and be careful. you should use suitable version to your rom. so if your cm9 rom was built few weeks ago, do not try with latest version of my mod.
I've been looking for this quite a while because my homebutton doesn't work that good anymore.
I'm running a Samsung galaxy s with teamhacksung ICS build 17.
Is there any chance you could make a flashable zip for this because I have absolutely no clue in coding. I'm just consuming these incredible things here on xda
It is very beautiful, thank you for your doing!
Sent from my MotoA953
I read all post from nexus because I'm using cm9 and they have made wonderful mod for it,but no guide at all,but you're really awesome because you made a guide and was really helping me port it to my phone,thanks!!!
from the ARC
Just flashed this and it seems to be working fine on the LG optimus v.
Where can I find the .java file in SystemUI.apk?
I want to include that in my own update.zip
F.West98 said:
Where can I find the .java file in SystemUI.apk?
I want to include that in my own update.zip
Click to expand...
Click to collapse
sorry but you have to compile from source code..
https://github.com/android/platform.../internal/policy/impl/PhoneWindowManager.java
What to do with that file?
I don't know exactly, it's my first own mod
F.West98 said:
What to do with that file?
I don't know exactly, it's my first own mod
Click to expand...
Click to collapse
apply above fix related to "APP_SWITCH" keycode and compile android.policy.jar.
you have to download entire ics source code to compile this..
maybe same thing can be done simply by smali editing but sorry, i don't know how..
But then it isn't CM9 anymore, is it?
Can't I download only the needed files from Github? And how to make it flashable?
Ah I understand something
I can place the .jar file (compiled) into the folder 'frameworks' in my flashable zip, there is also an apk (framework-res)
I have to download the complete source code and I only have to change the file (.java), which I compile as the .jar
Correct?
(but why do I need the whole source code, I'm on Windows...)
chucksaysblah said:
Just flashed this and it seems to be working fine on the LG optimus v.
Click to expand...
Click to collapse
How did you flash it on your LG? Did you recompile from source or something else?
F.West98 said:
But then it isn't CM9 anymore, is it?
Can't I download only the needed files from Github? And how to make it flashable?
Ah I understand something
I can place the .jar file (compiled) into the folder 'frameworks' in my flashable zip, there is also an apk (framework-res)
I have to download the complete source code and I only have to change the file (.java), which I compile as the .jar
Correct?
(but why do I need the whole source code, I'm on Windows...)
Click to expand...
Click to collapse
firstly, i recommend you read this : How to compile ICS
and if you want to use this on CM9, download CM source instead of AOSP.
https://github.com/CyanogenMod
download single framework file's source code and compile that one file is impossible. so you have to download entire ics source code..
and if you want to use what you made personally, you don't have to make flashable zip. just push modified files to your system using adb or (easily) android commander.
http://androidcommander.com/
So I have to wait 4 hours and only pick 1 file of evrything?
Flashable ZIP is easy for me
edit: and I have to restart my PC, save everything, check the x64-option in the BIOS, install virtualbox, download linux and install it?
Can't anyone compile for me? :S
Here are the edits as a github commit for devs coming along wanting to integrate this into existing source: https://github.com/ThePlayground/an...mmit/0377e4b83e616a68395a82ba902d2757a16627d5
Thanks for the mod. It's a great idea
twistedumbrella said:
Here are the edits as a github commit for devs coming along wanting to integrate this into existing source: https://github.com/ThePlayground/an...mmit/0377e4b83e616a68395a82ba902d2757a16627d5
Thanks for the mod. It's a great idea
Click to expand...
Click to collapse
wow.. I guess I should thank you. it would be great pleasure to me if this mod is useful for many users
good work! but just a question: whye dont anyone add that downstears like the original ics for nexus?
Good job OP. BTW, ICS color code in hex is 33b5e5 I believe.
Sent from my Galaxy Nexus using xda premium
awesome!!!
it's very convenient on Galaxy S
rugal28 said:
awesome!!!
it's very convenient on Galaxy S
Click to expand...
Click to collapse
Can you post it as flashable zip?
Great will compile later
Thx.

[TUTORIAL] How to transform your settings.apk in perfect Honami Settings UPDATE 27/11

Many people are asking me how to clone Honami settings. Changing some png is not difficult at all but when we need to edit the smali files it's different.
So I will explain some differents parts such:
How to have black text on google account settings.
How to add Auto Synch Switcher.
How to add your personal sub menu settings.
How to add any applications in settings.
How to have black text on google account settings.
Many are thinking that the color of this text is defined by an xml in styles.xml or with a color. That's why no body exepting me as been able to have the correct text color.
This text color is in fact defined by the google account and the color is white by default. Modding the text color inside google applications is not a good solution for Sony dev as an update would have change the color again.
Sony have choose to convert the white text color to black inside the smali files of settings, so even if the user update the google app, the text will always have the right color.
{
"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"
}
Instructions
1) Copy GenericSettingsFragment.smali in smali/com/sonymobile/settings
2) Copy ProxyPreferenceRootAdapter in smali/com/sonymobile/settings/preference
3) In smali/com/android/settings/accounts/ManageAccountsSettings.smali
Replace full method addAuthenticatorSettings()V
Code:
.method private addAuthenticatorSettings()V
.locals 3
.prologue
.line 357
iget-object v1, p0, Lcom/android/settings/accounts/ManageAccountsSettings;->mAccountType:Ljava/lang/String;
invoke-virtual {p0}, Lcom/android/settings/accounts/ManageAccountsSettings;->getPreferenceScreen()Landroid/preference/PreferenceScreen;
move-result-object v2
invoke-virtual {p0, v1, v2}, Lcom/android/settings/accounts/ManageAccountsSettings;->addPreferencesForType(Ljava/lang/String;Landroid/preference/PreferenceScreen;)Landroid/preference/PreferenceScreen;
move-result-object v0
.line 358
.local v0, prefs:Landroid/preference/PreferenceScreen;
if-eqz v0, :cond_0
.line 359
invoke-direct {p0, v0}, Lcom/android/settings/accounts/ManageAccountsSettings;->updatePreferenceIntents(Landroid/preference/PreferenceScreen;)V
.line 361
:cond_0
return-void
.end method
by
Code:
.method private addAuthenticatorSettings()V
.locals 4
.prologue
.line 364
iget-object v2, p0, Lcom/android/settings/accounts/ManageAccountsSettings;->mAccountType:Ljava/lang/String;
invoke-virtual {p0}, Lcom/android/settings/accounts/ManageAccountsSettings;->getPreferenceScreen()Landroid/preference/PreferenceScreen;
move-result-object v3
invoke-virtual {p0, v2, v3}, Lcom/android/settings/accounts/ManageAccountsSettings;->addPreferencesForType(Ljava/lang/String;Landroid/preference/PreferenceScreen;)Landroid/preference/PreferenceScreen;
move-result-object v0
.line 365
.local v0, prefs:Landroid/preference/PreferenceScreen;
if-eqz v0, :cond_0
.line 366
invoke-direct {p0, v0}, Lcom/android/settings/accounts/ManageAccountsSettings;->updatePreferenceIntents(Landroid/preference/PreferenceScreen;)V
.line 372
:cond_0
new-instance v1, Lcom/sonymobile/settings/preference/ProxyPreferenceRootAdapter;
invoke-virtual {p0}, Lcom/android/settings/accounts/ManageAccountsSettings;->getActivity()Landroid/app/Activity;
move-result-object v2
invoke-virtual {p0}, Lcom/android/settings/accounts/ManageAccountsSettings;->getPreferenceScreen()Landroid/preference/PreferenceScreen;
move-result-object v3
invoke-virtual {v3}, Landroid/preference/PreferenceScreen;->getRootAdapter()Landroid/widget/ListAdapter;
move-result-object v3
invoke-direct {v1, v2, v3}, Lcom/sonymobile/settings/preference/ProxyPreferenceRootAdapter;-><init>(Landroid/content/Context;Landroid/widget/ListAdapter;)V
.line 375
.local v1, proxyAdapter:Lcom/sonymobile/settings/preference/ProxyPreferenceRootAdapter;
invoke-virtual {p0}, Lcom/android/settings/accounts/ManageAccountsSettings;->getListView()Landroid/widget/ListView;
move-result-object v2
invoke-virtual {v2, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V
.line 376
return-void
.end method
How to add Auto Synch Switcher
The Honami settings introduce a new switcher that you can use the same way as Wifi and Bluetooth, the Auto Synch Switcher.
I will show you an easy way to add it but I will have to teach you how are working the ID first
Little introduction to ID
What are the ID?
To tell you what they are, first I must tell you where they are... Open public.xml found in res/value and you will see something like that:
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<public type="attr" name="state_encrypted" id="[COLOR="Red"]0x7f010000[/COLOR]" />
<public type="attr" name="icon" id="0x7f010001" />
<public type="attr" name="emptyColor" id="0x7f010002" />
<public type="attr" name="minTickWidth" id="0x7f010003" />
<public type="attr" name="optimalWidth" id="0x7f010004" />
<public type="attr" name="optimalWidthWeight" id="0x7f010005" />
<public type="attr" name="sweepDrawable" id="0x7f010006" />
<public type="attr" name="followAxis" id="0x7f010007" />
<public type="[COLOR="DarkOrange"]drawable[/COLOR]" name="preview" id="0x7f0200b8" />
<public type="drawable" name="appwidget_button_center" id="0x7f020001" />
<public type="drawable" name="appwidget_button_left" id="0x7f020002" />
<public type="drawable" name="appwidget_button_right" id="0x7f020003" />
<public type="drawable" name="btn_check_buttonless_on" id="0x7f020014" />
<public type="drawable" name="data_sweep_left" id="[COLOR="Lime"]0x7f[/COLOR]020018" />
<public type="mipmap" name="ic_launcher_settings" id="0x7f[COLOR="Magenta"]03[/COLOR]0000" />
<public type="layout" name="account_preference" id="0x7f040001" />
<public type="layout" name="account_sync_screen" id="0x7f040002" />
<public type="layout" name="add_account_screen" id="0x7f04[COLOR="Silver"]0003[/COLOR]" />
I've added some color to explain what are the different parts:
In Red you have the full ID, the long number will be used in the differents smali files as a shortcut.
In Dark Orange you have the type of ID, there are many differents type such as drawable, layout, styles, id, ...
In Lime you can see that the 4 first characters are always 0x7f, all IDs used by an apk who are inside this apk are starting by that.
In Magenta you can see two more characters, these two are related to the type saw earlier, for example type drawable 02, type layout 04, ...
In Silver you have the last 4 characters who are related to different names used for a same type. These numbers are in hexadecimal.
I need to show you an other place where you can find ID, inside framework-res.apk, Open public.xml found in res/value and you will see something like that:
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<public type="attr" name="theme" id="[COLOR="Red"]0x01010000[/COLOR]" />
<public type="attr" name="label" id="0x01010001" />
<public type="attr" name="icon" id="0x01010002" />
<public type="attr" name="name" id="[COLOR="Lime"]0x010[/color]10003" />
<public type="attr" name="manageSpaceActivity" id="0x01010004" />
<public type="attr" name="allowClearUserData" id="0x01010005" />
<public type="attr" name="permission" id="0x01010006" />
<public type="id" name="background" id="0x01020000" />
<public type="id" name="checkbox" id="0x01020001" />
<public type="id" name="content" id="0x01020002" />
<public type="id" name="edit" id="0x01[COLOR="Magenta"]02[/color]0003" />
<public type="id" name="empty" id="0x01020004" />
<public type="style" name="Animation" id="0x01030000" />
<public type="style" name="Animation.Activity" id="0x01030001" />
<public type="style" name="Animation.Dialog" id="0x01030002" />
<public type="style" name="Animation.Translucent" id="0x01030003" />
<public type="style" name="Animation.Toast" id="0x01030004" />
<public type="style" name="Theme" id="0x01030005" />
<public type="style" name="Theme.NoTitleBar" id="0x0103[COLOR="Silver"]0006[/color]" />
I have used the same colors as before because this is exactly working the same way with some little variations.
The first characters are now 0x01 instead of 0x7, that means that these ID are inside framework-res.apk
BUT be carefull, when the IDs are used inside the smali files of an APK, the first zero after the x is always removed.
Example: 0x01030002 found in public.xml of framework-res.apk will be wrote inside a smali of an APK -> 0x1030002
Instructions
Now I can finally start
1) Copy AutoSyncEnabler.smali, AutoSyncDialogFragment.smali, AutoSyncDialogFragment$1.smali and AutoSyncDialogFragment$2.smali in smali/com/android/settings/
2) Open AutoSyncDialogFragment.smali with notepad++ and search "0x7" without the quote.
You will found 4 ID as explained, these ID are related to MY Settings.apk, that means that inside your apk, these "Shortcuts" may not be the good one...
I have include the public.xml found in MY settings.apk and called it public-settings.xml, open it too with notepad++ and in the same time open YOUR public.xml found in YOUR settings.apk
Let's do it for the first ID found in the smali: 0x7f0b067a, search now the full ID inside my public.xml, you will found this:
Code:
<public type="string" name="data_usage_auto_sync_off_dialog_title" id="[COLOR="Red"]0x7f0b067a[/COLOR]" />
So this ID is a shortcut for the "string" named "data_usage_auto_sync_off_dialog_title"
Now search in YOUR public.xml: "data_usage_auto_sync_off_dialog_title" without the quote and check if the full ID is the same. If the ID is different, use this one inside the smali files.
Do the same with all ID starting by 0x7
3) Copy Settings$HeaderAdapter.smali in smali/com/android/settings/ and open it with notepad++
Do a search for all ID starting by 0x7 and check between MY public.xml and YOUR public.xml
Do also a search for all ID starting by 0x1 (ID related to framework-res.apk) (You must found 5 different ID)
The first one found is 0x1010208
As I told you ID related to framework-res.apk found in smali are slightly different when they are in the public.xml of framework-res.apk (Remember the first character after the x ? )
I have include the public.xml found in MY framework-res.apk and called it public-framework-res.xml. Open MY public-framework-res.xml and YOUR public.xml of YOUR framework-res.apk
Do a search for "0x01010208" without the quote (I have added a zero after the x ) in MY public.xml and you will found that:
Code:
<public type="attr" name="listSeparatorTextViewStyle" id="0x01010208" />
Now search "listSeparatorTextViewStyle" inside YOUR public.xml and check if the ID are the same, if different replace with the correct one (Don't forget to remove the zero in the smali).
reserved
last one
That´s my friend!!! Awesome bro... :good:
Thank u so much!!
This is a great guide bro @niaboc79
very good
just keep doing your things, im happy with this !!
Thanks for this.
Quick question, how about porting Quick Settings ?
Reason i'm asking is, i have a Xperia C, it's quick settings are the ancient type, unlike the one from Xperia Z onwards where you can have 2 rows of customizable settings.
I've saw how you can edit the Settings.apk and link it to a Toolsetting.apk, where you can choose which quick setting to appear.
But you will still need to edit SystemUI.apk, which i guess that's the hardest part with all the smali edit.
Hope you can help.
Thanks.
Pandemic said:
This is a great guide bro @niaboc79
very good
just keep doing your things, im happy with this !!
Click to expand...
Click to collapse
I will complete when time
Envoyé de mon C6603 en utilisant Tapatalk
takagen said:
Thanks for this.
Quick question, how about porting Quick Settings ?
Reason i'm asking is, i have a Xperia C, it's quick settings are the ancient type, unlike the one from Xperia Z onwards where you can have 2 rows of customizable settings.
I've saw how you can edit the Settings.apk and link it to a Toolsetting.apk, where you can choose which quick setting to appear.
But you will still need to edit SystemUI.apk, which i guess that's the hardest part with all the smali edit.
Hope you can help.
Thanks.
Click to expand...
Click to collapse
Are you on JB or ICS?
Envoyé de mon C6603 en utilisant Tapatalk
niaboc79 said:
Are you on JB or ICS?
Envoyé de mon C6603 en utilisant Tapatalk
Click to expand...
Click to collapse
I'm on JB.
takagen said:
I'm on JB.
Click to expand...
Click to collapse
I will post a new tutorial about systemUI when I will have finished thos one
Envoyé de mon C6603 en utilisant Tapatalk
niaboc79 said:
I will post a new tutorial about systemUI when I will have finished thos one
Envoyé de mon C6603 en utilisant Tapatalk
Click to expand...
Click to collapse
That's great. Thanks.
Congratulations! You tutorial is on XDA Portal: http://www.xda-developers.com/android/change-your-google-account-font-color-in-honami-based-roms/
Btw the settings inside your ROM already has these features, right?
cities516 said:
Congratulations! You tutorial is on XDA Portal: http://www.xda-developers.com/android/change-your-google-account-font-color-in-honami-based-roms/
Btw the settings inside your ROM already has these features, right?
Click to expand...
Click to collapse
Yeah twice on 2 weeks on portal
Yes all my eXistenZ are including it.
Envoyé de mon C6603 en utilisant Tapatalk
can you help me how to full white backup and restore app?
tnx
Thank you for your TUT. It's very useful.
And I have interest how to port honami camera.
I know it maybe very difficult or hard to say.
Can you make a TUT for this?
problem recompiling
bro @niaboc79. i am using honami rom for tx by EXR.MING group. i am getting error while compiling. i am attaching my log. i also have this kind of view in settings/enhaced mode/xposed framework. please help
problem recompiling
bro @NiObac. i am using honami rom for tx by EXR.MING group. i am getting error while compiling. i am attaching my log. i also have this kind of view in settings/enhaced mode/xposed framework. please help
You need to spam @romeoofair ??
Change the framework in apktool with the one from the rom you using now and try again !!
Sent from my LT22i using Tapatalk
Pandemic said:
You need to spam @romeoofair ??
Change the framework in apktool with the one from the rom you using now and try again !!
Sent from my LT22i using Tapatalk
Click to expand...
Click to collapse
but i always install the framework which i use at that instant. i already installed the new framework i am using now. nut i got the error. check my log.any solution? i already posted my files up there

[solved] [Q] PAC kk build help...!!! (10-02-2014)

EDIT : Error solved
i am facing an error while building PAC 4.4 Alpha Update for my Xperia LWW...i googled around for the exact same error and got to know that it might be caused due to low memory...but i hav a Swap Partition of 15 GB (i know its a lot of SWAP but its to b on the safer side:fingers-crossed and i hav built successfully last week with the same PC config....
Heres the log :
Code:
PRODUCT_COPY_FILES vendor/cm/prebuilt/common/bootanimation/320.zip:system/media/bootanimation.zip ignored.
No private recovery resources for TARGET_DEVICE coconut
make -C kernel/semc/msm7x30 O=/home/admin01/1packk/out/target/product/coconut/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/admin01/1packk/prebuilts/misc/linux-x86/ccache/ccache /home/admin01/1packk/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" VARIANT_DEFCONFIG= SELINUX_DEFCONFIG= nAa_coconut_defconfig
make[1]: Entering directory `/home/admin01/1packk/kernel/semc/msm7x30'
GEN /home/admin01/1packk/out/target/product/coconut/obj/KERNEL_OBJ/Makefile
host Executable: clang (/home/admin01/1packk/out/host/linux-x86/obj/EXECUTABLES/clang_intermediates/clang)
#
# configuration written to .config
#
make[1]: Leaving directory `/home/admin01/1packk/kernel/semc/msm7x30'
Target buildinfo: /home/admin01/1packk/out/target/product/coconut/system/build.prop
make: Circular /home/admin01/1packk/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk <- /home/admin01/1packk/out/target/common/obj/APPS/framework-res_intermediates/src/R.stamp dependency dropped.
target Java: bouncycastle (/home/admin01/1packk/out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/classes)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
JarJar: /home/admin01/1packk/out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/classes-jarjar.jar
/home/admin01/1packk/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../lib/gcc/i686-linux/4.6.x-google/../../../../i686-linux/bin/ld: BFD (GNU Binutils) 2.21 internal error, aborting at /i/toolchain-src//binutils/binutils-2.21/bfd/merge.c line 873 in _bfd_merged_section_offset
/home/admin01/1packk/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/bin/../lib/gcc/i686-linux/4.6.x-google/../../../../i686-linux/bin/ld: Please report this bug.
collect2: ld returned 1 exit status
make: *** [/home/admin01/1packk/out/host/linux-x86/obj/EXECUTABLES/clang_intermediates/clang] Error 1
make: *** Waiting for unfinished jobs....
/home/admin01/1packk/out/target/product/coconut/pac_coconut-ota-eng.admin01.zip doesn't exist!
Total time elapsed: 9 minutes 20 seconds
********************************************************************************
*******************************PLEASE READ THIS!!*******************************
Please remember that this source is currently for private builds ONLY!
Public builds are NOT ALLOWED, all public builds will be removed.
It will be welcomed after nightlies begin. Thank you, the Developers.
*******************************PLEASE READ THIS!!*******************************
********************************************************************************
[email protected]:~/1packk$
so pls help me:crying: out if u can...cos i dont understand why i am getting the mentioned error when my previous builds were successful??...is my VERY Large SWAP partition creating the problem??or something else??
OLD post:
hello everyone i am again building (as i want to update) PAC 4.4 alpha for my SE LWW but now my PAC kk build seems to fail again nd again ...
heres what i did...
i tried to cherry-pick quicksettings 2.0 from PA from here and the build failed...
so i repo synced again to revert the changes from cherry pick nd built again but still failed...
tried many things nd got several errors nd builds failed..
then i deleted the whole of the frameworks folders (as the above commit affects it) both from the working dir as well as .repo/projects and repo synced again to download the source for it again...
but even after all this the build failed...so pls tel me what to do???
the error pic is here :silly: or below...
{
"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"
}
EDIT :
I did a clean build and it finished successfully ....
skull47 said:
hello everyone i am again building (as i want to update) PAC 4.4 alpha for my SE LWW but now my PAC kk build seems to fail again nd again ...
heres what i did...
i tried to cherry-pick quicksettings 2.0 from PA from here and the build failed...
so i repo synced again to revert the changes from cherry pick nd built again but still failed...
tried many things nd got several errors nd builds failed..
then i deleted the whole of the frameworks folders (as the above commit affects it) both from the working dir as well as .repo/projects and repo synced again to download the source for it again...
but even after all this the build failed...so pls tel me what to do???
the error pic is here :silly: or below...
pls help me out if possible:fingers-crossed:...it would be much appreciated as I AM TRYING TO LEARN:silly: NEW THINGS
thanks:good::highfive:
Click to expand...
Click to collapse
Post the contents of ~/1packk/.repo/local_manifests.xml
Also, do you have any other .xml files in that folder? If so, post them also.
Langes said:
Post the contents of ~/1packk/.repo/local_manifests.xml
Also, do you have any other .xml files in that folder? If so, post them also.
Click to expand...
Click to collapse
thnks a ton for replyin here...sorry to disturb u thru PM...but after i PMed u i remembered about this forum so posted here too...
nywys the code:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="LegacyXperia/android_device_semc_coconut" path="device/semc/coconut" remote="github" revision="cm-11.0" />
<project name="LegacyXperia/android_device_semc_mogami-common" path="device/semc/mogami-common" remote="github" revision="cm-11.0" />
<project name="LegacyXperia/android_device_semc_msm7x30-common" path="device/semc/msm7x30-common" remote="github" revision="cm-11.0" />
<project name="LegacyXperia/msm7x30-3.4.x-nAa" path="kernel/semc/msm7x30" remote="github" revision="cm-11.0" />
<project name="CyanogenMod/android_hardware_sony_DASH" path="hardware/sony/DASH" remote="github" revision="cm-11.0" />
<project name="LegacyXperia/proprietary_vendor_semc" path="vendor/semc" remote="github" revision="cm-11.0" />
<remove-project name="androidarmv6/android_hardware_qcom_display-legacy" path="hardware/qcom/display-legacy" revision="cm-10.2" />
<remove-project name="androidarmv6/android_hardware_qcom_media_legacy" path="hardware/qcom/media-legacy" revision="cm-10.2" />
<project name="LegacyXperia/android_hardware_qcom_audio-legacy" path="hardware/qcom/audio-legacy" />
<project name="LegacyXperia/android_hardware_qcom_display-legacy" path="hardware/qcom/display-legacy" revision="cm-11.0_old" />
<project name="LegacyXperia/android_hardware_qcom_media-legacy" path="hardware/qcom/media-legacy" revision="cm-11.0_old" />
<project name="CyanogenMod/android_external_wpa_supplicant_8_ti" path="external/wpa_supplicant_8_ti" revision="cm-10.2" />
<project name="Pinky-Inky-and-Clyde/proprietary_vendor_semc" path="vendor/semc" remote="github" revision="cm-11.0" />
</manifest>
EDIT: just noticed the vendor_semc conflict...removing LEGACYXPERIA's vendor/semc nd trying out again...
EDIT 2: no change...error still remains...nd noo there is no other .xml file here...
skull47 said:
thnks a ton for replyin here...sorry to disturb u thru PM...but after i PMed u i remembered about this forum so posted here too...
nywys the code:
EDIT: just noticed the vendor_semc conflict...removing LEGACYXPERIA's vendor/semc nd trying out again...
Click to expand...
Click to collapse
Was just about to point that out
It is also good practice to put your "remove-project" lines at the top. Other than that, everything looks good.
Are you cherry-picking anything before building?
You need only 55805 from CM, the others that are in LX updates.sh are not needed for PAC or already merged in PAC frameworks/av
Langes said:
Was just about to point that out
It is also good practice to put your "remove-project" lines at the top. Other than that, everything looks good.
Are you cherry-picking anything before building?
You need only 55805 from CM, the others that are in LX updates.sh are not needed for PAC or already merged in PAC frameworks/av
Click to expand...
Click to collapse
yes i am cherry picking only 55805 b4 building...
EDIT 2: no change...error still remains...nd noo there is no other .xml file here...
repo sync stuck at 99%
Langes said:
Was just about to point that out
It is also good practice to put your "remove-project" lines at the top. Other than that, everything looks good.
Are you cherry-picking anything before building?
You need only 55805 from CM, the others that are in LX updates.sh are not needed for PAC or already merged in PAC frameworks/av
Click to expand...
Click to collapse
the above mentioned error still occurs and not able to build...what shud i do???
and now another problem i am facing is that the repo sync command gets stuck at 99%..and ya i checked my network connections and they are all right...i even tried repo sync -f and left it for the whole night but still it is stuck at 99%...so pls help me out here...atached screenshot below...
skull47 said:
the above mentioned error still occurs and not able to build...what shud i do???
and now another problem i am facing is that the repo sync command gets stuck at 99%..and ya i checked my network connections and they are all right...i even tried repo sync -f and left it for the whole night but still it is stuck at 99%...so pls help me out here...atached screenshot below...
Click to expand...
Click to collapse
For the repo sync error, you should remove LegacyXperia/android_hardware_qcom_adio-legacy from roomsevice
file contect required
Langes said:
For the repo sync error, you should remove LegacyXperia/android_hardware_qcom_adio-legacy from roomsevice
Click to expand...
Click to collapse
thanks for the tip it worked...
can u or any one building PAC 4.4 pls tell me the contents of the file SkPDFDevice.P after the line 232 ( file location :
/your-working-directory/out/target/product/coconut/obj/SHARED_LIBRARIES/libskia_intermediates/src/pdf )
@3andala @Micha_Btz (sry to disturb u both but since u both hav built pac 4.4 u could help:fingers-crossed: me out)
thanks
skull47 said:
@3andala @Micha_Btz (sry to disturb u both but since u both hav built pac 4.4 u could help:fingers-crossed: me out)
thanks
Click to expand...
Click to collapse
i don't have build pac 4.4.x yet.
sry..my bad..
Micha_Btz said:
i don't have build pac 4.4.x yet.
Click to expand...
Click to collapse
oh sry my bad...but still could u tell me the file content of the 4.3 sources..they might help me out...
thanks for ur reply...
New Error
OP updated...
skull47 said:
OP updated...
Click to expand...
Click to collapse
Are you still having build errors?
Sent from my SCH-I605 using Tapatalk
gchild320 said:
Are you still having build errors?
Sent from my SCH-I605 using Tapatalk
Click to expand...
Click to collapse
nope built successfully...the problem was tat the swap partition was not active...i did swapon and rebuilt...it worked...
nywyz thanks for replyin

[TUTORIAL] [4.1+] [UPDATE : 20.06.2014] Basic System Apps Mods Tutorials

Friends
Here I Am Presenting You Some Basic Tutorials For Different System Based Apps. You Can Mod Different Apks With This Simple Basic Tutorials... Please Note That This Tutorials Will Only Work in A Deodexed ROMS... U Should Know How To Decompile apks and Recompile Then Sign.. U Can Check In Different Foorums For That Tutorials If U Don't Know About That..
Lets Begin ...
(1) SEMCPHONE.apk
Click to expand...
Click to collapse
(a) Enable Call Recording
De Compile SemcPhone.apk
Go To res/values/bools.xml
Find This Line
[*]<bool name="enable_call_recording">false</bool>
And Change It To This
[*]<bool name="enable_call_recording">true</bool>
Save And Re Compile Apk Then Use It.
(b) Disable Data Charge Warning Pop UP
De Compile SemcPhone.apk
Go To res/values/bools.xml
Find This Line
[*]<bool name="disable_charge_popups">false</bool>
And Change It To This
[*]<bool name="disable_charge_popups">true</bool>
Save And Re Compile Apk Then Use It.
(c) Disable Data Disabled / Enabled Notifications
De Compile SemcPhone.apk
Go To res/values/bools.xml
Find This Line
[*]<bool name="data_connection_except_mms_show_icon_when_disabled">true</bool>
And Change It To This
[*]<bool name="data_connection_except_mms_show_icon_when_disabled">false</bool>
Save And Re Compile Apk Then Use It.
(d) Enable Speaker Voice Enhancement
De Compile SemcPhone.apk
Go To res/values/bools.xml
Find This Line
[*]<bool name="enable_speaker_voice_enhancement">false</bool>
And Change It To This
[*]<bool name="enable_speaker_voice_enhancement">true</bool>
Save And Re Compile Apk Then Use It.
(e) Enable 2G Only Mod
De Compile SemcPhone.apk
Go To res/values/bools.xml
Find This Line
[*]<bool name="prefer_2g_visibility">false</bool>
And Change It To This
[*]<bool name="prefer_2g_visibility">true</bool>
Save And Re Compile Apk Then Use It.
(f) Enable Call Ended Screen
De Compile SemcPhone.apk
Go To res/values/bools.xml
Find This Line
[*]<bool name="enable_call_ended_screen">false</bool>
And Change It To This
[*]<bool name="enable_call_ended_screen">true</bool>
Save And Re Compile Apk Then Use It.
(g) Enable Auto Rety Call
De Compile SemcPhone.apk
Go To res/values/bools.xml
Find This Line
[*]<bool name="auto_retry_enabled">false</bool>
And Change It To This
[*]<bool name="auto_retry_enabled">true</bool>
Save And Re Compile Apk Then Use It.
(h) Disable Reject Call With Message Option
De Compile SemcPhone.apk
Go To res/layout/somc_incallscreen_reject_msgs_drawer.xml
Find These Lines
Code:
<ImageView android:id="@id/handleArrow" android:paddingTop="@dimen/somc_incallscreen_reject_msgs_drawer_handle_paddingTop" android:paddingBottom="@dimen/somc_incallscreen_reject_msgs_drawer_handle_paddingBottom" android:layout_width=[COLOR="Red"]"fill_parent"[/COLOR] android:layout_height=[COLOR="Red"]"wrap_content"[/COLOR] android:src="@drawable/ic_reject_call_grips" />
<TextView android:textSize=[COLOR="Red"]"@dimen/somc_incallscreen_reject_msgs_drawer_handle_text_size"[/COLOR] android:id="@id/handleText" android:layout_width=[COLOR="Red"]"fill_parent"[/COLOR] android:layout_height=[COLOR="Red"]"wrap_content"[/COLOR] android:text="@string/phone_strings_ans_mach_response_options_tab_txt" android:fontFamily="sans-serif-light" android:textAlignment="center" />
<View android:background="@drawable/list_divider_horizontal" android:layout_width=[COLOR="Red"]"fill_parent"[/COLOR] android:layout_height=[COLOR="Red"]"@dimen/somc_incallscreen_reject_msgs_drawer_list_divider_height"[/COLOR] android:layout_marginStart="@dimen/somc_incallscreen_reject_msgs_drawer_list_margin_left" android:layout_marginEnd="@dimen/somc_incallscreen_reject_msgs_drawer_list_margin_right" />
<ListView android:layout_gravity="center_horizontal" android:id="@id/rejectMsgList" android:layout_width=[COLOR="Red"]"fill_parent"[/COLOR] android:layout_height=[COLOR="Red"]"wrap_content"[/COLOR] android:listSelector="@android:color/transparent" android:divider="@drawable/list_divider_horizontal" android:dividerHeight="@dimen/somc_incallscreen_reject_msgs_drawer_list_divider_height" android:footerDividersEnabled="false" android:layout_marginStart="@dimen/somc_incallscreen_reject_msgs_drawer_list_margin_left" android:layout_marginEnd="@dimen/somc_incallscreen_reject_msgs_drawer_list_margin_right" />
And Change It To This
Code:
<ImageView android:id="@id/handleArrow" android:paddingTop="@dimen/somc_incallscreen_reject_msgs_drawer_handle_paddingTop" android:paddingBottom="@dimen/somc_incallscreen_reject_msgs_drawer_handle_paddingBottom" android:layout_width=[COLOR="Red"]"0.0dip"[/COLOR] android:layout_height=[COLOR="Red"]"0.0dip"[/COLOR] android:src="@drawable/ic_reject_call_grips" />
<TextView android:textSize=[COLOR="Red"]"0.0dip"[/COLOR] android:id="@id/handleText" android:layout_width=[COLOR="Red"]"0.0dip"[/COLOR] android:layout_height=[COLOR="Red"]"0.0dip"[/COLOR] android:text="@string/phone_strings_ans_mach_response_options_tab_txt" android:fontFamily="sans-serif-light" android:textAlignment="center" />
<View android:background="@drawable/list_divider_horizontal" android:layout_width=[COLOR="Red"]"0.0dip"[/COLOR] android:layout_height=[COLOR="Red"]"0.0dip"[/COLOR] android:layout_marginStart="@dimen/somc_incallscreen_reject_msgs_drawer_list_margin_left" android:layout_marginEnd="@dimen/somc_incallscreen_reject_msgs_drawer_list_margin_right" />
<ListView android:layout_gravity="center_horizontal" android:id="@id/rejectMsgList" android:layout_width=[COLOR="Red"]"0.0dip"[/COLOR] android:layout_height=[COLOR="Red"]"0.0dip"[/COLOR] android:listSelector="@android:color/transparent" android:divider="@drawable/list_divider_horizontal" android:dividerHeight="@dimen/somc_incallscreen_reject_msgs_drawer_list_divider_height" android:footerDividersEnabled="false" android:layout_marginStart="@dimen/somc_incallscreen_reject_msgs_drawer_list_margin_left" android:layout_marginEnd="@dimen/somc_incallscreen_reject_msgs_drawer_list_margin_right" />
Save And Exit From Text Editor
Go To res/layout/somc_incallscreen_reject_msgs_list_item.xml
Find This Line
Code:
<TextView android:textSize="@dimen/reject_with_message_list_item_text_size" android:ellipsize="end" android:gravity="center_vertical" android:layout_gravity="center_vertical" android:id="@id/text" android:paddingLeft="@dimen/somc_incallscreen_reject_msgs_drawer_list_paddingLeft" android:layout_width=[COLOR="Red"]"fill_parent"[/COLOR] android:layout_height=[COLOR="Red"]"@dimen/somc_incallscreen_reject_msgs_drawer_list_height"[/COLOR] android:maxLines="2" android:scrollHorizontally="true" android:drawablePadding="@dimen/somc_incallscreen_reject_msgs_drawer_list_drawablePadding" android:fontFamily="sans-serif-light"
And Change It To This
Code:
<TextView android:textSize="@dimen/reject_with_message_list_item_text_size" android:ellipsize="end" android:gravity="center_vertical" android:layout_gravity="center_vertical" android:id="@id/text" android:paddingLeft="@dimen/somc_incallscreen_reject_msgs_drawer_list_paddingLeft" android:layout_width=[COLOR="Red"]"0.0dip"[/COLOR] android:layout_height=[COLOR="Red"]"0.0dip"[/COLOR] android:maxLines="2" android:scrollHorizontally="true" android:drawablePadding="@dimen/somc_incallscreen_reject_msgs_drawer_list_drawablePadding" android:fontFamily="sans-serif-light"
Save And Re Compile Apk Then Use It.
(2) FRAMEWORK-RES.apk and JAR Files
Click to expand...
Click to collapse
(a) Enable OLD TV CRT Screen On Off Effect ( For Android 4.3 + )
De Compile framework-res.apk
Go To res/values/bools.xml
Find This Line
Code:
<bool name="config_animateScreenLights">[COLOR="Red"]true[/COLOR]</ bool>
And Change It To This
Code:
<bool name="config_animateScreenLights">[COLOR="Red"]false[/COLOR]</ bool>
Re Compile And Use.
If The Above Method Does Not Work Means
De Compile Services.jar
Go To smali\com\android\Server\power\DisplayPowerController.smali
Look For This Line
Code:
.field private static final ELECTRON_BEAM_OFF_ANIMATION_DURATION_MILLIS:I = [COLOR="Red"]0x64[/COLOR]
And Change 0x64 To 0x190
Then Look For This Line
Code:
const-wide/16 v1, [COLOR="red"]0x64[/COLOR]
And Change 0x64 To 0x190
Done. Save And Recompile Then Use
Note : Value 0x190 Is Just For An Example You Can Use Ur Own. The Biggest Will Be Smooth ( But Slower ). I Recommends Value 0x260. Try It And See The Difference .
(b) Reducing Navigation Bar Height and Width
De Compile framework-res.apk
Go To res/values/dimens.xml
Search For This Line
Code:
<dimen name="navigation_bar_height">[COLOR="red"]48.0dip[/COLOR]</dimen>
<dimen name="navigation_bar_height_landscape">[COLOR="red"]48.0di[/COLOR]p</dimen>
<dimen name="navigation_bar_width">[COLOR="red"]48.0dip[/COLOR]</dimen>
Change It As Per Ur Needds..
Here First Two Lines Indicates Height Of The Navigation Bar. Third Line Indicates The Width. Its Means The Width When U Watching Movies or Playing Games. U Can Use Any Number.
My Suggestion For A Better Look
36
36
28
Done. Re Compile And Use
(3) PHONEBOOK.apk
Click to expand...
Click to collapse
(a) Making Big Photos In Infinite View
FOR XHDPI Screens
De Compile Phonebook.apk
Got To res/layout/contact_detail_static_header_container.xml
Look For This Line
Code:
<QuickContactBadge android:id="@id/photo" android:duplicateParentState="true" android:layout_width="0.0px" android:layout_height="0.0px" android:src="@null" android:scaleType="centerCrop" android:maxWidth="[COLOR="Red"]200.0dip[/COLOR]" android:maxHeight="[COLOR="Red"]200.0dip[/COLOR]" android:soundEffectsEnabled="false" android:contentDescription="@string/spb_accessibility_edit_contact_photo_txt" android:layout_marginEnd="@dimen/detail_header_padding" style="?android:attr/quickContactBadgeStyleWindowLarge" />
Replace With This Line
Code:
<QuickContactBadge android:id="@id/photo" android:duplicateParentState="true" android:layout_width="0.0px" android:layout_height="0.0px" android:src="@null" android:scaleType="centerCrop" android:maxWidth="[COLOR="Red"]270.0dip[/COLOR]" android:maxHeight="[COLOR="Red"]480.0dip[/COLOR]" android:soundEffectsEnabled="false" android:contentDescription="@string/spb_accessibility_edit_contact_photo_txt" android:layout_marginEnd="@dimen/detail_header_padding" style="?android:attr/quickContactBadgeStyleWindowLarge" />
Done. Save And Exit From Editor
Go To Phonebook\smali\com\android\contacts\Detail\ContactPhotoHeaderLayout.smali
Look For This Line
Code:
iput v7, v0, Landroid/view/ViewGroup$LayoutParams;->width:I
Then Add One Line Above That Line. Exactly Like This
Code:
[COLOR="Red"]const v7, 0x1f4[/COLOR]
iput v7, v0, Landroid/view/ViewGroup$LayoutParams;->width:I
Then Look For This Line
Code:
iput v7, v0, Landroid/view/ViewGroup$LayoutParams;->height:I
Then Add One Line Above That Line. Exactly Like This
Code:
[COLOR="Red"]const v7, 0x378[/COLOR]
iput v7, v0, Landroid/view/ViewGroup$LayoutParams;->height:I
Done. Save And Exit From The Editor
Go To Phonebook/res/layout/item_photo_editor.xml
Search For This Line
Code:
<FrameLayout android:background="@drawable/spb_addphoto_box" android:layout_width="[COLOR="Red"]@dimen/raw_contact_edit_photo_picture_siz[/COLOR]e" android:layout_height="[COLOR="red"]@dimen/raw_contact_edit_photo_picture_size"[/COLOR]>
<include layout="@layout/photo_editor_view_default_image" />
<ImageView android:id="@id/photo" android:layout_width="[COLOR="red"]fill_parent[/COLOR]" android:layout_height="[COLOR="red"]fill_parent[/COLOR]" android:scaleType="centerCrop" />
Then Change It To This
Code:
<FrameLayout android:background="@drawable/spb_addphoto_box" android:layout_width="[COLOR="red"]110.0dip[/COLOR]" android:layout_height=[COLOR="red"]"183.0dip"[/COLOR]>
<include layout="@layout/photo_editor_view_default_image" />
<ImageView android:id="@id/photo" android:layout_width="[COLOR="red"]96.0dip[/COLOR]" android:layout_height="[COLOR="red"]170.0dip[/COLOR]" android:scaleType="centerCrop" />
Done. Save And Recompile The Use.
FOR XXHDPI Screens
De Compile Phonebook.apk
Got To res/layout/contact_detail_static_header_container.xml
Look For This Line
Code:
<QuickContactBadge android:id="@id/photo" android:duplicateParentState="true" android:layout_width="0.0px" android:layout_height="0.0px" android:src="@null" android:scaleType="centerCrop" android:maxWidth="[COLOR="Red"]200.0dip[/COLOR]" android:maxHeight="[COLOR="Red"]200.0dip[/COLOR]" android:soundEffectsEnabled="false" android:contentDescription="@string/spb_accessibility_edit_contact_photo_txt" android:layout_marginEnd="@dimen/detail_header_padding" style="?android:attr/quickContactBadgeStyleWindowLarge" />
Replace With This Line
Code:
<QuickContactBadge android:id="@id/photo" android:duplicateParentState="true" android:layout_width="0.0px" android:layout_height="0.0px" android:src="@null" android:scaleType="centerCrop" android:maxWidth="[COLOR="Red"]410.0dip[/COLOR]" android:maxHeight="[COLOR="Red"]729.0dip[/COLOR]" android:soundEffectsEnabled="false" android:contentDescription="@string/spb_accessibility_edit_contact_photo_txt" android:layout_marginEnd="@dimen/detail_header_padding" style="?android:attr/quickContactBadgeStyleWindowLarge" />
Done. Save And Exit From Editor
Go To Phonebook\smali\com\android\contacts\Detail\ContactPhotoHeaderLayout.smali
Look For This Line
Code:
iput v7, v0, Landroid/view/ViewGroup$LayoutParams;->width:I
Then Add One Line Above That Line. Exactly Like This
Code:
[COLOR="Red"]const v7, 0x1f4[/COLOR]
iput v7, v0, Landroid/view/ViewGroup$LayoutParams;->width:I
Then Look For This Line
Code:
iput v7, v0, Landroid/view/ViewGroup$LayoutParams;->height:I
Then Add One Line Above That Line. Exactly Like This
Code:
[COLOR="Red"]const v7, 0x378[/COLOR]
iput v7, v0, Landroid/view/ViewGroup$LayoutParams;->height:I
Done. Save And Exit From The Editor
Go To Phonebook/res/layout/item_photo_editor.xml
Search For This Line
Code:
<FrameLayout android:background="@drawable/spb_addphoto_box" android:layout_width="[COLOR="Red"]@dimen/raw_contact_edit_photo_picture_siz[/COLOR]e" android:layout_height="[COLOR="red"]@dimen/raw_contact_edit_photo_picture_size"[/COLOR]>
<include layout="@layout/photo_editor_view_default_image" />
<ImageView android:id="@id/photo" android:layout_width="[COLOR="red"]fill_parent[/COLOR]" android:layout_height="[COLOR="red"]fill_parent[/COLOR]" android:scaleType="centerCrop" />
Then Change It To This
Code:
<FrameLayout android:background="@drawable/spb_addphoto_box" android:layout_width="[COLOR="red"]113.0dip[/COLOR]" android:layout_height=[COLOR="red"]"186.0dip"[/COLOR]>
<include layout="@layout/photo_editor_view_default_image" />
<ImageView android:id="@id/photo" android:layout_width="[COLOR="red"]96.0dip[/COLOR]" android:layout_height="[COLOR="red"]171.0dip[/COLOR]" android:scaleType="centerCrop" />
Done. Save And Recompile The Use.
Here Is A Sample Screenshots. U Can See The Difference In Before and After Pictures. Click Me !
(4) SYSTEMUI.apk
Click to expand...
Click to collapse
(a) Add Flash Light In Status Bar ( For 4.1 and 4.3 Only )
De Compile SystemUI.apk
Go To res/values/ids.xml
Add This Line
Code:
<item type="id" name="ButtonFlashLight">false</item>
Save and Exit
Open "AndroidManifest".xml and Add This Line
Code:
<uses-permission android:name="android.permission.CAMERA"/>
Save and Exit
Go To res/layout and Open "status_bar_expanded_header".xml
Add This Line
Code:
<com.android.systemui.buttons.ButtonFlashLight android:id="@id/ButtonFlashLight" android:background="@drawable/button_flash_light" android:layout_width="41.0dip" android:layout_height="52.0dip" android:textOn="" android:textOff="" android:paddingEnd="6.0dip" />
For Example It Should Be Like This : -
Code:
<Button android:id="@id/clear_all_button" android:layout_width="90.0dip" android:layout_height="wrap_content" android:text="@string/status_bar_clear_all_button" android:contentDescription="@string/accessibility_clear_all" android:paddingStart="0.0dip" android:paddingEnd="2.0dip" android:layout_alignParentEnd="true" style="@style/ClearAllButtonStyle" />
[COLOR="Red"]<com.android.systemui.buttons.ButtonFlashLight android:id="@id/ButtonFlashLight" android:background="@drawable/button_flash_light" android:layout_width="41.0dip" android:layout_height="52.0dip" android:textOn="" android:textOff="" android:paddingEnd="6.0dip" />
[/COLOR]
Save and Exit
Then Download This File And Paste In res/drawable Folder
Then Download This Pngs And Paste In res/drawable-xhdpi Folder ( Or HDPI )
Done. Re Compile and Use It..
Here Is One Sample Screenshot For Ur Reference . Click Me !
Bro how to remove camera shortcut from xperia sp lockscreen.
Great!!!
Thank you my friend!!
kewlashu said:
Bro how to remove camera shortcut from xperia sp lockscreen.
Click to expand...
Click to collapse
That Tutorial Also Ready. Will post soon..
Rajeev said:
That Tutorial Also Ready. Will post soon..
Click to expand...
Click to collapse
Nicely explained
dipesh1502 said:
Nicely explained
Click to expand...
Click to collapse
Thanks For That...
serajr said:
Thank you my friend!!
Click to expand...
Click to collapse
:victory::victory: :angel::angel: :good::good: :highfive::highfive:
Rajeev the teacher.
---------- Post added at 07:36 PM ---------- Previous post was at 07:33 PM ----------
2 questions:
1. How to change apps into black ( messaging/ phonebook / phone )
2. How to remove the icons for background defocus, motion shot and AR effects as these apps can be accessed from camera menu. For example, Info-eye and timeshift burst have no icons and accessible from camera itself.
sourabhp said:
Rajeev the teacher.
---------- Post added at 07:36 PM ---------- Previous post was at 07:33 PM ----------
2 questions:
1. How to change apps into black ( messaging/ phonebook / phone )
2. How to remove the icons for background defocus, motion shot and AR effects as these apps can be accessed from camera menu. For example, Info-eye and timeshift burst have no icons and accessible from camera itself.
Click to expand...
Click to collapse
1.theres a tutorial available already by funky0308
2.i am sure rajeev will update the
Thread with it
Great tut brov.... been waiting for yur tut brov!!!
ima using yur SemcPhone.apk but tha big green call button doesnt change according to theme accent. Please make a tut to make it change to theme accent & also a tut for enabling HD Fullscreen image caller... thanks!
whalesplaho said:
Great tut brov.... been waiting for yur tut brov!!!
ima using yur SemcPhone.apk but tha big green call button doesnt change according to theme accent. Please make a tut to make it change to theme accent & also a tut for enabling HD Fullscreen image caller... thanks!
Click to expand...
Click to collapse
Thanks Bro...!!
1) Thats very difficult brother..
2) Full Screen Caller Mod Tutorial Will B Add Soon. In a separate thread. Don't know when. Because its different for every SemcPhone..
Rajeev said:
Thanks Bro...!!
1) Thats very difficult brother..
2) Full Screen Caller Mod Tutorial Will B Add Soon. In a separate thread. Don't know when. Because its different for every SemcPhone..
Click to expand...
Click to collapse
Thanks for yur respone brov..... i dnt wanna use stock back, love tha amazing fullscreen hd caller mod!
will be waiting yur tut...:highfive::victory:
nice job bro......keep it up :good:
Does this guide works on CM11?
pemith said:
nice job bro......keep it up :good:
Click to expand...
Click to collapse
Thanks Buddies
whalesplaho said:
Thanks for yur respone brov..... i dnt wanna use stock back, love tha amazing fullscreen hd caller mod!
will be waiting yur tut...:highfive::victory:
Click to expand...
Click to collapse
MT27i said:
Does this guide works on CM11?
Click to expand...
Click to collapse
Didn't Tetsed In CM 11..
sorry guys, what is call ended screen? sorry for noob question.
Inviato dal mio C6603 utilizzando Tapatalk
mando85 said:
sorry guys, what is call ended screen? sorry for noob question.
Inviato dal mio C6603 utilizzando Tapatalk
Click to expand...
Click to collapse
Hi
This called End Call Screen
{
"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"
}
Nice one bro ^^
Keep it up so everyone can mod thierself ^^
Send from my XZ with 4.4.2 to your eyes !
Will this work on Xperia E?
I'm asking this question because it doesn't have semcphone.apk.
Just phone.apk.

[Guide][TUT] Honami style Tab indicators

Let's see what I'll teaching you today​
Preview:
Defaul---------------------------------------------------------------------------------------------------Honami
{
"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"
}
All right,here we go
1.Download resources View attachment 2884731
put folder file into res
forget about styles.txt
2.Goto framework-res\res\values open styles.xml
search code
HTML:
[HTML] <style name="Widget.Holo.TabWidget" parent="@style/Widget.TabWidget">
An whole section replace (befour </style>)
HTML:
<style name="Widget.Holo.TabWidget" parent="@style/Widget.TabWidget">
<item name="divider">@null</item>
<item name="tabStripLeft">@null</item>
<item name="tabStripRight">@null</item>
<item name="tabStripEnabled">false</item>
<item name="measureWithLargestChild">true</item>
<item name="showDividers">none</item>
<item name="dividerPadding">8.0dip</item>
<item name="tabLayout">@layout/semc_tab_indicator_holo_dark</item>
</style>
seems like:
search code
HTML:
<style name="Widget.Holo.Tab" parent="@style/Widget.Holo.ActionBar.TabView">
An whole section replace (befour </style>)
HTML:
<style name="Widget.Holo.Tab" parent="@style/Widget.Holo.ActionBar.TabView">
<item name="background">@drawable/semc_tab_indicator_holo_dark</item>
<item name="layout_width">0.0dip</item>
<item name="minWidth">80.0dip</item>
<item name="layout_weight">1.0</item>
</style>
search code
HTML:
<style name="Widget.Holo.Light.Tab" parent="@style/Widget.Holo.Light.ActionBar.TabView">
An whole section replace (befour </style>)
HTML:
<style name="Widget.Holo.Light.Tab" parent="@style/Widget.Holo.Light.ActionBar.TabView">
<item name="background">@drawable/semc_tab_indicator_holo_light</item>
<item name="layout_width">0.0dip</item>
<item name="minWidth">80.0dip</item>
<item name="layout_weight">1.0</item>
</style>
search code
HTML:
<style name="Widget.ActionBar.TabBar" parent="@style/Widget" />
An whole section replace (befour </style>)
HTML:
<style name="Widget.ActionBar.TabBar" parent="@style/Widget" />
<style name="Widget.Holo.ActionBar.TabView" parent="@style/Widget.ActionBar.TabView">
<item name="background">@drawable/semc_tab_indicator_holo_dark</item>
<item name="paddingLeft">@dimen/somc_actionbar_tab_padding</item>
<item name="paddingRight">@dimen/somc_actionbar_tab_padding</item>
</style>
Well,Then goto last line,befour </resources>
add code
HTML:
<style name="Widget.Holo.Light.TabWidget" parent="@style/Widget.Holo.TabWidget">
<item name="tabLayout">@layout/semc_tab_indicator_holo_light</item>
</style>
<style name="Widget.Holo.Light.ActionBar.TabView" parent="@style/Widget.Holo.ActionBar.TabView">
<item name="background">@drawable/semc_tab_indicator_holo_light</item>
</style>
<style name="Widget.DeviceDefault.TabText" parent="@style/Widget.Holo.TabText" />
seems like:
Well ,done ,about Decompile i don't wanna crap , replace what file you have changed to original app
enjoy it
Like it , how about press thanks:highfive:
If you like honami styles framework , more detail visit Ambor's post
Over here http://forum.xda-developers.com/cro...z2-framework-to-cm11-15-t2836856/post54584204
ljg211314 said:
Let's see what I'll teaching you today​
Preview:
Defaul---------------------------------------------------------------------------------------------------Honami
All right,here we go
1.download resources View attachment 2880418
put folder file into res
forget about styles.xml
2.goto framework-res\res\values open styles.xml
search code
HTML:
<style name="Widget.Holo.TabWidget" parent="@style/Widget.TabWidget">
An whole section replace (befour </style>)
HTML:
<style name="Widget.Holo.TabWidget" parent="@style/Widget.TabWidget">
<item name="divider">@null</item>
<item name="tabStripLeft">@null</item>
<item name="tabStripRight">@null</item>
<item name="tabStripEnabled">false</item>
<item name="measureWithLargestChild">true</item>
<item name="showDividers">none</item>
<item name="dividerPadding">8.0dip</item>
<item name="tabLayout">@layout/semc_tab_indicator_holo_dark</item>
</style>
seems like:
search code
HTML:
<style name="Widget.Holo.Tab" parent="@style/Widget.Holo.ActionBar.TabView">
An whole section replace (befour </style>)
HTML:
<style name="Widget.Holo.Tab" parent="@style/Widget.Holo.ActionBar.TabView">
<item name="background">@drawable/semc_tab_indicator_holo_dark</item>
<item name="layout_width">0.0dip</item>
<item name="minWidth">80.0dip</item>
<item name="layout_weight">1.0</item>
</style>
search code
HTML:
<style name="Widget.Holo.Light.Tab" parent="@style/Widget.Holo.Light.ActionBar.TabView">
An whole section replace (befour </style>)
HTML:
<style name="Widget.Holo.Light.Tab" parent="@style/Widget.Holo.Light.ActionBar.TabView">
<item name="background">@drawable/semc_tab_indicator_holo_light</item>
<item name="layout_width">0.0dip</item>
<item name="minWidth">80.0dip</item>
<item name="layout_weight">1.0</item>
</style>
search code
HTML:
<style name="Widget.ActionBar.TabBar" parent="@style/Widget" />
An whole section replace (befour </style>)
HTML:
<style name="Widget.ActionBar.TabBar" parent="@style/Widget" />
<style name="Widget.Holo.ActionBar.TabView" parent="@style/Widget.ActionBar.TabView">
<item name="background">@drawable/semc_tab_indicator_holo_dark</item>
<item name="paddingLeft">@dimen/somc_actionbar_tab_padding</item>
<item name="paddingRight">@dimen/somc_actionbar_tab_padding</item>
</style>
Well,Then goto last line,befour </resources>
add code
HTML:
<style name="Widget.Holo.Light.TabWidget" parent="@style/Widget.Holo.TabWidget">
<item name="tabLayout">@layout/semc_tab_indicator_holo_light</item>
</style>
<style name="Widget.Holo.Light.ActionBar.TabView" parent="@style/Widget.Holo.ActionBar.TabView">
<item name="background">@drawable/semc_tab_indicator_holo_light</item>
</style>
<style name="Widget.DeviceDefault.TabText" parent="@style/Widget.Holo.TabText" />
seems like:
Well ,done ,about Decompile i don't wanna crap , replace what file you have changed to original app
enjoy it
Like it , how about press thanks:highfive:
Click to expand...
Click to collapse
awesome :laugh: .
just a suggestion , maybe make a tutorial for theming whole framework to honami style ?
XT-107 said:
awesome :laugh: .
just a suggestion , maybe make a tutorial for theming whole framework to honami style ?
Click to expand...
Click to collapse
It's complicated ! and so much file to edit , just use it will be much better:angel:
preview nothing ?
help me,please i got error
..
.
.
nice work bro thanks:good::good::good:
jaguelos said:
help me,please i got error
..
.
.
Click to expand...
Click to collapse
Bro probably missing file in the layoutfolder semc_tab_indicator_holo_light in framework-res.apk
if you an my files must add i folder color this files
semc_widget_text_color_dark.xml
semc_widget_text_color_light.xml
this is files from my Z2 framework-res.apk
semc_tab_indicator_holo_light.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="horizontal" android:layout_height="?actionBarSize" style="@android:style/Widget.DeviceDefault.Light.Tab"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:layout_gravity="center_vertical" android:id="@id/icon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textColor="@color/semc_widget_text_color_tabs_light" android:layout_gravity="center_vertical" android:id="@id/title" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@android:style/Widget.DeviceDefault.TabText" />
</LinearLayout>
semc_tab_indicator_holo_dark.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="horizontal" android:layout_height="?actionBarSize" style="@android:style/Widget.DeviceDefault.Tab"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:layout_gravity="center_vertical" android:id="@id/icon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textColor="@color/semc_widget_text_color_tabs_dark" android:layout_gravity="center_vertical" android:id="@id/title" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@android:style/Widget.DeviceDefault.TabText" />
</LinearLayout>
gamzekal said:
nice work bro thanks:good::good::good:
Click to expand...
Click to collapse
Thanks:highfive:
Ambor said:
Bro probably missing file in the layoutfolder semc_tab_indicator_holo_light in framework-res.apk
if you an my files must add i folder color this files
semc_widget_text_color_dark.xml
semc_widget_text_color_light.xml
this is files from my Z2 framework-res.apk
semc_tab_indicator_holo_light.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="horizontal" android:layout_height="?actionBarSize" style="@android:style/Widget.DeviceDefault.Light.Tab"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:layout_gravity="center_vertical" android:id="@id/icon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textColor="@color/semc_widget_text_color_tabs_light" android:layout_gravity="center_vertical" android:id="@id/title" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@android:style/Widget.DeviceDefault.TabText" />
</LinearLayout>
semc_tab_indicator_holo_dark.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="horizontal" android:layout_height="?actionBarSize" style="@android:style/Widget.DeviceDefault.Tab"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:layout_gravity="center_vertical" android:id="@id/icon" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<TextView android:textColor="@color/semc_widget_text_color_tabs_dark" android:layout_gravity="center_vertical" android:id="@id/title" android:layout_width="wrap_content" android:layout_height="wrap_content" style="@android:style/Widget.DeviceDefault.TabText" />
</LinearLayout>
Click to expand...
Click to collapse
Indeed ! there is on thing I've missed,sorry!! semc_tab_indicator_holo_light.xml
it's in res\layout
Now dowmload it View attachment semc_tab_indicator_holo_light.zip
Bro check orginal Z2 framework in It Is in LAYOUT
Even explain to you why there is
See this valiue, this is color text of swithers
<TextView android:textColor="@color/semc_widget_text_color_tabs_dark"
<TextView android:textColor="@color/semc_widget_text_color_tabs_light"
If you add this files in color folder
semc_widget_text_color_tabs_dark.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/@color/somc_theme_accent_color_dark" android:state_activated="true" />
<item android:state_selected="true" android:color="@color/somc_theme_accent_color_dark" />
<item android:state_enabled="false" android:color="#80bebebe" />
<item android:color="#ffffffff" />
</selector>
semc_widget_text_color_tabs_light.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/somc_theme_accent_color_light" android:state_activated="true" />
<item android:state_selected="true" android:color="@color/somc_theme_accent_color_light" />
<item android:state_enabled="false" android:color="#ffbebebe" />
<item android:color="#ff333333" />
</selector>
And add this valiue in color.xml
<color name="somc_theme_accent_color_dark">#ff64c9ff</color>
<color name="somc_theme_accent_color_light">#ff64c9ff</color>
Efect
Nice work! Dude, seems awesome
Sent from my R800i using XDA Free mobile app
@Ambor Bro can you please make a guide about theming Framework-res.apk like Yours z2 framework-res.apk ?
Will be appreciated :laugh:
Black_Eyes said:
@Ambor Bro can you please make a guide about theming Framework-res.apk like Yours z2 framework-res.apk ?
Will be appreciated :laugh:
Click to expand...
Click to collapse
The Honami's theme is defined in SemcGenericUxpRes.apk
About color , ang about @Ambor 's idea is very nice , i think it should work , i'll try...
ljg211314 said:
The Honami's theme is defined in SemcGenericUxpRes.apk
About color , ang about @Ambor 's idea is very nice , i think it should work , i'll try...
Click to expand...
Click to collapse
look
link
Awesome !!:thumbup: doesn't working on ICS ?because my device still have not a perfect CM 11
Sent from my R800i using XDA Free mobile app
nice and simple tutorial :fingers-crossed:
Hi!! Bro could you share to me a flasheable zip of your System Font?? Thanks!!
Touchwiz
Hi all.
I know this is z2 and yea.
But is there somebody that is willing to share some info or TUT on theming the 4.4.2 touchwiz framework-res?
if so please share.
Thanks in advance. :good:

Categories

Resources