Good day.
I decided not to suffer with emulators and a real device and set myself an Android x86 in the Virtual Box.
The speed is excellent, not so much with an emulator, but here only Eclipse runs the programs perfectly in the VM, and Titanium Studio does not want to do this.
I read the builder.py from Titanium; you use the adb.exe cemedash calls to install the application on the device. I typed the commands I sent to the console myself and saw:

adb shell "cd /sdcard/" device not found 

Device List:

 adb devices 192.168.56.101:5555 device 

Google said that this is due to the fact that the device is not certified by Google and therefore adb does not want to work with it.
I found a way to deceive Google, if the device is really some kind of Chinese connected via USB, but the virtual machine does not work through USB.
Has anyone set up?

  • one
    @Iranda please accept my answer as true, I can’t do it myself. Let this answer be for heritage. - ReinRaus

1 answer 1

Found a solution.
Open the folder with the scripts Titanium Mobile. I have it

 c:\Users\ReinRaus\AppData\Roaming\Titanium\mobilesdk\win32\3.0.2.GA\android\ 

Just in case, save a backup copy of the builder.py file.
Open builder.py for editing.
Looking for text entry

 def build_and_run 

After line

 if install: 

append

 output= self.run_adb('devices') dev_id, dev_type=output.split("\r\n")[1].split("\t") if (dev_type== 'device'): self.device_args=['-s', dev_id] 

The result is

 if install: output= self.run_adb('devices') dev_id, dev_type=output.split("\r\n")[1].split("\t") if (dev_type== 'device'): self.device_args=['-s', dev_id] 

Looking for text entry

 Failed installing 

Row

 elif not self.install: 

change to

 else: 

Everything. Enjoying high speed virtual machine. Launching the project as an Android Device .
This method does not affect any functionality; it only fixes a couple of code flaws. Complete and updated solution here: http://reinraus.ru/wordpress/nastraivaem-titanium-studio-dlya-zapuska-prilozhenij-v-android-x86/

  • For some reason there is no checkmark to accept the answer. - ReinRaus
  • Pancake. For some reason, it has gone up. Sorry. I didn’t want to stomp a necropost, I thought he wouldn’t drown with a moder. Just a blog updated the record indicating what to do if there is no python2.x in the system, or you want the path to lead to python 3.x - ReinRaus
  • @ReinRaus And why don't you use Intel x86 Atom System Image? The emulator flies reactively and you don’t have to keep the virtual machine ... by the way faster than a real device. - Yura Ivanov
  • As an alternative, I can offer AIDE to develop (for the fan) - arg
  • @Yura Ivanov, the virtual machine works better than the Emulator + HAXM, there are of course some inconveniences with the integration of the mouse, but when you get used to it, you don’t notice it :) - ReinRaus