[TOOL] Apktool for HC 3.2 (SDK v13) - Xoom Android Development

Hi,
I fixed up apktool to accept v13 apks. Thats all there is to say I submitted my patch to Brut.all, but for the time beeing, I'll attach the binary and the according Source patch here. Have fun with it ... and let the Hacking/Themeing begin.

You rock.
Sent from my Xoom using Tapatalk

can I just trow this with my other apktool, in platform tool?

MitchTank said:
can I just trow this with my other apktool, in platform tool?
Click to expand...
Click to collapse
Yes, but you need to install your 3.2 framework-res.apk by apktool if and have the newest aapt in PATH, otherwise its a drop-in replacement.

thanks, top work

Well done, thanks for this!

I still can't seem to get that systemui.apk anyone able to decode?

zone23 said:
I still can't seem to get that systemui.apk anyone able to decode?
Click to expand...
Click to collapse
you need to apktool if framework3.2-res.apk
otherwise it cannot decode the new values

I can decompile new setings.apk now, but cant build again!
Code:
d:\hapk>hnytool b ./settings
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: d:\hapk\.\settings\res/layout-sw600dp
invalid resource directory name: d:\hapk\.\settings\res/layout-sw600dp-land
invalid resource directory name: d:\hapk\.\settings\res/layout-sw720dp
invalid resource directory name: d:\hapk\.\settings\res/values-sw600dp
invalid resource directory name: d:\hapk\.\settings\res/values-sw600dp-land
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\ADMIN\AppData\Local\Temp\A
ers\ADMIN\apktool\framework\1.apk, -S, d:\hapk\.\settings\res, -M, d:\hapk\.\settings\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\ADMIN\AppData\Local\Temp\APKTOOL5387853825983380890.tmp, -I, C:\Users\ADMIN
settings\res, -M, d:\hapk\.\settings\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
d:\hapk>

you need to use the new aapt binary from ththe updated sdk to recompile.

Thanks!!!!!!

SytemUI Issues
The problem that I am having with systemui.apk is when I make the xml change for the clock color and recompile...I get no errors..but when I flash my theme...the systemUI dissapers...I had this same problem with Gmail and finsky and vending so I had to sign those...tried to sign this one but still did not flash...if I just add my themed png's to the one that came with 3.2 it flashes fine...not sure what is going on. But this is stopping me from releasing my themes.

Sorry to bump an old thread, but I just downloaded the patch thinking it was new. However, it's the same one I've been using for a while.
The problem I'm having is with the Values xml files. Any time I recompile (even without changes to the XML files) moving the new .src file over in order to get the new values into the apk causes strange forcecloses and even boot loops in some cases.
I originally got this patch from the apktool google code page, and someone else had the same issue as me there, and reported it. I had a look at my XML output and, sure enough, there were missing definitions in it just like it was reported in the linked issue thread.
Is there any way this can be resolved with the current SDK, or is there something you need in order for those "APKTOOL_DUMMY" lines to be filled in? I can't finish my theme without being able to edit the values.

arrtoodeetoo said:
Sorry to bump an old thread, but I just downloaded the patch thinking it was new. However, it's the same one I've been using for a while.
The problem I'm having is with the Values xml files. Any time I recompile (even without changes to the XML files) moving the new .src file over in order to get the new values into the apk causes strange forcecloses and even boot loops in some cases.
I originally got this patch from the apktool google code page, and someone else had the same issue as me there, and reported it. I had a look at my XML output and, sure enough, there were missing definitions in it just like it was reported in the linked issue thread.
Is there any way this can be resolved with the current SDK, or is there something you need in order for those "APKTOOL_DUMMY" lines to be filled in? I can't finish my theme without being able to edit the values.
Click to expand...
Click to collapse
Perhaps you can be more specific with your procedure. I have used this apktool to edit every apk worth editing. Part of the issue may be that, if you are working with the Tiamat rom as a base, we have testsigned the base apks. Clone our rom git and review the make file to see which apks must be test signed.

This is actually a problem I'm having with stock 3.2 (US 3G). The guys who are porting the theme to Tiamat are getting boot loops while I'm just getting force closes.
My procedure hasn't changes since I started theming (back on 3.0.1). Here's what I'm doing. Maybe you have a better way to do it.
1. Decomp the apk.
2. Edit the color values in the xml files from the res/values folder(s) that apply.
3. Recompile the apk.
4. Move all of the edited files (images, xml files) over to a clean, stock .apk
5. Remove the original .src file in the stock apk and replace it with the new one with the edited data.
6. push the new apk.
I've done it this way since the beginning, and this is the first time I've ran into a problem like this. Like I said, I think it has something to do with the dummy definitions that the patch creates. For example, this is in the drawables.xml from systemui.apk (res/values folder)
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<item type="drawable" name="notification_number_text_color">#ff89bade</item>
<item type="drawable" name="notification_item_background_color">#ff89bade</item>
<item type="drawable" name="ticker_background_color">#ff0b1222</item>
<item type="drawable" name=[B]"APKTOOL_DUMMY_0011">[/B]false</item>
</resources>
And this is from Framework-res.apk
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<drawable name="alert_dark_frame">@drawable/popup_full_dark</drawable>
<drawable name="alert_light_frame">@drawable/popup_full_bright</drawable>
<drawable name="dialog_frame">@drawable/panel_background</drawable>
<drawable name="editbox_dropdown_dark_frame">@drawable/editbox_dropdown_background_dark</drawable>
<drawable name="editbox_dropdown_light_frame">@drawable/editbox_dropdown_background</drawable>
<drawable name="menu_frame">@drawable/menu_background</drawable>
<drawable name="menu_full_frame">@drawable/menu_background_fill_parent_width</drawable>
<drawable name="stat_notify_sync_noanim">@drawable/stat_notify_sync_anim0</drawable>
<drawable name="stat_sys_download_done">@drawable/stat_sys_download_anim0</drawable>
<drawable name="stat_sys_upload_done">@drawable/stat_sys_upload_anim0</drawable>
<item type="drawable" name="screen_background_dark">#ff000000</item>
<item type="drawable" name="screen_background_light">#fff3f3f3</item>
<item type="drawable" name="screen_background_dark_transparent">#80000000</item>
<item type="drawable" name="screen_background_light_transparent">#80ffffff</item>
<drawable name="dialog_holo_dark_frame">@drawable/dialog_full_holo_dark</drawable>
<drawable name="dialog_holo_light_frame">@drawable/dialog_full_holo_light</drawable>
<item type="drawable" name="status_bar_closed_default_background">#ff000000</item>
<item type="drawable" name="status_bar_opened_default_background">#ff000000</item>
<item type="drawable" name="search_bar_default_color">#ff000000</item>
<item type="drawable" name="safe_mode_background">#60000000</item>
<item type="drawable" name="input_method_fullscreen_background">#fff9f9f9</item>
<item type="drawable" name="selected_day_background">#ff0092f4</item>
<item type="drawable" name="screen_background_holo_light">#fff3f3f3</item>
<item type="drawable" name="screen_background_holo_dark">#ff000000</item>
[B] <item type="drawable" name="APKTOOL_DUMMY_04b5">false</item>
<item type="drawable" name="APKTOOL_DUMMY_04b8">false</item>
<item type="drawable" name="APKTOOL_DUMMY_04ba">false</item>
<item type="drawable" name="APKTOOL_DUMMY_04bd">false</item>
<item type="drawable" name="APKTOOL_DUMMY_04bf">false</item>
<item type="drawable" name="APKTOOL_DUMMY_04c3">false</item>
<item type="drawable" name="APKTOOL_DUMMY_04c6">false</item>
<item type="drawable" name="APKTOOL_DUMMY_04c8">false</item>
<item type="drawable" name="APKTOOL_DUMMY_04c9">false</item>
<item type="drawable" name="APKTOOL_DUMMY_04cb">false</item>[/B]
</resources>
As you can see, I've been able to edit some of the colors, and those work just fine, but using the edited .src file in this Framework-res.apk causes the settings menu in any app I open to force close the app.

solarnz said:
you need to use the new aapt binary from ththe updated sdk to recompile.
Click to expand...
Click to collapse
Hi there,
Please could you tell me where i can find this file, as i have downloaded the newest SDK and it isn't in there!
Alternatively, is it uploaded somewhere?
Thanks

I'm definitely using the correct aapt file.

I would say at this point hop on #xoom so we can chat and get more in detail and narrow this thing down. We really want to get all the themers up and running.

Related

[GUIDE] [Advanced] How to make an IconPack for Samsung Touchwiz [JellyBean]

Hi
I found the simple way to change the icons and names of applications on Samsung's TouchWiz UI.
you need to know about how to edit an apk and also how to find the application's package and activity names.
0-Download my attached file.
1-Decompile CSCAppResource.apk
2-add all your favorite icons to drawable folder.
2a= if you want to change the application's name too, check this post! [updated 1st august 2013 ]
3-Compile and Sign it.
already , you have CSCAppResource.apk with all icons , you added from above steps.
now , you need to decompile your edited CSCAppResource.apk file, after decompiling, goto Values folder and open the public.xml file vith Notepad++.
now you will find it like this one,, this is an example;
PHP:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<public type="drawable" name="amestris_test" id="0x7f020000" />
</resources>
------------------------------------------------------
4-now create a xml file and paste below lines into it.
PHP:
<?xml version="1.0"?>
<cscappresource>
</cscappresource>
save it with CSCAppResource.xml file name.
------------------------------------------------------
5-now we want to add Icon for specific application. for example we want to change the icon for Browser.
the Browser application activity name is " com.android.browser ".
now we will define the Icon for Browser activity. see below example.
back to "CSCAppResource.xml" file and add this line between cscappresource tag.
PHP:
<item name="com.android.browser" iconid="7f020000"/>
at final we have the "CSCAppResource.xml " like this one.
PHP:
<?xml version="1.0"?>
<cscappresource>
<item name="com.android.browser" iconid="7f020000"/>
</cscappresource>
--------------------------------------------
save the file and copy CSCAppResource.xml and CSCAppResource.apk to this folder:
Code:
/system/csc/appresource
** you need to create "appresource" folder, if not exists.
give permissions to folder and files then reboot your phone.
i will share some samples in post #two.
Best Regards.
original thread
http://www.pda-planet.com/forum/forum127/thread5929.html
CUSTOM ICON PACKS
1-Sence5 Icon Pack by wildstang83​--------------------------------------------------------
How to apply this iconpack from custom recovery mod? [CWM Update.zip file]
Download the attached file "IconPack_Sample_CWM.zip"
Extract it via WinRar or 7Zip, copy your edited files into " \system\csc\appresource" folder and zip it.
now you can install it from recovery.
it is compatible with all phones.
**custom recovery is need.
​--------------------------------------------------------
Icon Pack Convertor by LegendM
Click to view the post
​--------------------------------------------------------
This is an sample:
PHP:
<?xml version="1.0"?>
<cscappresource>
<item name="com.android.browser" iconid="7f020012"/>
<item name="com.android.settings" iconid="7f02004f" />
<item name="com.android.phone" iconid="7f020046" />
<item name="com.android.mms" iconid="7f02003a" />
<item name="com.android.email" iconid="7f02001d" />
<item name="com.android.providers.downloads.ui" iconid="7f02001c" />
<item name="com.android.provider.smemo" iconid="7f020045" />
<item name="com.sec.android.widgetapp.diotek.smemo" iconid="7f020045" />
<item name="com.android.contacts" iconid="7f020018" />
<item name="com.android.contacts.activities.DialtactsActivity" iconid="7f020046" />
<item name="com.android.contacts.activities.PeopleActivity" iconid="7f020018" />
<item name="com.sec.android.app.dialertab.calllog.CalllogTipsActivity" iconid="7f020034" />
<item name="com.sec.android.app.camera" iconid="7f02000f" />
<item name="com.sec.android.app.camera.Camera" iconid="7f02000f" />
<item name="com.sec.android.gallery3d" iconid="7f020024" />
<item name="com.sec.android.app.launcher" iconid="7f020003" />
<item name="com.sec.android.app.controlpanel" iconid="7f02002e" />
<item name="com.sec.android.app.videoplayer" iconid="7f02005d" />
<item name="com.sec.android.app.voicerecorder" iconid="7f020061" />
<item name="com.sec.android.app.music" iconid="7f02003f" />
<item name="com.sec.android.app.myfiles" iconid="7f02001f" />
<item name="com.sec.android.app.fm" iconid="7f020021" />
<item name="com.sec.android.app.popupcalculator" iconid="7f020008" />
<item name="com.sec.android.app.clockpackage" iconid="7f020015" />
<item name="com.android.vending.AssetBrowserActivity" iconid="7f02004a" />
<item name="com.android.vending" iconid="7f02004a" />
<item name="com.google.android.finsky.widget.recommendation.RecommendedWidgetProvider" iconid="7f02004a" />
<item name="com.google.android.finsky.FinskyApp" iconid="7f02004a" />
<item name="com.android.vending.MarketWidgetProvider" iconid="7f02004a" />
<item name="com.google.android.finsky.widget.consumption.NowPlayingWidgetProvider" iconid="7f02004a" />
<item name="com.opera.mini.android" iconid="7f020043" />
<item name="com.noshufou.android.su" />
<item name="com.sds.android.ttpod" iconid="7f020059" />
<item name="net.cactii.flash2" iconid="7f020020" />
<item name="com.android.calendar.launchactivity" iconid="7f02000b" />
<item name="com.android.calendar.LaunchActivity" iconid="7f02000b" />
</cscappresource>
I have a couple of quick questions first though. Does it matter what the icons are named? Like ic_launcher.png, etc...
Also, I see where you say place both the .apk and the .xml into /system/csc/appresource, but I don't have an appresource folder on my Note II. What should I do?
Looks interesting, can't wait to try it out after your reply
wildstang83 said:
I have a couple of quick questions first though. Does it matter what the icons are named? Like ic_launcher.png, etc...
Also, I see where you say place both the .apk and the .xml into /system/csc/appresource, but I don't have an appresource folder on my Note II. What should I do?
Looks interesting, can't wait to try it out after your reply
Click to expand...
Click to collapse
1- it doesn't matter about the names, you just link the icon's ID from public.xml to activity. also you can see the example from second post.
2-you need to create appresource folder manually, it doesn't exists on any firmware.
M_J_Nazari said:
1- it doesn't matter about the names, you just link the icon's ID from public.xml to activity. also you can see the example from second post.
2- if not exists , then create appresource folder manually.
Click to expand...
Click to collapse
Appreciate that. Gonna try it out right now :good:
wildstang83 said:
Appreciate that. Gonna try it out right now :good:
Click to expand...
Click to collapse
you're welcome , you can test the sample from second post.
M_J_Nazari said:
you're welcome , you can test the sample from second post.
Click to expand...
Click to collapse
Yea thats what I am doing, just having a look at how you did it and everything. It works btw. You did a good job with this bud.
EDIT: I have the VZW Samsung Galaxy Note II i605 and it works perfectly.
Trust me I'm searching for this long time
I try create an small windows app that read apex ,go launcher icons and convert them to touchwiz
wildstang83 said:
Yea thats what I am doing, just having a look at how you did it and everything. It works btw. You did a good job with this bud.
EDIT: I have the VZW Samsung Galaxy Note II i605 and it works perfectly.
Click to expand...
Click to collapse
:good: its my pleasure.
LegendM said:
Trust me I'm searching for this long time
I try create an small app that read apex ,go launcher icons and convert them to touchwiz
Click to expand...
Click to collapse
I'll hope you find it perfect.
we are waiting for your job.
i searching a long time for this method and finally find this way is working. it seems an hidden Touchwiz feature.
Edit:Here you go small tool ( may be buggy,report bugs via pm)
LegendM said:
Ok,I made a small app,It extract apk files
Read from xml file and create new one
Now main problem is how can I sign zip?
Click to expand...
Click to collapse
how you edit apk file?
How to setup APKTool & Decompile, Recomile, Sign, and Zipalign APKs
[Guide] [Apktool] [Drag2sign] guide for decompiling apks to edit xml files & sign apk
[GUIDE] Signing and zipaligning your app
LegendM said:
Ok,I made a small app,It extract apk files
Read from xml file and create new one
Now main problem is how can I sign zip?
Click to expand...
Click to collapse
Basically you will need to create a key to sign the apk with. Assuming you have the android sdk and the JDK installed and in your path, you need to open terminal and run a command to create a key:
Code:
keytool -genkey -v -keystore android-test.keystore
Now that that is created you need to create a directory in which to sign your apk. I created mine on my desktop and called it sign_apk. So then I moved my key to that sign_apk folder on my desktop, along with my unsigned apk. After that you need to run another terminal command to sign the apk:
Code:
cd [path to sign_apk]
jarsigner -verbose -keystore android-test.keystore CSCAppResource.apk mykey
It will ask for the password you used while you were setting up your key. After you enter your password, it will sign the apk and all will be good.
Keep in mind, I am an OSX user so certainly not all things may be the same for all users, but this should get you closer at least
wildstang83 said:
Basically you will need to create a key to sign the apk with. Assuming you have the android sdk and the JDK installed and in your path, you need to open terminal and run a command to create a key:
Code:
keytool -genkey -v -keystore android-test.keystore
Now that that is created you need to create a directory in which to sign your apk. I created mine on my desktop and called it sign_apk. So then I moved my key to that sign_apk folder on my desktop, along with my unsigned apk. After that you need to run another terminal command to sign the apk:
Code:
cd [path to sign_apk]
jarsigner -verbose -keystore android-test.keystore CSCAppResource.apk mykey
It will ask for the password you used while you were setting up your key. After you enter your password, it will sign the apk and all will be good.
Keep in mind, I am an OSX user so certainly not all things may be the same for all users, but this should get you closer at least
Click to expand...
Click to collapse
Check my post and report bugs please :laugh:
I skip sign zip,people can do that manually,it just create xml file
LegendM said:
Edit:Here you go small tool ( may be buggy,report bugs via pm)
Click to expand...
Click to collapse
could you please explain it better?
it will convert icon packs from another Launchers to Touchwiz?
:good::good::good::good::good: yaaaay amazing guide bro
Got my Note ll looking like Sense 5
M_J_Nazari said:
could you please explain it better?
it will convert icon packs from another Launchers to Touchwiz?
Click to expand...
Click to collapse
Yep
You have to read other launcher apk file
It automaticly read xml file and create new one for touchwiz
Also you can find extracted apk file in my documents/touchwiz icon converter folder
LegendM said:
Yep
You have to read other launcher apk file
It automaticly read xml file and create new one for touchwiz
Also you can find extracted apk file in my documents/touchwiz icon converter folder
Click to expand...
Click to collapse
its an amazing tool :X:good:
Good,
Work perfec in s3mini
Sent from my GT-I8190 using Xparent Blue Tapatalk 2
this is the easiest apk decompiler i know as of now
http://www.youtube.com/watch?v=5-u0UI9LsrY

{Guide} How to change black background of all Android apps

How to change black background for all apps​
Hope you must have got boared of your default Black Android Backgrounds of almost all system application UIs. And If you really fed up of it...then let's change it by making a few small edits to framework-res.apk/res/values/styles.xml
This gonna affect MOST of the Black Background you see in Android (e.g. Settings, Contacts, Mms, Installer etc.)
It would be with the exception of certain apps that use their own backgrounds...!! so all newbies get ready to theme your own apps..
Click to expand...
Click to collapse
Difficulty Level : Medium
HOW TO DO IT
# just follow simple instruction..!!
Click to expand...
Click to collapse
1. Decompile framework-res.apk
[and please Dont ask me How to Decompile & Recompile an APK find a separate post on the same]
2. Navigate to res/values and open styles.xml
3. Locate <style name="Theme">
4. Replace
<item name="colorBackground">@color/background_dark</item>
with
Code:
<item name="colorBackground">@color/transparent</item>
5. Replace
<item name="windowBackground">@drawable/screen_background_dark<item>
with
Code:
<item name="windowBackground">@drawable/mybackground</item>
6. Locate <style name="Theme.Black" parent="@style/Theme">
7. Replace
<item name="colorBackground">@color/black</item>
with
Code:
<item name="colorBackground">@color/transparent</item>
8. Replace
<item name="windowBackground">@color/black</item>
with
Code:
<item name="windowBackground">@drawable/mybackground</item>
9. For MDPI Devices:Create a .png with resolution 320x480 as you like, rename it as mybackground.png and place it in drawable-mdpi folder
For HDPI Devices:Create a .png with resolution 480x800 as you like, rename it as mybackground.png and place it in drawable-mdpi folder
10. Recompile framework-res.apk and Push it using Adb or using some Flashable Zip.
Note:-
Always create a backup of your Application and ROM before Making any modifications!!!
Click to expand...
Click to collapse
Hit thanks to Motivate me​

[GUIDE][MOD][CM11] How to automatic disable signal icon when deactive SIM card

Easy Guide how to automatic disable signal icon when deactive SIM card base Cm11
REQUIREMENT:
- Know how to decompile/recompiling Apk
- Know how to smali/xml editing
decompile SystemUI.apk
open SystemUI/res/values/drawables.xml
add this code above </resources>
Code:
<item type="drawable" name="deuge_blank_drawable">#00000000</item>
open SystemUI/res/values/styles.xml
find styles code
Code:
<style name="TextAppearance.StatusBar.SimSlotLabel" parent="@*android:style/TextAppearance.StatusBar.Icon">
<item name="android:textSize">10.0dip</item>
<item name="android:textStyle">bold</item>
<item name="android:textColor">#ff808080</item>
</style>
change
Code:
<item name="android:textSize">10.0dip</item>
to
Code:
<item name="android:textSize">0.0dip</item>
recompile
decompile
open SystemUI/res/values/public.xml
find
Code:
type="drawable" name="deuge_blank_drawable" id="[COLOR="red"]0x7f0?????[/COLOR]"
SAVE RED CODE
open com/android/systemui/statusbar/policy/MSimNetworkController.smali
find
Code:
[COLOR="Blue"]0x7f020117[/COLOR]
note :
type="drawable" name="stat_sys_signal_null" id="0x7f020117"
change 0x7f020117 to red code type="drawable" name="deuge_blank_drawable"
Save,recompile,sign,dan push ke system, DONE!!!
Vertamax

[MOD][LP][5.1.1][C6903] SystemUI Dynamic Color For No Small Apps

​Xperia Z1 C6903 Lollipop 5.1.1​(From Stock 14.6.A.0.368 FR) For No Deodexed Firmware: , Keep Your SystemUI.odex inside your arm folfer ! Do Not Remove it !
and For Deodexed Firmware ... just replace your SystemUI.apk with the downloaded Deodexed SystemUI.apk !​
SystemUI Dynamic Color For No Small apps Close All Button Position fix​
Installation :​​​Go to "\System\priv-app\SystemUI" Rename SystemUI.apk to SystemUI.apk.bak and Put the Downloaded SystemUI.apk
Go to "\System\app\SmallAppsLauncher" rename SmallAppsLauncher.apk to SmallAppsLauncher.apk.bak for not Showing Smalls Apps Launcher in Recents Apps Screen !
REBOOT !
Quick Tutorial : For C6903 Lollipop 5.1.1
res\values\styles.xlm
Edit: line 23:
<item name="android:navigationBarColor">@android:color/transparent</item>
to
<item name="android:navigationBarColor">@android:color/somc_color_dark_primary_dark</item>
res\values\drawables.xml
Edit: lines 6,18,19,20,21,22:
<item type="drawable" name="navigation_bar_gradient_background_non_skinnable">@drawable/nav_background</item>
<item type="drawable" name="somc_navbar_background_dark">@color/system_bar_background_opaque</item>
<item type="drawable" name="somc_navbar_background_dark_land">@color/system_bar_background_opaque</item>
<item type="drawable" name="somc_navbar_background_light">@drawable/somc_navbar_background_dark</item>
<item type="drawable" name="somc_navbar_background_light_land">@drawable/somc_navbar_background_dark_land</item>
<item type="drawable" name="somc_navbar_background_translucent">@drawable/nav_background</item>
to
<item type="drawable" name="navigation_bar_gradient_background_non_skinnable">@drawable/status_background</item>
<item type="drawable" name="somc_navbar_background_dark">@android:color/somc_color_dark_primary_dark</item>
<item type="drawable" name="somc_navbar_background_dark_land">@android:color/somc_color_dark_primary_dark</item>
<item type="drawable" name="somc_navbar_background_light">@android:color/somc_color_dark_primary_light</item>
<item type="drawable" name="somc_navbar_background_light_land">@android:color/somc_color_dark_primary_light</item>
<item type="drawable" name="somc_navbar_background_translucent">@drawable/status_background</item>
Close all Button position:
Portrait mode:
res\values\dimens.xml
Edit: line 250
<dimen name="close_all_button_layout_margin_bottom">134.0dip</dimen>
to
<dimen name="close_all_button_layout_margin_bottom">64.0dip</dimen>
Landscape mode: make a copy of res\layout\layout\recents.xml to res\layout\layout-land\recents.xml
res\layout\layout-land\recents.xml
Edit line 9
<Button android:theme="@android:style/Theme.DeviceDefault" android:gravity="center" android:layout_gravity="end|bottom|center" android:id="@id/close_all_button" android:background="@drawable/somc_close_all_background" android:visibility="gone" android:layout_width="@dimen/close_all_button_size" android:layout_height="@dimen/close_all_button_size" android:layout_marginBottom="@dimen/close_all_button_layout_margin_bottom" android:layout_marginEnd="@dimen/close_all_button_layout_margin_end" android:elevation="8.0dip" />
to
<Button android:theme="@android:style/Theme.DeviceDefault" android:gravity="center" android:layout_gravity="end|bottom|center" android:id="@id/close_all_button" android:background="@drawable/somc_close_all_background" android:visibility="gone" android:layout_width="@dimen/close_all_button_size" android:layout_height="@dimen/close_all_button_size" android:layout_marginBottom="16.0dip" android:layout_marginEnd="64.0dip" android:elevation="8.0dip" />
Simple, delete small app
lavenbut said:
Simple, delete small app
Click to expand...
Click to collapse
Never Delete before testing !
It is better to rename apps to *.bak for who want to revert .... It mean a backup !
If you don't see the difference of Dynamic and the close all button in recents apps screen ...
Here it is !
mastacut said:
Never Delete before testing !
It is better to rename apps to *.bak for who want to revert .... It mean a backup !
If you don't see the difference of Dynamic and the close all button in recents apps screen ...
Here it is !
Click to expand...
Click to collapse
Hi OP can this be use in latest firmware 216?
If u have xposed and module xperia xposed, it will simple more. Like this
lavenbut said:
If u have xposed and module xperia xposed, it will simple more. Like this
Click to expand...
Click to collapse
Yes it is better for a Simple User like you if this can help you and I really appreciate.
This information is dedicated to programmers and developers, it is important to share code to the community, it is the principle of free software, but it also can help some novices.
This will manufacture custom roms and delete any applications that are unnecessary or rarely used.
:good:
anakdayak said:
Hi OP can this be use in latest firmware 216?
Click to expand...
Click to collapse
I think you can, but some lines can be differents, you must find where is the line of code, but generaly it is the same code.
:good:
Send me your 216 SystemUI.apk and I tell you if the line of ( styles.xlm, drawables.xml, recents.xml, colors.xml .... ) is the same.
Works Great
And it's very nicee thanks A lot
And also thanks for sharing how to do it
Is It working with .236 stock?

G4 tweaksbox - lockscreen themes/animations not working correctly? (Solved)

So i've been tinkering with themes for the G4 tweaksbox and i've found that resources on the lockscreen (for example, the slide-for-camera icon) are changed with the system ui theme and not the lockscreen theme - is this because the tweaksbox was originally made for KitKat on the G3 and the lockscreen was fundamentally changed with lollipop and is now pretty much a part of the systemui?
Anyway, i've made some new resources and added the correct strings to theme.xml and lockscreen-theme.xml (which turned out to be not needed) along with a animation file for them in /drawable, but i can't get the custom animation to work. I've created the file lockscreen_lock_icon_camera_animation.xml (found by decompiling the systemui.apk on my G4) and pretty much used other g4twb animation files as a template to write this in it: (The xmlns link does not have breaks in it, i put them in here because xda wont let new users post links)
Code:
<?xml version="1.0" encoding="utf-8"?>
<animation-list android:oneshot="true"
xmlns:android="http :// schemas . android . com / apk / res / android">
<item android:duration="1300" android:drawable="@drawable/lockscreen_lock_icon_camera_00" />
<item android:duration="100" android:drawable="@drawable/lockscreen_lock_icon_camera_01" />
<item android:duration="100" android:drawable="@drawable/lockscreen_lock_icon_camera_02" />
<item android:duration="800" android:drawable="@drawable/lockscreen_lock_icon_camera_03" />
<item android:duration="300" android:drawable="@drawable/lockscreen_lock_icon_camera_00" />
<item android:duration="100" android:drawable="@drawable/lockscreen_lock_icon_camera_01" />
<item android:duration="100" android:drawable="@drawable/lockscreen_lock_icon_camera_02" />
<item android:duration="800" android:drawable="@drawable/lockscreen_lock_icon_camera_03" />
<item android:duration="300" android:drawable="@drawable/lockscreen_lock_icon_camera_00" />
</animation-list>
All the files compile fine and can be found in the newly generated public.xml file but only the new resources show, not the new animation. Any ideas why?
EDIT:
Looked through my files again and turns out i forgot to add the animation file to theme.xml.
Can't find a delete button anywhere so i guess you are all free to laugh at me now

Categories

Resources