代码来了" />
当前位置: 代码迷 >> Android >> 代码来了
  详细解决方案

代码来了

热度:118   发布时间:2016-04-28 01:33:17.0
谈谈Android重打包--架构

写在前面的话

写了这么多章的废话,今天终于开始可以算进入主题了.当然了,之后的故事发展也是我个人觉得比较激动人心的部分.因为,我们今天开始讲解的部分是架构部分.

从今以后你需要准备的东西就是你的大脑,恩,感觉说道跟动脑有关的时候有的人就会觉得好痛苦.放心把,我会尽力写的只要脑袋在头上都能看的懂的.


申明

此文章请勿转载,谢谢合作




系统架构

在这里我们说了,将会使用资源来判断Android是不是存在重打包的现象.在这一章我们将会说说这个系统的架构.


我们说过,之前有人是这么处理重打包问题,当然了,都是俺大中国同胞们的办法.想一想Android的APP为什么会出现重打包的现象.或许恶意软件的制作者就是想通过某些流行的APP让更多的人蒙受经济损失.我就听人跟我抱怨过,说我能不能写个程序判断一下那个愤怒的小鸟是不是有问题,他对我说他儿子玩着玩着不知道点了那个奇葩的按钮然后,duang~20块钱就没了.我们这么区分这种被动了手脚的APP和没有被动了手脚的APP.

然后呢,有人脑袋一亮,就想出了这么一招:

重打包软件的制作者在重打包APP软件的时候,总会考虑一下性价比的吧.就如说你重打包一个APP,都没有人用,你用来损害谁呢?正常的坏蛋这个时候瞄准的肯定是各大APP市场上面下载率比较高的,排名比较高的APP.比如说1000个,检测一下这些个APP的安全性,然后提取出出身干净的APP的签名.构建一个APP的数据库,当检查到签名不一致的时候我们就认定这个APP是重打包的.

我们之前有提过一点它的缺点, Android的开发更新换代实在是太快了,你只要交25美金你就可以往市场上上传你开发出来的APP,面向大众的低门槛开发环境使得APP的增长是光速级别的.三十年河东,三十年河西.今天了流行愤怒的小鸟,明天流行开心消消乐,后天又是什么what's up?这样的一些因素就使得这样的一种检测方式存在了一些缺陷.再加上另一方面,各个市场的审查机制不严格.重打包就成了Android的APP市场的重灾区. 

那是不是我写的这种方式就很好了呢,当然不可能了.只是换个方法思考问题罢了.这个方法要解决的问题是什么呢,在大量的样本中找到可以的重打包.因此,要做的事情就是在大批的样本中找相似.


既然要找相似,那么我们就需要提取出这些样本的特征,根据这些特征来判断出大量样本的相似性.把大量的没有标记的东西,根据他们的相似性归为一类,这里我们会要用到聚类算法.

看到聚类算法,这是一个机器学习的概念,在机器学习中有分类算法和聚类算法这两种算法,分类算法是有标签的算法,聚类算法是无标签的算法.说完好像是废话.如果你已经知道一些分类,这个时候有一个样本,可能属于其中一类,你要把这个样本正确的分类这个问题就是分类问题.一堆样本,根据他们的相似性来分类,你不知道可能会分出多少,最后根据某个标准把他们都归类了,那么这个问题就是聚类问题.

原先我们分析的那一种方法,比如说1000个不同的样本,这时候来一个样本,他们拥有相同的包名,这个时候判断签名来做归类.那这里应该是属于分类问题.





首先,先从不同的Android应用市场上爬取大量的APP作为我们的实验数据集.之后找出存在加固的APP,脱壳之后在做后续的处理.


我们使用apktool对APP进行反编译,之后我们会的到一个res文件夹,这个里面存放的就是我们APP使用到的大量资源,对其进行分析处理,提取出对我们有用信息.我们在这里要进行特征提取,这些信息将在后续作为我们分类的条件,最后帮我们找出可疑的重打包对. 特征的提取分为两步,一个是统计特征的提取,另一个是结构特征的提取. 根据统计特征我们找出含有相近资源数量的APP,最后根据APP的结构特征缩小我们根据统计特征得到的结果. 


在前面的章节中我们已经说过资源的概念,一个button算资源,一个activity, receiver, service这些都算资源,一张图片是资源,xml 文件是资源,字符串是资源,每个控件的id是资源,整型变量是资源,文件夹是资源.一个intent-filter,权限,布局文件,用到的颜色这些都是归一个APP所有,所以这些都是资源. 我们将这些资源按照类别归类,统计出他们之间的个数,把他们的特征值作为我们判别的第一个标准,之后在根据 每一个的结构特征来做细化判别.找出我们的疑似重打包对.





聊聊资源

既然要分析资源,我们先来看看一个Android的APP中的资源是些什么.

下图是APK格式的文件用apktool 反编译之后得出的res文件,我们APP用到的资源文件都在这里,要从资源入手,我们就要对资源有一个透彻的认识



                                                            图 1

这图片是随便选取的,不同的APP的资源文件可能会有一些差别.当然还有像下面这位大哥这样的:




图 2


麻雀虽小但是五脏俱全,我们就用图1中的资源文件来说事

1. anim

anim 是animation动画这个单词的缩写.这个文件定义的是一些特殊的动画效果.比如说你在玩手机的时候,有没有发现一些特效,页面之间的切换效果,是平滑的消失还是淡出淡入,是旋转的出现还是消失. 在没有概念,玩过PPT么.做幻灯片的时候出现的切换的动画,这个文件夹的文件就负责定义这些内容.这个文件夹不是一定要存在的,也不是我们程序分析的对象,你只要知道有这么个东西就可以了


2.color

这个文件夹里定义的不是这个APP中用到的颜色,而往往是某个控件被选中之后一些微妙的颜色变化.比如说点击按钮之后这个按钮的颜色变化,某个输入框说的地道一点叫本文框,这些控件的颜色的变化定义全部都在这个文件夹里定义的.

亲们,开发个APP不容易啊,尤其是要开发那种动画体验好,用起来让你感觉效果又酷又帅的APP,往往是一个团队开发的,UI设计,动画设计,代码不同部分的功能总是一波一波的人来共同完成的. 我觉得开发的动画又搞笑又好的UC浏览器啊.玩手机的时候记得在心里默默感激一下这些程序猿同志们啊.不过您也别太沉迷了,做个地铁无聊打发打发玩玩使可以的,别把自己的孩子丢地铁站就行了.


打个岔,有一次和闺蜜一起去吃饭,我们好久没见了,聊得特别欢乐.这个时候一家三口进来了,正好坐在我们旁边的桌子.从点菜到吃饭到离开,一家三口之间相互交流的话不超过3句,全程一家人都在低着头玩手机.小孩子真的不超过4岁,然后也拿着手机目不转睛的看.我们两个人当时真的是惊呆了,生活一定要像这个样子么?其实这事不新鲜,到处都可以看见, 像这样的人不在少数,而且越来越多. 作为一个程序猿, 我看到这个状况很痛心啊.非常痛心 难道一家人吃饭的时候有说有笑,其乐融融不是最快乐最简单幸福的事情么?我们可以为您开发出炫酷的手机软件但是并不是意味着我们需要大家沉迷于此.金星说的有句话挺好的:一个民族要强大,总要多一些仰望星空的人,少一些低头玩手机的人.这话讲得有些大,但是被手机支配的人生难道不可悲么. 一秒秒钟变愤青了.接着回正题


3.drawable*

这个里面有什么?图片呗. 但是,为什么有这么多drawable开头的文件夹呢.亲们,Android手机的型号有这么多,大小有这么多.除了手机,像Android系统的PAD也很多的,他们的屏幕大小尺寸是不一样的.为了满足尺寸屏幕的分辨率,所以就有这么多的不同分辨率的图片了.android系统会根据屏幕的尺寸自动选择合适的图片加载出来.所以android系统上的软件手机端和PAD是通用的. IOS的上面的大部分软件可就不是这样的, iPAD上面的软件有部分软件和iphone是不可用,用户体验也不一样.主力军大部分在iphone软件上的APP开发.为什么要这样呢,同一个软件买两次,赚钱呗. 当然了layout布局文件也是如此的.



4.layout(重点)

layout布局文件.这个文件不是所有APP都有的.这个文件夹里面的内容我们以后还要细细分析.

在Android应用开发的一项重要内容就是炫酷的界面,就算不炫酷也要让用户觉得玩的爽,用的方便.在Android中有两种方式来定义用户界面.

  • 一种就是MVC机制,通过定义一个XML布局文件来定义用户界面
  • 一种就是在java程序代码中通过调用方法进行控制

*****使用xml文件来加载布局文件****
使用xml布局文件控制UI界面的一个主要的特征就是你可以在res文件下面找到layout文件夹.这是大部分程序猿会采用的方式.将界面设计和UI逻辑控制分开来处理,这样调理清晰,修改其代码来也更加的方便.一个Activity就可以理解为是Android应用的一个界面.我们一般会为一个Activity设置一个相应的布局文件,当然如果里面有比较复杂的控件像menu这个样子的,它可能还会定制相应的布局文件.当定义好一个布局文件,我们要让它显示出来,让用户来操作这个布局文件的时候, 我们需要在Java代码中通过一个 setContentView(R.layout.资源文件名)的方式来加载这个文件. R.java这个文件是用来纪录我们在开发的这个APP当中定义的资源文件的一个重要文件, 每一个资源生成之后都会在R.java文件中生成一个相应的Id.当我们定义好一个XML布局文件的时候, R.java会自动收录该布局文件,并且分配给它一个相应的id, 在Android中每一个资源都会有一个独特的Id.


我们来看一个Activity文件
<?xml version="1.0" encoding="utf-8"?><RelativeLayout android:paddingLeft="?android:expandableListPreferredItemPaddingLeft" android:paddingTop="2.0dip" android:paddingBottom="2.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content"  xmlns:android="http://schemas.android.com/apk/res/android">    <TextView android:textAppearance="?android:textAppearanceLarge" android:id="@*android:id/text1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginTop="6.0dip" />    <TextView android:textAppearance="?android:textAppearanceSmall" android:id="@*android:id/text2" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@*android:id/text1" android:layout_alignLeft="@*android:id/text1" /></RelativeLayout>

在这里的TextView我们把它叫做一个控件.我们可以通过该UI组件指定android:id属性, 该属性的属性值代表该组件的唯一标识.在java代码中我们通过findViewById(R.id.android.id属性值来访问它)


当然,加载控件和布局文件的方式绝对不止这两种.以后的文章还会细细来讲解这部分,恩,那个是这个系统的大招,绝对的大招,当然我也是写了两个星期才完成的.不过需要您对java非常熟悉,尤其是各种数据结构,否则看起代码可能会比较吃力.


****在代码中控制UI界面*****

Android中推荐使用XML布局文件来控制UI界面,但是在Android中是完全支持开发者想开发Swing应用一样,完全抛弃XML文件布局的.



注: 以上代码来自李阳的<<疯狂Android讲义>>


5. values

在values这个文件夹中包含了一些文件.我们来仔细的分析一下他们:

5.1. dimens.xml 文件这个文件定义了一些控件尺寸的大小

</pre><p></p><p><pre name="code" class="html"><?xml version="1.0" encoding="utf-8"?><resources>    <dimen name="textview_height">25dp</dimen>    <dimen name="textview_width">150dp</dimen>    <dimen name="ball_radius">30dp</dimen>    <dimen name="font_size">16sp</dimen></resources>

当我们希望控制这个APP要显示的字体大小的尺寸的时候我们可以调用以下的代码来获取一个dimension


Resources res = getResources();float fontSize = res.getDimension(R.dimen.font_size);


当一个layout的布局文件要使用这个dimensions的属性的时候我们可以使用如下的代码调用来实现:

<TextView    android:layout_height="@dimen/textview_height"    android:layout_width="@dimen/textview_width"    android:textSize="@dimen/font_size"/>

这样我们就根据dimens定义的大小来确定了我们这个TextView控件的尺寸



具体的例子和详细的分析你可以参考这篇文章android中使用dimen定义尺寸 


5.2.在colors.xml 

这个文件定义了各种颜色的值


5.3 strings.xml 文件定义了使用到的字符串的常量


我们可以发现有个时候在资源文件夹里面有很多以values开头的文件夹,这些文件夹中主要变换的东西就是他们的字符串常量.开发者在实现同一个功能,比如说按钮上面的字的时候,需要这个APP支持不同的语言,这个时候Android就可以通过下面这种方式下面代码的例子实现出来

<?xml version="1.0" encoding="utf-8"?><resources>    <string name="me">Me</string>    <string name="draft">Draft</string>    <string name="drafts">Drafts</string></resources>


<?xml version="1.0" encoding="utf-8"?><resources>    <string name="me">我</string>    <string name="draft">草稿</string>    <string name="drafts">草稿</string></resources>

通过这样的一个设计使得Android的APP可以支持不同的语言版本.

5.4 ids.xml 


在这个文件中我们定义的是唯一的资源的ID.

一般的使用如下:

<?xml version="1.0" encoding="utf-8"?><resources>    <item type="id" name="button_ok" />    <item type="id" name="dialog_exit" /></resources>

 

这个时候我们如果在我们的布局文件layout中定义了一个控件Button,当我们需要给这个控件赋值一个id的时候我们就可以使用下面的代码


<Button android:id="@id/button_ok"    style="@style/button_style" />


同志们,注意哦,在这里我们发现id前面是没有一个+号的,因为这个时候这个id是已经定义在ids.xml文件当中的,如果我们使用android:id="@+id/name" 这个时候意味这个id并没有存在我们要使用它的时候必须要先创建它这个时候我们就可以使用这个方式来之间在我们的布局文件中创建一个按钮在给它赋值而不需要在ids.xml文件当中在申明.因为这样书写之后,我们这个控件的id会被自动加到R.java文件这类当中


5.5 public.xml 文件

在说明之前, 我们先来对比一下ids.xml 和public.xml 文件这两个文件当中内容

<?xml version="1.0" encoding="utf-8"?><resources>    <public type="attr" name="absListViewStyle" id="0x7f010000" />    <public type="attr" name="direction" id="0x7f010001" />    <public type="attr" name="defaultScreen" id="0x7f010002" />    <public type="attr" name="cellWidth" id="0x7f010003" />    <public type="attr" name="cellHeight" id="0x7f010004" />    <public type="attr" name="longAxisStartPadding" id="0x7f010005" />    <public type="attr" name="longAxisEndPadding" id="0x7f010006" />    <public type="attr" name="shortAxisStartPadding" id="0x7f010007" />    <public type="attr" name="shortAxisEndPadding" id="0x7f010008" />    <public type="attr" name="shortAxisCells" id="0x7f010009" />    <public type="attr" name="longAxisCells" id="0x7f01000a" />    <public type="attr" name="isPortrait" id="0x7f01000b" />    <public type="attr" name="texture" id="0x7f01000c" />    <public type="attr" name="landscape" id="0x7f01000d" />    <public type="attr" name="position" id="0x7f01000e" />    <public type="attr" name="className" id="0x7f01000f" />    <public type="attr" name="packageName" id="0x7f010010" />    <public type="attr" name="screen" id="0x7f010011" />    <public type="attr" name="x" id="0x7f010012" />    <public type="attr" name="y" id="0x7f010013" />    <public type="attr" name="icon" id="0x7f010014" />    <public type="attr" name="title" id="0x7f010015" />    <public type="attr" name="uri" id="0x7f010016" />    <public type="drawable" name="add_button" id="0x7f020000" />    <public type="drawable" name="all_apps_button" id="0x7f020002" />    <public type="drawable" name="all_apps_icon" id="0x7f020004" />    <public type="drawable" name="box_launcher_bottom_old" id="0x7f020009" />    <public type="drawable" name="box_launcher_top" id="0x7f02000a" />    <public type="drawable" name="browser_button" id="0x7f02000e" />    <public type="drawable" name="btn_search_dialog_voice" id="0x7f020010" />    <public type="drawable" name="calendar_button" id="0x7f020015" />    <public type="drawable" name="camera_button" id="0x7f020017" />    <public type="drawable" name="contacts_button" id="0x7f020019" />    <public type="drawable" name="delete_zone_selector" id="0x7f02001b" />    <public type="drawable" name="dots_left_1_6" id="0x7f020023" />    <public type="drawable" name="dots_left_1_7" id="0x7f020025" />    <public type="drawable" name="dots_left_2_6" id="0x7f020027" />    <public type="drawable" name="dots_left_2_7" id="0x7f020029" />    <public type="drawable" name="dots_left_3_6" id="0x7f02002c" />    <public type="drawable" name="dots_left_3_7" id="0x7f02002e" />    <public type="drawable" name="dots_left_4_6" id="0x7f020030" />    <public type="drawable" name="dots_left_4_7" id="0x7f020033" />    <public type="drawable" name="dots_left_5_6" id="0x7f020035" />    <public type="drawable" name="dots_left_5_7" id="0x7f020037" />    <public type="drawable" name="dots_left_6" id="0x7f020039" />    <public type="drawable" name="dots_left_6_7" id="0x7f02003a" />    <public type="drawable" name="dots_left_7" id="0x7f02003c" />    <public type="drawable" name="dots_right_1_6" id="0x7f02003d" />    <public type="drawable" name="dots_right_1_7" id="0x7f02003f" />    <public type="drawable" name="dots_right_2_6" id="0x7f020041" />    <public type="drawable" name="dots_right_2_7" id="0x7f020043" />    <public type="drawable" name="dots_right_3_6" id="0x7f020046" />    <public type="drawable" name="dots_right_3_7" id="0x7f020048" />    <public type="drawable" name="dots_right_4_6" id="0x7f02004a" />    <public type="drawable" name="dots_right_4_7" id="0x7f02004c" />    <public type="drawable" name="dots_right_5_6" id="0x7f02004e" />    <public type="drawable" name="dots_right_5_7" id="0x7f020050" />    <public type="drawable" name="dots_right_6" id="0x7f020052" />    <public type="drawable" name="dots_right_6_7" id="0x7f020053" />    <public type="drawable" name="dots_right_7" id="0x7f020055" />    <public type="drawable" name="drawer_bottom_bg" id="0x7f020056" />    <public type="drawable" name="email_button" id="0x7f020058" />    <public type="drawable" name="facebook_button" id="0x7f02005a" />    <public type="drawable" name="facebook_icon" id="0x7f02005c" />    <public type="drawable" name="gmail_button" id="0x7f020062" />    <public type="drawable" name="grid_selector" id="0x7f020065" />    <public type="drawable" name="home_button" id="0x7f020066" />    <public type="drawable" name="list_selector_background" id="0x7f02007b" />    <public type="drawable" name="list_selector_background_transition" id="0x7f020080" />    <public type="drawable" name="maps_button" id="0x7f020081" />    <public type="drawable" name="market_button" id="0x7f020083" />    <public type="drawable" name="music_button" id="0x7f020086" />    <public type="drawable" name="navigation_button" id="0x7f020088" />    <public type="drawable" name="phone_button" id="0x7f02008a" />    <public type="drawable" name="pressed_application_background" id="0x7f020090" />    <public type="drawable" name="shortcut_selector" id="0x7f020096" />    <public type="drawable" name="sms_button" id="0x7f020097" />    <public type="drawable" name="talk_button" id="0x7f020099" />    <public type="drawable" name="textfield_searchwidget" id="0x7f02009b" />    <public type="drawable" name="twitter_button" id="0x7f0200a2" />    <public type="drawable" name="voice_button" id="0x7f0200a4" />    <public type="drawable" name="widget_calendar_add_button" id="0x7f0200b0" />    <public type="drawable" name="widget_calendar_agenda_button" id="0x7f0200b4" />    <public type="drawable" name="widget_calendar_calendar_button" id="0x7f0200b8" />    <public type="drawable" name="widget_calendar_grid_day" id="0x7f0200be" />    <public type="drawable" name="widget_calendar_grid_today" id="0x7f0200c0" />    <public type="drawable" name="widget_chooser_middle_selector" id="0x7f0200c8" />    <public type="drawable" name="widget_chooser_next_selector" id="0x7f0200cc" />    <public type="drawable" name="widget_chooser_previous_selector" id="0x7f0200d0" />    <public type="drawable" name="widget_facebook_newsfeed_button" id="0x7f0200d2" />    <public type="drawable" name="widget_facebook_wall_button" id="0x7f0200d3" />    <public type="drawable" name="widget_footer_bg" id="0x7f0200d6" />    <public type="drawable" name="widget_friends_newsfeed_button" id="0x7f0200dc" />    <public type="drawable" name="widget_friends_wall_button" id="0x7f0200de" />    <public type="drawable" name="widget_selector" id="0x7f0200ea" />    <public type="drawable" name="widget_sms_card_delete_button" id="0x7f0200ec" />    <public type="drawable" name="widget_sms_card_reply_button" id="0x7f0200f1" />    <public type="drawable" name="widget_sms_compose_button" id="0x7f0200f5" />    <public type="drawable" name="widget_sms_mark_button" id="0x7f0200fa" />    <public type="drawable" name="widget_twitter_dm_button" id="0x7f020102" />    <public type="drawable" name="widget_twitter_mentions_button" id="0x7f020105" />    <public type="drawable" name="widget_twitter_timeline_button" id="0x7f020109" />    <public type="drawable" name="widget_white_selector" id="0x7f02010c" />    <public type="drawable" name="dock_background_froyo" id="0x7f02001c" />    <public type="drawable" name="dock_background_froyo_wide" id="0x7f02001d" />    <public type="drawable" name="dock_background_glass" id="0x7f02001e" />    <public type="drawable" name="all_apps_button_normal" id="0x7f020003" />    <public type="drawable" name="bg_appwidget_error" id="0x7f020006" />    <public type="drawable" name="box_launcher_bottom" id="0x7f020008" />    <public type="drawable" name="box_launcher_top_normal" id="0x7f02000b" />    <public type="drawable" name="box_launcher_top_pressed" id="0x7f02000c" />    <public type="drawable" name="box_launcher_top_selected" id="0x7f02000d" />    <public type="drawable" name="focused_application_background" id="0x7f02005e" />    <public type="drawable" name="message_header" id="0x7f020085" />    <public type="drawable" name="placeholder_google" id="0x7f02008c" />    <public type="drawable" name="search_button_bg" id="0x7f020093" />    <public type="drawable" name="search_button_voice" id="0x7f020094" />    <public type="drawable" name="search_floater" id="0x7f020095" />    <public type="drawable" name="textfield_searchwidget_default" id="0x7f02009c" />    <public type="drawable" name="textfield_searchwidget_pressed" id="0x7f02009d" />    <public type="drawable" name="textfield_searchwidget_selected" id="0x7f02009e" />    <public type="drawable" name="wallpaper_dark" id="0x7f0200a6" />    <public type="drawable" name="wallpaper_dark_small" id="0x7f0200a7" />    <public type="drawable" name="wallpaper_rainbokeh" id="0x7f0200a8" />    <public type="drawable" name="wallpaper_rainbokeh_small" id="0x7f0200a9" />    <public type="drawable" name="widget_bookmark_nothumbnail" id="0x7f0200ab" />    <public type="drawable" name="widget_people_unknown_contact" id="0x7f0200e8" />    <public type="drawable" name="add_button_normal" id="0x7f020001" />    <public type="drawable" name="appwidget_bg" id="0x7f020005" />    <public type="drawable" name="bookmarks_button_normal" id="0x7f020007" />    <public type="drawable" name="browser_button_normal" id="0x7f02000f" />    <public type="drawable" name="btn_search_dialog_voice_default" id="0x7f020011" />    <public type="drawable" name="btn_search_dialog_voice_pressed" id="0x7f020012" />    <public type="drawable" name="btn_search_dialog_voice_selected" id="0x7f020013" />    <public type="drawable" name="calendar_agenda_day_background" id="0x7f020014" />    <public type="drawable" name="calendar_button_normal" id="0x7f020016" />    <public type="drawable" name="camera_button_normal" id="0x7f020018" />    <public type="drawable" name="contacts_button_normal" id="0x7f02001a" />    <public type="drawable" name="dots_left_2_7_pressed" id="0x7f02002b" />    <public type="drawable" name="dots_left_4_6_pressed" id="0x7f020032" />    <public type="drawable" name="dots_right_2_7_pressed" id="0x7f020045" />    <public type="drawable" name="drawer_fade" id="0x7f020057" />    <public type="drawable" name="email_button_normal" id="0x7f020059" />    <public type="drawable" name="facebook_button_normal" id="0x7f02005b" />    <public type="drawable" name="facebook_widget_like_icon" id="0x7f02005d" />    <public type="drawable" name="friends_button" id="0x7f02005f" />    <public type="drawable" name="friends_widget_facebook_logo_big" id="0x7f020060" />    <public type="drawable" name="friends_widget_twitter_logo_big" id="0x7f020061" />    <public type="drawable" name="gmail_button_normal" id="0x7f020063" />    <public type="drawable" name="gmail_widget_message_header" id="0x7f020064" />    <public type="drawable" name="home_button_focused" id="0x7f020067" />    <public type="drawable" name="home_button_normal" id="0x7f020068" />    <public type="drawable" name="home_button_pressed" id="0x7f020069" />    <public type="drawable" name="ic_btn_speak_now" id="0x7f02006a" />    <public type="drawable" name="ic_launcher_add_folder" id="0x7f02006b" />    <public type="drawable" name="ic_launcher_application" id="0x7f02006c" />    <public type="drawable" name="ic_launcher_appwidget" id="0x7f02006d" />    <public type="drawable" name="ic_launcher_blank" id="0x7f02006e" />    <public type="drawable" name="ic_launcher_folder" id="0x7f02006f" />    <public type="drawable" name="ic_launcher_folder_live" id="0x7f020070" />    <public type="drawable" name="ic_launcher_folder_open" id="0x7f020071" />    <public type="drawable" name="ic_launcher_gallery" id="0x7f020072" />    <public type="drawable" name="ic_launcher_home" id="0x7f020073" />    <public type="drawable" name="ic_launcher_launcherpro_icons" id="0x7f020074" />    <public type="drawable" name="ic_launcher_shortcut" id="0x7f020075" />    <public type="drawable" name="ic_launcher_wallpaper" id="0x7f020076" />    <public type="drawable" name="ic_menu_notifications" id="0x7f020077" />    <public type="drawable" name="ic_menu_preferences" id="0x7f020078" />    <public type="drawable" name="ic_search_widget" id="0x7f020079" />    <public type="drawable" name="icon" id="0x7f02007a" />    <public type="drawable" name="list_selector_background_disabled" id="0x7f02007c" />    <public type="drawable" name="list_selector_background_focus" id="0x7f02007d" />    <public type="drawable" name="list_selector_background_longpress" id="0x7f02007e" />    <public type="drawable" name="list_selector_background_pressed" id="0x7f02007f" />    <public type="drawable" name="maps_button_normal" id="0x7f020082" />    <public type="drawable" name="market_button_normal" id="0x7f020084" />    <public type="drawable" name="music_button_normal" id="0x7f020087" />    <public type="drawable" name="navigation_button_normal" id="0x7f020089" />    <public type="drawable" name="phone_button_normal" id="0x7f02008b" />    <public type="drawable" name="popup_icon" id="0x7f02008e" />    <public type="drawable" name="recent_apps_button" id="0x7f020091" />    <public type="drawable" name="resize_handle" id="0x7f020092" />    <public type="drawable" name="sms_button_normal" id="0x7f020098" />    <public type="drawable" name="talk_button_normal" id="0x7f02009a" />    <public type="drawable" name="transparent" id="0x7f02009f" />    <public type="drawable" name="trashcan" id="0x7f0200a0" />    <public type="drawable" name="trashcan_hover" id="0x7f0200a1" />    <public type="drawable" name="twitter_button_normal" id="0x7f0200a3" />    <public type="drawable" name="voice_button_normal" id="0x7f0200a5" />    <public type="drawable" name="widget_bookmark_nofavicon" id="0x7f0200aa" />    <public type="drawable" name="widget_bookmarks_grid_preview_2x4" id="0x7f0200ac" />    <public type="drawable" name="widget_bookmarks_grid_preview_4x4" id="0x7f0200ad" />    <public type="drawable" name="widget_bookmarks_list_preview_2x4" id="0x7f0200ae" />    <public type="drawable" name="widget_bookmarks_list_preview_4x4" id="0x7f0200af" />    <public type="drawable" name="widget_calendar_add_button_focused" id="0x7f0200b1" />    <public type="drawable" name="widget_calendar_add_button_normal" id="0x7f0200b2" />    <public type="drawable" name="widget_calendar_add_button_pressed" id="0x7f0200b3" />    <public type="drawable" name="widget_calendar_agenda_button_focused" id="0x7f0200b5" />    <public type="drawable" name="widget_calendar_agenda_button_normal" id="0x7f0200b6" />    <public type="drawable" name="widget_calendar_agenda_button_pressed" id="0x7f0200b7" />    <public type="drawable" name="widget_calendar_calendar_button_focused" id="0x7f0200b9" />    <public type="drawable" name="widget_calendar_calendar_button_normal" id="0x7f0200ba" />    <public type="drawable" name="widget_calendar_calendar_button_pressed" id="0x7f0200bb" />    <public type="drawable" name="widget_calendar_day_pressed" id="0x7f0200bc" />    <public type="drawable" name="widget_calendar_day_selected" id="0x7f0200bd" />    <public type="drawable" name="widget_calendar_grid_day_background_busy" id="0x7f0200bf" />    <public type="drawable" name="widget_calendar_preview_3x3" id="0x7f0200c1" />    <public type="drawable" name="widget_calendar_preview_4x3" id="0x7f0200c2" />    <public type="drawable" name="widget_calendar_preview_4x4" id="0x7f0200c3" />    <public type="drawable" name="widget_calendar_today_background" id="0x7f0200c4" />    <public type="drawable" name="widget_chooser_middle" id="0x7f0200c5" />    <public type="drawable" name="widget_chooser_middle_focused" id="0x7f0200c6" />    <public type="drawable" name="widget_chooser_middle_pressed" id="0x7f0200c7" />    <public type="drawable" name="widget_chooser_next" id="0x7f0200c9" />    <public type="drawable" name="widget_chooser_next_focused" id="0x7f0200ca" />    <public type="drawable" name="widget_chooser_next_pressed" id="0x7f0200cb" />    <public type="drawable" name="widget_chooser_previous" id="0x7f0200cd" />    <public type="drawable" name="widget_chooser_previous_focused" id="0x7f0200ce" />    <public type="drawable" name="widget_chooser_previous_pressed" id="0x7f0200cf" />    <public type="drawable" name="widget_facebook_4x4_preview" id="0x7f0200d1" />    <public type="drawable" name="widget_facebook_wall_button_normal" id="0x7f0200d4" />    <public type="drawable" name="widget_facebook_wall_button_selected" id="0x7f0200d5" />    <public type="drawable" name="widget_footer_bg_focused" id="0x7f0200d7" />    <public type="drawable" name="widget_footer_bg_normal" id="0x7f0200d8" />    <public type="drawable" name="widget_footer_bg_pressed" id="0x7f0200d9" />    <public type="drawable" name="widget_friends_4x4_preview" id="0x7f0200da" />    <public type="drawable" name="widget_friends_facebook_logo_small" id="0x7f0200db" />    <public type="drawable" name="widget_friends_twitter_logo_small" id="0x7f0200dd" />    <public type="drawable" name="widget_gmail_4x4_preview" id="0x7f0200df" />    <public type="drawable" name="widget_header_bg" id="0x7f0200e0" />    <public type="drawable" name="widget_header_shadow" id="0x7f0200e1" />    <public type="drawable" name="widget_highlight_focused" id="0x7f0200e2" />    <public type="drawable" name="widget_highlight_pressed" id="0x7f0200e3" />    <public type="drawable" name="widget_list_divider" id="0x7f0200e4" />    <public type="drawable" name="widget_people_preview_2x4" id="0x7f0200e5" />    <public type="drawable" name="widget_people_preview_4x4" id="0x7f0200e6" />    <public type="drawable" name="widget_people_title" id="0x7f0200e7" />    <public type="drawable" name="widget_refresh_icon" id="0x7f0200e9" />    <public type="drawable" name="widget_sms_card_delete" id="0x7f0200eb" />    <public type="drawable" name="widget_sms_card_delete_focused" id="0x7f0200ed" />    <public type="drawable" name="widget_sms_card_delete_pressed" id="0x7f0200ee" />    <public type="drawable" name="widget_sms_card_preview" id="0x7f0200ef" />    <public type="drawable" name="widget_sms_card_reply" id="0x7f0200f0" />    <public type="drawable" name="widget_sms_card_reply_focused" id="0x7f0200f2" />    <public type="drawable" name="widget_sms_card_reply_pressed" id="0x7f0200f3" />    <public type="drawable" name="widget_sms_card_unknown_contact" id="0x7f0200f4" />    <public type="drawable" name="widget_sms_compose_button_focused" id="0x7f0200f6" />    <public type="drawable" name="widget_sms_compose_button_normal" id="0x7f0200f7" />    <public type="drawable" name="widget_sms_compose_button_pressed" id="0x7f0200f8" />    <public type="drawable" name="widget_sms_list_preview" id="0x7f0200f9" />    <public type="drawable" name="widget_sms_mark_button_focused" id="0x7f0200fb" />    <public type="drawable" name="widget_sms_mark_button_normal" id="0x7f0200fc" />    <public type="drawable" name="widget_sms_mark_button_pressed" id="0x7f0200fd" />    <public type="drawable" name="widget_sms_photo_bg" id="0x7f0200fe" />    <public type="drawable" name="widget_sms_separator" id="0x7f0200ff" />    <public type="drawable" name="widget_sms_white_bg" id="0x7f020100" />    <public type="drawable" name="widget_twitter_4x4_preview" id="0x7f020101" />    <public type="drawable" name="widget_twitter_dm_button_normal" id="0x7f020103" />    <public type="drawable" name="widget_twitter_dm_button_selected" id="0x7f020104" />    <public type="drawable" name="widget_twitter_mentions_button_normal" id="0x7f020106" />    <public type="drawable" name="widget_twitter_mentions_button_selected" id="0x7f020107" />    <public type="drawable" name="widget_twitter_retweet_icon" id="0x7f020108" />    <public type="drawable" name="widget_twitter_timeline_button_normal" id="0x7f02010a" />    <public type="drawable" name="widget_twitter_timeline_button_selected" id="0x7f02010b" />    <public type="drawable" name="dock_bg_froyo" id="0x7f02001f" />    <public type="drawable" name="dock_bg_froyo_wide" id="0x7f020020" />    <public type="drawable" name="dock_bg_glass" id="0x7f020021" />    <public type="drawable" name="dock_bg_smoked_glass" id="0x7f020022" />    <public type="drawable" name="dots_left_1_6_normal" id="0x7f020024" />    <public type="drawable" name="dots_left_1_7_normal" id="0x7f020026" />    <public type="drawable" name="dots_left_2_6_normal" id="0x7f020028" />    <public type="drawable" name="dots_left_2_7_normal" id="0x7f02002a" />    <public type="drawable" name="dots_left_3_6_normal" id="0x7f02002d" />    <public type="drawable" name="dots_left_3_7_normal" id="0x7f02002f" />    <public type="drawable" name="dots_left_4_6_normal" id="0x7f020031" />    <public type="drawable" name="dots_left_4_7_normal" id="0x7f020034" />    <public type="drawable" name="dots_left_5_6_normal" id="0x7f020036" />    <public type="drawable" name="dots_left_5_7_normal" id="0x7f020038" />    <public type="drawable" name="dots_left_6_7_normal" id="0x7f02003b" />    <public type="drawable" name="dots_right_1_6_normal" id="0x7f02003e" />    <public type="drawable" name="dots_right_1_7_normal" id="0x7f020040" />    <public type="drawable" name="dots_right_2_6_normal" id="0x7f020042" />    <public type="drawable" name="dots_right_2_7_normal" id="0x7f020044" />    <public type="drawable" name="dots_right_3_6_normal" id="0x7f020047" />    <public type="drawable" name="dots_right_3_7_normal" id="0x7f020049" />    <public type="drawable" name="dots_right_4_6_normal" id="0x7f02004b" />    <public type="drawable" name="dots_right_4_7_normal" id="0x7f02004d" />    <public type="drawable" name="dots_right_5_6_normal" id="0x7f02004f" />    <public type="drawable" name="dots_right_5_7_normal" id="0x7f020051" />    <public type="drawable" name="dots_right_6_7_normal" id="0x7f020054" />    <public type="drawable" name="popup" id="0x7f02008d" />    <public type="drawable" name="popup_triangle" id="0x7f02008f" />    <public type="layout" name="activity_list_item" id="0x7f030000" />    <public type="layout" name="activity_shortcuts_edit_dialog" id="0x7f030001" />    <public type="layout" name="add_list_item" id="0x7f030002" />    <public type="layout" name="app_list_item" id="0x7f030005" />    <public type="layout" name="application_list" id="0x7f03000a" />    <public type="layout" name="appwidget_error" id="0x7f03000b" />    <public type="layout" name="bookmarks_widget_chooser" id="0x7f03000c" />    <public type="layout" name="bookmarks_widget_grid" id="0x7f03000d" />    <public type="layout" name="bookmarks_widget_grid_item" id="0x7f03000e" />    <public type="layout" name="bookmarks_widget_list" id="0x7f03000f" />    <public type="layout" name="bookmarks_widget_list_item" id="0x7f030010" />    <public type="layout" name="calendar_widget" id="0x7f030011" />    <public type="layout" name="calendar_widget_agenda_item" id="0x7f030012" />    <public type="layout" name="calendar_widget_calendar_grid" id="0x7f030013" />    <public type="layout" name="calendar_widget_calendar_grid_day" id="0x7f030014" />    <public type="layout" name="calendar_widget_chooser" id="0x7f030015" />    <public type="layout" name="color_picker" id="0x7f030016" />    <public type="layout" name="exclude_screen" id="0x7f030017" />    <public type="layout" name="facebook_post_activity" id="0x7f030018" />    <public type="layout" name="facebook_post_activity_comment" id="0x7f030019" />    <public type="layout" name="facebook_widget" id="0x7f03001a" />    <public type="layout" name="facebook_widget_chooser" id="0x7f03001b" />    <public type="layout" name="facebook_widget_list_media" id="0x7f03001c" />    <public type="layout" name="facebook_widget_list_status" id="0x7f03001d" />    <public type="layout" name="facebook_widget_update_activity" id="0x7f03001e" />    <public type="layout" name="friends_widget" id="0x7f030020" />    <public type="layout" name="friends_widget_chooser" id="0x7f030021" />    <public type="layout" name="friends_widget_facebook_list_media" id="0x7f030022" />    <public type="layout" name="friends_widget_facebook_list_status" id="0x7f030023" />    <public type="layout" name="friends_widget_twitter_list_item" id="0x7f030024" />    <public type="layout" name="friends_widget_update_activity" id="0x7f030025" />    <public type="layout" name="gmail_widget_chooser" id="0x7f030026" />    <public type="layout" name="gmail_widget_list" id="0x7f030027" />    <public type="layout" name="gmail_widget_list_item" id="0x7f030028" />    <public type="layout" name="gmail_widget_message_activity" id="0x7f030029" />    <public type="layout" name="gmail_widget_source" id="0x7f03002a" />    <public type="layout" name="list_category" id="0x7f03002c" />    <public type="layout" name="list_checkbox_2lines" id="0x7f03002d" />    <public type="layout" name="live_folder_list" id="0x7f030030" />    <public type="layout" name="lpshortcuts_activity" id="0x7f030031" />    <public type="layout" name="lpshortcuts_activity_list_item" id="0x7f030032" />    <public type="layout" name="lpwidget_contact_item" id="0x7f030033" />    <public type="layout" name="people_widget" id="0x7f030034" />    <public type="layout" name="people_widget_chooser" id="0x7f030035" />    <public type="layout" name="people_widget_source" id="0x7f030036" />    <public type="layout" name="popup_activity" id="0x7f030037" />    <public type="layout" name="popup_bookmark_item" id="0x7f030038" />    <public type="layout" name="popup_grid" id="0x7f030039" />    <public type="layout" name="popup_list" id="0x7f03003a" />    <public type="layout" name="popup_missed_call_item" id="0x7f03003b" />    <public type="layout" name="popup_recent_apps_item" id="0x7f03003c" />    <public type="layout" name="popup_unread_sms_item" id="0x7f03003d" />    <public type="layout" name="rename_folder" id="0x7f03003e" />    <public type="layout" name="seekbar_dialog" id="0x7f03003f" />    <public type="layout" name="sms_widget_card" id="0x7f030040" />    <public type="layout" name="sms_widget_card_view" id="0x7f030041" />    <public type="layout" name="sms_widget_chooser" id="0x7f030042" />    <public type="layout" name="sms_widget_list" id="0x7f030043" />    <public type="layout" name="sms_widget_list_item" id="0x7f030044" />    <public type="layout" name="thumbnail_maker" id="0x7f030045" />    <public type="layout" name="twitter_widget" id="0x7f030046" />    <public type="layout" name="twitter_widget_chooser" id="0x7f030047" />    <public type="layout" name="twitter_widget_list_item" id="0x7f030048" />    <public type="layout" name="twitter_widget_update_activity" id="0x7f030049" />    <public type="layout" name="unlock_lpplus" id="0x7f03004a" />    <public type="layout" name="wallpaper_chooser" id="0x7f03004c" />    <public type="layout" name="wallpaper_item" id="0x7f03004d" />    <public type="layout" name="widget_search" id="0x7f03004e" />    <public type="layout" name="all_apps_grid" id="0x7f030003" />    <public type="layout" name="all_apps_list" id="0x7f030004" />    <public type="layout" name="application" id="0x7f030006" />    <public type="layout" name="application_boxed" id="0x7f030007" />    <public type="layout" name="application_boxed_backup" id="0x7f030008" />    <public type="layout" name="application_fede" id="0x7f030009" />    <public type="layout" name="folder_icon" id="0x7f03001f" />    <public type="layout" name="launcher" id="0x7f03002b" />    <public type="layout" name="live_folder_grid" id="0x7f03002e" />    <public type="layout" name="live_folder_icon" id="0x7f03002f" />    <public type="layout" name="user_folder" id="0x7f03004b" />    <public type="layout" name="workspace_screen" id="0x7f03004f" />    <public type="anim" name="copy_zoom_enter" id="0x7f040000" />    <public type="anim" name="copy_zoom_exit" id="0x7f040001" />    <public type="anim" name="fade_in_fast" id="0x7f040002" />    <public type="anim" name="fade_out_fast" id="0x7f040003" />    <public type="anim" name="hold" id="0x7f040004" />    <public type="anim" name="reverse_zoom_enter" id="0x7f040005" />    <public type="anim" name="reverse_zoom_exit" id="0x7f040006" />    <public type="anim" name="zoom_enter" id="0x7f040007" />    <public type="anim" name="zoom_exit" id="0x7f040008" />    <public type="xml" name="default_workspace" id="0x7f050000" />    <public type="xml" name="preferences" id="0x7f050001" />    <public type="raw" name="gmail_widget_style" id="0x7f060000" />    <public type="array" name="screen_number_entries" id="0x7f070000" />    <public type="array" name="homescreen_grid_columns_entries" id="0x7f070001" />    <public type="array" name="screen_transition_entries" id="0x7f070002" />    <public type="array" name="screen_transition_entryValues" id="0x7f070003" />    <public type="array" name="homescreen_looping_entries" id="0x7f070004" />    <public type="array" name="homescreen_looping_entryValues" id="0x7f070005" />    <public type="array" name="dock_number_entries" id="0x7f070006" />    <public type="array" name="drawer_columns_portrait_entries" id="0x7f070007" />    <public type="array" name="drawer_columns_landscape_entries" id="0x7f070008" />    <public type="array" name="dock_background_entries" id="0x7f070009" />    <public type="array" name="dock_background_entryValues" id="0x7f07000a" />    <public type="array" name="highlight_style_entries" id="0x7f07000b" />    <public type="array" name="highlight_style_entryValues" id="0x7f07000c" />    <public type="array" name="memory_usage_entryValues" id="0x7f07000d" />    <public type="array" name="memory_usage_entries" id="0x7f07000e" />    <public type="array" name="memory_preset_entryValues" id="0x7f07000f" />    <public type="array" name="memory_preset_entries" id="0x7f070010" />    <public type="array" name="scrolling_cache_type_entryValues" id="0x7f070011" />    <public type="array" name="scrolling_cache_type_entries" id="0x7f070012" />    <public type="array" name="home_key_action_entryValues" id="0x7f070013" />    <public type="array" name="home_key_action_entries" id="0x7f070014" />    <public type="array" name="widget_bookmark_sort_entryValues" id="0x7f070015" />    <public type="array" name="widget_bookmark_sort_entries" id="0x7f070016" />    <public type="array" name="update_interval_entryValues" id="0x7f070017" />    <public type="array" name="update_interval_entries" id="0x7f070018" />    <public type="array" name="extra_wallpapers" id="0x7f070019" />    <public type="array" name="wallpapers" id="0x7f07001a" />    <public type="id" name="vertical" id="0x7f080000" />    <public type="id" name="horizontal" id="0x7f080001" />    <public type="id" name="home_button" id="0x7f080002" />    <public type="id" name="icon" id="0x7f080003" />    <public type="id" name="label_edit" id="0x7f080004" />    <public type="id" name="ok_button" id="0x7f080005" />    <public type="id" name="allapps" id="0x7f080006" />    <public type="id" name="label" id="0x7f080007" />    <public type="id" name="name" id="0x7f080008" />    <public type="id" name="description" id="0x7f080009" />    <public type="id" name="widget_chooser" id="0x7f08000a" />    <public type="id" name="widget_chooser_previous" id="0x7f08000b" />    <public type="id" name="widget_chooser_select" id="0x7f08000c" />    <public type="id" name="widget_chooser_next" id="0x7f08000d" />    <public type="id" name="thewidget" id="0x7f08000e" />    <public type="id" name="header" id="0x7f08000f" />    <public type="id" name="title" id="0x7f080010" />    <public type="id" name="content_view" id="0x7f080011" />    <public type="id" name="header_shadow" id="0x7f080012" />    <public type="id" name="refresh_button" id="0x7f080013" />    <public type="id" name="refresh_icon" id="0x7f080014" />    <public type="id" name="imagey" id="0x7f080015" />    <public type="id" name="texty" id="0x7f080016" />    <public type="id" name="header_title" id="0x7f080017" />    <public type="id" name="calendar_add_button" id="0x7f080018" />    <public type="id" name="calendar_agenda_button" id="0x7f080019" />    <public type="id" name="calendar_container" id="0x7f08001a" />    <public type="id" name="calendar_header" id="0x7f08001b" />    <public type="id" name="calendar_view" id="0x7f08001c" />    <public type="id" name="agenda_list" id="0x7f08001d" />    <public type="id" name="item_row" id="0x7f08001e" />    <public type="id" name="color_marker" id="0x7f08001f" />    <public type="id" name="item_title" id="0x7f080020" />    <public type="id" name="item_time" id="0x7f080021" />    <public type="id" name="cell7" id="0x7f080022" />    <public type="id" name="color_picker_hs" id="0x7f080023" />    <public type="id" name="color_picker_color" id="0x7f080024" />    <public type="id" name="hex_value" id="0x7f080025" />    <public type="id" name="applist" id="0x7f080026" />    <public type="id" name="cancel" id="0x7f080027" />    <public type="id" name="save" id="0x7f080028" />    <public type="id" name="original_post" id="0x7f080029" />    <public type="id" name="user_photo" id="0x7f08002a" />    <public type="id" name="status_layout" id="0x7f08002b" />    <public type="id" name="user" id="0x7f08002c" />    <public type="id" name="body" id="0x7f08002d" />    <public type="id" name="date" id="0x7f08002e" />    <public type="id" name="photo" id="0x7f08002f" />    <public type="id" name="caption" id="0x7f080030" />    <public type="id" name="likes" id="0x7f080031" />    <public type="id" name="like_button" id="0x7f080032" />    <public type="id" name="loading_comments" id="0x7f080033" />    <public type="id" name="comment_text" id="0x7f080034" />    <public type="id" name="comment_bar" id="0x7f080035" />    <public type="id" name="comment_button" id="0x7f080036" />    <public type="id" name="user_and_date" id="0x7f080037" />    <public type="id" name="switches" id="0x7f080038" />    <public type="id" name="timeline_button" id="0x7f080039" />    <public type="id" name="dm_button" id="0x7f08003a" />    <public type="id" name="compose_button" id="0x7f08003b" />    <public type="id" name="status" id="0x7f08003c" />    <public type="id" name="submit" id="0x7f08003d" />    <public type="id" name="wall_button" id="0x7f08003e" />    <public type="id" name="source_logo" id="0x7f08003f" />    <public type="id" name="tweet_layout" id="0x7f080040" />    <public type="id" name="retweet_icon" id="0x7f080041" />    <public type="id" name="char_count" id="0x7f080042" />    <public type="id" name="twitter_checkbox" id="0x7f080043" />    <public type="id" name="facebook_checkbox" id="0x7f080044" />    <public type="id" name="sms_compose_button" id="0x7f080045" />    <public type="id" name="gmail_layout" id="0x7f080046" />    <public type="id" name="sender_and_date" id="0x7f080047" />    <public type="id" name="sender" id="0x7f080048" />    <public type="id" name="subject" id="0x7f080049" />    <public type="id" name="snippet" id="0x7f08004a" />    <public type="id" name="webbyview" id="0x7f08004b" />    <public type="id" name="group" id="0x7f08004c" />    <public type="id" name="drag_layer" id="0x7f08004d" />    <public type="id" name="workspace" id="0x7f08004e" />    <public type="id" name="cell1" id="0x7f08004f" />    <public type="id" name="cell2" id="0x7f080050" />    <public type="id" name="cell3" id="0x7f080051" />    <public type="id" name="cell4" id="0x7f080052" />    <public type="id" name="cell5" id="0x7f080053" />    <public type="id" name="cell6" id="0x7f080054" />    <public type="id" name="shortcut_bar" id="0x7f080055" />    <public type="id" name="shortcut_dock_2" id="0x7f080056" />    <public type="id" name="quick_shortcut_9" id="0x7f080057" />    <public type="id" name="quick_shortcut_8" id="0x7f080058" />    <public type="id" name="quick_shortcut_7" id="0x7f080059" />    <public type="id" name="quick_shortcut_6" id="0x7f08005a" />    <public type="id" name="quick_shortcut_5" id="0x7f08005b" />    <public type="id" name="shortcut_dock_1" id="0x7f08005c" />    <public type="id" name="quick_shortcut_4" id="0x7f08005d" />    <public type="id" name="quick_shortcut_3" id="0x7f08005e" />    <public type="id" name="quick_shortcut_2" id="0x7f08005f" />    <public type="id" name="quick_shortcut_1" id="0x7f080060" />    <public type="id" name="quick_shortcut_0" id="0x7f080061" />    <public type="id" name="shortcut_dock_3" id="0x7f080062" />    <public type="id" name="quick_shortcut_14" id="0x7f080063" />    <public type="id" name="quick_shortcut_13" id="0x7f080064" />    <public type="id" name="quick_shortcut_12" id="0x7f080065" />    <public type="id" name="quick_shortcut_11" id="0x7f080066" />    <public type="id" name="quick_shortcut_10" id="0x7f080067" />    <public type="id" name="delete_zone" id="0x7f080068" />    <public type="id" name="screen_indicator" id="0x7f080069" />    <public type="id" name="all_apps_stub" id="0x7f08006a" />    <public type="id" name="home_button_container" id="0x7f08006b" />    <public type="id" name="resize_layer" id="0x7f08006c" />    <public type="id" name="resize_handle" id="0x7f08006d" />    <public type="id" name="summary" id="0x7f08006e" />    <public type="id" name="checkbox" id="0x7f08006f" />    <public type="id" name="folder_close" id="0x7f080070" />    <public type="id" name="folder_content" id="0x7f080071" />    <public type="id" name="listview" id="0x7f080072" />    <public type="id" name="refresh_list" id="0x7f080073" />    <public type="id" name="create_new" id="0x7f080074" />    <public type="id" name="text1" id="0x7f080075" />    <public type="id" name="text2" id="0x7f080076" />    <public type="id" name="thegrid" id="0x7f080077" />    <public type="id" name="group_all" id="0x7f080078" />    <public type="id" name="group_favorites" id="0x7f080079" />    <public type="id" name="container" id="0x7f08007a" />    <public type="id" name="url" id="0x7f08007b" />    <public type="id" name="popupview" id="0x7f08007c" />    <public type="id" name="app" id="0x7f08007d" />    <public type="id" name="folder_name" id="0x7f08007e" />    <public type="id" name="seekbar" id="0x7f08007f" />    <public type="id" name="sms_card_view" id="0x7f080080" />    <public type="id" name="contact_photo" id="0x7f080081" />    <public type="id" name="footer" id="0x7f080082" />    <public type="id" name="sms_delete" id="0x7f080083" />    <public type="id" name="sms_reply" id="0x7f080084" />    <public type="id" name="sms_mark_button" id="0x7f080085" />    <public type="id" name="sms_layout" id="0x7f080086" />    <public type="id" name="thumb_title" id="0x7f080087" />    <public type="id" name="thumb_progress" id="0x7f080088" />    <public type="id" name="thumb_status" id="0x7f080089" />    <public type="id" name="mentions_button" id="0x7f08008a" />    <public type="id" name="unlock_layout" id="0x7f08008b" />    <public type="id" name="request_code" id="0x7f08008c" />    <public type="id" name="unlock_email" id="0x7f08008d" />    <public type="id" name="unlock_txn_id" id="0x7f08008e" />    <public type="id" name="unlock_button" id="0x7f08008f" />    <public type="id" name="wallpaper" id="0x7f080090" />    <public type="id" name="gallery" id="0x7f080091" />    <public type="id" name="set" id="0x7f080092" />    <public type="id" name="widget_search" id="0x7f080093" />    <public type="id" name="search_plate" id="0x7f080094" />    <public type="id" name="search_src_text" id="0x7f080095" />    <public type="id" name="search_voice_btn" id="0x7f080096" />    <public type="color" name="window_background" id="0x7f090000" />    <public type="color" name="grid_dark_background" id="0x7f090001" />    <public type="color" name="bubble_dark_background" id="0x7f090002" />    <public type="color" name="delete_color_filter" id="0x7f090003" />    <public type="color" name="appwidget_error_color" id="0x7f090004" />    <public type="color" name="snag_callout_color" id="0x7f090005" />    <public type="color" name="gesture_color" id="0x7f090006" />    <public type="color" name="uncertain_gesture_color" id="0x7f090007" />    <public type="color" name="bright_text_dark_focused" id="0x7f090008" />    <public type="dimen" name="search_widget_inset" id="0x7f0a0000" />    <public type="dimen" name="gesture_thumbnail_inset" id="0x7f0a0001" />    <public type="dimen" name="gesture_thumbnail_size" id="0x7f0a0002" />    <public type="dimen" name="cell_width" id="0x7f0a0003" />    <public type="dimen" name="cell_height" id="0x7f0a0004" />    <public type="string" name="pref_general_settings" id="0x7f0b0000" />    <public type="string" name="key_excluded_activities" id="0x7f0b0001" />    <public type="string" name="key_hide_drawer_apps" id="0x7f0b0002" />    <public type="string" name="hide_drawer_apps_title" id="0x7f0b0003" />    <public type="string" name="hide_drawer_apps_summary" id="0x7f0b0004" />    <public type="string" name="key_keep_in_memory" id="0x7f0b0005" />    <public type="string" name="keep_in_memory_title" id="0x7f0b0006" />    <public type="string" name="keep_in_memory_summary" id="0x7f0b0007" />    <public type="string" name="key_scrolling_widgets" id="0x7f0b0008" />    <public type="string" name="scrolling_widgets_title" id="0x7f0b0009" />    <public type="string" name="scrolling_widgets_summary" id="0x7f0b000a" />    <public type="string" name="key_memory_usage" id="0x7f0b000b" />    <public type="string" name="memory_usage_title" id="0x7f0b000c" />    <public type="string" name="memory_usage_summary" id="0x7f0b000d" />    <public type="string" name="key_droid_hack" id="0x7f0b000e" />    <public type="string" name="droid_hack_title" id="0x7f0b000f" />    <public type="string" name="droid_hack_summary" id="0x7f0b0010" />    <public type="string" name="pref_homescreen_settings" id="0x7f0b0011" />    <public type="string" name="pref_screen_settings" id="0x7f0b0012" />    <public type="string" name="key_screen_number" id="0x7f0b0013" />    <public type="string" name="screen_number_title" id="0x7f0b0014" />    <public type="string" name="screen_number_summary" id="0x7f0b0015" />    <public type="string" name="key_default_screen" id="0x7f0b0016" />    <public type="string" name="default_screen_title" id="0x7f0b0017" />    <public type="string" name="default_screen_summary" id="0x7f0b0018" />    <public type="string" name="key_trackball_scrolling" id="0x7f0b0019" />    <public type="string" name="trackball_scrolling_title" id="0x7f0b001a" />    <public type="string" name="trackball_scrolling_summary" id="0x7f0b001b" />    <public type="string" name="key_homescreen_looping" id="0x7f0b001c" />    <public type="string" name="homescreen_looping_title" id="0x7f0b001d" />    <public type="string" name="homescreen_looping_summary" id="0x7f0b001e" />    <public type="string" name="key_screen_transition" id="0x7f0b001f" />    <public type="string" name="screen_transition_title" id="0x7f0b0020" />    <public type="string" name="screen_transition_summary" id="0x7f0b0021" />    <public type="string" name="pref_grid_settings" id="0x7f0b0022" />    <public type="string" name="key_homescreen_grid_columns" id="0x7f0b0023" />    <public type="string" name="homescreen_grid_columns_title" id="0x7f0b0024" />    <public type="string" name="homescreen_grid_columns_summary" id="0x7f0b0025" />    <public type="string" name="key_homescreen_grid_rows" id="0x7f0b0026" />    <public type="string" name="homescreen_grid_rows_title" id="0x7f0b0027" />    <public type="string" name="homescreen_grid_rows_summary" id="0x7f0b0028" />    <public type="string" name="key_homescreen_grid_autofit" id="0x7f0b0029" />    <public type="string" name="homescreen_grid_autofit_title" id="0x7f0b002a" />    <public type="string" name="homescreen_grid_autofit_summary" id="0x7f0b002b" />    <public type="string" name="pref_dock_settings" id="0x7f0b002c" />    <public type="string" name="key_dock_number" id="0x7f0b002d" />    <public type="string" name="dock_number_title" id="0x7f0b002e" />    <public type="string" name="dock_number_summary" id="0x7f0b002f" />    <public type="string" name="key_dock_looping" id="0x7f0b0030" />    <public type="string" name="dock_looping_title" id="0x7f0b0031" />    <public type="string" name="dock_looping_summary" id="0x7f0b0032" />    <public type="string" name="key_dock_scrolling" id="0x7f0b0033" />    <public type="string" name="dock_scrolling_title" id="0x7f0b0034" />    <public type="string" name="dock_scrolling_summary" id="0x7f0b0035" />    <public type="string" name="pref_dock_notifications" id="0x7f0b0036" />    <public type="string" name="key_notification_calls" id="0x7f0b0037" />    <public type="string" name="notification_calls_title" id="0x7f0b0038" />    <public type="string" name="notification_calls_summary" id="0x7f0b0039" />    <public type="string" name="key_notification_sms" id="0x7f0b003a" />    <public type="string" name="notification_sms_title" id="0x7f0b003b" />    <public type="string" name="notification_sms_summary" id="0x7f0b003c" />    <public type="string" name="key_notification_gmail" id="0x7f0b003d" />    <public type="string" name="notification_gmail_title" id="0x7f0b003e" />    <public type="string" name="notification_gmail_summary" id="0x7f0b003f" />    <public type="string" name="pref_appearance_settings" id="0x7f0b0040" />    <public type="string" name="key_dock_background" id="0x7f0b0041" />    <public type="string" name="dock_background_title" id="0x7f0b0042" />    <public type="string" name="dock_background_summary" id="0x7f0b0043" />    <public type="string" name="key_show_screen_indicator" id="0x7f0b0044" />    <public type="string" name="show_screen_indicator_title" id="0x7f0b0045" />    <public type="string" name="show_screen_indicator_summary" id="0x7f0b0046" />    <public type="string" name="key_hide_status_bar" id="0x7f0b0047" />    <public type="string" name="hide_status_bar_title" id="0x7f0b0048" />    <public type="string" name="hide_status_bar_summary" id="0x7f0b0049" />    <public type="string" name="key_show_home_button" id="0x7f0b004a" />    <public type="string" name="show_home_button_title" id="0x7f0b004b" />    <public type="string" name="show_home_button_summary" id="0x7f0b004c" />    <public type="string" name="key_hide_labels" id="0x7f0b004d" />    <public type="string" name="hide_labels_title" id="0x7f0b004e" />    <public type="string" name="hide_labels_summary" id="0x7f0b004f" />    <public type="string" name="key_show_label_background" id="0x7f0b0050" />    <public type="string" name="show_label_background_title" id="0x7f0b0051" />    <public type="string" name="show_label_background_summary" id="0x7f0b0052" />    <public type="string" name="key_disable_wallpaper_scrolling" id="0x7f0b0053" />    <public type="string" name="disable_wallpaper_scrolling_title" id="0x7f0b0054" />    <public type="string" name="disable_wallpaper_scrolling_summary" id="0x7f0b0055" />    <public type="string" name="key_highlight_style" id="0x7f0b0056" />    <public type="string" name="highlight_style_title" id="0x7f0b0057" />    <public type="string" name="highlight_style_summary" id="0x7f0b0058" />    <public type="string" name="key_highlight_color_focused" id="0x7f0b0059" />    <public type="string" name="highlight_color_focused_title" id="0x7f0b005a" />    <public type="string" name="highlight_color_focused_summary" id="0x7f0b005b" />    <public type="string" name="key_highlight_color_pressed" id="0x7f0b005c" />    <public type="string" name="highlight_color_pressed_title" id="0x7f0b005d" />    <public type="string" name="highlight_color_pressed_summary" id="0x7f0b005e" />    <public type="string" name="pref_behavior_settings" id="0x7f0b005f" />    <public type="string" name="key_auto_orientation" id="0x7f0b0060" />    <public type="string" name="auto_orientation_title" id="0x7f0b0061" />    <public type="string" name="auto_orientation_summary" id="0x7f0b0062" />    <public type="string" name="key_home_key_action" id="0x7f0b0063" />    <public type="string" name="home_key_action_title" id="0x7f0b0064" />    <public type="string" name="home_key_action_summary" id="0x7f0b0065" />    <public type="string" name="key_home_key" id="0x7f0b0066" />    <public type="string" name="home_key_title" id="0x7f0b0067" />    <public type="string" name="home_key_summary" id="0x7f0b0068" />    <public type="string" name="pref_memory_settings" id="0x7f0b0069" />    <public type="string" name="key_memory_preset" id="0x7f0b006a" />    <public type="string" name="memory_preset_title" id="0x7f0b006b" />    <public type="string" name="pref_advanced_memory" id="0x7f0b006c" />    <public type="string" name="key_enable_scrolling_cache" id="0x7f0b006d" />    <public type="string" name="enable_scrolling_cache_title" id="0x7f0b006e" />    <public type="string" name="enable_scrolling_cache_summary" id="0x7f0b006f" />    <public type="string" name="key_scrolling_cache_type" id="0x7f0b0070" />    <public type="string" name="scrolling_cache_type_title" id="0x7f0b0071" />    <public type="string" name="scrolling_cache_type_summary" id="0x7f0b0072" />    <public type="string" name="key_cache_as_needed" id="0x7f0b0073" />    <public type="string" name="cache_as_needed_title" id="0x7f0b0074" />    <public type="string" name="cache_as_needed_summary" id="0x7f0b0075" />    <public type="string" name="key_clear_caches_on_stop" id="0x7f0b0076" />    <public type="string" name="clear_caches_on_stop_title" id="0x7f0b0077" />    <public type="string" name="clear_caches_on_stop_summary" id="0x7f0b0078" />    <public type="string" name="key_prevent_fcs" id="0x7f0b0079" />    <public type="string" name="prevent_fcs_title" id="0x7f0b007a" />    <public type="string" name="prevent_fcs_summary" id="0x7f0b007b" />    <public type="string" name="pref_advanced_settings" id="0x7f0b007c" />    <public type="string" name="advanced_settings_title" id="0x7f0b007d" />    <public type="string" name="pref_advanced_homescreens" id="0x7f0b007e" />    <public type="string" name="key_grid_rows" id="0x7f0b007f" />    <public type="string" name="grid_rows_title" id="0x7f0b0080" />    <public type="string" name="grid_rows_summary" id="0x7f0b0081" />    <public type="string" name="key_stretch_4_widgets" id="0x7f0b0082" />    <public type="string" name="stretch_4_widgets_title" id="0x7f0b0083" />    <public type="string" name="stretch_4_widgets_summary" id="0x7f0b0084" />    <public type="string" name="key_elastic_scrolling" id="0x7f0b0085" />    <public type="string" name="elastic_scrolling_title" id="0x7f0b0086" />    <public type="string" name="elastic_scrolling_summary" id="0x7f0b0087" />    <public type="string" name="key_hq_scrolling" id="0x7f0b0088" />    <public type="string" name="hq_scrolling_title" id="0x7f0b0089" />    <public type="string" name="hq_scrolling_summary" id="0x7f0b008a" />    <public type="string" name="key_min_scrolling_speed" id="0x7f0b008b" />    <public type="string" name="min_scrolling_speed_title" id="0x7f0b008c" />    <public type="string" name="min_scrolling_speed_summary" id="0x7f0b008d" />    <public type="string" name="pref_advanced_drawer" id="0x7f0b008e" />    <public type="string" name="key_drawer_3d_enabled" id="0x7f0b008f" />    <public type="string" name="drawer_3d_enabled_title" id="0x7f0b0090" />    <public type="string" name="drawer_3d_enabled_summary" id="0x7f0b0091" />    <public type="string" name="key_drawer_columns_portrait" id="0x7f0b0092" />    <public type="string" name="drawer_columns_portrait_title" id="0x7f0b0093" />    <public type="string" name="drawer_columns_portrait_summary" id="0x7f0b0094" />    <public type="string" name="key_drawer_columns_landscape" id="0x7f0b0095" />    <public type="string" name="drawer_columns_landscape_title" id="0x7f0b0096" />    <public type="string" name="drawer_columns_landscape_summary" id="0x7f0b0097" />    <public type="string" name="key_drawer_opening_speed" id="0x7f0b0098" />    <public type="string" name="drawer_opening_speed_title" id="0x7f0b0099" />    <public type="string" name="drawer_opening_speed_summary" id="0x7f0b009a" />    <public type="string" name="pref_advanced_previews" id="0x7f0b009b" />    <public type="string" name="key_previews_opening_speed" id="0x7f0b009c" />    <public type="string" name="previews_opening_speed_title" id="0x7f0b009d" />    <public type="string" name="previews_opening_speed_summary" id="0x7f0b009e" />    <public type="string" name="pref_advanced_debugging" id="0x7f0b009f" />    <public type="string" name="key_show_memory_usage" id="0x7f0b00a0" />    <public type="string" name="show_memory_usage_title" id="0x7f0b00a1" />    <public type="string" name="show_memory_usage_summary" id="0x7f0b00a2" />    <public type="string" name="key_theme_settings" id="0x7f0b00a3" />    <public type="string" name="pref_theme_settings" id="0x7f0b00a4" />    <public type="string" name="key_theme_iconpack" id="0x7f0b00a5" />    <public type="string" name="theme_iconpack_title" id="0x7f0b00a6" />    <public type="string" name="theme_iconpack_summary" id="0x7f0b00a7" />    <public type="string" name="key_lpwidget_settings" id="0x7f0b00a8" />    <public type="string" name="pref_lpwidget_settings" id="0x7f0b00a9" />    <public type="string" name="pref_lpwidget_people" id="0x7f0b00aa" />    <public type="string" name="key_people_skin" id="0x7f0b00ab" />    <public type="string" name="people_skin_title" id="0x7f0b00ac" />    <public type="string" name="people_skin_summary" id="0x7f0b00ad" />    <public type="string" name="pref_lpwidget_bookmarks" id="0x7f0b00ae" />    <public type="string" name="key_bookmark_skin" id="0x7f0b00af" />    <public type="string" name="bookmark_skin_title" id="0x7f0b00b0" />    <public type="string" name="bookmark_skin_summary" id="0x7f0b00b1" />    <public type="string" name="key_bookmark_sort" id="0x7f0b00b2" />    <public type="string" name="bookmark_sort_title" id="0x7f0b00b3" />    <public type="string" name="bookmark_sort_summary" id="0x7f0b00b4" />    <public type="string" name="key_bookmark_get_thumbnails" id="0x7f0b00b5" />    <public type="string" name="bookmark_get_thumbnails_title" id="0x7f0b00b6" />    <public type="string" name="bookmark_get_thumbnails_summary" id="0x7f0b00b7" />    <public type="string" name="key_bookmark_update_thumbnails" id="0x7f0b00b8" />    <public type="string" name="bookmark_update_thumbnails_title" id="0x7f0b00b9" />    <public type="string" name="bookmark_update_thumbnails_summary" id="0x7f0b00ba" />    <public type="string" name="pref_lpwidget_calendar" id="0x7f0b00bb" />    <public type="string" name="key_calendar_skin" id="0x7f0b00bc" />    <public type="string" name="calendar_skin_title" id="0x7f0b00bd" />    <public type="string" name="calendar_skin_summary" id="0x7f0b00be" />    <public type="string" name="key_calendar_24_hour" id="0x7f0b00bf" />    <public type="string" name="calendar_24_hour_title" id="0x7f0b00c0" />    <public type="string" name="calendar_24_hour_summary" id="0x7f0b00c1" />    <public type="string" name="key_calendar_week_monday" id="0x7f0b00c2" />    <public type="string" name="calendar_week_monday_title" id="0x7f0b00c3" />    <public type="string" name="calendar_week_monday_summary" id="0x7f0b00c4" />    <public type="string" name="pref_lpwidget_messaging" id="0x7f0b00c5" />    <public type="string" name="key_sms_skin" id="0x7f0b00c6" />    <public type="string" name="sms_skin_title" id="0x7f0b00c7" />    <public type="string" name="sms_skin_summary" id="0x7f0b00c8" />    <public type="string" name="key_sms_24_hour" id="0x7f0b00c9" />    <public type="string" name="sms_24_hour_title" id="0x7f0b00ca" />    <public type="string" name="sms_24_hour_summary" id="0x7f0b00cb" />    <public type="string" name="key_sms_date_day_first" id="0x7f0b00cc" />    <public type="string" name="sms_date_day_first_title" id="0x7f0b00cd" />    <public type="string" name="sms_date_day_first_summary" id="0x7f0b00ce" />    <public type="string" name="pref_lpwidget_twitter" id="0x7f0b00cf" />    <public type="string" name="key_twitter_skin" id="0x7f0b00d0" />    <public type="string" name="twitter_skin_title" id="0x7f0b00d1" />    <public type="string" name="twitter_skin_summary" id="0x7f0b00d2" />    <public type="string" name="key_twitter_login" id="0x7f0b00d3" />    <public type="string" name="twitter_login_title" id="0x7f0b00d4" />    <public type="string" name="key_twitter_update_interval" id="0x7f0b00d5" />    <public type="string" name="twitter_update_interval_title" id="0x7f0b00d6" />    <public type="string" name="twitter_update_interval_summary" id="0x7f0b00d7" />    <public type="string" name="key_twitter_intent" id="0x7f0b00d8" />    <public type="string" name="key_twitter_app" id="0x7f0b00d9" />    <public type="string" name="twitter_app_title" id="0x7f0b00da" />    <public type="string" name="twitter_app_summary" id="0x7f0b00db" />    <public type="string" name="key_twitter_clear" id="0x7f0b00dc" />    <public type="string" name="twitter_clear_title" id="0x7f0b00dd" />    <public type="string" name="twitter_clear_summary" id="0x7f0b00de" />    <public type="string" name="pref_lpwidget_facebook" id="0x7f0b00df" />    <public type="string" name="key_facebook_skin" id="0x7f0b00e0" />    <public type="string" name="facebook_skin_title" id="0x7f0b00e1" />    <public type="string" name="facebook_skin_summary" id="0x7f0b00e2" />    <public type="string" name="key_facebook_login" id="0x7f0b00e3" />    <public type="string" name="facebook_login_title" id="0x7f0b00e4" />    <public type="string" name="key_facebook_update_interval" id="0x7f0b00e5" />    <public type="string" name="facebook_update_interval_title" id="0x7f0b00e6" />    <public type="string" name="facebook_update_interval_summary" id="0x7f0b00e7" />    <public type="string" name="key_facebook_clear" id="0x7f0b00e8" />    <public type="string" name="facebook_clear_title" id="0x7f0b00e9" />    <public type="string" name="facebook_clear_summary" id="0x7f0b00ea" />    <public type="string" name="pref_lpwidget_friends" id="0x7f0b00eb" />    <public type="string" name="key_friends_skin" id="0x7f0b00ec" />    <public type="string" name="friends_skin_title" id="0x7f0b00ed" />    <public type="string" name="friends_skin_summary" id="0x7f0b00ee" />    <public type="string" name="key_friends_update_interval" id="0x7f0b00ef" />    <public type="string" name="friends_update_interval_title" id="0x7f0b00f0" />    <public type="string" name="friends_update_interval_summary" id="0x7f0b00f1" />    <public type="string" name="key_friends_app" id="0x7f0b00f2" />    <public type="string" name="friends_app_title" id="0x7f0b00f3" />    <public type="string" name="friends_app_summary" id="0x7f0b00f4" />    <public type="string" name="pref_lpwidget_gmail" id="0x7f0b00f5" />    <public type="string" name="key_gmail_skin" id="0x7f0b00f6" />    <public type="string" name="gmail_skin_title" id="0x7f0b00f7" />    <public type="string" name="gmail_skin_summary" id="0x7f0b00f8" />    <public type="string" name="key_about" id="0x7f0b00f9" />    <public type="string" name="pref_about" id="0x7f0b00fa" />    <public type="string" name="key_lpp_buy" id="0x7f0b00fb" />    <public type="string" name="lpp_buy_title" id="0x7f0b00fc" />    <public type="string" name="key_lpp_unlock" id="0x7f0b00fd" />    <public type="string" name="lpp_unlock_title" id="0x7f0b00fe" />    <public type="string" name="key_lpp_email" id="0x7f0b00ff" />    <public type="string" name="key_lpp_txn_id" id="0x7f0b0100" />    <public type="string" name="key_lpp_verify" id="0x7f0b0101" />    <public type="string" name="key_launcher_version" id="0x7f0b0102" />    <public type="string" name="launcher_version_title" id="0x7f0b0103" />    <public type="string" name="launcher_version_summary" id="0x7f0b0104" />    <public type="string" name="key_launcher_restart" id="0x7f0b0105" />    <public type="string" name="launcher_restart_title" id="0x7f0b0106" />    <public type="string" name="key_launcher_backup" id="0x7f0b0107" />    <public type="string" name="launcher_backup_title" id="0x7f0b0108" />    <public type="string" name="key_launcher_restore_backup" id="0x7f0b0109" />    <public type="string" name="launcher_restore_backup_title" id="0x7f0b010a" />    <public type="string" name="key_launcher_restore" id="0x7f0b010b" />    <public type="string" name="launcher_restore_title" id="0x7f0b010c" />    <public type="string" name="application_name" id="0x7f0b010d" />    <public type="string" name="uid_name" id="0x7f0b010e" />    <public type="string" name="folder_name" id="0x7f0b010f" />    <public type="string" name="chooser_wallpaper" id="0x7f0b0110" />    <public type="string" name="wallpaper_instructions" id="0x7f0b0111" />    <public type="string" name="pick_wallpaper" id="0x7f0b0112" />    <public type="string" name="activity_not_found" id="0x7f0b0113" />    <public type="string" name="configure_wallpaper" id="0x7f0b0114" />    <public type="string" name="rename_folder_label" id="0x7f0b0115" />    <public type="string" name="rename_folder_title" id="0x7f0b0116" />    <public type="string" name="rename_action" id="0x7f0b0117" />    <public type="string" name="cancel_action" id="0x7f0b0118" />    <public type="string" name="theme_iconpack_none" id="0x7f0b0119" />    <public type="string" name="widget_skin_default" id="0x7f0b011a" />    <public type="string" name="widget_people_title" id="0x7f0b011b" />    <public type="string" name="widget_bookmarks_title" id="0x7f0b011c" />    <public type="string" name="widget_calendar_agenda" id="0x7f0b011d" />    <public type="string" name="widget_messaging_title" id="0x7f0b011e" />    <public type="string" name="widget_twitter_title" id="0x7f0b011f" />    <public type="string" name="widget_facebook_title" id="0x7f0b0120" />    <public type="string" name="widget_gmail_message_markes_as_read" id="0x7f0b0121" />    <public type="string" name="widget_gmail_message_deleted" id="0x7f0b0122" />    <public type="string" name="version_number" id="0x7f0b0123" />    <public type="string" name="unlock_verbose" id="0x7f0b0124" />    <public type="string" name="unlock_forgot" id="0x7f0b0125" />    <public type="string" name="unlock_lpp_email" id="0x7f0b0126" />    <public type="string" name="unlock_lpp_tnx_id" id="0x7f0b0127" />    <public type="string" name="group_lpwidgets" id="0x7f0b0128" />    <public type="string" name="menu_item_lpwidget" id="0x7f0b0129" />    <public type="string" name="lpwidget_people" id="0x7f0b012a" />    <public type="string" name="lpwidget_bookmarks" id="0x7f0b012b" />    <public type="string" name="lpwidget_calendar" id="0x7f0b012c" />    <public type="string" name="lpwidget_sms" id="0x7f0b012d" />    <public type="string" name="lpwidget_twitter" id="0x7f0b012e" />    <public type="string" name="lpwidget_facebook" id="0x7f0b012f" />    <public type="string" name="lpwidget_friends" id="0x7f0b0130" />    <public type="string" name="lpwidget_gmail" id="0x7f0b0131" />    <public type="string" name="menu_item_popups" id="0x7f0b0132" />    <public type="string" name="popup_missed_calls" id="0x7f0b0133" />    <public type="string" name="popup_unread_sms" id="0x7f0b0134" />    <public type="string" name="popup_bookmarks" id="0x7f0b0135" />    <public type="string" name="popup_recent_apps" id="0x7f0b0136" />    <public type="string" name="menu_item_edit_dock_shortcut" id="0x7f0b0137" />    <public type="string" name="menu_item_pick_swipe_action" id="0x7f0b0138" />    <public type="string" name="menu_item_screen" id="0x7f0b0139" />    <public type="string" name="screen_previous" id="0x7f0b013a" />    <public type="string" name="screen_next" id="0x7f0b013b" />    <public type="string" name="menu_item_set_icon" id="0x7f0b013c" />    <public type="string" name="pick_icon_default" id="0x7f0b013d" />    <public type="string" name="pick_icon_launcherpro" id="0x7f0b013e" />    <public type="string" name="pick_icon_custom" id="0x7f0b013f" />    <public type="string" name="photoPickerNotFoundText" id="0x7f0b0140" />    <public type="string" name="lpicon_phone" id="0x7f0b0141" />    <public type="string" name="lpicon_contacts" id="0x7f0b0142" />    <public type="string" name="lpicon_sms" id="0x7f0b0143" />    <public type="string" name="lpicon_browser" id="0x7f0b0144" />    <public type="string" name="lpicon_email" id="0x7f0b0145" />    <public type="string" name="lpicon_gmail" id="0x7f0b0146" />    <public type="string" name="lpicon_market" id="0x7f0b0147" />    <public type="string" name="lpicon_talk" id="0x7f0b0148" />    <public type="string" name="lpicon_music" id="0x7f0b0149" />    <public type="string" name="lpicon_voice" id="0x7f0b014a" />    <public type="string" name="lpicon_camera" id="0x7f0b014b" />    <public type="string" name="lpicon_maps" id="0x7f0b014c" />    <public type="string" name="lpicon_navigation" id="0x7f0b014d" />    <public type="string" name="lpicon_twitter" id="0x7f0b014e" />    <public type="string" name="lpicon_facebook" id="0x7f0b014f" />    <public type="string" name="lpicon_calendar" id="0x7f0b0150" />    <public type="string" name="menu_item_add_item" id="0x7f0b0151" />    <public type="string" name="group_blank" id="0x7f0b0152" />    <public type="string" name="group_screens" id="0x7f0b0153" />    <public type="string" name="group_drawer" id="0x7f0b0154" />    <public type="string" name="group_lpshortcuts" id="0x7f0b0155" />    <public type="string" name="group_popups" id="0x7f0b0156" />    <public type="string" name="group_applications" id="0x7f0b0157" />    <public type="string" name="group_shortcuts" id="0x7f0b0158" />    <public type="string" name="group_search" id="0x7f0b0159" />    <public type="string" name="group_folder" id="0x7f0b015a" />    <public type="string" name="group_live_folders" id="0x7f0b015b" />    <public type="string" name="group_widgets" id="0x7f0b015c" />    <public type="string" name="group_wallpapers" id="0x7f0b015d" />    <public type="string" name="add_folder" id="0x7f0b015e" />    <public type="string" name="add_clock" id="0x7f0b015f" />    <public type="string" name="add_photo_frame" id="0x7f0b0160" />    <public type="string" name="add_search" id="0x7f0b0161" />    <public type="string" name="out_of_space" id="0x7f0b0162" />    <public type="string" name="shortcut_installed" id="0x7f0b0163" />    <public type="string" name="shortcut_uninstalled" id="0x7f0b0164" />    <public type="string" name="shortcut_duplicate" id="0x7f0b0165" />    <public type="string" name="title_select_shortcut" id="0x7f0b0166" />    <public type="string" name="title_select_live_folder" id="0x7f0b0167" />    <public type="string" name="menu_add" id="0x7f0b0168" />    <public type="string" name="menu_wallpaper" id="0x7f0b0169" />    <public type="string" name="menu_search" id="0x7f0b016a" />    <public type="string" name="menu_notifications" id="0x7f0b016b" />    <public type="string" name="menu_gestures" id="0x7f0b016c" />    <public type="string" name="menu_preferences" id="0x7f0b016d" />    <public type="string" name="menu_settings" id="0x7f0b016e" />    <public type="string" name="permlab_install_shortcut" id="0x7f0b016f" />    <public type="string" name="permdesc_install_shortcut" id="0x7f0b0170" />    <public type="string" name="permlab_uninstall_shortcut" id="0x7f0b0171" />    <public type="string" name="permdesc_uninstall_shortcut" id="0x7f0b0172" />    <public type="string" name="permlab_read_settings" id="0x7f0b0173" />    <public type="string" name="permdesc_read_settings" id="0x7f0b0174" />    <public type="string" name="permlab_write_settings" id="0x7f0b0175" />    <public type="string" name="permdesc_write_settings" id="0x7f0b0176" />    <public type="string" name="search_hint" id="0x7f0b0177" />    <public type="string" name="gadget_error_text" id="0x7f0b0178" />    <public type="string" name="me" id="0x7f0b0179" />    <public type="string" name="draft" id="0x7f0b017a" />    <public type="string" name="drafts" id="0x7f0b017b" />    <public type="style" name="AbsListView" id="0x7f0c0000" />    <public type="style" name="Theme" id="0x7f0c0001" />    <public type="style" name="WorkspaceIcon" id="0x7f0c0002" />    <public type="style" name="WorkspaceIcon.Portrait" id="0x7f0c0003" />    <public type="style" name="WorkspaceIcon.Landscape" id="0x7f0c0004" />    <public type="style" name="SearchButton" id="0x7f0c0005" /></resources>


以上部分为public.xml 文件中的内容


我们再来看一下ids.xml 文件中的内容

<?xml version="1.0" encoding="utf-8"?><resources>    <item type="id" name="home_button" />    <item type="id" name="icon">false</item>    <item type="id" name="label_edit">false</item>    <item type="id" name="ok_button">false</item>    <item type="id" name="allapps">false</item>    <item type="id" name="label">false</item>    <item type="id" name="name">false</item>    <item type="id" name="description">false</item>    <item type="id" name="widget_chooser">false</item>    <item type="id" name="widget_chooser_previous">false</item>    <item type="id" name="widget_chooser_select">false</item>    <item type="id" name="widget_chooser_next">false</item>    <item type="id" name="thewidget">false</item>    <item type="id" name="header">false</item>    <item type="id" name="title">false</item>    <item type="id" name="content_view">false</item>    <item type="id" name="header_shadow">false</item>    <item type="id" name="refresh_button">false</item>    <item type="id" name="refresh_icon">false</item>    <item type="id" name="imagey">false</item>    <item type="id" name="texty">false</item>    <item type="id" name="header_title">false</item>    <item type="id" name="calendar_add_button">false</item>    <item type="id" name="calendar_agenda_button">false</item>    <item type="id" name="calendar_container">false</item>    <item type="id" name="calendar_header">false</item>    <item type="id" name="calendar_view">false</item>    <item type="id" name="agenda_list">false</item>    <item type="id" name="item_row">false</item>    <item type="id" name="color_marker">false</item>    <item type="id" name="item_title">false</item>    <item type="id" name="item_time">false</item>    <item type="id" name="cell7">false</item>    <item type="id" name="color_picker_hs">false</item>    <item type="id" name="color_picker_color">false</item>    <item type="id" name="hex_value">false</item>    <item type="id" name="applist">false</item>    <item type="id" name="cancel">false</item>    <item type="id" name="save">false</item>    <item type="id" name="original_post">false</item>    <item type="id" name="user_photo">false</item>    <item type="id" name="status_layout">false</item>    <item type="id" name="user">false</item>    <item type="id" name="body">false</item>    <item type="id" name="date">false</item>    <item type="id" name="photo">false</item>    <item type="id" name="caption">false</item>    <item type="id" name="likes">false</item>    <item type="id" name="like_button">false</item>    <item type="id" name="loading_comments">false</item>    <item type="id" name="comment_text">false</item>    <item type="id" name="comment_bar">false</item>    <item type="id" name="comment_button">false</item>    <item type="id" name="user_and_date">false</item>    <item type="id" name="switches">false</item>    <item type="id" name="timeline_button">false</item>    <item type="id" name="dm_button">false</item>    <item type="id" name="compose_button">false</item>    <item type="id" name="status">false</item>    <item type="id" name="submit">false</item>    <item type="id" name="wall_button">false</item>    <item type="id" name="source_logo">false</item>    <item type="id" name="tweet_layout">false</item>    <item type="id" name="retweet_icon">false</item>    <item type="id" name="char_count">false</item>    <item type="id" name="twitter_checkbox">false</item>    <item type="id" name="facebook_checkbox">false</item>    <item type="id" name="sms_compose_button">false</item>    <item type="id" name="gmail_layout">false</item>    <item type="id" name="sender_and_date">false</item>    <item type="id" name="sender">false</item>    <item type="id" name="subject">false</item>    <item type="id" name="snippet">false</item>    <item type="id" name="webbyview">false</item>    <item type="id" name="group">false</item>    <item type="id" name="drag_layer">false</item>    <item type="id" name="workspace">false</item>    <item type="id" name="cell1">false</item>    <item type="id" name="cell2">false</item>    <item type="id" name="cell3">false</item>    <item type="id" name="cell4">false</item>    <item type="id" name="cell5">false</item>    <item type="id" name="cell6">false</item>    <item type="id" name="shortcut_bar">false</item>    <item type="id" name="shortcut_dock_2">false</item>    <item type="id" name="quick_shortcut_9">false</item>    <item type="id" name="quick_shortcut_8">false</item>    <item type="id" name="quick_shortcut_7">false</item>    <item type="id" name="quick_shortcut_6">false</item>    <item type="id" name="quick_shortcut_5">false</item>    <item type="id" name="shortcut_dock_1">false</item>    <item type="id" name="quick_shortcut_4">false</item>    <item type="id" name="quick_shortcut_3">false</item>    <item type="id" name="quick_shortcut_2">false</item>    <item type="id" name="quick_shortcut_1">false</item>    <item type="id" name="quick_shortcut_0">false</item>    <item type="id" name="shortcut_dock_3">false</item>    <item type="id" name="quick_shortcut_14">false</item>    <item type="id" name="quick_shortcut_13">false</item>    <item type="id" name="quick_shortcut_12">false</item>    <item type="id" name="quick_shortcut_11">false</item>    <item type="id" name="quick_shortcut_10">false</item>    <item type="id" name="delete_zone">false</item>    <item type="id" name="screen_indicator">false</item>    <item type="id" name="all_apps_stub">false</item>    <item type="id" name="home_button_container">false</item>    <item type="id" name="resize_layer">false</item>    <item type="id" name="resize_handle">false</item>    <item type="id" name="summary">false</item>    <item type="id" name="checkbox">false</item>    <item type="id" name="folder_close">false</item>    <item type="id" name="folder_content">false</item>    <item type="id" name="listview">false</item>    <item type="id" name="refresh_list">false</item>    <item type="id" name="create_new">false</item>    <item type="id" name="text1">false</item>    <item type="id" name="text2">false</item>    <item type="id" name="thegrid">false</item>    <item type="id" name="group_all">false</item>    <item type="id" name="group_favorites">false</item>    <item type="id" name="container">false</item>    <item type="id" name="url">false</item>    <item type="id" name="popupview">false</item>    <item type="id" name="app">false</item>    <item type="id" name="folder_name">false</item>    <item type="id" name="seekbar">false</item>    <item type="id" name="sms_card_view">false</item>    <item type="id" name="contact_photo">false</item>    <item type="id" name="footer">false</item>    <item type="id" name="sms_delete">false</item>    <item type="id" name="sms_reply">false</item>    <item type="id" name="sms_mark_button">false</item>    <item type="id" name="sms_layout">false</item>    <item type="id" name="thumb_title">false</item>    <item type="id" name="thumb_progress">false</item>    <item type="id" name="thumb_status">false</item>    <item type="id" name="mentions_button">false</item>    <item type="id" name="unlock_layout">false</item>    <item type="id" name="request_code">false</item>    <item type="id" name="unlock_email">false</item>    <item type="id" name="unlock_txn_id">false</item>    <item type="id" name="unlock_button">false</item>    <item type="id" name="wallpaper">false</item>    <item type="id" name="gallery">false</item>    <item type="id" name="set">false</item>    <item type="id" name="widget_search">false</item>    <item type="id" name="search_plate">false</item>    <item type="id" name="search_src_text">false</item>    <item type="id" name="search_voice_btn">false</item></resources>

我们发现public.xml这个文件中的内容做的事情好像就是提取出了values文件中的元素然后给它们分配一个id


public.xml文件叫做统一管理资源id,是为attr, id , drawable 所指定的一个32的id值. public.xml文件一般是系统使用的,为了确保我们的手机系统版本升级之后前后引用id一致.和public.xml作用一样的是symbols.xml文件.这个文件是在Android4.2 之后才区分出来的


5.6 styles.xml

styles.xml——当中是各个控件的“样式”,样式由一个个属性所组成。我们在编辑xml文件的时候,不同的类所能设置的属性有共同的,也有不同的,都是由样式来控制的。具体可以去看styles.xml这个文件的内容。



在分析到这里的时候我们可以回顾一下,这里这些资源有那些是独一无二的,那些是不容易被修改的.因为只有特别的才可以做为我们选择的特征.在资源中,就算APP被加固了,但是像public中的内容是不能随便被修改的.否则很可能会导致整个APP崩了.public中的内容包含的是values文件夹下的.之后,我做了一个量化的分析,对大量的样本分析,提取出引用最多的资源.



在这里我选了17个特征来粗略的区分我们的Activity.

他们是Activity的数量, intent-filter的数量,权限的数量, png的数量, xml文件的数量,xml引用的数量. receiver的数量, service的数量. id的数量, drawable的数量. string的数量,color的数量,color的数量, style的数量,整型的数量, 布局文件的数量,dimen的数量, array的数量.



代码来了

基本的基础知识就是这个样子的,下面我们需要开始写代码了. 要看懂代码我们需要一点


数据库的知识

python编程能力

Java的编程能力

shell script 

C/C++

MPI编程




1. 我们需要用APKtool反编译APK文件得到我们的res


2. 创建数据库保存处理的结果



import osimport sys import confimport MySQLdbtry:    import xml.etree.cElementTree as ET except ImportError:    import xml.etree.ElementTree as ETfrom xml.dom import minidom#*********************************##----------------------------# Database connection#----------------------------#def connect_db():    con = MySQLdb.connect(        host = conf.DB_HOST,        user = conf.DB_USER,        passwd = conf.DB_PASSWD,        db = conf.DB_NAME,        charset = 'utf8')    return con conn = connect_db()curs = conn.cursor()def count_ref(apkPath,apkname):    resPath = os.path.join(apkPath,"res")        resfilelist = os.listdir(resPath)    resfile_cnt = len(resfilelist)            avg_png = 0 # 4    avg_xml = 0 # 5    id_cnt = 0    drawable_cnt = 0    string_cnt = 0    color_cnt = 0    style_cnt = 0    dimen_cnt = 0    layout_cnt = 0    ref_xml = 0    integer_cnt = 0    array_cnt = 0    dr_cnt = 0    all_xml = 0    all_png = 0    for resfile in resfilelist:        #************************        # 5. calculate avg_xml         resfilePath = os.path.join(resPath,resfile)  # each apk res path         xmlList = os.listdir(resfilePath)        all_xml += len(xmlList)        for xmlfile in xmlList:            if not xmlfile.endswith('.xml'):                all_xml -= 1          #************************        # 4. calculate avg_png         if resfile.startswith("drawable"):            dr_cnt += 1            drawablePath = os.path.join(resPath,resfile)            pngList = os.listdir(drawablePath)            all_png += len(pngList)            for pngfile in pngList:                if not pngfile.endswith(".png"):                    all_png -= 1                #***********************        # calculate id string color style dimen integer array         if resfile == "values":            valuesPath = os.path.join(resPath, resfile)            valuelist = os.listdir(valuesPath)            if len(valuelist) !=0:                for xmlfile in valuelist:                    xmlfilePath = os.path.join(valuesPath,xmlfile)                    if os.path.exists(xmlfilePath):                        try:                            xmldoc = minidom.parse(xmlfilePath)                        except:			    tips = "{0} cannot be parsed!".format(xmlfilePath)                            print tips                            missLogPath = "/home/chicho/Workspace/ResDroid/missLog/"                             cmd = "cp -r {0} {1}".format(apkPath,missLogPath)                            os.system(cmd)                            cmd1 = "echo {0}, {1} cannot be parsed!>> output.txt".format(apkPath,xmlfilePath)                            os.system(cmd1)                            return                                                if xmlfile == "public.xml":                            id_list = xmldoc.getElementsByTagName('public')                            id_cnt = len(id_list)                        if xmlfile == "arrays.xml":                            array_list = xmldoc.getElementsByTagName('item')                            array_cnt = len(array_list)                        if xmlfile == "strings.xml":                            string_list = xmldoc.getElementsByTagName('item')                            string_cnt += len(string_list)                            string_list1 = xmldoc.getElementsByTagName('string')                            string_cnt += len(string_list1)                        if xmlfile == "colors.xml":                            color_list = xmldoc.getElementsByTagName('item')                            color_cnt = len(color_list)                        if xmlfile == "dimens.xml":                            dimen_list = xmldoc.getElementsByTagName('dimen')                            dimen_cnt = len(dimen_list)                        if xmlfile == "styles.xml":                            style_list = xmldoc.getElementsByTagName('style')                            style_cnt = len(style_list)                        if xmlfile == "attrs.xml":                            nodes = xmldoc.getElementsByTagName('attr')                            for n in nodes:                                if n.getAttribute("format") == "integer":                                    integer_cnt += 1                                        else:                        cmd = "echo {0}, doesn't exists >> output.txt".format(apkPath)                        os.system(cmd)                        continue        #***********************        # calculate drawable        if resfile == "drawable":            drawablePath = os.path.join(resPath,"drawable")            drawable_list = os.listdir(drawablePath)            drawable_cnt = len(drawable_list)        #**********************        # calculate layout         if resfile == "layout":            layoutPath = os.path.join(resPath,"layout")            layout_list = os.listdir(layoutPath)            layout_cnt = len(layout_list)        #**********************        # calculate xml         if resfile == "xml":            xmlPath = os.path.join(resPath,"xml")            xml_list = os.listdir(xmlPath)            ref_xml = len(xml_list)            if (resfile_cnt != 0):        avg_xml = all_xml/resfile_cnt    if (dr_cnt != 0):        avg_png = all_png/dr_cnt #***********************************************    manifestPath = os.path.join(apkPath,"AndroidManifest.xml")        activity_cnt = 0    perm_cnt = 0    if_cnt = 0    service_cnt = 0    receiver_cnt = 0        if os.path.exists(manifestPath):        try:            xmldoc = minidom.parse(manifestPath)        except:	    tips = "{0} cannot be parsed!".format(xmlfilePath)	    print tips            missLogPath = "/home/chicho/Workspace/ResDroid/missLog/"            if not os.path.exists(missLogPath):                os.makedirs(missLogPath)                        cmd = "cp -r {0} {1}".format(apkPath,missLogPath)            os.system(cmd)            cmd1 = "echo {1} cannot be parsed!>> output.txt".format(apkPath,xmlfilePath)            os.system(cmd1)            return                                    permission_list = xmldoc.getElementsByTagName('uses-permission')        perm_cnt = len(permission_list)        activity_list = xmldoc.getElementsByTagName('activity')        activity_cnt = len(activity_list)        service_list = xmldoc.getElementsByTagName('service')        service_cnt = len(service_list)        if_list = xmldoc.getElementsByTagName('intent-filter')        if_cnt = len(if_list)        receiver_list = xmldoc.getElementsByTagName('receiver')        receiver_cnt = len(receiver_list)    else:        cmd = "echo {0},cannot find AndroidManifest.xml >> output.txt".format(apkPath)        return    category = get_Category()    sql_tmp = 'INSERT INTO `statis_feature` (\            app_name, app_path, category, activity_cnt, perm_cnt, if_cnt, png_cnt,\            xml_cnt, id_cnt, drawable_cnt, string_cnt, color_cnt, style_cnt,\            dimen_cnt, layout_cnt, xml_ref, integer_cnt, array_cnt, service_cnt, receiver_cnt) \            VALUES("{0}", "{1}", "{2}", {3}, {4}, {5}, {6}, {7}, {8}, {9}, {10}, {11}, {12}, {13}, {14}, {15}, {16}, {17}, {18},{19})'        sql = sql_tmp.format(apkname, apkPath, category,activity_cnt, perm_cnt, if_cnt, avg_png, avg_xml, id_cnt, drawable_cnt, \                         string_cnt, color_cnt, style_cnt, dimen_cnt, layout_cnt, ref_xml, integer_cnt, array_cnt, service_cnt, receiver_cnt)        try:        curs.execute(sql)        conn.commit()        tips = "now insert {0} into statis_feature table".format(apkPath)        print tips        cmd = "echo {0} >> staout.txt".format(apkPath)        os.system(cmd)    except:        cmd = "echo {0} >> output.txt".format(apkPath)        os.system(cmd)        cmd = "echo {0},{1},{2},{3},{4},{5},{6},{7},{8},{9},{10},{11},{12},{13},{14},{15},{16} >> statis_feature.txt".format(\                activity_cnt, perm_cnt, if_cnt, avg_png, avg_xml, id_cnt, drawable_cnt, string_cnt, color_cnt,\                style_cnt, dimen_cnt, layout_cnt, ref_xml,integer_cnt,array_cnt,service_cnt,receiver_cnt)    os.system(cmd)    '''    print "act_cnt:",activity_cnt,"perm_cnt",perm_cnt,"intent-filter",if_cnt,"png",avg_png,"avg_xml",avg_xml,"service_cnt",service_cnt,"receiver_cnt",receiver_cnt    print "id",id_cnt,"drawable",drawable_cnt,"string",string_cnt,"color",color_cnt,"style",style_cnt,"dimen",dimen_cnt,"layout",layout_cnt,"xml",ref_xml,"integer",integer_cnt,"array",array_cnt    '''if __name__ == "__main__":        apkList = os.listdir(path)    guiList = os.listdir(guiPath)        f = open(statoutPath,'r')    processedApkList = []    for apk in f.readlines():        apk = apk.replace("\n","")        processedApkList.append(apk)    for APK in apkList:        apkPath = os.path.join(path,APK)                    if apkPath in processedApkList:            tips = "{0} has already exists!".format(apkPath)            print tips            continue        if os.path.exists(apkPath):            for guifile in guiList:                if guifile.endswith(".xml"):                    guiname = guifile.split("-")                     guiname.pop()                    guiname = '-'.join(guiname)                    if guiname == APK:                        count_ref(apkPath,APK)    curs.close()    conn.close()print "all work done!"

















至少我还能够勇敢的自我欣赏

你必须非常努力才可以看起来毫不费力

  相关解决方案