Smart Lock - Xposed Framework Development

Hi there,
I am trying to create a Smart Lock Xposed simple plugin - very similar to GravityBox's Trusted WiFi - albeit without the need of any connected device (WiFi, BT).
I would like to have app with two buttons, to enable trusted condition, so that I can just unlock my phone, when I am at trusted place, or just when I want to.
I have checked this class on GitHub:
https://github.com/GravityBox/Gravi...ceco/lollipop/gravitybox/ModTrustManager.java
I do not know how to proceed further.
Thanks for any help in advance

bump..

Related

[Q] Galaxy Nexus (i515) - Broken Screen - USB Debugging Disabled

Hello all!
Here's the situation: I dropped my phone yesterday (Samsung Galaxy Nexus - i515) and the screen is destroyed. I can still see the top left corner (maybe 1/4 of the screen), but the digitizer is also hosed and I have a pattern lock. I need to get the data off the phone. When I connect it to my computer, it shows up as an external drive, but there is no file structure. From what I've read... I apparently have to unlock my phone before I can see the files, which as I said before is not possible right now.
Bootloader is locked, not rooted and the best part... USB Debugging is disabled. I've read through tons of information, but most threads either fade away when they get almost to a solution, or they are never fully answered.
I got the Unified Android Toolkit (GNEX V12.1.1.) by SKIPSOFT (which is amazing btw), but since good ole' USB Debugging isn't enabled, I can't use adb commands. I've read you can install a custom recovery and use adb at that point, but my bootloader is locked and I don't want to wipe data to unlock it.
I can get into fastboot, the driver shows up in device manager, serial shows up under 'fastboot devices', etc. but it looks like the only thing I can really do at that point requires a data wipe. I hit recovery (which is stock), the screen goes blank for a few minutes and then boots as normal. I'm guessing I can't use adb with the stock recovery??
I believe my final option here is to use a USB otg cable and use a USB mouse (wired only here? can I use a USB dongle? can I even unlock a pattern lock with a mouse?) to navigate until I can get USB debugging enabled. Since I can see a bit of the screen, I don't think it should be too hard. Even if it does prove too difficult trying to do it blind, there appears to be plenty of small apps that give you the capability to view what's on your phone via your PC. I was initially trying to find something that I could control phone from PC (screencast appears to be the best I've found so far), but without USB Debugging enabled or root, it's a no go.
I would like to hear from some of the smart folks out there about my options. I used to mess around with custom ROMs and all that good stuff, but it's been a few years so I am a little rusty.
TL;DR
Phone: Samsung Galaxy Nexus (i515) - broken screen and digitizer
Bootloader - Locked
Root - No
USB Debugging - Disabled
Phone has pattern lock
What is the best option to get my data backed up/copied?
Thanks in advance for any advice you can share!
buddy008 said:
Hello all!
Here's the situation: I dropped my phone yesterday (Samsung Galaxy Nexus - i515) and the screen is destroyed. I can still see the top left corner (maybe 1/4 of the screen), but the digitizer is also hosed and I have a pattern lock. I need to get the data off the phone. When I connect it to my computer, it shows up as an external drive, but there is no file structure. From what I've read... I apparently have to unlock my phone before I can see the files, which as I said before is not possible right now.
Bootloader is locked, not rooted and the best part... USB Debugging is disabled. I've read through tons of information, but most threads either fade away when they get almost to a solution, or they are never fully answered.
I got the Unified Android Toolkit (GNEX V12.1.1.) by SKIPSOFT (which is amazing btw), but since good ole' USB Debugging isn't enabled, I can't use adb commands. I've read you can install a custom recovery and use adb at that point, but my bootloader is locked and I don't want to wipe data to unlock it.
I can get into fastboot, the driver shows up in device manager, serial shows up under 'fastboot devices', etc. but it looks like the only thing I can really do at that point requires a data wipe. I hit recovery (which is stock), the screen goes blank for a few minutes and then boots as normal. I'm guessing I can't use adb with the stock recovery??
I believe my final option here is to use a USB otg cable and use a USB mouse (wired only here? can I use a USB dongle? can I even unlock a pattern lock with a mouse?) to navigate until I can get USB debugging enabled. Since I can see a bit of the screen, I don't think it should be too hard. Even if it does prove too difficult trying to do it blind, there appears to be plenty of small apps that give you the capability to view what's on your phone via your PC. I was initially trying to find something that I could control phone from PC (screencast appears to be the best I've found so far), but without USB Debugging enabled or root, it's a no go.
I would like to hear from some of the smart folks out there about my options. I used to mess around with custom ROMs and all that good stuff, but it's been a few years so I am a little rusty.
TL;DR
Phone: Samsung Galaxy Nexus (i515) - broken screen and digitizer
Bootloader - Locked
Root - No
USB Debugging - Disabled
Phone has pattern lock
What is the best option to get my data backed up/copied?
Thanks in advance for any advice you can share!
Click to expand...
Click to collapse
Unfortunately without ADB I do not know of any way to retrieve your data, or even clear the pattern lock. I think the easiest route would be to try a corded usb mouse and an otg adapter. You could try a cordless mouse with dongle, as long as it is not Bluetooth as that would most likely require a pairing code, but a standard 2.4GHz wireless mouse may work.
Hakugin said:
Unfortunately without ADB I do not know of any way to retrieve your data, or even clear the pattern lock. I think the easiest route would be to try a corded usb mouse and an otg adapter. You could try a cordless mouse with dongle, as long as it is not Bluetooth as that would most likely require a pairing code, but a standard 2.4GHz wireless mouse may work.
Click to expand...
Click to collapse
Thanks Hakugin.
I wanted to give an update. The USB OTG thing definitely works on the phone, but without being able to see the screen, unlocking the pattern would be extremely difficult. I tried for a little while, but there was just no way of knowing if I was even close.
I ended up getting a new phone via insurance. I took both phones apart and plugged the screen on the new phone into the old phone's motherboard. I was able to get into the phone, disable the pattern lock, enable USB debugging, and everything else I needed to do.
I know it's not the greatest and most available solution, but it definitely allowed me to get where I needed to be. I used MyPhoneExplorer (I think that's what it's called) to backup call logs, texts, etc and then restored to the new phone (once I had them both back together of course).
The USB Debugging is the biggest hurdle to overcome. If someone can find a good answer to solving that problem, we'd be ok. Of course, that would be a huge security issue...

tasker setup HTC connect

hi everyone
im just wondering if anyone knew how to set tasker app to trigger HTC connect to miracast device.
and code or script i need to input? or is there additional addon i need to instal to trigger the action.
currently i have tasker and secure setting addon
also i have microsoft wireless display device.
device is HTC M9, unlock bootloader and rooted,
thanks in advance

Couple of Bluetooth doubts

Hi there. First of all, I'm NO root. So I can't use Wanam Xposed. Maybe we can help each other to solve these issues.
-Is it possible to disable bluetooth popup when enabling it? I don't want to select my already connected device each time I want to enable BT.
-Is it possible to change the default player for BT? When I'm connected to my car and I touch "play" button, the default Music app in the phone starts, not the lastest one or any other app. I'd like to open another app instead (podcast player).
-Is it possible to enable Bluetooth WITHOUT unlocking the phone? I mean, from the lockscreen. (I have fingerprint security)
Thanks!
Why?
This link doesn't make any sense, you wind up in the same place on a browser instead of the app that I paid for that doesn't work.
Pp.
AFIK there is no way to hide the Bluetooth popup without root. Also I don't mind the popup, better than having to go all the way through settings to connect to a Bluetooth device that I am not already paired with. also if multiple Bluetooth devices in the area that are paired you will just connect to one and you will have to go to settings to switch to the other device.
Default player would also have to be changed through root, If you even can.
And no you cannot turn off anything or open notifications when there is a screen lock. The whole point is to stop people from doing things to your phone while it is locked. However you can setup safe locations (uses gps to find your location) where your phone will stay unlocked just like when you have a trusted device connected via Bluetooth.

Looking for a dockingstation (diff. charging station).

Hello.
I am looking for a "docking station".
I do not want a charging dock only, because i dont want it to have screen on while connected with the charger only.
Can you please give me an advice what kind of type i have to look for?
Story:
I want to use this feature while my Phone is connected to computer:
http://www.greenbot.com/article/215...s-overlooked-customizable-docking-screen.html
So you can set it to:
- "When docked", "While Charging", "Both", (ON/OFF)
- And i want to use it "when docked".
- In Android 7 this feature is renamed to screensaver.
Heres some documentation:
https://developer.android.com/training/monitoring-device-state/docking-monitoring.html
https://developer.android.com/reference/android/app/UiModeManager.html
I went on and asked HTC for how it is triggered on the HTC 10 and which dock would be compatible.
Frustration mode on:
HTC Told me i should get in contact with the developer of this app since they got this information that the app offers those 3 choices. Ehm actually i do not know who this is? I knew the features of that thing in advance. Google. Thats the worst answer i would have expected by HTC on this topic tbh. They seem to not know how the Phone can be used.
/Frustration mode off.
I found some code snippets to trigger this via ADB. But this does not work due to permission. I assume root would be required.
Actually i would just want a dockingstation on my desk that lets the phone think it is DOCKED without having to do some crazy workaround stuffs. What is this?
I ve been reading some manufacturers use a magnetsensor or special cables. E.g. for the Iphone is a special cable and dock. Please do not say something like buy this and that other phone / manufacturer. I do not want to hear this.
Please help, name me a dock that works for my purpose.
Greetings,
R

*SOLVED* Factory reset grayed out cannot reset

I have original sprint s20 ultra, sim unlocked, currently running stock unlocked firmware. I am STILL unable to perform factory reset due to it being grayed out. To make matters worse, my screen is not working so I'm viewing everything thru TV HDMI, but cannot see download mode screen/recovery, I do some guessing to navigate thru those.
I've tried:
- putting in another sim
- reset via recovery
- setting up phone without logging in or internet after recovery reset or flashing via Odin - still factory reset grayed
- flashing unlocked firmware (U1)
I know that it isn't FRp locked because I am able to skip thru logins and internet setting at setup after flashing firmware.
I still have no clue why the factory reset is grayed out.
*SOLVED* the phone grays out reset due to the HDMI connection. I confirmed using another samsung phone that had a good screen.
An app set as Administrator may be blocking it in security.
Package Disabler for one will do that if set to.
Possibly a rootkit.
blackhawk said:
An app set as Administrator may be blocking it in security.
Package Disabler for one will do that if set to.
Possibly a rootkit.
Click to expand...
Click to collapse
Thanks for the suggestion. Only "find my device" from google shows up under the list device admin apps. Is there a possibility that any others may not show in that list that is causing this?
I see an app called work profile - but I do not think that is a culprit since I have the same app on my other samsung and am able to reset that phone. I also disabled the work profile app as it didn't allow me to uninstall, but the factory reset was grayed.
blackhawk said:
An app set as Administrator may be blocking it in security.
Package Disabler for one will do that if set to.
Possibly a rootkit.
Click to expand...
Click to collapse
I figured it out! My inspiration came from a youtube video about the reset being grayed out on a samsung tv due to an app being opened.
In my case the reset was grayed out because I was viewing my phone screen on my tv via hdmi; i purchased this phone with a totally busted screen. I tested this theory with my good s21 ultra. The reset was active when not connected to HDMI, but grayed out when it was connected.
h0va4life said:
Thanks for the suggestion. Only "find my device" from google shows up under the list device admin apps. Is there a possibility that any others may not show in that list that is causing this?
I see an app called work profile - but I do not think that is a culprit since I have the same app on my other samsung and am able to reset that phone. I also disabled the work profile app as it didn't allow me to uninstall, but the factory reset was grayed.
Click to expand...
Click to collapse
If present it should be listed there.
Is there a work around for this? I'm having the same issue. The screen is completely black. But touch still works because I can feel the vibration feedback and when plugged in to a monitor, it registers my touch. However, since I can't see anything on the screen, I can not do a factory data reset on the phone itself. Being plugged in to a monitor disables the option....
I hate this phone. (ㆆ_ㆆ)
If anyone has a work around or suggestions it would be much appreciated.
I had the same dilemma. I found a workaround using TeamViewer quick support app on the broken phone. Was easily able to remote into that broken phone from another Android phone via the regular team viewer app from the other working phone.
More details: My broken phone was one that I wanted to reset: Screen didn't display anything, touch still working. Connected to phone via USB-C USB HDMI hub so I could see my screen on a TV. Reset settings grayed out because it is connected via HDMI to the TV.
I needed a work around because every time I unplugged the HDMI using for example AirDroid, my accessibility settings got disabled within a couple of seconds, and I was no longer able to remote control my phone that I was trying to reset.
Finally, I installed TeamViewer quick support app from the Google Play store onto the broken phone. Then I installed TeamViewer regular app (pretty sure it wasn't quick support, maybe it doesn't matter which you use) on a different fully functional Android phone. I'm sure I could have installed TeamViewer on a PC instead. Anyway, I punched in the identification code of the broken phone TeamViewer quick support and remotes into and controlled the broken phone. At that point I was able to disconnect the HDMI from the broken phone and still see it and control it from the working phone! With that control, I browsed to the factory reset function in Android settings on my broken phone. And it was not greyed out / disabled anymore. I selected it. And the phone factory reset! After a few minutes when I plugged that broken phone back into the HDMI, the hello welcome language selection screen displayed. Displayed. The phone had reset! Super smooth process. Thanks to TeamViewer quick support and the USB hub.
aleie said:
I had the same dilemma. I found a workaround using TeamViewer quick support app on the broken phone. Was easily able to remote into that broken phone from another Android phone via the regular team viewer app from the other working phone.
More details: My broken phone was one that I wanted to reset: Screen didn't display anything, touch still working. Connected to phone via USB-C USB HDMI hub so I could see my screen on a TV. Reset settings grayed out because it is connected via HDMI to the TV.
I needed a work around because every time I unplugged the HDMI using for example AirDroid, my accessibility settings got disabled within a couple of seconds, and I was no longer able to remote control my phone that I was trying to reset.
Finally, I installed TeamViewer quick support app from the Google Play store onto the broken phone. Then I installed TeamViewer regular app (pretty sure it wasn't quick support, maybe it doesn't matter which you use) on a different fully functional Android phone. I'm sure I could have installed TeamViewer on a PC instead. Anyway, I punched in the identification code of the broken phone TeamViewer quick support and remotes into and controlled the broken phone. At that point I was able to disconnect the HDMI from the broken phone and still see it and control it from the working phone! With that control, I browsed to the factory reset function in Android settings on my broken phone. And it was not greyed out / disabled anymore. I selected it. And the phone factory reset! After a few minutes when I plugged that broken phone back into the HDMI, the hello welcome language selection screen displayed. Displayed. The phone had reset! Super smooth process. Thanks to TeamViewer quick support and the USB hub.
Click to expand...
Click to collapse
I was on a non-rooted Verizon Galaxy S10
aleie said:
I was on a non-rooted Verizon Galaxy S10
Click to expand...
Click to collapse
Oops, I meant my broken phone was that non-rooted Verizon Galaxy S10

Categories

Resources