[Q] portable development install on USB stick - Android Q&A, Help & Troubleshooting

Is it possible to install everything you need for app development (Java, Android SDK, eclipse, etc) on a USB stick or some other portable media? So that I could develop anywhere I go?
Has anyone done this yet?

I think the android sdk would be possible as well as an ide, but java needs to be a specific version for what os you are going to be running the vm on. Like one for linux, osx, and windows
From something awesome

What about a bootable linux distro on a usb stick with everything you need : java sdk, android sdk, and an ide
Plug, boot, and develop
From something awesome

killersnowman said:
I think the android sdk would be possible as well as an ide, but java needs to be a specific version for what os you are going to be running the vm on. Like one for linux, osx, and windows
From something awesome
Click to expand...
Click to collapse
so I take it this hasn't been done?
I guess I should look into maybe running a vm from a usb stick so I can get the java sdk to work.
I don't like the idea of a bootable usb stick.

Running a VM from a USB stick might be somewhat slow, but it should work very well. Just make sure to enable all of the USB and internet options for the VM

Kronia said:
Running a VM from a USB stick might be somewhat slow, but it should work very well. Just make sure to enable all of the USB and internet options for the VM
Click to expand...
Click to collapse
yeah, i'm reading about vm on usb stick. Maybe I shouldn't do that.
What is so hard about java sdk on a usb stick? I don't think I need it as a service or to change the registry. Probably all I need is directory to be added to the PATH.

Thats why i think a self contained os, java vm, java/android sdk, and ide would be the way to go. I think it would take away the issues of having the java runtime be separated from the os
From something awesome

sdxda said:
Is it possible to install everything you need for app development (Java, Android SDK, eclipse, etc) on a USB stick or some other portable media? So that I could develop anywhere I go?
Has anyone done this yet?
Click to expand...
Click to collapse
I believe Android SDK technically is portable need to test and for the IDE and JDE you can use this X-Eclipse.

Related

Dev or User - VMware inside Android, Android inside VMware on desktop computers

This isn't a guide, more an informative post and discussion for Android application and platform developers, AND regular users. Maybe a guide in the future will be a goal of mine.
Some of you may or may not know what VMware is, what it is for, or never used it. Trying to keep the OP brief; VMware is a virtualization solution(s) for desktops and servers. In layman's terms it allows an operating system to be run inside another operating system, instead of setting your desktop to dual boot (have an option at startup to load either windows or Mac as example). There are many applications and benefits to this kind of solution that I won't get into in the OP.
Currently there are solutions available and being built, but are not yet completely optimized, but you can do it. For a developer this means you can be developing Android applications or platforms on whatever OS you want by virtualizing the OS and software currently supported. It also means that you can replace the Android virtual emulator with an Android OS inside VMware for application development, but also means you can load your Android platform into VMware for testing while you develop. Why would you want to do this? Well we all know how painful slow the emulator is, and it is just made worse if your hardware is slow. Because the emulator emulates software running on an arm processor inside an x86 environment things are slow, which means your development is slowed. Using VMware however you are using binary translation to "port" your platform to x86 processing. Currently this solution is not completely optimized, or "official" but it will be. That means less development time, more support, and a more convenient option!
The other edge of the sword is also a VMware virtual machine environment inside Android's Dalvik virtual machine. For users, and developers in certain scenarios this opens even more possibilities. Imagine having the ability to use your personal Android, and that pesky dumbed down corporate phone running together, the corporate advice running inside your personal device, or vice versa. Also, the ability to run any other OS in your device. Windows, Linux and UNIX distributions, solaris, Mac, whatever you wish. This opens lots more doors for Android devices.
Now not everything is complete, but it will be. It sounds like VMware will end up and be the de facto standard for virtualization for Android, as the solution is in the works for google to put VMware into the Android core, in the kernel. Now that would be sweet, because if you have used VMware you probably agree with me that it is THE virtualization solution in any application or solution you need it in.
Maybe this isn't as exciting to others as it is for me. What do you guys think? Let the topic begin!
The following links are meant more to cite my sources, but each one of them is a more detailed read into the topic, and well worth reading to inform yourself and see what is in the works:
http://i.downloadsquad.switched.com/2011/02/15/android-dalvik-vmware-virtualization/
http://gigaom.com/2011/09/27/vmware-mobilize-201/
http://www.android-x86.org/
Run ICS in x86!
gborn said:
Currently a thread about running ICS x86 in Virtualbox is spreaded here:
http://forum.xda-developers.com/showthread.php?p=19815659#post19815659
And I managed at least to create a version of ice cream sandwich running in VMware workstation 7 (should run also in VMware player 3 and 4 and in Workstation 8 as well). The steps to convert the Virtualbox image to VMware are described here.
http://www.borncity.com/blog/2011/11/29/running-ice-cream-sandwich-in-vmware/
Click to expand...
Click to collapse
I use VMware and vSphere at work to manage a bunch of our servers. I'll have to check in with the guy at work who actually implements/sells this to customers to see what he thinks. It seems interesting for sure though.
DoctorComrade said:
I use VMware and vSphere at work to manage a bunch of our servers. I'll have to check in with the guy at work who actually implements/sells this to customers to see what he thinks. It seems interesting for sure though.
Click to expand...
Click to collapse
I don't know if it applies to what your doing, but it is pretty cool to be able to use VMware on your mobile device. If you are managing virtual servers there is already an official solution from VMware you can download from the Android market. It is called VMware view, for Android. Pretty cool.
There is a thread currently at top, with 30 people saying the solution wanted is impossible. You are wrong guys, not impossible at all. You can have windows and Android booting on the same device. Arm processor, x86, doesn't matter with this solution.
Sad Panda said:
There is a thread currently at top, with 30 people saying the solution wanted is impossible. You are wrong guys, not impossible at all. You can have windows and Android booting on the same device. Arm processor, x86, doesn't matter with this solution.
Click to expand...
Click to collapse
Nothing is impossible, but where are you going to get a bootloader, Windows binaries, and SoC drivers?
EGOvoruhk said:
Nothing is impossible, but where are you going to get a bootloader, Windows binaries, and SoC drivers?
Click to expand...
Click to collapse
Well in terms of doing dual boot natively, I agree, probably never going to happen...ever. However if you run it in a virtual machine, just like Android runs in the Dalvik virtual machine, it can be done.
The bootloader and drivers are already built and would be taken care of by VMware. You make or hint at a valid point, there would never be enough desire for anyone to do it natively. It isn't impossible, but just would never see anyone take the time to do it
Ice Cream Sandwich x86 in VMware
Currently a thread about running ICS x86 in Virtualbox is spreaded here:
http://forum.xda-developers.com/showthread.php?p=19815659#post19815659
And I managed at least to create a version of ice cream sandwich running in VMware workstation 7 (should run also in VMware player 3 and 4 and in Workstation 8 as well). The steps to convert the Virtualbox image to VMware are described here.
http://www.borncity.com/blog/2011/11/29/running-ice-cream-sandwich-in-vmware/
gborn said:
Currently a thread about running ICS x86 in Virtualbox is spreaded here:
http://forum.xda-developers.com/showthread.php?p=19815659#post19815659
And I managed at least to create a version of ice cream sandwich running in VMware workstation 7 (should run also in VMware player 3 and 4 and in Workstation 8 as well). The steps to convert the Virtualbox image to VMware are described here.
http://www.borncity.com/blog/2011/11/29/running-ice-cream-sandwich-in-vmware/
Click to expand...
Click to collapse
Bingo! Awesome contribution! Yeah this is one of the two examples I speak of, Android running on an x86 CPU (instead of arm like our phones and tablets) running as virtualization of hardware. Great reply to back me up, and even a guide to boot, AND ics!! If you must play with ICS before it gets to evo 3D
Added the ICS in VMware to OP.
I have tried this a few way and in no way can i get it to work on VMWARE gets stuck on found androidx86
Sad Panda said:
Added the ICS in VMware to OP.
Click to expand...
Click to collapse
works fine, just make sure you follow the steps to the t and convert the .vdi images to .vmdk to run smoothly in vmwareplayer (the link to instructions is kinda hidden away)
i used virtualbox to convert, then vmplayer to run the vmdk
thanks for the info... fun to play around with
digitaljeff said:
works fine, just make sure you follow the steps to the t and convert the .vdi images to .vmdk to run smoothly in vmwareplayer (the link to instructions is kinda hidden away)
i used virtualbox to convert, then vmplayer to run the vmdk
thanks for the info... fun to play around with
Click to expand...
Click to collapse
No problemo
heres some links to the vmdk images to work in vmplayer, dont thank me, thank the guy who wrote the guide on converting vdi to vmdk
ICS vmdk
http://www.megaupload.com/?d=FZWH3G20
SD card vmdk
http://www.megaupload.com/?d=15TLJZ87

[Q] Can I develop for my tablet on my tablet?

Basically the title..
Im wondering if there is any sort of android IDE app that can create and manage projects? I use my tablet as my primary pc since I no longer have a computer for the time being.
If there isnt an app, I wonder if it would be possible by booting into ubuntu and compiling code there. Although then Id have no way to run the app, would I?
exploitz said:
Basically the title..
Im wondering if there is any sort of android IDE app that can create and manage projects? I use my tablet as my primary pc since I no longer have a computer for the time being.
If there isnt an app, I wonder if it would be possible by booting into ubuntu and compiling code there. Although then Id have no way to run the app, would I?
Click to expand...
Click to collapse
Both options work. ...
If you know how to work via a shell, you should have a look at http://forum.xda-developers.com/showthread.php?t=1340852. It includes everything to get an android application up-and-running on your device from your device itself. It includes the java compiler, dex, signer, ... even vim as a text editor. Very cool.
Ubuntu works also, but is a bit heavier. You will need at least a giga byte of space. But then you can use most of the usual tools. But I didn't find a working SDK for android for the arm version of Ubuntu. So it's mainly useable to create applications that will have to run inside that Ubuntu. It is also possible to use it with a GUI throug VNC, but I don't feel that it is useable enough for real development.
Good luck ...

How to use eclipse??? Javaw.exe?

How do i use eclipse? It keeps asking for something called javaw.exe?
For some reason the 32 bit version works instead of 64 bit. The adt plugin needs to be installed to use eclipse on android.
ri123 said:
For some reason the 32 bit version works instead of 64 bit. The adt plugin needs to be installed to use eclipse on android.
Click to expand...
Click to collapse
Yeah, ADT plugin connects Eclipse with android-sdk. And you should download developer tools too in order to start projects on Android. Before opening Eclipse, you should install JDK, and set the environment variables.
There are various videos on Youtube which illustrates the whole procedure.
Good Luck!

android apps on linux?

as many of you know, android and Linux kernels started re-merging at version 3.3. People said that a short way down the road, android apps would be able to run natively in linux. the kernel is now version 3.6 and I've heard nothing more about running android apps in linux. people on these and other forums put a lot of great work into getting linux running on android devices. now with windows 8 coming out, the market will be full of both ARM and x86 based touch devices of all sizes and shapes. I for one would love to be able to boot up ubuntu on one of these devices, and use either traditional linux apps or android touch apps as my mood and situation dictate. so- any new word on when we will be able to run android apps in linux?
we are exploring this possibility, and did some work, but nothing to release yet.
I assume you already know that for now, you can run Android as a virtual machine on Linux host.
cool to hear the work is progressing, good luck!
I heard about using a VM but was never able to find where to get it.
nothing substantial yet, we wanted to run android apps directly on desktops, Linux or Windows. Using a virtual machine is really an over kill.
You can download a prebuilt vm from ours:
http://www.vmlite.com/index.php?option=com_kunena&Itemid=158&func=view&catid=9&id=8838
it has been downloaded millions of times. You can search "Android vm" on google to find instructions.
interesed
I am also hoping to see a solution to this question also. I understand that Debian, fedora and Arch Linux all have different packaging systems i always thought is was a smiler difference with android with more Java worked into the core of things. So i would think that adding the proper Java support to any Linux distro to support the apk package it should work but i am not a programmer.

Native Arch Linux

I'm looking for a way to install arch Linux NATIVELY on the touchpad, I tried with kexec and the images available for it and it's all broken, it won't even complete the installation, I also tried this install guide with this image because the install guide uses images that are no longer available to download, but also no luck, there is also this post but the guy said it's really old and the txt file that is in his archive keeps repeating that it's "hacky".
So I really need a nice and modern approach, I know a lot about Linux, just not about porting so if someone wants to try and make a new port and a new installation method I could try to help.
We should really try to do this because it would bring a new life to the TP, imagine running i3-gaps on this beautiful piece of hardware.
Hope you guys can help me and before I post this I gotta say: "Btw, I use Arch".
arrudagates said:
I'm looking for a way to install arch Linux NATIVELY on the touchpad,
That will require a new Kernel and drivers for WiFI, Sound, Touch Screen and any other hardware.
I tried with kexec and the images available for it and it's all broken, it won't even complete the installation, I also tried this install guide with this image because the install guide uses images that are no longer available to download, but also no luck, there is also this post but the guy said it's really old and the txt file that is in his archive keeps repeating that it's "hacky".
So I really need a nice and modern approach, I know a lot about Linux, just not about porting so if someone wants to try and make a new port and a new installation method I could try to help.
We should really try to do this because it would bring a new life to the TP, imagine running i3-gaps on this beautiful piece of hardware.
Hope you guys can help me and before I post this I gotta say: "Btw, I use Arch".
Click to expand...
Click to collapse
The only way that I know that is reliable and works using the lastes Ubuntu, Debian or Arch in a chroot environment.
Click HERE for how to How to install Ubuntu 18.04 LTS Bionix Beaver, armhf on the HP Touchpad Desktop Environment XFCE and LXDE on a partition as chroot.
HP_TOUCHPAD said:
The only way that I know that is reliable and works using the lastes Ubuntu, Debian or Arch in a chroot environment.
Click HERE for how to How to install Ubuntu 18.04 LTS Bionix Beaver, armhf on the HP Touchpad Desktop Environment XFCE and LXDE on a partition as chroot.
Click to expand...
Click to collapse
I mean, that would work, but would require Android and wouldn't be native, I want to have arch and webos, both running native.
arrudagates said:
I mean, that would work, but would require Android and wouldn't be native, I want to have arch and webos, both running native.
Click to expand...
Click to collapse
The kernel is what makes the OS works by providing support for the hardware. WebOS Kernel is OLD and not supported by any current Linux, even LuneOS use the Android Kernel.
Android can be install and keep WebOS, it was a great OS but not nothing current will run on it.
Using the method posted, the most up to date and current Linux distribution of Arch, Debian, Ubuntu and more can all be install on the same Tablet running Android and use any Linux flavor without rebooting.
Android provides a very stable newer kernel that will share the resources with any listed Linux flavors and those built are native arm, runs super fast. If you want it to have all that done natively and not using Android, then the Kernel must be modified and all the "private drivers" ported to the most current version of Linux. The OS can not be updated as Linux will modify the Kernel, breaking everything. But everything is possible, is up to the user how much time and dedication plus the knowledge required to make it work.
HP_TOUCHPAD said:
The kernel is what makes the OS works by providing support for the hardware. WebOS Kernel is OLD and not supported by any current Linux, even LuneOS use the Android Kernel.
Android can be install and keep WebOS, it was a great OS but not nothing current will run on it.
Using the method posted, the most up to date and current Linux distribution of Arch, Debian, Ubuntu and more can all be install on the same Tablet running Android and use any Linux flavor without rebooting.
Android provides a very stable newer kernel that will share the resources with any listed Linux flavors and those built are native arm, runs super fast. If you want it to have all that done natively and not using Android, then the Kernel must be modified and all the "private drivers" ported to the most current version of Linux. The OS can not be updated as Linux will modify the Kernel, breaking everything. But everything is possible, is up to the user how much time and dedication plus the knowledge required to make it work.
Click to expand...
Click to collapse
I don't mind running old kernel/package versions, I am actually trying to run the old projects but most have the Images down and unavailable and the ones that don't just straight won't work.
arrudagates said:
I don't mind running old kernel/package versions, I am actually trying to run the old projects but most have the Images down and unavailable and the ones that don't just straight won't work.
Click to expand...
Click to collapse
I never installed any native Linux Os on the Tablet. The Ubuntu Touch was promising but never took off. The system must be stable for anything to be use otherwise is just experimental as most of those builds were. Running Linux in a Chroot environment is somewhat, not the same, as a Linux guest virtual machine and Android as a host.
That is the only way I know of, that is stable and current.
Ok so right now I have two more options available to try but they are probably not gonna work, in that case I'll start to look about making my own port of ArchLinuxARM
arrudagates said:
Ok so right now I have two more options available to try but they are probably not gonna work, in that case I'll start to look about making my own port of ArchLinuxARM
Click to expand...
Click to collapse
I did search for a working native linux OS for the Tablet, but did not found any.
It can surely be done, take a look at this video and the source at GitHub.
Youtube
https://www.youtube.com/watch?v=vx8_u1jhXJY
GitHub
https://github.com/CalcProgrammer1/kernel_tenderloin_debian
The Tablet uses LVM and can easily be partition in any way. It can also boot directly into Linux. The only thing to do is rename the file in /boot uImage.moboot to the Linux uImage ( example ) uImage.ArchLinux.
If any help, let me know.
Have fun!
I'm making some progress
arrudagates said:
I'm making some progress
Click to expand...
Click to collapse
Congratulations !
You did it ! once it boots is all it matters.
This is an idea, a chroot Arch can be built inside Android
A partition can be created in LVM Arch_Linux ( any size )
Inside Android with the App I posted, create the Chroot Arch Linux ( up to date )
Then modify the Ramdisk to direct at the partition Arch_Linux ( same it was use in the Chroot )
Then it should boot up ( some other changes will need to happen I guess)
Arch armv7l as chroot in Android 8.1 with HpTp_MAX
Testing the new kernel settings in Android and installed the latest version of Linux Arch using Linux Deploy.
It is fast and it would be even better running native!
Attached are the screenshots.

Categories

Resources