[TUT] Changing Lockscreen Clock Hour style to blod - Sony Xperia M2

Hi
As promise to @tromine this is simple tutorial that change lockscreen Hour style to bold
What You Need:
1. APK Tool for decompiling (i use TMA and Thanks go to Ticklefish)
2. Stock Sony 18.6.A.0.175 rom installed and odex
3. Patience & Time
Lets Start.
First pull: SystemUI, framework-res and SemcGenericUxpRes ( Res are needed so you can properly decompile SystemUI)
Decompile SystemUI and go to SystemUI.apk\res\values folder open styles.xml
Find:
Code:
<style name="somc_sony_clock_hour_style" parent="@style/SonyClockBaseStyle">
<item name="android:textSize">@dimen/somc_sony_clock_hour_digit_size</item>
<item name="android:maxLines">1</item>
<item name="android:fontFamily">x-sst</item>
</style>
<style name="somc_sony_clock_minute_style" parent="@style/SonyClockBaseStyle">
<item name="android:textSize">@dimen/somc_sony_clock_minute_digit_size</item>
<item name="android:maxLines">1</item>
<item name="android:fontFamily">x-sst</item>
"somc_sony_clock_hour_style" controls Hour numbers
"somc_sony_clock_minute_style" control Min numbers
Add this line:
At "clock_hour_style"
Code:
<item name="android:textStyle">bold</item>
under
Code:
<item name="android:textSize">@dimen/somc_sony_clock_hour_digit_size</item>
At "clock_minute_style" change:
Code:
<item name="android:fontFamily">x-sst</item>
To
Code:
<item name="android:fontFamily">x-sst-light</item>
Now save and you can recompile.
If you want to change size of clock go to SystemUI.apk\res\values open dimens.xml
This are sizes for clock:
Code:
<dimen name="somc_sony_clock_hour_digit_size">114.0dip</dimen>
<dimen name="somc_sony_clock_minute_digit_size">108.0dip</dimen>
I changed my like this:
Code:
<dimen name="somc_sony_clock_hour_digit_size">94.0dip</dimen>
<dimen name="somc_sony_clock_minute_digit_size">94.0dip</dimen>
So it look smaller
@psichokillah want to get rid of the clock on the lockscreen. Is it possible?
The Answer is Yes.
Go to SystemUI.apk\res\layout\somc_sony_clock_view.xml
On First line:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.sonymobile.keyguard.plugin.sonyclock.SonyClock android:layout_gravity="center_horizontal" android:orientation="vertical" android:id="@id/sony_clock_root" android:layout_width="wrap_content" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
Add (android:visibility="invisible") after android:id="@id/sony_clock_root" so it look like this:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.sonymobile.keyguard.plugin.sonyclock.SonyClock android:layout_gravity="center_horizontal" android:orientation="vertical" android:id="@id/sony_clock_root" android:visibility="invisible" android:layout_width="wrap_content" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
Save, recompile Push apk to system.
P.S. zips are NOT flashable copy/push them your choice.
How to Install:
1. Copy moded SysteUI to sd_card
2. Reboot to PhilZ_Touch recovery
3. Go to "Mounts and Storage
- mount /system ++Go Back++
Advanced Functions->Aroma File Manager
4. Select sdcard
5. Press and hold SystemUI->copy->Go back
6. Select: system->priv-app->SystemUI (Paste here and Overwrite)
Note: If permession is not rw-r--r-- select SystemUI.apk->menu->Change Permission to (User:read/write, Group:read, Others:read)
- Exit Aroma FM
- Wipe Cache and Dalvik/ART Cache
7. Reboot System Now

@Dzepar Thanks i'll try it this evening

LOL, I thought it was already in bold. Thanks m8!

@tromine
Your welcome m8
But please edit your post and remove quote of OP, you can tag me with @ sign before name
Thanks
Sent from my D2303

The zips for d2303?

I have installed the recoveries, but I can't enter since no cyan led appears. It's impossible to change the SystemUI

TheSLZ said:
The zips for d2303?
Click to expand...
Click to collapse
Yap, it's from D2303. But you can change it on any SystemUI from M2 variants and maybe more, as long it have those lines in styles.
Sent from my D2303

psichokillah said:
I have installed the recoveries, but I can't enter since no cyan led appears. It's impossible to change the SystemUI
Click to expand...
Click to collapse
Which recovery do you installed? Install NUT app from Play Store it may help.
Sent from my D2303

Installed T2U NUT recovery and replaced file through TWRP, because I can't enter PhilZ, anyway ..the result..
P.S: I love you and thank you so much!

You need to download the NDR util app from the playstore you can reboot to any of them then no need to use the tapping of the vol button then
D2303 5.1lollipop customised NCB rooted LB t2u nut dual recovery bravia engine+x-reality debloated

[email protected] said:
You need to download the NDR util app from the playstore you can reboot to any of them then no need to use the tapping of the vol button then
D2303 5.1lollipop customised NCB rooted LB t2u nut dual recovery bravia engine+x-reality debloated
Click to expand...
Click to collapse
Believe me I tried, but it doesn;t work. The phone boots and it appears the green LED color then the screen goes blank and that's it.

Thanks for the release

It works! But it seems tight between hour and minutes. How can I fix this ?

@tromine
It looks like you need to lower dimensions of minute numbers. Go to values/dimensions.xml and see what's best for you.
You have which dimensions are responsible for what in OP.
Sent from my D2303

Can u make flashable zip?

@djborek
I'll try .
But this is tutorial for how to make it on your own and it's not that hard. Let me know if you have some difficulty I'll help you
Sent from my D2303

what wrong ?

adek89 said:
what wrong ?
Click to expand...
Click to collapse
Did you install SemcGenericUxpRes.apk?
You need both Res apks (resources) to properly de/recompile apk.
Sent from my D2303

how to instal ?

adek89 said:
how to instal ?
Click to expand...
Click to collapse
Put framework-res.apk and SemcGenericUxpRes.apk in "_in" folder, open TMA->Theming Menu->Install Framework On PC.

Related

[MULTI-MOD] Reboot Option, Percentage Battery, Percentage WiFi, & ASU Signal Strength

[MULTI-MOD] Reboot Option, Percentage Battery, Percentage WiFi, & ASU Signal Strength
I managed to port untermensch's modification to add reboot option(s) to our power menu. See original thread for more information on the process.
Alternative versions also include the Super Circle Battery modification, my own WiFi percentage indicator and ASU network signal strength mods.
{
"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"
}
Requirements:
1. Root privileges
2. Choose appropriate firmware version below.
2.3_3.0.1.G.0.75_GENERIC
See this post for Reboot Option only.
See this post for Reboot Option & Percentage Battery.
See this post for Reboot Option & Percentage Battery & WiFi Percentage & ASU Signal Strength.
See this post for Reboot Option & Percentage Battery & WiFi Percentage & ASU Signal Strength + Roaming.
2.1.A.0.435_GLOBAL See this post.
2.0.2.A.0.24_GLOBAL See this post.
2.0.A.0.504_GLOBAL See this post's attachments.
Note: This replaces core system files, i.e. will remove previously installed themes and modifications. If you have problems, push back the original files.
Automatic (xRecovery) Installation:
Reboot into xRecovery and flash update.zip if supplied.
Automatic (ADB GUI) Installation:
Use the X10 Mod Tool, to push the files to the device.
SystemUI.apk goes in system/app if present, and rest in system/framework.
Manual (Terminal Emulator) Installation:
1. Unrar archive.
2. Copy extracted files to /sdcard, and
3. In Terminal Emulator:
a) make sure you have super user permissions (su),
b) remount /system partition as read-write (mount -o remount,rw -t yaffs2 /dev/block/mtdblock2 /system),
c) replace framework.jar (dd if=/sdcard/framework.jar of=/system/framework/framework.jar),
d) replace android.policy.jar (dd if=/sdcard/android.policy.jar of=/system/framework/android.policy.jar),
e) replace SystemUI.apk (dd if=/sdcard/SystemUI.apk of=/system/app/SystemUI.apk) if present,
f) replace framework-res.apk (dd if=/sdcard/framework-res.apk of=/system/framework/framework-res.apk) if present, and
g) reboot device (reboot) if not automatic.
Thanks Mr. Rusch glad your also modding the x10
Tested on my Singapore X10i but it cannot boot up, I am repairing my X10 via the PC Companion now.
Under contruction
Percentage Battery
A. The 101 stat_sys_battery_X.png and 21 stat_sys_battery_charge_X.png images of which the modification is based, need to be inserted into framework-res.apk.
1. Decompile framework-res.apk with APK Tool or X10 Mod Tool.
2. Add images to res/drawable-hdpi/.
B. These images then need to be referenced in public.xml as drawables.
1. Open res/values/public.xml in e.g. Notepad.
2. Find last drawable-id and increment by one hexadecimal value (XxXXXXXXXX).
3. Create and add all of your drawables as below, incrementing by one hexadeimal value per item.
Code:
<public type="drawable" name="stat_sys_battery_X" id="XxXXXXXXXX" />
4. Save and Close.
C. The XMLs controlling the battery stats (stat_sys_battery.xml and stat_sys_battery_charge.xml) need to be adjusted to percentage levels (100 on battery, and 20 at charging).
1. Replace stat_sys_battery.xml with the one attached to this post.
2. Replace stat_sys_battery_charge.xml with the one attached to this post.
3. Recompile framework-res.apk with APK Tools or X10 Mod Tool.
Replace framework-res.apk on your device.
Reboot Option
A. The reboot.png needs to be inserted into the framework-res.apk.
1. Decompile framework-res.apk with APK Tool or X10 Mod Tool.
2. Add reboot.png to res/drawable-hdpi/.
B. This image is then to be referenced in public.xml as a drawable.
1. Open res/values/public.xml in e.g. Notepad.
2. Find last drawable-id and increment by one hexadecimal value (XxXXXXXXXX).
3. Create and add your drawable as below,
Code:
<public type="drawable" name="reboot" id="XxXXXXXXXX" />
C. The string "Reboot" needs to be added as well, in public.xml and strings.xml.
1. Find last string-id and increment by one hexadecimal value (XxXXXXXXXX).
2. Create and add your string as below,
Code:
<public type="string" name="reboot" id="XxXXXXXXXX" />
3. Save and Close public.xml.
5. Open res/values/strings.xml in e.g. Notepad.
6. Create and add your string as below,
Code:
<string name="reboot">Reboot</string>
7. Save and Close.
8. Recompile framework-res.apk with APK Tool or X10 Mod Tool.
D. ShutdownThread.java needs to be modified to handle the reboot-command from the power menu.
1. Decompile framework.jar with X10 Mod Tool or baksmali.jar.
2. Open com\android\internal\app\ShutdownThread.smali in e.g Notepad.
3. After the last entry in the "# static fields" section, add
Code:
.field public static mReboot:I
4. Search for "invoke-static {}, Landroid/os/Power;->shutdown()V", and add the following code before this line.
Code:
sget v1, Lcom/android/internal/app/ShutdownThread;->mReboot:I
const/4 v2, 0x1
if-eq v1, v2, :reboot
5. After the next return-void statement, add this code
Code:
:reboot
const-string v4, "now"
invoke-static {v4}, Landroid/os/Power;->reboot(Ljava/lang/String;)V
return-void
This will send the "now" command to the kernels shutdown process. When we get our kernels sorted, we can add other commands such as "recovery" or "download" here.
6. Save and Close.
7. Recompile framework.jar with X10 Mod Tool or smali.jar.
E. GlobalActions.java needs to be modified to present the reboot-
drawble/string in the power menu.
1. Decompile android.policy.jar with X10 Mod Tool or baksmali.jar.
2. Open com\android\internal\policy\impl\GlobalActions.smali in e.g Notepad.
3. In the "createDialog" method, extend the array by changing this
Code:
const/4 v0, 0x3
new-array v0, v0, [Lcom/android/internal/policy/impl/GlobalActions$Action;
to this
Code:
const/4 v0, 0x[B]4[/B]
new-array v0, v0, [Lcom/android/internal/policy/impl/GlobalActions$Action;
Note here that depending on how many options that already exist in your power menu, this constant's value may differ. The point is - increment it by 1.
4. Add the reboot menu item by adding the following code after last instance of "aput-object v2, v0, v1"
Code:
const/4 v1, 0x3
new-instance v2, Lcom/android/internal/policy/impl/GlobalActions$7;
const v3, XxXXXXXXX # reboot icon resource id
const v4, YxYYYYYYY # reboot string resource id
invoke-direct {v2, p0, v3, v4}, Lcom/android/internal/policy/impl/GlobalActions$7;-><init>(Lcom/android/internal/policy/impl/GlobalActions;II)V
aput-object v2, v0, v1
Note: Swap XxXXXXXXX for the drawable-ID and YxYYYYYYY for the string-ID. The constant v1 decides the placement in the array we extended above. So you can adjust this if you want to place the entry somewhere other than at the end. But remember to adjust the other entries as well then.
5. Save and Close.
6. Now make a copy of GlobalActions$3.smali and rename it to GlobalActions$7.smali.
7. Open GlobalActions$7.smali in e.g Notepad.
8. Replace all instances of "GlobalActions$3" inside it, with "GlobalActions$7".
9. Search for "invoke-static {v0, v1}, Lcom/android/internal/app/ShutdownThread;->shutdown(Landroid/content/Context;Z)V", and add the following code in the line before
Code:
const/4 v2, 0x1
sput v2, Lcom/android/internal/app/ShutdownThread;->mReboot:I
10. Save and Close.
11. Recompile android.policy.jar with X10 Mod Tool or smali.jar.
Replace framework.jar, android.policy.jar and framework-res.apk on your device.
Percentage WiFi
A. The 21 stat_sys_wifi_signal_X.png images need to be inserted into framework-res.apk (<2.3.3) or SystemUI.apk (>2.3.3).
1. Decompile framework-res.apk with APK Tool or X10 Mod Tool.
2. Add images to res/drawable-hdpi/.
B. These images then need to be registered as drawables in public.xml.
1. Open res/values/public.xml in e.g. Notepad.
2. Find last drawable-id and increment by one hexadecimal value (XxXXXXXXXX).
3. Create and add all of your drawables as below, incrementing by one hexadeimal value per item.
Code:
<public type="drawable" name="stat_sys_wifi_signal_X" id="XxXXXXXXXX" />
4. Recompile framework-res.apk (<2.3.3) or SystemUI.apk (>2.3.3) with APKTool or X10 Mod Tool.
C. StatusBarPolicy.java needs to load the new WiFi-drawables into status bar.
1. Decompile services.jar with X10 Mod Tool.
2. Open StatusBarPolicy.smali in e.g. Notepad.
3. Go the start of the constructor at ".method static constructor <clinit>()V".
4. Increment " .locals X" by one decimal value.
5. Under " .prologue", add another registry to extend the array with,
Code:
const/16 vX, 0x21
Note: vX is also incremented by one decimal value.
6. Now search for "sput-object v0, Lcom/android/systemui/statusbar/policy/StatusBarPolicy;->sWifiSignalImages:[[I"
The three rows above this, will look like this
Code:
new-array vX, vY, [I
fill-array-data vX, :array_Q
aput-object vX, vZ, v4
6. In the first row, swap vY to the constant we created to initiate the array with.
7. From the second row, copy the ":array_Q" value and go to this marker.
8. Extend this array at the end with references to the drawables-IDs we registered in public.xml earlier.
Note: The ID-format is backwards, i.e.
0xXXt 0xYYt 0xZZt 0xQQt = 0xQQZZYYXX
9. Save and Close.
10. Recompile services.jar with X10 Mod Tool.
D. WifiManager's calculateSignalLevel() functions decision-logic needs to be modified for the 20 levels of WiFi (5% increments).
Note: This function should according to the APIs work as is, as it recieves the array-length as maximum value. For some reason though, I constantly face OutOfBoundsExceptions when using this. Instead, I have created my own logic in java, converted it into smali-code, and replaced the original function with it.
1. Decompile framework.jar with X10 Mod Tool or baksmali.jar.
2. Open WifiManager.smali in e.g. Notepad.
3. Replace the "calculateSignalLevel" function with the one attached to this post.
4. Save and Close.
5. Recompile framework.jar with X10Mod Tool or smali.jar.
Replace framework.jar, services.jar and framework-res.apk on your device.
ASU/dBm Signal Strength
A. The 33 stat_sys_signal_X.png images need to be inserted into framework-res.apk.
B. These images then need to be registered as drawables in public.xml.
C. StatusBarPolicy.java needs to be modified to choose drawable by ASU-value.
D. StatusBarPolicy.java needs to load the new ASU-drawables into status bar.
E. For roaming to work, same process (1-4) needs to be repeated for stat_sys_r_signal_X.png images.
Thank you very much for your mod, tested on my X10 with 2.1 Global Generic and work very well.
To serve options:
Recovery and Download?
Great Work
PD: It would be possible to modify the text of the options?:
Reboot----- for Reiniciar
Recovery----for Recuperar
Download--- for Descargar
It's because I have the X10 in Spanish
tiggerbcn said:
PD: It would be possible to modify the text of the options?:
Reboot----- for Reiniciar
Recovery----for Recuperar
Download--- for Descargar
It's because I have the X10 in Spanish
Click to expand...
Click to collapse
You'd have to mod the APK. So depends how comfortable you are with this.
Edit: Decompile the APK, modify strings.xml, and recompile.
Sent from my X10i using XDA App
Buffff, that will not do, be so kind to modify that file and put it here to download it?, I've put a link to this post in a forum Spanish and there are some who call me, but I have the tools to edit these files
Thanks
PD:and these options are used?
Recovery and Download
Hi, MrRusch. How can I install ONLY that grey battery icon with the percentage within it? Is it possible?
Thanks in advance
PS: I'm the one who asked tiggerbcn for the spanish translation btw
is it possible to modify it to have the reboot option only?
as I dont think I would be using the other options...and would rather not press them by mistake....he he
MrRusch said:
You'd have to mod the APK. So depends how comfortable you are with this.
Edit: Decompile the APK, modify strings.xml, and recompile.
Sent from my X10i using XDA App
Click to expand...
Click to collapse
where i can find that "stings.xml" ?
thks
rendeiro2005 said:
where i can find that "stings.xml" ?
thks
Click to expand...
Click to collapse
It's in res\values in the APK.
Zenghelis said:
Hi, MrRusch. How can I install ONLY that grey battery icon with the percentage within it? Is it possible?
Thanks in advance
PS: I'm the one who asked tiggerbcn for the spanish translation btw
Click to expand...
Click to collapse
You will find the battery mod itself in this thread.
tiggerbcn said:
Buffff, that will not do, be so kind to modify that file and put it here to download it?, I've put a link to this post in a forum Spanish and there are some who call me, but I have the tools to edit these files
Thanks
PD:and these options are used?
Recovery and Download
Click to expand...
Click to collapse
Sorry all, but I will not be making language-specific mods, as this would lead to requests for lots of different languages. If you want to modify it to your language, follow the instructions I have given here (or consult your national chef for help).
As for the latter part of your question - perhaps someone else here can answer this, as this is my first Android device.
mith500 said:
is it possible to modify it to have the reboot option only?
as I dont think I would be using the other options...and would rather not press them by mistake....he he
Click to expand...
Click to collapse
Yes, this version is coming.
MrRusch said:
It's in res\values in the APK.
Click to expand...
Click to collapse
thks a lot.
i`m trying to create a new theme with animations, battery info, etc and i don`t want just install.
thks
rendeiro2005 said:
thks a lot.
i`m trying to create a new theme with animations, battery info, etc and i don`t want just install.
thks
Click to expand...
Click to collapse
Now you got me
how the hell i`m suppoused to mess if i don`t have that folder???
yours don`t have it as mine
rendeiro2005 said:
Now you got me
how the hell i`m suppoused to mess if i don`t have that folder???
yours don`t have it as mine
Click to expand...
Click to collapse
You need to decompile it, not just extract it as an archive. Use apktool or client such as APK Manager to access meta-data from resources.arsc.
MrRusch said:
You need to decompile it, not just extract it as an archive. Use apktool or client such as APK Manager to access meta-data from resources.arsc.
Click to expand...
Click to collapse
forget it
i`m working with that now
thks
i`m sorry but i need your hel with one more thing
were i can find "com\android\internal\app\ShutdownThread.smali "?
it`s suppoused to be on framework but we only have framework-res andi can`t find that
thks
rendeiro2005 said:
i`m sorry but i need your hel with one more thing
were i can find "com\android\internal\app\ShutdownThread.smali "?
it`s suppoused to be on framework but we only have framework-res andi can`t find that
thks
Click to expand...
Click to collapse
No, sorry this is embedded in framework.jar, not framework-res.apk. You will need to deodex this file with baksmali to decompile, edit, and then recompile with smali. But FYI you don't need to touch anything but the APK if you only want to change the language. For this editing strings.xml is enough.
MrRusch said:
No, sorry this is embedded in framework.jar, not framework-res.apk. You will need to deodex this file with baksmali to decompile, edit, and then recompile with smali.
Click to expand...
Click to collapse
ooops
ok
thks
I have now added the single option version, only displaying the Reboot (normal) alternative. This one also comes in two versions, with the default battery indicator, or the percentage one. See screenshots in first post.
MrRusch said:
I have now added the single option version, only displaying the Reboot (normal) alternative. This one also comes in two versions, with the default battery indicator, or the percentage one. See screenshots in first post.
Click to expand...
Click to collapse
sorry again
what`s the command to compile android.policy.jar?
thks

[GUIDE] All Things XPERIA - Debranding - Rooting - BL Unlocking - Theming [05/03/13]

The process of tinkering with any Device can seem a like a daunting process for New members but it's really quite simple so long as you read EVERY WORD of a thread describing how to Modify your Phone you shouldn't go far wrong.​
So you've just received your new XPERIA Phone and want to get it Updated, De-Branded, Rooted, Unlock the SIM & Bootloader, Flash a Custom ROM, Theme or simply Repair your Phone, well hopefully everything contained here should help with all of that, but as most XPERIAs are similar in their workings this is wrote as a general reference, so a link may take you to a page in the Ray section for example but it will/may still apply to you and what you're trying to accomplish. So lets get started...
References:
[GUIDE] Android Dictionary!!
The Flashtool, Updating, Unbricking & De-Branding:
PLEASE NOTE:
If you have Un-Locked your Bootloader DO NOT UPDATE Over The Air (O.T.A) or YOU WILL BRICK your Device. If you have Bricked then see THIS thread with how to Restore your Phone.
{RECOVER SOFT-brick}[2012 XPERIA's]Recover ALL 2012 XPERIAs from SOFT-brick
[Remote Support] Fully Repair Dead Xperias Arc/Neo/Play/X10/X8/W8/Mini/MiniPro ALL
The Flashtool is simply what it says on the tin, it's a tool that flashes Firmware to your device in a similar manner as SEUS or PC Companion does except the Flashtool requires .ftf files which can be downloaded from your devices General or Development forum. This is generally the preferred method for Repairing your Phone if SEUS or PC Companion aren't an option or you just prefer not to use them. You can also use the Flashtool to flash a Generic .ftf to your device which will remove any Operator Branding from your device.
This video by BlueChipJ explains the process of using the Flashtool...
...or you can use (specific Phones only) the Official Sony Flash Tool. See maxio1998's thread for more info - [TOOL]Official Sony Flash Tool | Unlocked Devices
References:
force update by editing build.prop
How to install Flashtool on Ubuntu
How to backup your Sony Ericsson Xperia firmware using Update Service and the FlashTool
Rooting:
When you root your phone, you gain “superuser” privileges to the Android operating system. When you are using a stock device, you have the equivalent of “guest” privileges. If you are familiar with any Linux operating system, you know that the superuser privilege allows you to gain access to administrative rights. This level of access gets you down to the nitty gritty of the OS with no restrictions, lets you make changes to the system, and run scripts that would normally be blocked with a standard user account.
Click to expand...
Click to collapse
- What is rooting and why should I do it? The pros & cons of Android rooting
Rooting methods for the XPERIA line of Phones has constantly changed from apps to Pre-Rooted ROMs and Kernels. A Google search of "root -insert device name-" should help to find the specific method for your Phone but the following link is well worth reading - [How-To] Rooting guide for 2011 xperia devices
References:
[Arc/S] [PRO] Root for 4.0.4 ICS Update [4.1.B.0.431+4.1.B.0.587]
Root MANY ANDROID! [Upd: 18.12.2012]
[ROOT+BB+CWM] ICS and non rootable GB build
[ROOT][NOOB GUIDE][for unlock BL] For Official ICS 4.0.4
[HOW-TO][FTF] Root and CWM with the latest 9.0.1.D.0.10 firmware
[ROOT&MORE]Xperia 2012 line Flashtool + prerooted system.img + Sony fw FTF + addons
[Tutorial]Root.Xperia 4.0.4 ROM [all h/m(dpi)] | 4.1.B.0.431
Bin4ry said:
Confirmed devices:
Sony Xperia : S, T, P , Acro S, Ion , Tipo , Tablet S, Go, Sola, U
Click to expand...
Click to collapse
Bootloader & SIM Unlocking:
PLEASE NOTE: The ONLY WAY to Sim Unlock your Phone is to PAY for it, so do some Googling and read which services have been recommended in the past.
PLEASE ALSO NOTE:
If you're Phone was manufactured AFTER a certain date, 12W11 (look under your battery for a similar number) then the Testpoint method no longer works, and People who have had Phones returned from a Service Centre are reporting that they can no longer unlock via the Testpoint method either.
The stock bootloader on most Android phones is set up to run a signature check on any update file you attempt to flash to your NAND internal memory. So if you were to take a stock Android phone purchased from a carrier, and try to install a custom ROM on it, you'd get nowhere fast. Even after rooting, you still need to get access to the bootloader. Basically, unlocking the bootloader lets you install unsigned ROMs, like CyanogenMod.
Click to expand...
Click to collapse
- Know Your Android Bootloader - What it is and Why it Matters
There are three ways to Unlock yours, the Standard/Official method (For SimFree/Un-Branded Phones) which is explained HERE, (PLEASE NOTE! - You loose DRM when using the official method but not with the TestPoint) but if your Phone came from a Carrier then chances are (99%) you won't be able to use that method. There is a simple method of checking if you can or not which you'll find HERE.
Standard Unlocking:
Then there is the TestPoint method...
TestPoint Unlocking:
Two members - Alejandrissimo or Jinx13 offer a Remote Service which isn't free, but cheaper than anywhere else on the net, and when you take in to account you will also SIM Unlock and retain DRM using the Remote method it's worth it.
References:
[Tutorial] Relock bootloader!
SE Bootloader Unlocking v1.6
[Tutorial] Unlock Bootloader.Test Point | For Newbs
[Tutorial] Xperia S/P/U/Sola Bootloader Unlocking & Relocking
[REF]Booting/Unlocking Xperia 2011 series: What's under the hood?
[Guide] Unlocking bootloader on operator branded phones via Omnius
Fastboot, Custom ROMS & ClockworkMod Recovery:
A custom ROM is a fully standalone version of the OS, including the kernel (which makes everything run), apps, services, etc - everything you need to operate the device, except it's customized by someone in some way.
So what does the "customized" part mean? Since Android is open source, developers are free to take stock ROMs, modify them, strip them of garbage, optimize them, add things, and pretty much do whatever their imagination and skills allow.
Click to expand...
Click to collapse
- Custom ROMS for Android Explained And Why You Want Them
In the Development Section you will find a variety of Custom ROMs, some require you to have an an Un-Locked Bootloader and some don't, it's usually stated in the thread title if it's required or not but modding your Phone with an unlocked Bootloader is much simpler. Most ROMs usually come in .zip format which require ClockworkMod (CWM) to install them.
You can find a great Guide HERE that will show you how to use Fastboot which is the method used for installing Kernels required by certain Custom ROMS.
Got a Mac? - [GUIDE] Set up ADB and Fastboot on a Mac easily (With Screenshots!)
ClockworkMod – also known as Clockwork and CWM – is a custom recovery for Android phones and tablets that allows you to perform several advanced recovery, restoration, installation and maintenance operations on your Android device
Click to expand...
Click to collapse
- What Is ClockworkMod Recovery And How To Use It On Android
To use CWM on an XPERIA then it's recommended to unlock your Bootloader because then you can simply flash Custom Kernels that come with CWM pre-installed, it's also safer imo because it's separate from the system, but if you haven't unlocked your Bootloader for whatever reason then you're going to have to use [APP]/[RECOVERY]x-Parts [CWM Installer] [Version 7.0] 29/6/12 which is installed to the Phone's system, although it's less effective should you accidentally wipe your system while trying to flash a new ROM as you won't be able to access it.
References:
[TOOL] Fastboot and ADB helper v1.0
[4Noobs] Flashing a Custom Rom & Kernel Using Fastboot
[How-To] Install custom kernel/rom on 2011 xperia device
[HOW-TO]Set up Android SDK/ADB/Fastboot on Ubuntu Linux
How to Flash boot.img / kernel.elf / kernel.sin using flashtool
[TOOL][FASTBOOT] QuikIMG - A frontend for fastboot [0.2 beta]
[Tutorial] How to install CyanogenMod 9.0 on xperia 2011 devices
[TOOL] RecoverX - Recovery installer for almost all android devices
[RECOVERY] TWRP 2.3 for all your Xperias. (downloads + DIY howto)
Fastboot & Flashboot ADB Driver installation on Windows 8 Guide for Sony Xperia Users
How to Install CyanogenMod on your Xperia (bootloader unlock, fastboot, Google Apps, etc.)
Modifying & Theming:
To be able to install full themes that you're going to find in the Themes & Apps section of your device then at the very least you are going to need to be Rooted as you'll need to be able to overwrite, delete, add files to the system, and default theming on the XPERIA line is quite limited. If you choose to use a Custom ROM such as FXP's CyanogenMod 7/9/10 then you have the benefit of using the ThemeChooser so you can download themes till your hearts content from the Play Store.
Adrian DC has released a DefaultThemes Customizer which you can download from HERE, or you can learn to modify apks yourself and mod your Phone to your own liking.
References:
[Guide/Tools] Simple APK Modding
[MOD] Get the Android Emoji Font from JB on ICS
★All System Apps And Details [15/12/2012]★
[Application] HomeCustomizer for SONY ICS ROMs
[TWEAK] ICS Specific Tweaks of XPERIA MOD ROM
[GUIDE] How to remove "data traffic" icon from notification bar
[TWEAKS/SCRIPTS/DOWNLOADS]~ BEST TWEAKS EVER ~
[APP]Show Off S 2.0.1 [for via "Sony Ericsson Xperia arc" in fb]
[How-To] Make custom bootscreen/bootlogo (image to rle)/(rle to image)
[TUT] How To Center The Clock On The Statusbar..And Move Other Icons As Well!
[How-To]Removing Battery Percentage,Adding Toggles,Battery Circles to Statusbar
[GUIDE] how to make battery % icon remove AM/PM ,remove battery text on the left
Other Useful Info:
[Tutorial] How to use swap for those who can't create swap file in swapper 2
[MOD]Term-init & Zip-init: Enable Init.d for Any Phones w/o Need of Custom Kernels!!!
[GUIDE][APP][2.2+] Sixaxis Controller - Play Games w/ PS3 Sixaxis Dualshock3 Gamepad
[DEV]Chroot-Linux on Xperia Devices Locked/Unlocked Bootloaders(Debian,Ubuntu,BT5up)
[MULTI-TOOL] StudioAndroid
xda AutoDEODEXTOOL (xADT)
[TUTORIAL] Making Flashable ZIPs, EDIFY Script, ZIP Signing & Key Creation
[Tool][AIO]Universal Android Flasher v1.40 b (ROM-dump,adb,Fastboot,build.prop,etc.)
[TOOL][GUI][10/8/12]AndroPlatina Utilities v2.0|Megaupdate|Latest-ROM Dumper,GUI,More
Development:
[Tutorial] How To Logcat
15 Apps for Programming on Android
[Guide]Complete Android ROM development and essential tutorials ~~ By Nero Young ~~
Android - Chef Central
dsixda's Android Kitchen
(GUIDE) How to port ROMS!
[Tutorial] How to build a ROM?
[TOOL]Aroma App Package Creator v1.1
APP][DEV] Update me [ROM MAKER] - 2.0.3 - PUSH NOTIFICATION
How to build a Linux kernel and flash it to the phone
[GUIDE] [Xperia P/S] How to unpack/pack the Sony 2012 kernels
[DEV TOOLS] - Pack & Repack Boot.img Files - for Windows USERS
[GUIDE] How to make your regional firmware an .FTF file
[Guide] How make a FTF of stock firmware from SUS files
[GUIDE]How to make a rooted flashable rom from ftf file[FOR ALL XPERIA PHONES]
[tutorial] | how to extract system.sin
[tutorial] step by step method to extract ftf file from ics [ics]
[Tool] Yaffey - Utility for reading, editing and writing YAFFS2 images
[TUT]Make Your Own Vanilla IceCream Rom [Custom Rom][Lightweight,Smooth&cool]
[DEV + HOWTO] KangXperiaProject - AOKP for Xperia (tutorial to compile from source)
Hi all.
Just a short write up as a follow on from THIS thread as this is relatively quite simple.
So you want to change your notification background from the plain dark color to something a bit more your style...
{
"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"
}
...well all you need to do is decompile your SystemUI.apk and navigate to the values folder and open up your drawables.xml and you should see something like this...
Code:
<resources>
<item type="drawable" name="notification_number_text_color">#ffffffff</item>
<item type="drawable" name="notification_item_background_color">#ff111111</item>
<item type="drawable" name="notification_item_background_color_pressed">#ff257390</item>
<item type="drawable" name="ticker_background_color">#ff1d1d1d</item>
<item type="drawable" name="status_bar_background">#ff000000</item>
<item type="drawable" name="status_bar_recents_background_solid">#e5000000</item>
<item type="drawable" name="status_bar_recents_app_thumbnail_background">#88000000</item>
<item type="drawable" name="status_bar_notification_row_background_color">#ff090909</item>
<item type="drawable" name="notification_header_bg">#ff000000</item>
<item type="drawable" name="notification_tracking_bg">#e5000000</item>
<item type="drawable" name="recents_callout_line">#99ffffff</item>
<item type="drawable" name="notification_item_background_legacy_color">#ffaaaaaa</item>
</resources>
Simply change these two lines...
Code:
[B]<item type="drawable" name="notification_item_background_color">#ff111111</item>
<item type="drawable" name="notification_item_background_color_pressed">#ff257390</item>[/B]
to...
Code:
[B]<item type="drawable" name="notification_item_background_color">[COLOR="Red"]@drawable/status_bar_item_background_normal[/COLOR]</item>
<item type="drawable" name="notification_item_background_color_pressed">[COLOR="Red"]@drawable/status_bar_item_background_pressed[/COLOR]</item>[/B]
...then add two .9 png images of the same name, status_bar_item_background_normal and status_bar_item_background_pressed to your drawable-hdpi folder, recompile, zipalign, push to your Phone, done.
Quick Tip: If you can't create a .9 from scratch just edit the first two in drawable_hdpi which in my folder is alert_bar_background_normal.9 and alert_bar_background_pressed.9, just remember not edit over the .9 borders.
Nothing yet about unlocking sim for free?
Nice....!!,
If I flash a stock firmware not locked to carrier, isn't the phone unlocked then?
Sent from my Nexus 5X using XDA-Developers mobile app

[GUIDE][MOD] Theme your "Tap to add widgets" Area through Text, Image, and Function

[GUIDE][MOD] Theme your "Tap to add widgets" Area through Text, Image, and Function
THIS GUIDE ASSUMES YOU KNOW HOW TO DECOMPILE AND RECOMPILE APKs.
This is a very simple mod that will help you change the text "Tap to add widgets", the default "plus" image that is tapped in order to add widgets, and turn off its function (if desired), on the LG G2.
General Instructions
1) Take the LGLockScreen.apk from your stock ROM.
2) Decompile the APK into a folder and call it something like LGLockScreen.
Instructions - Change Text
3) Go to LGLockScreen>res>Values>strings.xml
4) Look for:
Code:
<string name="keyguard_tap_to_add_widget_NORMAL">Tap to add widgets</string>
5) Replace "Tap to add widgets" with the writing you want people to see on the lock screen.
6) Recompile the APK.
Instructions - Change "Plus" Image
NOTE: There is no need to decompile the APK if only performing this mod. Just use 7z or Winrar to replace the files.
3) Create a PNG image that you wish to use in two sizes: 234x305 & 70x91
4) Make three copies of each size and name one of each size the following:
lockscreen_widget_add_disable
lockscreen_widget_add_normal
lockscreen_widget_add_pressed
5) Go to LGLockScreen>res>drawable
6) Place the three 70x91 images into the drawable folder overwriting the existing images.
7) Go to LGLockScreen>res>drawable-xxhdpi
8) Place the three 234x305 images into the drawable folder overwriting the existing images.
9) Recompile the APK.
Instructions - Turn Off Function to Add Widget
3) Go to LGLockScreen>res>Values>ids.xml
4) Look for:
Code:
<item type="id" name="keyguard_add_widget">false</item>
<item type="id" name="keyguard_add_widget_view">false</item>
<item type="id" name="keyguard_add_widget_guide_text">false</item>
5) Change to:
Code:
<item type="id" name="keyguard_add_widget">true</item>
<item type="id" name="keyguard_add_widget_view">true</item>
<item type="id" name="keyguard_add_widget_guide_text">true</item>
6) Recompile the APK.
Enjoy!

[GUIDE][MOD] How to add custom banner in Settings "About Device"

1. Download Settings Files.zip
2. Decompile your Settings.apk
3. Extract custombanner.xml of Settings Files.zip and place it in res/layout in decompiled Settings.apk
4. Open /res/xml/device_info_settings.xml
You'll see several <Preference android:title tags
5.Add this just a line above the first Preference tag:
Code:
<PreferenceCategory android:layout="@layout/custombanner" android:title="" />
6. Save the file and exit
7. Now make a .png banner for your ROM or find one on the internet. It has to be a .png
Resize your banner to 480x300 and rename it to custombanner.png
8. Place the custombanner.png in res/drawable
9. Recompile Settings.apk and Replace the settings.apk in your ROM
10. Enjoy :good:
Reserved for Screenshots
Screenshots
Hi ...... Can you add theme option in settings ?????
nathanjp said:
1. Download Settings Files.zip
2. Decompile your Settings.apk
3. Extract custombanner.xml of Settings Files.zip and place it in res/layout in decompiled Settings.apk
4. Open /res/xml/device_info_settings.xml
You'll see several <Preference android:title tags
5.Add this just a line above the first Preference tag:
Code:
Code:
<PreferenceCategory android:layout="@layout/myawesomerom" android:title="" />
6. Save the file and exit
7. Now make a .png banner for your ROM or find one on the internet. It has to be a .png
Resize your banner to 480x300 and rename it to custombanner.png
8. Place the custombanner.png in res/drawable
9. Recompile Settings.apk and Replace the settings.apk in your ROM
10. Enjoy :good:
Click to expand...
Click to collapse
Thanks bro... it works on my Samsung Galaxy Mega GT-I9152, but I Think there's only one mistake with your guide bro... in step number 5 :
Code:
<PreferenceCategory android:layout="@layout/myawesomerom" android:title="" />
it should be
Code:
<PreferenceCategory android:layout="@layout/custombanner" android:title="" />
Please correct me if I was wrong...Thanks...
sitifire said:
Thanks bro... it works on my Samsung Galaxy Mega GT-I9152, but I Think there's only one mistake with your guide bro... in step number 5 :
Code:
<PreferenceCategory android:layout="@layout/myawesomerom" android:title="" />
it should be
Code:
<PreferenceCategory android:layout="@layout/custombanner" android:title="" />
Please correct me if I was wrong...Thanks...
Click to expand...
Click to collapse
Thanks for pointing that when i war writing the xml file i thought of using myawesomerom but instead i used custombanner. Thats why i made a mistake will correct it immediately. Thanks for letting me know
It works perfect!!!!!
G.M.L._V2_IcSmoothness
http://pasakalis.blogspot.gr
Ended up in error in recompiling Any help?
Works perfect on sprint Galaxy Note 3 running stock deodexed lollipop rom. Thanks for this. It's awesome!!
great..thanks..I just try

need help to edit settings.apk

i have some reason to edit settings app
i want to edit settings-about phone-status
'network' and 'phone number'
i decompiled settings apk
and edit res/xml/device_info_status.xml
i tryed 3 kind
original:
PHP:
<Preference android:title="@string/status_operator" style="?android:attr/preferenceInformationStyle" android:summary="@string/device_info_not_available" android:key="operator_name" android:persistent="false"/>
1
PHP:
edit android:summary="XXXX"
fail
not applyed when i install
2
PHP:
eedit value/string.xml
add XXXX on that and edit @string/device_info_not_avalilable to @string/XXXX
fail
can't compile
3
PHP:
edit summary and key
fail
can't install
if you have any other idea or solutions
please help me
ps. im not good at programing because i did't learn about java
i just learn C for 3 month:silly:

Categories

Resources