How to use a certain Linux App in OnePlus 8 Pro Oxygen OS (rooted w magisk | edexpose - OnePlus 8 Pro Questions & Answers

I've looked around on stack overflow and other places trying to find answers. I have software I want to install on my phone so I can more easily chat, send files, links, etc. on LANs that I work within throughout my day. This program works well for me: https://www.beebeep.net/download
I can use this on my windows and linux boxes. I want to integrate my phones into this communications array.
I'm looking at the snapcraft or any of the other linux variants. I can't figure out how to run a linux app on droid.
I can ssh through the terminal and so on. I can perform other functions that one normally does in BASH though now that I think of it, I haven't tried crontab. Anyway, how could I get this BeeBeep script to work on my android? Can anyone help solve this problem?

I have not seen anything on this, but very interested in this Linux development...
I did see an XDA section for only Ubuntu Touch...

I don't know about direct onto android but apparently it can be done to Chromebooks and I know that android apps can be converted to work on Chromebooks too so perhaps it can be reversed?
https://www.androidcentral.com/how-install-linux-apps-your-chromebook
So basically if an app could be converted to work on a Chromebook could it then be further converted to work on Android?
Seems like a long shot but you never know.
I've seen Windows apps / games work on Android, I've had Wolfenstein, quake arena and doom 3 ports on my phone so I would assume that Linux being a much closer cousin to Android would be an easier chore.
What you need is a framework to do the work for you, not to emulate but to directly port..
Can't find much online but I think if you dig enough you may find something
Certainly interesting though, best of luck pal.

If I find something, I'll post in development. This is a backburner project, but clearly it's one I need to take on myself. Thanx for your responses.

Related

what type of files can be ported now linux is on the g1

heya,
I was looking around the forums and i found this -
http://forum.xda-developers.com/showthread.php?t=422606
It was a port of warcraft 2, i saw a video of it in action and it looked amazing. I was wondering do you think anytime in the near future we will be seeing anything like this on the g1? i know a port of linux is on the g1 but will that open windows to more ports like this?
munky.
Since the source of doom has been out for a while now, it could be done pretty easily. Warcraft? Probably not. Although, I'm sure we will be able to boot into windows mobile eventually from our g1s.
crackmunky said:
i know a port of linux is on the g1
Click to expand...
Click to collapse
The G1 runs Android, and that has always been built on Linux. What is required to get Linux apps working is a mix of providing the environment they expect to run (e.g. if they are expecting to draw to a window manager, or if they need opengl, etc), adapting of controls, and tweaks to get compiling with arm.

So many question, so little time.

Hello all,
I am new to the Android scene and I wanted to find out if there are any good tutorials on app/rom development, what are the programming languages used, etc... I know learning from scratch is probably a long and bumpy road, but it is something I am interested in. I have already rooted and flashed my phone, good times that was. Thank you all for your help.
Th3Cap3
What's your existing programming experience? You could do worse than check out the anddev forums. App development is principally in Java though you can write parts of apps in C or even assembler.
My existing programming consist of very very very basic python, and some web stuff like HTML and CSS, I would basically have to learn how to program the ones you have mentioned from scratch, I have books for most of those though. I will go check out those forums and see what I can dig up Thanks for the info.
I bookmarked that page thank you, I just got a hold of their Eclipse software and all of their beginner tutorials I can't wait to dive into this stuff.
Me too. I know C, but only have a passing acquaintance with Java & Linux; Android I know even less about, not having encountered it till getting my Hero in February. I'm working my way through Thinking in Java (Eckel) to be followed by Professional Android 2 Application Development (Meier).
Even if your grasp of Python is basic it's still a start - you don't have to struggle again with fundamental procedural programming concepts like conditional execution, program flow control & so forth. Plus Python is an OOP language, aiui (I don't know Python) so you have a head start there too
I've installed Java, Eclipse & Android's SDK on this Windows box, but I'm thinking of dual booting Ubuntu as some things just work better in Linux, especially if one wants to cross compile ROMs. Aiui Cygwin, which I already use, can be a little problematic & when one is likely to be asking for help at times, it's useful to be using a similar set up to most devs.
I have been thinking about dual booting again, I just havent had to time to partition my drive and install some sort of linux release, UBuntu is the one I am most familiar with, which isnt very, but its a start.
I am going through those video tutorials from anddev.org right now, it seems to be similar to Python in the way the coding is done, I am excited.
I have also downloaded the Eclipse program, but I have the pulsar version, it seems to be geared more towards mobile development and I have gotten the Android toolkit installed and I have had the Android SDK from when I rooted my Hero (Which is awesome, running the newest Damage Control) good times.
I think I may have a java book on PDF somewhere as well, I will have to go look.
Atm I can't make up my mind between dual boot & Virtual Box, or maybe both, to see if I can wean myself off m$
I have been thinking about the dual boot option a lot since you mentioned it, not sure what to do, I may wait till this quarters class is over so that if something goes missing. it Sony be a big deal
Sent from my HERO200 using the XDA mobile application powered by Tapatalk

Replicate phone environment on PC?

Hey, I am entirely new to Android development. Is it possible to run Android OS inside a VM Player on my PC running Windows 7? I've done this with several flavors of Linux, but I dont know enough about how Android operates.
I'm not talking about just a development sandbox... a fully-functional installation of Android with networking capabilities would be the goal. Does anyone have experience with this?
First one with helpful answer gets a free iPad!!*
*some restrictions apply
----
EDIT: seriously, has nobody ever done this
Yes - see http://www.android-x86.org/
You can download a live cd version of Android compiled for x86 machines, and install it in your VM of choice. - Just pick Linux 2.6 as the host OS when creating your VM
(Though the Android emulator that comes with the SDK is pretty much fully functional, too, and more representative of an actual phone, since it's running Arm instructions rather than x86)
Cool, thanks for the tip
I havent played with the Emulator yet, or really gotten my hands dirty. Does the emulator just allow you to test your program, or does it emulate the entire OS- destop, applications, settings and all?
What I would really like to do (not sure if possible) is to do all the configuration for my phone OS via my PC, then just save the image and copy it to the phone. Starting to think this might not be easy
SilverStrings said:
I havent played with the Emulator yet, or really gotten my hands dirty. Does the emulator just allow you to test your program, or does it emulate the entire OS- destop, applications, settings and all?
Click to expand...
Click to collapse
The emulator in the SDK gives you pretty much a full phone environment (It's missing stuff like the google branded apps, but there are ways around that...)

What do you use to develop with?

I have been trying to learn how to do some android development for work and keep running into problems. I find it hard to believe that people are able to create a lot of these apps with the Google development tools in such poor condition.
I have set up a development system with eclipse and the android tools. One of the first problems I ran into is ADB crashing whenever I tried to debug and there was a device attached to the system. Didn't matter if I was trying to debug on the device or emulator, ADB would crash. I was finally able to get the problem fixed by using the Composite ADB interface driver instead of the plain ADB interface (would it really hurt Google to add one sentence to the directions to tell people this?)
Now every time I go to debug, the emulator comes up in Chinese/Japaneses. I type in English and it converts it. I can fix it by changing the input method, but I have to do it every time I start the emulator. I have Googled looking for a solution and have found this is a known problem that has been around for almost a year and there is no resolution with it. The bug reports I have found on the android site even lists them still as NEW!
When trying to debug a problem, I wanted to delete the shared preference file for the app as it seems like it had become corrupted and every time it went to read it, the app would force close. (And when this happen, the debugger perspective would come up but for the life of me, I could not find any information as to what caused the fault or any sort of stack trace to look back and see where in my code it failed).
If you are an app developer, are you running into these issues? Have you found ways to work around the problems? I just can't believe that this is the way people develop for this platform. I'm ready to tell my boss that we forget about the platform unless we can find some stable development tools, otherwise we will be spending more time fighting with the tools than working on the app.
If anyone has any suggestions, I would really like to hear them. I'm not a noob when it comes to software development (20+ years as a software engineer), but I have never seen development tools for such a major platform, be this poorly done. What am I missing?
I'm a professional developer as well too. 20 years or so as a C/C++ developer, but I've worked most of my career as a Unix developer. Naturally, I use linux where possible and my Eclipse setup on Gentoo linux is pretty stable. I tried on Win7-64 but it was buggy as heck. I believe that the problem is with Java. There seems to be so many ways to set it up wrong that I'm not sure you can set it up right under windows.
I find it ironic that Oracle is trying to sue Google for making a JVM that actually works!
I havent had any of your mentioned issues. I am running eclipse on a 32 vista machine and a 64 bit windows 7 machine.
Not sure what I may have done different that you for setup. But I followed the Android application development for dummies book. The author goes step by step of what to download and how to install and configure. Even though your software experience is way beyond this book maybe its worth picking it up to read the install notes.
FreeTheWorld said:
I havent had any of your mentioned issues. I am running eclipse on a 32 vista machine and a 64 bit windows 7 machine.
Not sure what I may have done different that you for setup. But I followed the Android application development for dummies book. The author goes step by step of what to download and how to install and configure. Even though your software experience is way beyond this book maybe its worth picking it up to read the install notes.
Click to expand...
Click to collapse
I picked up the book, "Sams Teach Yourself Android Application Development in 24 Hours" and it has a section for setting up the environment too. Followed it to the letter several times and always had this problems. I think the issue comes down to the books were written using version 6 and 7 of the SDK and the current version, 8, has introduced some problems the books don't cover. For example, the tools directory has been split into two directories, tools and platform-tools. When you first download the SDK, you don't get everything you had like before until you update the SDK.
I have talked to several other people who also had the problem with the ADB crashing like I did, even started a thread here about it. No one could get any help anywhere on resolving the issue. I think the problems I have that others don't see is because they started with an earlier version of the SDK.
Gene Poole said:
I'm a professional developer as well too. 20 years or so as a C/C++ developer, but I've worked most of my career as a Unix developer. Naturally, I use linux where possible and my Eclipse setup on Gentoo linux is pretty stable. I tried on Win7-64 but it was buggy as heck. I believe that the problem is with Java. There seems to be so many ways to set it up wrong that I'm not sure you can set it up right under windows.
I find it ironic that Oracle is trying to sue Google for making a JVM that actually works!
Click to expand...
Click to collapse
I have also setup the development platform on a linux system and haven't had the problems I have with Windows 7 64bit. I also feel a lot of the problems have come from the Windows 64bit platform and even windows in general. I tried installing on a clean 64bit and 32bit Windows 7 and was still having the ADB problem. As soon as I get my tax refunds, I'm going to get a work desk setup at home so I can try using my linux system (it sits on the floor with no monitor and is my network server). Boss will really love it if I tell him we have to set up linux platforms to develop on. Guy is a bit of a tight wad when it comes to equipment.
edboston said:
If you are an app developer, are you running into these issues?
Click to expand...
Click to collapse
Nope, I didn't have any stability problems with SDK. I use linux 32-bit, didn't try to work on a Windows, MacOS and/or 64-bit arch.
I've not seen any of your problems, either.
FYI, I followed these instructions to set up the env:
http://developer.android.com/resources/tutorials/hello-world.html
(Environment - WinXP/32 netbook)
Eclipse is buggy. The most annoying issue with it is that the auto complete freezes your computer at times.
An alternative is IntelliJ. They offer a free community addition. I work with one dev that swears by it.
I use Windows7x64 and Ubuntu 10.10 to develop my apps. I use IntelliJ mostly because I find Eclipse to be convoluted overcomplicated mess. I think the Android integration in Eclipse is better, especially around editing some of the key XML files but I despise how projects are organized in Eclipse.
The OS you use really doesn't matter the results are the same, once you're up and running the work will be the same so the OS becomes irrelevant. The IDE becomes the differentiator.
I haven't met with the issues you mentioned, but as you said it can be because I installed the sdk a long time ago (after google anounced the eclair). I'm using eclipse and yes, that program is full of bugs, but I read an article about developing for android in Netbeans (my personal favorite). You can read it here: http://androidportal.hu/2011-01-09/fejlesztes-androidra-netbeans-segitsegevel (it's hungarian, but google translate is our friend)
Sent from my GT-I5700 using XDA App
MotoDev Studio 2.01
stick to 32-bit Galileo
for the slow autocomplete problem, I've made sure to use eclipse Galileo, something in Helios was causing massive lag. Also make sure you're running the 32-bit version of eclipse, even if your machine is 64-bit, there are definitely some bugs last time I tried to install ADT on 64-bit eclipse.
the new tools directory was a bit of a pain after updating to the latest API but nothing too bad once you figured it out.
I haven't had many of the other problems you mentioned. I always debug with adb logcat from terminal, and you can always hop into the device with adb shell.
I use eclipse every day at work so I've kind of gotten used to all the little quirks. I had the chinese text problem with the emulator, but I do most of my testing on a real phone. I use the emulator just to try out different resolutions.

Wine on android x86?

So, as I've been thinking about Intel's announcements about medfield atom powered android devices, and the pre-existing android x86 project. I've previously asked the question if you could load windows 7/8 onto an android x86 device, and the answer was, pretty much yes, as long as there are drivers. But running windows isn't that great of an option for a mobile device, so i dug around and saw WINE, which i had forgotten about. From what i've learned, it requires X11 library support on the OS for windows programs to run. Android does not support X11, which stops WINE from being able to run on android X86. Now, with android (and, apparently X) being open source, surely there's a way to build enough of it into android so that WINE can run? One of, say, the x86 android tablets intel and motorola agreed to make would be amazing if a custom ROM could be created to be able to have some support for X, and therefore run WINE.
Now, i'm no dev so i have no idea how difficult (or not) this would be, but it seems completely possible, and it also seems like a much preferable alternative to any metro-haters.
(and yes, i've seen this, i consider it worthless to run an emulator in an alternate OS on a phone. i'm looking for native support.)
Please, don't troll, flame, report, or anything else i know you all love to do. I just wondered if this actually is possible - seems like it should be - and what work would have to go into it to get it to work.
thanks to anyone who can help answer!

Categories

Resources