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 8608147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T03:32:08+00:00 2026-06-12T03:32:08+00:00

well, I guess the question says it all I’m open to using Private API’s,

  • 0

well, I guess the question says it all

I’m open to using Private API’s, I’m trying to create an app which, if it detects a certain GPS: location the camera functions should self disable. . . .

  • 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-06-12T03:32:09+00:00Added an answer on June 12, 2026 at 3:32 am

    Note: this solution doesn’t use UIImagePicker. I’m assuming you’re referring to the built-in Camera.app, and just want some way to disable it.

    If you are willing to jailbreak your device (which I read in your comments), then you should be able to do this.

    First, you’ll need to write an iOS Launch Daemon. This is a background process (no UI) that simply runs all the time, and monitors location. See the blog for an example of how to write a launch daemon. This example even shows a daemon that monitors location, which is what you’ll need.

    Then, when your daemon detects that you’re in the special location, you could just change the executable permissions on /Applications/Camera.app/Camera. Make it not executable (chmod 664 instead of 775).

    Invoke the chmod command from your app by making a system call:

    system("chmod 664 /Applications/Camera.app/Camera");
    

    Or, you could probably also use the NSFileManager APIs to modify the permissions attributes on the file.

    Of course, you’ll need to change permissions back when you leave the area (you might want to make the app conservative, so that if no location data is available, after a timer delay, you re-enable the Camera).

    I believe the daemon tutorial I linked to above will setup your daemon to run as the root user (userid = 0), which is probably necessary to have permission to change the Camera executable permissions. If not, post a reply, and I’ll dig up more information. I have multiple daemons running on my phone (that I wrote a while ago), and they do have root privileges, so I must have figured out how to do it 🙂

    Also, as Owen said, Location Services might be turned off, or a location fix might be unavailable. I’m not sure if this app is just for you, to remind you not to take pictures in a certain location, or if it needs to be secured against other users, who will try to defeat the protection. If this is an issue for you, post some more information and we’ll go from there …

    Note: I’m not sure if this also needs to disable the Camera if it’s already running before you enter the no-pictures-zone. If so, you could have your daemon also issue a kill command on the Camera process.

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

Sidebar

Related Questions

Well the main question says it all, why are the files loaded via https.
EDIT:Well I guess I should asked then before this question, would it be better
Well i guess i ll have to make a trilogy related to the question
EDIT Thanks to all for your input. I guess my question was just a
My question concerns Silverlight (but I guess WPF as well). Basically I know, how
I'm stuck on some trivial question and, well, I guess I need help here.
Ok another WPF question, well I guess this is just general .NET. I have
Well hi, guess what, I have an IE positioning issue! This is in 8,
Well, I have a application which somehow requires some system resources, but how do
well, I am trying to include a header file in my project, while the

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.