Dedexer

January 9, 2010

Dedexer is a disassembler tool for DEX files. DEX is a format introduced by the creators of the Android platform. The format and the associated opcode set is in distant relationship with the Java class file format and Java bytecodes. Dedexer is able to read the DEX format and turn into an “assembly-like format”. This format was largely influenced by the Jasmin syntax but contains Dalvik opcodes. For this reason, Jasmin is not able to compile the generated files.

java -jar ddx.jar -d <directory> <dex file>

http://dedexer.sourceforge.net/

Dedexer:Dex文件反编译工具介绍

Dedexer 项目主页:
http://dedexer.sourceforge.net/

软件下载链接:
http://nchc.dl.sourceforge.net/project/dedexer/dedexer/1.5/ddx1.5.jar

使用指南:
为了方便,我把ddx1.5.jar放入system32中,运行CMD.输入如下命令:
D:\WINDOWS\system32>java -jar ddx1.5.jar
Usage: java -jar ddx.jar -o -D -d <destination directory> <source>
<destination directory> :指定生成的文件放置的目录
<source> :dex源文件.
-D – 指定生成错误信息.
-o – 指定生成日志文件(dex.log).

运行结果,出现一个使用帮助.仔细阅读后试了下:
java -jar ddx.jar -o -D -d <destination directory> <source>
java -jar ddx1.5.jar -o -D -d c:\dex\gen c:\dex\classes.dex

示例:
D:\WINDOWS\system32>
java -jar ddx1.5.jar -o -D -d c:\dex\gen c:\dex\classes.dex
Processing com/eoeandroid/market/MarketActivity$2
Processing com/eoeandroid/market/MarketActivity$1

运行成功,在gen 目录生成了ddx 文件.用文本编辑器打开,可看到类大致结构.

版本更新:
1.7 支持寄存器跟踪

Dex文件介绍:
Dex文件—–Android平台上的可执行文件

Android虚拟机Dalvik支持的字节码文件格式Google在新发布的Android平台上使用了自己的Dalvik虚拟机来定义,这种虚拟机执行的并非Java字节码,而是另一种字节码:dex格式的字节码。在编译Java代码之后,通过Android平台上的工具可以将Java字节码转换成Dex字节码[/b.
这个Dalvik VM针对手机程式/CPU做过最佳化,可以同时执行许多VM而不会占用太多Resource,Dalvik VM的source目前还没有开放让人下载(未来整个系统都会开放),目前Google的角度是希望能让大家用这套SDK开始开发APP,底层的东西会慢 慢发布.

附件:
Dex 文件格式:
http://code.google.com/p/dex2jar/wiki/DexFileFormat

另一个相关项目:

[b]dex2jar
据说可以把dex反编译成jar文件.还没试过.
http://code.google.com/p/dex2jar/

[Via]

http://w26.javaeye.com/blog/501553

Advertisements

AXMLPrinter2 – Convert Android binary XML to human-readable XML

January 9, 2010

http://code.google.com/p/android4me/downloads/list

java -jar AXMLPrinter2.jar p1220_symbol_sip.xml > p1220_symbol_sip.txt

2010 CES

January 7, 2010

CES – Consumer Electronics Show

Get more live articles and videos from Engadget:

http://www.engadget.com/ces

Upcoming Flash Player 10.1 for Nexus One

January 6, 2010

[Via]

http://www.slashgear.com/upcoming-flash-player-10-1-for-nexus-one-0567969/

WordPress on Android with wpToGo

January 6, 2010

WordPress on Android with wpToGo

Even a die hard Android fan can admit the iPhone still has tons of jealousy-inducing features. One thing I’ve been sorely missing is official WordPress support (the iPhone gets its own official app). For awhile now I’ve seen a couple apps touting WordPress capabilities so today I thought we’d have a look at one of the most popular WordPress clients for Google Android, wpToGo.

Post Edit ScreenPost Edit Screen

wpTogo lets to control WordPress from your Android device. You can add posts, upload photos, and view comments. When making or editing a post, wpToGo allows you to format text, set the categories, add tags, and even save the post as a draft (handy for jotting things down for later review).

For bloggers and nerds like myself running multiple instances of WordPress, wpToGo lets you add and manage multiple accounts. Adding a new blog is pretty straight forward. You enter a path, the login details, and select some preferences about image uploads (size, alignment, etc).

Recent postsRecent posts

When you first log in, you are presented with a list of recent entries. A long press on any entry will bring up the post options (preview, edit, view comments). Up top there is a button for adding new entries and for refreshing the list.

wpTogo lets you connect to your WordPress.com or self-hosted WordPress install via an XML-RPC interface. All WordPress blogs have this functionality built in be default, but to run wpToGo you may need to activate XML-RPC under Settings > Writing > Remote Publishing.

Adding an accountAdding an account

While wpToGo does a lot of things right it’s also a bit limited. While you can view comments there is no way to moderate them. The UI leaves a bit to be desired. But overall it works and it works fairly well. The basic text formatting and image uploading is a nice touch and should suffice for capturing quick posts. Until WordPress rolls out official Android support it looks like wpToGo is the app for me.

wpToGo
Version: 1.6.8
Developed By: Roundhill Labs
Price: FREE
Filesize: 110 KB
[Via]
http://androidandme.com/2009/08/reviews/wordpress-on-android-with-wptogo/

Using WordPress on Google Android

January 6, 2010

Using WordPress on Google Android

Google Android is equipped with a powerful browser built from the WebKit open source project.  WordPress is one of the most popular open source publishing applications.  This site is currently powered by WordPress 2.7.1 and I own a T-Mobile HTC G1 so I wanted to test how these two open source projects interacted with each other.

Managing postsManaging posts

Logging in to the admin panel was a breeze.  I was instantly able to view the full dashboard and interact with all the widgets.  Even with the small screen size, most basic functions are possible to perform on the phone.  I was able to administer comments, edit post, and publish new content.  However, you are not able to upload photos with the new built in image loader since it utilizes Flash.  The new post page also has problems with the screen size as it loads different widgets on top of each other.

Currently there is no official WordPress client for Android.  I did find one for the iPhone so I can only hope that one will be developed for Android.  A quick search on the Android Market netted two results: PostBot and wpToGo.  Both of these apps use the XML-RPC protocol so you will need to make sure you enable this feature on your blog.  It can be found in Settings > Writing > XML-RPC.

Quick post entryQuick post entry

Both clients offer similar features including the ability to upload photos which is a plus.  PostBot even allows you to manage several blogs at the same time by allowing you to switch between different profiles.  I played around with each client and they worked, but I don’t think I will be using either to update this site.  They are great for simple posting, but lack many of the features found in the full web client.  Also if you are using a theme with a custom post page, you will not be able to access certain options.

Overall I was satisfied with the current options available to me via Android.  Using the core browser, I can peform most of the admin functions with a few finger taps.  Posting articles with multiple images and thumbnails does pose problems, but this could be corrected with a new mobile UI.  I look forward to see what the community comes up with and I will be following the two clients for further development.

PostBot entry screenPostBot entry screen

If you would like to share your WordPress on Android experiences please leave a comment or contact us.  I consider myself a rookie with both platforms, but hey I was able to post this.

Via:

http://androidandme.com/2009/02/reviews/using-wordpress-on-google-android/

Google have released Nexus One

January 6, 2010

http://www.google.com/phone/

[Update]

May get the introduction videos from:

http://www.youtube.com/user/GoogleNexusOne

阿凡达 Avatar

January 5, 2010

Nexus One, expect its showing up.

January 5, 2010

After about 4 hours, we will see the official news about Nexus One. Expecting it.
Instead of being an iPhone killer, is it a Droid killer?

How to share text/URLs of your PC with your mobile phone?

January 5, 2010

What’s your answer? What’s the best way? Is there a common way?

My answer is QR (Quick Response) code!!!

It’s really convenient.

Here will introduce a Firefox extension – Mobile Barcoder. You may get the currently workable version from:

http://github.com/jk3us/mobilebarcoder/downloads

But this version don’t support Unicode (such as Chinese) well. So here I made some little change to support Unicode and upload it.

And this is an introduction article about this extension, via:

http://jazzy.id.au/pebble/2009/04/04/copy_and_paste_between_firefox_and_the_iphone.html

Today I decided to have a go at diagnosing why the reversing lights on my car weren’t working. I quickly worked out that the bulbs were fine, so I jumped on Google to see if I could find some information about where else problems may occur with reversing lights in a car. I found some very detailed instructions, but I had a problem. These instructions were on my computer, in my room, but I wanted to take them to my car, in my garage, and I don’t have a printer. However, I do have an iPhone, so I thought I’d copy the URL into my iPhone and read the instructions from Safari. The URL however was rather long and copying by hand would have been painful, what I really wanted to do was the equivalent of copy and paste from my computer to my iPhone.

Enter Mobile Barcoder. Mobile Barcoder is a Firefox extension that allows you to generate QR Codes from Firefox. A QR Code is a 2D barcode designed to be read particularly by mobile devices. Using Mobile Barcoder, generating a barcode for the current page is as simple as hovering your mouse over the icon it puts in the bottom right corner of the window:

Generating a barcode from the current page

You can also right click on a link to generate a barcode for that link:

Generating a barcode from a link

You can even create a barcode from arbitrary text on the page, by selecting it and then right clicking:

Generating a barcode from selected=

So I have my barcode, but what use is that to me? Enter BeeTag. BeeTag is a free iPhone App that reads QR Codes and other 2D barcodes, and, depending on the type of code, lets you act on it accordingly. For example, if it’s a phone number, you can dial the number, if it’s a URL, you can open it in Safari, or if it’s plain text, you can save it as a memo. Scanning is as easy as taking a picture:

Taking a picture of a barcode with BeeTag

Having taken the picture, it will read it, and then prompt you for what you want to do next. I chose to open the URL in Safari:

BeeTag prompt after successfully reading a barcode The webpage on my iPhone in Safari

Now all I need to do is wait for the iPhone 3.0 firmware with copy and paste, and I have full end to end copy/paste from my computer to my iPhone.