[SOFTKEYS] smaller, black, cwm flashable - now with 10.5.1.A.0.283 support!!

Search This thread

glitschi667

Senior Member
Mar 14, 2011
119
333
Update 1: fixed backbutton scaling problem and changed size 24 to 25 to match status bar size. details...

Update 2: the "stock" zips are now based on Xperia Z (C6603) 10.1.A.1.350 Original Sony Unbranded UK Rom

Update 3: added stock version with black background.

Update 4: added 434 stock version with and without black background and added size 32

Update 5: 434 landscape fix. the resize was not properly done in landscape mode =(.

Update 6: added size 32 for 350 stock based fw

Update 7: THERE IS CURRENTLY A BUG CONCERNING THE CAMERA APP: except size 36 and 48, this mod will cause a crash when selecting image effects!! already working on a solution......

Update 8: fix for the camera app available - but it has to be flashed separately. Details about what has been changed can be found here

Update 9: .253 fw version available.

Update 10: experimental .407 (leaked 4.2.2) version can be found here.

Update 11: 423 support]!!

Update 12: due to problems with the first 423 version, I removed the files. The new version can be found here.

Update 13: 244 support. files are here.

Update 14: 569 support. files are here.

Update 15: almost one year later... =) ... 101 support can be found here

Update 16: kitkat support (1.5.0.A.230)... here

Update 17: 10.5.1.A.0.283 support. files are here
Hey guys,

after being frustated following an untested tutorial here and ending up in a bootloop I found this great thread here.

here are the some different zips - with different softkey "sizes" (48 is the normal size).. please check your fw version before flashing.

for stock roms (253 fw) black background:

25 - X_softkey_25_black_253.zip
32 - X_softkey_32_black_253.zip
36 - X_softkey_36_black_253.zip
48 - X_softkey_48_black_253.zip

camera fix for sizes < 36: X_softkey_camera_fix_253.zip


for stock roms (434 fw) grey background:

25 - X_softkey_25_grey_434.zip
32 - X_softkey_32_grey_434.zip
36 - X_softkey_36_grey_434.zip
48 - X_softkey_48_grey_434.zip

camera fix for sizes < 36: X_softkey_camera_fix_434.zip


for stock roms (434 fw) black background:

25 - X_softkey_25_black_434.zip
32 - X_softkey_32_black_434.zip
36 - X_softkey_36_black_434.zip
48 - X_softkey_48_black_434.zip

camera fix for sizes < 36: X_softkey_camera_fix_434.zip


for stock roms (350 fw):

25 - X_softkey_25.zip
32 - X_softkey_36.zip
36 - X_softkey_36.zip
48 - X_softkey_48.zip


for stock roms (350 fw) black background:

25 - X_softkey_25_black.zip
32 - X_softkey_32_black.zip
36 - X_softkey_36_black.zip
48 - X_softkey_48_black.zip


and if you are running RomAur or XperiaLite (350 fw-based), here are the ones with the modded statusbar:

25 - X_softkey_25.zip
36 - X_softkey_36.zip
48 - X_softkey_48.zip


files are too big for xda, stupid anonfiles renames the zips... so I double zipped them. extract for cwm flashable zips... sorry....

how to install:
  • do a full backup before installing, in case something goes wrong...
  • put them on your sdcard and do not forget the fix for the camera effects for sizes <36 !!!
    and do not forget to unzip the downloaded files before flashing. the attached camera-fix is not double zipped since it was not too big for xda...
  • install via cwm
  • and restart - no wipe needed!
I only tested them myself, so feedback is appreciated! =)

cheers,
glitschi :cowboy:


thx go to doomlord for root + cwm and brunocjm for the tutorial!!

... and please click :good: thanks if you like it!


...
 

Attachments

  • Screenshot_2013-03-24-14-20-09_resize.jpg
    Screenshot_2013-03-24-14-20-09_resize.jpg
    126.8 KB · Views: 20,610
  • X_softkey_camera_fix_434.zip
    3.2 MB · Views: 1,568
  • X_softkey_camera_fix_253.zip
    3.2 MB · Views: 1,001
Last edited:

elroy944

Senior Member
Oct 8, 2007
1,311
156
oke flashed the 24 size zip and its working. but as stated in the op the back button is big and very very ugly :p is it possible to get the other buttons the same size as the back in size24 ?

See screenshot :
e5e3urah.jpg
 
Last edited:

Carphedon

Senior Member
Nov 13, 2010
389
104
I really like this smaller navigation bar but we need to find a way to fix the back button, this looks odd.
 

Carphedon

Senior Member
Nov 13, 2010
389
104
Maybe it's possible to keep the icons large and resize the bar? That will probably still look nice and is better then 1 Big and 2 small.
 

allevi

Senior Member
Nov 19, 2008
80
4
Milano
R: [SOFTKEYS] smaller, cwm flashable

Thanks!!
Works fine and for now 36 is better!

Inviato dal mio C6603 con Tapatalk 2
 

glitschi667

Senior Member
Mar 14, 2011
119
333
fixed back button size

I've found a way to adapt the back button size!

will update dl links in a few minutes... and I've changed size 24 to 25, now it should have same size as the status bar..


for those interested here is what I did:

first I found something in a Nexus thread here.

ok. we have to modify SystemUI.apk for adjusting the scale values for the back buttons (normal and landscape).

Update, I was just too stupid, with the the stock framework-res.apk "installed" apktool worked!!=).. removed the rest of the post...
...

cheers!
glitschi
 
Last edited:

elroy944

Senior Member
Oct 8, 2007
1,311
156
Re: [SOFTKEYS] smaller, cwm flashable

I've found a way to adapt the back button size!

will update dl links in a few minutes... and I've changed size 24 to 25, now it should have same size as the status bar..


for those interested here is what I did:

first I found something in a Nexus thread here.

ok. we have to modify SystemUI.apk for adjusting the scale values for the back buttons (normal and landscape).

thats where the fun started =): with current apktool (1.5.2) I was not able to decompile SystemUI.apk, it throws an exception and quits. I tried out lots of stuff to get this working but no luck....maybe I was just to stupid, anyone successfully did this? Anyway, I downloaded sources of apktool and searched why this exception was raised. Basically it had problems finding the name for a drawable... I added some lines to catch the exception a few function calls down and simply returned the name of another drawable apktool had no problems with..

this way I was able to decompile and recompile it again. Since navigation_bar.xml wasn't using a drawable that was not found by apktool I could just make the changes, recompile and put the navigation_bar.xml into the original SystemUI.apk. added it to the cwm.zip.... et voilà.... =)

if someone is interested in the apktool modification:

Inside ResAttrDecoder.java:
Code:
[SIZE="1"]public String decode(int type, int value, String rawValue, int attrResId)
throws AndrolibException {
ResScalarValue resValue = mCurrentPackage.getValueFactory().factory(
type, value, rawValue);

String decoded = null;
if (attrResId != 0) {
ResAttr attr = (ResAttr) getCurrentPackage().getResTable()
.getResSpec(attrResId).getDefaultResource().getValue();
decoded = attr.convertToResXmlFormat(resValue);
}

--return decoded != null ? decoded : resValue.encodeAsResXmlAttr();

++if( decoded == null) 
++{
++  try {
++    decoded = resValue.encodeAsResXmlAttr();
++  }catch(Exception e)
++  {
++    return new String("@drawable/notification_item_background_legacy_color");
++  }
++}
++return decoded;
}[/SIZE]


cheers!
glitschi


ps. if somebody knows an easier way, I would really like to know. I'm new to this gui modding thing....

Did you find a way to add menu button?
 

glitschi667

Senior Member
Mar 14, 2011
119
333
no. sorry. took me about 4 or 5 hours to get this fixed...enough "leisure hacking" for today...

so, what you want to have is the "settings" button available all the time? I think it is visible if an application wants it? isn't it the three dots?
 

elroy944

Senior Member
Oct 8, 2007
1,311
156
Re: [SOFTKEYS] smaller, cwm flashable

no. sorry. took me about 4 or 5 hours to get this fixed...enough "leisure hacking" for today...

so, what you want to have is the "settings" button available all the time? I think it is visible if an application wants it? isn't it the three dots?

Only with some apps it's visible. But for example menu button in nova launcher is the most i miss. I manage now with gestures for settings etc, but i miss the menu button

---------- Post added at 03:36 PM ---------- Previous post was at 03:29 PM ----------

Well size 25 works great now on stock rom. Did you changed something else? See screenshot the time is now centered and there is a new battery icon (i now have 3 battery percent meters haha)

7ezepy2u.jpg
 

glitschi667

Senior Member
Mar 14, 2011
119
333
ouch.

I had to flash the AuRom zip since I was caught in a bootloop when I was following the other tutorial for changing the softkey size......

Maybe thats also the reason for my SystemUI.apk decompile problem? that would be stupid. I'm going to take the links offline until I have the original SystemUI.apk modified.

thanks for letting me know!!
 

elroy944

Senior Member
Oct 8, 2007
1,311
156
Re: [SOFTKEYS] smaller, cwm flashable

ouch.

I had to flash the AuRom zip since I was caught in a bootloop when I was following the other tutorial for changing the softkey size......

Maybe thats also the reason for my SystemUI.apk decompile problem? that would be stupid. I'm going to take the links offline until I have the original SystemUI.apk modified.

thanks for letting me know!!

Haha your welcome, that's what this community is for :) just take your time, we'll see it when it's ready
 

Top Liked Posts

  • There are no posts matching your filters.
  • 102
    Update 1: fixed backbutton scaling problem and changed size 24 to 25 to match status bar size. details...

    Update 2: the "stock" zips are now based on Xperia Z (C6603) 10.1.A.1.350 Original Sony Unbranded UK Rom

    Update 3: added stock version with black background.

    Update 4: added 434 stock version with and without black background and added size 32

    Update 5: 434 landscape fix. the resize was not properly done in landscape mode =(.

    Update 6: added size 32 for 350 stock based fw

    Update 7: THERE IS CURRENTLY A BUG CONCERNING THE CAMERA APP: except size 36 and 48, this mod will cause a crash when selecting image effects!! already working on a solution......

    Update 8: fix for the camera app available - but it has to be flashed separately. Details about what has been changed can be found here

    Update 9: .253 fw version available.

    Update 10: experimental .407 (leaked 4.2.2) version can be found here.

    Update 11: 423 support]!!

    Update 12: due to problems with the first 423 version, I removed the files. The new version can be found here.

    Update 13: 244 support. files are here.

    Update 14: 569 support. files are here.

    Update 15: almost one year later... =) ... 101 support can be found here

    Update 16: kitkat support (1.5.0.A.230)... here

    Update 17: 10.5.1.A.0.283 support. files are here
    Hey guys,

    after being frustated following an untested tutorial here and ending up in a bootloop I found this great thread here.

    here are the some different zips - with different softkey "sizes" (48 is the normal size).. please check your fw version before flashing.

    for stock roms (253 fw) black background:

    25 - X_softkey_25_black_253.zip
    32 - X_softkey_32_black_253.zip
    36 - X_softkey_36_black_253.zip
    48 - X_softkey_48_black_253.zip

    camera fix for sizes < 36: X_softkey_camera_fix_253.zip


    for stock roms (434 fw) grey background:

    25 - X_softkey_25_grey_434.zip
    32 - X_softkey_32_grey_434.zip
    36 - X_softkey_36_grey_434.zip
    48 - X_softkey_48_grey_434.zip

    camera fix for sizes < 36: X_softkey_camera_fix_434.zip


    for stock roms (434 fw) black background:

    25 - X_softkey_25_black_434.zip
    32 - X_softkey_32_black_434.zip
    36 - X_softkey_36_black_434.zip
    48 - X_softkey_48_black_434.zip

    camera fix for sizes < 36: X_softkey_camera_fix_434.zip


    for stock roms (350 fw):

    25 - X_softkey_25.zip
    32 - X_softkey_36.zip
    36 - X_softkey_36.zip
    48 - X_softkey_48.zip


    for stock roms (350 fw) black background:

    25 - X_softkey_25_black.zip
    32 - X_softkey_32_black.zip
    36 - X_softkey_36_black.zip
    48 - X_softkey_48_black.zip


    and if you are running RomAur or XperiaLite (350 fw-based), here are the ones with the modded statusbar:

    25 - X_softkey_25.zip
    36 - X_softkey_36.zip
    48 - X_softkey_48.zip


    files are too big for xda, stupid anonfiles renames the zips... so I double zipped them. extract for cwm flashable zips... sorry....

    how to install:
    • do a full backup before installing, in case something goes wrong...
    • put them on your sdcard and do not forget the fix for the camera effects for sizes <36 !!!
      and do not forget to unzip the downloaded files before flashing. the attached camera-fix is not double zipped since it was not too big for xda...
    • install via cwm
    • and restart - no wipe needed!
    I only tested them myself, so feedback is appreciated! =)

    cheers,
    glitschi :cowboy:


    thx go to doomlord for root + cwm and brunocjm for the tutorial!!

    ... and please click :good: thanks if you like it!


    ...
    56
    can you add the updates to 423 to the op?, also does the download from page 19 work for 423?


    so... I did a lot of wiping, reflashing and it looks good to me.... no issues found.... but that doesn't mean there are none.. so... if you experience problems or are using a different fw than the spanish one - which is the one I've been testing on, please report back... and it might be helpful if you could send me the following file: /vendor/overlay/android-res.apk

    so here is what I've changed:

    as reported before, the problem with the last release seems to be that there are 2 framework-res.apk overlays with the same package name. On my firmware the included overlay just added the option to make some of the bloatware removable (linked-in app for example)... so after changing anything(?) inside system-folder, it was possible, that the overlay inside this mod was "overwritten" by the original overlay apk. an easy solution would have been to delete /vendor/overlay/android-res.apk but I did not want to change things that do not really need to be changed in order to get the mod working.

    I've now changed the package name (which is definded in the framework-overlay-navbarXX.apk/AndroidManifest.xml) from "android.res.overlay" to "android.res.overlay.softkeys", but in first that only made the mod not working at all. But there is another value inside AndroidManifest.xml: "priority". I could not find any documentation for this and I will have to look inside the source I think, but for now, changing this value from "200" (which is set in almost every overlay.apk I've seen) to "500" did the trick... now I did data wipes, fresh installs, installed other mods (mainly the camerafix.apk - but that several times =) ) afterwards, 0 problems..... and I can still uninstall the linkedIn-app.. so it seems the android-res.apk overlay is still working....

    so I do not know what else to test right now, and since I had no problems, you can find the files attached.... but again, this is experimental and feedback is appreciated.... if there are no problems found until tomorrow, I will put the files inside post #1....

    thx for the feedback and for staying patient,

    cheers! :cowboy:


    was a lot of work, so pressing thanks would really be a nice thing.....
    29
    Installed everything following NUT's [STOCK][C6603][4.2.2] Update to 10.3.1.A.0.244 [Rooted & XZDualRecovery][LB/UB].


    I've run the script, installed 25 version.... looks good =).


    the files are attached. feedback appreciated.... clicking thanks too =)


    cheers :cowboy:
    11
    ok. here are the files.... :cool:

    Had to do some little changes to the overlay apks... now it requires android:target somethingin the AndroidManifest.xml... that's new....

    and there is no camera effect fix available yet.... but if you really need it, there is an how-to somewhere in this thread. (see OP, there should be a link...)




    cheers! :cowboy:



    ps. I once had to install it twice... but it could have been a user error.... and I've only tested them myself, so please do a backup first and any feedback is appreciated!


    .
    8
    For the latest firmware 244 are there any news about small softkeys? I really love this mod

    + 1 , I need this mod, its the best :p



    244 firmware? .... cool =] .......

    I'm going to download and install..... If my scripts are working with the new version, it should be ready by tomorrow.....


    cheers! :cowboy: