Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6470695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:08:25+00:00 2026-05-25T06:08:25+00:00

I have been asked to write an android app to connect to a http

  • 0

I have been asked to write an android app to connect to a http server.
I did this by creating a web service and sending JSON data to a PHP script on the server which opens the desired database and then inserts the decoded JSON objects.

Now I am thinking about security. First of all the app will be proprietary, not on the ANdroid Market, but I am worried about two things:

  • someone with a phone not in the company somehow gets the app. He can then manipulate the DB. Or the company loses an Android phone and a malicious person tries to ruin the DB.
  • someone using the PHP script without an Android phone and manually inputting JSON data, e.g. from a PC browser (I dont know if this can be done.).

To counteract the first possible problem I intent to use the ANdroid phone’s serial id.

   TelephonyManager tm =   (TelephonyManager)activity.getSystemService(Context.TELEPHONY_SERVICE);
   String id = tManager.getDeviceId();

I will put this in my JSON object and send it to the server, decode it and check against a database table of valid id numbers.

Is this a good idea?

I don’t know what to do about the second problem. Any help would be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T06:08:25+00:00Added an answer on May 25, 2026 at 6:08 am

    Actually both problems are related to each other. You need to guarantee, that only people with appropriate privileges are allowed to use your PHP script. To do so you need to make authorization system. All of them requires some verification data to be sent from client, so it has to be either stored in phone or typed every time by your users. For example it can be simple login/password authentication. You can store such information on your phone in encrypted form, but there’s no way to guarantee that if someone get his hands on the phone he won’t be able to use this application. If you want to avoid that, you can’t store the password – you have to ask the user about it every time.

    Oh, and as for your idea with sending phone’s unique id – it can be easily extracted from the phone by the hacker, and later he can use it to call your php script manually. There’s a simple rule – if you’re storing any authentication data on the client, skilled person can always extract it and use it to connect to your system.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been asked to write a compliment website/service for an iPhone app. The
I have been asked to write an app which screen scrapes info from an
I have been asked to write a custom webpage in a web application integrated
I have been asked to write a java program on linux platform. According to
I have been asked to write a GUI that will allow objects to be
I have been asked to write a grid which tracks flexitime for employees. There
I have been asked to write an application that is going to act as
I have been asked to write a program using python for an assignment. I
i have been asked to write a query which in should rank customers base
I have been asked to lend a hand on a hobby project that a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.