Efficient Method for Backup and Restore Data in Android - IEEE Xplore

2 downloads 55657 Views 363KB Size Report
Android Smartphone, backup and restore techniques in. Smartphone, compression techniques for data compression. A. Smartphone. Smartphone is making ...
2013 International Conference on Communication Systems and Network Technologies

Effeicient Method for Backup and Restore Data in Android

Medhavi S.Shriwas TIT,MTech(Second year I.T.) Bhopal, India [email protected]

Neetesh Gupta H.O.D. Dept of I.T TIT Bhopal, India [email protected]

Smartphone having limited storage space, battery we use cloud storage services to store data. As a number of service providers such as Drop box [2] and Zumo-drive [3] offer online storage services,. This approach, called Mobile Application Platform on Cloud Server, is handled not Only user data but also user applications in a cloud server. Using this services we can say “Write once, run everywhere. “Install once, use everywhere”. Now this paper includes a new approach to back up and restore data from Smartphone to cloud with RLE compression technique. Compression technique minimized time and space to store which definitely improve speed, performance of backup process and increases bandwidth. Usually for text compression RLE will use. .File size is minimized after RLE compression if the file has repeated letters otherwise file size is increased than original one. In this paper new approach is to overcome this problem of RLE compression just by keeping file size as it even though it does not contain repeated letters.

Abstract—In recent years Smartphone user are increasing rapidly. As Smartphone are always connected with internet is playing a vital role in day-to-day life. All personal valuable data includes in Smartphone than PC or Laptop. All this valuable data we need to protect from loss, failure and theft so backup and restore data is important. This paper includes problem faced by users while backup and restore. This paper explains the new approach of backup and restore data in Android Smartphone as it uses RLE compression technique it saves time, space to store and improve performance.This paper explain new ways of working of RLE compression Keywords- RLE, cloud computing, ADK, backup and restore, RT, NRT,CT.

I.

INTRODUCTION

Today’s Smartphone is common for normal people to the business man. As Smartphone having PC like functionality with internet facility user saves their not only contacts but also all valuable personal data as an example password, ATM pin, PAN card no, drafts, etc. survey conducted by Lifestyle Services Group says that one of three Smartphone owners placed more value on the data stored on their handset, than the actual handset itself.[1] Anyone want to keep up data as personal and secure. The Computer Security Institute reported that in 2007, 71% of companies surveyed used encryption 3.6 for protecting the data. Data is important to protect from unauthorized access, use, disclosure, disruption, change, perusal, inspection, recording or destruction, loss, failure. So we need to take our data as secure by making copies of data called” backup” retrieve data back from storage is called “restore”. Various backups and restore data techniques are available in market for Smartphone such as various application software, cloud storage services, etc. Backup having various types to differentiate the data as online backup Vs offline backup, full backup Vs, incremental backup, file based approach Vs device based approach to store the data. This paper all backup and restore process to store data. In this paper mention all the problems faced commonly while doing backup process. For information security user takes backup of information using a backup technique it takes a huge amount of time as file size is increased. Sometimes, user face problem of failure of internet connection. As 978-0-7695-4958-3/13 $26.00 © 2013 IEEE DOI 10.1109/CSNT.2013.148

Amit Sinhal MTech Coordinator ,Dept of I.T TIT Bhopal, India [email protected]

II.

LITERATURE EVIEW

In this paper we survey basically on three topics first Android Smartphone, backup and restore techniques in Smartphone, compression techniques for data compression. A. Smartphone Smartphone is making people closed. It’s a good medium to connect people with the world. Smartphone plays an important role in every one’s life which keep always connect to people through internet. It is a small, value, lightweight device or tool. For sixty million In the UK, Germany, France, Spain, and Italy [2] In the third quarter of 2010, Eighty million Smartphone’s were sold worldwide, accounting for 20% of the total of mobile phones sold [4]. From top government officials to businesses and consumers Smartphone’s are plays vital role.[5]. B..Why Mobile Security Is Imp? Nowadays Smartphones functionally increases as like PC and size and weight goes on decreasing so are likely to be stolen or lost. In a recent UK government survey, 2% reported their mobile phone was stolen last year [6]. As Smartphone has a PC like functionally we keep a valuable information contacts list, photos, and even text messages, id, 693

3)Windows Mobile: Microsoft always launch various versions of backup application as new one the release of version 6.5, there are multiple options. The core backup utility, of course, is Windows Mobile Device Center, or as it's known in XP, ActiveSync. Pairing your device with these apps is quite simple. In Windows 7, you should be prompted to install Windows Mobile Device Center and then plug-in a Win Mo handset.[8] In XP, download and install ActiveSync, and when you plug-in your phone, start the ActiveSync app, which you should be prompted to open anyway. Set up a pairing relationship, select the data you want to back up, and you're good to go. In Vista, you'll need to download Windows Mobile Device Center and do the same. My Phone, another Microsoft app, is available for free to any Windows Mobile 6.0, 6.1 or 6.5 users. It's a little and basic app, which backs up nearly everything from your phone: for Restoring from My Phone just wand to logging into your Live account from within the app. You get 200MB of free storage, after which you've got to pay. If you want to back up your phone's data without a PC or a cloud-based service, there's PIM Backup Download the PIM CAB file to your device, install it, open it, check the data you want to back up, and make backups. Same for restoring. 4) BlackBerry: RIM plays very vital role in blackberry user. It can back up their entire devices using BlackBerry Desktop.First, install the app. Under "Backup," select "Options," where you can specify encryption and data type limits Click "Back Up," and select the destination directory for data storage.. It's a single file, so it's easy to throw on an external HDD, USB stick or Micro SD card for safe storage.[8] 5) Symbian:The Ovi Suite will do the trick. It's a full, automated backup suit just install the suite and plug the Nokia phone through USB, and follow the wizard prompts and then it stores contacts, calendar items and media backed up.[8] 6) Android: It's fairly easy to back up your contacts to your Google Account with an Android phone. In Android marketplace, many free applications are available for backup one of them is Titanium Backup for Android which is more popular[9]. Using this app user can backup and restore all android data.[9] for backup To do this: 1. Open your Contacts list 2. Press the Menu button 3. Select Import 4. Tick the "Google Contacts" box.[8] F.Compression There are various algorithms available for data compression. RLE, LZW, Huffman, Fixed-length code (FLC), and Huffman after using Fixed-length code (HFLC). The performance of the data compression depends on :the characteristics of the files, the different symbols contained in it, and symbol frequencies. LZW is the best technique in all the compression scales that we tested especially with the files of big sizes, then Huffman, HFLC, and FLC, resp. RLE is best for the repetitive letters of text file.

password. Sometimes information present in Smartphone is valuable in attacker's point of view. By accident the phone crashes or gets damaged, or theft we lose our data .only some user are aware of the need to protect their Smartphone in the same way as their PC. We share our highly sensitive data through their phone for activities like personal banking and social media updates.. C. Backup And Restore As solution to avoid the risk of data loss and with the awareness of identity theft Many people and organizations now destroy or wipe computer hard drives before decommissioning. But this thing is not yet happening with Smartphone. No of devices are being recycled. In the year 2012, According to market analysts ABI Research, over 100 million mobile phones [7] will be recycled for reuse each year. As another solution to protect our data is application is available to back up and restore our data. For different mobile operating system in market various backup and restore techniques are available. Backup means making copies of data in a database or in sever. As needed we recall our data and use it that process is called as Restore the data D .Why we need to back up Smartphone? User can back up our PC or at least know about that. But what about Smartphone? They carry personal data. Cell phone backup isn't simply keeping copies of data that archive every day, like contacts, photos, notes. it’s about keeping copies of information that user didn't even know user wanted. How many times has user needed an old text message conversation? Referred back to received call list to recover a number didn't save? In many ways, your Smartphone is more closely with users personal identity.[8] E.How To: Back Up Any Smartphone In market Smartphone with no of various applications for the backup and restore the data are available. 1)IPhone: iTunes update iPhone's backups at every sync. iPhone is it performed backups regularly on a schedule automatically, and restoring to one is a simple just by plugging in your iPhone, ALT-clicking on its icon in iTunes, and selecting "Restore from Backup."It is different from the "Restore" function.[9] Iphone will help to backup app settings, contacts, text messages, and photos. 2)Palm Pre/Pixi: The Pre's: Backup is performed automatically, regularlly, and linked to your user account. Backup process are as follows 1.Plug in the Pre and select USB Drive. 2 .Download SyncToy and install. 3. For the First time run Click on SyncToy 4. Click Create New Folder Pair. 5.For the right folder browse to your documents folder and create a new Subdirectory such as Pre Backup and select it. 6.Choose to Synchronize and name your folder pair something easy to remember like a break up. 7.Click Run.[8] In this process of backup may be chances of Losing some data. This doesn't back up settings and some application Data.[15]

694

G.Why you should backup your files online 1.Easy to access files from anywhere in the world and from any device 2.Easy way of managing files 3.No maintenance needed 4.24/7 availability 5.Easy Data/file sharing 6.Hidden storage locations 7.Multiple compatibility with several OS[10]

2) FLC: it deals with 4 bits instead of 8 bits in ASCII for each character. This method will not give good results on a large file because if the number of symbols in the file is more than 64, we will need 7 or 8 bits for each character which is nearly the same as in ASCII, and in this case we need more time for the new calculations.[12] 3) RLE: RLE performs better when repeatable sequences of patterns are found in data. RLE performs opposite and increases the file size to around double its original size when it does not meet a repeatable pattern.[13] 4) Huffman: It is good for compression but it based on full binary ree. [16] It needs finding of probable for each symbol and put them in descending order. Final code word for each symbol short chance for large code word and vise versa.[13]

III. PROBLEM FORMULATION As data are more important and not phone we need to worry aboutStorage Size, time to store data, Document Synchronization, Reliability of service and mostly security of our files. We may find that we need an external backup, and this will introduce the long restore times. So the biggest problem about this type of storage is size limits. After from a failed hard disk,there are no guarantees with recovering data [11]. Online backup services is a better option when it comes to backing up out important data and documents Problem occur during backup in all Smartphone: A.Android Backup apps on Android are split into two types the sync your facts to a single file, and the piecemeal apps.some application are free and some of them will be paid. The AIO apps is paid apps; Using this takes multiple free downloads. Download these three apps: SMS Backup and Restore, Call Logs Backup & Restore, and APN Backup & Restore.. There are only three buttons: Backup, Restore and Delete. If you want to back up more than their Google-service-based info, this doesn't really help. For that, need to go third-party. There are lots of backup apps in the Android market , but most of them are paid.[8] Astro File Manager app backup is a free file browser. process to backup is press the menu button,click "Tools." Select "Application Manager/Backup," then apps to backup on SD card. To restore, install app on the device, insert the old SD card, navigate to the same "Application Manager/Backup screen"and select the "Backed Up Apps" tab. Sprite Mechanic does the same in a slightly simpler way, it's free..[8] B.Palm Pre/Pixi we want to select only essential data only that data backing up the Pre's internal storage, bit for bit. this mobile os doesn't back up settings and some application data, so restoring may be lose any data; just media, ringtones, etc.. Palm's backup are tied to online services like Gmail.[8] C.Windows Mobile For safety, user may want to back up PIM's backup files on an external storaget.[8] D.BlackBerry In this need to select the destination directory for backup which makes single file.. The problem occurs during backup using compression: 1)LZW: LZW simple but use dictionary. single codes uses instead of String of Characters.[17]

IV. PURPOSED WORK As discussion above Smartphone user faced problem while backup and restore the data. And we try to purposed hear a solution to save our data by keeping backup online and minimized the time and storage space while backup the data by applying compression techniques and then back up the data.It helps to reduce bandwidth and increase the performance of the data. In this module, application is developed using Java eclipse and ADT. A.Experimental setup: To start this project some experimental setup is needed. As project on android based download development tool kit from the net which include following all software or collect this software separately.follow the following steps: 1. Install JDK7.0 on any drive. 2. Install Eclipse on any drive. 3. Install Wamp on any drive . After completion of this installation start to write project code using JDK and eclipse software and create a database using Wamp software. For create a project: follows the steps 1.Open Eclipse SDK. Click on the File tab select option import-general-Exiting project into workspace-next. Then open a window with name import project click on Browse button select root directories of our project-ok-next. The project is available in Eclipse software.[18] 2. Create database using Wamp: open Wamp software select option tools-PHPMyAdmin 2.11.2.1 open another window automatically with name create new database . The name field is available in that write projects database name and click on create button. after slicing open window with name create a new table on database. Specify the name of table which you want to create and click on the go button. A database is created. B .How to run the virtual android device. Follow the steps. 1. Open Eclipse select option windows-preferences window is open select Android option. Click on browse and select project which wand to run-ok. 2. Open Eclipse sdk -select option windows-AVD Managerclick on new. An open window with name creates a new AVD. Write name of device in front of Name field. Select

695

target as device version-size is 256 MB. click on Create AVD. Your device name with the specified version name is available in list of Android AVD window. Finally click on the start button . Open the launch window type screen size at 6 in and click on Launch. Android virtual device is ready to run. C.Description of project 1)Login module:In this module, as any normal site we need to create first our account just by filling basic personal information as name, surname, contact no, email id and password Table 1 User login table

communicated through the application. The backup takes from the device by date wise so later we can take to restore by choosing appropriate data.

. Fig 3: selecting backup

After this we can use this id and password and login in our account for backup and restore data in it.It's a first step to backup the data. Fig 4: shows compression size

Fig 1: User login window

2)Backup module:In this module after sign in in the account window is open with three important buttons as “Backup”,“Restore”,”logout”.

Fig 5: Call logs on Device Table 2 After taking Backup

Fig 2: Application window

3)Restore module: In this module, we need to again login for restoring the data After successfully login open the same window as fig no 1. Just by clicking the button “Restore” window with a list of data wish to restore is open select it and click on restore. Data is restored from user account to the device. Again using the created operation in PHP and mysql we can easily restore data from database to the device.

This is an application window,for taking a backup of our data simply click on the button “Backup” after clicking this button open an another application window which shows the list of applications from which application we need a backup (call logs, contacts, message.). For taking backup of contact ,call logs, message follows the step as follows: 1. We need to create a contact and to store it for application. 2. Create one contact with its name, phone number by clicking on the contact button. 3. Repeat the process from 2 if we want to create more contact 4. The above process can be repeated for another function (message,call logs) with slightly different . 5. Then run the application backup for taking up a backup of device This is possible by the help of PHP page and myself database table which is now

. Fig 6: Restore window

696

ext:RT-“aaaabbbcc”. For RT compressed Text”4a3b2c” . NRT-“abcd”. For NRT compressed Text”abcd”. Table3

comparison of two files

Comparison Terms

RepetitiveText

NonRepetitive

aaaabbbcc.

Text“abcd”.

Fig 7: After Restoration on new device

In addition to in this project PHP module ,mysql module, and compression module which is important to run above three front end module. 4)PHP module: In this module we have to create a PHP page for interaction between application and server. This module helps to create pages for each interaction of application as backup to the server and restore of the server. For taking backup from the device and another query for restoring from the server write the query in SQL format. Database is playing a vital role in any project. For example, contact backup query $query="INSERT INTO shared contacts(user id,dob,name,number,type) VALUES(".$userid.",'".$dob."','".$name."','".$number."','".$ type."');"; mySqlStart('local host','backup');. Now for contact restore query $query="SELECT * FROM contacts;"; mySqlStart('local host','backup'); Mysql module: mysql module helps to store data while backup and restore process. To configure of my SQL and PHP need to install a server software i.e. Wamp server. This server having specified each field attributes which required for interaction between device for PHP page and to my SQL database.The man is my PHP admin is where defined tables for application. Table :are CALL LOGS ,CONTACT, MESSAGE, CALENDER EVENT. 5)Compression module: It is not basically a module but it uses both the backup and restore module. While backup data is compressed and decompress while restore the data. As in problem formulation mention while using RLE for compressed file size is increased when data is not repetitive usual, the code in RLE is constructed as the number of repetitions of a value then followed by the value to be repeated. Thus, as an example the sequence “bbbbbDDDDDDDDDDDDDD” when compressed yields “5b14D”. Thus, the compression gain is (19-5) /19 which equals 73.7%. On contrast, the sequence “efficient” when compressed yields “1e2f1i1c1i1e1n1t”. In this case, a negative compression gain of (9-16)/9 which equals -78% can be calculated and the reason of this large negative gain is that the sequence has little character repetition [14].In this project we propose to use RLE compression with a new approach to overcome this drawback as keep it text as it is when text is not repetitive.

Compression Size: Compression Ratio: Time (Speed) Entropy

9

4

33.33%

0%

0.11ms/char

0

0.66bits/symbol

1 bis/symbol

VI. CONCLUSION In this paper discussed all the problem faced by Smartphone users while they perform backup and restore process.To overcome all this problem, paper mention as a solution data is compressed while backup and decompressed while restore. As mention in this paper data is compressed using RLE. The paper explains RLE compression and new approach to RLE compression which overcome drawbacks of RLE.In this paper results are mentioned which conclude all compression ratio and other terms of compression which experiments with different file of data. REFERENCES [1]www.google.com/45069LSGDATABACKUP_MOBILESECURITY.pf [2] http://www.dropbox.com [3] http://www.zumodrive.com [4] Gartner. Smartphone Sales Increased 96 Percent. [Online]2010. http://www.gartner.com/it/page.jsp?id=1466313 [5] Computerwoche. Die Kanzlerin bekommt ihr Merkel-Phone.[Online] http://www.computerwoche.de/netzwerke/mobile-wireless/1910789/ [6] 11. Cellan-Jones, Rory. Government calls for action on mobile phone crime.BBC.[Online]2010. http://news.bbc.co.uk/2/hi/technology/8509299.stm [7][Online]http://www.abiresearch.com/press/1015Recycled+Handset+Shi pments+to+Exceed+100+Million+Units+in+2012 [8] http://gizmodo.com/5410369/how-to-back-up-any-smartphone [9] http://news.yahoo.com/backup-smartphone-data-204900470.html [10]AmazonWebServices:aws.amazon.com/ [11]http://blog.assembla.com/assemblablog/tabid/12618/bid/44389/Proble ms-with-Amazon-EC2-is-storage-architecture.aspx [12]international journal of computer application. (0975-8887) volume 26 no.5 July 2011. [13] International journal of computer science & information Technology (IJCSIT) Vol.2, No.5, October 2010 [14]“RLECompression”Retrievedfromhttp://en.kioskea.net/contents/video/ compimg.php3 15] A.Chervenak, V. Vellanki, and Z.kurmas, Protecting File Systems: A Survey of Backup Techniques. Proceeding Joint NASA and IEEE Mass Storage 1998. [16] BELL, T. C., CLEARY, J. G., AND WITTEN, I. H. Text Compression. Prentice Hall, Upper Sadle River, NJ, 1990. [17] SAYOOD, K. Introduction to Data Compression. Academic Press, San Diego, CA, 1996, 2000. [18]http://developer.android.com/guide/topics/data/backup.html. [19]http://developer.android.com/guide/topics/providers/com.

V. RESULT In this paper study various backup techniques and test RLE algorithms on different text files make a comparison in terms of compression Size, Ratio, Time (Speed), and Entropy. consider two texts repetitive and non repetitive

697

Suggest Documents