1. Download our Official Android App: Forums for Android!

Apps Secured storage on device...

Discussion in 'Android Development' started by vikas.patel, Jul 27, 2011.

  1. vikas.patel

    vikas.patel Newbie
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    15
    Joined:
    Feb 11, 2011

    Feb 11, 2011
    15
    0
    15
    Hi,
    I want to protect SQLite database from hacker (in case of rooted phones).
    So I encrypt data using the key. Where should I put this key ? as I can't put in SQLite db.

    Is "SharedPreference" is visible in case of phone is rooted ? How should I maintain the key that is not visibile/accessible to any party.

    Thanx.
     

    Advertisement

  2. harindersingh

    harindersingh Lurker
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    May 30, 2011

    May 30, 2011
    2
    0
    5
    Working as a software engineer in MiriInfotech
    India
  3. TheGraham

    TheGraham Member
    Rank:
    None
    Points:
    16
    Posts:
    47
    Joined:
    Jul 25, 2011

    Jul 25, 2011
    47
    2
    16
    You would need to look at a class called Sharedpreferences. Use google and just search for it, you'll probably find quite a few tutorials.
     
  4. vikas.patel

    vikas.patel Newbie
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    15
    Joined:
    Feb 11, 2011

    Feb 11, 2011
    15
    0
    15
    Thx for reply.
    "SharedPreferences" and "Sqlite" is specific and private to application as per google docs for normal phone. but what is phone is rooted ?
    I already gone through "SharedPreferences" but in case phone is rooted then that "SharedPreferences" is visibile to party ?

    Thnx Graham.
     

Share This Page

Loading...