How do I Ctrl+V from clipboard via Android shell command? - General Questions and Answers

I want to automate (using Automate app) on Nougat 7.0 rooted Nexus 5X :
screen capture
open FiiNote
paste it by sending Ctrl+V
I have tried :
Ctrl+V tasker plugins (doesnt work),
Autoinput plugin (works but require to touch the page to focus then paste which messes up with the editing page)
Hacker’s Keyboard GUI automation (works but very slow it takes around 5 seconds to switch keyboard, show keyboard, press ctrl press v then switch keyboard again).
test external keyboard Ctrl+V; works but it is not what I intend using just wanted to know whether the paste works on FiiNote
but it means that if there is a workaround using root shell command it can work.
maybe is it possible to capture the Ctrl+V command from external keyboard and use that?

Related

shortcut icon to run shell script

possible somehow ?
i believe astro allows you to make a shortcut to anything
I can't seem to see files in astro outside /sdcard..
also, I haven't found a way to make shortcuts using it.. what am i missing ?
to make a shortcut press and hold an area on the home screen then select shortcut->astro
then browse for what ever you want a shorcut of and long press it (be sure to long press and not just press it or it will force close dont know why)
astro crashes when I try do that (right after selecting the file, and giving the shortcut a name).
also, as for astro browsing - i cant browse in /data, other places ok i think
like i said before you cant just select it, you have to long press (press and hold).
you're right it doesn't show some contents in certain folders but you wanted a shortcut for a shell script (which i assume you created) so you don't need anything in those folders.
a. i wanted to put the scripts in /data (which it doesnt see)
b. i noticed you wrote about long pressing it, it crashes anyhow..
update: it does make shortcut to directories ok
update2: i think it doesn't run shell scripts at all
sorry but im out of ideas since astro has worked for me
hopefully someone else can help out
edit: i know any cut has a feature to create your own shortcuts. have you tried that out yet?
trying it, not sure how to use self shortcuts
Any apps to create shell scripts on the Dream?
anycut is based on an activity api, unless another activity can run the script, it wont be possible
seems its not possible yet.
someone has to write an application which fires the shell script upon an intent, then you could make a shortcut for it..

Alternatives to Esmertec Jbed with Opera mini 4.2 & 5?

So, since all Esmertec versions seems to have a bug when I use address completion in Opera, making any keypress autorepeaaaaaaaaaaat until backspace is pressed, I'm wondering if there's another Jbed out there without this bug (on Samsung i780, WM 6.1).
I need to be able to make a shortcut for Opera, making it one click to run and I need to be able to not be nagged for internet access for each time I use it. Any alternatives?
I'm not sure about your particular Opera Mini Version, Phone & Esmertec. I've used both Esmertec and Opera Mini on my phone without that particular issue so I can't help on that matter, however as to the other questions:
1) Need to make a shortcut
2) Need not be nagged for permissions
1) To create a shortcut to ANY Java app, simply create a new "Some_App.lnk" (shortcut) file on your phone (You can use Total Commander to do this on your phone, or Notepad on a PC and transfer) then use the following syntax inside the file:
------------
30#"\Windows\jbed.exe" -run s29_
------------
where "s29_" represents the install number of the Java app
that you are making a shortcut too. In other words if Opera Mini is the 5th app installed (and there were no previous installs/deletes of java apps) then it might be "s4_" (since 0 is actually 1). You can change the number easily enough until you launch the right app. Or browse to \windows\appdb on your phone to see the different apps installed and their corresponding suite numbers.
2) On fixing the Java Permission security thing.. just google on "Fix Java Security Selector.utf" there was an app that I had downloaded awhile back that changes the permissions in the Selector.utf file so that they are all set at max perms allowed and gets rid of the nag. I have seen some posts where even this trick didn't work for some people, but it may be worth a try.
Using i780, all opera mini versions, all esmertec versions and windows mobile 6.1 (which -could- have something to do with it, but I think opera has reported phone specific bugs).
Just uncheck the autocomplete address input in settings.
mentalee said:
1) To create a shortcut to ANY Java app, simply create a new "Some_App.lnk" (shortcut) file on your phone (You can use Total Commander to do this on your phone, or Notepad on a PC and transfer) then use the following syntax inside the file:
------------
30#"\Windows\jbed.exe" -run s29_
------------
where "s29_" represents the install number of the Java app
that you are making a shortcut too. In other words if Opera Mini is the 5th app installed (and there were no previous installs/deletes of java apps) then it might be "s4_" (since 0 is actually 1). You can change the number easily enough until you launch the right app. Or browse to \windows\appdb on your phone to see the different apps installed and their corresponding suite numbers.
2) On fixing the Java Permission security thing.. just google on "Fix Java Security Selector.utf" there was an app that I had downloaded awhile back that changes the permissions in the Selector.utf file so that they are all set at max perms allowed and gets rid of the nag. I have seen some posts where even this trick didn't work for some people, but it may be worth a try.
Click to expand...
Click to collapse
That's the way, for shortcut and avoiding permision ask.
Opera mini 4.2 works great.
Opera mini 5 beta, works even better!
But I want to use autocomplete!!!
well, you just can't on i780
But there must be a fix!
There is no fix..
Not yet!
I created a JBED & Opera Mini install on SD. Links are on my sig.
Recently, my Opera Mini refused to input pswd. Instead of * it shows blank. Any solution other than fresh install both again? Anything I can do?

Workaround for BT ROM/Storage Memory Leak- Requires Root Access

Note: You will be deleting files from your phone so do this at your own risk. To the best of my knowledge these are waste/unreleased files caused by the bluetooth hanging in connecting mode but I take no responsibility if they are actually important and result in any damage(s).
This workaround requires that your root your phone. You will need to have super user access (su) where you see the # sign. We will simply be executing the following commands to list and delete the core.xxxx that we assume are the unreleased/waste files taking up space:
lists:
su
ls -al /data/btips
deletes:
su
rm /data/btips/core*
1. You will also need to install Better Terminal Emulator -Free from the apps store. Note: This app crashes on me when in landscape mode, so you might only be able to use it in portrait.
2. Open up Better Terminal. Press Menu > Preferences
3.(Optional) Turn on Volume Up shortcut and assign: su (enter key) ls -al /data/btips (enter key)
This will give you the ability to quickly list your files in the data/btips directory. Most of them will have 0 - 1002 beside them. This is the size. If you see something significantly larger it is probably an unreleased file waste file. This is only for your reference to view the files and is not really necessary for recovering your space. Next come the part where we actually delete them!
4. Turn on Volume Down shortcut and assign: su (enter key) rm /data/btips/core* (enter key)
5. Try it out. Go to Terminal screen. Press up to activate shortcut to list files(optional). Press down to delete them. If you don't have any unreleased/ waste files it will give you no such file notice obviously. My notice is cut off in portrait mode. These shortcuts will be active when you open the terminal app for quick list and delete. This allows you to manually but quickly recover your storage space.
Thanks to jonnythan for finding the diectory and files:
http://community.sprint.com/baw/thread/23854?tstart=0
I love how these things make the rounds on all the forums!
http://forum.xda-developers.com/showthread.php?t=582823
Tell me about it! I like to keep an eye on all the forums, each one offers something a bit different. My bluetooth thanks you for your help, finally it's no longer sitting in the corner! Now hopefully we get a fix for that pesky connecting issue, it seems to actually be connecting but just hanging somewhere.
elguapo76 said:
Note: This app crashes on me when in landscape mode, so you might only be able to use it in portrait.
Click to expand...
Click to collapse
This only happens to me when I attempt to rotate to landscape mode with the software keyboard already open.
If I close the software keyboard, rotate to landscape, and reopen the keyboard then the application never crashes on me.
Package this up into an app that executes with a button press.
Treefallingquietly said:
Package this up into an app that executes with a button press.
Click to expand...
Click to collapse
Better, package it into a Locale add-on so I can make it run whenever I enable/disable BT!
elguapo76 said:
Note: You will be deleting files from your phone so do this at your own risk. To the best of my knowledge these are waste/unreleased files caused by the bluetooth hanging in connecting mode but I take no responsibility if they are actually important and result in any damage(s).
This workaround requires that your root your phone. You will need to have super user access (su) where you see the # sign. We will simply be executing the following commands to list and delete the core.xxxx that we assume are the unreleased/waste files taking up space:
lists:
su
ls -al /data/btips
deletes:
su
rm /data/btips/core*
1. You will also need to install Better Terminal Emulator -Free from the apps store. Note: This app crashes on me when in landscape mode, so you might only be able to use it in portrait.
2. Open up Better Terminal. Press Menu > Preferences
3.(Optional) Turn on Volume Up shortcut and assign: su (enter key) ls -al /data/btips (enter key)
This will give you the ability to quickly list your files in the data/btips directory. Most of them will have 0 - 1002 beside them. This is the size. If you see something significantly larger it is probably an unreleased file waste file. This is only for your reference to view the files and is not really necessary for recovering your space. Next come the part where we actually delete them!
4. Turn on Volume Down shortcut and assign: su (enter key) rm /data/btips/core* (enter key)
5. Try it out. Go to Terminal screen. Press up to activate shortcut to list files(optional). Press down to delete them. If you don't have any unreleased/ waste files it will give you no such file notice obviously. My notice is cut off in portrait mode. These shortcuts will be active when you open the terminal app for quick list and delete. This allows you to manually but quickly recover your storage space.
Thanks to jonnythan for finding the diectory and files:
http://community.sprint.com/baw/thread/23854?tstart=0
Click to expand...
Click to collapse
This is a life saver. Im the OP from the Sprint forums. Ill give it a try tonight.
I've tried this a couple of times and I keep getting: cannot remove '/data/btips/core*' : No such file or directory. Has this happened to anyone else? I really would like to use the bluetooth on this phone. Any help is appreciated.
ejqr5 said:
I've tried this a couple of times and I keep getting: cannot remove '/data/btips/core*' : No such file or directory. Has this happened to anyone else? I really would like to use the bluetooth on this phone. Any help is appreciated.
Click to expand...
Click to collapse
Not 100 percent sure but I believe that message means there are no waste files created yet. The reason the op instructs to create the shortcut actions in better terminal, is so you can use your Bluetooth and while using it, these files will build up and with the shortcuts it gives you a fast way to delete them, successfully "working around" the memory leak, until a fix is found/released.

Keyboard and games

Hi there! I'm new to this community and I would like to salute you all!
I have what should be in my opinion an easy question: is it possible to play android games on a tablet using a physical keyboard connected via usb? I installed gta 3 and it is possible to move with the arrow keys and some other buttons work too, but the action buttons on the right side of the screen dont work with the keyboard. Also, I installed Fifa 12 and I was hoping there could be some sort of app or emulator that could map the keys on the physical keyboard so that they could match the buttons on the on screen keyboard. You know, sort of like WASD + arrow keys. So tell me, is there some kind of app or emulator that coud do this? Is this even possible? Thanks
Nothing?
Is it possible?
You can make a custom layout by writing a keylayout file in Android: /system/usr/keylayout/qwerty.kl
You can modify this to have it send any keycode.
If you are going to remap letters and stuff but still want to be able to use a regular keyboard,
I suggest that you get two different (different PID/VID) keyboards.
You could even use a numeric keyboard for gaming.
Leave qwerty.kl alone and make a new one named something special.
First try this: use logcat when plugging in your keyboard, and twiddling a few keys.
You will get an error message something like this:
Code:
W/KeyCharacterMap( 1360): Can't open keycharmap file
W/KeyCharacterMap( 1360): Error loading keycharmap file '/system/usr/keychars/HID_04d9:1203.kcm.bin' . hw.keyboards.196612.devname='HID 04d9:1203'
W/KeyCharacterMap( 1360): Using default keymap: /system/usr/keychars/qwerty.kcm.bin
This is not the file that you are looking for but it tells you the name of the file that you do need.
(keylayout is the first layer of translation, keychars is the second layer. You don't need to change keychars.)
That file (in this case) would be /system/usr/keylayout/HID_04d9:1203.kl
If your system doesn't emit this error message, get the VID/PID and try that as a name.
(You can get the VID/PID by plugging the keyboard into a Windows system and looking in device manager.)
You still have to modify the .kl file for whatever your gaming need is.
Start with the original qwerty.kl file as your model.
Thanks. But it seems a little overwhelming for a new android user like me. I was hoping there was some sort of app that could let me map physical keyboard keys.
Is that the only way?

[GUIDE][how-to] Run StarCraft in x86 Android Tablet

By installing "Debian noroot" and "WINE" you can run StarCraft natively in x86 Android device. No cpu emulation is needed.
This guide is for x86 (Intel) based tablet only. This should not require a rooted device. You will need enough free space in the internal storage to hold Debian noroot+wine+StarCraft CD. I am guessing about 1.5GB. It will be much easier to set up if you use a Bluetooth keyboard as some typing is needed in the Debian terminal. Update:Feb-5-2015 Fix choppy audio for Starcraft (at http : // androidforums.com / threads / guide-run-starcraft-in-x86-android-tablet.893425 / )
1. Install "Debian noroot" [by Pelya] from Google Play
** I am not allow to post outside link, just search for debian noroot in Google Play
- recoommand also install the hacker's pc keryboard
2. In app list find "Debian" app and run it, it will download 600MB of Debian image. Once it is done you will see a Xfce desktop Environment.
3. double tap on "Enable Audio" icon to install pulseaudio package, this will download another 100MB
4. double tap on "Root Terminal" icon to launch privilige user terminal. the device back button show/hide the soft keyboard.
type "apt-get install wine"
type "apt-get install libgl1-mesa-swx11-i686" (software-based OpenGL)
5. Connect android device to Windows host. Have your Starcraft CD in CD drive. I assume CD drive is at D:
6. Android Debian have no HW openGL support, we need to tell WINE not to use opengl. Create a text file in Windows host named it something like no_opengl.reg, put following lines in it:
REGEDIT4
[HKEY_CURRENT_USER\Software\Wine\Direct3D]
"DirectDrawRenderer"="gdi"
"OffscreenRenderingMode"="backbuffer"
"RenderTargetLockMode"="disabled"
7. Download Starcarft 1.16.1 (SC-1161.exe) patch from Battle.Net support. Open a windows cmd prompt, type:
adb shell mkdir /sdcard/SCCD
-this will copy all StarCraft CD files to /sdcard/SCCD/
adb push D: /sdcard/SCCD/
adb push SC-1161.exe /sdcard/SCCD/
-copy reg file too
adb push no_opengl.reg /sdcard/SCCD/
8. Back to device Android Debian, double tap on the terminal icon (not root terminal) to open a terminal
- to disable opengl for wine type this
regedit /sdcard/SCCD/no_opengl.reg
- now install StarCraft from SCCD
wine /sdcard/SCCD/setup.exe
- the StarCraft setup will run , install game as usual, I put game under c:\StarCraft\ for easy access
wine /sdcard/SCCD/SC-1161.exe // patch SC to latest version
- StarCraft.exe will not look for CD if you copy install.exe and put it in C:\StarCraft\StarCraft.mpq
cd .wine/drive_c/StarCraft
ln -s /sdcard/SCCD/install.exe StarCraft.mpq // symblic link works, no need to copy
9. Now shutdown Android Debian, (tap on the red arrow under "Menu" side bar)
10. Start "Debian" again , select device configuration
under video Settings -> enable 4:3 aspect ratio
- if you want mouse pointer track your touch point
under Mouse Emulation -> advance features-> disable Relative Mouse Movement
tap ok to continue
tap the screen again when you see resolution change message
tap the word "custom" and give 640 width and 480 height.
select your prefer font scale, continue to desktop
11. double tap on terminal, type "wine C:/StarCraft/StarCraft,exe" to launch StarCraft
12. If all goes well you will see the main menu and touch should works. Try start a new game. You will hear choppy or no audio. That is an known issue of Debian noroot. I have no fix for the audio at this time.
13. You can create a Xfce desktop launch icon to run game later.
P.S this process should works for other 2D Windows games that don't require CD to play.
Hi,
I have tryied your method here http://androidforums.com/threads/guide-run-starcraft-in-x86-android-tablet.893425/ in order to avoid chop sound at wine, but when i make ./wine-audio it says "no such file or directory"... what may im doing wrong? Is it normal?
Thanks!

Categories

Resources