(Q) emulate any roms on SDK? - Android Q&A, Help & Troubleshooting

Hello guys how to emulate a custom ROM on SDK FOR testing ROM
Thanks and sorry for my English is very bad
Enviado desde mi Galaxy Nexus usando Tapatalk 2

Originally Posted by Perceval from Hyrule View Post
** Currently writing this, please wait !
Hello there,
here is a new tutorial I'm sure you'll like. As usual it took me LOTS of work to get all info and make this to work, so now I share it with you and show how to run custom ROMs within Android SDK Emulator.
Please note it's mainly for XPERIA X10, but process is the same for other Android-powered devices. It will show you the process for Linux.
1. Download the latest Android SDK.
2. Open the archive, and copy the folder android-sdk-linux-x86 to a safe place. You can also rename it to an easier name. Example : I placed it in ~/Home and renamed it androidsdk.
3. Go to the SDK folder, then in the folder Tools/. Double-click on Android and choose Run.
4. Go to Available packages, and choose to install (choose at your will !)
Android SDK Tools, revision 8
Android SDK Platform-tools, revision 1
SDK Platform Android {VERSION(S) YOU WANT} (!) You need at least one Platform. For X10, you can download 1.6, 2.1. You can also add 2.2, 2.3.
Once it's done, close the window.
5. Download Xperia X10 add-on for SDK. (?) Read the PDF add-on guide, it is helpful !
Copy the folder (from the archive) XPERIA-X10_r1 inside the folder add-ons of your Android SDK folder ({androidsdk}/add-ons/).
6. Run terminal, go to your Android SDK folder, then in tools folder, and run
Code:
./android list target
.
Note the id number of the Android you want to develop (ie for me, Android 2.3 is
Code:
id: 3 or "android-9"
). (?) You might also want to note the name ("android-X") as it might be useful later.
7. Now, create AVD (a profile for emulator). Usual command (assuming you are INSIDE the /tools/ folder !) is
Code:
android create avd -n NAMEYOUWANT -t {ID}
So, for us, it will be
Code:
./android create avd -n myx10 -t 3
8. To generate the AVD, you will be prompted several info. Type these for Xperia X10 :
Create custom hardware profile : yes
SD Card support : yes
Asbstracted LCD density : 160 (correct if I'm wrong ?)
DPad support : no (?)
Accelerometer : yes
Max camera pixels (H) : 3264
Cache partition size : 66 (?)
Audio playback : yes
Trackball : no (?)
Max cam pixels (V) : 2448
Camera support : yes
Battery support : yes
Touch screen : yes
Audio record : yes
GPS : yes
Cache partition : yes
Keyboard : no
heap size : 32
RAM : 280
GSM Modem : yes
(?) I recommend you to create one profile for each Android version you want to run (so : you just have to change the ID, and create same profile). If you don't, you won't be able to run custom ROMs using other versions of Android (ie your AVD profile is 2.3 and you run a 2.1 custom ROM).
9. Done ! Take your custom ROM (downloaded, compiled... In this case, files are in {YourAndroidRepoFolder}/out/target/product/generic/. It comes with about 3 files, including a file called system.img. Copy this file into the folder (hidden) .android/myx10{In fact, the name you've chosen earlier "NAMEYOUWANT"}.avd/
10. Run terminal, go to Android SDK folder/tools/ (if you didn't close your current terminal, you're already in and run this command to run emulator WITH your custom ROM :
Code:
./emulator -avd myx10{again the "NAMEYOUWANT" you've chosen before}
Wait and enjoy !
(?) First boot is long - it's NORMAL. Just like on a real device, the OS will be cached and will work faster and faster.
Click to expand...
Click to collapse
Look over this,it should help you.
Source

Thanks man
Enviado desde mi Galaxy Nexus usando Tapatalk 2

Related

Create your Linux environment to build YOUR Android

Hello all,
if you are like me, you love to do things by yourself and see how it works. In this thread I'll show you how to create your Linux environment in order to create and compile your own roms - any version (1.5, 2.3, etc etc). I had soooooo many problems to make it work, so here is THE thread
BE CAREFUL : this thread is ONLY to set up the OS. The Android you will compile will not be compatible with your x10 as it needs to be "edited" for our phones. It basically shows you how to get ready
Note : parts 1 and 2 explain how to set up Ubuntu into a virtual machine in Virtualbox. If you don't virtualize Linux, if your Ubuntu is already installed, etc etc you can directly go to 3. It's just here to explain how to install Ubuntu.
This tutorial works of course for any "hard installation" of Ubuntu (I mean not in a Virtual machine) and in any virtualizing software (Virtualbox, VMWare, etc etc). I've dropped the Virtualbox tutorial because the software is free
1. Requirements
2. Set up Ubuntu 64 bit (Virtualbox)
3. Set up Android Source dependencies
4. Set up Android Source
5. Regular use
1. Requirements
A working computer, capable of virtualization (if you don't want to wipe your Windows or your MacOS X !) and with Internet connection
Few Gb on your hard drive (10Gb minimum ! Recomended : 15-30Gb)
As much RAM as possible (Minimum 1024Mb), and as powerful CPU as possible (Core2Solo, Core2Duo, ...)
A bit a time
2. Set up Ubuntu 64 bit
Download and install the latest Oracle VM Virtualbox for Windows
Download latest 64-bit Ubuntu Linux (as .iso package) - you can store the file wherever you want.
(Optional) Download the VirtualBox v4 extension, this will allow you to support improvements like USB2.0... Install : once VirtualBox will be installed, File>Preferences>Extensions>Add... If you get an error (Error 1), try to put the file in a "very simple" location (like C:\) and reinstall.
Once you've set up Virtualbox, run it. Click on "New", then follow the wizard.
Make sure you set the following :
Operating System : Linux
Version : Ubuntu (64 bit)
RAM : 512Mb (you can adjust more, but avoid use lower than 512Mb - I use 2Gb)
Create a new hard drive : set it variable size or fixed sized, but you'll need at last 15Gb to get all the files. To feel confortable, I use 30Gb (variable)
The computer is created, now run it. It will say there's no OS. Click on Devices > CD/DVD > More CD/DVD... Here is you virtual player. Click on Add, and select the Ubuntu .ISO file you downloaded. Then, choose it in the list, and click Choose. Now, you can restart the virtual machine by clicking Machine > Restart.
The computer should restart from the virtual CD, so install it to your virtual hard drive - regular install, same as if you were installing it on a physical HDD.
Once it's installed, do not forget to kick the .iso file from the virtual player for you not to start always on the CD
3. Set up Android Source dependencies
In Ubuntu, do right-click on the upper bar (where are Applications, Shortcuts...), and click Edit Menus. Then, go to System > Administration and tick Software Sources. We need to do this because Sun is highly restrictive on access to Java setup files...
Close that, then click on System > Administration > Software Sources.
Enable all sources, then on the second tab, tick the two Canonical sources (the most important ones, as these sources allow to install Java !)
Close the window and allow to refresh the sources (if you don't, next steps won't work).
Go and read the official Android Source page. That's what we're going to do.
Run a terminal, and copy/paste this : (this is a corrected setup, it should work like a charm -- please tell if it's not)
Code:
sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl sun-java6-jdk zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev
After setup complete, make sure Java works, by typing
Code:
java
and
Code:
javac
This should return help on both commands. If one of these doesn't work (ie. "command not found"), your environment is not configured properly.
4. Set up Android Source
Create a dir called "bin" in your user dir.
Code:
cd ~
mkdir bin
echo $PATH
Then, type this :
Code:
curl http://android.git.kernel.org/repo >~/bin/repo
chmod a+x ~/bin/repo
Next step is to create a folder where we'll store Android sources we work on. You can place it and name it as you wish, let's call it "android" and place it on the user folder.
Code:
mkdir android
cd android
Then, run this command :
Code:
repo init -u git://android.git.kernel.org/platform/manifest.git
If it returns "command not found", restart Ubuntu !
Enter username and email, although I'm not sure it's useful for our use -custom roms-.
Now, let's get the files ! Type
Code:
repo sync
and wait... Wait... Wait... Lots of commands, of "Resolving deltas", "Receiving", etc etc. It can be very long (depends of your Internet speed), just wait...
Finally, let's register the public key and finalize setup process. Type
Code:
gpg --import
And the cursor will down a line and nothing will appear. Stuck ? Broken ? Woooops ? Not at all ! Program is waiting for you to type the key, which is sooooooo big. So, copy and paste all this :
Code:
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
mQGiBEnnWD4RBACt9/h4v9xnnGDou13y3dvOx6/t43LPPIxeJ8eX9WB+8LLuROSV
lFhpHawsVAcFlmi7f7jdSRF+OvtZL9ShPKdLfwBJMNkU66/TZmPewS4m782ndtw7
8tR1cXb197Ob8kOfQB3A9yk2XZ4ei4ZC3i6wVdqHLRxABdncwu5hOF9KXwCgkxMD
u4PVgChaAJzTYJ1EG+UYBIUEAJmfearb0qRAN7dEoff0FeXsEaUA6U90sEoVks0Z
wNj96SA8BL+a1OoEUUfpMhiHyLuQSftxisJxTh+2QclzDviDyaTrkANjdYY7p2cq
/HMdOY7LJlHaqtXmZxXjjtw5Uc2QG8UY8aziU3IE9nTjSwCXeJnuyvoizl9/I1S5
jU5SA/9WwIps4SC84ielIXiGWEqq6i6/sk4I9q1YemZF2XVVKnmI1F4iCMtNKsR4
MGSa1gA8s4iQbsKNWPgp7M3a51JCVCu6l/8zTpA+uUGapw4tWCp4o0dpIvDPBEa9
b/aF/ygcR8mh5hgUfpF9IpXdknOsbKCvM9lSSfRciETykZc4wrRCVGhlIEFuZHJv
aWQgT3BlbiBTb3VyY2UgUHJvamVjdCA8aW5pdGlhbC1jb250cmlidXRpb25AYW5k
cm9pZC5jb20+iGAEExECACAFAknnWD4CGwMGCwkIBwMCBBUCCAMEFgIDAQIeAQIX
gAAKCRDorT+BmrEOeNr+AJ42Xy6tEW7r3KzrJxnRX8mij9z8tgCdFfQYiHpYngkI
2t09Ed+9Bm4gmEO5Ag0ESedYRBAIAKVW1JcMBWvV/0Bo9WiByJ9WJ5swMN36/vAl
QN4mWRhfzDOk/Rosdb0csAO/l8Kz0gKQPOfObtyYjvI8JMC3rmi+LIvSUT9806Up
hisyEmmHv6U8gUb/xHLIanXGxwhYzjgeuAXVCsv+EvoPIHbY4L/KvP5x+oCJIDbk
C2b1TvVk9PryzmE4BPIQL/NtgR1oLWm/uWR9zRUFtBnE411aMAN3qnAHBBMZzKMX
LWBGWE0znfRrnczI5p49i2YZJAjyX1P2WzmScK49CV82dzLo71MnrF6fj+Udtb5+
OgTg7Cow+8PRaTkJEW5Y2JIZpnRUq0CYxAmHYX79EMKHDSThf/8AAwUIAJPWsB/M
pK+KMs/s3r6nJrnYLTfdZhtmQXimpoDMJg1zxmL8UfNUKiQZ6esoAWtDgpqt7Y7s
KZ8laHRARonte394hidZzM5nb6hQvpPjt2OlPRsyqVxw4c/KsjADtAuKW9/d8phb
N8bTyOJo856qg4oOEzKG9eeF7oaZTYBy33BTL0408sEBxiMior6b8LrZrAhkqDjA
vUXRwm/fFKgpsOysxC6xi553CxBUCH2omNV6Ka1LNMwzSp9ILz8jEGqmUtkBszwo
G1S8fXgE0Lq3cdDM/GJ4QXP/p6LiwNF99faDMTV3+2SAOGvytOX6KjKVzKOSsfJQ
hN0DlsIw8hqJc0WISQQYEQIACQUCSedYRAIbDAAKCRDorT+BmrEOeCUOAJ9qmR0l
EXzeoxcdoafxqf6gZlJZlACgkWF7wi2YLW3Oa+jv2QSTlrx4KLM=
=Wi5D
-----END PGP PUBLIC KEY BLOCK-----
Once pasted, hit CTRL+D, this will make the program to register the key, and will display the key has processed.
Everything is now done, you have all the sources and you are ready to create your own roms. You can edit files simply by double-click, or use any software you want.
If you want to compile, simply run a terminal, go to your folder (remember it is cd android (MS-DOS-like command), where android is the folder you defined above) then type
Code:
make
. After a long time (depends on how much RAM you assigned to the machine, 512Mbits is slow), you will generate IMG files.
5. Regular use
If you want to get the latest source files (ie you have 2.1 files and want 2.2.1 files), simply run a terminal, go to your working folder and type
Code:
repo sync
. This should do the trick (correct me if I'm wrong)
Compiling sources takes hours to process, and you may want to kill the compile or pause it. You can then abuse of these keyboard shortcuts (common to Ubuntu OS) :
Code:
CTRL+C
will kill the process. Use it carefully, as it instantly kills it with no prompt.
Code:
RIGHT CTRL+P
is a Virtualbox command. Il will pause the whole Ubuntu (and also your process), and makes the screen ugly/gray (it just stuck the screen on Virtualbox v4.x). This is helpful when you run a Virtual machine, as you can pause the OS and make your computer to sleep/hibernate (or save an image - do NOT turn off your computer, as it will turn off the Virtual machine also !). Out of sleep, you can type again RIGHT CTRL+P to make the process to continue.
** Please note it might be risky to flash your phone with the stock rom you compiled (I mean with no modification), as this is not intended to work on X10
** Please note this install is for AOSP and NOT for Android SDK (you can install it with ease).
What's the difference ?
Android Open Source Project (AOSP) allows you to get the source code of the Android Operating System, in order to improve/change it, and create your personalized Android operating system
Android SDK allow you only to create and edit apps for Android Operating System.
Please note that compiling takes hours to process ! (3 hours or more)
** For any question, deeper info : please FIRST read official documentation. Easy to use, you'll get all info ! **​
man...did you ever stop?!
THANKS FOR INFO. If you can explain how to make system images for our X10 then we can use the dual boot option to make gingerbread or froyo roms for dual boot using Zhidu chargemon file.
I am not clear on making and android system image for the x10. can we extract a system image from a running rom? that way I could make a system image of black freedom and we can all dualboot it instead of installing it.
rendeiro2005 said:
man...did you ever stop?!
Click to expand...
Click to collapse
Lol I can't stop
@SuperUserMovado : I'd love to know, unfortunately I am like you - I don't know how to do this. I'm gonna get several info there and there and try to do some stuff
Regarding Zd's Dual, please note it is not compatible with his xRecovery, which makes things a bit boring when you want to easily install a custom rom AND benefit of Dual Boot.
Dual boot by the way is an excellent idea, but it has limitations (of course), like no SD card mount and few other things because it run from SD card and not from NAND.
EDIT : here is a good start : http://source.android.com/porting/index.html
I have just started playing with this and have compiled one aosp rom from source. I think it can be extracted from a running rom but I'm not sure how yet. On the other hand it looks like the source is available on the se dev website. I'm having trouble downloading it... not sure yet if its on my end or theirs.
Here's the error if someone could help me out: (Ubuntu 64bit)
Archive: /tmp/X10_X10mini_X10_minipro_X8_2.0.A.0.504.tar.gz-4.zip
[/tmp/X10_X10mini_X10_minipro_X8_2.0.A.0.504.tar.gz-4.zip]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
zipinfo: cannot find zipfile directory in one of /tmp/X10_X10mini_X10_minipro_X8_2.0.A.0.504.tar.gz-4.zip or
/tmp/X10_X10mini_X10_minipro_X8_2.0.A.0.504.tar.gz-4.zip.zip, and cannot find /tmp/X10_X10mini_X10_minipro_X8_2.0.A.0.504.tar.gz-4.zip.ZIP, period.
Check this site out as well. The whole site is really helpful. I'm in the process of compiling a captivate rom with some slight changes and i hope it works.
Edit: Btw if you get the error repo not found, type this into the command line
code:
echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc
then close the terminal, reopen another one and it should work
@superusermovado
I'm pretty sure you use unyaffs for the system.img and split_bootimg.ph for the boot.img.
That's how to decompile an update.zip.
From there you recompile as usual. I'm not going to post the instructions because they are all over the net.
Hint: Andy rubins tweet lol
gavriel18 said:
I have just started playing with this and have compiled one aosp rom from source. I think it can be extracted from a running rom but I'm not sure how yet. On the other hand it looks like the source is available on the se dev website. I'm having trouble downloading it... not sure yet if its on my end or theirs.
Here's the error if someone could help me out: (Ubuntu 64bit)
Archive: /tmp/X10_X10mini_X10_minipro_X8_2.0.A.0.504.tar.gz-4.zip
[/tmp/X10_X10mini_X10_minipro_X8_2.0.A.0.504.tar.gz-4.zip]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
zipinfo: cannot find zipfile directory in one of /tmp/X10_X10mini_X10_minipro_X8_2.0.A.0.504.tar.gz-4.zip or
/tmp/X10_X10mini_X10_minipro_X8_2.0.A.0.504.tar.gz-4.zip.zip, and cannot find /tmp/X10_X10mini_X10_minipro_X8_2.0.A.0.504.tar.gz-4.zip.ZIP, period.
Check this site out as well. The whole site is really helpful. I'm in the process of compiling a captivate rom with some slight changes and i hope it works.
Edit: Btw if you get the error repo not found, type this into the command line
code:
echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc
then close the terminal, reopen another one and it should work
Click to expand...
Click to collapse
Thanks for info
About this package, what's the content ?? The easiest way is to download from XDA the generic global rom, it's the same -- with no bug
Perceval from Hyrule said:
Thanks for info
About this package, what's the content ?? The easiest way is to download from XDA the generic global rom, it's the same -- with no bug
Click to expand...
Click to collapse
Huh? The generic ROM is compiled. The one we are talking about here is source-code. I thought you should know since you started this topic on how to setup a build environment. Im not intirely sure what the download from from SE is but it looks like the source-code from all the changes and additions SE made to the bare system. So there's the kernel source and some other stuff that I don't know the purpose of.
Sent from my SNES using Mario Paint
LouNGeRR said:
Huh? The generic ROM is compiled. The one we are talking about here is source-code. I thought you should know since you started this topic on how to setup a build environment. Im not intirely sure what the download from from SE is but it looks like the source-code from all the changes and additions SE made to the bare system. So there's the kernel source and some other stuff that I don't know the purpose of.
Sent from my SNES using Mario Paint
Click to expand...
Click to collapse
A compiled rom is not a problem
I was asking what was the content within the rom, and as you said - i supposed too - it is the original + all SE garbage.
Very interesting to get some apps back on AOSP (some like the *Scape, i do like predictive input from SE, gains a lot of time)
To answer then, the SE kit should contain everything of what SE adds : RachaelUI, all their apps (the *Scape), modules (keyboard, apis...), etc etc and all files to link these components to the kernel. And make our phones as fast as a monster truck. Not as fast as AOSP (Formula 1 !!!!!)
Don't forget the most important part, the package contains the SE kernel.
Sent from my SNES using Mario Paint
After using, struggling more like with Ubuntu and VMware, the main issue being I couldn't figure out getting VMware tools running so copy and pasting was hit and miss, I tried the Cygwin method instead which works much better for me on Windows 7 Ultimate x64.
XperiaX10iUser said:
After using, struggling more like with Ubuntu and VMware, the main issue being I couldn't figure out getting VMware tools running so copy and pasting was hit and miss, I tried the Cygwin method instead which works much better for me on Windows 7 Ultimate x64.
Click to expand...
Click to collapse
VMWare is much more difficult to run than VirtualBox. But course you can try and compile Android from Windows
But I definitely can't tell you if the kitchen method will work for XPERIA.
Perceval from Hyrule said:
VMWare is much more difficult to run than VirtualBox. But course you can try and compile Android from Windows
Click to expand...
Click to collapse
I've put VB on too, but thought I'd try the Cygwin method, which as I've said works for me, and is better imo, at least for what I need.
Perceval from Hyrule said:
But I definitely can't tell you if the kitchen method will work for XPERIA.
Click to expand...
Click to collapse
I can, and it does.
XperiaX10iUser said:
I've put VB on too, but thought I'd try the Cygwin method, which as I've said works for me, and is better imo, at least for what I need.
I can, and it does.
Click to expand...
Click to collapse
Thanks for info then
Hey guys, did someone do the same install as me ? (Windows 7 x64 host // Ubuntu 10.10 x64 guest).
I've never been able to make USB to work, kinda weird... Because when you compile Android, you'd like to send it to your phone *warning !*
Perceval from Hyrule said:
Hey guys, did someone do the same install as me ? (Windows 7 x64 host // Ubuntu 10.10 x64 guest).
I've never been able to make USB to work, kinda weird... Because when you compile Android, you'd like to send it to your phone *warning !*
Click to expand...
Click to collapse
That's why I went the Cygwin route, much less hassle imo.
XperiaX10iUser said:
That's why I went the Cygwin route, much less hassle imo.
Click to expand...
Click to collapse
I would say it depends. Linux environment is much cooler to work with source files (no boring "NOOO Windows can't find how to open this weird non-Windows file. What to do ? 1.Delete 2.Crash Windows 3.Phone Ballmer to make a tender offer)
Is compiling long with Cyg ? From AOSP, it takes me up to 3 hours with my (well RAM-ed, well CPU-ed) Virtual Machine.

[GUIDE] Win 95/98/XP and Linux OS (Knoppix/Ubuntu etc) on Xperia S No root needed!!!

Yes ! Now you can run x86 based operating systems on your Xperia S. No root needed
IS A VIRTUAL MACHINE, DOESN'T TOUCH ANDROID
The windows 95/98 works great on my Xperia S
All credits to their respective developers.....
Instructions :
1.Download and install Bochs2_5_1.apk (stable but slower) or QEMU.apk (unstable but faster)
2.Download SDL(BOCHS).zip for Bochs2_5_1.apk and SDL(QEMU).zip for QEMU.apk and extract on root of sdcard , so path should be sdcard/SDL/*.*
3.Put a disk image of type ".img" of any operating system in SDL folder and rename it to "c.img" (tested : win 95/98/XP ----------------Linux OSs like Ubuntu/Knoppix/redhat etc can also be used)
4.here i uploaded an img of windows 98 http://www.mediafire.com/?ec76dg96qspyx5k (just change the extention from .mp3 to .zip, extract and here you go)
5.Run Bochs or LibSDL from appdrawer. Let it boot (takes few secs) and enjoy.
How to Create .IMG from .VHD disk image in Second Post
----------------------------------------------------------------------
Instructions (BOCHS) :
- The screen works as touchpad to control the mouse cursor and volume up/down works as left/right click.
- You can also tap the screen to generate left click.(this does not work everytime)
- Back = BackSpace, Menu = Enter, left-upper corner click generates TAB
- left-lower corner click popups keyboard
( For a desktop like experience use this keyboard -> Hackers Keyboard, or a usb keyboard using the usb host cable)
-Create a folder called "HDD" on the root of your SDcard and put your softwares/files or anything in there. When you boot windows, then in "My Computer" you will see "d" drive which will have the "HDD" folder contents. So you can install/use them in Windows.
-----------------------------------------------------------------------
----------------------------------------------------------------------
Instructions (QEMU):
- The screen works as touchpad to control the mouse cursor.
- You can also tap the screen to generate left click (right click is not possible AFAIK) .
- Back = BackSpace, Holding Menu = popups keyboard
( For a desktop like experience use this keyboard -> Hackers Keyboard or a usb keyboard using the usb host cable )
- No custom files can be used as of now, will find a way and post here again.
----------------------------------------------------------------------
Some freeware disk images can be found on the next links (not sure if any of them will work as i have not tested , only win 95/98/XP are tested.)
HERE and HERE
thanks to:
mnomaanw, and all the developers working on this project
How to Create .IMG Disk Image from .VHD
1. Download ISO Recorder here
2. Mount the VHD
-Windows 7
-Go to your start menu, right click on Computer, and choose 'manage'
-On the left, click on 'Disk Management' (may take a few moments)
-Click on 'More Actions' and choose 'Attach VHD'
-Choose your VHD
3. Open Windows Exporer
4. Right click on the newly mounted VHD and select 'Create ISO Image File' and when saving, choose save as any file type.
5. Save as c.img
Thanks to chessmaster W/nook for posting these instructions
OR:
I found this somewhere on a non English site, so I translated it via google.....Much part of the guide is understandable.
(Instructions)
Download QEMU for companies
Create a folder on the C drive and extract all the qemu from the archive there.
(Go to the folder in the console)
(hard way)
Win XP: Start> Run> cmd
Win 7: The push buttons Win + R, write cmd and click on OK
Writing in the console
Code
cd c: \ qemu
(easy way, but it only works on Win 7)
Go to the folder qemu (not necessarily on drive C)
Hold down Shift, click on the empty space of the open folder, right-click
In the menu click on "Open Command Window"
Create an image of your hard disk - write to the console
Code
qemu-img create-f raw disk.img 2000M
(Where)
disk.img - the name of the hard disk
2000M - the size in megabytes (the size can be anything, if only Windows was placed, but just the 2000M).
Create (. Iso) image c installation disk Windows XP (look in Advanced) and rename it to image.iso
Copy it to the folder c: \ qemu
If the c: \ qemu disk image is the image of the hard drive then run QEMU - write to the console
Code
qemu.exe-m 1024-boot d-cdrom image.iso-hda disk.img
(Where)
1024-m - amount of RAM available to QEMU
-Boot d - to boot from cd-rom
-Cdrom image.iso - our installation CD
-Hda disk.img - hard disk image
(Install windows as usual)
Format to NTFS required (do not be lazy is a very fast)
Creating a Windows completed.
Disk.img take out of the c: \ qemu and copy the smart
(Now set up the Smart)
Download BOCHS for Android
Download the SDL: SDL.zip (47.85 KB) Number of downloads: 240
Installation:
Install apk
Unpack the archive in the SDL sdcard / SDL
disk.img move to the sdcard / SDL
(Edit file bochsrc.txt)
Neither of which do not touch, but here:
# What disk images will be used
# Floppya: 1_44 = W98RUS.img, status = inserted
change the name of the image as follows:
# What disk images will be used
# Floppya: 1_44 = disk.img, status = inserted
and here:
ata0-master: type = disk, path = "c.img"
change to:
ata0-master: type = disk, path = "disk.img"
All store and run Bochs
We look forward to and enjoy!
that sounds great
just to make sure that i have understand the general idea
so it is about running windows 98 as any other application on Android ??
and it will not replace the original OS
mohammed510 said:
that sounds great
just to make sure that i have understand the general idea
so it is about running windows 98 as any other application on Android ??
and it will not replace the original OS
Click to expand...
Click to collapse
yes is a virtual machine dosent touch android
vitorugo-8 said:
one video showing that working will be good
Click to expand...
Click to collapse
i will do it tomorrow
one video showing that working will be good
vitorugo-8 said:
one video showing that working will be good
Click to expand...
Click to collapse
We did not take vids but there's a few screenshots here http://www.xperiagamer.com/Apps/windows-on-xperia.html we tried this few weeks back and worked well on the xperia s
Sent from my LT26i using XDA
i can not install bochs.apk and qemu.apk parse error problem
cannot extract .zip files. I've tried both
hololodilolo said:
cannot extract .zip files. I've tried both
Click to expand...
Click to collapse
Try the link 2 posts above. I uploaded them and both should be fully working.
Sent from my LT26i using XDA
marcoplo said:
i can not install bochs.apk and qemu.apk parse error problem
Click to expand...
Click to collapse
Same here
Update: Copies in this link work perfectly!
http://forum.xda-developers.com/showthread.php?t=1459153
Thanx
Bookmarking the post! will read it and do it later!
i've tried it on my SGS2....nice ... I have XP on my phone
Btw... is there a way on how to make it faster and snapier..??
baramuli said:
i've tried it on my SGS2....nice ... I have XP on my phone
Btw... is there a way on how to make it faster and snapier..??
Click to expand...
Click to collapse
Not really. Different architectures, you can only emulate and not virtualize.
baramuli said:
i've tried it on my SGS2....nice ... I have XP on my phone
Btw... is there a way on how to make it faster and snapier..??
Click to expand...
Click to collapse
To make this faster is possibile but not on curent generation of phone Maybe on the newgen of Huawei soC at x64 but the project is still in Very Very Alpha
Sent from my LT26i using xda premium
optik19918 said:
To make this faster is possibile but not on curent generation of phone Maybe on the newgen of Huawei soC at x64 but the project is still in Very Very Alpha
Sent from my LT26i using xda premium
Click to expand...
Click to collapse
Nope. Even ARMv8 won't really be able to virtualize desktop CPUs. I've had a chance to play with a TI board and the thing is badass, but it doesn't have hardware virtualization.
Thx
thanks for your work, I'll test.
I cant make it work, i already try with win 98, and win 95, it always show only like the BIOS screen and then it close, (no force closing, just close)
what a shame
jacker60 said:
I cant make it work, i already try with win 98, and win 95, it always show only like the BIOS screen and then it close, (no force closing, just close)
what a shame
Click to expand...
Click to collapse
i tested again now and works, with BOCHS i will test the other one to!
the win 98 img i uploaded is damaged, upolading right now w95 tested and working,
maybe your windows img is damaged
Sent from my LT26i using xda premium
What advantages does this bring?
naughtb4 said:
What advantages does this bring?
Click to expand...
Click to collapse
It's one of those "because you can" things
Sent from my Xperia Arc S using xda premium

Galaxy Player 5.0 Root (linux)

Hello
This will be my first tutorial on rooting a galaxy player 5.0 using Ubuntu 12. please let me know if there are some changes you believe needs to be made. i will also update this document with photos and add a second part for flashing a custom ROM. i have it as an attachment as well as copied into this post.
Root and Flash Galaxy Player 5.0 (linux)
Hello after some searching I deiced to learn how to root and flash my Galaxy Player 5.0 loaded with GingerBread (2.6.35-Kernal, 2.3.5-firmware).
**First we need to prep your player**
1) go to settings
2) now to applications
3) now open development
4) finally check the USB debugging box
**Install needed Apps**
5) download and install terminal emulator
**Install android SDK**
6) open terminal and use the command (adb) we are looking for “Android debug bridge”
1) if you get android bridge move to step 3 if you do not get android bridge move to step 2
7) adb= Android SDK
1) open terminal and use type sudo apt-get install eclipse-jdt allow the install to complete
2) now lets install the android sdk using this link android-sdk
3) use the software defaults allow it to complete the install process
4) open the eclips application
1) go to help → install new software click add end enter this URL //dl-ssl.google.com/android/eclipse/
2) check the available boxes and choose next followed by finish (restart eclips)
3) now click window → preferences choose browse locate your android SDK folder
4) Apply → OK
5) now choose window → SDK manager
1) select all the packages you will be working with (I choose 4.0.3 and above)
**Lets Root your Player**
8) plug your micro USB into player and Linux box
9) download the following files rootme files //papousek.org/downloads/galaxy_player/rootme.tar.gz
10) extract the file to your home dir
11) open terminal and use the following command
1) cd root/
2) chmod +x rootme.sh
3) ./rootme.sh
12) this will take a few mintutes let the program run **you will know the process is done when your player reboots**
**Lets check if your player is Rooted**
13) open the terminal emultaor you installed on your player
14) in the command line enter the following command
1) su
2) enter
15) you should get a “Allow super user box” choose allow
16) in the terminal emulator type
1) you should see a $ symbol
2) type su
3) you should now see a # symbol this means you are root.
I rooted mine using Oneclick Root. Version 2.2.2.It took less than 5 minutes. My player has the 2.3.5 stock firmware.

Get a Linux(Ubuntu) working on Android - Problem!

Hello!
I have some problem to geht a Ubuntu 13.10 to run!
1 - I install the "complete linux installer" (2.8) ... from: http://linuxonandroid.org/
2 - I download Ubuntu 13.10 and copy the extracted files (ubuntu.img & ...img.md5) to the intern sdcard
3. - I download & install the 2 apps [VCN Viewer & Android Terminal Emulator(jackpal)]
4 - Then, i press "Start", the Terminal opens and nothing happens, the only thing standing on the Window:
"[email protected]:/ $ 9;60R"
... what is wrong?? & what means 9;60R ??
... also interesting: when i press "open folder" under "settings" in the complete linux-installer app, a terminal opens
with the same crap displayed: 9;60R ??
System: CyanogenMod 11 M10 (4.4.4.)
Kernel: 3.4.0cyanogenmod-g0128289
Processor: ARMv7
Phone: Xperia Z1 compact (amami)
... phone is rooted, app has root-acces & usb-debugging is enabled!
Please help me - what is wrong?
regards,
stefan

[Q] [question] can I put kali on gt-5830i ?

can i put kali on my device??
if so, how?
@AlfredoAAA, The answer is NO . This is the matter of particularity , even If you did meet all of the requirements I would explain later . I am using the sequel of this Popular continuation of Backtrack 5 R3 on my Multi-Boot system for penetration testing and still got problem with my medium custom made bulid ( specially GPU for all injection and compiling \/ coding/scanning/etc etc,,,) Now imagine how on earth this Debian development based going to work on your even most powerful Nexus/Galaxy Note ,,,,,,
Requirements :
- At least 7 GB free on your internal SD card
- Kali Linux custom ARM image dedicated for your device infrastructure >>
Kali Linux has ARM repositories integrated with the mainline distribution so tools for ARM will be updated in conjunction with the rest of the distribution. Kali is currently available for the following ARM devices :
rk3306 mk/ss808
Raspberry Pi
ODROID U2/X2
Samsung Chromebook
EfikaMX
Beaglebone Black
CuBox
Galaxy Note 10.1
- Custom made recovery image for your device form the developer site
- Custom kernel patched for injection in case of wireless assessments for example.
This is quite off topic though , but I am going to share some practical method for medium to powerful devices such as Nexus line ( might be [email protected] related section though,, didn't check it) , which does not require physical installation of Canonical production line.
With the help of the attached app ( released by the same company ) , you can get your Dual boot inside your Android phone ( i,e: Nexus 7/5/,,,,,) .
We’ll need to use the Linux distribution Ubuntu to get this to work, however you won’t need to install it.
Requirements : 3 GB of free space on your device , as it needs this much to actually download and run the OS.
Instructions :
1. Create a live Disc >> Ubuntu website;download the latest desktop OS ( comes with ISO file ); Create your USB stick boot able device with the help of UNetbootin or any device you do prefer though.
2. Boot into Ubuntu >> you know the drill >> Boot your PC with USB attached; Bios choose to boot from your stick USB > After selecting , choose Try Ubuntu. It will boot into it straight from USB without installing anything literally.
3. Put the attached file into Home Folder in the File system . Open up Terminal ( assuming you have rudimentary knowledge of command line in Linux )
Type :
Code:
$ chmod +x dualboot.sh
4. We need to install Correct ADB and dependencies over company's portal through our terminal, which is included in one piece of software.
Type:
Code:
$ sudo apt-get install phablet-tools
and choose "Y" in following scene
5.Connect your Device to your PC; USB Debugging enabled through your settings>Developer. In the terminal from earlier session,
Type to install the app:
Code:
$ ./dualboot.sh
Device will be rebooted couple of times i guess upon completion
6. Ignore anything about loosing root and just press the power button once to reboot.
Once you are back into Android , open your brand new Ubuntu Dual Boot app.
7. Now we need a super fast internet and lots of patient to get through 3GB download .
From within the app, press the greyed out 'Choose which channel to install' to bring up the options. Check 'bootstrap' and scroll down to 'utopic' so you get the recommended
version of the OS. Press install.
8. During installation you'll have to grant SU permission and after a while you will be done. Press 'Reboot to Ubuntu' ( grayed out option) and your device will be booted into Ubuntu Touch OS. ( again ignore any Android identifiers while booting ).
9. Now lets Return to Android : ( Tip :Using Power button to turn it off and on again will allow you to always boot back into Android) and with the reboot button on the app you can get back into OS Touch . please pay attention in this method your Android OS will not be wiped in the process.
As usual , I am not responsible for any kind of device meltdown, possible Bricking ,, etc etc ,, All credits goes to Ubuntu developer team.

Categories

Resources