Search This Blog

Friday, November 28, 2014

Ubuntu 14.04 - how to create shortcuts in unity launcher

To create a shortcut to an application in unity launcher just make in a symlink in one of the following locations:

/home/user/.local/share/applications

or

/usr/share/applications

or

/usr/local/share/applications

Example command:

ln -s /home/user/applicationsFolder/app1 /usr/share/applications/app1






Build Android apps as Chrome apps/extensions, Build Android apps for ChromeOS, configure build server

What I want to accomplish is configure a build server (like TeamCity) to build an Android application from source and convert it to a chrome extension that can be published on Chrome WebStore as an application.

First of all you can read this source which explains how to run android apps in chrome.

1. Download ARChon runtime and install it as an extenion in Chrome.

2. You can convert your apk manually with this chrome extension - Twerk

3. To enable Chrome App Launcher on Ubuntu (speeds up app launching) - follow this link.

4. Install chromeos-apk
asdsa

  1. In a terminal, run the following command: sudo apt-get install npm
  2. (Ubuntu only): Run the following command: sudo apt-get install lib32stdc++6
  3. Download node.js.
  4. Unzip the tar.gz file you downloaded from the above link.
  5. Per the README file, open a terminal to the unzipped folder containing node.js. And run the following commands in order:
    1. ./configure
    2. make
    3. make install
  6. Run the command: sudo npm install chromeos-apk -g
  7. To make sure you're updated to the latest version (now or in the future), run: sudo npm install -g chromeos-apk@latest
5. Convert your compiled application in apk to chrome app with:

chromeos-apk --tablet --scale --name ApplicationName application.apk


5. Remember - to update the chromeos-apk plugin just run:

sudo npm install -g chromeos-apk@latest

Thursday, November 27, 2014

Install CyanogenMod 11 on XPeria P running stock Android 4.1

1. First of all you need to unlock your bootloader. [worked]
Go developer_sony to proceed with unlocking (official SONY's website)

  1. In your device, open the dialler and enter *#*#7378423#*#* to access the service menu.
  2. Tap Service info > Configuration > Rooting Status. If Bootloader unlock allowed says Yes, then you can continue with the next step. If it says No, or if the status is missing, your device cannot be unlocked.


2. Then you need to root your XPeria P [worked]
The following root method worked for me:
DooMLoRD Easy Rooting Toolkit (v17)


3. To install CWM [worked]

CWM xda link
You need to have root access in order to use this method.
It worked fine for me.

CyanogenMod 11 did NOT install from CWM for me. It started fine and then couldn't read the phone model number properly.


4. To install TWRP [did not work as expected]

extract boot.img from cm-11-20141012-SNAPSHOT-M11-nypon.zip and copy it to the main script directory.

flash the boot image in fastboot mode with:
sudo fastboot flash boot boot.img


4. Cyanogemod 11 link

http://forum.xda-developers.com/xperia-u/p-development/rom-cyanogenmod-11-0-t2626639


Workaround:
After 1,2,4 (After flashing boot.img )
enter CWM and try to flash CyanogenMod. The device will restart and enter bootloop. Try pressing power button to enter TWRP.
Then flash cyanogenmod normally.


HOW TO ENTER RECOVERY MODE in Xperia P

howto

CyanogenMod:
1.press power + volume up for 3 seconds until the phone vibrates
2. keep on pressing volume up multiple times until clockworkmod recovery shows

TWRP
1.press power + volume up for 3 seconds until the phone vibrates
2. keep on pressing power until twrp shows