Related
Sup everyone -
So I was looking into how to decompile an APK and got it the info. Basically, it is just a zip archive in a sense. Now, within the APK, there are resources in binary XML. A little digging, I found that you can get tools to basically reverse-engineer those XML files almost to the original form. That tools is called "android-apktool" (link: https://code.google.com/p/android-apktool/downloads/list).
So fast forward to MIUI. I wanted to create a few more folders beside the System Tools folder upon the initial flash/boot up. Using the tool above, I was able to find where it does that in the res/xml/default_workspace.xml file in Launcher2.apk. This is the file to tell Launcher2 to create what on each screen initially.
It's all and good but now how do I package the modified XML back to binary format? Any ideas?
TIA.
EDIT: Got it did some research and apparently apktool can also build, but now I need to sign the APK which is easy to do. (link: http://www.youtube.com/watch?v=1Aa9zsh6F7A)
Here's the content of 11.5 default_workspace.xml:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<favorites
xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher">
<folder launcher:screen="2" launcher:x="2" launcher:y="2" launcher:title="System Tools" />
<favorite launcher:className="com.android.voicedialer.VoiceDialerActivity" launcher:packageName="com.android.voicedialer" launcher:container="1" launcher:x="0" launcher:y="0" />
<favorite launcher:className="com.android.quicksearchbox.SearchActivity" launcher:packageName="com.android.quicksearchbox" launcher:container="1" launcher:x="0" launcher:y="0" />
<favorite launcher:className="com.android.contacts.TwelveKeyDialer" launcher:packageName="com.android.contacts" launcher:container="-101" launcher:x="0" launcher:y="0" />
<favorite launcher:className="com.android.contacts.DialtactsContactsEntryActivity" launcher:packageName="com.android.contacts" launcher:container="-101" launcher:x="0" launcher:y="0" />
<favorite launcher:className="com.android.calculator2.Calculator" launcher:packageName="com.android.calculator2" launcher:container="1" launcher:x="0" launcher:y="0" />
<favorite launcher:className="com.android.updater.MainActivity" launcher:packageName="com.android.updater" launcher:screen="2" launcher:x="3" launcher:y="2" />
<appwidget launcher:className="com.android.updater.Widget" launcher:packageName="com.android.updater" launcher:screen="1" launcher:x="0" launcher:y="1" launcher:spanX="4" launcher:spanY="1" />
<favorite launcher:className="com.sohu.inputmethod.sogou.SogouIMESettings" launcher:packageName="com.sohu.inputmethod.sogou" launcher:screen="3" launcher:x="1" launcher:y="0" />
<favorite launcher:className="com.android.calendar.LaunchActivity" launcher:packageName="com.android.calendar" launcher:screen="2" launcher:x="2" launcher:y="3" />
<favorite launcher:className="com.android.browser.BrowserActivity" launcher:packageName="com.android.browser" launcher:container="-101" launcher:x="0" launcher:y="0" />
<favorite launcher:className="com.android.music.MusicBrowserActivity" launcher:packageName="com.android.music" launcher:screen="2" launcher:x="0" launcher:y="3" />
<favorite launcher:className="com.google.android.talk.SigningInActivity" launcher:packageName="com.google.android.talk" launcher:screen="3" launcher:x="2" launcher:y="0" />
<favorite launcher:className="com.cooliris.media.Gallery" launcher:packageName="com.cooliris.media" launcher:screen="2" launcher:x="0" launcher:y="2" />
<favorite launcher:className="com.android.mms.ui.MmsTabActivity" launcher:packageName="com.android.mms" launcher:container="-101" launcher:x="0" launcher:y="0" />
<favorite launcher:className="com.android.settings.Settings" launcher:packageName="com.android.settings" launcher:screen="2" launcher:x="3" launcher:y="3" />
<favorite launcher:className="com.android.vending.AssetBrowserActivity" launcher:packageName="com.android.vending" launcher:screen="3" launcher:x="3" launcher:y="0" />
<favorite launcher:className="com.android.speechrecorder.SpeechRecorderActivity" launcher:packageName="com.android.speechrecorder" launcher:container="1" launcher:x="0" launcher:y="0" />
<favorite launcher:className="com.google.android.gm.ConversationListActivityGmail" launcher:packageName="com.google.android.gm" launcher:screen="2" launcher:x="1" launcher:y="3" />
<favorite launcher:className="com.android.development.Development" launcher:packageName="com.android.development" launcher:container="1" launcher:x="0" launcher:y="0" />
<favorite launcher:className="com.android.camera.Camera" launcher:packageName="com.android.camera" launcher:screen="2" launcher:x="1" launcher:y="2" />
<favorite launcher:className="com.android.email.activity.Welcome" launcher:packageName="com.android.email" launcher:screen="3" launcher:x="0" launcher:y="0" />
<favorite launcher:className="com.android.deskclock.DeskClock" launcher:packageName="com.android.deskclock" launcher:container="1" launcher:x="0" launcher:y="0" />
<search launcher:screen="1" launcher:x="0" launcher:y="0" launcher:spanX="4" launcher:spanY="1" />
<clock launcher:screen="2" launcher:x="1" launcher:y="0" launcher:spanX="2" launcher:spanY="2" />
</favorites>
How to increase the font size?
Not with a App! I need it for my rom ...
I need a how to ;-)
Cheers DQiB
Sent from my GT-S5670 using XDA
i don no how to for a rom but do for an app even without root
Spare parts pro wil do it
Maybe romtool box will help you,!!!
Sent from my GT-S5670 using XDA
Font size in style.xml of framework-res or twframework-res
But Mostly it is in style.xml or in side a xml in layout-abcxyz folder of each apk
Detail:
with system apk: most using style in framework
So just find TextAppearance and change font size
Code:
<style name="TextAppearance.Medium" parent="@style/TextAppearance">
<item name="textSize">[COLOR="Red"]18.0sp[/COLOR]</item>
<item name="textStyle">normal</item>
<item name="textColor">?textColorPrimary</item>
</style>
If an apk dont use style.xml to define font side, you have to change font size in layout folder
Code:
<FrameLayout android:orientation="vertical" android:id="@id/power_widget_button" android:background="@drawable/stat_power_bg" android:focusable="true" android:clickable="true" android:layout_width="fill_parent" android:layout_height="76.0dip" android:layout_weight="1.0"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:layout_gravity="center_horizontal" android:id="@id/power_widget_button_image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="2.669983dip" />
<TextView android:textSize="[COLOR="red"]12.0dip[/COLOR]" android:textStyle="bold" android:textColor="#ff000000" android:lineSpacingExtra="-5.0dip" android:gravity="center_horizontal" android:layout_gravity="center_horizontal" android:id="@id/power_widget_button_text" android:paddingTop="45.669983dip" android:layout_width="fill_parent" android:layout_height="fill_parent" android:shadowDx="1.0" android:shadowDy="1.0" />
<ImageView android:layout_gravity="bottom|center" android:id="@id/power_widget_button_indic" android:paddingLeft="2.3299866dip" android:paddingRight="2.3299866dip" android:layout_width="fill_parent" android:layout_height="5.3299866dip" android:layout_marginBottom="4.5dip" android:scaleType="fitXY" />
</FrameLayout>
After making few ROMS & mods On NOTE I , i thought let me share the few mods as well on NOTE II...so here we go!
{
"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"
}
Must Have
1. Apktool
2. Some knowledge about compiling and decompiling
3. 7zip
4. notepad++
5. backsmali
6. If my code are showing -- then remove those lines in the code and if it shows ++ then add those codes!
How to
Decompile both SystemUI and framework-res,apk using apktool
framework-res.apk
- /res/values/dimens.xml : change thumbnail size to..
PHP:
<dimen name="thumbnail_height">267.0dip</dimen>
<dimen name="thumbnail_width">168.0dip</dimen>
Change the dip values the way you want, but for galaxy Note II the above dip's fits correctly.
After this compile back and this is the only change needs to be done in framework-res.apk
* SystemUI.apk
Go to /res/values/bools.xml and make the changes as below:
PHP:
<bool name="config_recents_thumbnail_image_fits_to_xy">true</bool>
- go to /res/values/drawables.xml and make the following changes
PHP:
<item type="drawable" name="status_bar_recents_background_solid">#00000000</item>
Now you can change any background you want, by modifying the values of#00000000
go to - res/layout/tw_system_bar_no_recent_apps.xml and make the following changes
PHP:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
- <TextView android:textSize="24.0dip" android:textColor="#ffd7d7d7" android:gravity="left" android:layout_gravity="bottom|left|center" android:id="@id/recents_no_apps_string" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginBottom="70.0dip" android:text="@string/status_bar_no_recent_apps" />
+ <Button android:textSize="@dimen/status_bar_recents_app_label_text_size" android:layout_gravity="center" android:id="@id/no_recent_apps_launch_button" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginTop="55.0dip" android:text="@string/status_bar_recent_launch_task_manager_title" />
+ <TextView android:textSize="20.0dip" android:textColor="@android:color/holo_blue_light" android:gravity="center_horizontal" android:layout_gravity="center" android:visibility="gone" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/status_bar_no_recent_apps" />
</FrameLayout>
go to /res/layout-port/tw_status_bar_recent_panel.xml and make the following changes in the code!
PHP:
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<View android:id="@id/recents_transition_background" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" />
- <FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true">
- <ImageView android:id="@id/recents_transition_placeholder_icon" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" />
- <com.android.systemui.recent.RecentsVerticalScrollView android:layout_gravity="bottom|left|center" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="vertical" android:fadingEdgeLength="@dimen/status_bar_recents_scroll_fading_edge_length" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginRight="0.0dip" android:stackFromBottom="true" android:divider="@null">
- <LinearLayout android:orientation="vertical" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" />
- </com.android.systemui.recent.RecentsVerticalScrollView>
+ <FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_centerVertical="true">
+ <ImageView android:gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="0.0dip" android:src="@drawable/status_bar_recents_background" />
+ <com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|left|center" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginRight="0.0dip" android:stackFromBottom="true" android:divider="@null">
+ <LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" />
+ </com.android.systemui.recent.RecentsHorizontalScrollView>
<LinearLayout android:layout_gravity="bottom|center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:layout_gravity="center" android:id="@id/shortcut_line" android:visibility="gone" android:layout_width="300.0dip" android:layout_height="1.0dip" android:src="@drawable/shortcut_head_line" android:scaleType="center" />
<LinearLayout android:gravity="center" android:orientation="horizontal" android:id="@id/application_shortcut_layout" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="7.0dip">
go to res/layout-port/status_bar_recent_item.xml and make the following changes
PHP:
<?xml version="1.0" encoding="utf-8"?>
-<FrameLayout android:paddingTop="@dimen/status_bar_recents_item_padding" android:paddingBottom="@dimen/status_bar_recents_item_padding" android:layout_width="fill_parent" android:layout_height="wrap_content"
+<FrameLayout android:paddingLeft="@dimen/status_bar_recents_item_padding" android:paddingRight="@dimen/status_bar_recents_item_padding" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
- <RelativeLayout android:layout_gravity="center_horizontal" android:id="@id/recent_item" android:layout_width="wrap_content" android:layout_height="wrap_content">
- <TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:id="@id/app_label" android:paddingTop="2.0dip" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:scrollHorizontally="true" android:singleLine="true" android:layout_alignTop="@id/app_icon" android:layout_alignParentLeft="true" />
- <FrameLayout android:id="@id/app_thumbnail" android:background="@drawable/recents_thumbnail_bg" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_thumbnail_left_margin" android:foreground="@drawable/recents_thumbnail_fg" android:layout_toRightOf="@id/app_label" android:layout_alignParentTop="true">
- <ImageView android:id="@id/app_thumbnail_image" android:layout_width="@dimen/status_bar_recents_thumbnail_width" android:layout_height="@dimen/status_bar_recents_thumbnail_height" />
+ <RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:paddingTop="@android:dimen/status_bar_height" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true">
+ <FrameLayout android:id="@id/app_thumbnail" android:background="#00000000" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:foreground="#00000000" android:layout_centerInParent="true">
+ <ImageView android:id="@id/app_thumbnail_image" android:paddingTop="60.0dip" android:layout_width="212.0dip" android:layout_height="455.0dip" android:layout_marginTop="30.0dip" android:scaleType="centerInside" />
</FrameLayout>
- <View android:id="@id/recents_callout_line" android:background="@drawable/recents_callout_line" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="1.0dip" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="3.0dip" android:layout_marginRight="3.0dip" android:layout_toLeftOf="@id/app_thumbnail" android:layout_below="@id/app_label" android:layout_alignParentLeft="true" />
- <ImageView android:id="@id/app_icon" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_icon_left_margin" android:layout_marginTop="@dimen/status_bar_recents_app_icon_top_margin" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" android:layout_toRightOf="@id/app_label" />
- <TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="3.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/recents_callout_line" android:layout_alignParentLeft="true" />
+ <ImageView android:gravity="center_horizontal" android:id="@id/app_icon" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="405.0dip" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" />
+ <TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/app_label" android:paddingTop="0.0dip" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="3.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_icon" android:layout_alignParentBottom="true" />
+ <TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="40.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignParentBottom="true" />
</RelativeLayout>
</FrameLayout>
Go to res/layout-land/status_bar_recent_item.xml and make the following changes
PHP:
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout android:paddingLeft="@dimen/status_bar_recents_item_padding" android:paddingRight="@dimen/status_bar_recents_item_padding" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
- <RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:paddingTop="@android:dimen/status_bar_height" android:layout_width="wrap_content" android:layout_height="wrap_content">
- <FrameLayout android:id="@id/app_thumbnail" android:background="@drawable/recents_thumbnail_bg" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_thumbnail_left_margin" android:layout_marginTop="@dimen/status_bar_recents_thumbnail_top_margin" android:foreground="@drawable/recents_thumbnail_fg" android:layout_alignParentLeft="true" android:layout_alignParentTop="true">
- <ImageView android:id="@id/app_thumbnail_image" android:layout_width="@dimen/status_bar_recents_thumbnail_width" android:layout_height="@dimen/status_bar_recents_thumbnail_height" />
+ <RelativeLayout android:layout_gravity="center_vertical" android:id="@id/recent_item" android:paddingTop="@android:dimen/status_bar_height" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true">
+ <FrameLayout android:id="@id/app_thumbnail" android:background="#00000000" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:foreground="#00000000" android:layout_centerInParent="true">
+ <ImageView android:id="@id/app_thumbnail_image" android:layout_width="120.0dip" android:layout_height="320.0dip" android:scaleType="centerInside" />
</FrameLayout>
- <ImageView android:id="@id/app_icon" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_icon_left_margin" android:layout_marginTop="@dimen/status_bar_recents_app_icon_top_margin" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="@dimen/status_bar_recents_app_icon_max_width" android:maxHeight="@dimen/status_bar_recents_app_icon_max_height" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" />
- <TextView android:textSize="@dimen/status_bar_recents_app_label_text_size" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:id="@id/app_label" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="@dimen/status_bar_recents_text_description_padding" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_thumbnail" android:layout_alignLeft="@id/app_thumbnail" />
- <TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_text_fading_edge_length" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginTop="@dimen/status_bar_recents_text_description_padding" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignLeft="@id/app_thumbnail" />
+ <ImageView android:gravity="center_horizontal" android:id="@id/app_icon" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="225.0dip" android:scaleType="centerInside" android:adjustViewBounds="true" android:maxWidth="20.0dip" android:maxHeight="20.0dip" />
+ <TextView android:textSize="20.0dip" android:textColor="@color/status_bar_recents_app_label_color" android:ellipsize="marquee" android:gravity="center_horizontal" android:id="@id/app_label" android:paddingTop="0.0dip" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="0.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_icon" android:layout_alignParentBottom="true" />
+ <TextView android:textSize="@dimen/status_bar_recents_app_description_text_size" android:ellipsize="marquee" android:id="@id/app_description" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:layout_width="@dimen/status_bar_recents_app_label_width" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_recents_app_label_left_margin" android:layout_marginTop="3.0dip" android:scrollHorizontally="true" android:singleLine="true" android:layout_below="@id/app_label" android:layout_alignParentBottom="true" />
</RelativeLayout>
</FrameLayout>
go to /res/layout-land/tw_status_bar_recent_panel.xml and make the following changes
PHP:
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<View android:id="@id/recents_transition_background" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" />
- <FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignParentBottom="true">
- <ImageView android:id="@id/recents_transition_placeholder_icon" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content" />
- <com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|right|center" android:orientation="horizontal" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="horizontal" android:fadingEdgeLength="@dimen/status_bar_recents_scroll_fading_edge_length" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="@dimen/status_bar_recents_right_glow_margin" android:stackFromBottom="true" android:divider="@null">
- <LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="wrap_content" android:layout_height="fill_parent" />
+ <FrameLayout android:id="@id/recents_bg_protect" android:background="@drawable/status_bar_recents_background" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_centerVertical="true">
+ <ImageView android:gravity="center" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="0.0dip" android:src="@drawable/status_bar_recents_background" />
+ <com.android.systemui.recent.RecentsHorizontalScrollView android:layout_gravity="bottom|left|center" android:id="@id/recents_container" android:scrollbars="none" android:fadingEdge="none" android:fadingEdgeLength="0.0dip" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginRight="0.0dip" android:stackFromBottom="true" android:divider="@null">
+ <LinearLayout android:orientation="horizontal" android:id="@id/recents_linear_layout" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="wrap_content" />
</com.android.systemui.recent.RecentsHorizontalScrollView>
<LinearLayout android:layout_gravity="bottom|center" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:layout_gravity="center" android:id="@id/shortcut_line" android:visibility="gone" android:layout_width="450.0dip" android:layout_height="1.0dip" android:layout_marginTop="2.0dip" android:src="@drawable/shortcut_head_line" android:scaleType="center" />
Now open res/values/id.xml and add this one at the end of the file and make the following changes!
PHP:
<item type="id" name="no_recent_apps_launch_button">false</item>
go to smali/com/android/systemui/recent/RecentsPanelView.smali and make the following changes!
Since XDA doesn't allow to add more than 30000 characters , I have attached the difference code for RecentsPanelView.smali. Download it and make the following changes!
Download the code for recentspanelview.smali from here
now re-compile the systemui and framework and then flash the mod!
Credits
------------
1. Evilasato, Legend (SF)
Sense Mod Back.... Nice to see you again in Note2.
thanks , this is great :good:
It's a great work.
Martinhel
Revenge Developer Team
Inviato dal mio GT-N7000 con Tapatalk 2
Awesome like allways
Hugs my friend
Sent from my GT-N7100
Work
Gửi từ GT-N7100 của tôi bằng cách sử dụng Tapatalk 2
galaxy1210 said:
Work
Gửi từ GT-N7100 của tôi bằng cách sử dụng Tapatalk 2
Click to expand...
Click to collapse
You are always first in using this mod...:good:
Great work. Is awesome. But when editing "RecentPanelView.smali" gives me error when compiling. And without modifying is as the photo.
Help me please!
Enviado desde mi GT-N7100
galaxy1210 said:
Work
View attachment 1597407
Gửi từ GT-N7100 của tôi bằng cách sử dụng Tapatalk 2
Click to expand...
Click to collapse
which ROM u used??!!
---------- Post added at 09:23 PM ---------- Previous post was at 09:14 PM ----------
galaxy1210 said:
Work
View attachment 1597407
Gửi từ GT-N7100 của tôi bằng cách sử dụng Tapatalk 2
Click to expand...
Click to collapse
which ROM u used??!!
Thanks for great work for me it is work very very well in my rom thanks so good
My taste again comes to picture... Thankq bro....
I know you will be the first man to do this
How similar would this be if trying to use the MOD on the S3?
dr12volt1338 said:
How similar would this be if trying to use the MOD on the S3?
Click to expand...
Click to collapse
It would be similar... I guess someone already done in s3 by following the guide though...
Hey buddy great post...can you please provide a flashable zip for the note 2 (international)....i am getting recompilation error.
rohan999 said:
Hey buddy great post...can you please provide a flashable zip for the note 2 (international)....i am getting recompilation error.
Click to expand...
Click to collapse
I will try to do vrtheme , so that one can Flash irrespective of any rom
Hi, grgsiocl
How are you my friends...??
Im just upgraded from note to note2.
Miss classic rom deeply, hopefully can see classic rom again in note2 forum.
Sent from my GT-N7100 using xda premium
lee yun khong said:
Hi, grgsiocl
How are you my friends...??
Im just upgraded from note to note2.
Miss classic rom deeply, hopefully can see classic rom again in note2 forum.
Sent from my GT-N7100 using xda premium
Click to expand...
Click to collapse
Hey Lee. .. nice to see you buddy. .. pretty long time though. ... soon I will release the rom mate. .. been busy with work. ..welcome to note 2...
grgsiocl said:
Hey Lee. .. nice to see you buddy. .. pretty long time though. ... soon I will release the rom mate. .. been busy with work. ..welcome to note 2...
Click to expand...
Click to collapse
this good:good: news
and am witting for your greaaaaat rom
any ETA
grgsiocl said:
Hey Lee. .. nice to see you buddy. .. pretty long time though. ... soon I will release the rom mate. .. been busy with work. ..welcome to note 2...
Click to expand...
Click to collapse
Very excited mate....my note 1has loaded with classic final V6 before pass to my wife. She just very happy with the stable and great battery performance exist at your rom.
I will waiting with patient... take your time..thank you.
Sent from my GT-N7100 using xda premium
---------- Post added at 05:47 PM ---------- Previous post was at 05:46 PM ----------
iphonest said:
this good:good: news
and am witting for your greaaaaat rom
any ETA
Click to expand...
Click to collapse
It seems mr.grgsiocl busy with his work. No choice...wait and patient......by the way you might gonna try pheonix v3.6.
Sent from my GT-N7100 using xda premium
It looks good,but I have some problems when I eidt systemUI.apk:
1.What is the - and + mean? Is that means delete or add ?
2.What is the system version ? 4.1.X or 4.0.4?
THX
How to add Lockscreen and Recent app shortcut on notification panel
Assuming know how to use Apk-Multi-Tools (I am using majdini repacked one) , decompile SystemUI and go to layout folder, seek for tw_status_bar_expanded_header.xml.
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="39.0dip" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="#ffffffff" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="-3.0dip" android:singleLine="true" systemui:ampmSmall="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:maxLines="2" />
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:visibility="gone" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
<ImageView android:layout_width="1.0dip" android:layout_height="25.0dip" android:layout_marginTop="7.0dip" android:layout_marginBottom="7.0dip" android:src="@drawable/tw_quick_panel_plnm_setting_dv" />
<RelativeLayout android:id="@id/settings_button" android:background="@drawable/tw_quick_panel_setting_button_bg" android:focusable="true" android:visibility="visible" android:layout_width="@dimen/status_bar_expanded_setting_width" android:layout_height="39.0dip">
<ImageView android:id="@id/settings_button_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
</LinearLayout>
substitute it to
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="39.0dip" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="#ffffffff" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="-3.0dip" android:singleLine="true" systemui:ampmSmall="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:maxLines="2" />
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:visibility="gone" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
[COLOR="Red"]<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:paddingLeft="2.0dip" android:paddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_recent" android:layout_toLeftOf="@id/back" android:contentDescription="@string/accessibility_recent" systemui:keyCode="187" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:paddingLeft="2.0dip" android:paddingRight="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lock" android:layout_toLeftOf="@id/settings_button" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />[/COLOR]
<ImageView android:layout_width="1.0dip" android:layout_height="25.0dip" android:layout_marginTop="7.0dip" android:layout_marginBottom="7.0dip" android:src="@drawable/tw_quick_panel_plnm_setting_dv" />
<RelativeLayout android:id="@id/settings_button" android:background="@drawable/tw_quick_panel_setting_button_bg" android:focusable="true" android:visibility="visible" android:layout_width="@dimen/status_bar_expanded_setting_width" android:layout_height="39.0dip">
<ImageView android:id="@id/settings_button_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
</LinearLayout>
Red lines are for this mod. First line is for Recent Apps icon and the second one for LockScreen icon.
Also after modifying mentioned XML you need to add corresponding .png photo to drawable-xhdpi which is called ic_sysbar_lock.png for lockscreen (sensitive must be added) and ic_sysbar_recent.png for recent Apps which is already there in drawable-xhdpi and I just resized it.
Compile and done.
Good Luck
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Now you can download it here:
This mod is made for ALL Sammy 4.1.2 JB base roms. If want to try please make a backup first.
New pack would only add this mod to your SystemUI and you can freely flash it while keeping all of you previous mods on SystemUI.
- Added Universal Pack for ALL Firmwares, one pack for both System and preload - Working on LSZ,LT4, LT5,... 11.5.2013
- Added Lock Screen and Recent Apps on notification panel
{
"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"
}
Download HERE
How to change Notification Background and Text Color on drop down panel:
Thanks majdini for his turorial but as my this theme is kinda associated together I have no choice to repeat first part for Notification background.
Notification Background color
A- First of all you need to make notification background independent (I call it) from systemui.apk so that the color can be changed by hex code in framework.
1- Go to SystemUI/smali/com/android/systemui/statusbar/phone/ folder and open PhoneStatusBar.smali and search for "-0x100". There will be two lines; change them from
Code:
const/high16 v15, -0x100
to
Code:
const/high16 v15,[COLOR="Red"] 0x0[/COLOR]
there are two lines for -0x100, change theme both
2- Now go to framework-res/res/values/ folder and open drawables.xml and look for this line:
Code:
<item type="drawable" name="notification_item_background_color">#ff000000</item>
I changed it to
Code:
<item type="drawable" name="notification_item_background_color">[COLOR="Red"]#ffececec[/COLOR]</item>
This was for the background part.
Notification Text color
B- So now we need to change the notification's text color that should be done in framework:
Just search for StatusBar in Style.xml and change it as you like. Following are my changes:
Code:
<style name="TextAppearance.StatusBar.Title" parent="@style/TextAppearance.StatusBar">
<item name="textStyle">bold</item>
</style>
<style name="TextAppearance.StatusBar.Icon" parent="@style/TextAppearance.StatusBar" />
<style name="TextAppearance.StatusBar.EventContent" parent="@style/TextAppearance.StatusBar.EventContent">
<item name="textSize">15.0dip</item>
<item name="textColor">[COLOR="Red"]#ff2e2e2e[/COLOR]</item>
</style>
<style name="TextAppearance.StatusBar.EventContent.Title" parent="@style/TextAppearance.StatusBar.EventContent.Title">
<item name="textSize">20.0dip</item>
<item name="textStyle">normal</item>
<item name="textColor">#[COLOR="red"]#ff000000[/COLOR]</item>
</style>
<style name="Theme.WithActionBar" parent="@style/Theme">
<item name="windowActionBar">true</item>
The first #ff2e2e2e is for subtext's color (second row of notification)
Code:
<style name="TextAppearance.StatusBar.Ticker" parent="@style/TextAppearance.StatusBar" />
<style name="TextAppearance.StatusBar.EventContent.Line2" parent="@style/TextAppearance.StatusBar.EventContent">
<item name="textSize">@dimen/notification_subtext_size</item>
</style>
<style name="TextAppearance.StatusBar.EventContent.Info" parent="@style/TextAppearance.StatusBar.EventContent">
<item name="textSize">@dimen/notification_subtext_size</item>
<item name="textColor">[COLOR="red"]#ff2e2e2e[/COLOR]</item>
</style>
<style name="TextAppearance.StatusBar.EventContent.Time" parent="@style/TextAppearance.StatusBar.EventContent.Time">
<item name="textSize">15.0dip</item>
<item name="textStyle">normal</item>
<item name="textColor">[COLOR="Red"]#ff000000[/COLOR]</item>
</style>
<style name="TextAppearance.StatusBar.EventContent.Emphasis" parent="@style/TextAppearance.StatusBar.EventContent">
<item name="textColor">#[COLOR="red"]#ff2e2e2e[/COLOR]</item>
</style>
<style name="TextAppearance.Small.CalendarViewWeekDayView" parent="@style/TextAppearance.Small">
<item name="textStyle">bold</item>
Code:
<style name="TextAppearance.DeviceDefault.StatusBar.EventContent.Title" parent="@style/TextAppearance.StatusBar.EventContent.Title">
<item name="textSize">20.0dip</item>
<item name="textStyle">normal</item>
<item name="textColor">#[COLOR="red"]#ff000000[/COLOR]</item>
So for these changes would result in this theme (only notification part)
Is it only for deodex ROM?
It'd be great to make it for Odex ROM too
cheyenne said:
Is it only for deodex ROM?
It'd be great to make it for Odex ROM too
Click to expand...
Click to collapse
You can make a backup and then rename/delete .odex file and then flash. This is an experimental way which I have been told in Arman theme and seems working.
Re: [Mod]JB LSZ_Lock screen and Recent Apps on notification Panel
OT, what font do u use on screenshot?
Sent from my GT-N7000 using Tapatalk 2
Re: [Mod]JB LSZ_Lock screen and Recent Apps on notification Panel
zai89 said:
OT, what font do u use on screenshot?
Sent from my GT-N7000 using Tapatalk 2
Click to expand...
Click to collapse
It's called Caviar. So the font was more attention drawer than the mod
Sent from my GT-N7000 using Tapatalk HD
Re: [Mod]JB LSZ_Lock screen and Recent Apps on notification Panel
kmokhtar79 said:
This mod is made base on LSZ base rom, about other frameworks I haven't test this zip may work or not. If want to try please make a backup first.
- Added Lock Screen and Recent Apps on notification panel
Download
Preload, System
Click to expand...
Click to collapse
Thanks! One question, what type letter using?
Enviado desde mi GT-N7000 usando Tapatalk 2
Vibo7 said:
Thanks! One question, what type letter using?
Enviado desde mi GT-N7000 usando Tapatalk 2
Click to expand...
Click to collapse
Look at one post above. Caviar
Any chance we can get just the lock screen toggle on an existing status bar? I am running ultimate rom v5.2 with alliance mods for the various customisations. Only thing missing on that is a lock screen toggle like yours. Any way i can add it to that?
thanks
kmokhtar79 said:
Look at one post above. Caviar
Click to expand...
Click to collapse
Thanks friend, sorry, i missed.
Re: [Mod]JB LSZ_Lock screen and Recent Apps on notification Panel
Hello sir if i want to delete the recent what i need to do..pls help.thanks sir
Sent from my GT-N7000 using xda premium
How to for this mod added to OP
- Universal Pack for ALL 4.1.2 Sammy base firmwares
Downloadhttp://d-h.st/nrG
just one question, if i flash this mod, is my green circle battery mod still be there?
because there's one same mod here, after flashing, green circle battery is back to stock
sunrider07 said:
just one question, if i flash this mod, is my green circle battery mod still be there?
because there's one same mod here, after flashing, green circle battery is back to stock
Click to expand...
Click to collapse
This mod would add only recent apps and lock screen icon to your notification panel anf you would have all of previous mods. Just make a backup and flash over.
Sent from my GT-N7000 using Tapatalk HD
I've Just flashed it on Ultimate ROM v6 XXLT4. Works like a charm! thank you Kmokhtar79.
Sent from my GT-N7000 using xda app-developers app
kmokhtar79 said:
- Universal Pack for ALL 4.1.2 Sammy base firmwares
Downloadhttp://d-h.st/nrG
Click to expand...
Click to collapse
Can you please tell the font name you have installed on your phone as displayed in the picture?
Ubuntu font?
Sent from my GT-N7000 using Tapatalk 2
abhinav quietly brilliant said:
Can you please tell the font name you have installed on your phone as displayed in the picture?
Ubuntu font?
Sent from my GT-N7000 using Tapatalk 2
Click to expand...
Click to collapse
It's called Caviar.
Sent from my GT-N7000 using Tapatalk HD
kmokhtar79 said:
It's called Caviar.
Sent from my GT-N7000 using Tapatalk HD
Click to expand...
Click to collapse
Thanx mate, in case anyone else need it http://d-h.st/WgP
Sent from my GT-N7000 using Tapatalk 2
kmokhtar79 said:
This mod is made for ALL Sammy 4.1.2 JB base roms. If want to try please make a backup first.
New pack would only add this mod to your SystemUI and you can freely flash it while keeping all of you previous mods on SystemUI.
- Added Universal Pack for ALL Firmwares - Working on LSZ,LT4, LT5,... 11.5.2013
- Added Lock Screen and Recent Apps on notification panel
Download HERE
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Here is a how to for this mod:
Assuming know how to use Apk-Multi-Tools (I am using majdini repacked one) , decompile SystemUI and go to layout folder, seek for tw_status_bar_expanded_header.xml.
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="39.0dip" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="#ffffffff" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="-3.0dip" android:singleLine="true" systemui:ampmSmall="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="#ffcbcbcb" android:ellipsize="none" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:maxLines="2" />
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:visibility="gone" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
<ImageView android:layout_width="1.0dip" android:layout_height="25.0dip" android:layout_marginTop="7.0dip" android:layout_marginBottom="7.0dip" android:src="@drawable/tw_quick_panel_plnm_setting_dv" />
<RelativeLayout android:id="@id/settings_button" android:background="@drawable/tw_quick_panel_setting_button_bg" android:focusable="true" android:visibility="visible" android:layout_width="@dimen/status_bar_expanded_setting_width" android:layout_height="39.0dip">
<ImageView android:id="@id/settings_button_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
</LinearLayout>
substitute it to
Code:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center_vertical" android:orientation="horizontal" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="39.0dip" android:baselineAligned="false"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Clock" android:textColor="#ffffffff" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="4.0dip" android:layout_marginTop="-3.0dip" android:singleLine="true" systemui:ampmSmall="true" />
<com.android.systemui.statusbar.policy.DateView android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date" android:textColor="#ffffffff" android:ellipsize="none" android:id="@id/date" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="8.0dip" android:layout_marginRight="4.0dip" android:maxLines="2" />
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:visibility="gone" android:clickable="true" android:layout_width="32.0dip" android:layout_height="32.0dip" android:layout_margin="8.0dip" android:button="@drawable/ic_notify_rotation" android:contentDescription="@string/accessibility_rotation_lock_off" />
<Space android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0" />
[COLOR="Red"]<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/recent_apps" android:paddingLeft="2.0dip" android:paddingRight="1.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_recent" android:layout_toLeftOf="@id/back" android:contentDescription="@string/accessibility_recent" systemui:keyCode="187" systemui:glowBackground="@drawable/ic_sysbar_highlight" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/back" android:paddingLeft="2.0dip" android:paddingRight="3.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lock" android:layout_toLeftOf="@id/settings_button" android:contentDescription="@string/accessibility_back" systemui:keyCode="26" systemui:glowBackground="@drawable/ic_sysbar_highlight" />[/COLOR]
<ImageView android:layout_width="1.0dip" android:layout_height="25.0dip" android:layout_marginTop="7.0dip" android:layout_marginBottom="7.0dip" android:src="@drawable/tw_quick_panel_plnm_setting_dv" />
<RelativeLayout android:id="@id/settings_button" android:background="@drawable/tw_quick_panel_setting_button_bg" android:focusable="true" android:visibility="visible" android:layout_width="@dimen/status_bar_expanded_setting_width" android:layout_height="39.0dip">
<ImageView android:id="@id/settings_button_icon" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/tw_quickpanel_icon_settings" android:scaleType="center" android:layout_centerHorizontal="true" android:layout_centerVertical="true" android:contentDescription="@string/accessibility_settings_button" />
</RelativeLayout>
</LinearLayout>
Red lines are for this mod. First line is for Recent Apps icon and the second one for LockScreen icon.
Also after modifying mentioned XML you need to add corresponding .png photo to drawable-xhdpi which is called ic_sysbar_lock.png for lockscreen (sensitive must be added) and ic_sysbar_recent.png for recent Apps which is already there in drawable-xhdpi and I just resized it.
Compile and done.
Good Luck
Click to expand...
Click to collapse
1 thing to note. Press and hold the lockscreen shortcut will bring out the power button menu. Lockscreen shortcut act as a power button.
As in ICS We Have An Option to Calibrate accelerometer In settings.
But..
In JB..??
No..!!
In JB this Feature is missing.
but After some digging in Secsettings.apk i am able to Find This
As i belive in Sharing is Caring Then I am Sharing The Method to Enable This Feature.
Soo.. Here We Goo..
Requirements:-
1. ApkTool And knowledge to use It
2. Stock JB
3. Basics Knowledge of Copy/Paste
1. First Decompile SecSettings.apk
2. When Done, Go to res/xml/ And Look For a File Called motion_sensitivity_settings.xml
3. When You Will Open This File. You Will Find These Lines
Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/sensitivity_settings_title" android:key="parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<Preference android:persistent="false" android:title="@string/air_glance_view" android:key="glance_view" android:summary="@string/air_glance_view_descption" android:fragment="com.android.settings.motion.GlanceViewSettings" />
<PreferenceScreen android:title="@string/g_sensor_title" android:key="g_sensor" android:summary="@string/g_sensor_summary">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.GSensorSettings" />
</PreferenceScreen>
<PreferenceCategory android:persistent="false" android:title="@string/sensitivity_settings_title" android:key="category_sensitivity_setting" />
<com.android.settings.motion.SensitivityPreference android:title="@string/tilt_title" android:key="tilt_sensitivity" android:summary="@string/tilt_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
<com.android.settings.motion.SensitivityPreference android:title="@string/tilt_to_scroll_list_title" android:key="tilt_to_scroll_list_sensitivity" android:summary="@string/tilt_to_scroll_list_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
<com.android.settings.motion.SensitivityPreference android:title="@string/pan_title" android:key="pan_sensitivity" android:summary="@string/pan_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
<com.android.settings.motion.SensitivityPreference android:title="@string/pan_to_browse_image_title" android:key="pan_to_browse_image_sensitivity" android:summary="@string/pan_to_browse_image_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
</PreferenceScreen>
4.Replace All lines as given bleow:-
Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/sensitivity_settings_title" android:key="parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<Preference android:persistent="false" android:title="@string/air_glance_view" android:key="glance_view" android:summary="@string/air_glance_view_descption" android:fragment="com.android.settings.motion.GlanceViewSettings" />
<PreferenceScreen android:title="@string/a_sensor_title" android:key="a_sensor" android:summary="@string/a_sensor_summary">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.ASensorSettings" />
</PreferenceScreen>
<PreferenceScreen android:title="@string/g_sensor_title" android:key="g_sensor" android:summary="@string/g_sensor_summary">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.GSensorSettings" />
</PreferenceScreen>
<PreferenceCategory android:persistent="false" android:title="@string/sensitivity_settings_title" android:key="category_sensitivity_setting" />
<com.android.settings.motion.SensitivityPreference android:title="@string/tilt_title" android:key="tilt_sensitivity" android:summary="@string/tilt_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
<com.android.settings.motion.SensitivityPreference android:title="@string/tilt_to_scroll_list_title" android:key="tilt_to_scroll_list_sensitivity" android:summary="@string/tilt_to_scroll_list_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
<com.android.settings.motion.SensitivityPreference android:title="@string/pan_title" android:key="pan_sensitivity" android:summary="@string/pan_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
<com.android.settings.motion.SensitivityPreference android:title="@string/pan_to_browse_image_title" android:key="pan_to_browse_image_sensitivity" android:summary="@string/pan_to_browse_image_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
</PreferenceScreen>
And Then Save it.
6.Now Decompile File And Push to Your Phone.
When You Will Do the All Things you Will Found this Settings in Settings/motion/Sensitivity Settings/<here> As Given in 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"
}
Its DONE.
Works Great AmniX!
Y'All Should try it. Finally Real Racing 3 Is accurate!!
Thank you very much....You are the Man
Hm.So gyroscope calibration isn't the same? A lot of things was lost from GB & ICS...
...from SG NOTE N7000 with Tapatalk 2
zviki said:
Hm.So gyroscope calibration isn't the same? A lot of things was lost from GB & ICS...
...from SG NOTE N7000 with Tapatalk 2
Click to expand...
Click to collapse
gyroscope calibration*is still in jelly bean it located at display last section !
so i don't think i need extra gyroscope calibration*:p
but anyway thanks to Amnix for the update..
it used to be there but for JB its in motion>sensitivity settings
Help
Hi, I'm trying to deconpiled de SecSettings.apk but appers lots of erros and not all the files are decompressed, can u post the stock file with only this bug corretion. I would apreciated that.
Sorry the english.
Thanks in advance
Horizontal calibration request on galaxy s2 jelly bean
hi what programe's name you usE to decompile
note 2
AmniX said:
As in ICS We Have An Option to Calibrate accelerometer In settings.
But..
In JB..??
No..!!
In JB this Feature is missing.
but After some digging in Secsettings.apk i am able to Find This
As i belive in Sharing is Caring Then I am Sharing The Method to Enable This Feature.
Soo.. Here We Goo..
Requirements:-
1. ApkTool And knowledge to use It
2. Stock JB
3. Basics Knowledge of Copy/Paste
1. First Decompile SecSettings.apk
2. When Done, Go to res/xml/ And Look For a File Called motion_sensitivity_settings.xml
3. When You Will Open This File. You Will Find These Lines
Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/sensitivity_settings_title" android:key="parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<Preference android:persistent="false" android:title="@string/air_glance_view" android:key="glance_view" android:summary="@string/air_glance_view_descption" android:fragment="com.android.settings.motion.GlanceViewSettings" />
<PreferenceScreen android:title="@string/g_sensor_title" android:key="g_sensor" android:summary="@string/g_sensor_summary">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.GSensorSettings" />
</PreferenceScreen>
<PreferenceCategory android:persistent="false" android:title="@string/sensitivity_settings_title" android:key="category_sensitivity_setting" />
<com.android.settings.motion.SensitivityPreference android:title="@string/tilt_title" android:key="tilt_sensitivity" android:summary="@string/tilt_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
<com.android.settings.motion.SensitivityPreference android:title="@string/tilt_to_scroll_list_title" android:key="tilt_to_scroll_list_sensitivity" android:summary="@string/tilt_to_scroll_list_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
<com.android.settings.motion.SensitivityPreference android:title="@string/pan_title" android:key="pan_sensitivity" android:summary="@string/pan_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
<com.android.settings.motion.SensitivityPreference android:title="@string/pan_to_browse_image_title" android:key="pan_to_browse_image_sensitivity" android:summary="@string/pan_to_browse_image_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
</PreferenceScreen>
4.Replace All lines as given bleow:-
Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/sensitivity_settings_title" android:key="parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<Preference android:persistent="false" android:title="@string/air_glance_view" android:key="glance_view" android:summary="@string/air_glance_view_descption" android:fragment="com.android.settings.motion.GlanceViewSettings" />
<PreferenceScreen android:title="@string/a_sensor_title" android:key="a_sensor" android:summary="@string/a_sensor_summary">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.ASensorSettings" />
</PreferenceScreen>
<PreferenceScreen android:title="@string/g_sensor_title" android:key="g_sensor" android:summary="@string/g_sensor_summary">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.GSensorSettings" />
</PreferenceScreen>
<PreferenceCategory android:persistent="false" android:title="@string/sensitivity_settings_title" android:key="category_sensitivity_setting" />
<com.android.settings.motion.SensitivityPreference android:title="@string/tilt_title" android:key="tilt_sensitivity" android:summary="@string/tilt_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
<com.android.settings.motion.SensitivityPreference android:title="@string/tilt_to_scroll_list_title" android:key="tilt_to_scroll_list_sensitivity" android:summary="@string/tilt_to_scroll_list_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
<com.android.settings.motion.SensitivityPreference android:title="@string/pan_title" android:key="pan_sensitivity" android:summary="@string/pan_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
<com.android.settings.motion.SensitivityPreference android:title="@string/pan_to_browse_image_title" android:key="pan_to_browse_image_sensitivity" android:summary="@string/pan_to_browse_image_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
</PreferenceScreen>
And Then Save it.
6.Now Decompile File And Push to Your Phone.
When You Will Do the All Things you Will Found this Settings in Settings/motion/Sensitivity Settings/<here> As Given in Screenshot:-
Its DONE.
Click to expand...
Click to collapse
is this method is same for note 2
thanks
AmniX said:
As in ICS We Have An Option to Calibrate accelerometer In settings.
But..
In JB..??
No..!!
In JB this Feature is missing.
but After some digging in Secsettings.apk i am able to Find This
As i belive in Sharing is Caring Then I am Sharing The Method to Enable This Feature.
Soo.. Here We Goo..
Requirements:-
1. ApkTool And knowledge to use It
2. Stock JB
3. Basics Knowledge of Copy/Paste
1. First Decompile SecSettings.apk
2. When Done, Go to res/xml/ And Look For a File Called motion_sensitivity_settings.xml
3. When You Will Open This File. You Will Find These Lines
Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/sensitivity_settings_title" android:key="parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<Preference android:persistent="false" android:title="@string/air_glance_view" android:key="glance_view" android:summary="@string/air_glance_view_descption" android:fragment="com.android.settings.motion.GlanceViewSettings" />
<PreferenceScreen android:title="@string/g_sensor_title" android:key="g_sensor" android:summary="@string/g_sensor_summary">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.GSensorSettings" />
</PreferenceScreen>
<PreferenceCategory android:persistent="false" android:title="@string/sensitivity_settings_title" android:key="category_sensitivity_setting" />
<com.android.settings.motion.SensitivityPreference android:title="@string/tilt_title" android:key="tilt_sensitivity" android:summary="@string/tilt_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
<com.android.settings.motion.SensitivityPreference android:title="@string/tilt_to_scroll_list_title" android:key="tilt_to_scroll_list_sensitivity" android:summary="@string/tilt_to_scroll_list_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
<com.android.settings.motion.SensitivityPreference android:title="@string/pan_title" android:key="pan_sensitivity" android:summary="@string/pan_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
<com.android.settings.motion.SensitivityPreference android:title="@string/pan_to_browse_image_title" android:key="pan_to_browse_image_sensitivity" android:summary="@string/pan_to_browse_image_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
</PreferenceScreen>
4.Replace All lines as given bleow:-
Code:
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/sensitivity_settings_title" android:key="parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<Preference android:persistent="false" android:title="@string/air_glance_view" android:key="glance_view" android:summary="@string/air_glance_view_descption" android:fragment="com.android.settings.motion.GlanceViewSettings" />
<PreferenceScreen android:title="@string/a_sensor_title" android:key="a_sensor" android:summary="@string/a_sensor_summary">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.ASensorSettings" />
</PreferenceScreen>
<PreferenceScreen android:title="@string/g_sensor_title" android:key="g_sensor" android:summary="@string/g_sensor_summary">
<intent android:targetPackage="com.android.settings" android:action="android.intent.action.MAIN" android:targetClass="com.android.settings.GSensorSettings" />
</PreferenceScreen>
<PreferenceCategory android:persistent="false" android:title="@string/sensitivity_settings_title" android:key="category_sensitivity_setting" />
<com.android.settings.motion.SensitivityPreference android:title="@string/tilt_title" android:key="tilt_sensitivity" android:summary="@string/tilt_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
<com.android.settings.motion.SensitivityPreference android:title="@string/tilt_to_scroll_list_title" android:key="tilt_to_scroll_list_sensitivity" android:summary="@string/tilt_to_scroll_list_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
<com.android.settings.motion.SensitivityPreference android:title="@string/pan_title" android:key="pan_sensitivity" android:summary="@string/pan_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
<com.android.settings.motion.SensitivityPreference android:title="@string/pan_to_browse_image_title" android:key="pan_to_browse_image_sensitivity" android:summary="@string/pan_to_browse_image_summary" android:widgetLayout="@layout/round_more_icon" android:dialogTitle="@string/sensitivity_title" />
</PreferenceScreen>
And Then Save it.
6.Now Decompile File And Push to Your Phone.
When You Will Do the All Things you Will Found this Settings in Settings/motion/Sensitivity Settings/<here> As Given in Screenshot:-
Its DONE.
Click to expand...
Click to collapse
can u upload the moded apk ?? , 'cuz I didn't know how to use apktool !! thanx in advance