FORUMS
Remove All Ads from XDA

[TOOL][MIUI] Lockscreen-Debugger

700 posts
Thanks Meter: 302
 
By v1r0x, Senior Member on 28th March 2012, 12:22 AM
Post Reply Email Thread
Hello everyone,

I hope this is the right forum. Wanted to post in dev-forum, but not sure if I may or not...

Anyway: I want to introduce my latest MIUI project.
Current working name is "ls debugger". Suggestions are welcome

For downloads, changelog and bugs have a look at post #2

Description:
I found the hole LS testing progress (edit, zip, usb mount, copy, apply, ...) annoying, so I started this program.
It is still in beta state. There are still some errors or force closes because I haven't implemented all error check functions.
The reason why I started this thread now, is that I want some feedback and maybe new ideas and suggestions.

Requirements:
- Java Runtime Version 7
- (MIUI Lockscreen for 2.3 based builds) Don't know if v4 LS will work. Test and tell me

Instructions:
The usage is really simple.
After unzipping the file you'll have 5 files/folders:
- advanced (folder)
- wallpaper (folder)
- MIUI-LS-Tester.jar (executable)
- bgtWeather.db (9sweather db-file)
- systemCPs.db (calls, texts, contacts for ContentProviders [not finished])

You can replace the wallpaper and advanced folder with your own, but no guarantee that it will work.
Some features aren't implemented (unlocker and variables of elements. e.g.: #unlocker.move_x)
Have a look at the given manifest file and you'll see what will work and what won't.

You can start the program with doubleclick the 'MIUI-LS-Tester.jar' or open a terminal, move to the location where you've extracted the zip file and type:
Code:
java -jar MIUI-LS-Tester.jar
In the terminal you will get some information about the parsing and other informations.

At first a window with 2 textfields appears. In this you have to set the width and height of your lockscreen.

If you have a config.xml file you can set the variables on the right side in the "config.xml" tab (after a click on 'Preview').

To get a preview you have to open your manifest.xml and click on 'Preview'.
Also you can choose another font.

After a click on 'Preview' you'll get 3 more buttons.

Screenshot:
I think it's clear what this buttons will do
It saves a screenshot of the left panel in <MIUI-LS-Tester.jar-Location>/preview/lockscreen_preview_x.jpg

create mtz:
this will create a mtz file.
After a click you can choose some things. Add your font, wallpaper, previews...
Afterwards you can create/modify the description.xml file
Thats it

toggle buttons:
this will toggle the Trigger-Buttons.
Because they are not visible in your lockscreen you can do this with this button.

On the top of the right panel you can set some variables.
I think it's clear, so no description.

If you modified your manifest.xml (and the ls debugger is still open) just click on preview and the changes will be loaded.

Credits:
my brother: for helping me with the "calculator"
picard666: for some help and suggestions
jdom team: for the best java xml parser.
jfont-chooser team and david from stackoverflow: for the fontchooser.
zentus: for the sqlite lib.
pomenx: from the miui team for manifest reference thread @ xda.
GNU: for their java port of getopt
songd for the java pre processor

regards
-v1r0x
Attached Thumbnails
Click image for larger version

Name:	start.jpg
Views:	1460
Size:	23.7 KB
ID:	969779   Click image for larger version

Name:	choosefont.jpg
Views:	1332
Size:	30.6 KB
ID:	969780   Click image for larger version

Name:	choosefile.jpg
Views:	1229
Size:	31.5 KB
ID:	969781   Click image for larger version

Name:	config.jpg
Views:	1349
Size:	44.7 KB
ID:	969782   Click image for larger version

Name:	togglebuttons.jpg
Views:	1209
Size:	41.2 KB
ID:	969784   Click image for larger version

Name:	includes.jpg
Views:	1120
Size:	41.7 KB
ID:	969785   Click image for larger version

Name:	desc.jpg
Views:	1076
Size:	42.0 KB
ID:	969786  
The Following 13 Users Say Thank You to v1r0x For This Useful Post: [ View ] Gift v1r0x Ad-Free
28th March 2012, 12:23 AM |#2  
v1r0x's Avatar
OP Senior Member
Thanks Meter: 302
 
Donate to Me
More
Download:

December 30, 2012
LS-Debugger alpha b121230.1

October 31, 2012
LS-Debugger alpha b121030.2

October 24, 2012
LS-Debugger alpha b121024

June 19, 2012
LS-Debugger alpha 4

April 28, 2012
LS-Debugger alpha 3

April 24, 2012
LS-Debugger alpha 2

March 27, 2012
LS-Debugger alpha

Changelog:
  • Text,DateTime and Image implemented
  • ToolTip-Text for Text, DateTime and Image (displays the given name of the element)
  • ElementGroup implemented
  • VarArrays implemented
  • ContentProvider for weather apps implemented (only 9s-weather)
  • ContentProvider for calls/texts implemented (db-file included)
  • FontChooser implemented
  • category-attribute implemented (only for Text at this time)
  • rotate and AA works for Image, Text and DateTime
  • screen_width/_height has to be set on start
  • the last dir will be stored in a file. No annoying dir-changing
  • implemented "where" for ContentProvider => mistake in the db-file (fixed on next update)
  • added an option for a background image (stored in folder "wallpaper" like on miui)
  • fixed the db-file
  • rotate Text/Image (re-set bounds)
  • By hitting the button 'Screenshot' a screenshot will be stored in folder 'preview' (Button appears after hitting 'Preview')
  • parse Time-Tag
  • Button to create a zip/mtz file
  • create a description.xml (after hit the zip button)
  • Added checkboxes to (de)select wallpaper, preview-folder and font for the mtz file
  • review the config-file
    => width, height, path and font will be stored
  • review create/modify of the description.xml
  • only digits are allowed for some textfields (width/height and texts/calls)
    => no annoying checks and/or errors
  • config.xml
    • NumberChoice
    • NumberInput
    • StringChoice
    • StringInput
    • CheckBox
  • MusicControl
    • Image (without 'music_album_cover')
    • Text (without 'music_display')
  • parse (normal) Buttons (not MusicControl)
  • Added a scrollbar for low screen resolutions
  • minor fixes
  • added a button which shows system- and program-information (for debugging). It's the quadratic button on the bottom left corner of the control-panel
  • added more output information (creating the mtz file will give more output)
  • fixed a font bug (if the font wasn't a ttf the program crashed)
  • added a splash screen
  • updated to Java 7
    New Fixes (October 31, 2012):
  • Drag&Drop support for manifest.xml file
  • push mtz via adb (note: don't forget to set right path in "File" menu!!!)
  • added a "?"/help/about menu
  • added command line args support. (-dx is the debug level. 0 means only errors, 1 more, 2 more than 1 and 3 full debug. -f <file-path> so you don't have to set it everytime using the menu. -s to hide splash, -S to enable splash [default])
  • cleaned up the code
  • description.xml modding can now be done in a tab and not only while creating the mtz
  • "live" support. You can change font, battery state/level, messages, sms/texts without hit "preview" again
  • DateTime and Text supported in live-feature (the one above)
  • bug fixes of latest features
  • new layout of the control center, including the button section (the don't "popup" anymore.)


Bugs/Not yet implemented:
Important:
  • parse variable-elements (e.g. #unlocker.move_x)
  • parse Unlocker
  • parse MusicControl
    • Buttons
    • MusicControl overlays triggers
  • parse config.xml => only AppPicker left
  • parse animations
  • Update variables during runtime (primarily for unlocker and animations) [10% done!]
Secondary:
  • complete DateTime attributes
  • complete Text attributes
  • complete Image attributes
  • connect db-Files for every weather app
  • complete v4 support
  • refactor code
The Following 4 Users Say Thank You to v1r0x For This Useful Post: [ View ] Gift v1r0x Ad-Free
30th March 2012, 01:30 AM |#3  
v1r0x's Avatar
OP Senior Member
Thanks Meter: 302
 
Donate to Me
More
I have a request:

I want to include as much as possible weather-provider and/or other contentprovider.

So, here my request:
If you want to support and help me and this program, please post an App with ContentProvider and a modified db-File + the ContentProviderBinder uri.

I hope someone helps.

-v1r0x
The Following User Says Thank You to v1r0x For This Useful Post: [ View ] Gift v1r0x Ad-Free
23rd April 2012, 05:56 AM |#4  
kezn715's Avatar
Senior Member
Flag Malaysia , Penang
Thanks Meter: 192
 
More
Not able to see the full view
Quote:
Originally Posted by v1r0x

Hello everyone,

I hope this is the right forum. Wanted to post in dev-forum, but not sure if I may or not...

Anyway: I want to introduce my latest MIUI project.
Current working name is "ls debugger". Suggestions are welcome

Description:
I found the hole LS testing progress (edit, zip, usb mount, copy, apply, ...) annoying, so I started this program.
It is still in beta state. There are still some errors or force closes because I haven't implemented all error check functions.
The reason why I started this thread now, is that I want some feedback and maybe new ideas and suggestions.

Requirements:
- Java Runtime

Instructions:
The usage is really simple.
After unzipping the file you'll have 5 files/folders:
- advanced (folder)
- wallpaper (folder)
- MIUI-LS-Tester.jar (executable)
- bgtWeather.db (9sweather db-file)
- systemCPs.db (calls, texts, contacts for ContentProviders [not finished])

You can replace the wallpaper and advanced folder with your own, but no guarantee that it will work.
Some features aren't implemented (unlocker and variables of elements. e.g.: #unlocker.move_x)
Have a look at the given manifest file and you'll see what will work and what won't.

You can start the program with doubleclick the 'MIUI-LS-Tester.jar' or open a terminal, move to the location where you've extracted the zip file and type:

Code:
java -jar MIUI-LS-Tester.jar
In the terminal you will get some information about the parsing and other informations.

At first a window with 2 textfields appears. In this you have to set the width and height of your lockscreen.

If you have a config.xml file you can set the variables on the right side in the "config.xml" tab (after a click on 'Preview').

To get a preview you have to open your manifest.xml and click on 'Preview'.
Also you can choose another font.

After a click on 'Preview' you'll get 3 more buttons.

Screenshot:
I think it's clear what this buttons will do
It saves a screenshot of the left panel in <MIUI-LS-Tester.jar-Location>/preview/lockscreen_preview_x.jpg

create mtz:
this will create a mtz file.
After a click you can choose some things. Add your font, wallpaper, previews...
Afterwards you can create/modify the description.xml file
Thats it

toggle buttons:
this will toggle the Trigger-Buttons.
Because they are not visible in your lockscreen you can do this with this button.

On the top of the right panel you can set some variables.
I think it's clear, so no description.

If you modified your manifest.xml (and the ls debugger is still open) just click on preview and the changes will be loaded.

Credits:
my brother: for helping me with the "calculator"
picard666: for some help and suggestions
jdom team: for the best java xml parser.
jfont-chooser team and david from stackoverflow: for the fontchooser.
zentus: for the sqlite lib.
pomenx: from the miui team for manifest reference thread @ xda.

regards
-v1r0x



Hi , thx to tis application i able to cutomize my ls easier..
bt wad i encounter is...once i run the application i might not able to see the full view of it...
my laptop resolution are 1200 x 800
i tried change the resolution to LS resolution to 480 X 500 and i maximized the application window it still the same...
any idea ???



Uploaded with ImageShack.us
23rd April 2012, 12:18 PM |#5  
v1r0x's Avatar
OP Senior Member
Thanks Meter: 302
 
Donate to Me
More
thanks for your reply.

My resolution is 1920x1200, so I forgot to check other resolutions.
I'll try it later on another screen resolution and upload an updated version.
The Following User Says Thank You to v1r0x For This Useful Post: [ View ] Gift v1r0x Ad-Free
23rd April 2012, 01:29 PM |#6  
kezn715's Avatar
Senior Member
Flag Malaysia , Penang
Thanks Meter: 192
 
More
Talking
Quote:
Originally Posted by v1r0x

thanks for your reply.

My resolution is 1920x1200, so I forgot to check other resolutions.
I'll try it later on another screen resolution and upload an updated version.


Thanks alot man...it will be nice if all resolution can be supported...
i am waiting for it
23rd April 2012, 06:59 PM |#7  
kezn715's Avatar
Senior Member
Flag Malaysia , Penang
Thanks Meter: 192
 
More
Quote:
Originally Posted by v1r0x

Hello everyone,

I hope this is the right forum. Wanted to post in dev-forum, but not sure if I may or not...

Anyway: I want to introduce my latest MIUI project.
Current working name is "ls debugger". Suggestions are welcome

Description:
I found the hole LS testing progress (edit, zip, usb mount, copy, apply, ...) annoying, so I started this program.
It is still in beta state. There are still some errors or force closes because I haven't implemented all error check functions.
The reason why I started this thread now, is that I want some feedback and maybe new ideas and suggestions.

Requirements:
- Java Runtime

Instructions:
The usage is really simple.
After unzipping the file you'll have 5 files/folders:
- advanced (folder)
- wallpaper (folder)
- MIUI-LS-Tester.jar (executable)
- bgtWeather.db (9sweather db-file)
- systemCPs.db (calls, texts, contacts for ContentProviders [not finished])

You can replace the wallpaper and advanced folder with your own, but no guarantee that it will work.
Some features aren't implemented (unlocker and variables of elements. e.g.: #unlocker.move_x)
Have a look at the given manifest file and you'll see what will work and what won't.

You can start the program with doubleclick the 'MIUI-LS-Tester.jar' or open a terminal, move to the location where you've extracted the zip file and type:

Code:
java -jar MIUI-LS-Tester.jar
In the terminal you will get some information about the parsing and other informations.

At first a window with 2 textfields appears. In this you have to set the width and height of your lockscreen.

If you have a config.xml file you can set the variables on the right side in the "config.xml" tab (after a click on 'Preview').

To get a preview you have to open your manifest.xml and click on 'Preview'.
Also you can choose another font.

After a click on 'Preview' you'll get 3 more buttons.

Screenshot:
I think it's clear what this buttons will do
It saves a screenshot of the left panel in <MIUI-LS-Tester.jar-Location>/preview/lockscreen_preview_x.jpg

create mtz:
this will create a mtz file.
After a click you can choose some things. Add your font, wallpaper, previews...
Afterwards you can create/modify the description.xml file
Thats it

toggle buttons:
this will toggle the Trigger-Buttons.
Because they are not visible in your lockscreen you can do this with this button.

On the top of the right panel you can set some variables.
I think it's clear, so no description.

If you modified your manifest.xml (and the ls debugger is still open) just click on preview and the changes will be loaded.

Credits:
my brother: for helping me with the "calculator"
picard666: for some help and suggestions
jdom team: for the best java xml parser.
jfont-chooser team and david from stackoverflow: for the fontchooser.
zentus: for the sqlite lib.
pomenx: from the miui team for manifest reference thread @ xda.

regards
-v1r0x


Hi is me again...
i successfully create a lockscreen...and transfer it to my phone...bt the lockscreen i create was found at "Theme" instead of "Lockscreen Style" and when i applied the lockscreen that found at "Theme" my theme was revert to original MIUI Theme...

is it i missed out sumthing ?

http://db.tt/CyvDqJy9
23rd April 2012, 07:05 PM |#8  
v1r0x's Avatar
OP Senior Member
Thanks Meter: 302
 
Donate to Me
More
Please don't quote the complete post

Did you use the "create mtz" of my program?
because there is something really wrong.
Instead a font- and preview-folder there are files named:
Fonts\Arial.ttf
and
preview\preview_lockscreen...

I'll have a look at it later. I'm not at home and have no choice for testing and debugging.
The Following 2 Users Say Thank You to v1r0x For This Useful Post: [ View ] Gift v1r0x Ad-Free
23rd April 2012, 08:15 PM |#9  
kezn715's Avatar
Senior Member
Flag Malaysia , Penang
Thanks Meter: 192
 
More
Quote:
Originally Posted by v1r0x

Please don't quote the complete post

Did you use the "create mtz" of my program?
because there is something really wrong.
Instead a font- and preview-folder there are files named:
Fonts\Arial.ttf
and
preview\preview_lockscreen...

I'll have a look at it later. I'm not at home and have no choice for testing and debugging.

Oppps...Sorry...
ya...i using yr way to create it..
the Font\Arial.ttf exist - i using other font for my LS.
the preview\preview_lockscreen exist - i "Screenshot" 1st den only i "Create mtz"

Alright..spent quite a long time on tht LS...hope it can be applied successfully ^^
23rd April 2012, 09:33 PM |#10  
v1r0x's Avatar
OP Senior Member
Thanks Meter: 302
 
Donate to Me
More
Quote:
Originally Posted by kezn715

Hi , thx to tis application i able to cutomize my ls easier..
bt wad i encounter is...once i run the application i might not able to see the full view of it...
my laptop resolution are 1200 x 800
i tried change the resolution to LS resolution to 480 X 500 and i maximized the application window it still the same...
any idea ???

ok, i've added a scrollbar which hopefully solve your problem

Quote:
Originally Posted by kezn715

Oppps...Sorry...
ya...i using yr way to create it..
the Font\Arial.ttf exist - i using other font for my LS.
the preview\preview_lockscreen exist - i "Screenshot" 1st den only i "Create mtz"

Alright..spent quite a long time on tht LS...hope it can be applied successfully ^^

I've tested it and can't reproduce it
On my system the folders created correct.

But i've found a little bug. If no preview-folder exists or the default font is used (if you haven't choosen one with "File>Select Font") the creation of the mtz crashes but the program didn't close. So make sure everything exists.

Can you tell me which OS you use? Maybe its a bug of an older windows version and/or linux, mac.
Also, did you tried to start the program in a terminal/cmd/console and checked the output?
If not and you'll get errors while creating the mtz (and you've checked the things in the red marked paragraph), then send me the output of the program and your ls. So I can do some tests.
The Following User Says Thank You to v1r0x For This Useful Post: [ View ] Gift v1r0x Ad-Free
23rd April 2012, 10:23 PM |#11  
cowsquad's Avatar
Senior Member
Flag Portland, Oregon
Thanks Meter: 324
 
Donate to Me
More
I don't really understand what this program does. Sorry. Does this program preview any miui ls or what does it do?

Sent from my Galaxy Nexus using Tapatalk 2
Post Reply Subscribe to Thread

Tags
lockscreen, miui

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes