> Attention!

New threads need to be created only inroot partition! In the future, they will be processed by moderators.



Editing system apk Samsung GT-i9100 Galaxy S II | Discussion and exchange of experience



Rep: (7341)
Editing system applications Samsung Galaxy S II (Samsung GT-I9100)

Attached ImageLearning, share experiences and discuss nuances modify Samsung Galaxy S II system software


Forum Rules пїЅ | Firmware GB пїЅ | ICS Firmware пїЅ | Creating EEPROM for Samsung Galaxy S II (Samsung I9100) пїЅ | FAQ пїЅ

Attached Image

Terms of topics:
- This topic discusses the very system files editing process that you can implement yourself.
- Duplicate branch "Modification of ...", which are laid out ready solutions. Here they have a place to be only in the form of exceptions to the rule.
- Posts with open screens will be deleted without warning!
- Editing applications from Cyanogen Mod, MIUI, other modifications are not discussed!
- In the future, all posts that violate this concept will be deleted without warning!


Ready modifications decorations are published here : software modification and embellishment for Samsung Galaxy SII.
Orders for the modification of embellishment leave here : Table ukrashalki orders for Samsung Galaxy S II.
and here : Order table for compiling and editing system resources and applications


Catalog of this thread:

Deodex firmware dumpsfromK-User

2.3x (GB)

4.0x (ICS)

4.1x (JB)
- Launcher

- Status bar and curtain

- lock screen

- Contact and Phone

- Recently used applications

- Miscellanea


Universal


Useful links:

Updates in the header:
01.04.2013 ->Added manuals inCatalog of this thread -> 4.1x (JB)
02.04.2013 ->Links to manuals transferred to the appropriate firmware, includingCatalog of this thread -> Universal
06.04.2013 ->Added links to similar structure editing section Soupuseful links
21.04.2013 ->The cap violations are highlighted in red in this topic
07.05.2013 ->Tweaked linksUniversal
19.05.2013 ->and removed under spoiler links are arranged for easy searchingCatalog of this branch ->4.1x (JB)
02.06.2013 ->The first paragraph of the rules is corrected text threads, in order to avoid contradictions in the subject.
12.06.2013 ->Added latest manuals.
25.07.2013 ->Added latest manuals inCatalog of this thread -> 4.1x (JB).
11.08.2013 ->Added latest manuals-> 4.1x (JB).
08.11.2013 ->Added latest manuals and references-> 4.1x (JB).
11.03.2014 ->Updated and added fresh manuals-> 4.1x (JB).

User activity
Attached ImageThe resource administration for your actions is not responsible!
About gratitude, I do not even know how to speak ... It's on your conscience.

We strongly recommend that you read the topic before asking a questionSo as not to look stupid in the eyes of others.


Post has been editedsagitt67 - 15.01.17, 22:12
Reason for editing: added link User activity



Rep: (1093)
Dumps deodex firmware.


version 4.1.2


Post has been editedK-User - 04.05.13, 12:51



Rep: (288)
the native screen locker is possible as the color of the clock and the date change from white to gray or black?



Rep: (1757)
GNOM, sure you may.
For hours correspond pictures lie inframework-res \ res \ drawable-hdpi, Not difficult to find. Me on your own.
The date can be found inzzz_keyguard_screen_clock_gb.xml the path of framework-res \ res \ layout, line



Whereffebebeband there is color. Just change to any of your ...

I for example so
Attached Image


Post has been editedK-User - 10.09.11, 10:12



Rep: (3554)
How to fix the lag in the browser deodeks firmware (on XXKG1 works too):

BitmapWebView.smali

change @ Line 312

sput-boolean v0, Lcom / android / browser / BitmapWebView; -> DEBUG_PERFORMANCE: Z

to

sput-boolean v0, Lcom / android / browser / BitmapWebView; -> OPTIMIZE_EVENTS: Z


change @ Line 356

sput-boolean v0, Lcom / android / browser / BitmapWebView; -> DEBUG_POST_BITMAP: Z

to

sput-boolean v0, Lcom / android / browser / BitmapWebView; -> USE_POST_BITMAP: Z


change @ Line 3284

sget-boolean v2, Lcom / android / browser / BitmapWebView; -> DEBUG_POST_BITMAP: Z

to

sget-boolean v2, Lcom / android / browser / BitmapWebView; -> USE_POST_BITMAP: Z


change @ Line 3343

sget-boolean v2, Lcom / android / browser / BitmapWebView; -> DEBUG_POST_BITMAP: Z

to

sget-boolean v2, Lcom / android / browser / BitmapWebView; -> USE_POST_BITMAP: Z


change @ Line 3410

sget-boolean v0, Lcom / android / browser / BitmapWebView; -> DEBUG_POST_BITMAP: Z

to

sget-boolean v0, Lcom / android / browser / BitmapWebView; -> USE_POST_BITMAP: Z


change @ Line 4089

sget-boolean v0, Lcom / android / browser / BitmapWebView; -> DEBUG_POST_BITMAP: Z

to

sget-boolean v0, Lcom / android / browser / BitmapWebView; -> USE_POST_BITMAP: Z


change @ Line 4114

sget-boolean v2, Lcom / android / browser / BitmapWebView; -> DEBUG_PERFORMANCE: Z

to

sget-boolean v2, Lcom / android / browser / BitmapWebView; -> OPTIMIZE_EVENTS: Z


change @ Line 6390

sget-boolean v0, Lcom / android / browser / BitmapWebView; -> DEBUG_PERFORMANCE: Z

to

sget-boolean v0, Lcom / android / browser / BitmapWebView; -> OPTIMIZE_EVENTS: Z


change @ Line 7284

sget-boolean v0, Lcom / android / browser / BitmapWebView; -> DEBUG_POST_BITMAP: Z

to

sget-boolean v0, Lcom / android / browser / BitmapWebView; -> USE_POST_BITMAP: Z


change @ Line 7392

sget-boolean v0, Lcom / android / browser / BitmapWebView; -> DEBUG_POST_BITMAP: Z

to

sget-boolean v0, Lcom / android / browser / BitmapWebView; -> USE_POST_BITMAP: Z


change @ Line 7519

sget-boolean v0, Lcom / android / browser / BitmapWebView; -> DEBUG_POST_BITMAP: Z

to

sget-boolean v0, Lcom / android / browser / BitmapWebView; -> USE_POST_BITMAP: Z


change @ Line 7549

sget-boolean v0, Lcom / android / browser / BitmapWebView; -> DEBUG_POST_BITMAP: Z

to

sget-boolean v0, Lcom / android / browser / BitmapWebView; -> USE_POST_BITMAP: Z


change @ Line 7564

sget-boolean v0, Lcom / android / browser / BitmapWebView; -> DEBUG_PERFORMANCE: Z

to

sget-boolean v0, Lcom / android / browser / BitmapWebView; -> OPTIMIZE_EVENTS: Z


change @ Line 10001

sget-boolean v0, Lcom / android / browser / BitmapWebView; -> DEBUG_POST_BITMAP: Z

to

sget-boolean v0, Lcom / android / browser / BitmapWebView; -> USE_POST_BITMAP: Z


change @ Line 10754

sget-boolean v4, Lcom / android / browser / BitmapWebView; -> DEBUG_PERFORMANCE: Z

to

sget-boolean v4, Lcom / android / browser / BitmapWebView; -> OPTIMIZE_EVENTS: Z


Remove from BitmapWebViewLayout.smali

.method protected dispatchDraw (Landroid / graphics / Canvas;) V
.registers 3
.parameter "canvas"

.prologue
.line 36
iget-object v0, p0, Lcom / android / browser / BitmapWebViewLayout; -> mBitmapWebView: Lcom / android / browser / BitmapWebView;

if-eqz v0,: cond_9

.line 37
iget-object v0, p0, Lcom / android / browser / BitmapWebViewLayout; -> mBitmapWebView: Lcom / android / browser / BitmapWebView;

invoke-virtual {v0, p1}, Lcom / android / browser / BitmapWebView; -> dispatchDraw (Landroid / graphics / Canvas;) V

.line 39
: cond_9
return-void
.end method


BitmapWebViewSurface3D.smali

change

.line 63
sget-boolean v0, Lcom / android / browser / BitmapWebView; -> DEBUG_PERFORMANCE: Z

sput-boolean v0, Lcom / android / browser / BitmapWebViewSurface3D; -> DEBUG_PERFORMANCE: Z
to

.line 63
sget-boolean v0, Lcom / android / browser / BitmapWebView; -> OPTIMIZE_EVENTS: Z

sput-boolean v0, Lcom / android / browser / BitmapWebViewSurface3D; -> OPTIMIZE_EVENTS: Z

change

.line 399
: cond_8e
sget-boolean v0, Lcom / android / browser / BitmapWebViewSurface3D; -> DEBUG_PERFORMANCE: Z

to

.line 399
: cond_8e
sget-boolean v0, Lcom / android / browser / BitmapWebViewSurface3D; -> OPTIMIZE_EVENTS: Z



Post has been editedalba19986 - 11.07.11, 10:20



Rep: (48)
>>> Modification deodekirovannogo and disassembled Phone.apk It is based on firmware KE7 but can be used for any firmware.

Mod 1. Displays the name and surname in 2 lines.
phone.apk / res / layots / Call_Card_Person_Info.xml

The starting line:
Line 14


Line 16


New code:




Mod 2. A slew of noise reduction.
phone.apkresvaluesbools.xml

Source:
Line 18
true


The necessary code:
Line 18:
false


Mod 3. removing delay (4.5 seconds - 0.5 seconds; "call finished" + "button 3") after completion of the conversation. Based on Phone.apk from KE7 but can be used for any firmware.
Phone.apksmalicomandroidphoneInCallScreen.smali

Source:
Line 5164
const / 16 v1, 0x1194

Line 5187
const / 16 v1, 0x1194


New code:
Line 5164
const / 16 v1, 0x1f4

Line 5187
const / 16 v1, 0x1f4


Mod 4. Deleting a rising call.
Phone.apksmalicomandroidphoneRinger.smali

Source:
Line 92
const / 16 v0, 0x7d0

New code:
Line 92
const / 16 v0, 0x0


Phone.apksmalicomandroidphoneRinger $ 1.smali

Source:
Line 241
const-wide / 16 v2, 0x7d0

The new code
Line 241
const-wide / 16 v2, 0x0

>>> Modification deodekirovannogo and disassembled Contacts.apk It is based on firmware KE7 but can be used for any firmware

Mod 5.Correction in the contact list, scroll bar characters in the "ABCDEFGHIJKLMNOPQRSTUVWYZ". Based on Contacts.apk from KE7 but can be used for any firmware.
Contacts.apkresvaluesstrings.xml

Optimization of the phone book and bars on the right index.
Source:
Line 611 ABCDEFGHIJKLMNOPQRSTUVWXYZ
Line 612 Contacts settings

New code:
Line 611 (hex 1A) ABCDEFGHIJKLMNOPQRSTUVWXY
Line 612 (hex 11) Contacts setting


Accordingly insert 16tirichnye values ​​1A, 11. (Unicode SUB, Unicode DC1)

Contacts.apkresvalues-rustrings.xml

Source:
Line 596 # AVGEZHZIYKLMNOPRSTUFHTSCHSHYYAAZ
Line 597 # AVGEZHZIYKLMNOPRSTUFHTSCHSHYYAAZ

New code:
Line 596 ABCDEFGHIJKLMNOPQRSTUVWYZ
Line 597 (hex 1A) ABCDEFGHIJKLMNOPQRSTUVWXY


Mod 6. Delete an alert when fully charged. Based on SystemUI.apk from KE7 but can be used for any firmware.
SystemUI.apksmalicomandroidsystemuistatusbarpolicyStatusBarPolic
y.smali

Cut all addFullChargeNotification () method
Method Start Line 1610, the end of the Line 1695

.method private addFullChargeNotification () V
.locals 7
.......
.......
.line 1767
return-void
.end method


Delete the lines:
Line 3133 726 .line
Line 3134 invoke-direct {p0}, Lcom / android / systemui / statusbar / policy / StatusBarPolicy; -> addFullChargeNotification () V



Mod 7. Adding a second button (Data Connection) in the quick menu (shutter)

This mod is currently suitable for all older firmware not KF2
SystemUI.apkreslayoutquickpanel_quick_settings.xml



Line 6 change android: textSize = "12.0dip" on android: textSize = "10.0dip"
Line 11 change android: textSize = "12.0dip" on android: textSize = "10.0dip"
Line 16 change android: textSize = "12.0dip" on android: textSize = "10.0dip"

Line 19 after adding new line 20 - line 24

Line 20

Line 21

Line 22

Line 23

Line 24

Line 21 + 5 change android: textSize = "12.0dip" on android: textSize = "10.0dip"
Line 26 + 5 change android: textSize = "12.0dip" on android: textSize = "10.0dip"; android: textColor = "@ color / quickpanel_text" on android: textColor = "# ffffffff"


Replace file SystemUI.apkresdrawable-hdpiquickpanel_quick_settings_background.png in the annex below (change the keypad layout in the 5-6-push-button.


Mod 8. The addition of a long click on the button in the Quick menu (shutter).
SystemUI.apksmalicomandroidsystemuistatusbarquickpanelQuickSetti
ngButton.smali

section #interfaces add:
Line 7 .implements Landroid / view / View $ OnLongClickListener;

In section #Virtual methods add StartApp () method
Start method Line 51, the end of Line 85

.method public StartApp (Ljava / lang / String; Ljava / lang / String;) V
.locals 4

.prologue
new-instance v0, Landroid / content / Intent;

invoke-direct {v0}, Landroid / content / Intent; -> () V

invoke-virtual {v0, p1, p2}, Landroid / content / Intent; -> setClassName (Ljava / lang / String; Ljava / lang / String;) Landroid / content / Intent;

const-string v1, "android.intent.action.MAIN"

invoke-virtual {v0, v1}, Landroid / content / Intent; -> setAction (Ljava / lang / String;) Landroid / content / Intent;

const v3, 0x10004000

invoke-virtual {v0, v3}, Landroid / content / Intent; -> setFlags (I) Landroid / content / Intent;

iget-object v1, p0, Lcom / android / systemui / statusbar / quickpanel / QuickSettingButton; -> mContext: Landroid / content / Context;

invoke-virtual {v1, v0}, Landroid / content / Context; -> startActivity (Landroid / content / Intent;) V

const-string v3, "statusbar"

invoke-virtual {v1, v3}, Landroid / content / Context; -> getSystemService (Ljava / lang / String;) Ljava / lang / Object;

move-result-object v3

check-cast v3, Landroid / app / StatusBarManager;

invoke-virtual {v3}, Landroid / app / StatusBarManager; -> collapse () V

return-void
.end method


Add strings
Line 103 .method abstract long_click () V
Line 104 .end method

Line 106 is replaced by 5 .locals .locals 6

Add strings

Line 111 const / 4 v5, 0x1

Line 133 invoke-virtual {p0, v5}, Lcom / android / systemui / statusbar / quickpanel / QuickSettingButton; -> setLongClickable (Z) V
Line 134
Line 135 invoke-virtual {p0, p0}, Lcom / android / systemui / statusbar / quickpanel / QuickSettingButton; -> setOnLongClickListener (Landroid / view / View $ OnLongClickListener;) V

Line 219 - line 227

.method public onLongClick (Landroid / view / View;) Z
.locals 2
.parameter "v"

.prologue
const / 4 v1, 0x1

const / 4 v0, 0x0

invoke-virtual {p0, v0}, Lcom / android / systemui / statusbar / quickpanel / QuickSettingButton; -> setEnabled (Z) V

invoke-virtual {p0}, Lcom / android / systemui / statusbar / quickpanel / QuickSettingButton; -> long_click () V

invoke-virtual {p0, v1}, Lcom / android / systemui / statusbar / quickpanel / QuickSettingButton; -> setEnabled (Z) V

return v1
.end method


In the same directory is added in section #Virtual Methods files AutoRotationSettingButton.smali, BluetoothSettingButton.smali, DataConnectionSettingButtonXEC.smali, GpsSettingButton.smali, SoundSettingButton.smali, WifiSettingButton.smali after method deactivate () (.end method string) method long_click () . In this case, the content selected by square brackets] substitute the appropriate file name in the code example for BluetoothSettingButton file.
.method public long_click () V
.locals 2

.prologue
const-string v0, "com.android.settings"

const-string v1, "com.android.settings.wifi.WifiSettings"

invoke-virtual {p0, v0, v1}, Lcom / android / systemui / statusbar / quickpanel / [BluetoothSettingButton]; -> StartApp (Ljava / lang / String; Ljava / lang / String;) V

return-void
.end method


due to limitations on the length of the string in the forum, look carefully at the code that I have not spread by row.


Mod 9. old TV effect. Based on the framework-res.apk from KF2 but can be used for any firmware.
framework-res.apkresvaluesbools.xml

Replace
Line 17 true to false



Mod 10. Disabling avtokonvertatsii sms, mms. Based uponmms.apkby KE7 but can be used for any firmware.
Mms.apkresxmlmms_config.xml
Replace:
Line 19 4 to 100


After 100 exposes avtokonvertatsiyu SMS instead of 4



Mod 11. The increase of number of contacts for simultaneous distribution from 10 to 200. Based onmms.apkby KE7 but can be used for any firmware.
Mms.apkresxmlmms_config.xml
Replace:
Line 18 10 to 200


Mod 12. Increased the maximum size of the sent message to 300 KB to 1 MB. Based uponmms.apkby KE7 but can be used for any firmware.
Mms.apkresxmlmms_config.xml
Replace:
Line 4 307200 to 1,048,576


13. We need a test modes Reducing the number of messages in the first conversation to the 1st (in theory, each new message will come in a new trade, ie the so-called classic look. You need to check). Based uponmms.apkby KE7 but can be used for any firmware.
Mms.apkresxmlmms_config.xml
Replace:
Line 8 200 to 1


Mod 14. Threshold chamber off when the battery charging 0%. Based uponCamera.apkfrom KG1 but it can be used for any firmware.
Camera.apksmalicomsecandroidappcameraCamcorder.smali
Instead of rows:
Line 3409 const v3, 0x10e000b

Line 3411 invoke-virtual {v2, v3}, Landroid / content / res / Resources; -> getInteger (I) I

Line 3413 move-result v2

Insert Line 3409 line: const / 4 v2, 0x0

Camera.apksmalicomsecandroidappcameraCamera.smali
Instead of rows:
Line 6523 const v6, 0x10e000b

Line 6525 invoke-virtual {v5, v6}, Landroid / content / res / Resources; -> getInteger (I) I

Line 6527 move-result v5

Insert Line 6523 line: const / 4 v5, 0x0




Mod 15. Adding to the Lock menu items Recovery, reboot, Download mode. It can be added to all items and only one of them. Based on the framework-res.apk, androidpolicy.jar, framework.jar from KF2 but can be used for any firmware.
framework-res.apkresvaluespublic.xml
After adding line 2774:
Line 2775
Line 2776
Line 2777

After adding lines 3660
Line 3961
Line 3962
Line 3963

framework-res.apkresvaluesstrings.xml
After adding line 1189:
Line 1 190 Reboot
Line 1 191 Recovery
Line 1 192 Download


The folder framework-res.apkresdrawable-hdpi add the files attached to the post.

framework.apksmalicomandroidinternalappShutdownThread.smali
After adding 11 rows
Line 12 .field public static mReboot: I

The method rebootOrShutdown:

Change:
Line 827 if-eqz p0,: cond_0 on if-eqz p0,: cond_3

After line 866 invoke-static {v4, v2}, Landroid / util / Log; -> i (Ljava / lang / String; Ljava / lang / String;) I Adding:

sget v1, Lcom / android / internal / app / ShutdownThread; -> mReboot: I

const / 4 v2, 0x1

if-eq v1, v2,: cond_0

const / 4 v2, 0x2

if-eq v1, v2,: cond_1

const / 4 v2, 0x3

if-eq v1, v2,: cond_2

Further, through line 2 after .line lines 734 and return-void add lines:

: cond_0
const-string / jumbo v4, "now"

invoke-static {v4}, Landroid / os / Power; -> reboot (Ljava / lang / String;) V

return-void

: cond_1
const-string / jumbo v4, "recovery"

invoke-static {v4}, Landroid / os / Power; -> reboot (Ljava / lang / String;) V

return-void

: cond_2
const-string v4, "download"

invoke-static {v4}, Landroid / os / Power; -> reboot (Ljava / lang / String;) V

return-void

Next, a few lines after .line 716 and .end local v0 #e: Ljava / lang / Exception; change:

: Cond_0 on: cond_3 (in the original file Line 887, I got together with 924 blank lines).

android.policy.apksmalicomandroidinternalpolicyimplGlobalActions.smali
Line 768 const / 4 v1, 0x4 change to const / 4 v1, 0x7

After row Line 788 invoke-direct {v2, p0, v3, v7}, Lcom / android / internal / policy / impl / GlobalActions $ 5; -> (Lcom / android / internal / policy / impl / GlobalActions; II) V adding following lines:

aput-object v2, v1, v6

const / 4 v6, 0x4

new-instance v2, Lcom / android / internal / policy / impl / GlobalActions $ 11;

const v3, 0x108041b

const v7, 0x10404a3

invoke-direct {v2, p0, v3, v7}, Lcom / android / internal / policy / impl / GlobalActions $ 11; -> (Lcom / android / internal / policy / impl / GlobalActions; II) V

aput-object v2, v1, v6

const / 4 v6, 0x5

new-instance v2, Lcom / android / internal / policy / impl / GlobalActions $ 12;

const v3, 0x108041c

const v7, 0x10404a4

invoke-direct {v2, p0, v3, v7}, Lcom / android / internal / policy / impl / GlobalActions $ 12; -> (Lcom / android / internal / policy / impl / GlobalActions; II) V

aput-object v2, v1, v6

const / 4 v6, 0x6

new-instance v2, Lcom / android / internal / policy / impl / GlobalActions $ 13;

const v3, 0x108041d

const v7, 0x10404a5

invoke-direct {v2, p0, v3, v7}, Lcom / android / internal / policy / impl / GlobalActions $ 13; -> (Lcom / android / internal / policy / impl / GlobalActions; II) V


In android.policy.jarsmalicomandroidinternalpolicyimpl add folder files from the archive below GlobalActions attached to the post. To change the number of added points is enough to add anything, but to include one of them by editing the length of the array (instead of 0x4 to make 0x5, 0x6, etc. and revizirovat appropriate labels: Cond_0, Cond_1 etc.


Attached fileGlobalActions.zip(2.25 KB)

Attached filedrawable_hdpi.7z(6.29 KB)


Post has been editedK-User - 02.07.12, 23:20



Rep: (15)
loza100,
Tell me how to change the font on lokskrine hours. Icons in the framework-res me on their own, but something about them is restored to default. Firmware KG1.



Rep: (1093)
xCOMRADEx @ 11.07.2011, 17:13*
Tell me how to change the font on lokskrine hours. Icons in the framework-res me on their own, but something to restore their default

"I do not believe 'as Stanislavski said.
This is not the font and images
Attached Image


Post has been editedK-User - 10.09.11, 10:15



Rep: (15)
K-User,
Seriously I say, why should I cheat, I do not understand how the case. Parses the framework-res, replace icons, like on your screenshot on their own, without breaking the file name and size of the icons, additionally includes the effects of TV. Throws on the device, easy to blunt after playing melody butanimatsii supercharged ... TV effect works on lokskrine unchanged. I stand framework-res on a computer, make out, as the icons on your screen shot, as well as did not change anything at all. Firmware 2.3.4, in this case a beginner, here and I ask ... is there any subtleties?

Post has been editedxCOMRADEx - 11.07.11, 17:20



Rep: (1093)
xCOMRADEx @ 11.07.2011, 18:16*
It may have some subtlety?

Yes no tonkostey.Znachit frame does not replace on system / framework way.



Rep: (1757)
xCOMRADEx, my colleague is right. What's wrong doing. As for the color of these unfortunate, for you need to repaint hours- in the graphical editor, as this picture. And by the way, Android is still the size of pictures, but of course within reason .;)



Rep: (48)
Dalvik Opcodes:http://pallergabor.uw.hu/androidblog/dalvik_opcodes.htmlc short explanations.

Edit smali files better using Ultraedit with the plugin Smali or Notepad ++.

Minigayd editing Smal'll post later on the basis of one of the patches.



Rep: (1757)
Digitalhell @ 15.07.2011, 13:11*
or Notepad ++.

AkelPad is also good to deal with it, and will be easier ...



Rep: (48)
loza100 @ 15.07.2011, 14:51*
AkelPad is also good to deal with it, and will be easier ...


A plug-in that highlights have full syntax Smali ?, narimer like so:
Attached Image


Post has been editedK-User - 10.09.11, 10:19



Rep: (1757)
Digitalhell,
http://akelpad.sourceforge.net/ru/plugins.php



Rep: (2337)
loza100 @ 10.07.2011, 08:37*
sure you may.

1. How to center? I get off to the left ...
2. where, in what topic to look at * png-shki tsiferok (never before on Graza did not come across it figures)

Post has been editeddevserg - 16.07.11, 10:02



Rep: (1757)
devserg @ 16.07.2011, 08:52*
1. How to center? I get off to the left ...
2. where, in what topic to look at * png-shki tsiferok (never before on Graza did not come across it figures)

Alignment hours lock screen.

For hours on lokskrine answerszzz_keyguard_screen_clock_gb.xml , way framework-res \ res \ layout .
Changes are marked with colors (thankssk0t ).
Original
<? xml version = "1.0" encoding = "UTF-8"?>
<RelativeLayout android: gravity = "left "Android: id =" @ id / lockscreen_clock "android: paddingLeft =" 12.0dip "android: paddingTop =" 12.0dip "android: layout_width =" fill_parent "android: layout_height =" wrap_content "
xmlns: android = "http://schemas.android.com/apk/res/android ">
<ImageView android: id = "@ id / zzz_hour01" android: layout_width = "wrap_content" android: layout_height = "wrap_content" />
<ImageView android: id = "@ id / zzz_hour02" android: layout_width = "wrap_content" android: layout_height = "wrap_content"android: layout_toRightOf = "@ id / zzz_hour01 " />
<ImageView android: id = "@ id / zzz_colon01" android: layout_width = "wrap_content" android: layout_height = "wrap_content"android: src = "@ drawable / zzz_unlock_clock_colon" android: layout_toRightOf = "@ id / zzz_hour02 " />
<ImageView android: id = "@ id / zzz_minute01" android: layout_width = "wrap_content" android: layout_height = "wrap_content" android: layout_toRightOf = "@ id / zzz_colon01" />
<ImageView android: id = "@ id / zzz_minute02" android: layout_width = "wrap_content" android: layout_height = "wrap_content" android: layout_toRightOf = "@ id / zzz_minute01" />
<TextView android: textSize = "20.0dip" android: typeface = "sans" android: textColor = "# ffebebeb" android: id = "@ id / zzz_ampm" android: paddingLeft = "5.3299866dip" android: layout_width = "wrap_content" android : layout_height = "wrap_content" android: shadowColor = "@ color / darker_gray" android: shadowDx = "1.0" android: shadowDy = "1.0" android: shadowRadius = "0.25" android: layout_toRightOf = "@ id / zzz_minute02" />
<TextView android: textSize = "20.0dip" android: typeface = "sans" android: textColor = "# ffebebeb" android: id = "@ id / zzz_pmam" android: paddingLeft = "5.3299866dip" android: layout_width = "wrap_content" android : layout_height = "wrap_content" android: shadowColor = "@ color / darker_gray" android: shadowDx = "1.0" android: shadowDy = "1.0" android: shadowRadius = "0.25" android: layout_toRightOf = "@ id / zzz_minute02" android: layout_above = "@ id / zzz_date_month" />
<TextView android: textSize = "24.0dip" android: typeface = "sans" android: textColor = "# ffebebeb" android: id = "@ id / zzz_date_month" android: paddingTop = "4.669983dip" android: layout_width = "wrap_content" android : layout_height = "wrap_content" android: shadowColor = "@ color / darker_gray" android: shadowDx = "1.0" android: shadowDy = "1.0" android: shadowRadius = "0.25" android: layout_below = "@ id / zzz_hour01" />
</ RelativeLayout>

Changed
<? xml version = "1.0" encoding = "UTF-8"?>
<RelativeLayout android: gravity = "center "Android: id =" @ id / lockscreen_clock "android: paddingLeft =" 12.0dip "android: paddingTop =" 12.0dip "android: layout_width =" fill_parent "android: layout_height =" wrap_content "
xmlns: android = "http://schemas.android.com/apk/res/android ">
<ImageView android: id = "@ id / zzz_hour01" android: layout_width = "wrap_content" android: layout_height = "wrap_content"android: layout_toLeftOf = "@ id / zzz_hour02 " />
<ImageView android: id = "@ id / zzz_hour02" android: layout_width = "wrap_content" android: layout_height = "wrap_content"android: layout_toLeftOf = "@ id / zzz_colon01 " />
<ImageView android: id = "@ id / zzz_colon01"android: layout_centerHorizontal = "true" android: layout_width = "wrap_content" android: layout_height = "wrap_content" android: src = "@ drawable / zzz_unlock_clock_colon" />
<ImageView android: id = "@ id / zzz_minute01" android: layout_width = "wrap_content" android: layout_height = "wrap_content" android: layout_toRightOf = "@ id / zzz_colon01" />
<ImageView android: id = "@ id / zzz_minute02" android: layout_width = "wrap_content" android: layout_height = "wrap_content" android: layout_toRightOf = "@ id / zzz_minute01" />
<TextView android: textSize = "20.0dip" android: typeface = "sans" android: textColor = "# ffebebeb" android: id = "@ id / zzz_ampm" android: paddingLeft = "5.3299866dip" android: layout_width = "wrap_content" android : layout_height = "wrap_content" android: shadowColor = "@ color / darker_gray" android: shadowDx = "1.0" android: shadowDy = "1.0" android: shadowRadius = "0.25" android: layout_toRightOf = "@ id / zzz_minute02" />
<TextView android: textSize = "20.0dip" android: typeface = "sans" android: textColor = "# ffebebeb" android: id = "@ id / zzz_pmam" android: paddingLeft = "5.3299866dip" android: layout_width = "wrap_content" android : layout_height = "wrap_content" android: shadowColor = "@ color / darker_gray" android: shadowDx = "1.0" android: shadowDy = "1.0" android: shadowRadius = "0.25" android: layout_toRightOf = "@ id / zzz_minute02" android: layout_above = "@ id / zzz_date_month" />
<TextView android: textSize = "24.0dip" android: typeface = "sans" android: textColor = "# ffebebeb" android: id = "@ id / zzz_date_month"android: layout_centerHorizontal = "true" android: paddingTop = "4.669983dip" android: layout_width = "wrap_content" android: layout_height = "wrap_content" android: shadowColor = "@ color / darker_gray" android: shadowDx = "1.0" android: shadowDy = "1.0" android: shadowRadius = "0.25" android: layout_below = "@ id / zzz_hour01" />
</ RelativeLayout>


To center the information on the charge on the need to lokskrinezzz_keyguard_screen_glasslockinfo.xml (Lying in the same way) to change the marked center
<? xml version = "1.0" encoding = "UTF-8"?>
<LinearLayout android: orientation = "vertical" android: id = "@ id / glasslock_info_root" android: layout_width = "fill_parent" android: layout_height = "wrap_content"
xmlns: android = "http://schemas.android.com/apk/res/android ">
<RelativeLayout android: gravity = "left" android: id = "@ id / glasslock_info_weather" android: paddingLeft = "12.0dip" android: layout_width = "fill_parent" android: layout_height = "wrap_content">
<TextView android: textSize = "20.0dip" android: typeface = "sans" android: textColor = "# ffebebeb" android: ellipsize = "marquee" android: id = "@ id / weather_city" android: layout_width = "126.0dip" android : layout_height = "27.0dip" android: layout_marginLeft = "15.0dip" android: layout_marginTop = "10.0dip" android: singleLine = "true" android: shadowColor = "@ color / darker_gray" android: shadowDx = "1.0" android: shadowDy = "1.0" android: shadowRadius = "0.25" android: layout_weight = "1.5" android: marqueeRepeatLimit = "1" />
<TextView android: textSize = "16.0dip" android: typeface = "sans" android: textColor = "# ffebebeb" android: id = "@ id / weather_temp" android: layout_width = "126.0dip" android: layout_height = "22.0dip" android: layout_marginLeft = "15.0dip" android: shadowColor = "@ color / darker_gray" android: shadowDx = "1.0" android: shadowDy = "1.0" android: shadowRadius = "0.25" android: layout_weight = "1.5" android: layout_below = "@ id / weather_city" />
<ImageView android: id = "@ id / weather_icon" android: layout_width = "70.0dip" android: layout_height = "48.0dip" android: layout_marginTop = "10.0dip" android: layout_weight = "0.7" android: layout_toRightOf = "@ id / weather_city "/>
<ImageView android: id = "@ id / accucompany_logo" android: layout_width = "wrap_content" android: layout_height = "wrap_content" android: layout_marginLeft = "12.0dip" android: src = "@ drawable / unlock_accuweather_logo" android: layout_weight = "0.4" android: layout_below = "@ id / weather_temp" />
</ RelativeLayout>
<RelativeLayout android: gravity = "left "Android: id =" @ id / glasslock_info_charging "android: layout_width =" fill_parent "android: layout_height =" wrap_content ">
<TextView android: textSize = "14.0dip" android: typeface = "sans" android: textColor = "# ffebebeb" android: gravity = "center_vertical" android: id = "@ id / charging_text" android: layout_width = "wrap_content" android: layout_height = "19.329987dip" android: layout_marginLeft = "15.0dip" android: singleLine = "true" android: shadowColor = "@ color / darker_gray" android: shadowDx = "1.0" android: shadowDy = "1.0" android: shadowRadius = " 0.25 "android: drawablePadding =" 3.1999817dip "android: layout_weight =" 1.5 "/>
<LinearLayout android: id = "@ id / temp_clockspace_01" android: layout_width = "fill_parent" android: layout_height = "19.329987dip" android: layout_below = "@ id / charging_text" />
<LinearLayout android: id = "@ id / temp_clockspace_02" android: layout_width = "fill_parent" android: layout_height = "27.329987dip" android: layout_below = "@ id / temp_clockspace_01" />
</ RelativeLayout>
</ LinearLayout>


2. Do not understand the question.

Post has been editedloza100 - 16.07.11, 13:47



Rep: (2337)
loza100 @ 16.07.2011, 13:55*
2. Do not understand the question.

uh ... Do not know how sales rephrase: scratch_one-s_head: like trying to explain the most obvious question: blush:
vopschem only stumbled on our forumthisBut probably somewhere in the wilds there is a variety of options tsiferok ...

for the answer to the first question pasip - everything is clear and understandable;)


PS: What line is responsible (and any changes to it to make), that would be the day of the week in the locker displayed entirely?

Post has been editeddevserg - 16.07.11, 15:39



Rep: (1093)
Rule the date on the lock.

By date including file string.xml meets along the way framework-res.apk / res / values-ru
(thanksk0t for a hint).
source:
d MMM, E

modified:
d MMM, EEEE


Months month_medium change the full name.


devserg @ 16.07.2011, 15:33*
there is a variety of options tsiferok ...


Attached files

Attached filefigures.rar(594.56 KB)


Post has been editedK-User - 28.04.12, 01:41



Rep: (2337)
loza100,
K-User,
pasip guys;)
ripened a couple of questions, do not obessutte:
1. I understand that everything can be done on tokmo deodex-e, and the drain (odex) it will not work?
2. mandatory APK APK and tuls or manager can do?
: thank_you:



Rep: (1757)
devserg,
1. Truth.
2. Apktuls as for me preferable.


Full version    

Help     rules

Time is now: 04/03/20, 6:27