Related
Hey all,
I find it incredibly stupid that car home keeps the standard wallpaper and just dims it. I'm using the album art wallpaper and it makes car home almost unusable.
Would it be possible to force the system to change the wallpaper to a black background when car home is in use and then change it back when you close it?
Thanks!
If your screen is too dark:
Look on bottom right corner, under EXIT CAR MODE. See the little > right arrow?
Hit that and change your screen brightness setting.
Automatic > Night > Day
As for changing the wallpaper. I've never heard about that possibility.
Maybe someone with theming or morphing skillz will come across this thread??!
rickytenzer said:
Hey all,
I find it incredibly stupid that car home keeps the standard wallpaper and just dims it. I'm using the album art wallpaper and it makes car home almost unusable.
Would it be possible to force the system to change the wallpaper to a black background when car home is in use and then change it back when you close it?
Thanks!
Click to expand...
Click to collapse
That should be possible with Tasker.
Unfortunately I use settings profiles and would hate to pay for a software to handle this one thing. I wish CM could incorporate this change into the nightlies!
Would be easy to do with Tasker which is a great app anyway. I recommend getting it and I'm sure you'll find some other useful things you can do with it too (it should easily replace settings profile for you too)
This should be a simple change, but apktool is acting up and won't recompile the apk. Hopefully I will have one available soon.
Cool thanks! You rock.
This is turning out to be significantly harder than it should be. aapt seems to be ignoring the entire res/values folder, so even an empty decompile/recompile fails (but works fine for every other apk I throw at it), and MetaMorph is just flat out having no effect. I will keep working on it, but for now it seems hopeless by divine force.
RoboPhred said:
This is turning out to be significantly harder than it should be. aapt seems to be ignoring the entire res/values folder, so even an empty decompile/recompile fails (but works fine for every other apk I throw at it), and MetaMorph is just flat out having no effect. I will keep working on it, but for now it seems hopeless by divine force.
Click to expand...
Click to collapse
Even if you can't get it, I appreciate the effort!
So you couldn't get it going?
I really haven't looked into it but isn't it possible to theme the app to use a black interface instead of the transparent one it uses now? I mean replace the transparent .png's with black ones.
The background does not use images, it specifies a theme resourse and adds a transparent black color. I have been trying to change that resourse, without apktool playing nice there is no real way to do this. I tried changing the theme by editing the smali code, but that is overridden by the view's style attribute, and the theme can't be set after the view is inflated.
From what I have found, the only two options with out the ability to compile resource files is either to implement the original idea of blacking the wallpaper on run, or editing the compiled binary xml blob manually.
I could always make a simple service app to change the wallpaper on car mode toggle, that would be easiest at this point.
Update: Did some research, its impossible to set a live wallpaper through code using the public API due to security concerns, so that removes all non-resource ideas. This has to be done through the style resources of CarHome itself.
UPDATE: All info in this thread summarized here: [GUIDE] Pattern lock tweaks - Wallpaper Brightness, Pattern Lock Dots, etc.
Rooted phone running Cognition 1.5.1. I am using a pattern lock so I have the standard Samsung lockscreen.
How can I change the clock font on the pattern lock screen? It looks very out of place compared to the other fonts.
Can I make the pattern lock dots smaller or more transparent? I don't like how it covers up almost all of my wallpaper. I know CyanogenMod has an option to make the pattern lock dots completely invisible. I don't really want that either, I just want them to be less obstructive.
Thanks in advance!
You can't change them afaik! You can always use third party lockscreen app like Widget Locker to get your desired lock screen.
I figured out how to change the clock font. Simply replace the Clockopia.ttf in /system/fonts. You can also use the Font Changer app, available on XDA or Market: http://forum.xda-developers.com/showthread.php?t=874658
However I noticed that my replacement clock font did not seem to line up properly. I think this is a common problem with replacing Clockopia.ttf. So you might need to adjust your font with something like FontForge first. Check out the guide here: http://forum.xda-developers.com/showthread.php?t=990853
UPDATE: This thread on Rootzwiki gives a good description of the Clockopia alignment problem and how to fix it. Basically, use a font editor to replace the glyphs in the Clockopia.ttf with the glyphs from your favorite font.
Still investigating the pattern lock dots.
Figured out the pattern lock dots! The files are in the framework-res.apk, under res\drawable-hdpi. There are two files you need to edit:
btn_code_lock_default.png -- This is the white dot in the middle
indicator_code_lock_point_area_default.png -- This is the dark circular background of the dot
I reduced the size of the white dot by 50% and used a clear transparent background so it doesn't block the wallpaper. Files are attached below in case anyone wants to use these.
One more discovery today. Normally the pattern lock wallpaper is not as bright as the original -- there's a dim or dark filter over it. To change this, decompile framework-res.apk (need to use apktool or apk_manager), and edit res\layout\keyguard_screen_unlock_portrait.xml.
On line 4, change android:background="#70000000" to android:background="@color/transparent"
Compile framework-res.apk and put it back into system\framework. Reboot and you should see that the pattern lock wallpaper is much brighter!
Also I've made another set of pattern lock dots. For this one, I reduced both the white middle dot and the outer ring by 50%. Then I increased the transparency of both and made the outer ring a lighter gray. So now the dots are larger, but even less intrusive. I've attached the files below, plus a screenshot.
Thanks a lot for the background transparency trick ! That was exactly what I was loogking for.
Also, may I add something just for information if ppl need it :
There are other files if you want a complete edit :
the ones you told about :
btn_code_lock_default.png (the small dot in the center)
indicator_code_lock_point_area_default.png (the black circle around)
The pngs that shows up when the pattern is the wrong one :
indicator_code_lock_point_area_red.png (the circle around)
indicator_code_lock_drag_direction_red_up.png (the arrow showing the direction)
And if you use "visible pattern" in the options, these are the green ones :
indicator_code_lock_point_area_green.png
indicator_code_lock_drag_direction_green_up.png
btn_code_lock_touched.png (the small dot in the center, touched version)
One more thing, if you're only editing pngs, you don't need apk tool, a simple unzip with 7zip is possible.
Thanks for the modification ideas.
I am using a Htc Desire on dGB aosp rom but just to add to this thread. In the keyguard_screen_unlock_portrait.xml, I changed:
android:background="#70000000" to android:background="@drawable/patternlock_background"
Added an image called patternlock_background.png to the drawable-hdpi folder.
Made some of the images mentioned in the previous posts transparent.
And came up with this:
Obviously, I still need to edit other aspects of that screen to tidy it up.
Great work LfcFan1977! I would be really interested in seeing more wallpapers that incorporate the pattern lock into their design. There could be some pretty cool ideas by mixing a pattern lock wallpaper with custom pattern dots and lines.
Yea, I have been wanting this kind of mod ever since I got my Android.
Here's a few ideas:
Galaxy with stars/rockets/shuttles/astronauts/planets/moons.
Dot to dot of a gingerbread man.
Flowers with the honeycomb bee.
Treasure maps and pirates.
Football.
Homer Simpson and donuts.
Pacman.
Anyway, I had a bit more of a play with the xml/images and got this.
Hi,
a few month ago I investigated the size of the background image to fit the pattern dots, and after a few experiments I saw that android was doing a bit of resizing, even if the image was exactly the screen size.
What worked for me, is to make an image smaller than 800 in height (763px to be precise) and 480 in width (regular width of 1 screen). But when done editing, I stretch its height back to 800. Then, when applying within gallery ("use as..."), it stretch it back to undeformed.
I made a template in photoshop, for those who are interested, also with my actual pattern background. Still can't post urls here, so...it's hosted at mediafire.com :
Code:
/?fo04gtvp82y1xw1 (the template)
/?82txu5qxdea6usb (the background)
Wow, this thread is a great resource for customizing the lockscreen, and it's rather painless (not much APK tool messing to do, if simple unzip, rezip works, wonderfull )
This is going into my bookmarks
I wish I would have found this thread sooner. I was looking for which files to edit for the buttons but found them elsewhere. I still have one question, though. Does anyone know how to change the path color? I can't find which file it is located in. TIA.
I can only assume the colour is applied by something in the framework.jar but as my understanding of smali coding is practically none, I can not figure it out.
I was thinking that maybe re-posting all the previous information and the above question in the android themes thread may be better. I do not think any of it is device or rom specific and we may need a wider audience in order to resovle questions like the last one.
I can't find the path color in the xml or png files so it must be something in smali code. Moving to the Android themes forum is a good idea. I am going to summarize everything and repost it in that forum.
Check out the new thread here! http://forum.xda-developers.com/showthread.php?t=1330063
A little help
This line about android:background is in keyguard_screen_unlock_portrait? I think it's keyguard_screen_password_portrait
I am working on some mods for a Sense 2.1 ROM for the HTC Thunderbolt (based on latest OTA 2.11.605.3)
Two things I am stuck on, and I have searched high and low to try and resolve this but can't come up with what I need.
#1 - I want to change the icon size (workspace screens and app drawer) from 72x72 to a larger size (maybe 90x90). I have already added larger icons to apps and adjusted every size I can find in Rosie that looks like it would effect icon size. I even adjusted a lot of the padding amounts, but no luck. I did however notice the mail and messages icon would go to the larger size "sometimes" on the homescreen and in the app drawer, but not all the time. Very strange.
Anyone done this and know what i need to do to get my icon size like I want?
#2 - I would like to customize the background color or image on the settings menu (and sub menus if possible). I cannot find an xml file that seems to relate to the main settings screen where I can trace the color or set an image as the background like you can do with the app drawer.
Anyone know how/where this is done?
Thanks for the help, I look forward to getting some direction on this so I can hopefully move forward with this "project".
romified said:
I am working on some mods for a Sense 2.1 ROM for the HTC Thunderbolt (based on latest OTA 2.11.605.3)
Two things I am stuck on, and I have searched high and low to try and resolve this but can't come up with what I need.
#1 - I want to change the icon size (workspace screens and app drawer) from 72x72 to a larger size (maybe 90x90). I have already added larger icons to apps and adjusted every size I can find in Rosie that looks like it would effect icon size. I even adjusted a lot of the padding amounts, but no luck. I did however notice the mail and messages icon would go to the larger size "sometimes" on the homescreen and in the app drawer, but not all the time. Very strange.
Anyone done this and know what i need to do to get my icon size like I want?
#2 - I would like to customize the background color or image on the settings menu (and sub menus if possible). I cannot find an xml file that seems to relate to the main settings screen where I can trace the color or set an image as the background like you can do with the app drawer.
Anyone know how/where this is done?
Thanks for the help, I look forward to getting some direction on this so I can hopefully move forward with this "project".
Click to expand...
Click to collapse
1.
While I've never tried to change icon size (except to make them smaller....), I was able to do it by increasing number of icons (aka 4x5 layout). I know in res/values/, values-hdpi, and values-port-hdpi there are dimens.xml and integers.xml. Since I've never done it before, I can't help you specifically...but that's where I would start. It won't matter the size of the actual png inside the apk, Rosie will size the app based on its resources.
2.
The settings menu, I'm almost certain, calls for resources in framework-res....please don't quote me. I've never tried to theme that myself but I am almost certain. Look for references in Settings.apk to @android, et cetera. Narrow down your search like that. I recommend this line of code:
grep -lr "@android" Settings/*
^assuming you decoded Settings.apk into directory "Settings"
^also assuming you're on Unix system....
Sorry I couldn't be more help man! Good luck!
Hi all,
I have a Galaxy Tab 2 10.1 with a 1280x800 display and recently enabled floating multi-window capabilities using this mod: http://forum.xda-developers.com/showthread.php?t=2449094
Now that I can have floating windows, I wanted to try and edit some games I play to not take up the whole screen and make them think I'm running on a phone with a small screen size (which I know they can, since I've played the same exact APK on a smaller screen size).
So what do I do? I download apktool, decompile the APK, and check the res/layout XML files. In this particular app's case, there are 3 XML files, and all the views are defined at layout_width and layout_height of fill_parent. I change them to something silly like 400px and 640px (to, say, run 4 of these in landscape mode on my screen).
Of course this doesn't work. Some parts are actually 400/640, but some draw at full screen size. My guess is that there are some parts that are drawn pragmatically that bypass the layout settings set in the XMLs and use calls like GetDeviceScreenSize() for dimensions or whatever. I can't find any other layout rules in the XML so I assume this is embedded in the smali files somewhere (pardon my android development nubbery here).
Now that you know the background, my question is: is there a way I can fool a particular app into thinking that my screen is smaller? I know I can change the entire devices DPI but that won't help me. I want to do this on an app-specific basis, sandbox style. Have I missed something simple other than red/layout that I can change to get this app to behave like I want it to?
If the answer to these questions is no, will I be able to achieve my goal by digging into the smali files? If so, would anyone care to share some advice?
Thanks in advance!
I'm starting to get a bit used to smali editing and making toggles for regular things. I was wondering, is it possible to create a Settings toggle to choose between the use of one of three XML lines? The reason why I'm asking is because I'd like to include the choice between the AOSP ICS lockscreen, the Honeycomb style one, or the Gingerbread Sliding Tab one. My ROM is an ICS one, and thus the lockscreen code from previous Android versions can be found and used in ICS. I have tested, and successfully changed the AOSP ICS lockscreen to the Honeycomb and the Gingerbread ones, via editing a single line in framework-res.apk/res/layout/keyguard_screen_tab_unlock.xml (thanks to this link, which was a reference). Anyways, does anyone know how I could easily implement a way to choose between one of the three, on the fly, without decompiling and editing xmls? Would I have to create 3 separate keyguard_screen_tab_unlock.xml files for each type of lockscreen and then add in the smali logic? Thank you to whoever actually bothers to help me out.