[Sony Xperia S, Acro S, Ion] deedwar:
As promised on another page I am going to write a guide on how to port any rom from Xperia S and by any ROM obviously I dont mean one that has a custom kernel or else it will loose those features because were going to use my or bpauls kernel.

Now you start by downloading the ROM zip for this example im going to be downloading PAC as I have already gotten permission from the author of the ROM to post it. Remember if your going to POST it on these forums you have to have permission. What your doing here isnt anything compared to what they have to do to compile it from source so if they dont want you using there work respect that.

All my work im going to be using windows if your on linux it will be similar just remember when I will be working with WinRAR you would just extract the zip work with the files that way then compress it again just remember to compress in ZIP not tz.

Alright so lets download the required files first.

Download PAC from http://d-h.st/dfg

APKTOOL from https://android-apktool.googlecode.com/files/apktool-install-windows-r05-ibot.tar.bz2 and https://android-apktool.googlecode.com/files/apktool1.5.2.tar.bz2

WinRAR from http://www.rarlab.com/download.htm

My microSD card file from http://d-h.st/GkJ

One of my ROMs from http://d-h.st/9HS

Notepad ++ from http://notepad-plus-plus.org/download/v6.4.1.html

*Alright now i want you to install WinRAR if you dont have it installed.

*Alright create a directory in C:\ called PORT

*Copy the PAC file "nozomi_PAC_JB_4.2.2-v23.0.0_20130612-v2" in that directory

*Extract both APKTOOL files into the C:\PORT directory.

*Open up my ROM file you downloaded earlier "Slim-hikari-4.2.2.build.6.2" and extract the boot.img file into the c:\PORT directory

*Open up "nozomi_PAC_JB_4.2.2-v23.0.0_20130612-v2" click on the boot.img file delete it then drag across the one your extracted from my ROM. (This allows the ROM to boot as this is the kernel. The ROM would have worked with the original boot.img file but it wouldnt have charged or had your external SD.)

* Now in the "nozomi_PAC_JB_4.2.2-v23.0.0_20130612-v2" file in WinRAR go into the "META-INF" directory the "com" then "google" then "android" extract the "updater-script" to the C:\PORT directory

*open up "updater-script" in notepad++. The first 2 lines have to references each that we need to change so where it has "LT26i" twice on the first line change that to "LT26w"

on the second line it has 2 references to "nozomi" change these both to "hikari"

Save the file then go back to WinRAR delete the "updater-script" file then drag in the one we modified. (This file is pivital to the install process it is what stops your phone from installing the wrong ROM for your hardware if you have ever tried just copying a ROM from the Xperia S page before and installing it this file this is what made CWM throw you an error about not being able to install on your phone).

*go back to the root of the Zip then go to system you should be presented with a heap of directories and then a file down the bottom called "build.prop" we want that file right now so extract it to the c:\PORT directory and open it with notepad++.

The easiest way of editing this file is replacing any reference to "Xperia S" with "Xperia acro S" and any reference to "LT26i" With "LT26w" and any reference to "nozomi" to "hikari" now save the change and do the same again in WinRAR delete the original file then drag across the file we just saved. (what we just did will have nothing to do with getting it to work it just makes it so you have all the right info in the ABOUT page in your setting or when you connect your phone up to your computer).

*Now move up from the "build.prop" file to the "etc" directory and we want a file called "sensors.conf" drag this to our "c:\PORT" directory and open with notepad++ now in the file we want to change 2 lines first change "bma250input_neg_x = 1" to "bma250input_neg_x = 0" and "bma250input_neg_y = 0" to "bma250input_neg_y = 1". Save the file delete the original from the ZIP with WinRAR and copy this one across. (what we just did will fix the rotation problem where it is the oppersite of what it should be).

That is the first part for users without External SD if you install the file after that it will work and what you need to do anyhow before installing the file from part2. Off to work so will finish when i get back.