Mobile Security Defender 05

Source: Internet
Author: User

1. Get System Contact information
  1. Understand the Contactsprovider content provider app for your system
    1. Com.android.providers.contacts Bag
    2. Contact2.db Database
    3. Table Raw_contacts (Contact_id,display_name)
      CONTACT_ID 3 4
      Save the ID of each contact, one contact_id per contact
    4. Table data (mimetype_id,raw_contact_id,)
      Save the contact's data by raw_contact_id to identify which contact the data belongs to and identify the type of the data by mimetype_id
    5. Table Mimetypes: Represents the type of data
    6. View: view_data: Integrating data tables and Mimetypes tables
  2. Get contact data from a content provider
    • Authentication, permissions: Com.android.contacts or Contacts (previous version of authentication)
    • Accessing the uri:content://com.android.contacts/raw_contacts of the Raw_contacts table
    • Accessing the Uri:content://com.android.contacts/data of the View_data table
    • Access to the system's contact information requires permission
      • Android.permission.READ_CONTACTS
      • Android.permission.WRITE_CONTACTS
  3. Show and get selected contacts
    1. displaying system contact information for queries through the ListView
      A detailed description of the ListView
      See: http://www.cnblogs.com/devinzhang/archive/2012/01/20/2328334.html
      With Baseadapter
    2. When you select a contact, you should callback the data to the security Number edit box.
, 2, mobile phone anti-theft function realization
 手机定位 、 报警音乐 、 远程擦除数据、 远程锁屏

1. How to accept Instructions
In the way of message push:
-Push messages in the form of sockets
Socket It is a long-connected protocol, and the HTTP protocol is a short-connection protocol, the socket communication may be connected by a firewall (connection but no message-inactive connections will be considered to consume memory will be digested by the firewall)

       解决方法: 采取心跳机制方式来解决(每隔一段时间发送空包或者几字节的信息,会耗流量,但是会保持活跃状态)      不足: 必须要有联互联网    - 通过移动运营商的短信方式实现推送消息 (不能欠费、要有移动信号,扣费)

(This project is the use of this)

    - 采用第三方应用框架实现推送      1. 即时通信框架 :xmpp       
    1. Send instructions by SMS

      1. Define a broadcast receiver that subscribes to text messages
        Steps:
        1. Inherit broacastreceive, rewrite OnReceive (), and get SMS via intent
        2. Register the receiver and subscribe to SMS broadcast events
          Android.provider.Telephony.SMS_RECEIVED
        3. Set priority android:priority= "1000"
        4. Truncation of broadcast delivery
          Abortbroadcast ();
          5. Need permission to receive SMS: Android.permission.RECEIVE_SMS
      2. Mobile Location function
        1. Mobile positioning method (Baidu map)
          • GPS positioning, Beidou navigation
          • WiFi Location: Network location (IP address), not very accurate
          • Base station positioning (Huawei, ZTE)
        2. Location positioning of Android implementations
          Locationmanager:
          Permission required to get location information
      3. Play Alarm music function
      4. One Button lock screen function

      5. Remote Erase Data feature

Mobile Security Defender 05

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.