Ok this is geared to the Devs, about the 2.1 lockscreen - Hero CDMA Android Development

Ok after checking out my brothers droid with factory 2.1 he can set a lockscreen wallpaper from the android photo album. Now my question would be we can remove the htc lockscreen and recover the factory 2.1 lockscreen can we get the factory photo album ( not the htc one) in our phones, guessing a possible apk. if so we may be able to set the wallpapers for the lock screen in this manner. I am a newb, just got the cdma hero 3 weeks ago and have spent the last 3 weeks reading these forums. (I think my brain is going to explode at some point.... LOL). I am hoping that this may be an easy fix for what so many are asking for.

The problem is, our version of the vanilla lockscreen has no provisions in the lockscreen itself, that I can see, for using / referencing a wallpaper set at the system level (which we can do / is used by the HTC Locksceen).
Thus, the current process we have in place is to hack the XML that controls the formatting / display of the vanilla lockscreen. We hack the XML by replacing the value in the XML that specifies a background color, by having it point to a fixed background image, to use as the wallpaper, instead.

JsChiSurf said:
The problem is, our version of the vanilla lockscreen has no provisions in the lockscreen itself, that I can see, for using / referencing a wallpaper set at the system level (which we can do / is used by the HTC Locksceen).
Thus, the current process we have in place is to hack the XML that controls the formatting / display of the vanilla lockscreen. We hack the XML by replacing the value in the XML that specifies a background color, by having it point to a fixed background image, to use as the wallpaper, instead.
Click to expand...
Click to collapse
Easy for you to say.......ROFL

chfields said:
Easy for you to say.......ROFL
Click to expand...
Click to collapse
It is easy. Its not rocket science. Anybody can figure it out if you at least try...

Related

[Live Wallpaper] 3D Active Blocks **updated 5/22/11 **.

This is my first android active opengl 3D wallpaper. Its tilt sensitive and when you touch the wallpaper it causes a ripple effect in the blocks. I have some options to remove the random z axis movement and two different block textures.
I’ve only tested it on my nexus one, and I’m looking for feedback(ideas) and how it runs on other active wallpaper enabled devices.
Thank for trying it out.
Video preview http://www.youtube.com/watch?v=ttkBMfPyrXQ
Version update 3.2.3
Added grid rebuild effect when wallpaper comes back in view. Can also be disabled in settings.
Reduced app size, project cleanup and changed some textures to jpgs.
Version update 3.2.2
More work on gallery image selection and the image is now better aligned with texture.
More work on movement code, hoping this corrects the grid position errors
Version update 3.2.1
Rebuilt with target OS 2.1 and lowered texture size to help reduce FC's.
Latest version 3.2.
- Added gallery image clipping, to better size image to grid.
- Uploaded app to market.
Features and effects for version 3.1
- Sticky finger effect (item can stick to your finger and fall back down)
- Disable accelerometer option, saves on battery
- Optimized touch selection.
- Made changes to gallery image loading. Reduced memory footprint and better scaling. (still in work)
- Homescreen page position now tilts the grid.
- Worked on landscape mode. (still in work)
- New preference settings.
**Note It can now be downloaded from the market, just seach for "activeblocks" or use the below link.
market download link http://market.android.com/details?id=com.nibblertech.activeblocks&feature=search_result
Why it asks permissions for Storage and Phone calls?
I have installed it on my HTC Desire and it seems to be working fine.
obvious question is... how's the batterly life since it uses the sensors?
tsouza said:
Why it asks permissions for Storage and Phone calls?
Click to expand...
Click to collapse
I'm looking into why its wanting those permissions, because the only one I use is ACCESS_SURFACE_FLINGER for object selection screen buffer writing.
Also I'm working on custom texture selection, which gives you the abillity to use any picture for the textures.
As for battery life, my wallpaper stops running when its not in view so that should help battery life.
Version 3 updated, many new features and effects, see first post for details.
Added video preview see first post for link.
Looks very nice.
cool idea, but it needs higher quality images to start. maybe some additional settings to tweak the users experience?
Looks cool. going to give it a try.
How to remove this??????
for my dext it's tooooo heavy
can't find any way.. hmmm
edit.
es file xplorer can't find it but standard app remover yes... sorry (however nice app )
So I downloaded the app for my HTC Desire and sent it to me through mail. I installed the app and it said that it was installed. But I can't seem to find the app anywhere in my app list, anyone knows why?
I tried this out, it seems to be pretty cool, but on the Droid X it seems to tile images. Maybe it is set to work with a certain pixel size image and tiles them if they are over that size?
You can remove this when you go to settings --> Aplications --> Manage applications --> All
it should be in that list
thomasedridge said:
So I downloaded the app for my HTC Desire and sent it to me through mail. I installed the app and it said that it was installed. But I can't seem to find the app anywhere in my app list, anyone knows why?
Click to expand...
Click to collapse
It's a live wallpaper, not an app. You set it as a wallpaper. That's why the thread starts with [Live Wallpaper]
Hehe.
Very cool. Woul love to pick an album, rather than just a single picture from my gallery. Perhaps picking a set number of pics would be ok, also.
lwp
I have never had a problem installing apps before, some reason with this i get an error saying that no app can be found to install it. Any ideas?
im a noob to all of this.. what steps need to be taken to get this onto your device? galexy s, vibrant to be exact
Its a cool live wallpaper its just makes my nexus choppy as hell, also I dont like the fact when you restart your phone and have a custom image the screen comes back on all white. Otherwise its pretty damn cool.
Very nice concept mate, works flawlessly on my SGS

Timescape themes (Update for 2.1)

For 2.1 themes see post #17 on page 2: http://forum.xda-developers.com/showpost.php?p=9049613&postcount=17
I decided to open a thread to share the knowledge I have collected on timescape themes. This also partially applies to mediascape and up until now has been split between these two threads:
http://forum.xda-developers.com/showthread.php?t=737778&page=46
http://forum.xda-developers.com/showthread.php?t=765686 Please read this!
I thought it would be better to combine this into one thread that will be easier to find. If anyone disagrees then please post with reasons and alternatives. I will update this first post as we figure out more tweeks etc. (hopefully it will need a big rework soon because SE finally gets us 2.1 )
Before I start, thanks to Chewitt for finding the acet files, and for inspiring me to start messing with the look of my x10 with his Dark10 themes.
Timescape (and mediascape) do not store all of their images in the .apk resources. Oh no, that would just be too logical, and we are talking about Sony Ericsson here
The timescape theme .apk resources do contain some of the images used (e.g. the trash can and app drawer handles), and the actual Timescape .apk has the resources for the tile images etc. I'm not going to go into this as there is enough content about modifying these sorts of resources here. What I will go into is where the timescape background, wave animation, pagination slider colours and the tile alpha blending and default colours.
1. The background: This is stored in an .acet file (see the first of the above posts). This is an file that basically just contains a samll header and then rgb information (or sometimes argb, this is specified in the header which I haven't got 100% sussed yet). The background images are in the assets/ts folder in the theme .apk and are called ts_bg_app.acet and ts_bg_home.acet for the application and timescape home respectively. These can be modified with acetConverter.exe. You can load an image and export an acet file or you can go the other way. TS uses acet backgrounds without an alpha channel so leave the alpha checkbox unticked when creating them (it might work with alpha... never tried...).
2. The Tiles: I'm pretty sure the alpha blend images for the tiles are found in the system/usr/semc/seee/files folder (alpha_tile.acet and alpha_tile_fade*.acet) but I haven't modified these yet. As an aside the background for the first page of mediascape is here too. More important is the default background for a tile. This file, ts_tile_empty.acet, is a single pixel file found in the assets/ts folder for each theme. This specifies the solid colour to be used as a background for the alpha overlay on empty tiles.
3. Animation files: Wave and Pagination. This is all stored in three .afx java animation files in the themes assets/ts folder (ts_bg_wave.afx, pagination_glow.afx and pagination_area.afx). pagination_area is the square around the selected item in the scroll menu at the bottom (or the top if TS is the home page) and pagination_glow defines the lines at the top and bottom of this area. I haven't got these files fully sussed either, at the moment I'm restricted to doing some awful byte replacement to change the color (I can also change the wave pitch, but it doesn't look any good). I have attached an exe to generate these files (SetTimescapeAnimationColor.exe). Click on the white square to choose a base color and use the buttons to generate whichever of the files you want. If anyone knows how to edit these files properly please let me know, I come from a c# and c++ background and don't really know what I'm doing with java...
Thats pretty much it. Just sort out 6 files, update the png resources (the thumbnails for the theme selection are in the Timescape.apk resources folder) and you're done.
Note: I have had problems when I modified the wrong bytes in the afx files. Basically, after selecting the theme timescape just crashed. If you replace the theme file it still won't start, you need to clear the application data to get it running again. Along the same lines, after modifying a theme you need to reselect it from the themes menu as the files are cached.
Please let me know if I missed anything.
Update: I have attached the source code for the animation color tool. Please keep in mind that this was just a bit of code quickly thrown together so we can modify the animation color, I don't usually write code that looks like that
The project is a C# project from visual studio 2010 but the meat of it is in MainForm.cs so just open that if you use a different language/dev environment.
Here is the code from one of the buttons. Resources.pagination_glow is a byte array from an embedded resource (pagination_glow.afx).
Code:
string r = string.Format("{0:000}", (int)(((double)colorPanel.BackColor.R / 255.0) * 100));
string g = string.Format("{0:000}", (int)(((double)colorPanel.BackColor.G / 255.0) * 100));
string b = string.Format("{0:000}", (int)(((double)colorPanel.BackColor.B / 255.0) * 100));
byte[] bytes = new byte[Resources.pagination_glow.Length];
Array.Copy(Resources.pagination_glow, bytes, Resources.pagination_glow.Length);
bytes[949] = (byte)r[0];
bytes[950] = (byte)'.';
bytes[951] = (byte)r[1];
bytes[952] = (byte)r[2];
bytes[953] = (byte)',';
bytes[954] = (byte)g[0];
bytes[955] = (byte)'.';
bytes[956] = (byte)g[1];
bytes[957] = (byte)g[2];
bytes[958] = (byte)',';
bytes[959] = (byte)b[0];
bytes[960] = (byte)'.';
bytes[961] = (byte)b[1];
bytes[962] = (byte)b[2];
bytes[963] = (byte)',';
using (FileStream stream = new FileStream(saveDialog.FileName, FileMode.Create))
{
stream.Write(bytes, 0, bytes.Length);
}
What is important to note is that the embedded afx resources came from the orange theme, the other themes will require different offsets for the byte modification. I'm not sure why the different themes have different code here, I haven't looked closely at the wave animation code for each theme so there may only be a difference there, or there could just be one more space here and there in the preceeding lines or four spaces instead of a single byte tab ('\t')...
Anyway, the next step is to try and modify the number of bytes in the code and see if it still works, on my first few tests timescape just crashed so I thought that the number of bytes of clear-text code may be stored in the header. I'm not so sure now as I think I may have just been having problems while mixing the use of the .Net stream classes for reading an writing. I'll check this out though.
If we can modify the code however we want then I just need to learn a bit more java
The code for the wave animation is in the comments at the bottom of MainForm.cs. Here is the line with the characters being modified in bold:
fcolor.rgb = vec3(1.0, 0.91, 0.72) * ambientRatio + vec3(1.0, 0.516, 0.0) * specularRatio;
LOL this is just lazy lol, Thanks for the guide i will get the other 3 i need for Dark10 sorted on sunday.
this all sounds awesome =)
May I suggest posting the source code to your .exe files? that way others can pitch in and help improve the tools, too. slap on the GPL for a decent licence and it should be no problem
ttxdragon said:
this all sounds awesome =)
May I suggest posting the source code to your .exe files? that way others can pitch in and help improve the tools, too. slap on the GPL for a decent licence and it should be no problem
Click to expand...
Click to collapse
Good idea I have just updated the first post. I have only added the animation tool source as the .acet converter is just a direct color translation except for the header which is post in the acet thread linked in the first post.
I can post this code as well if anyone is really interested, but it will have to wait until I am back at work on the 14th, or until the VPN starts working again
VPN's up - posted the rest of the source.
calum.. just got a new charger today lol so back on track.. although some reason i cant seem to get my colour to change at al? ive rebooted, tried task managers n al but no luck..
Edit: ignore that.. managed to get it working! like an idiot i forgot to add the code at the top for mount/remount lol.. feel like a blonde
Has anyone got an original version of ms_bg_background_home_icn.acet?
Being the genius that I am, I tried to edit it without backing it up first.
I tried to convert a png image to an acet file using that acet converter but ended up with a background with a similar issue to what's in this post. Will read through all the posts tomorrow and try again.
Hey buddy any more progress with this project?
Sorry, on the road at the moment. I'll be back onto this next week.
@Mobzter: glad you got it sorted.
@Sixpence: you may have exported the image with the alpha channel. Make sure the alpha option is off for the timescape and mediascape backgrounds. I'll add complete backups to the first post next week
heres a backup of that file
_calum_ said:
@Sixpence: you may have exported the image with the alpha channel. Make sure the alpha option is off for the timescape and mediascape backgrounds. I'll add complete backups to the first post next week
Click to expand...
Click to collapse
Ah, yeh, I think that's what I did. I'll try again and see how I go. Cheers!
Thanks for backup Mobz!
EDIT: Sweet, that worked!
I just thought I'd post a link to my dark Timescape theme here.
Timescape (Dark)
If anyone else has got any modified timescape themes please post them (including the modified framework and thumbnail images). It would be nice if we didn't just all modify the Indigo them (as I did above) as if we use neutral images for the default contacts etc. then we can easily change between the different themes.
Any interest
Just a bump to see if anyone is interested in doing anything with the Timescape animation except changing the color.
If they are then I might get back into modifying the .afx files, otherwise I'll probably just move on....
I don't actually use it that much and now I've got rid of the blue I'm sorta happy, but it might be kinda cool if we can add our own animations to replace the wave...
How about the mediascape animation? I wanna make it melt into the next screen. Do u think that's doable?
How can i chnge theme for x10i
Sent from my X10i using XDA App
gavriel18 said:
How about the mediascape animation? I wanna make it melt into the next screen. Do u think that's doable?
Click to expand...
Click to collapse
Do you mean instead of the spline/fade animation when you hit the 'more' button? I think a melting animation would be pretty ambitious and probably only doable if the fade is actually part of the animation. I'll see if I can get an editor slapped together so we can just modify the afx code directly. I'll have a look at the mediascape animation files once I've got that done...
xian08 said:
How can i chnge theme for x10i
Click to expand...
Click to collapse
Sorry, I need a bit more information here. Where exactly are you stuck? Do you just want to install a different theme that you have from one of the x10 themes in another forum, or do you want to create you own?
That's exactly what I was thinking, a melt to a fade into the next screen.
I'm trying to understand how it works but i don't have enough spare time right now.
OK, 2.1 is here and the file formats for timescape themes have changed...
First off, the apk names have changed. They are now named like this:
TimescapeLargeUITheme[ThemeName].apk (e.g. TimescapeLargeUIThemeSakura)
The .acet files are now .uxraw files. The file header and content has also changed: the header is now 8 bytes, that can be split into 4 16bit integers. The first two I'm not sure about, (second one always seems to be 8...) but the 3rd and 4th are width and height respectively. After the header we still have the color info, but it seems that alpha is always included. The bytes are in the order R G B A (the alpha is now the 4th byte instead of the first).
I have attached the new converter and source.
Edit: I originally wrote an incorrect value for the first byte in the header (20 instead of 0x20... oops ) this resulted in a black background...
The afx files have also changed to uxsh. There seems to be a bit more in these files but the animation code is still in plain text. I'm working on an editor, and will update this post when it's done.
2.1 or 1.6 ?
Is this for 2.1 or 1.6 ?
Looks a silly question... But, am little cautious and more excited to see this on my 2.1update1.
Thx for such a great work.
_calum_ said:
OK, 2.1 is here and the file formats for timescape themes have changed...
Click to expand...
Click to collapse
mitalbr said:
Is this for 2.1 or 1.6 ?
Click to expand...
Click to collapse
2.1 (I had also changed the thread title to make this clearer )
_calum_ said:
2.1 (I had also changed the thread title to make this clearer )
Click to expand...
Click to collapse
I was just adb'ed the file system and I found I have following files...
TimescapeLargeUI.apk
TimescapeLargeUIThemeBlue.apk
TimescapeLargeUIThemeGreen.apk
TimescapeLargeUIThemeIndigo.apk
TimescapeLargeUIThemeOrange.apk
TimescapeLargeUIThemeSakura.apk
TimescapePluginManager.apk
I couldn't locate...
Timescape.apk
TimescapeThemeIndigo.apk

[Q] Android porting, widgets are all black.

My situation the same as that another man in the following post has.
(I am new and unable to embed outside URL's in my post. Please search Google for 'when switch to 32 bit graphics icons go black'.)
I am porting Android to a MIPS-based device. After modifying the frame buffer and gralloc, the wallpaper is displayed in the correct colours. But all widgets are black.
Since the frame buffer's post() function just received composed data, and the wallpaper's colour is correct, I guess the code that draws widgets has some problems. This may be the display data I set is different (or wrong) from what the code expects.
If it is not too much trouble, could you give me any hint about the files I should check? Or which files are related to drawing widgets?
I have spent a few days debugging this but there was no progress.

[Q]Am I missing something? bootanimation jpegs not work after editing?

EDIT!!! F*&% photoshop defaults to background again when I save! This is ****ting me to tears.
EDIT: Just had a read of this articleabout photoshop background layer being saved by default after reading this guy's thread here
Short answer is that Layer 1 is an arbitrary assigned value to any layer above the background. Layer 0 is what your image needs to be so simply renaming the default value of 1 to 0 works AFAIK. I will be testing this in a couple of minutes.
Will leave the rest as a reference for everyone else. They may learn from my stupidity. I did use the search button though it just took searching and searching till I found that guys thread above that had something specific that applied to my situation.
Hi,
I have am a confident at Android, I have build ROMs and I have a great deal of knowledge and for some reason the most simplest thing stumps me and that is getting bootanimations to work. I understand how they work and I know its not the frame rate or anything like that it has to be something to do with my export settings? Can someone here point me in the right direction?
I will give you a scenario here and why I have mentioned the above. I can get an existing boot animation that is 100% functioning and working and then I might edit the images, say for instance I am changing the colours. I don't change their size or physical dimensions in any way shape or form (they will even play in the preview emulator perfectly), I flash them to the device and nothing? Blank screen on boot up. It completed the boot and opens the OS, but for teh duration of the boot sequence when there is usually a boot animation working it shows completely blank?
Surely it has to do with my export settings? I'm competent with use of GIMP and Photoshop, I have GIMP 2.8 the latest and PS CS6.
Can someone with some knowhow here PLEASE help me with supply "secret settings" for their export of images?
I read somewhere that the images need to be reindexed? I don't know how to do this? I have edited other PNGs that are non-bootanimation PNGS and I knew I had to uncheck indexing and check the box for R,G,B and that allowed me to edit the image.....but if I check the box for an boot animation image (set to R, G, B) back to indexed; when I close the image and re-open it again its back as a R, G, B image? WTF?
I have heard somewhere they need to be 24bit? I have NFI what that means or where to change it? My version of photoshop only has listings for 8bit, 16bit and 32bit?
Yes my kernel allows for bootanimations. Yes a boot animation was working on my phone!
I can change nothing except the colour of the images; package them in the same location in the zip; Test on the previewer for Windows; load it to the phone -> nothing!
EDIT: YES Permissions are set correctly. I can even change back to the boot animation that I changed the colour and it works perfectly
I read now 8 bits per channel. And there is 3 being that they are RGB, which makes them 24bit anyway? WTF is wrong. I fail hard if I can't get a boot animation working LOL.
Jarmezrocks said:
I read now 8 bits per channel. And there is 3 being that they are RGB, which makes them 24bit anyway? WTF is wrong. I fail hard if I can't get a boot animation working LOL.
Click to expand...
Click to collapse
you should upload here that bootanimation.zip file

[Q] [MTK6577] [ICS] How to change animation scale without rebuilding settings.apk?

Is there a way to change the speed (and weight!) of list scrolling animations? Like in most devices with the "window/transition animation duration/scale". I tried googling it, but only found a method that requires rebuilding the settings.apk file... Maybe there's an external application to change the settings anyway? My device's list weight is so light it takes ages to stop! I already installed a third party launcher, so at least the desktops and app drawer scroll fast, but the lists keep bugging me. I've heard there's a way to do this with editing build.prop, but I once bricked my Xperia E by editing it according to some tutorial from XDA (I really have no idea what went wrong), so I'm a bit hesitant to risk again.
Anybody?

Categories

Resources