Disabling Physical Keyboard in Android Tablet - android

Ok so i bought Chinese tablet and chinese Keyboard which drains my tab battery v.fast, so
i am thinking to create an app to enable and disable physical keyboard, can any one help me for how i can target physical keyboard in codings, or is there any other possible way.
EDIT: by Disable i mean no interaction in any sense with physical keyboard, or say disable usb port, what you'll suggest
I also have ROM toolbox, which also allows me to play with some of the build properties so if u can help me in this way than i will be very thankful b/c it will save me alot time.
Android: 4.0.3
keyboards connects with usb cable.
anyway Thanks in Advance

Anyway i would like to share my solution,
I enabled Pin Lock and it turns android into sleep mode, so after a little time my physical keyboard gets disabled automatically, (capslock light stops responding).
;)

Related

Phone locked - Vysor is hiding the keyboard on my phone

I used Vysor a couple of days ago to test an app I created. The next day, my keyboard suddenly changes into Vysor's hiding the keyboard on the screen. Good thing I was at home to recon the phone on my computer so I was able to unlock the phone and change back to my default keyboard. I'm kind of upset that I absentmindedly turn off the remote debugging thinking I won't be needing it on for the mean time. Yesterday a notification pops in saying "Vysor is hiding your keyboard". Until now I'm not able to unlock my phone! I already boot up the phone, tried otg cable and used bluetooth keyboard but there is no use. I can't use vysor or any other app as remote debugging is turned off. I still can't get in! I can't reset the phone to factory default as I have important files inside. Can someone please help me.
try using the "safe mode" for your smartphone then uninstall vysor, it works for me. After turn off your phone and then turn it on.

Xperia Z3 Compact Phone do not display recovery/bootloader console

I was trying to root my device (Xperia Z3 Compact) as instructed here:
DooMLoRD's CWM-Based Recovery Console
Somewhere in between, a mistake was made and being the novice that I am, I can't seem to undo it.
I also have no idea what happened, but if what I understood online is right, I screwed up the bootloader which made the recovery console unavailable.
Here is screenshot on Emma:
Here are the steps I made on the console:
Also, the phone makes some sort of nice sound, not a beep, although I can't identify it and the screen is always black.
I would pretty much appreciate all the help, with the things I've done, I've pretty much voided the warranty (I think) so I hope you guys can help me out.
We advise users to check supported devices at Developer World.
The D5833 is now added as a supported device, and I hope it will appear as an available service next time you connect your Z3 compact.
Best regards
Carl
Sony developer support
Indeed, by rooting device you've lost warranty.
I've faced with fact it's not to easy run Recovery Console while booting device. Sometimes I had to push to volume control buttons very long and fast for achieving result.
Please check is device seen by fastboot now.
I believe if bootloader is really broken you have to take your device to the service. Guys from service should be able to recover it by JTAG.
It seems that you've already flashed a custom kernel.
Key sequence for entering recovery program may change depending on the kernel being flashed. So for my Xperia P I've had to press the power button repeatedly until I get into CWM recovery.
To switch into fastboot : press and hold the volume Up button, and plug in the USB cable; the notification LED will light up Blue
flash mode: press and hold the volume Down button, and plug in the USB cable

Enable USB debugging on Android remotely

I've got the LG P970 phone running on Gingerbread with a broken screen. By broken screen i mean that screen displays nothing - it's lighten up, all black with color lines but it's touch sensitive (i believe). I've got important data on it and I want to get it back. Unfortunately USB debugging mode is disabled on the phone so adb devices command on linux shows empty dialog.
So here comes my question: is there any possibility to remotely turn on usb debugging mode on android device?
This is how I solved this problem (on a Samsung Galaxy S4):
This assumes that the phone's screen does not display anything, but the touch input still works.
Figure out how to take a screenshot on your phone without using the UI. On the Galaxy S4, you can use hardware buttons to do this.
Unlock your phone's lock screen, and connect it to a computer.
Open the phone in a file manager.
Find the location where the phone stores screenshots.
Take a screenshot on the phone. Look at the updated screenshot.
By doing this, you can perform an action on Android, take a screenshot, and see what screen comes up. After doing this awhile, you should be able to find the USB Debugging menu.
Simple, use a new phone say an S4 to your cracked broken S4 and get to the video port (several youtube videos on this) hook the new screen to the old phone and now you have access to debug set usb or transfer all the files its just as simple as plugging in a working screen!

Android 4.x on HTC One - USB debugging mode automatically turns itself off

I just got an HTC One (T-Mobile) for testing an application we're developing. Currently the app requires USB Debugging to be switched on. With the HTC One, running Android 4.1.1, I can switch USB Debugging on, but after a period of time (hours sometimes) it switches itself off and I need to turn it back on. We haven't experienced this behavior with any other phones, including others running 4.1.1 that I'm aware of. I have two questions regarding this:
Does anyone know why? I have my guesses, but I wanted to know if anyone has come across an actual validated answer for this.
Is there a way to force it to stay 'on' once it's switched on?
Thank you for any tips!
I had the same issue on huawei p9.
To solve the problem:
press "restoring default settings" if it exist(in huawei it's exist)
enter developer mode setting
enable "OEM unlocking"
now, enable USB Debugging - it should work.

keyboard wedge device into android usb

I have a measurement device which sends data as keyboard wedge when connected to a PC. I would like to be able to use it to input data into an Android phone or tablet through the USB port.
Anyone have an an idea if Android device USB port can be used in that way?
Only some Android devices support USB host mode, but those that do would typically recognize a keyboard as a keyboard and use it as such. An adapter cable is typically required.
One problem this might present is that if your app goes to the background, you would probably lose the keyboard input as it would instead go to whatever is in the foreground. The Android security model, if still intact, would prevent snooping on keyboard input when not in the foreground.
(They often support mice too - kind of funny to see a mouse cursor appear on your phone)
Depending on your particular model of Android device, you may be able to use this adapter, or one like it, to connect a keyboard via Android's support for USB On-The-Go

Categories

Resources