首页
社区
课程
招聘
[求助]豌豆夹识别android手机设备的方式
发表于: 2011-6-8 10:19 11498

[求助]豌豆夹识别android手机设备的方式

2011-6-8 10:19
11498
感觉豌豆夹识别android手机设备的功能非常的实用。出于兴趣想研究一下怎么实现的,于是就打开被混淆的.net代码主程序来看,简单的去了流程混淆之后,发现每个功能用的是回调函数,而界面又是用的html+css+js写的。根据回调函数的名字来看,下面代码中红色部分就是要找回调函数。但不能找到源头;有没有朋友研究过或是知道是怎么实现的吗?
namespace WD.PCSuit.View.Welcome
{
    using System;
    using System.Runtime.CompilerServices;
    using WD.PCSuit.View;
    using XI8dRl6IvUXVg35Trjr;

    public class WelcomeActions : Actions
    {
        public const string ANDROID_DEVICE_SHW = [B][COLOR="Red"]"showandroiddeviceinfo";[/COLOR][/B]        public const string ANDROID_FALLBACK = "androidfallback";
        public const string APK_UPDATING = "updatingapk";
        public const string APPS_USER_RECOMMEND_REMOVE = "userrecommendappsremove";
        public const string APPS_USER_RECOMMEND_RETRY = "userrecommendretry";
        public const string APPS_USER_RECOMMEND_SHOW = "userrecommendappsshow";
        public const string CANCEL_SHOW_SCREEN_VIDEO = "cancelshowscreenvideo";
        public const string COLLECT_DEVICE_IDENTIFICATION_INFO = "collectdeviceidentificationinfo";
        public const string CONNECT_WIFI_DEVICE = "connectwifidevice";
        public const string CONNECTION_GUIDE_PARAMETER = "connectionguideparameter";
        public const string CONNECTION_OPEN = "openconnection";
        public const string COPY_SCREEN_SHOT = "copyscreenshot";
        public const string DRIVER_HAS_INSTALL = "driverhasinstall";
        public const string DRIVER_INSTALL = "installdriver";
        public const string DRIVER_INSTALL_PROGRESS = "showinstallprogress";
        public const string FULL_SCREEN_SHOT = "fullscreenshot";
        public const string GET_DEVICE_INFO_TIMEOUT = "getdeviceinfotimeout";
        public const string GET_EMBED_APK_INFO = "getembedapkinfo";
        public const string INSTALL_APKS = "installapks";
        public const string IS_REMEMBER_WIFI_PASSWD = "isrememberwifipasswd";
        public const string MOTO_DRIVER_ERROR = "motodrivererror";
        public const string MOUNT_GUIDE_PARAMETER = "mountguideparameter";
        public const string OLDDEVICE_CONNECT_FAILED = "olddeviceconnectfailed";
        public const string OPEN_PHONE_STORAGE = "openphonestorage";
        public const string OPEN_SDCARD_STORAGE = "opensdcardstorage";
        public const string PUSH_ADWORDS = "pushadwords";
        public const string PUSH_CONTENT = "pushcontent";
        public const string RE_CONNECTION = "reconnection";
        public const string REFRESH_SCREEN_SHOT = "refreshscreenshot";
        public const string RESCAN_DEIVCES = "rescandevices";
        public const string SAVE_SCREEN_SHOT = "savescreenshot";
        public const string SELECT_CONNECTION_MODE = "selectconnectionmode";
        public const string SELECT_DEVICE = "selectdevice";
        public const string SET_NICK_NAME = "setnickname";
        public const string SET_OPTIONS = "setoptions";
        public const string SET_WIFI_NICK_NAME = "setwifinickname";
        public const string SHOW_CONNECTION_MODE = "showconnectionmode";
        public const string SHOW_DIAGNOSIS = "showdiagnosis";
        public const string SHOW_FALLBACKS = "showfallbacks";
        public const string SHOW_MULTI_DEVICES = "showmultidevices";
        public const string SHOW_MULTI_DEVICES_ENT = "showmultidevicesent";
        public const string SHOW_MULTI_DEVICES_GENERAL = "showmultidevicesgeneral";
        public const string SHOW_SCREEN_VIDEO = "showscreenshot";
        public const string START_SCREEN_VIDEO = "startscreenvideo";
        public const string SWITCH_CH_PAGE = "switchchpage";
        public const string SWITCH_TO_APPS_LOCAL = "switchtoappslocal";
        public const string SWITCH_VIEW = "switchview";
        public const string UDISK_DEVICE_SHW = "showudiskdeviceinfo";
        public const string UPDATE_APK = "updateapk";
        public const string UPDATE_CHECK = "checkupdate";
        public const string UPDATE_PROGRESS_SHW = "showupdateprogress";
        public const string UPDATE_START = "startupdate";
        public const string UPDATE_STOP = "stopupdate";
        public const string USB_FALLBACK = "usbfallback";
        public const string VERSION_SHW = "showversion";
        public const string WEIBO_SCREENSHOW_CHECK_LOGIN = "weiboscreenshowchecklogin";
        public const string WEIBO_SCREENSHOW_LOGIN = "weiboscreenshowlogin";
        public const string WEIBO_SCREENSHOW_LOGOUT = "weiboscreenshowlogout";
        public const string WEIBO_SCREENSHOW_SEND = "weiboscreenshowsend";
        public const string WIFI_GUIDE_PARAMETER = "wifiguideparameter";

        [MethodImpl(MethodImplOptions.NoInlining)]
        public WelcomeActions()
        {
            RSAI4b6RXFWe1VXNgcl.W7iu2NkiJlcb1();
        }
    }
}


js里边的代码:
Welcome.AndroidDeviceViewer.Actions={UPDATE_APK:"updatingapk",ANDROID_DEVICE_SHW:"showandroiddeviceinfo",GET_DEVICE_INFO_TIMEOUT:"getdeviceinfotimeout",PROGRESS_SHW:"showprogress",SWITCH_VIEW:"switchview",OPEN_CONNECTION:"openconnection",OPEN_LINK:"openlink",SHOW_MULTI_DEVICES:'showmultidevices',START_SCREEN_VIDEO:'startscreenvideo',CANCEL_SHOW_SCREEN_VIDEO:'cancelshowscreenvideo',SHOW_SCREEN_VIDEO:'showscreenshot',SAVE_SCREEN_SHOT:'savescreenshot',COPY_SCREEN_SHOT:'copyscreenshot',REFRESH_SCREEN_SHOT:'refreshscreenshot',SET_NICK_NAME:'setnickname',PUSH_CONTENT:'pushcontent',REPAINT:"repaint",OPEN_PHONE_STORAGE:"openphonestorage",OPEN_SDCARD_STORAGE:"opensdcardstorage",OPEN_CONNECTION:"openconnection",USERRECOMMENDAPPSHOW:"userrecommendappsshow",USER_RECOMMEND_RETRY:"userrecommendretry",SWITCH_TO_APPS_LOCAL:"switchtoappslocal",USER_RECOMMEND_REMOVE:'userrecommendappsremove',FULL_SCREEN_SHOT:'fullscreenshot'};

难道是这样的:::
设备插入以后可以获得设备的ID,如通过注册表、API方式等可获得,但是只是获得设备ID怎么获得设备型号呢,难得豌豆夹买了很多手机来分析设备ID找出其规律?

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USBSTOR\Disk&Ven_ZTE&Prod_Mass_Storage&Rev_ffff\7&9ce91f&0&P726CU&0

[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!

收藏
免费 0
支持
分享
最新回复 (4)
雪    币: 53
活跃值: (27)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
看到个这个URL:http://wandoujia.com/device.html
2011-6-8 11:20
0
雪    币: 952
活跃值: (1821)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
3
......adb devices 可以返回设备的一些信息
2011-6-10 16:07
0
雪    币: 53
活跃值: (27)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
没有装驱动也能返回吗
2011-6-17 11:34
0
雪    币: 952
活跃值: (1821)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
5
不行。。豌豆夹会自动装驱动
2011-6-17 11:43
0
游客
登录 | 注册 方可回帖
返回
//