Is there any way to view the current amount of free ram? either using ADB or Terminal Emulator?
"cat /proc/meminfo" should work everywhere. I don't know if "free" is available on all ROMs.
Sent from my HTC Hero using XDA App
Thanks. I'm actually creating a custom ROM and trying to incorporate an option of viewing the available ram. apps like SysTray Monitor seem to do this. Im just trying to cut out the usage of an app to view it and maybe view it from the terminal emulator or adb
U can just use free command
Related
I would like to figure out a method to ALWAYS keep Better Terminal Emulator running in the background on my Tab after I have sent it to the background. I would like for Android to never kill this application.
I understand the normal Android framework automatically kills applications in the background when running low on memory, but I want this single application to stay active regardless of system performance. On the tab we have 512 MB of memory, which should be plenty to keep Better Terminal Emulator running in the background at all times. The goal is to run command-line tools/scripts in the background without fear that they will be randomly closed by Android.
Is there such a method? I have root on my Tab.
Thank you.
If you have root, just run them on the command line... Those won't get closed.
Sent from my SCH-I800 using XDA App
how would I be able to run the terminal emulator from the command line when the commamd line app is the one i need to always be active?
the idea is to get it running like Pandora, always in the background.
mail_e60 said:
how would I be able to run the terminal emulator from the command line when the commamd line app is the one i need to always be active?
the idea is to get it running like Pandora, always in the background.
Click to expand...
Click to collapse
I run stunnel in the background all the time...
I launch connectbot, run my stunnel command, exit connectbot... my stunnel stays alive until I reboot.
Maybe it depends on the command you want to run... but if you run the command and end with a "&" it should fork into the background and stay running no matter what the memory situation becomes on android. (short of an actual OOM event)
Hello All,
Another ubuntu project here..
its a chroot jail free looped native framebuffered something?
one folder on sdcard called linux /sdcard/linux with the .img
your mount point..i use /data/local/mnt/linux
the scripts i use /data/local/mnt
simple you will need to edit the scripts if u edit ur paths..
ill share my stuffs if theres any interest in this.
dunno if this has been done on sgs2 using just scripts but yh
ive managed to get ubuntu13.04 running with full multitouch support using mtrack i use lxde/2d-unity
this approach uses android framebuffer instead of using a vncserver.
Concept/Goal: use android hardware to run linux without vnc and full hardware support...its christmas soon!
so we go a safe way and mount a img file and loop and chroot and mount necessary android stuff i.e /dev /proc /tmp-to help speed up system! and mount all sdcards.
then we kill android-the-framebuffer-hog
and start our xsession,
anyone interested in helping me?
i have the scripts and image, just need more nuerons!
to do is (alot)
Working:
Framebuffer >> full gamma and .mhz settings safe
Wifi
Bluetooth
Reboot to andoid and umount rootfs on log out
Mouse
Multitouch tap is click, double tap is ?grab window to move it, two fingers for right click, three to scroll
Screenshots
Charging
Sdcard
MicroSd
Keyboard >> virtual
Theres alot but its hard to summerise lol
Not Working (WIP)
get sound working completely (evrythings working except last output part) alsamixer, pulseaudio all work..just the last bit..so no sound.
figure out why system_bus_socket connection refused?
why dbus isnt being used but starting ok?
Landscape mode mouse axis. (i can rotate the display but the mouse axis are wrong.. up=right down=left) (portrait is fine)
camara
gpio-keys (hardware buttons)
calls
text messaging.
OTG USB (i made one so im assuming its that that doesnt work simply tweak to the xorg.conf to swap from touch to mouse..)
DRI & DRI2
GL_OES_EGL_image for 3d
have to use a virtual keyboard until running android apps in linux is figured out--ahem (i use matchbox-keyboard)
logon screen works but the keyboard is a issue. (virtual keyboard only starts once logged in. so no logon yet just auto logon)
you can still use ssh and vncserver if you wanted to..
any interest ill share my scripts...
as i said im not the only person to chroot imgs, but i havent seen a thread on getting it running natively on sgs2 without uboot or repartioning anything.
unless u completely recompile the linux os whilst inside of it, i.e adding vmlinux.img should be safe enough. works for me
anyway been a busy with this and im not a pro developer just a seasoned addict, thus the call for arms!
peace!
some screenshots
and you expect me to share my work when none of you have any input..phhhhhaaa
EDIT >> i was how you say suffering from a spot of pink eye! Strange strange thought patterns = WEIRD REMARKS lol
Sent from my GT-I9100 using xda app-developers app
Wow, erm.......awkward!
I wish you success in your endeavors.
Sent from my GT-I9100 using xda premium
Interesting.
May I ask what are you using for? I mean, which killer app in Ubuntu you can't replace with an Android one?
Moreover, I have noticed an X server on the Play Store (https://play.google.com/store/apps/details?id=au.com.darkside.XServer)
Using it, instead of killing Android, may allow some more integration with the Android environment (e.g. you could still receive calls while using your ubuntu stuff).
Another improvement would be to use multiple consoles (you know, Ctrl-Alt-Fx stuff) to have both environments running
Just my 2ç
Z
zavorrax said:
Interesting.
May I ask what are you using for? I mean, which killer app in Ubuntu you can't replace with an Android one?
Moreover, I have noticed an X server on the Play Store (https://play.google.com/store/apps/details?id=au.com.darkside.XServer)
Using it, instead of killing Android, may allow some more integration with the Android environment (e.g. you could still receive calls while using your ubuntu stuff).
Another improvement would be to use multiple consoles (you know, Ctrl-Alt-Fx stuff) to have both environments running
Just my 2ç
Z
Click to expand...
Click to collapse
lol
i mean to free up surfaceflinger and the framebuffer and send android into a slumber?so we can use it for our xsession. not KILL PERMANETLY
its like a chroot jail free no vnc something??
using vnc will allow u to still have android on in the background for calls and what not but thats chrooting a image to a mount point and running a app. awsome but i got bored with that..much perfere native input.
Search for linuxonandroid by zachthespack hes been dealing with chrooting linux for a long time and has a good application and a healthy stock of img files for you to use, plus a good how to. http://www.linuxonandroid.org Download from play store.. search 4 linuxonandroid
...thats not a bad idea zavorrax about the X11 app..
although running a third party app to use the framebuffer seems pointless when u can use the devices one!
wouldnt u rather have a true linux os in your pocket rather then a clever spin off of it, dont get me wrong i love android and its easy moddding.. linux is far better though.. this project im doing is after all, on a android device.
android root is always 0 ... root = / .... android apps are the users...if that makes sense?
linux uses users who log in..so root still has the initial setup of the os incase a user messes up, root can reset it with relative ease.
so in order to use linux for a vnc free linux, (root is in my opinion just like a programme.) needs to also be 0
thus, night night android..
its hard to explain, its linux and android?
basically the only way i can explain this is its the same as a chroot of a distro BUT instead of using vnc/X11 apks as the only way of having a GUI, we can optionally use the android framebuffer..fb0...
this thread wasnt ment to be a how-to just to see if theres any intrerest out here.
ill make a proper how to with all the basics needed.
as i said theres alot of these projects across the android platform, people trying too turn android back to linux/running linux.
u can pretty much use any img used for vnc or create your own for this.
theres a lot ubuntu/arch/debian/kali/backtrack..etc..etc
i initially add a file to my new img and apt-get a few things, run a few commands to change the img for my device then only need to execute my script,on the fly, hello linux desktop why not!
theres alot of debugging thats why im seeing if anyone is interested in this and would like to help/participate
i initially started using vnc years ago but got fed up with having to run a handful of scripts in this app and then find and add my ports and set passwords in another app, all using important cpu and power, so i thought why not make it all into one easy script.sh.......can of worms...
fruition was glimpsed so i continued.
just use it bcos i can
oh yeah and i say kill/sleep android, its all there..just not emulated/running a instance..sort of packed away in a box.(sleeping lol)
until i/someone can debug compatability for things like phone or proximity sensor then inside the linux GUI theres no support because it hasnt been setup/coded
thanks.
mckeowngoo said:
Wow, erm.......awkward!
I wish you success in your endeavors.
Sent from my GT-I9100 using xda premium
Click to expand...
Click to collapse
i to was a search and download kinda guy, now i find coding and debugging for myself interesting/rewarding.
its such a burden having hobbies!
Wow, erm.......awkward!
lol
cheers
If you're not going to share your work, why are you posting about it on XDA?
Thread closed. OP if you decide to share this then contact me when you have links ready and I will reopen this thread.
Well the topic basically sums it up. I tried a few in thr market none of seem to do a half way decent job.
Sent from my SPH-L720 using xda premium
You could probably write a shell script to gather all file names and md5sums. then have it delete the duplicates or maybe even prompt the user which to delete. If you decide to do something without user input check out $cripter for running the shell script.
mjwhitta - Galaxy S4
I know there are plenty of apps that can show your app usage statistics. I would like to know if there is a way to do that using the terminal. My eventual goal is to have a Tasker script to update the order of apps in Glovebox with the most frequently used coming first.
I have been doing a bit of digging on my own, and the files in "/data/system/usagestats" look promising. If anyone can explain or link me to the format that's used, I'd appreciate it.
Not sure if any are using it here but version 2 of my ADB GUI app is available (Flakie ADB GUI)
But a quick update:
Version 2 or my ADB GUI app is now available.
My ADB GUI App - Flakies Blog
A Windows GUI wrapper for ADB that allows APK install, update uninstall and pull/download to desktop. Supports rebooting ADB devices, custom ADB Shell commands, remote control of an Android device with scrcpy and video recording of the remote session. Integration with ngrok Internet cloud relay...
flakie.co.uk
Direct download:
https://flakie.co.uk/downloads/FlakieADBGUI.zip
There is a GUI for the common ADB commands and an integration with scrcpy (as in version 1)
It now has an experimental option to use ADB and ADB Shell commands by typing/pasting them in.
Works quite well (mostly).
It also has an integration with ngrok.
This allows you to securely control a Firestick through the Internet (or other ADB device) without any port forwarding on a router.
A full guide for ngrok use, with screenshots is here:
Using ngrok (to access a remote Firestick 4K) - Flakies Blog
We can manage a Firestick 4K (and other android devices) using ADB. This is an app/service that is run from the command prompt, by manually typing in the ADB commands.This can be done on the local network (LAN) or on a remote network (WAN) via the Internet.I am going to show two methods to...
flakie.co.uk
A simplified text version of the instructions is here:
https://flakie.co.uk/downloads/configure-termux-and-ngrok.txt
Once you have become familiar with the process it can be completed in about 4 minutes.
Cheers
Nice. Thank you!
Hi Flakie
Awesome app . . . There should be more marketing of this app, and I will be one to recommend it to everyone
Question:
What port is used to connect to your mobile phone . . i have used 5555 & 8080 with no luck . . plz can u give instructions to connect the mobile phone . . . 5555 works perfectly to the TV Box
Now . . . I'm excited and cant wait for your version 3 to be launched . . I'm checking your blog daily
Thanks again for this awesome app
Nivan0611 said:
Awesome app
Click to expand...
Click to collapse
Glad you like the app. New version is a bit away as I have been working on a couple of Android apps. Hopefully it will be in June. I am toying with adding a tabbed interface and putting in a file browser/manager for the attached devices. Though that may likely be coming in the version 4.
To attach the phone you will need to attach it to a USB cable first and showing as such in the app. Then enter the IP address of the phone (you can get this in the phones settings) and the port 5555. Then tick the box Enable TCP/IP mode and click on the Connect ADB Device button. Don't close the pop-up windows that appears. After 30 seconds or so it will show the phone as being connected by both USB and the WiFi. You can unplug the USB cable at this point and use the devices IP address to manage it. The phone can then be used in TCP/IP mode until it is rebooted. This also includes accessing it from a remote location with either port forwarding (if this is setup on the local router) or ngrok etc.
The next version it will not be necessary to specify the IP address as this will be acquired automatically by the app. TBH this is another reason for the delay in the next version, as it is still not reliable enough getting the IP address on all phones. Soon though
Marketing, not been too worried about that but grateful for any recommendations. Tech Doctor UK did a nice YouTube review (of version1) which generated more interest. There have been over 11,000 downloads in total (including the 2.3K from the tech doctor site), over the last year or so. Far more interest than I expected when I released it publicly. Thanks again for the comments.
Flakie said:
Not sure if any are using it here but version 2 of my ADB GUI app is available (Flakie ADB GUI)
But a quick update:
...
Click to expand...
Click to collapse
Jusr received my second Firestick 4k to put in bedroom, i'll play with it in order to root it and customize it to my needs, your blog seems pretty interesting, i'll probably read a lot out there before i dig in !
Thanks for the shares !
This is cool
my wishlist:
1. be able to save multiple adb ip addresses
2. be able to launch cmd window with shell instead of being forced to use shell in the app
Flakie said:
Not sure if any are using it here but version 2 of my ADB GUI app is available (Flakie ADB GUI)
But a quick update:
Version 2 or my ADB GUI app is now available.
My ADB GUI App - Flakies Blog
A Windows GUI wrapper for ADB that allows APK install, update uninstall and pull/download to desktop. Supports rebooting ADB devices, custom ADB Shell commands, remote control of an Android device with scrcpy and video recording of the remote session. Integration with ngrok Internet cloud relay...
flakie.co.uk
Direct download:
https://flakie.co.uk/downloads/FlakieADBGUI.zip
There is a GUI for the common ADB commands and an integration with scrcpy (as in version 1)
It now has an experimental option to use ADB and ADB Shell commands by typing/pasting them in.
Works quite well (mostly).
It also has an integration with ngrok.
This allows you to securely control a Firestick through the Internet (or other ADB device) without any port forwarding on a router.
A full guide for ngrok use, with screenshots is here:
Using ngrok (to access a remote Firestick 4K) - Flakies Blog
We can manage a Firestick 4K (and other android devices) using ADB. This is an app/service that is run from the command prompt, by manually typing in the ADB commands.This can be done on the local network (LAN) or on a remote network (WAN) via the Internet.I am going to show two methods to...
flakie.co.uk
A simplified text version of the instructions is here:
https://flakie.co.uk/downloads/configure-termux-and-ngrok.txt
Once you have become familiar with the process it can be completed in about 4 minutes.
Cheers
Click to expand...
Click to collapse
Why disabled ADB shell in your GUI and disabled backup of apps also?
just by streaming some thing remotely (scrcpy) and not able to use remote ADB Shell is useless !
Troubleshooting won't work without shell commands,
Port forwarding works great without your ngrock app ! Tunnel is of no use,
Why pay ngrock to use shell in your App, when ADB shell is available freely over USB , Wifi and port forwarding with fire stick 4k.
Thanks and regards
Subhash India
subhash_india said:
Why disabled ADB shell in your GUI and disabled backup of apps also?
just by streaming some thing remotely (scrcpy) and not able to use remote ADB Shell is useless !
Troubleshooting won't work without shell commands,
Port forwarding works great without your ngrock app ! Tunnel is of no use,
Why pay ngrock to use shell in your App, when ADB shell is available freely over USB , Wifi and port forwarding with fire stick 4k.
Thanks and regards
Subhash India
Click to expand...
Click to collapse
ngrok free works well (and the app is setup to use the free version) and of course you can use port forwarding if you want to. Nice to have the choice and nice not to have to have to use port forwarding which is less secure.
No-one forces you to use the app or ngrok
Or you could write your own.
Cheers.
fragtion said:
This is cool
my wishlist:
1. be able to save multiple adb ip addresses
2. be able to launch cmd window with shell instead of being forced to use shell in the app
Click to expand...
Click to collapse
1. You can save as many adb profiles as you wish
2. Was thinking of this be then you could just open a cmd window in any case. Might consider it further
The next version has a few more features but I am a bit too busy atm to finalise it. Still hope for it to be released at some point in the summer.
This is such a great tool! Thank you.
May I ask can I use it to clone a Firestick? I have a 4k Firestick and have just bought a 4k MAX. The key application I'm wanting to migrate is Kodi 19.3 and all my addons and settings. Most other apps are standalone or near enough to standalone.
If anyone has any pointers or even a procedure document it would be fantastically appreciated.
Thank you.
Dands said:
This is such a great tool! Thank you.
May I ask can I use it to clone a Firestick? I have a 4k Firestick and have just bought a 4k MAX. The key application I'm wanting to migrate is Kodi 19.3 and all my addons and settings. Most other apps are standalone or near enough to standalone.
If anyone has any pointers or even a procedure document it would be fantastically appreciated.
Thank you.
Click to expand...
Click to collapse
I wouldn't mind the ability to use adb backup and restore too for app data.
Flakie said:
A simplified text version of the instructions is here:
https://flakie.co.uk/downloads/configure-termux-and-ngrok.txt
Click to expand...
Click to collapse
Is there an updated link for this please?
brentonv said:
Is there an updated link for this please?
Click to expand...
Click to collapse
Sorry file had been deleted in error. Should be back up now.
Flakie said:
Sorry file had been deleted in error. Should be back up now.
Click to expand...
Click to collapse
Thanks so much mate
Off topic I'm also looking for the 4k mantis & extra files. Could you please fix that too?
Much appreciated
brentonv said:
Thanks so much mate
Off topic I'm also looking for the 4k mantis & extra files. Could you please fix that too?
Much appreciated
Click to expand...
Click to collapse
Should be back too now.
amazing app, wanted to say thank you and I'm puzzled why more ppl in the forum arent talking about this
I was so happy someone made a GUI version but the most I was looking for was ease of file transfer. Can you please add sharing files using your GUI?
God i would love to see v3 out of beta and give a fire tablet toolbox toolset