[Think Tank] Running NZBGet on android via linux command line and webgui - Nexus One Android Development

NZBget is an open source usenet binary downloader, similar to sabnzbd or hellanzb, with one exception, it is written in C++. It also has a web interface.
The publication of a decent multi codec video player like vplayer alpha has given us the ability to play a lot of content, now nzbget would be a nice way to get this content like trailers and stuff directly onto our devices.
Nzbget can be cross compiled to run on an ARM architecture CPU.
My question is about the libs required for it to function:
1 Zlib
2 Libxml2
3 Openssl
4 Libsigc++
5 Libpar2
6 Curl
Are these available to run in the linux environment that is the foundation for our devices?
What would it take to get them running?
Would this even be remotely interesting to anyone other than myself?

Probably just you. There are ways to search for files, dropbox them, or other way to send them to the watched folder, download them on the computer, then view them remotely rather than through 3g.
I see downloading on the home connection far better than using 3g.

better sure, but not as convenient!
There have been times when I had nothing but my phone and no computer available. Something like this would have allowed me to get some media to watch.
Probably a very niche usage case though.

Hmmm... youtube comes to mind for trailers and such =/... anything else you could use a torrent remote and setup an FTP server with access to your download folder and secure it. If you really want NZB stuff... you could get it using an automated NZB retrieving program like hellanzb. Then do the same type of thing. You could then have media stored on your computer at home and DL what you want via FTP when you want it. Honestly, haven't used NZBs in a long time =/... torrents are so much... better. Just my opinion though.

im interrested in, if you have a working binary that run on android please give me.

Related

[Q] Is there Java for Android?

Title says it all..............
theandies said:
Title says it all..............
Click to expand...
Click to collapse
Yes. It is on every single Android device ever produced.
Java is the language used to write Android Apps.
see http://developer.android.com/index.html
and to quickly see the use of java see the tutorials at http://mobile.tutsplus.com/tutorials/android/learn-java/
Then why can't my browser run java scripts? Is it the browser I'm using (Boat)?
I ask because there is a web page I use at work that requires the IE Java plug-in but it will not run in my tablet. I do realize it may be a security thing on our network but the page loads and it allows me to log in (it always makes you log in on this web page). It renders some of the page but not all of it. It may not be a Java problem at all it's just behaves like IE does when the Java plug-in is not the latest version.
Thanks
Edit - I'm reading up on this as I am not a programmer but would like to know more about Android. Maybe someday an Android noob like me will know something.
theandies said:
Then why can't my browser run java scripts? Is it the browser I'm using (Boat)?
I ask because there is a web page I use at work that requires the IE Java plug-in but it will not run in my tablet. I do realize it may be a security thing on our network but the page loads and it allows me to log in (it always makes you log in on this web page). It renders some of the page but not all of it. It may not be a Java problem at all it's just behaves like IE does when the Java plug-in is not the latest version.
Thanks
Edit - I'm reading up on this as I am not a programmer but would like to know more about Android. Maybe someday an Android noob like me will know something.
Click to expand...
Click to collapse
What's the URL. I suspect it's not exactly the Java plug in. JavaScript (which is completely different from Java) works fine Boat and all other browsers.
chamberc said:
What's the URL. I suspect it's not exactly the Java plug in. JavaScript (which is completely different from Java) works fine Boat and all other browsers.
Click to expand...
Click to collapse
That makes sense. Its an internal company URL. My company laptop died today and I'm using my Prime for work . It works great for email etc. Only this is not working. I'd ask my IT guys but they'll just brush me off since they don't support anything that is not authorized by them.
theandies said:
That makes sense. Its an internal company URL. My company laptop died today and I'm using my Prime for work . It works great for email etc. Only this is not working. I'd ask my IT guys but they'll just brush me off since they don't support anything that is not authorized by them.
Click to expand...
Click to collapse
Maybe your work laptop has security certificates installed on it.
theandies said:
Then why can't my browser run java scripts? Is it the browser I'm using (Boat)?
I ask because there is a web page I use at work that requires the IE Java plug-in but it will not run in my tablet. I do realize it may be a security thing on our network but the page loads and it allows me to log in (it always makes you log in on this web page). It renders some of the page but not all of it. It may not be a Java problem at all it's just behaves like IE does when the Java plug-in is not the latest version.
Click to expand...
Click to collapse
When Internet Explorer and other desktop browsers use the Java plugin, they are using the Java Runtime Environment (JRE) provided by Oracle. The JRE is also known as the Java Virtual Machine. Android devices do not have the Oracle Java runtime. While most Android apps are written in Java, they are based on the Dalvik Virtual Machine, which is a mobile-specialized Java platform that runs Android apps, but not the web-based applets that are designed for desktop browsers. Due to Oracle's lawsuit against Google for allegedly using Java code without permission, it is unfortunately quite unlikely to see the JRE running on Android devices anytime soon. Besides, most of the web is slowly getting away from Java and Flash, and transitioning to HTML5.
So in short, Android does have Java, but just not the kind you're looking for in this particular case.
So is there a way to use it?
I tried to upload a bunch of pics to FB using the standard web page and it wouldn't pop up a window to access the file system.
I like the tablet/dock netbook concept a lot, but it's annoying to still need my laptop when trying to upload a bunch of pics.

[Q] A new Atrix OS with open Linux installation.

Hello XDA Developers!
tl;dr I need either a solid, light OS replacement for Android 2.3 on my Atrix, or I need a video streaming and virtualization app with no lag that works between android devices and either windows or linux desktop.
First I'd like to say how impressed I am with you folks. Massive amounts of work most be done on a regular basis, and so I tip my hat to you in thanks for looking at my potential problem/question.
I've got two devices that I'd like to make some serious software changes to, one of them my Atrix (the other is a Flytouch Tablet ARM11 with Android 2.3, but that's for a different forum). Let me start by saying that I like to think of myself as very technically literate, but when it comes to linux I just don't have nearly as much experience as I do with windows/mac, and it is about to really show.
What I want to do is load a light Linux OS on these devices. Normally, if I was going to install a new windows kernel on a machine I would copy an ISO to a USB thumb drive and make the drive bootable (using the MS program Windows 7 USB/DVD maker), then startup the PC and either through the BIOS or by hitting the proper button during the startup sequence I would ask the PC to boot into the drive and begin the installation.
Questions:
What is the image file type for mobile OS's?
How would one choose the right type of linux OS for an Atrix?
What is the difference between flashing a ROM and installing and OS?
Why is it when I updated my phone recently that it became unrooted?
(and) Is there any way to revert this process to make rooting easier?
Is there any way to capture a video output (like a stream) and broadcast it to these mobile devices so I can avoid changing their software alltogether?
(and) Could I just remotely control another PC from the mobile device, letting it do all the actual computing?
Can I use the Webtop Dock as a monitor for my desktop if I can find the proper HDMI cable to connect it to the HDMI output on my desktop video card?
(and) Can I also connect the Micro USB and use the keyboard/mouse (hooked into my desktop motherboard) on it as well?
(and finally) Can I use my Atrix as a prototype omni-tool by docking it in a docking station, attaching various tools that work with a linux operating system (wide-spectrum ultrasound imaging, temperature monitors, vital monitors, electronic laser saw (USB) (with separate power attachment of course) and extendable, movable USB cameras?) and then strapping it onto my wrist with a cool leather bracer design?
My end-goal is to have all three of these devices on the same network, with the ability to seamlessly access my data between them. For example, if I'm working on a document, I'd like to be able to access the document in a document editing program across all the platforms (imagine google docs with multiple users) however with one MAJOR stipulation: I'll be on a local network with NO INTERNET ACCESS!
Briefly (to better help you understand just what I'm trying to do) I am a freelance archaeologist/deep sea explorer/ROV tinkerer about to do a series of surveys mostly by myself in some VERY remote locations. I'll have a Wi-Fi network to link all of my devices together running out of my boat, but it's only for data sharing between each other, and since Satellite Internet is a joke, I can't think of any way to get data out there, and I've decided to live without it while I'm away.
I have a webtop dock for my Atrix, and the environment developed by Motorola is far too restrictive. I've tried countless fixes to try and get the webtop2SD to work, but I must be doing something wrong (Maybe the latest update screwed it?). I think since I'd like to use some linux applications while on the mobile devices, I would rather install a custom OS for both.
OR (preffered)
Even more simply, I'd like to stream the video feed and remotely control my desktop PC (located on the boat) on the mobile devices, but with yet another stipulation: I can't have FPS lag (I usually get 1-2 FPS with all the virtualization and remote control apps I've tried). This would in some senses be the preferred option, since I really don't want to spend oodles of hours trying to get some program to work in a difficult, restricted environment like these mobile device's current OS's. Is there a good, non-lagging version of desktop virtualization for Android OS?
About that webdock: I can't seem to find a female-to-female micro HDMI cable anywhere on the internet, thought I did find one Micro HDMI extension cable, and bought it promptly. I could buy another, but cut the male ends off and splice the female parts together (**** just got kinky). But if I could, would this work?
Phew that was a lot! Again thanks so much for thinking for me!
I've personally never found any kind of remote desktop software that works without lag, but it might be possible to find some. Someone else might know what to tell you there.
After doing some basic searching, the only collaborative document solution that I've found has been Etherpad Lite. You could set up a desktop or laptop running linux as the server, and all the other devices on your small network could (theoretically) run a browser based client similar (but far less advanced) than Google Docs. This way, everything on your LAN/WLAN could access the application, if it's stout enough to support your needs.
https://github.com/Pita/etherpad-lite
http://en.wikipedia.org/wiki/Collab...Real-time_collaborative_text_editing_software
Everything you're looking for just seems to be limited for Android, I wish you the best of luck.
I have always found Teamviewer great for remote PC control from my Atrix. They have a nice app and free license for home/personal use. I get minimal lag controlling my PC at home when at work, but that's over WiFi. Not very fast and pretty laggy if I am on data with my Atrix.
BTW............I can work on documents, transfer files to and from PC's and laptops, print documents on my wireless printer, etc. across my home network from my Atrix, all routed through a Netgear WNR3500L running stock firmware (dd-wrt actually slowed my network down and reduced WiFi range considerably, so I reverted to stock).
First, there is no "magic" within the lapdock device. It is a nice HDMI screen, a couple crappy input devices on the USB side, and a battery. The standard Moto software does recognise the usb device and do some software magic, but certainly you could use the dock on it's own w/o the phone.
As to completely replacing the /osh webtop OS that Motorola provides, that is challanging.
There are 2 basic ways to open it up though. Go to the developers subforum and look for webtop2sd and "full Debian".
Somebody did post recently with an attempt to fully replace the webtop OS. he was using gentoo, so look for that and you should find it. But I suspect it is early, and likely to be a significant WP.
As to learning all this ****. If you do some Linux developement or heavy hacking (which it kind of sounds like) you should set up a full full blown 'droid dev platform and start playing. It is big and bulky, but you will learn faster that way than just searbhing around.
EDIT: just reread your post that you are light on Linux. if you want to do anything more than just follow along, it might be a good idea to setup something like an Ubuntu and get familiar there. 'Droid is way different looking (it really basterdises things around) but yoiu need to know both if you want to play with webtop hacks.
Thanks all. I'll look around again to see if I can find the threads you mentioned. I've tried Webtop2SD but to no success so far.
Thanks again.

VNC + VirtualBox = Full OS on your phone

I'm probably not the only one that has done this,but yesterday at work I setup a headless Windows XP VM with virtualbox on a computer,and used RealVNC Viewer on my phone to login remotely,and it worked pretty well. Our service order system does not display correctly in mobile web browsers (even the ones you can set to view in desktop mode),so this was an interesting alternative. I didnt specifically do this for my phone,but more or less to see how it would work on a bigger tablet. I used RealVNC,which is a paid app,but its definitely one of the best ones out there for this setup, more on that at the end.
Anyway,heres a few pointers if anyone wants to try this out.
1. Install virtualbox (and the extension pack),install your favorite guest OS and install your favorite VNC server (I just used TightVNC for the server as well). Also, shut down the VM and change the network type from NAT to Bridge (so it gets an IP from your network). Start it back up, get the IP address and shut it back down.
2. With the VM off,start it back up in headless mode:
My host OS was windows 7,so I created a batch file in the VB program files folder and added this:
Code:
VBoxManage startvm "VM name" --type headless
Then I made a shortcut to the batch file on the desktop.
the command is same for linux,but you can run it from any terminal directory I do believe
3. Give it a min to boot up,then adjust the resolution with:
Use this one time command,adjust the values if necessary. I created another batch file to run this command,then changed it for the next command we have to run.
Code:
VBoxManage setextradata global GUI/MaxGuestResolution 1920,1200
that will allow VirtualBox to globally use any resolution up to 1920x1200,but it wont actually change it,that is what the next one is for,this changes it on the fly:
Code:
VBoxManage controlvm "VM name" setvideomodehint 960 503 24
for best usage,disconnect and reconnect from the phone when changing it on the fly,RealVNC didnt exactly like the resolution changing while logged in.
Now with the RealVNC viewer,it keeps the notification bar at the top,so you cant exactly use it full screen,so thats why its not 960x540.
The realVNC app for 9.99 is worth it,all the other remote apps I have tried are either slower,or had dumb control schemes. This one seems to work the best. Also,I have never used the built in remote display function,so I dont know if it would work any better or not.
I had very minimal lag with 24 bit color on the phone,this method will work on any android device,you just have to figure out the maximum resolution to use without having to pan the screen. Obviously this will work great at home or at work using wifi,but not that great using 3G service.
thats pretty bad ass. For the Tegra 3 crowd, such as myself, Splashtop THD is more than just for gaming, again, it is paid like RealVNC, but the best part about it is it runs nearly lagless. Give it a shot if your hardware supports it

Beam links/youtube videos to any device from your Windows Phone

##FREE VERSION NOW AVAILABLE. LOOK BELOW FOR LINKS
Check out the new app BeamLink. It allows you to beam links(youtube videos, blog posts, pdfs, ebooks etc.) from your Windows Phone to any device with a browser. That's right, IPADS, ANDROID TABLETS, WINDOWS TABLETS/DESKTOPS/NOTEBOOKS, SmartTvs, PS3, XBOX360, Mobile Phone and just about any device with a browser. The best part is that Absolutely no set up required. Just point your target device's browser to 'beamlink.in'.
Description from the Store:
THE COOLEST AND QUICKEST WAY TO BEAM LINKS TO YOUR OTHER DEVICES
Are you always watching videos and reading webpages/blogs etc. on your Windows Mobile?
Do you often wish that you could read/watch your links on devices with bigger screens like tablets/desktops/laptops or smart TVs?
But, you don't want to go through the effort of finding that specific webpage/video again?
Well, BeamLink to the rescue!!
All you have to do is open 'BEAMLINK.IN' on a browser and you can 'send' all kinds of links including videos from youtube etc. to it.
NO SETUP REQUIRED! NO ADDITIONAL SOFTWARE REQUIRED!
All you have to do is download the app to your Windows Phone.
Steps:
1) Copy the link you want to beam from your Windows Phone.
2) Open the BeamLink app and use the paste option.
3) Open beamlink.in on the target device's browser and scan the code.
4) Voila!
Note: You can even type a URL to beam. A history of shared URL's is maintained for easy resharing.
SINCE I CANNOT POST LINKS. PLEASE SEARCH FOR BEAMLINK ON WINDOWS MARKETPLACE
I have migrated to a better server to handle the increased users. QR CODE ERROR will occur for a few hours. I'm working on getting it up and running. Sorry for the delay.
*****NOW WORKING******

Finding packets and IP from decompiled APK?

So I'm working on a project on making an online android game work on PC from packet sending / receiving. Limited graphics.
Basically all packets are sent in a very unencrypted way, using very easy text and integers.
Easily picked up from packet sniffing, IP, Data etc. However, return results seems to be encrypted according to some packetscanning application for android. Unsure as packetscanning for android seems a bit meh. As I cannot get the game to launch thru bluestacks as hardware is listed as "Unsupported", I cannot find out for sure. Else I could have gotten more data and from that and could just have made the entire game based on the scanned sent/recieved packets coming from bluestacks. However the game also sends login info with each packet similar to
SendPacket(RetrieveResources,xxx,yyy,date,time,username,authid)
Username and authid is based of android hardware ID, which could easily be recoded into the java application.
But then I cannot find how it bases the authid and username of hardare id. Or how the application tells the server to create a new user.
Now, Myself I am an Java developer, however as I've never worked on Android applications previously this stuff is zzzz compared to real Java. I've managed to get about 99% source code from decompiling, deobfuscating and extracting the .dex file inside the application.
However, here's where things just go into full wtf-mode. I've extracted over 200 .class files into their correct folders and such, however, as confusing as this is. I simply cannot find how the game functions, or where it stores the IP and such, is it stored in an offsite .xml file? Storage file? Database? Resource file? Browsing through unlimited lines of scrap code, that seems irrelevant to the game, Facebook connections, Amazon, Google play purchase, Crittercism, GooglePlay classes etc. But noone of them actually seem to hold any useful data and alot of stuff actually just seems to be "Drag and Drop this into your application then call functions from it" like, "Authenticate to Facebook". I've managed to find alot of things loading .obb files, that doesnt seem to exist at all, tho the game pretty much goes "!blabla.obb" "CreateObb();" The game does not exist on facebook at all, just uses it to recieve ProfilID as an Login ID.
The game also uses UnityPlayer which seems to be the "Launch" class, which I've browsed thru but found nothing relevant. I found alot of .classes that seems similar to each other aswell containing the same stuff. I've also found alot of stuff that actually seems to be packet sends and connections, however, there is nothing that points that it is towards the game, but rather connections for i.e google play services.
Biggest .class>.java file is about ~40kb. Which for mee seems small, as projects I usually work with is well about 10mb inside the main.class then calls for unnecessary stuff from side classes.
Anyone mind pointing out on how android applications handles connections?
Is the files really no bigger than 40kb and just scrambled into tons of subclasses?
Feels like I'm missing obvious stuff that should be right there declared as a variable, but I can't find it.

Categories

Resources