[Q] Use system PIN dialog in Android application - Android Q&A, Help & Troubleshooting

Background
I am trying to write an application which works like described below.
When user start application it check if user have registered PIN on his device.
If user have registered PIN, application must show button "Continue with PIN".
When user press on button "Continue with PIN" system standard PIN dialog must appears.
User enter his PIN and press "Continue" button.
After System must check if entered PIN is correct or no and continue working.
Researches
I have made some researches and find some articles on stackoverflow and other internet sources which say "There is no way to develop a new custom unlock mechanism on a non-rooted phone." or "I would be surprised if you could, because then you would be probably able to steal the pin code, and I don't think anyone would want that.".
Also I have watched some video tutorials like Tutorial: Android Internals - Building a Custom ROM, Pt. 1 of 2 and Tutorial: Android Internals - Building a Custom ROM, Pt. 2 of 2.
Decision
So I think that the only way to get access to the Android system PIN dialog is to root the phone make some changes in the system files and use system PIN dialod
Question
Can somebody provide me useful links about getting access to the system PIN dialog in the rooted phone.
Am I on a right way and can I solve my problem in this way ?
If anybody encountered such problem please help me to solve.
Thanks,
Victor

Please use the Q&A Forum for questions &
Read the Forum Rules Ref Posting
Moving to Q&A

Related

[App] Password Safe.. My first Android Application :). Version 1.2 Released

Hi Friends, Am learning android application development and working on my first android application Named "Password Safe".
This is a very simple password keeper application with following features
1. You can save user id and passwords (of different types ) for different websites.
2. Password details can be saved in Phone memory as well as Memory card
3. Password details in memory card will be stored in encrypted formatted using your Password Safe Application.
4. In case you flashed your phone or uninstalled the application, You can recover all your password details by using this Password safe application. And to do so-
a. install the password safe application
b. Create User id and password ( same as which you used before to store your password details)
c. Go to Password details page and use Load from sdcard menu.
Please try this application and let me about any issues (or enhancement) so that we can make it more user friendly and useful.
Change Log Version 1.2
1. Now you can fetch details for any particular site ( No need to give the complete name just mention 2 - 3 character of the name and it will fetch details of all the similar sites )
2. Option to delete all the password details from phone memory.
Internet access permission is required to display Ads (Advertisements ). There is an option in Preferences Menu. from there you can enable Or disable ads
Note : Changes done through Preferences Menu will reflect next time when you will log in into the application.
Many Thanks for your Comments and M happy that u guys are finding this application useful
If you have any idea to improve this application, please let me know. You can drop your ideas here or send me a PM. I will try my level best to achieve that
Working great !!!!!!!! Good job !!!
Sent from my X10i using xda premium
Great work
Why does it need Internet access permission ?
Rapier07 said:
Great work
Why does it need Internet access permission ?
Click to expand...
Click to collapse
Internet access permission is required to display Ads (Advertisements ). There is an option in Preferences Menu. from there you can enable Or disable ads
Note : Changes done through Preferences Menu will reflect next time when you will log in into the application.
Okay...
Good work mate
Many Thanks for your Comments and M happy that u guys are finding this application useful
If you have any idea to improve this application, please let me know. You can drop your ideas here or send me a PM. I will try my level best to achieve that

Passcode Interception

I would like to know if there is a way to intercept the inserted passcode to unlock the phone.
What I aim to do is to detect and read the wrong pattern insertions and leave the default behavior for the sucessfull passcode.
The enviroment could be whatever up to the needed restriction, i dont know if is needed a rooted device or not, btw I would also consider LineageOS solutions.
I've read about DeviceAdminService and DevicePolicyController but can find out anything...
Thanks in advance
:angel:

Forgot pattern | Android 9 Nokia 6

I have Nokia 6 2106 model. I forgot my pattern. Is their any way to recover the data as data is very important. I don't care about phone, i just need data. If anyone knows please help. I can even pay money for this.
Danizer said:
I have Nokia 6 2106 model. I forgot my pattern. Is their any way to recover the data as data is very important. I don't care about phone, i just need data. If anyone knows please help. I can even pay money for this.
Click to expand...
Click to collapse
You can try it by means of Android Device Manager
Through Android Device Manager which is also called as the Find My Device, you can remotely ring a device, change its lock, locate it or you can even erase its content. For this purpose, you will have to follow a few steps given below.
From any device, go to the Android Device Manager’s Official Website.
Once you open the website, Log in with your own Google account credentials.
Here, a list of all the connected devices to your Google Account appears.
When you select your device, you will get different options to choose from- Erase, Ring or Lock.
Now Press the Lock Option so that you can change the lock pattern on your device.
Now you will have to provide a new password for your device and also write an optional recovery message.
Choose these changes and then exit the window to change the lock your Android Device.
I have tried it earlier. When i click lock device it just locks device with my customised message. I think from Android 7 ownwards their is no option to change password from Android device manager when device is locked.

Region unlock procedure oppo find x 2 neo Dual Sim

This guide is a copy paste from this thread:
[GUIDE] Switch software region to Upgrade to ColorOS 11 and enable Dual Sim.
I want to write this here so it's all in one place and not scattered around different threads. Apologies for the bad formatting in some parts as this is on of my first contribution. Most of this is copied from this thread: I am adding onto this...
forum.xda-developers.com
For my oppo find x 2 neo it worked.
I remind you that it precedes it and has your danger
I am not responsible for any damage or blockages
DISCLAIMER: Use this at your own discretion. So far, when it works, it doesn't wipe any personal data
and nearly no issues are caused. Still, I am not responsible for bricked devices, broken warranties or lost data.
If you haven't already, enable Developer Options and USB Debugging.
Next, download the Oppo_Free_Unlock_v1.0.zip file from the attachments and extract it somewhere.
Before you run anything, though, there's a little preparation that needs to be done.
Open Device Manager and expand the Network Adapters category.
Find your Ethernet adapter and double click it to open its properties.
Go to the Advanced tab and find the Network Address option in the Property pane.
Under the Value pane, select the radio button next to the text box and paste in the following: 704D7B61ABCD.
If you don't have an Ethernet adapter, try to find another network adapter here that has the Network Address property. It may help to install VirtualBox, since it will add fake Ethernet adapters.
Close the properties window and close Device Manager.
Go to where you extracted the unlock tools. Open Sec5.exe.
Make sure your device is in MTP mode, and then press the Unlock button.
After about a second, a string of numbers and letters should show up in the left pane. A few seconds later, "OK" should start flashing in the right pane. If it says "device not found" or something similar, make sure MTP Mode is activated. Press "Stop unlocking" and close the window.
Open the phone app on your device and dial *#3954391#. Then dial *#391#. A screen should come up with a whole bunch of regions listed. Choose this one: "Singapore Ex". Note: This Version has Theme Store, but no Ringtone Maker. Feel free to try other versions. EDIT: DO NOT CHANGE TO A REGION WITH CARRIER, ESPECIALLY THAILAND AS YOU WON'T BE ABLE TO CHANGE BACK! AT LEAST WHILE ON ANDROID 10. STICK WITH THOSE THAT END IN EX. Once you have done this, it appears that you can always bring up the region menu when dialing the numbers..
Your phone should now reboot. Once it's rebooted, your region will have changed.
Every time you changed region and want to change it again you need to use the software. You can get a code that you can use every time to change the region instead of using this software every time. (Update- one person report that this code(token) wont work for every time as his STAMP code changed.)
For this you need to: Open the dialer app , dial *#9434# ,press authtokendecrypt. You will see a IMEI and STAMP. Open the Sec5.exe and write the IMEI and STAMP shown on your phone in the blank space of the IMEI and STAMP in the software and press Generate a token, you will see a string of numbers and letters, write it on the token blank text box and click authtokendecrypt. Now you will see every text written in green. Now you can follow the steps in the guide but skip the steps that have to do with sec5. The Token that the software gave you is the same code that you need to enter in the *#9434# every time you want to change region so you do not need to use the software ever again.
UPDATE: Currently, it doesn't seem to work anymore for some people. Try installing Loopback network driver ( How to install Loopback) and uninstalling or disabling all other network drivers. If you are afraid of doing this with your own device you can use a Virtual Machine, too. I tried it this way.. Rest of the process is the same, just change the network address in Device Manager the same way as before.
Now that you are on the Pakistan Version, you can also run the device in dual sim mode, which was disabled in EU Mode. Some users have ordered Dual-Sim-trays on AliExpress and are now able to use it in this way. Also this might open up the path to unlock the bootloader, since that is limited to chinese devices only. I have not tried this out yet, though.
In theory, changing your region like this should work on any OPPO device running at least Android Pie (9). It may even work on earlier versions.
NOTE: This will not work for Chinese variants. These codes are filtered and will only work for international variants.
this guide no longer works with the new updates for both x2 pro and neo so let's avoid posting things that are not valid there is already a tutorial
*#3954391# and *#391#not working in color os 11 solution plz

Oppo A52/A72/A92 Android 11 update via VPN

Hi,
I managed to get the Android 11 update with a bit of stuffing around and thought I would share for everyone else, I did this on a unlocked Australian variant bought from Optus, you're mileage may vary.
This will activate dual sim mode on the phone with a single IMEI, I left my location set to Europe so it is upto you if you follow the last step to remove Dual Sim Mode.
You will need to backup anything you don't wish to lose as a full factory reset is required.
I did some digging and this will work with the same rom on A52, A72 and A92.
Could I get a moderator to cross post this to the other device forums please?
Requirements:
OPPO A72/A52/A92 - My bootloader is locked, My simlock is off
CPH2067_11_A.54 Latest European ROM for the device - Download Here: https://support.oppo.com/nl/software-update/software-download/?m=A72
Oppo Free Unlock Tool - https://forum.xda-developers.com/t/...de-to-coloros-11-and-enable-dual-sim.4191787/
A Google account to download ExpressVPN (This is the second last step so leave for now)
A Windows PC with a internet connection
WIFI or Mobile data on phone.
Latest ADB Drivers - https://adb.clockworkmod.com/
Instructions:
1) Backup all settings and user data.
2) Remove all accounts and screen lock security settings on phone.
3) Format all data, factory reset phone.
4) Download Oppo Free Unlock Tool from the link provided to PC.
5) Follow these instructions to install Microsoft Loopback Adaptor -
6) Open Device Manager and expand the Network Adapters category.
7) Find your Loopback Adaptor and double click it to open its properties.
8) Go to the Advanced tab and find the Network Address option in the Property pane.
9) Under the Value pane, select the radio button next to the text box and paste in the following: 704D7B61ABCD.
10) Install ADB Drivers.
11) Extract OPPO Free Unlock Tool, You're antivirus may give a false positive so you will have to manually add an exception for the tool.
12) Go to where you extracted the unlock tools. Open Sec5.exe.
13) Plug in phone via USB and select "Transfer Files".
14) Enable developer options on phone and activate USB Debugging.
15) Press Allow when prompted to give PC ADB access.
16) Open Sec5 window.
17) After about a second, a string of numbers and letters should show up in the left pane, Press Start Unlocking and few seconds later, "OK" should start flashing in the right pane.
18) Press stop unlocking and disconnect phone.
19) Open the phone app on your device and dial *#3954391#. Then dial *#391#. A screen should come up with a whole bunch of regions listed. (Take note of the one highlighted in green as you will need this in the final step).
20) Choose this one: "Europe EUEX" and click Ok you're phone will restart.
21) Download the rom from provided link to the phone and install through recovery mode.
22) Add your google account and download ExpressVPN from Play Store.
23) Open ExpressVPN and start 7 day trial then set to Netherlands server.
24) Goto Settings then Software Update and you will see Android 11 available to download.
25) Click Download then when complete Click Install
26) Remove Google Account from phone and factory data reset again.
27) Use instructions 12-20 to set your phones location back to your original setting.
That's All Folks
@MuntedJester THREAD CLOSED as duplicate of
Android 11/ColorOS 11 OPPO A72 Update with VPN
Hi, I managed to get the Android 11 update with a bit of stuffing around and thought I would share for everyone else, I did this on a unlocked Australian variant bought from Optus, you're mileage may vary. This will activate dual sim mode on the...
forum.xda-developers.com
The thread has also been moved from the development section into this sub-forum.
XDA Forum Rules (excerpt):
...
5. Create a thread topic or post a message only once, this includes external links & streaming media.
As a large forum, we don't need unnecessary clutter. You're free to edit your message as you like, so if you do not receive an answer, revisit your message and see if you can describe your problem better. Not everyone is online at the same time so it might take a while before you receive an answer.
You can bump your unanswered question once every 24 hours
Duplicate threads and posts will be removed
Always post in an existing thread if a topic already exists, before creating a new thread.
Use our search function to find the best forum for your device.
Links to an external source are only allowed if relevant to the topic in hand. A description must be included, no copy & pasting from the original source.
Self-promotion is forbidden, this includes blogs, social media and video channels etc. Random links will be removed.
...
Click to expand...
Click to collapse
Also review the sticked "Device Forum Rules (Read before posting)" with special focus on the conditions what threads qualify for the development section.

Categories

Resources