CN104281666A - Contact and grouping processing method under Android system - Google Patents

Contact and grouping processing method under Android system Download PDF

Info

Publication number
CN104281666A
CN104281666A CN201410500200.3A CN201410500200A CN104281666A CN 104281666 A CN104281666 A CN 104281666A CN 201410500200 A CN201410500200 A CN 201410500200A CN 104281666 A CN104281666 A CN 104281666A
Authority
CN
China
Prior art keywords
contact
information
database
android system
processing method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410500200.3A
Other languages
Chinese (zh)
Inventor
韩佳南
于敏
王功乾
焦本斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201410500200.3A priority Critical patent/CN104281666A/en
Publication of CN104281666A publication Critical patent/CN104281666A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/217Database tuning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/604Tools and structures for managing or administering access control systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2149Restricted operating environment

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioethics (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Automation & Control Theory (AREA)
  • Data Mining & Analysis (AREA)
  • Storage Device Security (AREA)

Abstract

The invention discloses a contact and grouping processing method under an Android system and relates to the technical field of intelligent systems. The method includes the steps of 201, respectively creating and naming a contact database and a grouping database, and saving the two in the preset folder of the Android system; 202, acquiring read-write authority while opening the contact database and the grouping database; 203, judging what kind of information a user operates, skipping to the step 204 if the user operates contact information, and skipping to the step 205 if the user operates grouping information; 204, acquiring contact database instances according to contact database categories, and searching the contact database in the preset folder according to the contact database instances; 205, acquiring grouping database instances according to grouping database categories, and searching the grouping database in the preset folder according to the grouping database instances.

Description

Contact person under a kind of android system and packet processing method thereof
Technical field
The present invention relates to intelligent system technical field, is specifically the contact person under a kind of android system and packet processing method thereof.
Background technology
Android is a kind ofly mainly used in mobile device based on the freedom of Linux and the operating system of open source code, as smart mobile phone and panel computer, is led and exploitation by Google company and open mobile phone alliance.Under the promotion of open handheld device alliance, android system enjoys the accreditation of user masses and the favor of device fabrication manufacturer and operator with the characteristic that it is increased income, in November, 2012 data display, Android occupies the share in global operation system of smart phone market 76%, and Chinese market occupation rate is 90%.
Android, as the highest operating system of intelligent machine market share, while bringing complete new experience to user, can make again user face certain safety problem.At present, the phenomenon utilizing Android version cell phone software to transfer even to revise userspersonal information is very general, comprising reading and write contact data.Shown in Figure 1, the flow process of traditional reading associated person information comprises:
Step S101: obtain android system contact person and read authority;
Step S102: obtain and be used for the object of class of service data;
Step S103: search contact database, the position that contact database is deposited and name are called/data/data/com.android.providers.contacts/databases/conta cts2.db;
All records of step S104: inquiry contacts table;
Step S105: if record is not empty, then travels through, read all data of contact person one by one.
Due to increasing income property of android system, example is stored as with contact person, the address list of Android phone is that the android.provider.ContactsContract class calling Android source code realizes, contact person all exists in the database of system, and this database purchase is at the assigned address of system, as long as so the software in access system data storehouse the information even revising contact person in communication can be obtained.Therefore traditional contact person and the storage means of grouping thereof cannot meet the demand of user to personal information security.
Summary of the invention
For the defect existed in prior art; the object of the present invention is to provide the contact person under a kind of android system and packet processing method thereof; the safety of the associated person information that this method can effectively protect user to store, meets the demand of user to personal information security.
For reaching above object, the technical scheme that the present invention takes is: the contact person under a kind of android system and packet processing method thereof, comprise the following steps: step 201. creates respectively and names contact database and integrated data storehouse, be kept in the default file folder of android system; Access limit is obtained while step 202. opens contact database or integrated data storehouse; Step 203. judges user to which kind of information operates, if operate associated person information, jumps to step 204; If operate grouping information, then jump to step 205; Step 204. obtains contact database example by the class of contact database, and then searches the contact database in default file folder by database instance; Step 205. obtains integrated data storehouse example by the class in integrated data storehouse, and then searches the integrated data storehouse in default file folder by integrated data storehouse example.
On the basis of technique scheme, during newly-built contact person, a reserved column split information; During newly-built or editor's grouping information, by the grouping information in integrated data storehouse, contact person belonging to this group is done radio check mark, show user.
On the basis of technique scheme, also comprise: user obtains All Contacts's information from contact database.
On the basis of technique scheme, also comprise: user obtains all frequent contact information from contact database.
On the basis of technique scheme, also comprise: user, according to group names, obtains all associated person informations belonging to this grouping from contact database.
On the basis of technique scheme, also comprise: contact database using the form of array as rreturn value, and this array in the mode of list by relative information displaying to user.
On the basis of technique scheme, also comprise: any associated person information adds in contact database by user.
On the basis of technique scheme, also comprise: user revises any associated person information or grouping information in contact database or integrated data storehouse.
On the basis of technique scheme, also comprise: user deletes any associated person information or grouping information in contact database or integrated data storehouse.
Beneficial effect of the present invention is:
1, the present invention is by self-built contact database and integrated data storehouse, by contact database and integrated data library storage at particular category data/data/ bag name/databases/, and the storage in contact database and integrated data storehouse self-defined title in a program, owing to only the contacts2.db file in access system data storehouse under data/data/com.android.providers.contacts/databases/ file when third party software in the market checks associated person information.Therefore, the safety of the associated person information that this method can effectively protect user to store, meets the demand of user to personal information security.
2, the present invention is by self-built contact database and integrated data storehouse, achieve the function of contact person and grouping thereof, and do not need the android.provider.ContactsContract class calling Android source code, module of being more convenient for is transplanted, and this method does not rely on android system contact person partial source symbols, therefore, it is possible to directly use safely on any equipment of Android system.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of reading associated person information traditional in background technology;
Fig. 2 is the process flow diagram of contact person in the embodiment of the present invention under android system and packet processing method thereof.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.
Shown in Figure 2, the contact person under a kind of android system and packet processing method thereof, comprise the following steps:
Step S201. creates respectively and names contact database and integrated data storehouse, is kept in the default file folder of android system.
Access limit is obtained while step S202. user opens contact database or integrated data storehouse.
Step 203. judges user to which kind of information operates, if operate associated person information, jumps to step S204; If operate grouping information, then jump to step S205.
Step S204. obtains contact database example by the class of contact database, and then searches the contact database in default file folder by database instance; Preferably, during newly-built contact person, a reserved column split information, uses during in order to dividing into groups belonging to this contact person of trailer record.Jump to step S206.
Step S205. obtains integrated data storehouse example by the class in integrated data storehouse, and then searches the integrated data storehouse in default file folder by integrated data storehouse example.Preferably, during newly-built or editor's grouping information, by the grouping information in integrated data storehouse, contact person belonging to this group is done radio check mark, show user, when grouping information changes, if a contact person belongs to multiple grouping, with CSV between multiple grouping.Jump to step S207.
Step S206. user obtains All Contacts's information or frequent contact information from contact database, jumps to step S208.
Step S207. user, according to group names, obtains all associated person informations belonging to this grouping, jumps to step S208 from contact database.
Step S208. contact database using the form of array as rreturn value, and this array in the mode of list by relative information displaying to user.Preferably, any associated person information can add in contact database by user.Preferably, user can revise any associated person information or grouping information in contact database or integrated data storehouse.Preferred, user can delete any associated person information or grouping information in contact database or integrated data storehouse.
The present invention is not limited to above-mentioned embodiment, and for those skilled in the art, under the premise without departing from the principles of the invention, can also make some improvements and modifications, these improvements and modifications are also considered as within protection scope of the present invention.The content be not described in detail in this instructions belongs to the known prior art of professional and technical personnel in the field.

Claims (9)

1. the contact person under android system and a packet processing method thereof, is characterized in that, comprises the following steps:
Step 201. creates respectively and names contact database and integrated data storehouse, is kept in the default file folder of android system;
Access limit is obtained while step 202. opens contact database or integrated data storehouse;
Step 203. judges user to which kind of information operates, if operate associated person information, jumps to step 204; If operate grouping information, then jump to step 205;
Step 204. obtains contact database example by the class of contact database, and then searches the contact database in default file folder by database instance;
Step 205. obtains integrated data storehouse example by the class in integrated data storehouse, and then searches the integrated data storehouse in default file folder by integrated data storehouse example.
2. the contact person under android system as claimed in claim 1 and packet processing method thereof, is characterized in that:
During newly-built contact person, a reserved column split information;
During newly-built or editor's grouping information, by the grouping information in integrated data storehouse, contact person belonging to this group is done radio check mark, show user.
3. the contact person under android system as claimed in claim 1 and packet processing method thereof, is characterized in that, also comprise: user obtains All Contacts's information from contact database.
4. the contact person under android system as claimed in claim 1 and packet processing method thereof, is characterized in that, also comprise: user obtains all frequent contact information from contact database.
5. the contact person under android system as claimed in claim 1 and packet processing method thereof, is characterized in that, also comprise: user, according to group names, obtains all associated person informations belonging to this grouping from contact database.
6. the contact person under the android system as described in claim 3 or 4 or 5 and packet processing method thereof, is characterized in that, also comprise: contact database using the form of array as rreturn value, and this array in the mode of list by relative information displaying to user.
7. the contact person under android system as claimed in claim 1 and packet processing method thereof, is characterized in that, also comprise: any associated person information adds in contact database by user.
8. the contact person under android system as claimed in claim 1 and packet processing method thereof, is characterized in that, also comprise: user revises any associated person information or grouping information in contact database or integrated data storehouse.
9. the contact person under android system as claimed in claim 1 and packet processing method thereof, is characterized in that, also comprise: user deletes any associated person information or grouping information in contact database or integrated data storehouse.
CN201410500200.3A 2014-09-25 2014-09-25 Contact and grouping processing method under Android system Pending CN104281666A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410500200.3A CN104281666A (en) 2014-09-25 2014-09-25 Contact and grouping processing method under Android system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410500200.3A CN104281666A (en) 2014-09-25 2014-09-25 Contact and grouping processing method under Android system

Publications (1)

Publication Number Publication Date
CN104281666A true CN104281666A (en) 2015-01-14

Family

ID=52256539

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410500200.3A Pending CN104281666A (en) 2014-09-25 2014-09-25 Contact and grouping processing method under Android system

Country Status (1)

Country Link
CN (1) CN104281666A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1836218A (en) * 2003-08-28 2006-09-20 国际商业机器公司 Database system, information acquisition enabled/disabled inspection system, information acquisition method, and program
US20110113468A1 (en) * 2004-10-29 2011-05-12 Core Security Technologies Establishing and enforcing security and privacy policies in web-based applications
CN103106372A (en) * 2013-01-17 2013-05-15 上海交通大学 Lightweight class privacy data encryption method and system for Android system
CN103491532A (en) * 2013-09-24 2014-01-01 北京大学 Cooperative privacy protection method and system based on Android platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1836218A (en) * 2003-08-28 2006-09-20 国际商业机器公司 Database system, information acquisition enabled/disabled inspection system, information acquisition method, and program
US20110113468A1 (en) * 2004-10-29 2011-05-12 Core Security Technologies Establishing and enforcing security and privacy policies in web-based applications
CN103106372A (en) * 2013-01-17 2013-05-15 上海交通大学 Lightweight class privacy data encryption method and system for Android system
CN103491532A (en) * 2013-09-24 2014-01-01 北京大学 Cooperative privacy protection method and system based on Android platform

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
杨娇: "基于Android平台手机通讯录的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
秦建平: "《Android编程宝典》", 31 March 2013, 北京航空航天大学出版社 *

Similar Documents

Publication Publication Date Title
CN111556442B (en) Information determination method and device
CN101227671B (en) Method for interactive managing data base with mobile terminal and smart card thereof
US8861693B2 (en) Phone number management method and communication device having phone number management function
CN103345469B (en) The storage of set of numbers, querying method and device thereof
CN105956008A (en) Picture management method and terminal
CN102223410A (en) Searching method of intelligent information terminal and terminal
CN101702740B (en) Contact person searching method, contact person searching system and mobile communication terminal
CN102141926A (en) Application program management method, device and digital television set top box
CN103281442A (en) Method, system and communication equipment for distinguishing several numbers of one contact person
CN105678355A (en) Smart card background management method and system
US8909598B2 (en) Method for managing electronic phone book used in communication devices
CN103220390A (en) Method and terminal for marking newest contact ways of contacts
CN103870511A (en) Shared memory-based information inquiring equipment and method
CN103595845B (en) The method of memory communicating record, device and terminal in Subscriber Identity Module
CN102045426A (en) Mobile terminal and method for editing contact information thereof
CN101384050A (en) Mobile terminal, method and system for resource management
CN104281666A (en) Contact and grouping processing method under Android system
CN101082969A (en) Method and system for categorized displaying multiple sets kalendar affair in unified kalendar views
CN102981721A (en) Method and device and mobile terminal for deleting application program
CN101014059A (en) Method for storing and extending data information of electric phone book
CN105303208A (en) IC card management method and system
CN112632266B (en) Data writing method and device, computer equipment and readable storage medium
CN102638614A (en) Method for searching call record on multi-card mobile phone terminal
CN105897989A (en) Contact person creation method and device
CN106161799A (en) The method for closing of application program of mobile phone and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150114

RJ01 Rejection of invention patent application after publication