[MOD]Recipe: Default Lockscreen settings for Chefs - HTC EVO 3D

I went searching for this info months ago when I was cooking for the HD2 and could not find it anywhere. Recently I wanted to change the default lockscreen on boot and went searching for this info. Again...could not find it anywhere. So I had to figure it out on my own. What makes this community so great is the sharing of info...so this is my part in paying it forward.
When cooking your own ROMs you can set the default lock screen by editing...
\system\customize\MNS\default.xml
Look for the following strings in the xml.
<module name="Lockscreen">
<function name="idlescreen">
<set name="single" max="1">
<item name="component">com.htc.weatheridlescreen/com.htc.weatheridlescreen.service.WISService</item>
</set>
</function>
</module>
Click to expand...
Click to collapse
The line of interest is <item name="component">com.htc.weatheridlescreen/com.htc.weatheridlescreen.service.WISService</item>
Change that line to one of the following for your desired lockscreen
Wallpaper
<item name="component">com.htc.idlescreen.shortcut/.ShortcutService</item>
Photo Album
<item name="component">com.htc.ml.PhotoLockScreen/.LiveGallery</item>
Friend Stream
<item name="component">com.htc.idlescreen.socialnetwork/.SocialnetworkService</item>
Weather
<item name="component">com.htc.weatheridlescreen/com.htc.weatheridlescreen.service.WISService</item>
Stocks
<item name="component">com.htc.idlescreen.stock/.StockIdleScreen</item>
Clock
<item name="component">com.htc.clock3dwidget/.idlescreen.IdleScreenClockService</item>
These settings are for Sense 3.0.
-CMYLXGO

Thanks for the info. Do you know where the settings for the photo lockscreen are set (ie what album to use)? Also, how about the shortcuts?
Is there a program for android that will compare files on the phone before/after making a change (like Kheb back in the windows mobile days)?

Related

[REQ] Gingerbread popup menus

I know it sounds tedious, but I just want the menus black. To be more specific, the menus that popup if you were to hit the menu button while looking at the homescreen. It was just improve my blackfroyo theme experience. Ha, if anyone knows how to, or how I could use one of the existing themes to apply only this mod, I'd appreciate it. Obviously I'd want the text altered too so it wasn't black on black.
I have that working, however I am having trouble loacting the file to change the text from black to white
The graphics part is easy. You can just copy over the appropriate files from gingerbread drawable-hdpi to your framework file.
The test and item separator references need to be changed in framework-res.apk, /res/values/styles.xml
At work right now and can't tell you exactly, but you have to change the text for both the popup and the extended menus.
If you find the locations in styles/xml that refer to the text style they say something like PrimaryTextColorInverse or similar. just remove the inverse. This needs to be done in two places for both the popup and the extended menus.
The separators need to be changed from divider_horizontal_dark and divider_vertical dark. these will be in the same places as the text.
Once recompiled the changes will be in the resources file. make sure all of your xml files and the resource file is compiled together.
Updated with more specifics:
when you decompile framework-res there is a folder /res/values that contains a bunch of xml files. You will need to edit styles.xml.
Below changes the menu item text color to light:
Code:
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">?[COLOR="red"]textColorPrimary[/COLOR]</item>
Below changes the dividers to light:
Code:
<style name="Theme.IconMenu" parent="@style/Theme">
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item>
<item name="background">@null</item>
<item name="itemTextAppearance">@style/TextAppearance.Widget.IconMenu.Item</item>
<item name="horizontalDivider">@drawable/[COLOR="red"]divider_horizontal_dark[/COLOR]</item>
<item name="verticalDivider">@drawable/[COLOR="Red"]divider_vertical_dark[/COLOR]</item>
<item name="itemBackground">@drawable/menu_selector</item>
<item name="itemIconDisabledAlpha">?disabledAlpha</item>
<item name="moreIcon">@drawable/ic_menu_more</item>
Below Changes the expanded menu text appearance:
Code:
<style name="Theme.ExpandedMenu" parent="@style/Theme">
<item name="listViewStyle">@style/Widget.ListView.Menu</item>
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item>
<item name="background">@null</item>
<item name="itemTextAppearance">?[COLOR="red"]textAppearanceLarge[/COLOR]</item>
cgrunner said:
The graphics part is easy. You can just copy over the appropriate files from gingerbread drawable-hdpi to your framework file.
The test and item separator references need to be changed in framework-res.apk, /res/values/styles.xml
At work right now and can't tell you exactly, but you have to change the text for both the popup and the extended menus.
If you find the locations in styles/xml that refer to the text style they say something like PrimaryTextColorInverse or similar. just remove the inverse. This needs to be done in two places for both the popup and the extended menus.
The separators need to be changed from divider_horizontal_dark and divider_vertical dark. these will be in the same places as the text.
Once recompiled the changes will be in the resources file. make sure all of your xml files and the resource file is compiled together.
Updated with more specifics:
when you decompile framework-res there is a folder /res/values that contains a bunch of xml files. You will need to edit styles.xml.
Below changes the menu item text color to light:
Code:
<style name="TextAppearance.Widget.IconMenu.Item" parent="@style/TextAppearance.Small">
<item name="textColor">?[COLOR="red"]textColorPrimary[/COLOR]</item>
Below changes the dividers to light:
Code:
<style name="Theme.IconMenu" parent="@style/Theme">
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item>
<item name="background">@null</item>
<item name="itemTextAppearance">@style/TextAppearance.Widget.IconMenu.Item</item>
<item name="horizontalDivider">@drawable/[COLOR="red"]divider_horizontal_dark[/COLOR]</item>
<item name="verticalDivider">@drawable/[COLOR="Red"]divider_vertical_dark[/COLOR]</item>
<item name="itemBackground">@drawable/menu_selector</item>
<item name="itemIconDisabledAlpha">?disabledAlpha</item>
<item name="moreIcon">@drawable/ic_menu_more</item>
Below Changes the expanded menu text appearance:
Code:
<style name="Theme.ExpandedMenu" parent="@style/Theme">
<item name="listViewStyle">@style/Widget.ListView.Menu</item>
<item name="windowAnimationStyle">@style/Animation.OptionsPanel</item>
<item name="background">@null</item>
<item name="itemTextAppearance">?[COLOR="red"]textAppearanceLarge[/COLOR]</item>
Click to expand...
Click to collapse
good job)

[Q] app editing

I can just edit the pngs and the .9.pngs and everything goes fine. I can install and everything works perfectly except the font is too dark on the widget so you cant see it. I am wanting to change the font on the venues widget to white not black. If you look at the styles.xml there are 3 instances that are there and they are as follows:
HTML:
<style name="TextViewStyleVenueActivityTodoHere">
<item name="android:textSize">14.0dip</item>
<item name="android:textStyle">bold</item>
<item name="android:textColor">@color/black_end</item>
</style>
<style name="TextViewStyleAddTipTodoActivityBold">
<item name="android:textSize">16.0dip</item>
<item name="android:textStyle">bold</item>
<item name="android:textColor">@color/black_end</item>
</style>
<style name="TextViewStyleAddTipTodoActivityNormal">
<item name="android:textSize">14.0dip</item>
<item name="android:textColor">@color/black_end</item>
</style>
I am changing black_end to white. that is all I am changing. Anyone offer any assistance with this? Attached in the zip is the original apk and the pngs (yes I ran the 9patch on the .9.pngs) that I have edited and the styles.xml file is in res/values
The app compiles, signs, and installs fine, but will FC as soon as I try to open it. I also attached the adb log from trying to open the app if anyone can decipher that. lol
Any help would be GREATLY appreciated.
No one has an idea?

Sense hiding some apps?

I've installed ADW launcher to see if it yields better battery life.. it will take a while to figure that out since daily use varies from day to day.
However, I noticed that ADW drawer has few more apps than Sense does.
Following apps were in ADW's All Apps drawer, and are not in default drawer, driven by HTC Sense:
Camcoder
Car panel
Dock mode
Mirror
Quick lookup
I assume that Car panel launches itself if we have proper accessory; but I find it useful even without it.
I don't see way to add shortcuts for these when HTC Sense is set to default launcher.
ADW, Go Launcher, ETC have their own app icon packs that just pull up whatever app you have installed. The phone already has a camcorder built into the camera app, which IMO is better because who needs the clutter of 2 when it is as simple as 1 touch to alternate between the 2. Car Dock opens in the dock, no need for an app unless yours isn't launching, etc...
I have the same issue when using go launcher. There's sokebapps that won't show up in go launcher no matter what. Guayaquil are still installed but only show in the sense launcher. You can make shortcuts on the homescreeens to the hidden apps but that's kinda akward.
Anyone have any ideas why its doing this?
Sent from my ADR6425LVW using XDA App
The launchers have not yet been adapted to this phone yet. The launchers are probably looking for APK's that don't exist, so they don't overlay the app icons over the ones that are actually there.
I personally just like using Launcher Pro. I have the screen completely icon/widget free except for the drawers at the bottom. Very minimal & even when we get ICS I'll still use it.
mirror would be a pretty cool app...unless all it is is the camera app with the front facing camera on?? lol
i'm still wondering how the HELL to just have a shortcut for facebook chat so i don't have to use the damn widget, and so i don't have to download the facebook messenger app.......if you use the widget, it opens up an app......but you can't open the app unless you have the widget out. other sense 3.5 phones had the fb chat shortcut in the app drawer, but this doesn't.
postmortem. said:
I've installed ADW launcher to see if it yields better battery life.. it will take a while to figure that out since daily use varies from day to day.
However, I noticed that ADW drawer has few more apps than Sense does.
Following apps were in ADW's All Apps drawer, and are not in default drawer, driven by HTC Sense:
Camcoder
Car panel
Dock mode
Mirror
Quick lookup
I assume that Car panel launches itself if we have proper accessory; but I find it useful even without it.
I don't see way to add shortcuts for these when HTC Sense is set to default launcher.
Click to expand...
Click to collapse
Yes, sense has the ability to hide what its told to hide. IN side of /system/customize/MNS/ there is a file called Default XML. It sets up a lot of Sense options and has the following code to hide those lines:
<function name="applications_hide">
<set name="plenty" max="7">
<item name="package">com.htc.HtcNaviPanel</item>
<item name="class">com.htc.HtcNaviPanel.CarDockActivity</item>
</set>
<set name="plenty" max="7">
<item name="package">com.android.htccontacts</item>
<item name="class">com.android.htccontacts.ViewCallHistory</item>
</set>
<set name="plenty" max="7">
<item name="package">com.htc.dockmode</item>
<item name="class">com.htc.dockmode.DeskDockActivity</item>
</set>
<set name="plenty" max="7">
<item name="package">com.htc.htctwitter</item>
<item name="class">com.htc.htctwitter.TwidroidSplash</item>
</set>
<set name="plenty" max="7">
<item name="package">com.htc.android.quicklookup</item>
<item name="class">com.htc.android.quicklookup.QuickLookupTabControl</item>
</set>
<set name="plenty" max="7">
<item name="package">com.htc.stock</item>
<item name="class">com.htc.stock.ui.HomeActivity</item>
</set>
<set name="plenty" max="7">
<item name="package">com.android.camera</item>
<item name="class">com.android.camera.CamcorderEntry</item>
</set>
<set name="plenty" max="7">
<item name="package">com.htc.connectedMedia</item>
<item name="class">com.htc.connectedMedia.ConnectedMedia</item>
</set>
<set name="plenty" max="7">
<item name="package">com.adobe.reader</item>
<item name="class">com.adobe.reader.AdobeReader</item>
</set>
<set name="plenty" max="7">
<item name="package">com.android.camera</item>
<item name="class">com.android.camera.MirrorEntry</item>
</set>
<set name="plenty" max="7">
<item name="package">com.android.htccontacts</item>
<item name="class">com.android.htccontacts.DialerTabActivity</item>
</set>
<set name="plenty" max="7">
<item name="package">com.android.stk</item>
<item name="class">com.android.stk.StkLauncherActivity</item>
</set>
<set name="plenty" max="7">
<item name="package">com.htc.facebookchat</item>
<item name="class">com.htc.facebookchat.app.FacebookChatSwitchActivity</item>
</set>
</function>
Click to expand...
Click to collapse
To restore which function you want its as simple as remove the appropriate lines (Need custom ROM or S-OFF / ROOT). The first iteration of Evo 3D ROMS (1.x) had the mirror in the launcher. The second iteration (2.x) hid the Mirror. Why? IDK. They just did. Thats how I learned about the hidden apps in Sense.
Hope that sheds some light on it for you.
Ha! And there's facebook chat app. Crazy stuff man..why do they hide it?
Sent from my ADR6425LVW using XDA App
jayochs said:
Ha! And there's facebook chat app. Crazy stuff man..why do they hide it?
Sent from my ADR6425LVW using XDA App
Click to expand...
Click to collapse
Because there is so much damn bloatware on it to begin with? Hell if I know, lol
jayochs said:
Ha! And there's facebook chat app. Crazy stuff man..why do they hide it?
Click to expand...
Click to collapse
Probably because the design team for this phone looked at user interaction models based on data collected over time about which apps were launched from widgets and which were launched by icons, and found that fewer people used the app the way you want to.
this is what I'm removing to hopefully show the mirror app in the drawer;
<item name="package">com.android.camera</item>
<item name="class">com.android.camera.MirrorEntry</item>
</set>
<set name="plenty" max="7">
But it still doesn't. Any ideas?
Thanks.
Sent from my ADR6425LVW using Tapatalk
scrosler said:
To restore which function you want its as simple as remove the appropriate lines (Need custom ROM or S-OFF / ROOT).
Click to expand...
Click to collapse
I pulled my xml file removed:
<set name="plenty" max="7">
<item name="package">com.android.camera</item>
<item name="class">com.android.camera.CamcorderEntry</item>
</set>
Then replaced it, rebooted and still doesn't show. What am I missing?
I'm running 1.1 btw
Nothing on this???

[SOLVED][Q] change font colors at notification row

hi there
ive been searching alot just get this figured out, but must through the towel in the ring, and ask
the problem is that a cant seem too find the place that where the font color/style is loaded, at the notification row events in the expanded status bar.. ive looked at tw_status_bar_expanded.xml, status_bar_latest_event_content.xml and colors.xml, but cant seem to find it.. if anyone is able to help me out, i would be really gratefull..
thx in advance..
screenshot attached, for better showing what im talking about..
EDIT: nevermind, think ive found it myself, in the styles.xml at framework-res.apk...
<style name="TextAppearance.DeviceDefault.StatusBar.EventContent" parent="@style/TextAppearance.StatusBar.EventContent">
<item name="textSize">15.0dip</item>
<item name="textColor">#ff9b9b9b</item>
</style>
<style name="TextAppearance.DeviceDefault.StatusBar.EventContent.Title" parent="@style/TextAppearance.StatusBar.EventContent.Title">
<item name="textSize">20.0dip</item>
<item name="textStyle">normal</item>
<item name="textColor">#ffe6e6e6</item>
</style>
<style name="TextAppearance.DeviceDefault.StatusBar.EventContent.Time" parent="@style/TextAppearance.StatusBar.EventContent.Time">
<item name="textSize">15.0dip</item>
<item name="textStyle">normal</item>
<item name="textColor">#ff9b9b9b</item>
</style>
Click to expand...
Click to collapse
havent tested it yet, but will try it later, and update this thread
EDIT2: yes, that did the trick, works now

[Q] Overlaying different packages' resources on CM Themes

Hi, First of all i know i shouldn't post question here,anyways i checked out Q/A section and its like a noob trash.So if i write it there i don't think i can get an answer.
So let me tell you what i want to do..
Let's look that code snip
--------------------
<style name="TextAppearance.Holo.Widget.Switch" parent="@android:style/TextAppearance.Holo.Small">
<item name="android:textColor">#00ffffff</item>
</style>
---------------
you know red text is like getting that style from framework-res.apk and blue one is overwriting to red one's specific parts.
So,you didn't lose main stuff from red part...
That's okay for framework-res styling...
but how about working on another app packages' styles
The code snip below is from original Settings app's styles.xml
-----------------
<style name="Theme.Settings" parent="@*android:style/Theme.Holo">
<item name="android:actionBarStyle">@*android:style/Widget.Holo.ActionBar.Solid</item>
<item name="apnPreferenceStyle">@style/ApnPreference</item>
<item name="ic_menu_add">@drawable/ic_menu_add_dark</item>
<item name="ic_menu_moreoverflow">@*android:drawable/finger_print_arrow_019</item>
<item name="ic_wps">@drawable/ic_wps_dark</item>
<item name="wifi_signal">@drawable/wifi_signal_dark</item>
</style>
------------
The code below is my code which i used on cm11 theme
-------------
<style name="Theme.Settings" parent="@*android:style/Theme.Holo">
<item name="android:actionBarStyle">@style/MyActionBar</item>
</style>
------------
if i use that changed code it correctly changes things on Settings app..
But when i enter into Wifi settings app crashes because of these things
<item name="apnPreferenceStyle">@style/ApnPreference</item>
<item name="ic_menu_add">@drawable/ic_menu_add_dark</item>
<item name="ic_menu_moreoverflow">@*android:drawable/finger_print_arrow_019</item>
<item name="ic_wps">@drawable/ic_wps_dark</item>
<item name="wifi_signal">@drawable/wifi_signal_dark</item>
everything else in app works good.
So theme's wifi part will be broken if i use like above.
Let me tell you the another way,
hmm @*android:style/Theme.Holo comes from framework-res so i can easily create overlay for it but if i do that for Theme.Holo , it will change the Settings app correctly but it also will broke all other Theme.Holo used apps
I don't want both of these things.
How about overlaying settings's Theme.Settings
like that
So app won't crash and it will be themed only the settings app
-------------
<style name="Theme.Settings" parent="THEMES SETTINGS STYLE RESOURCE FROM SETTINGS APP">
<item name="android:actionBarStyle">@style/MyActionBar</item>
</style>
------------
I couldn't find something like this.
What am i supposed to do??

Categories

Resources