Related
I decided to go ahead and start a thread for the collection of stuff I've been playing around with....
Transparent Mms
Transparent Mms.apk with transparent bubble-style conversation. Built from the 06/24 CM9 Skyrocket Nightly (Official) which includes an option in the settings menu called "Soft Key" which allows you to choose to have the carriage return (enter key to drop to the next line) rather than the stupid smiley key.
Screenshot
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
To try it out yourself, I followed this guide here:
http://rootzwiki.com/topic/19845-how-to-theme-your-mms-a-step-by-step-guide/
And modified it based on the work of MrDSL with his transparent mms mod (make sure you abuse the Thanks button on this guy):
http://forum.xda-developers.com/showthread.php?t=1697429
Custom carrier logo in status bar
This is super easy and would be something that seems like it would be relatively easy to add as a feature to CM9/AOKP in the future:
Decompile SystemUI.apk
navigate to /res/layouts/status_bar.xml
Find the line that starts with this (for me it was line 7)
Code:
<com.android.systemui.statusbar.StatusBarIconView
Add a new line above that line and insert this:
Code:
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textColor="@android:color/transparent" android:gravity="center_vertical" android:orientation="horizontal" android:background="@drawable/carrier_logo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignParentLeft="true" />
Here's what the first 8 lines of my status_bar.xml look like after addind that line:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.PhoneStatusBarView android:background="@drawable/status_bar_background" android:focusable="true" android:descendantFocusability="afterDescendants" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
<LinearLayout android:orientation="horizontal" android:id="@id/icons" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.phone.CarrierLabel android:textAppearance="@android:style/TextAppearance.StatusBar.Icon" android:textColor="@android:color/transparent" android:gravity="center_vertical" android:orientation="horizontal" android:background="@drawable/carrier_logo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" android:layout_alignParentLeft="true" />
<com.android.systemui.statusbar.StatusBarIconView android:id="@id/moreIcon" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/stat_notify_more" />
Now you can just add any image you want, name it carrier_logo.png and place it in the /res/drawable-hdpi folder. (Though you probably want to confine the image size to something no larger than a WxH of around 100x45 pixels)
That's it.
Note: if you are using Apk Manager, when you recompile it and it asks if this is a system app and if you want to keep the files from the original apk that you did not modify, say yes to both. Then in the "keep" folder that is generated, delete "status_bar.xml" and make sure you also delete "resources.arsc"
If you want to change the carrier logo image later, you can just open up the SystemUI.apk with 7zip and replace the image with a different one (making sure to keep the same name). No further decompiling/recompiling is necessary. If you have a root file browser, you can just replace the image from your phone directly.
You can find copious amounts of carrier logo images here:
http://forum.xda-developers.com/showthread.php?t=1218876
Screenshot:
Status Bar Signal/Data Traffic Mod
This mod was also taken from a thread in RootzWiki. Read that thread for additional details:
http://rootzwiki.com/topic/19083-modzip-themer-status-bar-signaldata-traffic-mods-aokp-b40/
However, the mods posted there that were supposedly for AOKP b39/b40 would not work on my phone. Here is what I did that worked (using SystemUI from Chimera b2 ROM).
Decompile SystemUI.apk
Navigate to /res/layout/signal_cluster_view.xml
This is what mine looked like prior to making any changes:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.SignalClusterView android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:id="@id/wifi_combo" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-6.0dip">
<ImageView android:layout_gravity="center" android:id="@id/wifi_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="bottom|center" android:id="@id/wifi_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.policy.WifiText android:id="@id/wifi_signal_text" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</FrameLayout>
<FrameLayout android:id="@id/mobile_combo" android:layout_width="wrap_content" android:layout_height="fill_parent">
<ImageView android:layout_gravity="center" android:id="@id/mobile_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:id="@id/mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="bottom|right|center" android:id="@id/mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.policy.SignalText android:id="@id/signal_text" android:paddingLeft="8.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</FrameLayout>
</com.android.systemui.statusbar.SignalClusterView>
This is what the modified signal_cluster_view.xml looks like:
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.SignalClusterView android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<FrameLayout android:id="@id/wifi_combo" android:layout_width="wrap_content" android:layout_height="fill_parent" android:layout_marginRight="-6.0dip">
<ImageView android:layout_gravity="center" android:id="@id/wifi_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="bottom|center" android:id="@id/wifi_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.policy.WifiText android:id="@id/wifi_signal_text" android:paddingRight="8.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</FrameLayout>
<LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
<FrameLayout android:id="@id/mobile_combo" android:layout_width="wrap_content" android:layout_height="fill_parent">
<ImageView android:id="@id/mobile_type" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<ImageView android:layout_gravity="bottom|right|center" android:id="@id/mobile_inout" android:layout_width="wrap_content" android:layout_height="wrap_content" />
</FrameLayout>
<FrameLayout android:layout_width="wrap_content" android:layout_height="wrap_content">
<ImageView android:layout_gravity="center" android:id="@id/mobile_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<com.android.systemui.statusbar.policy.SignalText android:id="@id/signal_text" android:paddingLeft="8.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" />
</FrameLayout>
</LinearLayout>
</com.android.systemui.statusbar.SignalClusterView>
This mod then allowed me to modify the signal/traffic images to use the ribbon images you see in the screenshots above.
I've created a CWM flashable zip that has the SytemUI with the carrier logo mod and the data signal mod with the signal ribbons that you see above. Additionally it has the digital circle battery you see above as well as a barely modified framework-res.apk. The only thing I changed in the framework was the default_wallpaper.png and the background_holo_dark.png found in /res/drawable-nodpi. The second image is the default background used by many apps (ROM Manager, Root Explorer, Titanium Backup, etc) so now all the apps that use this image as the background will have the black hardwood wallpaper as a background. Example:
I can't attach the zip to the OP, but I attached the SystemUI.apk by itself that's in the zip.
Additional Note: Since these mods involve xml edits to the layouts, the mods cannot be used in a Theme Chooser theme (currently does not support layout edits) which is why I have made them separately here.
Also, I feel like it should not need to be said but just in case,
This is for CM9/AOKP based ROMs on the Skyrocket only. Do not use this if you are on stock, Sky ICS, or any other tw-based ROM.
Transparent Contacts.apk
I decided to learn how to compile from source and made a transparent Contacts.apk
It should work okay with a light home screen wallpaper, but was made for a darker wallpaper. The only thing that is bugging me that I have yet to figure how where to modify, is whenever you click on a contact or a group to bring up the detail view, the name at the top is in black text and difficult to read with a dark wallpaper. But, that's relatively minor and I'm happy with it so far so I'll go ahead and post it up.
NOTE: This was made from the latest AOKP repo (AOKP b40) for the Skyrocket and I cannot guarantee that it will work on other ROMs/devices.
You should be doing this anyways, but make sure to back up the Contacts.apk before pushing this one.
For this I had to build AOKP from source and used a vendor overlay to make the changes. Here's my overlay. The rest was just pulled straight from the AOKP repo:
https://github.com/M4570D0N/vendor_m4570d0n/tree/ics
Updates
Update 07/07/12:
Added Transparent Contacts.apk
Update 07/15/12:
Compiled a new Transparent Contacts.apk based on AOKP milestone 6
Fixed the dark text for contacts names and group names in the detail view of the People App
Fixed the grey opaque search bar in the People app so that it is now transparent as well.
*Note* This is intended for a darker background. You may not be able to read the text in some parts of the app very well with a white or very light wallpaper.
Update 07/20/12:
*Updated the Transparent Contacts.apk
*Reverted to the stock launcher/widget icons for Phone/People app
*Fixed the action bar tab in the People app so the focused tab is now a blue underline instead of white to match the action bar tabs in the Phone app.
*Made a few minor changes that I'm guessing most people problably won't notice. lol
*I made the contact shortcut widget translucent. I never use it so I forgot about that. I tested it out though and for some reason there is a giant half-white/half-blue star on top of the contact photo. I have no idea what that's about. I'm guessing it's been there on my previous builds as well but I never messed with the widget until now.
Actually, I found a thread or two mentioning this bug awhile back but I just noticed this while making this post so I haven't had a chance fully read up on it yet. I did find the source of the image though. I went into my framework-res.apk and it's either the rate_star_med_half_holo_dark.png or the rate_star_big_half_holo_dark.png. What's weird though is that in the GNex thread I saw mentioning it, it wasn't a half blue star but a solid blue star, but definitely the same issue and of that same group of stars in framework-res.
I thought I was going to be able to release an update to the theme today but I've had some setbacks and will have to see if I can get it ironed out this weekend. In the mean time, I made a stand alone theme for Apollo. I can't get Apollo to play well with the theme chooser, and even with this theme, the app has a bug, such that I can't make the action bar transparent (even if I have the background set to an image) so for the moment the tabs are just black until the Apollo dev people get it fixed.
Update 07/26/12:
- I forgot to add a couple images in the last update to the Contacts.apk so this is a very minor update to the Transparent Contacts that includes those images. Notably, the sms icon on the contact detail view and quickcontact view was dark grey and difficult to see w/ a dark wallpaper. Same with the up/down arrows and the "X" next to the text fields on the contact editor view
- Updated Theme Chooser Theme (post #2)
Update-2 07/26/12:
- made an xhdpi version that was confirmed to work on the Galaxy Note by MrDSL
Update 07/30/12:
- Made a new version of the transparent Mms.apk for CM9/AOKP using a new base Mms.apk w/ a few minor improvements.
- Made a transparent Mms.apk for JB/CM10 for hdpi and xhdpi. (includes emoji, soft keyboard picker, split mms, sms to mms)
Update 08/05/12
Added CM10 transparent Contacts.apk (hdpi)
Update 08/07/12
- Found a bug in the transparent contacts for CM10 (white background & text for contact detail view in landscape orientation). It has been fixed and a new d/l is up.
-Also added an xhdpi version of the CM10 transparent Contacts
Update 09/17/2012:
- new version of the transparent MMS for CM10, which includes support for quick reply and support for full theming via theme chooser
Downloads:
SystemUI w/ Data/Signal mod and Carrier logo mod (06/27):
http://d-h.st/4r2
Dark Minimal Apollo Theme (07/20):
http://d-h.st/LOn
AOKP/CM9 Transparent Mms.apk (hdpi) (07/29):
http://d-h.st/DSg
AOKP/CM9 Transparent Mms.apk (xhdpi) (07/29):
http://d-h.st/jVE
AOKP Milestone 6 Transparent Contacts (v3) (07/26):
http://d-h.st/ntR
AOKP Milestone 6 Transparent Contacts (xhdpi) (07/26):
http://d-h.st/jIl
CM10 Transparent Mms.apk (hdpi) (09/17):
http://d-h.st/yBj
CM10 Transparent Mms.apk (xhdpi) (07/30):
http://d-h.st/RXv
CM10 Transparent Contacts.apk (hdpi) (08/05):
http://d-h.st/x22
CM10 Transparent Contacts.apk (xhdpi) (08/05):
http://d-h.st/ae9
All previous downloads can be found here:
http://d-h.st/users/m4570d0n
more to come later....
Theme Chooser Theme:
This my theme chooser theme (tentatively titled "M4570M0D" for lack of motivation in originating a more creative name). It is still very much a WIP, but I figured I'd go ahead and post it up. For anyone that uses the new swype beta, I made a ICS outlined theme that is included in the theme. The theme was made assuming that the ROM already had the the Data signal mod so I'm not sure if it would cause any visual issues without it. Also I attempted to include a lot of the elements from the transparent mms.apk into the theme but was not sure if it would work and don't know what I would look like if just have a stock mms with this theme. Let me know and if it causes funky issues, I'll take that stuff out.
A few elements in the theme came from MrDSL/TeamBroccoli with the Mixer ICS and PCB themes, so if you like it make sure to give them thanks as well.
Here's a few screenshots:
Updates
Update 07/13/12:
Added about 100 or so app icons.
Fixed a few UI element issues.
Added dark dropbox theme
Icon preview:
Update 07/26/12
- Cleared out a lot of junk that wasn't necessary.
- Included icons previously not themed that required a modifed aapt to compile apks that contain files with uppercase letters in the file name. (TitaniumBackup, QuickPic, MissedIt!, Weather Channel app, and a few others) If anyone is interested, I provided a d/l link for the modified aapt. (Linux only)
- XHDPI is now mostly themed. I still need to add dropbox, swype and a couple other items for XHDPI
- switched to Crysis signal bars (see: any of seanz's Sky ICS threads if you don't know what this is)
- finally put the proper version numbering in the Manifest and decided to switch to 3 digits so instead of this update being v0.5 it is v0.0.5
- The status bar notification area pull down icon that I added in v0.4 is still there. It's just an icon I put there for my own personal use, and was mostly just to test how it would turn out. Don't know what I want to put there instead though as a more permanent icon. Any suggestions? (btw, if anyone is wondering, the overlapping T-A-S letters is the logo for the band The Acacia Strain)
- cleaned up various SystemUI/framework/settings images
Update 08/07/12
- Updated to v0.0.6
-added gmail theme
-added Dolphin theme (still a WIP. This app is stupid (from a theming standpoint))
- fixed some framework/systemUI images
- added more app icons (temple run, google navigation/translate/earth, the other imgur for android, evernote, gas buddy, and a few others)
- Okay here's the deal. I have changed the status bar icons such that you do not need to do the status bar data/signal mod anymore. However, the trade-off, is that when you are on wifi there is a gap where the mobile data icon would be between the wifi signal and the signal bars. I don't know any other way around this that does not involve editing layouts. Let me know what you think.
Update 09/16/12
- JB only (will probably break stuff if you're on ICS)
- removed gmail for now
- removed Dolphin Browser items. I may or may not attempt this later. This app is quite frustrating and annoying.
- transparent Contacts and Mms themes are now included in the theme chooser theme. However, you must be running a recent version of AOKP JB or CM10 that allows full theming of Contacts and Mms via theme chooser.
- added a few more icons
- removed some obsolete junk. I still need to do some more cleaning up though.
Update 10/02/12
- minor update. Most significant changes to dropbox
-finally got around to working on Dropbox. I looks so much better now
- added a couple icons
- cleaned up some settings/framework stuffs.
- I changed the backgrounds slightly for the conversation view for Mms to better distinguish the background between sender and receiver. Please let me know what you think with respect to the color. I was thinking I might just go with a darker shade of transparent black rather than blue, but I haven't decided yet.
Update 10/24/12
After almost a week and with much frustration, I have not been able to get the new Dropbox to theme without causing the app to FC when clicking on the new photo tab. If someone figures out how to do it I will bring it back but for the time being, I have removed dropbox-related items from the theme and created a separate themed Dropbox apk. It uses the default background_holo_dark image in framework-res as the background, so with the default system theme it will have the dark gradient background, and with my theme it will have the black hardwood background (like you would see in Settings).
The themed Dropbox apk is still somewhat of a WIP and I will finish up some possible changes and post an update.
Screenshots:
Downloads
M4570M0D v0.0.9 (10/24)
http://d-h.st/JWV
Inverted Dropbox v2.2 (10/24):
http://d-h.st/JQt
modified aapt:
ICS: http://d-h.st/6q5
JB: http://d-h.st/Onp (updated 10/03, but forgot to update link until 10/24)
Previous downloads/versions can be found here:
http://d-h.st/users/m4570d0n
That custom carrier logo option is awesome. Thanks for this!
Thanks for the mms mods!
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
Bootloop/Hang
I'm on AOKP Build 40 for Skyrocket. Flashing the Status Bar Signal/Data Traffic Mod let to a bootloop. I let it sit for a while. Battery pull did not resolve. Three buttoned back to recovery. Fixed permissions. Reflashed. Still a hang at "Android."
Definitely would love to see this mod work on my skyrocket.
Good job!!
I dont want to make seperate trans mms apps for xhdpi and hdpi..Would you mind making a trans mms app that includes all my Mixer images so I can share it with my users?
I could package the images up for you..Let me know.
scottx . said:
Thanks for the mms mods!
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
Click to expand...
Click to collapse
Your wallpaper... /me want!
hmmm new sms show up as just a white square in the list with the transparent mms app. Does this happen to anyone else?
crixley said:
hmmm new sms show up as just a white square in the list with the transparent mms app. Does this happen to anyone else?
Click to expand...
Click to collapse
whoops. yeah. In the most recent build I did of this, in /res/values/colors.xml I accidentally put:
<color name="unread_bgcolor">#ffffffff</color>
It should have been
<color name="unread_bgcolor">#50191919</color>
I gotta run to class but I'll upload a fixed version tonight when I get back.
Ashyford said:
I'm on AOKP Build 40 for Skyrocket. Flashing the Status Bar Signal/Data Traffic Mod let to a bootloop. I let it sit for a while. Battery pull did not resolve. Three buttoned back to recovery. Fixed permissions. Reflashed. Still a hang at "Android."
Definitely would love to see this mod work on my skyrocket.
Click to expand...
Click to collapse
You may have had a different xml layout. It seems as though this file has changed somewhat with every build. Did you get the b40 from aokp.co? If so I'll check it out tonight.
Edit: I took a look at the SytemUI.apk from AOKP b40 on aokp.co and the signal_cluster_view.xml is identical to the one I used to make the mod. Not sure why it would cause an issue. Did you wipe cache/dalvik beforehand?
m4570d0n said:
whoops. yeah. In the most recent build I did of this, in /res/values/colors.xml I accidentally put:
<color name="unread_bgcolor">#ffffffff</color>
It should have been
<color name="unread_bgcolor">#50191919</color>
I gotta run to class but I'll upload a fixed version tonight when I get back.
Click to expand...
Click to collapse
awesome man ty for the quick response
crixley said:
awesome man ty for the quick response
Click to expand...
Click to collapse
Updated link and Mms attached in OP.
rpr69 said:
Your wallpaper... /me want!
Click to expand...
Click to collapse
There you go. Two different versions too.
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
scottx . said:
There you go. Two different versions too.
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
Click to expand...
Click to collapse
Awesome, thanks, you rock! \m/ \m/
m4570d0n said:
You may have had a different xml layout. It seems as though this file has changed somewhat with every build. Did you get the b40 from aokp.co? If so I'll check it out tonight.
Edit: I took a look at the SytemUI.apk from AOKP b40 on aokp.co and the signal_cluster_view.xml is identical to the one I used to make the mod. Not sure why it would cause an issue. Did you wipe cache/dalvik beforehand?
Click to expand...
Click to collapse
Thanks for taking a look. I did obtain release 40 from aokp.co. I wiped the cache and dalvik and there was a hang at "android" on boot. I just tried again, same thing, unfortunately.
Ashyford said:
Thanks for taking a look. I did obtain release 40 from aokp.co. I wiped the cache and dalvik and there was a hang at "android" on boot. I just tried again, same thing, unfortunately.
Click to expand...
Click to collapse
hmmm. That's really odd. I haven't heard anyone else mention that they were having this issue.
I just noticed today that Average Android posted a new version in the Rootzwiki thread yesterday that supposedly should work for any ROM (assuming it does not have a modified signal_cluster_view.xml). Rather than do any xml edits he tried to replicate it with just png edits and creating them in such a way that they would align properly. I haven't checked it out yet. You could try that and see how it works since it's just png edits and does not require any compiling/decompiling. If not, I'll make another copy of the SystemUI with just that mod only and you can see if that works. Also, you could just push the SystemUI.apk to your /system/app folder with a root file browser rather than flashing it, and see if that makes a difference.
When I get a new SMS the color doesn't match. Its all white.
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
scottx . said:
When I get a new SMS the color doesn't match. Its all white.
Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
Click to expand...
Click to collapse
It was mentioned a couple posts up. I uploaded the fixed version and updated the OP with it last night.
m4570d0n said:
It was mentioned a couple posts up. I uploaded the fixed version and updated the OP with it last night.
Click to expand...
Click to collapse
Awesome!
m4570d0n said:
hmmm. That's really odd. I haven't heard anyone else mention that they were having this issue.
I just noticed today that Average Android posted a new version in the Rootzwiki thread yesterday that supposedly should work for any ROM (assuming it does not have a modified signal_cluster_view.xml). Rather than do any xml edits he tried to replicate it with just png edits and creating them in such a way that they would align properly. I haven't checked it out yet. You could try that and see how it works since it's just png edits and does not require any compiling/decompiling. If not, I'll make another copy of the SystemUI with just that mod only and you can see if that works. Also, you could just push the SystemUI.apk to your /system/app folder with a root file browser rather than flashing it, and see if that makes a difference.
Click to expand...
Click to collapse
Yeah, definitely weird.
I've also tried different clockwork recovery versions and I get the same hang. I doubt it makes a difference but I have disabled the boot animation. Maybe I should restore all the boot options, disable any tweaks, and see what happens.
I thought about pushing the systemUI.apk but figured it was best to wait to see if I was doing something wrong. I'll let you know.
Overall, a flashable zip with just the signal mod would be great if you had time - definitely not trying to make this a "driving Miss Daisy" situation. :-D
Sent from my SGH-I727 using XDA
Lennyuk said:
So it seems that only certain apps work with multi-screen and it is not just samsung apps.
Here I plan (with your help) to create a difinitive list of all apps that will work.
I have already noticed that some apps allow themselves to be splitscreened even when they do not appear in that list e.g. official twitter app.
Some apps you will find when you press the edit button, you can then drag them to the main list, or remove ones you do not use.
Samsung Apps
- ChatON
- Email
- Gallery
- Internet
- Messaging
- S-Note
- Video Player
Google Apps
- Chrome
- Gmail
- Maps
- Talk
- Youtube
Third Party Apps
- Facebook
- Official Twitter app
- Polaris (Viewer)
Note: you will need to be using Samsung stock keyboard to benefit from typing when on multi-screen mode, otherwise your keyboard will cover the entire bottom screen.
Click to expand...
Click to collapse
Here is all the info until now. Few days i go i received my new device N7100
Hello,
¡I just found some a nice surprise!
looking at running services, finally found that com.sec.android.app.FlashBarService its how control what app get listed in our whilelist apps to keep it on multiwindows.
XML info its saved at: /data/data/com.sec.android.app.FlashBarService\shared_prefs/flash_bar_list.xml
Code:
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<map>
<int name="com.sec.chaton.HomeActivity" value="1" />
<int name="com.google.android.apps.chrome.Main" value="2" />
<int name="com.android.email.activity.Welcome" value="3" />
<int name="com.sec.android.gallery3d.app.Gallery" value="4" />
<int name="com.facebook.katana.LoginActivity" value="5" />
<int name="com.google.android.gm.ConversationListActivityGmail" value="6" />
<int name="com.google.android.talk.SigningInActivity" value="7" />
<int name="com.android.browser.BrowserActivity" value="8" />
<int name="com.google.android.maps.MapsActivity" value="9" />
<int name="com.android.mms.ui.ConversationComposer" value="10" />
<int name="com.twitter.android.StartActivity" value="11" />
<int name="com.infraware.filemanager.FmFileTreeListActivity" value="12" />
<int name="com.sec.android.app.videoplayer.activity.MainTab" value="13" />
<int name="com.google.android.youtube.app.honeycomb.Shell$HomeActivity" value="14" />
<int name="NUM_APP_IN_FILE" value="15" />
<boolean name="FILE_SAVE" value="true" />
</map>
After deoxing flashbarservice and jar it ive got the clear sources! Thats whats im going to share here!
Our interesting right now its allow to give new apps in the whitelist, i tried to manage a few things, like dont allow write, not autosave, and adding by myself my some of this functions in FlashBarInfo.java must to be retouched.
I need some sleep maybe tomorrow finally i can bypass the filters!
Regards,
Kasha
Nice job
Today im back at home, after the missrate searching over the frameservice from the multiwindow, everytime cfg files are changed, instead no write permission or whatever so i think that we have more troubles doing on this part.
Searching for a while a found the first idea. Look at the SystemUI & framework!
SystemUI/com\android\systemui\multiwindow is our folder.
MultiWindowControlPanel.java
MultiWindowListPanel.java
MultiWindowReflector.java
RunningTasksLoader$1$1.java
RunningTasksLoader$1.java
RunningTasksLoader.java
SplitPanelView$1.java
SplitPanelView$2.java
SplitPanelView$3.java
SplitPanelView$4.java
SplitPanelView.java
Utilities.java
Click to expand...
Click to collapse
res\layout\status_bar_multi_window_arrange.xml
res\layout\status_bar_multi_window_list.xml
Click to expand...
Click to collapse
I found some interesting info about how the system reads and class our apps.
As I said on the previous thread in the general section:
After looking around a bit, I have collected enough info about this.
If I ever get a note 2 (which I'm thinking about), I am sure I can give the user the ability to add apps to the multiwindow bar. But only if .
Anyway, I honestly wish good luck to everyone trying this .
PS. has anyone tried adding a package name into the string array, inside arrays.xml?
for example, the package name of skype, add it in the bottom, install skype and see if it appears. (It should)
Click to expand...
Click to collapse
Man I wish I could help, but I don't even have my Note 2 yet, or well the knowledge of how to do it. I wish y'all the best of luck, I know this hack for multi-window will blow up once it's finally released in the US, Canada, etc. Thanks for the time.
adding apps to the list is as easy as adding a new package name to the arrays.xml in framework-res.apk
Paul o'Brien (Modaco) posted a pic on twitter yesterday as proof of concept, he had plume and a game, subway surfers, running in multi-screen.
What we really need now is to think of the best way to handle this so that we can easily have all the apps people would want in the list:
1) one way would be to make a list of apps people use and build one giant xml list, this is not ideal but would work.
2) another way would be to have some sort of app to rebuild the xml file based on your installed apps at that time
3) the best way will be to remove the check itself completely, or point the check somewhere else so we can make a local list say on the sd card.
I hope so bad, that someone can manage it. Would be awesome and it doesn't seem to be much complicated.
Well I did just toy with the idea of making a quick dirty VRTheme update.zip to change the xml file to a new list of pre-defined items.
Then I remembered that the xml we need to edit is in /res/values/arrays.xml
VRTheme cannot update /values/ files as the apk needs to be decompiled and recompiled to edit these, no one has come up with a way to do this via an update-script yet.
So that quick fix is out the window.
Lennyuk said:
Well I did just toy with the idea of making a quick dirty VRTheme update.zip to change the xml file to a new list of pre-defined items.
Then I remembered that the xml we need to edit is in /res/values/arrays.xml
VRTheme cannot update /values/ files as the apk needs to be decompiled and recompiled to edit these, no one has come up with a way to do this via an update-script yet.
So that quick fix is out the window.
Click to expand...
Click to collapse
i dont know about VRTHEME, but in alliance ROM using ROm customizer app, one can flash the theme with *.xml files as well
I'm reading this thread and I can't wait to dive into dalvik and try to hack this.
Tonight I am getting my note 2, and I hope to learn lots by exploring this hack.
Have messed around with XMLs and decompile/recompile, also some dalvik but not much.
Paul O'Brien has managed to allow all apps to be shown, not sure what he has done yet to allow this, he said its not finished so we won't know for sure until he is happy with it and releases it, but is certainly a positive start.
grgsiocl said:
i dont know about VRTHEME, but in alliance ROM using ROm customizer app, one can flash the theme with *.xml files as well
Click to expand...
Click to collapse
APK's generally have lots of xml files, some are editable and visible if you just open the apk up as if it was a .zip, these can be changed by the methods there are availiable to do via update.zip (VRTheme or people who have since copied this idea).
some of them are hidden until you decompile the app these are generally the files in /values/.
In the case here the xml we want to edit is in /values/ so there is no existing way an update.zip could edit these.
Hi guys.I will try and help.dont have anytime on my hands these days..very slow internet as my dorms use wireless connection.I have stopped a few other mods on the Note II for about a week now including a rom i was going to upload..
Tonight i will sit down and have a look at whats given in this thread and i can try and update the list with the most popular apps around,and maybe compile a simple app in C++ that can simply add apps to the xml list without you having to open it .well will see.
I have made a new framework-res.apk with a handful of apps that I use (no games, not much point).
I will make it into an update.zip and upload it soon.
this is not a perfect fix as obviously you will only have the apps I added to the list but it might keep some of you going until we get a real fix
Look out for some pretty major news from Modaco later about this split-screen feature too
Lennyuk said:
Look out for some pretty major news from Modaco later about this split-screen feature too
Click to expand...
Click to collapse
Where can we follow modaco?
My mod is here - http://forum.xda-developers.com/showthread.php?t=1939780
You can follow modaco at Modaco.com or on twitter @paulobrien and @modaco
Lennyuk said:
I have made a new framework-res.apk with a handful of apps that I use (no games, not much point).
I will make it into an update.zip and upload it soon.
this is not a perfect fix as obviously you will only have the apps I added to the list but it might keep some of you going until we get a real fix
Click to expand...
Click to collapse
Hope its got xda app most used here probably ...thx
Sent from my GT-N7100 using xda premium
stesteste said:
Hope its got xda app most used here probably ...thx
Sent from my GT-N7100 using xda premium
Click to expand...
Click to collapse
sorry, I forgot about that, I added tapatalk but not xda's version
The purpose of this guide is to show you how to hide the status bar and still be able to swipe it down.
I've tested this guide on CYANOGENMOD10.1 with my galaxy nexus and everything works perfectly.
Tested and working on: cm10, cm10.1, paranoid android. Not tested but should work on: aokp and aosp roms.
On miui roms, it should be ok with some differences (watch here)
It should work also on other custom roms. I don't know if will work on htc,sony based roms (if you manage to make it working, please report).
If you are on a samsung based rom read the guide and also watch here
Some users reported that it works on ics too.
I don't know if this is going to work for tablets too (since they have the notification area and the buttons in the same bar).
I'm not a themer, i had to flash almost 50zips to make everything work.
what i mean is that if you will have problems, i might not be able to help you (especially with smali files).
If you are looking only for a transparent status bar watch HERE.
I made a short video to show you what this mod is about.
We will be using apktool, if you don't know how to use it, check HERE.
If you are having problems with apktool on ubuntu, THIS might help you.
How does it work:the status bar will still be there. it will be fully transparent, a bit smaller and it will not have anymore the reserved top space
it might look difficult, but you will only have to modify a few lines of code
--------------------------------------------------------------------------------------STEPS--------------------------------------------------------------------------------------
download your rom and extract SystemUI.apk and framework-res.apk
open the terminal/cmd (you will NEVER close it during the procedure) in the folder where you unpacked systemui and framework-res and type
Code:
apktool if framework-res.apk
Code:
apktool d framework-res.apk
this will create a framework-res folder.
open framework-res/res/values/dimens.xml and replace the line
Code:
<dimen name="status_bar_height">25.0dip</dimen>
with
Code:
<dimen name="status_bar_height">6.0dip</dimen>
you can choose a value between 1dip and 10dip (i suggest 2 to 5 dip). I personally use 2dip. If you can't swipe it down after the flash try with 10dip.
EDIT: if you want also a 0dip navbar modify the 3 lines below this one
save the file and close it
type in the terminal/cmd
Code:
apktool d SystemUI.apk
this will create a SystemUI folder
open SystemUI/res/values/drawables.xml and replace the line
Code:
<item type="drawable" name="status_bar_background">#ff000000</item>
with
Code:
<item type="drawable" name="status_bar_background">#00000000</item>
save and close
open SystemUI/res/layout/super_status_bar.xml and replace
Code:
<com.android.systemui.statusbar.phone.StatusBarWindowView android:background="@*android:color/transparent" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
with
Code:
<com.android.systemui.statusbar.phone.StatusBarWindowView android:background="#00000000" android:focusable="true" android:fitsSystemWindows="true" android:descendantFocusability="afterDescendants"
save and close
open SystemUI/res/layout/status_bar.xml and replace
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent">
with
Code:
<LinearLayout android:orientation="horizontal" android:id="@id/status_bar_contents" android:paddingLeft="6.0dip" android:paddingRight="6.0dip" android:layout_width="0.0dip" android:layout_height="0.0dip">
then
Code:
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="@dimen/status_bar_icon_size" android:layout_marginRight="4.0dip">
with
Code:
<ImageSwitcher android:id="@id/tickerIcon" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_marginRight="4.0dip">
and then
Code:
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="wrap_content" android:layout_weight="1.0">
with
Code:
<com.android.systemui.statusbar.phone.TickerView android:id="@id/tickerText" android:paddingTop="2.0dip" android:paddingRight="10.0dip" android:layout_width="0.0dip" android:layout_height="0.0dip" android:layout_weight="1.0">
save and close
now open SystemUI/smali/com/android/systemui/statusbar/phone/PhoneStatusBar.smali
and search for
Code:
invoke-direct/range {v0 .. v5}, Landroid/view/WindowManager$LayoutParams;-><init>(IIIII)V
you will have 3 matches, the correct line should be right after
Code:
const/16 v3, 0x7d0
const v4, 0x800048
const/4 v5, -0x3
you have to replace
Code:
const/16 v3, 0x7d0
with
Code:
const/16 v3, 0x7d1
(with this change the status bar will not have anymore the reserved top space)
save and close
now you can recompile framework-res and systemui typing in the terminal/cmd
Code:
apktool b framework-res framework-res.apk
Code:
apktool b SystemUI SystemUI.apk
make a flashable zip with this 2 files (if you have problems flashing or when you reboot nothing has changed, use my zip attached below).
--------------------------------------------------------------------------------------DONE--------------------------------------------------------------------------------------
to revert back just flash the stock systemui and framework-res of your rom
You will have only one "bug", you will not to able to expand the status bar in the lockscreen.
If you are a themer and you know how to fix this, you are welcome.
You will avoid this bug using a lockscreen app like widgetlocker.
I use this mod along with notifier pro, a very useful app.
thank you for reading my guide
Re: [GUIDE] Hide Status Bar and still being able to expand it on CM10.1
Really nice, I will use this when 10.1 comes to my device
By the way, you made an error in your first sentence. It should say status bar instead of navbar.
thanks for the correction.
i checked and it works also on cm10.
i will update the title of the first post
Thanks for the guide, this helps me use the Sony Xperia launcher on CY10.1.............
very good tutorial. easy to understand and easy to do
worked fine. My Statusbar disappeared... But I can't swipe it Down
Any idea?^^
edit: i'm using Cm 10.1-20120121-NIGHTLY-i9300 and Next launcher 3D
halliba said:
very good tutorial. easy to understand and easy to do
worked fine. My Statusbar disappeared... But I can't swipe it Down
Any idea?^^
edit: i'm using Cm 10.1-20120121-NIGHTLY-i9300 and Next launcher 3D
Click to expand...
Click to collapse
Uhm, maybe you should set an higher status_bar_height? Try with 10dip.
Or you can even leave it to 25dip and test it to see if the problem is the small swipable area
enryea123 said:
Uhm, maybe you should set an higher status_bar_height? Try with 10dip.
Or you can even leave it to 25dip and test it to see if the problem is the small swipable area
Click to expand...
Click to collapse
works fine now. thanks
You're welcome
Why not add as an optional feature for cm10.1? It would be interesting to do it in full screen app slide down once for low to show the status bar and once again to open the notifications bar like this http://www.youtube.com/watch?v=ek-hq-lD1lw
Does this make it to where you can only swipe from a small area? because I use a setting in CM 10.1 to swipe down on the quicksetting already when you pull down from the right corner. I love that.
Does Apktool even work on Windows 8, I'm wanting to do this, but not quite prepared.
Another thought, Is there any way to do this only on the home screen? That's the only place it really really bothers me.
Also, You Signature is priceless.
I don't know anything about smali, is there any way to edit this from source ?
lukakas said:
Why not add as an optional feature for cm10.1? It would be interesting to do it in full screen app slide down once for low to show the status bar and once again to open the notifications bar like this http://www.youtube.com/watch?v=ek-hq-lD1lw
Click to expand...
Click to collapse
i would totally love that feature too, unfortunatly i'm absolutely not capable of doing it.
Edit: i think that it is not system wide. But just a launcher feature
Can't_Live_Without_My_Evo said:
Does this make it to where you can only swipe from a small area? because I use a setting in CM 10.1 to swipe down on the quicksetting already when you pull down from the right corner. I love that.
Does Apktool even work on Windows 8, I'm wanting to do this, but not quite prepared.
Another thought, Is there any way to do this only on the home screen? That's the only place it really really bothers me.
Also, You Signature is priceless.
Click to expand...
Click to collapse
yes it is 100% like if you have the status bar, if fact with this trick you will just make it absolutely trasparent (and a bit smaller). so you can swipe everywhere, swipe to the right to access quick toggles and double swipe to access quick toggles.
I can't tell you about windows 8 because i'm using linux, but it should be ok. I did not hear people complaining about apktool not working on W8.
About the homescreen, this trick works systemwide, so you should maybe try an alternative launcher (like apex) which allows to hide the status bar with a gesture
ahah i found my signature here
by the way: You know you are rooted when your up till 1.00am, looking on xda rather than watching porn
AnakTeKa said:
I don't know anything about smali, is there any way to edit this from source ?
Click to expand...
Click to collapse
i don't know anything about smali too , yes it is possible to do it from source but it would be more difficult. Morover to compile a cyanogenmod rom from source it took me 55 minutes (i have 12GB or ram and an intel i7 950)
Re: [GUIDE] Hide Status Bar and still being able to expand it on CM10/CM10.1
Hey, just wanted to let you know, this guide came up on xda news, and even Talk Android (or android talk, I don't remember ) congrats!
Sent from my Galaxy Nexus using xda premium
SahilC said:
Hey, just wanted to let you know, this guide came up on xda news, and even Talk Android (or android talk, I don't remember ) congrats!
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
thank you for reporting
Flashable zip for Galaxy R
Created a flashable zip for CM 10.1 (only for Galaxy R) to apply & revert this "Hide status bar" hack.
http://forum.xda-developers.com/showpost.php?p=37531377&postcount=1233
Thank you for this!Is there anyway you could tell me how do you just make the status bar transparent, with it still showing? Any ideas?All guides I've tried do not work on CM, systemUI just crashes with it.
Steam. said:
Thank you for this!Is there anyway you could tell me how do you just make the status bar transparent, with it still showing? Any ideas?All guides I've tried do not work on CM, systemUI just crashes with it.
Click to expand...
Click to collapse
I second this, I'd much rather have it transparent than gone.
I got the app notifier Pro though, Which is really polished and nice, I'm gonna do this procedure later on.
at the moment i'm not able to make an only transparent status bar (yea that's weird) but i'm working on it and i'll post a tutorial as soon as possible
Much like the new Sense status bar behaves would be amazing. It's just a regular status bar that's completely transparent behind it, but when you swipe down the drawer comes in from the very top as if it was normal, then completely hides away in the top edge but still has all the icons and time and everything there. It actually looks and works really nice! But it isn't AOSP
different way
i know another way to disable statusbar and expand it while it is hiding. firstly you should have a kind of rom that can apply expanded desktop feature then install an app which is called smart statusbar found in play store. that's all. thank you for your sharing btw
So Sense 6 is finally here, and it brings with it another round of the cat and mouse game that HTC loves to play with XDA themers.
Veteran HTC themers will know that each version of Sense brings new challenges, and sadly Sense 6 is no exception. I had made a bunch of reference guides for Sense 5.5, but other than sending out the Dropbox link, never got around to doing much with them.
I figured this time I'd hit the ground running and create a central thread where we could all share what we've found, rather than scattered posts in various mod/theme/rom threads. The aim of this thread is to create a place to share our findings, rather than all trying to overcome Sense 6's idiosyncrasies individually. As such, it is not intended to be a How-to theme guide. Most of the information posted here will assume at least a basic knowledge of theming, xml editing and apk manipulation. There are lots of such guides already available on XDA, and are easily found with little effort. However, I have added a couple of links to the bottom of this post to get you started.
Please feel free to add any theming stuff you find while exploring Sense 6, requests for help etc. Pictures of your themes/mods are welcome, provided you are also explaining how you did them if the info isn't already posted in the thread.
INDEX
Post 2: General tips, pointers and observations
Working with Sense 6
Troublesome apks
Frameworks and tags
Public id's
Post 3: fisha21's Guide to HTC's built in themes
Sense 6 themes
What are they
Where are they
How to change them
How to add new themes
How to stop the 4x1 weather clock changing colour according to time of day
Post 4: Fringe theming - hosted by @Pneuma1985
Internalizing color in htcclockweatherwidget.apk & Inverting 4x1 clock
Change small / large weather icons to white in smali
Change the vertical divider in 4x1 clock to an image that can be themed
Removing the SystemUI notification drawer bg fade in/fade out..
Changing fonts selectively in any apps not causing a global change
Animate the status_bar_close_on and keep the carrier label at the same time
Add Operator_name to statusbar
Move signal_cluster to the left
Turn on spinning 3g icon in stock SystemUI
Post 5: Theming on the razor's edge - hosted by Raymond Ebertt
Transparent Prism Appdrawer Background
Custom Panels for the WeatherClockWidget.apk
Inverting Issues
Inverting Data Usage Background
Inverting Weather.apk Backgrounds
Background in Browser.apk when Navigating Tabs
Pop-up Window on HTC_IME - Word Correction
Theme controlled fontcolors - thanks @ineedone and @PuNkA.YaNoU
Change which weather icons sets are used for day and night clocks - thanks @2WildFirE
HTC app buttons - thanks @ineedone
Ok / cancel buttons in HTC apps - thanks @ViNOK16Bit
Entry field background in pop up Contact card - thanks @ineedone
Middle white box behind Phone, Message etc icons on pop up Contact card (when clicking on Contact's thumbnail in Phone, Messages, Mail etc (see screenshot for Entry field background) - thanks @Basil3
Remove On / Off labels from HTC settings toggles - thanks @ineedone
Moving signal cluster to lefthand side of statusbar - thanks @Pneuma1985
SIM PIN lock entry field in Settings - thanks @Onepagebook
Icon PSD's for HTC apps - thanks @Pfaffinator (the icon king!)
How to remove coloured overlays from Settings page icons - thanks @Basil3
HTC mini+ launch screen
Inverting the background for the Send SMS window you get, after declining a call - thanks @billbowers
Changing the colour of tab number in Browser - thanks @PuNkA.YaNoU
"Release to refresh" text colour (screenshot in post) - thanks @PuNkA.YaNoU
"Accounts and folders" header in HTC Mail app (screenshot in post) - thanks @PuNkA.YaNoU
Blinkfeed side menu issues with newer versions of Blinkfeed - thanks @Basil3 and @Raymond Ebertt
Redirect app drawer Playstore icon to within Prism.apk - thanks @[email protected]
Full-screen caller contact photo - thanks @Kiray1982
USEFUL RESOURCES FOR BEGINNERS
List of useful guides etc compiled by superthemer @pstevep - the parent thread is also well worth a read. Although some of the stuff refers to older versions of Sense, there are still some hugely useful tips and techniques in there. Of course I'm a little biased, since his thread was what inspired me to make this one
[GUIDE] Want to learn how to theme? - by @theimpaler747
VTS website - there are several tools you can use for apk/jar manipulation, but in my experience this is by far the most complete. The VTS website also has a bunch of tutorials on how to get started with VTS, and also how to get started with apk manipulation in general
Official Android developers' website
THINGS THAT STILL NEED FINDING
General tips
Working with Sense 6
By now people have found that Sense 6 apks are a little troublesome and it takes a bit of effort to decompile/recompile some of them. The main thing, as Raymond Ebertt stated in his post, is to make sure you are using the most up to date files. There is some conflict about which version of apktool to use, 1.4.2 or 2.0.0. It is complicated by the fact that the public release version of VTS doesn't yet work with apktool 2.0. Either version of apktool will work fine, but both might require a little tinkering with the apk. Now that the new version of VTS is out, it makes things a lot simpler, since apktool 2.x is now supported.
Those people using manual apktool, I would suggest making sure you use apktool 2.0.0beta9 - that's worked me for me where earlier versions of 2.0 failed.
As for smali, I have been using 2.0.3 since Sense 6 dropped, and not had any issues with that.
If you're using VTS, you need to put the updated binaries in the appropriate folders in C:\Program Files (or Program Files(x86))\Virtuous Ten Studio\External. The newest version of VTS ships with apktool 1.4.2 and 2.0beta9, and smali 1.5.2 and 2.0.3, so you shouldn't need to add any additional binaries.
There are also a few special-case apks:
Troublesome apks
You may have found that there are some apks that give you public.xml errors on trying to recompile them. The cause seems to be some broken images in the apk itself, and seem to affect the images used in the Sense 6 themes. You can see which ones they are by opening the apk as a zip archive and looking in the drawable-*dpi folders - the broken images all have a filesize of 0bytes.
The easiest way to fix this is to replace those images in the apk before decompiling it. Once you've done this, the apk should recompile without the above errors.
You can get all the required files from com.htc.resources.apk, but to make things a bit easier, I have zipped up the required files for most of the faulty apks.
You can download them here
Note that these zips contain compiled 9.pngs, so you need to copy them into the apk before decompiling - they won't work properly if you put them into an already decompiled project.
If there are any problems with the zips, please let me know.
If your apk still fails to compile, just double check all the drawable-*dpi folders and make sure there are no 0byte images. If there aren't, then there is another issue with your project.
========
Phone.apk. This app often fails to compile due to some issues with strings.xml. Basically, there is a special character (٪) that gets replaced with a normal % on decompiling.
You have 2 options to fix this:
1. use the error log to identify which symbols need replacing (the log will tell you which xml, and which line, needs fixing)
2. grab the fixed files I added to the folder I linked above - these are decompiled files, so will need to be placed into your decompiled apk
========
There is another reason I've found for some apks not to compile. Some of the apks, eg Messages, have issues with apktool 2.0 whereby the package name of the apk gets altered.
If you get an error saying that it could not find resources for package com.htc, you need to check the AndroidManifest.xml - you'll find that package name has been changed to com.htc.
Two ways to deal with this - either re-edit the package name to the original (which can usually be found somewhere further down in the AndroidManifest.xml, or use apktool 1.4.2 to de/recompile the apk. Thanks to @hawknest for pointing out the cause of this one.
Frameworks and tags
Just a short note on frameworks, since many people seem to misunderstand them. When you install a framework, the resources.arsc is taken out of the file and put inside an .apk file in your C\:<User>\apktool\framework folder, where it essentially acts as a look up table for decoding the resources inside any given apk. By default, framework-res gets installed as 1.apk, com.htc.resources as 2.apk. Go take a look in your installed framework folder, you'll see what I mean.
The reason you need to install frameworks for each Android distro you're using is precisely because of their function as a look up table. Let's say you install AOSP frameworks - great, you can now decompile AOSP apks just fine. But what if you're using a MIUI rom, or Sense, or Touchwiz? These distro variants all contain resources that the stock Android doesn't and so when you try to decompile a Sense apk that has non-standard resources within, the AOSP frameworks will fail. Ok, no problem, install the Sense rom frameworks instead and it'll work just fine. Problem is, when you installed the Sense frameworks they overwrote the AOSP ones. So now, if you want to go to use an AOSP apk, you first need to reinstall those frameworks again. What a pain, right?
This is where tags come in. If you install the frameworks using a tag specific to the Android distro, in the apktool/framework folder you'd see 1-aosp.apk, 1-sense.apk, 1-miui.apk etc. Now, when you're decompiling apks from a particular distro, just use the tag you assigned the frameworks to let apktool know which set of frameworks to use. This way, you can have frameworks for multiple distros installed at the same time.
Just to clarify, all the frameworks from a given distro need to have the same tag. So, for example, your installed frameworks from AOSP would be called 1-AOSP.apk, 2-AOSP.apk, 127-AOSP.apk etc. When you decompile using a tag, you're telling apktool to use all the frameworks with that tag as reference tables for the decompile. If all your frameworks from one distro have different tags, apktool won't find all the references it needs, and you'll get an error about missing resources and a failed decompile.
As for when you need to install frameworks - as I said, the purpose of installing them is to provide a lookup table for decompiling resources. So you really only need a set of frameworks when you're working with something that's likely to have unique resources. This will either be when dealing with different distros - AOSP, MIUI, Sense etc - or when there has been a version change - 4.3 to 4.4, or Sense 5 to Sense 6 etc. If you're working with a Sense 6 build of one rom, say Renovate, and you want to decompile an apk from InsertCoin, you can use the same frameworks for both, since they are both based on Sense 6, and we rarely tend to add new resources to framework files.
Public id's
Public id's are how smali code call on a particular resource. Public.xml lists all the public ids for every resource contained within a particular apk. Pretty much all apks use a public id format of 0x7fxxxxxx, which means that the resource attached to that id can only be used by the apk it is contained in. So, if for example, you're looking in smali and you see the id 0x7f100000. You search public.xml and you see that 0x7f100000 is allocated to type="string" name="app_label". So you know that that bit of smali code is setting the app label. This can also work the other way round - say you have an image and you want to find the smali code that draws it on screen. Find the name of that image and look it up in public.xml. Say it has an id of 0x7f000010. So you just search all the smali for that reference and have a look at the resulting files.
This is true for all apks in HTC roms except for three. Since com.htc.resources.apk, framework-res.apk and framework-res-htc.apk act as central repositories of resources for other apps to use, they each have their own unique public ids so system apps know which one to call a resource from.
Code:
framework-res = 0x01xxxxxx
com.htc.resources = 0x02xxxxxx
framework-res-htc=0x03xxxxxx
So, next time you're looking in smali and you see an external reference with one of the above 3 formats, you'll know exactly which framework apk to look in
Note: the formats shown above are how they appear in the decompiled public.xml of that apk. When other apps call these public ids in smali, the first 0 after the x is dropped.
For example, say the clock widget wants to use an image from com.htc.resources. In com.htc.resources/public.xml, that image might have the public id 0x02000001. But in the clock widget smali where that image is called, the public id would be given as 0x2000001.
What are the Sense 6 themes?
This is the easy bit! If you open Settings/Personalise/Theme, you'll be presented with the four built-in themes:
{
"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"
}
Where are the Sense 6 themes?
This is where things get complicated.
There are four themes, each of which is split into five categories. The themes are called:
The system wide theme is controlled by hex colour codes located in colors.xml and styles.xml of com.htc.resources. This controls the majority of system apps.
If you look at com.htc.resources.apk/styles.xml line 2047 for example, you'll see that there are entries called:
Code:
etc, starting from line 2047
Categories 1-4 are represented by the four boxes along the top of the theme preview. The fifth category is defined by HTC within apks as Category 0, and this is the default category. It is used when the code within the apk doesn't specify which category to use (more on this later). With the default theme, you'll probably have noticed that various HTC apps have different coloured header bars, which correspond to the four boxes on the preview image:
So if you wanted to change the colour of the dialer, you'd edit the colour codes for HtcDeviceDefault.CategoryOne. If you were using the second theme, the orange one, you'd edit ThemeOne.CategoryOne to change dialer header, and so on...
I've managed to track down which category each HTC app uses, but if there are any I'm missing, please let me know
Category 0
HTC Backup
Internet
Settings
Setup
Tips & Help
Scribble
All apps launched while in Car mode
Category 1
Calendar
Contacts
Mail
Message
Tasks
Phone
Category 2
Calculator
Clock
Stocks
Voice recorder
Weather
Category 3
Camera
FM radio
Music
Category 4
Didn't actually find any apps that seemed to use this category
All of these apps use the specified category from com.htc.resources, so that's where you should edit it. There are some HTC apps that have seem to have their own internal themes:
Prism.apk
HMS_Gallery.apk
HTC-IME.apk
Video_Center.apk
HtcExtremePowerSaverLauncher.apk
EasyAccessService.apk
so they have their own specified themes and categories within the colors and styles.xml of their own apk. There may be other apks as well, I just haven't spotted them yet. They read the system flag to determine which Theme to use, but then use their own categories for various elements within the app.
So Prism for example will set the overall Theme according to what's been set in the Theme picker but then will use its own internal categories. From my testing so far, all aspects of Prism (app drawer header, Blinkfeed, app drawer icon overlay) seem to use Category 4 colours from within Prism.apk. Haven't looked into any of the other apps listed above!
How are the Sense 6 themes used?
So, which theme the system is using is determined by you, via the Theme Picker. As for which category an app uses, that is determined within the java code - thanks to @Mikanoshi for some more detailed info
Still not sure where the current theme flag is set, so that the other themed apps (Gallery, Prism etc) know which theme to use. I'm guessing framework2.jar or framework3.jar, though I guess it doesn't really matter!
As for the preview images, these are generated the first time the theme picker is opened, and then cached in /data/data/com.htc.home.personalize/files/themePreview/ - again, thanks to @Mikanoshi for more detailed info. The colour bar across the top of the previw image is the multiply_color from categories 1-4 of that theme.
If you want the Theme picker screen to show your edited themes, rather than the default ones, you'll need to delete these cached images. This can be done by full wiping, but obviously not so convenient. The other option is to add the following line
Code:
delete_recursive("/data/data/com.htc.home.personalize/files/themePreview");
somewhere in the updater-script of your rom/theme zip.
How to add a new theme
The four built in themes offer a great way to offer multiple variations of your theme. But what if 4 options aren't enough? Why not add a 5th?
To add your own theme, it's probably easiest to start with com.htc.resources as this requires the most edits. The two folders you'll need to focus on are drawable and values.
In values/styles.xml, the easiest thing to do will be to duplicate the whole block of Theme.Three entries, rename them all to Theme.Four and change the colours as you want them. You'll also need to duplicate all the htcprogress_themethree_*.xmls in the drawable folder, rename them to themefour and edit the colours,
The last step is to edit values/arrays.xmls. This will register your new theme as a usable resource. You need to
add your new theme to the multipleColorThemes array - this tells the system that ThemeFour now exists
add a new ThemeFourarray, which lists the 5 categories -
add a 5th entry to the wallpapersand wallpaper_themesarrays - this will set the default wallpaper for your theme (you can also edit this array if you want our default wallpapers to have a different filename or file type)
create new progressBarArrayarrays for ThemeFour and the four categories
If in doubt, just look for all the ThemeThree stuff, duplicate it and rename to ThemeFour. That's com.htc.resources done. Now you just need to add the ThemeFour stuff to the other 6 apps that use the theme system (see previous list). In each apk, you need to edit arrays.xml, add all the new htcprogress_themefour_*.xmls to the drawable folder, and the new ThemeFour stuff to styles.xml. If you don't add ThemeFour to an app, if you've applied your theme centrally and then open that app, the app will default to the stock green theme.
And that's it! Wipe the theme preview cache as previously mentioned, and your theme will show up nicely. Not sure if there is a limit to the number of new themes that can be added...maybe it just depends on how bored you get
There is one small issue that remains. As previously mentioned, the colour bar across the top of the preview is generated by the multiply_color entries of categories 1-4. However, for your new theme, you'll note that the colour bar remains green. Since the themes always revert to the green one when there is missing info relating to the new theme, I suspect there must be a smali array somewhere where the themes are also registered. Since the new theme is not declared there, the preview generator doesn't know to look for ThemeFour.
It is the only remaining bug, but it does annoy me! So if anyone finds where in smali these preview colours are generated, please do let me know!!
Well, that's all for now. Apologies for the slightly wordy post, a consequence of me thinking out loud. I will say one more thing though. When Sense 6 first landed, I was not a fan of these new themes at all. But having spent time exploring and getting to know how they work, I actually really like them now. Overall, theming Sense 6 requires less smali edits than Sense 5/5.5 did, and the theme picker aspect is actually quite powerful....how else could you offer 4 variants of a theme so easily. I suspect that it's better for themers like myself, who theme specific roms, than it is for standalone themers.
Happy theming!!
Article originally posted here
How to stop the 4x1 weather clock changing colour according to time of day
In Sense 6 the 4x1 weather clock widget has a white background for daytime clocks, and dark for night clocks. Pretty neat feature, but maybe it doesn't fit with a theme you're making?
If you open
Code:
HtcWeatherClockWidget.apk/smali/com/htc/widget/weatherclock/view/WeatherClock4x1View.smali
and search for
Code:
.method protected getControls
Scroll down and you'll see
Code:
const-string v2, "background_day"
const v3, 0x7f02004d
The 0x7f02004d is the public id for common_panel_light.9.png in the drawable-xxhdpi folder. Scroll a bit further down and you'll see
Code:
const-string v2, "background_night"
const v3, 0x2080100
The 0x2080100 is the public id for common_panel.9.png in com.htc.resources. If you want to use the same image for both day and night clocks, just replace 0x2080100 with 0x7f02004d, and the clock will use the common_panel_light.9.png image for both day and night clocks. Just theme that image how you want it to look, recompile and you're done
Fringe Theming...
Ok Since fisha is so awesome and got me a spot for number 4 I will be adding to this as we progress and figure other stuff out enjoy for now!
My Tutorials are not limited to any app or by anything! I will cover how do some crazy complex theming and I will try to be as cohesive as I possibly can, within the tutorials. My main goals are usually against the grain as far as theming goes: This is stuff you won't see in other sense themes! Enjoy
Updated all links so they properly work for everyone.
Internalizing color in htcclockweatherwidget.apk & Inverting 4x1 clock
No longer applies to the updated ota.
____________________________________________________________________________________________________________________
Change small weather icons to white in smali
Oh someone forgot to point out how to change the weather icon for the small weather widget
weatherview.smali line 77 if you have smali debugging turned on/ may be slightly different if you don't, possibly a few lines away.
Change both to dark.
Small Weather Icons:
Change large weather icons to white in smali
Yeah props to whoever found this not sure who but I'll add it to this as well.
goto: WeatherClock4x1View.smali
search for vectorgraphic_light_xl
change them both to vectorgraphic_dark_xl
Large Weather Icons:
____________________________________________________________________________________________________________________
Change the vertical divider in 4x1 clock to an image that can be themed, never using com.htc.resources calls to do it.
No longer applies to the recent versions of sense 6
____________________________________________________________________________________________________________________
____________________________________________________________________________________________________________________
Removing the SystemUI notification drawer bg fade in/fade out..
Ok guys I got another one i just figured out... If anyone figures out how to edit the transparency of the fade itself that would be awesome...
I tried but the only thing i could get it to do without crashing was removing it.
The main purpose of this is to expose the statusbar all the time which is only possible when disabling this animated smali fade method.
Any other questions about the ui feel free to ask.
In SystemUI.apk you'll be looking in PhoneStatusBarView.smali
Search for this:
Code:
.method public panelExpansionChanged
Delete that entire method from lines 581-875 (lines will match) - if you have smali debugging turned on which I always do when playing in smali enjoy.
____________________________________________________________________________________________________________________
____________________________________________________________________________________________________________________
CHANGING FONTS SELECTIVELY IN ANY APP NOT CAUSING A GLOBAL CHANGE
This tutorial is somewhat complex and not for the faint at heart!
Oh and I'm not responsible if you bootloop your phone from this; symlinking the wrong things can cause bootloops. So please pay close attention. And look at my .zip which I will be adding!
This is not a font pack or anything like that! There is only one other person we know has been able to do this @Ajthescot for NEVER telling us, lol no need though after a year of tinkering I figured it out.
Ok this is a special tutorial for the SystemUI, but can work anywhere in any app. I'm going to go over one of the most epic changes I have ever managed to accomplish. I managed to change a selective font that htc does not use, then call on its class/font-family within styles. Look at the clock font vs everything else. This change is selective not global, which is exactly what we are after!
Though if an app calls on monospace like a market app it will display this new font we are about to use. Like some apps specifically logcat apps like using monospace b/c its easier to see the code so keep that in mind before doing this and choose your font wisely!
Example:
First were going to need a font we want to use select any font you can find you may want to selectively use... I chose arame-regular.ttf
We are also going to need SystemUI.apk decompiled.
I'm gonna break-down how android font family's and how font styles work in general first b/c you need to have an understanding of them to change them selectively.
Htc uses a fontfamily known as sans-serif but in actuality those fonts are basically anything with droid as a prefix and both sans or serif as a suffix. Not that it uses all of them. Ok thats what base htc does right but through the updater script they manage to symlink them
Example of symlinking:
Code:
symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
This essentially is saying: ok for every spot DroidSans.ttf would be used now Roboto-Regular will fall in its place.
Example and list of roboto styles that have been symlinked in sense 6.0
Code:
android:fontFamily="sans-serif" // roboto regular
android:fontFamily="sans-serif-light" // roboto light
android:fontFamily="sans-serif-condensed" // roboto condensed
android:fontFamily="sans-serif-thin" // roboto thin
Now each family has a style as you can see here
these are the 12 style variants that are possible: android:textStyle=" "
Regular
Italic
Bold
Bold-italic
Light
Light-italic
Thin
Thin-italic
Condensed regular
Condensed italic
Condensed bold
Condensed bold-italic
Ok enough of that lets get down to brass tacks... We need the SystemUI (the app i chose for demonstration) decompiled and an updater script and a .zip
Empty everything out of the .zip except the system/fonts folder and the meta-inf folder and the system/priv-app folder everything else delete it. Delete everything within the system/priv-app folder and then you can even delete all the fonts inside of the system/fonts folder as well.
I decided on a font family that htc does not use anywhere or any place its known as monospace the real font name is DroidSansMono.ttf. It's what we will be symlinking to.
Now that we have our .zip with nothing left in it except the meta-inf stuff and some empty folders we are going to add our custom font to the system/fonts folder make sure it is a standard .ttf font and make sure it has all the characters you'll be needing when you apply the font to wherever you want.
Then we are going to open our updater-script and simply delete everything (use your rom .zip and it's updater-script) its easier that way. We are going to add our symlink lines into it. I used a font called arame to do this but any true type font will suffice. This is how your updater-script should look the mount ext's may be different if your on the m8
Code:
ui_print("");
ui_print("............................................");
ui_print(": :");
ui_print(": Installing :");
ui_print("............................................");
ui_print("");
ui_print("");
set_progress(0.01);
ui_print("");
ui_print("");
ui_print(">>> Mounting partitions");
assert(mount("ext4", "EMMC", "/dev/block/mmcblk0p37", "/system") || ui_print("(system is mounted already)"));
assert(mount("ext4", "EMMC", "/dev/block/mmcblk0p39", "/data") || ui_print("(data is mounted already)"));
ui_print("");
ui_print("");
ui_print("");
ui_print("");
ui_print(">>> Writing Data & System");
package_extract_dir("data", "/data");
package_extract_dir("system", "/system");
ui_print("");
ui_print("");
ui_print("-- Creating additional symlinks");
symlink("Arame-Regular.ttf", "/system/fonts/DroidSansMono.ttf");
assert(unmount("/data") || ui_print("(Data is unmounted already)"));
assert(unmount("/system") || ui_print("(System is unmounted already)"));
set_progress(1.0);
ui_print("--");
ui_print("--Installation Complete!");
ui_print("--");
ui_print("--");
Ok now save and close you're updater-script and add it back into our .zip at META-INF\com\google\android\ overwriting the original.
Now lets switch gears and go back to the decompiled SystemUI.apk.
Lets open status_bar_expanded_header.xml if you look at line 5
you'll see the style I was after: highlighted:
Code:
@style/ExpandedClock
Now lets open that style Data/res/values/styles.xml Search for:
Code:
<style name="ExpandedClock" parent="@*android:style/TextAppearance">
Now were going to change the android:fontFamily for that given style: we are going to change it to monospace. It was originally sans-serif-light.. Your new style will look like:
Code:
<style name="ExpandedClock" parent="@*android:style/TextAppearance">
<item name="android:textSize">@dimen/clock_fontsize</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">@com.htc:color/cellitem_avatar_stroke</item>
<item name="android:fontFamily">monospace</item>
</style>
Recompile the systemUI.apk and either add it to your .zip in system/priv-app folder or push it to system/priv-app, but honestly if you didnt know that you probably shouldn't be doing this tutorial.
Flash the font tester.zip and push the ui
Changing the mono font and then selectively choosing it using the monospace font family. Now whenever you want to use your special font somewhere for design or whatever, you can use it just by either replacing the android:fontFamily with monospace or adding an android:fontFamily line, to the style you want to specifically change.
Here is my .zip: https://www.dropbox.com/s/2yohzroxz9ilsab/Font_Tester.zip
It took me a year to get this. Enjoy
____________________________________________________________________________________________________________________
____________________________________________________________________________________________________________________
Animate the status_bar_close_on and keep the carrier label at the same time.
Ok I stated above if you had any questions about the ui feel free to ask. This tutorial is a result of one of those questions.
Example:
I made several attempts at this and it was weird, it didnt want to work at first, but after I tried a few different ways, I got this way to work.
The methods we have used since ICS still work don't get me wrong but they dont work if you want to keep the carrier_label. The SB image itself will cover the carrier_label. If you try to move the carrierlabel process to expanded_layout or try adding and ImageView into either .xml like we've done in previous builds: Ics/jb/even kk. Just wanted to point that out.
Ok lets get down to it we are going to need a decompiled systemui.apk and VTS.
You will obviously need some knowledge of photoshop or after-effects or some program that will allow you to manipulate images within .9 patches.
Also for the second part or even the first you will need to know how to manipulate .9 images using the draw9patch tool provided in your android-sdk. Windows=ie:start/run/cmd/draw9patch hit enter if you have java properly in your paths it'll load the draw9patch tool. If you need I can cover .9 images in a different tutorial but there are enough tutorials on xda already about them please do some searching if you have any questions feel free to ask. Some images are very hard to patch given the complexity of the image. And depending on the animation in no way can the patch touch an abstract animation that isn't uniform so it can get crazy with the patches.
Ok lets get started we are gonna open two separate layouts
carrier_label_generic.xml
status_bar_close.xml
Ok first we're gonna go into carrier_label_generic.xml and change line 2:
From:
Code:
<com.android.systemui.statusbar.phone.CarrierLabel android:gravity="center" android:id="@id/handle" android:background= [user=3944923]@drawab[/user]le/status_bar_close_on" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="@dimen/close_handle_height"
To:
Code:
<com.android.systemui.statusbar.phone.CarrierLabel android:gravity="center" android:id="@id/handle" android:background= [user=3944923]@drawab[/user]le/status_bar_close" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="@dimen/close_handle_height"
We are changing the android:background from an image (status_bar_close_on.9.png) to (status_bar_close.xml)
If you want the results you saw in the first example you'll need to change your status_bar_close_off.9.png
Ok that in itself will animate between status_bar_close_on.9 and status_bar_close_off.9 but we can take it further than that if we want.
____________________________________________________________________________________________________________________
____________________________________________________________________________________________________________________
Add Operator_name to statusbar move signal_cluster to the left and then move wifi to the right of the signal itself
My findings:
Really I found that the real carrier_label id can't be called on in the status_bar without it crashing! The method they use in CM does not work and my guess is b/c the ID for handle is actually in some way tied to the carrier_label_generic id itself thus we can't call on it b/c it wants to expand the handle layouts as well. Makes sense since the handle ID is called right out of the com.android.systemui.statusbar.phone.CarrierLabel. I could be wrong though who know's maybe someone else will see something I didn't.
Please if you have any insight on how to get the actual process itself into the statusbar using sprint please let me know I've gotten as far as getting it to display the layout for it but no txt!
I'd also like to point out there are two way's of doing this: I figured this is the most simple method of the two... The other one requires adding a line to status_bar.xml where the plmn_label id lies now but turning that on doesnt work unless you give it a string value which is more adding vs modifying what is already there so I figured this way was easier hope you enjoy.
Oh and since the Id for plmnLabel is a textview in status_bar.xml and not the actual process call in smali: it doesnt act like carrier_label anyway so it's moot point!
Using the call for it <com.android.systemui.statusbar.phone.CarrierLabel will result in a ton of errors in logcat and multiple force closes.
RESULTS:
Ok your gonna need a decompiled SystemUI.apk - open status_bar.xml and signal_cluster_view_generic.xml also open values/strings
Were going to go into status_bar.xml first move the view_stub line so that is directly above the notification_icon_area id
Code:
<ViewStub android:id="@id/signal_cluster" android:inflatedId="@id/signal_cluster_tree" android:layout_width="wrap_content" android:layout_height="wrap_content" />
<LinearLayout android:orientation="horizontal" android:id="@id/notification_icon_area" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0">
This will move the cluster to left now lets switch over to signal_cluster_view_generic.xml
we are gonna move some lines around
You're gonna move this line:
Code:
<ImageView android:id="@id/wifi_signal" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/status_bar_system_icon_margin_left" android:layout_marginRight="@dimen/status_bar_system_icon_margin_right" android:scaleType="center" />
So that it falls right above the airplane ID at the bottom so move the whole line.
This will flipflop the wifi/signal cluster so that the wifi falls to the right of the signal bars themselves.
Next we're gonna turn on the operator name:
in signal_cluster_view_generic.xml you're going to see this line
Code:
<TextView android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:gravity="center_vertical" android:id="@id/operator_name" android:visibility="visible" android:layout_width="wrap_content" android:layout_height="fill_parent" android:text="@string/orange_fr_operator_name" android:paddingStart="2.0dip" android:paddingEnd="2.0dip" />
Move it to the top where wifi was before and set its visibility to visible... You turned on the operator name ID
Now lets goto string and look for orange_fr_operator_name goto that line and change orange F to your actual Service Provider and you're done. Save that and compile.
Here's my xml's if you want to use them and you still want the the clock back just set the visibility on the clock line to visible!
https://www.dropbox.com/s/0e3dxt32jh0axq8/status_bar.xml
https://www.dropbox.com/s/7dv9yxbtt2f22sk/signal_cluster_view_generic.xml
____________________________________________________________________________________________________________________
____________________________________________________________________________________________________________________
Making the header in prism/blinkfeed into an image instead of the multiply color
This could have been done several different ways this was just me trying to change it and this is how i eventually accomplished it.
Example:
think it was the second half of this that did it.!!!!
Step 1 add an image into drawable-xxhdpi mine looks like this I use a .9 but I imagine any image that fits the space will do...I made this .9 for 5.5 so it works... I will admit I did this slightly different than some would have you could also use the regular common_app_bkg_top_full.9.png in the app except yeah whatever, like i said it doesnt matter what image name you use.
Ok resize the common_app_bkg_top_full to a .9 that will suit the spot and image you want for the header... Im not going to get into how to .9 certain images but yeah you get the idea mine looks like this so there is no distortion in the gradient.
Ok Lets dig in... Open prism were gonna open a few things... Open values/styles.xml and values/drawables.xml you dont need to add an attr line for this like i believe someone else pointed out for resources this will carry either way...
First we are gonna edit line 5 in drawables.xml from
Code:
<item type="drawable" name="common_header" [user=3944923]@drawab[/user]le/zero_dummy_asset</item>
to
Code:
<item type="drawable" name="common_header" [user=3944923]@drawab[/user]le/common_app_bkg_top_full</item>
Then were gonna go to styles I edited a few lines in styles.
Then we goto
<style name="HtcActionBar">
change it from
Code:
<style name="HtcActionBar">
<item name="android:panelFullBackground" [user=3944923]@drawab[/user]le/common_app_bkg_top_full</item>
<item name="android:background">?multiply_color</item>
<item name="android:drawable" [user=3944923]@drawab[/user]le/common_app_bkg_top_full_land</item>
to
Code:
<style name="HtcActionBar">
<item name="android:panelFullBackground" [user=3944923]@drawab[/user]le/common_app_bkg_top_full</item>
<item name="android:background" [user=3944923]@drawab[/user]le/common_app_bkg_top_full</item>
<item name="android:drawable" [user=3944923]@drawab[/user]le/common_app_bkg_top_full_land</item>
Then do the same for
Code:
<style name="ActionBarActionMode" parent="@*android:style/Widget.DeviceDefault.Light.ActionMode.Inverse">
<item name="android:background">?multiply_color</item>
<item name="android:height">?android:actionBarSize</item>
<item name="android:titleTextStyle">@style/ab_primary_textview_style</item>
<item name="android:subtitleTextStyle">@style/ab_secondary_textview_style</item>
</style>
change that to
Code:
<style name="ActionBarActionMode" parent="@*android:style/Widget.DeviceDefault.Light.ActionMode.Inverse">
<item name="android:background" [user=3944923]@drawab[/user]le/common_app_bkg_top_full</item>
<item name="android:height">?android:actionBarSize</item>
<item name="android:titleTextStyle">@style/ab_primary_textview_style</item>
<item name="android:subtitleTextStyle">@style/ab_secondary_textview_style</item>
</style>
And thats how we change the multiplier header in prism from a color to an image hope you enjoy!
Add custom navbar to hotseat.xml
open values/ids.xml
and add a value to the bottom i named mine background name it whatever you want
prism.apk layout/hotseat.xml
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.htc.launcher.hotseat.Hotseat android:clickable="true" launcher:cellCountX="@integer/hotseat_cell_count" launcher:cellCountY="1"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:launcher="http://schemas.android.com/apk/res/com.htc.launcher">
[COLOR="DeepSkyBlue"] <ImageView android:layout_gravity="bottom|center" android:id="@id/background" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src= [user=3944923]@drawab[/user]le/home_nav_bg" android:scaleType="fitXY" />[/COLOR]
<ImageView android:layout_gravity="bottom|center" android:id="@id/hotseat_gardient" android:layout_width="@dimen/button_bar_background_width" android:layout_height="@dimen/button_bar_background_height" android:src= [user=3944923]@drawab[/user]le/home_launcher_bg" android:scaleType="fitXY" />
<com.htc.launcher.CellLayout android:layout_gravity="center" android:id="@id/layout" android:paddingLeft="@dimen/button_bar_width_left_padding" android:paddingTop="@dimen/button_bar_height_top_padding" android:paddingRight="@dimen/button_bar_width_right_padding" android:paddingBottom="@dimen/button_bar_height_bottom_padding" android:layout_width="wrap_content" android:layout_height="fill_parent" launcher:cellWidth="@dimen/hotseat_cell_width" launcher:cellHeight="@dimen/hotseat_cell_height" launcher:widthGap="@dimen/hotseat_width_gap" launcher:heightGap="@dimen/hotseat_height_gap" launcher:maxGap="@dimen/workspace_max_gap" />
</com.htc.launcher.hotseat.Hotseat>
Ok small flaw I noticed with this which we are gonna fix. If you look closely you will see a divider in the navbar that shouldnt be there... You will also need to edit something in lockscreen to get rid of it there its at the bottom of the tutorial...
Example:
Ok now in prism.apk open main_launcher.xml
you're gonna change line 20 from
Code:
<ImageView android:layout_gravity="bottom|center" android:id="@id/nav_bar_div" android:paddingLeft="@dimen/margin_l" android:paddingRight="@dimen/margin_l" android:layout_width="fill_parent" android:layout_height="wrap_content" android:src= [user=3944923]@drawab[/user]le/common_b_div" android:scaleType="fitXY" />
To:
Code:
<ImageView android:layout_gravity="bottom|center" android:id="@id/nav_bar_div" android:paddingLeft="@dimen/margin_l" android:paddingRight="@dimen/margin_l" android:layout_width="fill_parent" android:layout_height="wrap_content" android:scaleType="fitXY" />
All we did was remove the src call android:src @drawable/common_b_div"
You could keep it for design purposes but this is just how to remove it..It obviously was interfering with my nav bar bg.
----------------------------------------------------------------------------------------------------------------------------------------------------------
Ok the divider in lockscreen lets take care of that
Example:
Ok open Htclockscreen.apk res/layouts/main_lockscreen_keyguard_host_view.xml
your gonna change one line in it: line 26
Code:
<com.htc.lockscreen.ui.footer.NavigationBarDivider android:layout_gravity="bottom" android:id="@id/navigation_bar_divider" android:background= [user=3944923]@drawab[/user]le/common_b_div" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="@dimen/navigation_bar_divider_height" android:layout_marginLeft="@dimen/common_dimen_m1" android:layout_marginRight="@dimen/common_dimen_m1" />
Remove the :android:background= @drawable/common_b_div" from that line no more grey divider...Enjoy
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Changing the call button in dailer to an stand alone themable image!
Ok I wont be going over how to theme the whole dialer others have explained certain aspects of it and my questions in some posts answer other questions if you have any feel free to ask there are tons of awesome devs that respond very quickly.
This took me forever to find since center_button id in the cmdbar.xml is very confusing when it comes to figuring this out... Its not the center_button id we are after its the phone_btn_call_rest in drawables.xml thats the actual id we are going to be replacing with an image id we will add...
Ok lets dig in decompile dialer if you havent already
make an image mine is 717x164 which is the exact width and height of the button in the standard dialer.
I did not make my image a .9 since I will only be using this specific image for only this spot.
Ok add the image into the drawable-xxhdpi folder and right click on the project open resource manager and add the id for it copy the id when it comes up and keep that safe...
Ok now were gonna open values/drawables.xml were gonna look at line 33 and find its public value
from:
Code:
<item type="drawable" name="phone_btn_call_rest">#ff000000</item>
I changed mine to and @drawable while testing,
but you dont have to since it has no effect on the outcome since we are changing this id in itself to something else in smali.
ok back into public.xml and search for the phone_btn_call_rest id for me its 0x7f020068
were gonna search for in ButtonGroup.smali
Code:
move-result-object v3
check-cast v3, Lcom/htc/htcdialer/widget/keypadbtn/HtcKeypadBgBtn;
const v0, 0x7f020068
Now simply change the phone_btn_call_rest Id to the new image id you created earlier for your new drawable. save and compile done Enjoy!
Example:
Hope you enjoy the tutorials.
Advanced Theming for Sense 6
I was fortunate enough to of had the opportunity to start theming Sense 6 before it even hit the stage as a custom ROM, but that does not give me an advantage at all. Sense 6 is a whole new concept in theming and at the best of times, an aggravated experience. So much has changed between Sense 5.5 and Sense 6 that I don’t even know where to begin. I honestly think that HTC had the common Sense kicked out of it. When life throws you lemons, you theme them….
These tutorials are designed for themers that have knowledge with xml and smali editing. There are several excellent threads that explain the concepts and the "how-to's" for these kinds of edits, therefore, I will only focus on theming issues.
The first thing that I found out was, I needed to update VTS in order to decompile any of the Sense 6 apks. My VTS was outdated and you should carefully check that you are up to date with smali, baksmali.jar’s and using a current version of apktool. Be sure to visit this page and download the latest versions of the smali.jar’s found here and replace them in the appropriate VTS folders. This will resolve most decompiling errors that you may encounter. The other errors, well it’s just the apk and way that it’s being decompiled at the moment. There’s not too much you can do other than getting a different apk and trying it.
Transparent Prism Appdrawer Background
Well, what I thought turned out to be an easy and wonderful edit, in fact, a little bug suddenly appeared.
It seems that the Search for Apps feature in the appdrawer shares the same background as the appdrawer itself. As as consequence, there is a double transparent background ontop of each other which I don't find appealing the least.
After a bit of investigating, I found that adding a custom color to isolate the appdrawer background fixed this problem.
Step 1
You're going to need to make a custom color edit in the color.xml of Prism. You can call it whatever you want and make your transparency to your choosing. For the dark_ap_background_color, you can leave it as it is or change it to your desired shade. I changed mine to a black/blue shade.
Step 2
Navigate to specific_all_apps_pagedview.xml
Within this string
Code:
<com.htc.launcher.pageview.AllAppsPagedViewHost android:id="@id/all_apps_paged_view_frame" android:background="?dark_ap_background_color" android:paddingTop="@dimen/all_apps_host_paddingTop" android:paddingRight="@dimen/all_apps_host_paddingRight" android:layout_width="fill_parent" android:layout_height="fill_parent"
search for
Code:
android:background="?dark_ap_background_color"
Replace ?dark_ap_background_color with your new color name such as @color/custom_color
Step 3
Using the search panel, you want to search within the smali folder for the following. The original thread can be found here. All credits to the authors.
Code:
com/android/htc/launcher/Launcher.smali
Search for this entry
Code:
.method public updateWallpaperVisibility(Z)V
If you see a const/high16 v2, 0x10 (not 0x100000 as shown) you need to update your smali.jar’s.
Edit 0x100000 to be
Code:
const/high16 v2, 0x0
Save your edits, compile and you’re finished.
Results
Custom Panels for the WeatherClockWidget.apk
Adding custom panels to the WeatherClockWidget.apk is fun. This procedure requires a bit of photo editing skills with Photoshop (or something slimar) and edits in layout and smali (if you want a custom 4x1 clock background).
Step 1.
Prepare a custom panel as shown. The dimensions are 1040 x 236 (my preference)
Save your panels in the drawable-xxhdpi folder. I prefer using a fixed name such as razor_clock_panel and razor_panel. It’s entirely your preference but don’t forget the name as you will need them for the next steps.
If you just want to add a panel for the weather conditions (1040x238), you will only need to edit the layout.xml.
Step 2
Edit the following string
Code:
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:id="@id/background_panel" android:background="@com.htc:drawable/common_panel" android:layout_width="@dimen/weatherclock_base_width" android:layout_height="@dimen/weatherclock_base_height" android:layout_marginLeft="@dimen/weatherclock_base_margin_left" android:layout_marginTop="@dimen/weatherclock_base_margin_top" />
You will need to change com.htc:drawable/common_panel" to the following
Code:
@drawable/razor_panel
It should now appear as this with your new panel name.
Code:
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:id="@id/background_panel" android:background="@[COLOR="Red"]drawable/razor_panel[/COLOR]" android:layout_width="@dimen/weatherclock_base_width" android:layout_height="@dimen/weatherclock_base_height" android:layout_marginLeft="@dimen/weatherclock_base_margin_left" android:layout_marginTop="@dimen/weatherclock_base_margin_top" />
Save your edit, compile, and you’re finished.
Results
Now if you want to add a custom 4x1 clock background as previously explained by @fisha21, the first thing you need to do is make your custom panel the same way as explained above at 1032x328 and save that in the drawable-xxhdpi folder.
Next
Compile your apk and place it on the desktop. Import the apk again and go to the Public.xml
Copy down the new Public ID for your custom panel. Follow the steps explained by fisha21. Instead of replacing the Public ID with the common_panel, use your new Public ID.
Save your edit, compile, and finished.
Results
Inverting Issues (Not intended for this Thread)
A lot of users are asking about inverting tips. I wasn’t going add any tutorials for that in this thread, but I figured I could do a couple until I get around to making a thread on it.
There are a few apks with Sense 6 that do not call on the resources colors. They do call on framework colors and if you don’t test your theme completely, you’ll probably find a disappointing background somewhere when you are finished. This tutorial will cover two elements that are not themed by resources, the call settings and mobile network settings background.
These two backgrounds call on the white color (line 4) in the framework color.xml. There are two ways to change the background for call settings and mobile network. The easiest way would be to redirect the color to another color in framework just as black as in my case. That’s great if you are running a black theme. Here’s the steps for that.
Step 1
Get the public ID for the white color in the Public.xml of frameworks which is 0x0106000b. Directly under that you’ll see the Public ID for black, 0x0106000c. Copy both down.
Step 2
Open the phone project and do a search for Public ID white 0x0106000b. NOTE: You need to remove the 0 after the x, so your search should be 0x106000b. You will be searching for this following smali and string.
Code:
com/android/phone/widget/ThemePreferenceActivity.smali
invoke-virtual {p0}, Lcom/htc/preference/HtcListActivity;->getHtcListView()Lcom/htc/widget/HtcListView;
move-result-object v3
const v4, 0x106000b
invoke-virtual {v3, v4}, Landroid/view/View;->setBackgroundResource(I)
Step 3
Edit the value indicated above. Compile and you’re finished.
If your background is a different color, let’s say light green, you’re going to need to make a custom colour.
Step 1
Go to the color.xml of the Phone apk. Copy one of the strings and paste it near the bottom or top. Rename the string to your custom name and change the colour hex.
Step 2
Build the apk, place on your desktop and import it again. Go to the Public.xml and copy your new ID for your custom colour. Now, repeat the steps above and search for the Public ID white 0x106000b and replace that with your new ID. Compile and you’re finished.
Results
Inverting Data Usage Background
The data usage background can be found in the Usage.apk. Once decompiled, you will need to go to the layout.xml.
Step 1
Search in the main_content.xml and look for this string.
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.htc.usage.widget.MyFrameLayout android:id="@id/mycontent" android:background="[COLOR="Red"]#ff000000[/COLOR]" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android" />
For this quick tutorial, the edit has been done already in black. Make your backgound to the colour you prefer and compile. Finished.
Results
Inverting Weather.apk Backgrounds
Another theming disaster is the Weather.apk. This background can be changed by following the framework.apk Public ID for white method or making a new color reference in the Weather.apk, color.xml.
Step 1
If you just want a black background like I did, all you need to do is search the Weather.apk smali files for 0x106000b. There will be 4 hits and all refer to backgrounds.
Search for
Code:
0x106000b
Look for the following string in WeatherEntry$CityListAdaptor.smali
Code:
iget-object v14, v0, Lcom/htc/Weather/WeatherEntry$CityListAdapter;->mLayout:Landroid/widget/RelativeLayout;
const v15, 0x106000b
invoke-virtual {v14, v15}, Landroid/view/View;->setBackgroundResource(I)V
const v14, 0x106000b
invoke-virtual {v13, v14}, Landroid/view/View;->setBackgroundResource(I)V
Change 0x106000b to 0x106000c (My case I changed all 4 instances)
Step 2
If you need a different coloured background, you will need to make a custom colour in the color.xml of the Weather.apk. Please follow the instructions mentioned above on how to add a custom colour to the apk.
Background in Browser.apk when Nagivating Tabs
All credits for this edit go to @Basil3 as we double-teamed up on this one and he found it on the day-shift. Good on ya, mate.
Step 1
Get a pencil and copy this down
Step 2
Search smali in Browser.apk for
Code:
.method public constructor <init>(Lcom/htc/sense/browser/PhoneUi;Lcom/htc/sense/browser/htc/ui/CellList;)V
Within that search, you'll need to locate the following
Code:
# direct methods
.method public constructor <init>(Lcom/htc/sense/browser/PhoneUi;Lcom/htc/sense/browser/htc/ui/CellList;)V
.locals 10
const/16 v9, 0x11
const/4 v8, 0x0
const/4 v7, -0x1
const/4 v6, 0x1
const/4 v5, 0x0
invoke-virtual {p1}, Lcom/htc/sense/browser/BaseUi;->getActivity()Landroid/app/Activity;
move-result-object v2
Edit
Code:
const/4 v7, -0x1
Change to your desired smali color code. Remove the /4 from the string so that it shows
Code:
# direct methods
.method public constructor <init>(Lcom/htc/sense/browser/PhoneUi;Lcom/htc/sense/browser/htc/ui/CellList;)V
.locals 10
const/16 v9, 0x11
const/4 v8, 0x0
const v7, -0x1000000
const/4 v6, 0x1
const/4 v5, 0x0
invoke-virtual {p1}, Lcom/htc/sense/browser/BaseUi;->getActivity()Landroid/app/Activity;
move-result-object v2
Build and you're finished.
More Nasty Inverting Issues Resolved - HtcSetupWizard, HtcBackup, "Get Started Panel", Settings Issues Prism.apk
The following are inverting theme issues when dealing with HtcSetup and company apks. Each apk seems to have a specific edit so let’s start with the Prism.apk and the white panel “Get Started”
White box in Settings
There are a couple of nasty edits in the Prism.apk and I will be honest, it took me several days of trying and giving up only to get back on it again to find the fix. The first fix is a white box that you see when choosing new content in settings.
This fix is relatively easy. You need to theme the common_circle_pressed.png found in the xxhdpi folder in Prism.apk. That’s it.
White panel in Blinkfeed page “Get Started”
White panel in Blinkfeed page “Get Started” – This edit I want to recognize @Mikanoshi for providing some excellent clues on finding this edit as well as introducing me to an outstanding search tool. Cheers mate.
This was a tough one. This edit comes from the smali.
Code:
com.htc.libmosaicview.FeedGridViewText
You want to look around line 540 and search for
Code:
invoke-virtual {v0, v1, v2}, Lcom/htc/libfeedframework/FeedData;->getBooleanExtra(Ljava/lang/String;Z)Z
move-result v0
if-eqz v0, :cond_0
const v0, -0x1000000
invoke-virtual {p0, v0}, Lcom/htc/libmosaicview/FeedGridViewText;->setBackgroundColor(I)V
This edit has been done already. Don’t forget to delete the /4 after const. Build and you’re finished.
White Drop down panel – “Tap to see new stories”
This edit was strange as I seldom see this drop down panel. Any event, I found it in Prism.apk located in the
Code:
specific_feed_grid_view.xml
Look for
Code:
<TextView android:gravity="center" android:id="@id/notify_title" android:background="@color/razor_blue" android:layout_width="fill_parent" android:layout_height="@dimen/notification_bar_height" android:text="@string/notification_bar_title" style="@style/list_primary_s" />
For this specific edit, I decided to make a custom color and made the edit semi-transparent. Edit the color reference and you’re finished.
HtcBackup.apk – Background inverting fix.
If you are doing an inverted theme, you’re going to hit a couple of snags with the set up and back up apks. The HtcBackup.apk (for me) was relatively easy to do. Basically you are going to edit
Line 4: white:#ffffffff – change that to your desired color. Build and you’re finished.
Basil3 mentioned that his app was a data/app and that he had to do a different edit. Let me know if you have problems and I will add the additional fix later.
HtcSetupWizard.apk – Background inverting fix
Another issue came with this apk. With my buddy, @Basil3, we doubled teamed on my finding and fixed this mystery. The background and font are both controlled by the dark_primaryfont_color in resources. After some investigating, we found that the wizard.activity.xml contained a separate edit for the background
Code:
<?xml version="1.0" encoding="utf-8"?>
<com.htc.widget.HtcOverlapLayout android:orientation="vertical" android:id="@id/overlap_layout" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:id="@id/base_layout" android:background="#ff000000" android:layout_width="fill_parent" android:layout_height="fill_parent">
You will need to change the background: reference and add your desired hex code. The edit has been applied here already.
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
New Edits
Pop-up Window on HTC_IME - Word Correction
Thanks to @Mikanoshi for helping me find this edit. The pop-up window that appears when using the HTC_IME keyword after an error occurs when typing can be found the the framework.jar. You will need to look in the
Code:
Editor$SuggestionsPopupWindow.smali
Look around line 1131 and 1142 (that's where it's found in my framework)
You'll need to change the color reference indicated in your framework and make them your choice of color. I have made my around 75% transparent and it seems to look nice against a dark background.
The stock colors are smali -0x202021 (#ffdfdfdf) and -0x111112 (#ffeeeeee). I use #be000000 (-0x42000000) and that worked well for me.
Thanks for this. How will this effect creating a 4x5 home screen?
Sent from my HTC One using Tapatalk
So it guide me to change the letter and it work.. the weather control by pngs or smali too? Looking at the same smali you gave to change the background and letter.. but didn't found any related to weather icon?
Sent from my HTC One using Tapatalk
well done fisha21 this and really useful:good:
---------- Post added at 07:10 AM ---------- Previous post was at 07:09 AM ----------
nashshafrulrezza said:
So it guide me to change the letter and it work.. the weather control by pngs or smali too? Looking at the same smali you gave to change the background and letter.. but didn't found any related to weather icon?
Sent from my HTC One using Tapatalk
Click to expand...
Click to collapse
yooo Nash i love your skins remember one x time
maurydes said:
well done fisha21 this and really useful:good:
---------- Post added at 07:10 AM ---------- Previous post was at 07:09 AM ----------
yooo Nash i love your skins remember one x time
Click to expand...
Click to collapse
I'm really hoping the new theme engine working as the skin back then. too bad HTC prefer it other way. I'm trying too port back my classy transparent skin. Hopefully sense 6 would be easier. thanks btw.
Sent from my HTC One using Tapatalk
Will help here where i can !!! Awesome
another one to follow! :good:
Will add what i can, ty
Sent from my PC36100 using Tapatalk 2
Thanks fisha!! Amazing:thumbup:
Great thread thanks a lot
Powered by SkyDragon ROM
Nice
Sent from my PC36100 using Tapatalk 2
2WildFirE said:
Great thread thanks a lot
Powered by SkyDragon ROM
Click to expand...
Click to collapse
Have you deactivated the day/night color change? If yes how you do it.. can't find the solution yet.
Sent from my HTC One using Tapatalk
@nash here http://forum.xda-developers.com/showthread.php?p=51437526
And I using my common panel. 9png
Powered by SkyDragon ROM
2WildFirE said:
@nash here http://forum.xda-developers.com/showthread.php?p=51437526
And I using my common panel. 9png
Powered by SkyDragon ROM
Click to expand...
Click to collapse
Thanks.. but I don't mean the background.. see my screen shot.. the weather icon.. what control it to change at night and day..
Sent from my HTC One using Tapatalk
nashshafrulrezza said:
Thanks.. but I don't mean the background.. see my screen shot.. the weather icon.. what control it to change at night and day..
Sent from my HTC One using Tapatalk
Click to expand...
Click to collapse
Ah ok,sry i think we can change the same way with the icons if i remember editing this smali. I will look into the smali
I mean this here
.method protected getGraphicType(Z)Lcom/htc/weather/StateResources$GRAPHIC_TYPE;
.locals 1
if-eqz p1, :cond_0
sget-object v0, Lcom/htc/weather/StateResources$GRAPHIC_TYPE;->vectorgraphic_light_xl:Lcom/htc/weather/StateResources$GRAPHIC_TYPE;
:goto_0
return-object v0
:cond_0
sget-object v0, Lcom/htc/weather/StateResources$GRAPHIC_TYPE;->vectorgraphic_dark_xl:Lcom/htc/weather/StateResources$GRAPHIC_TYPE;
goto :goto_0
.end method
edit booth to light or dark, Nash has tryed, and it works.
2WildFirE said:
Ah ok,sry i think we can change the same way with the icons if i remember editing this smali. I will look into the smali
Click to expand...
Click to collapse
If you found it please let me know. That's the only thing I left for the clock.. thanks again.
@fisha21, you use vts for sense 6? I can't decompile any of sense 6 apk in vts.. any idea?
Sent from my HTC One using Tapatalk
I really hope this isn't a stupid question, but...
Where, aside from arrays.xml, could I possibly find the arrays used to control screen auto-brightness?
The section that they would normally be in looks like so:
Code:
<array name="config_autoBrightnessLevels" />
<array name="config_autoBrightnessLcdBacklightValues" />
<array name="config_autoBrightnessButtonBacklightValues" />
<array name="config_autoBrightnessKeyboardBacklightValues" />
Now, I know something, somewhere has to contain values for it, because auto-brightness...well, works. Not especially well due to its stock settings (a bit too bright in dark, too dim to use in full sunlight), but it is definitely receiving input from the light sensor.
Related information:
This is on an LG Ally (vs740), running Velocity 1.2. I did check the stock rom's arrays.xml, and found the same thing, so it's not just a custom-rom oddity.
Perhaps related:
Apparently, the Ally doesn't use a standard interface(?) for its light sensor. All that programs trying to access it can get is its model ("Temporary v1"), no readings; this makes using a third-party solution impossible, as I have yet to find a program that can properly access it.