Smartphone locking is often seen as a necessary but sometimes annoying tool. Punching in a pincode or even using the newer fingerprint scanners can be a pain when just tooling around at home or sitting in a car.

It appears Apple is looking into this issue. The US Patent and Trademark Office published a patent application from Apple on Thursday, which details technology that can sense users' locations and then modify their phone's unlocking code -- a smart lock, so to speak.

The idea is for an iPhone to be able to recognize users' typical locations, like their home, work, and car, based on GPS or a known Wi-Fi network. Then, the system will adjust the level of security to unlock their phones. For example, at home, possibly no passcode would be required; in a place users go often, like a grocery store, there might be a fingerprint or simple code; and in faraway or crowded places, a higher security threshold would be necessary to unlock the phone.

Apple patent looks to smarten up the iPhone's security lock

"Because some locations may be inherently more secure, such as a user's home or office, these locations may be considered 'safe' and require less stringent security," Apple wrote in its patent application. "It can be desirable to have decreased security requirements when the mobile device is at a secure location. Conversely, some locations may be considered higher risk or 'unsecure.' In these locations, it can be desirable to implement stronger security protections."

Apple has been working on boosting iPhone security for years. Last fall, the company debuted its Touch ID fingerprint scanner on the iPhone 5S, which requires users toswipe their finger to unlock their phone rather than key in a pincode. In March, another Apple patent application was published that showed the company has been researching a system in which users couldsync all of their devices -- like laptops, smartphones, and tablets -- with the same biometric data.

Google is apparently also working on location-based smart locks. During its annual Google I/O conference last month, the company talked about a similar feature for the next version of Android. Google called the feature "personal unlocking" and said it will give users many ways to unlock their phones based on location, according to PC World.

While it's clear Apple is researching smart lock technology, it's unknown if or when systems like this will actually make their way onto the iPhone.

(Via Patently Apple).

Find the best phones, apps and accessories with our CNET Mobile newsletter. Delivered Tuesdays and Thursdays. Comments Privacy PhonesPatents Biometrics AppleNotification on Notification off Mobile