Thursday, December 8, 2011

SIGNING SIS/SISX FILES FOR SYMBIAN S60 PHONES – ONLINE, PC AND MOBILE SIGNING GUIDE

UPDATE (23.6.2011) – Unfortunately due to the new dev cert policies by Symbian Signed, it is now virtually impossible to get a certificate for your phone. And even if you manage to get one somehow, it will not work for Helloox or HackIt! (described in this post) etc. So the following method will work only if you have your phone specific certificate and key file issued before 23rd June 2011.
There are basically two methods to sign (to embed a trusted certificate signature) an unsigned Symbian app/game (sis/sisx file) – Online (At various sites) or Offline(At computer or phone) by the user. In simple words you can either get your file signed online or sign it yourself at PC or phone. The second method is easier and more popular. I will describe the two methods one by one:

1. ONLINE SIGNING OF sis/sisx FILES – Following are some websites that offer this service:
A) “Open Signed” via Symbian Signed (The official signing site)
B) Online signing at OPDA (RequiresSign-up)
You will have to give your phone’s IMEI number and upload the unsigned file at the above sites and then wait until it is signed and available for download.

2. OFFLINE SIGNING AT PC BY SIGNER SOFTWARE – This method uses a PC application (Called a “Signer” or “Sign tool”) to sign an unsigned app with the help of a personal “Security Certificate” and a “Key” file for a specific IMEI (The cert. and key files will be specific for a single IMEI number). There are several sites offering the service to provide (Generate) “Certificate” and “key” file for any IMEI. Some of these are in Chinese or Russian so better translate them in your language using Google translate):

A) cer.s603rd.cn – require no registration but in Chinese.
B) cer.opda.cn/en – In English language. Also provide online app signing service (recommended)
C) s60certkey.com – In English, “Sign Up” (Registration) is required to get certificate and key.
D) http://allnokia.ru/symb_cert – No sign up required but in Russian.
E) http://isign.imobile.com.cn – Chinese site

Go to any of the above sites (Register if required). Enter your phone’s IMEI number (Press *#06# at phone’s idle screen to know its IMEI) at the given field (Fill up other info if required) and then wait for 12-24 hours (Sometimes even longer). Visit the site again next day (Login if required) and again enter your IMEI. If your certificate and key have been generated, a link will appear telling you to download it. I have personally tested the first two sites.
After downloading your personal security certificate and key file you will need a “Signer” application that will sign sis/sisx files using the above two files. First two sites also provide such apps. (See update below). (Alternatively you may download PC signer from HERE(Complicated), change the language of its interface by clicking last tab and choosing “English” and then restart it ).
Now make a new folder (Of whatever name like “Signer folder” and preferably at Desktop). Place the downloaded signer app, certificate file, key file and the unsigned sis/sisx file in the just created folder.
Now open the Signer software (Right click on the signer exe file and select “Run as administrator”).
Select unsigned sis/sisx file, “cert” file and “key” file as directed and click “Sign”.
After a while a signed file will be generated with some suffix added to the original name (Like xyz_signed or some other weird name) and that will be your signed sis/sisx file ready to be installed in the phone. A warning will appear when installing these files saying “This file is for development purpose only and may seriously damage your device”, just don’t worry about this and continue with installation.
UPDATE: If you are having problem with the above signer then try SignSis_GUI (Easier to use) or BinPDA signer

3. SIGNING AT PHONE ITSELF:Free Signer” is a wonderful free application for S60 3rd and 5th edition and Symbian^3 phones that can be used for signing sis/sisx files at phone itself (Just like “Signer” software for Windows as described above). However “Free Signer” will also need the “Certificate” and “Key file” to sign the unsigned sis/sisx file (As described in step 2 above). “Free Signer” is itself an unsigned app (Download from HERE) and needs to be signed to install on phone. Therefore you will have to follow the above step 2 to sign it first. Once “Free Signer” is signed, install it in your phone. Transfer your “Certificate”, “Key” and unsigned sis/sisx file to phone. Run Free Signer from phone’s menu and follow the instructions to sign files.

NOTE however that the files signed by any of the above 3 steps can only be installed in the phone with IMEI for which the cert and key files were generated. Also files signed through above procedure will have limited security capabilities (Can’t access system folders and files etc) because it is an “Open Signed”, IMEI restricted process without a “Publisher ID”. If you want to sign your files with an all capability developer certificate then you will have to register at Symbian Signed official site and follow their guidelines.
One last thing, besides signing, you can also “Unsign” (Remove certificate) a signed sis/sisx file with the above “Signer” apps (Both via PC signer and “Free signer” of phone).
Hope this will help you, for any queries please leave a comment….

HOW TO FLASH A NOKIA MOBILE PHONE BY PC USING PHOENIX AND NAVIFIRM?



WARNING: Phone flashing is a double-edged sword; it may be useful and dangerous at the same time. It may brick/damage your phone for good (If not done carefully), so please DO NOT flash your device if you don’t know what the hell “Flashing a phone” is.
Also note that Phoenix is available for Windows only (not available for Linux or Mac)
In this post I will explain the use of Phoenix (Nokia service software) to flash a Nokia (Symbian) smartphone (Taking Nokia N8 as an example). Flashing means re-installing phones firmware (Operating system) files. There are many situations when it becomes necessary to flash a mobile (Deletion/corruption of system files, phone is dead etc). Besides, flashing is also useful to update to latest (Or any available) firmware, to install a custom (cooked) firmware or to install an older firmware over an updated new firmware. So here goes the process, carefully follow the instructions given below as such:
First up, note down your phones firmware version/release (Find by pressing *#0000# at standby, in the form of x.xxx.xx), product code (On the sticker under battery in the form of 0XXXXXX) and type (Look at the sticker under the battery in the form of RM-xxx).
1. Download and install Phoenix Service Software (2009 or 2010) in your (Windows) PC/Laptop from www.4shared.com or elsewhere (search Google)
2. Download and install latest version of Navifirm from here
3. Run Navifirm and wait until it loads the Products (Phone model names/codes) list (Requires fast internet connection)
4. Find your phone model and code in the list and select it (For example, select RM-596 for Nokia N8)
5. Wait for a while until it loads “Releases”. Select the desired release (22.14 in case of N8)
6. Wait until Navifirm loads “Variants” (Product code of the phone – you can find yours at the sticker usually below battery). Select the desired variant and wait until Navifirm shows firmware files in the last pane.
7. Check all the boxes (in the last pane) and click “Download with program” button below the last pane. Choose the folder where you want to download the “Official” firmware files. After download is complete, copy the files.
8. Go to “C:/Program Files/Nokia/Phoenix/Products” and create a new folder in the last folder (“Products”) of the above path and name it RM-xxx (which is your phone type code that you noted earlier, replace “xxx” with your phones actual code numbers, for example it will be RM-596 for N8). Now paste the downloaded files (copied in the Step 7 above) to the newly created folder “C:/Program Files/Nokia/Phoenix/Products/RM-596″. Phoenix will look for the files in the above folder when flashing the phone (Nokia N8 in this case)
9. Launch “Phoenix” in PC and connect your mobile (Nokia N8 in this case) via Data/USB cable (Select PC Suite mode). In Phoenix, Go to “File/Scan Product”, Phoenix will detect the phone. Now select “Flashing/Firmware Update”
10. At the firmware update window, Phoenix will automatically look up and find the official firmware files earlier downloaded via Navifirm. However if it doesn’t find the files
a. Check that the directory “C:/Program Files/Nokia/Phoenix/Products/RM-596” exists, (create if it does not and place the firmware files into it – Step 8 above)
b. Check that the above path is present in all the three boxes in Tools/Options/Product Location (In Phoenix), set it if it does not and repeat steps 9 onwards.
If everything upto step 10 goes successful, select “Refurbish”, ignore all the warning boxes that appear during the process. Wait until the “Successful” dialog box appear (DO NOT touch or disconnect the phone or USB cable during the process). Press OK, phone will disconnect and restart. Thank God that everything went well….hopefully….best of luck
For any problem please leave a comment
You may also try flashing with J.A.F. software, described step-by-step in this post
Note – If Phoenix gives error while running in Windows Vista or 7 then try running Phoenix in compatibility mode (Right click on its icon – Properties – Compatibility – Tick/Check “Run this program in compatibility mode for Windows XP (Service Pack 3 or 2) – Click “Apply” and then OK).

Monday, December 5, 2011

Android for Nokia N8?

N8x0Install
Flashing How To - N8x0 - To Android And Back
NEW HOWTO GUIDE FOR DJ_STEVES BUILDS (based on Android 1.6 Donut)
--CHANGELOG--
Removed Google apps due to crashing and causing problems
Edited init.rc memory settings to allow more memory to be used.
Added E-Buddy Messenger
Added ASTRO File Manager
Added AndChat IRC Client
Added Connectbot ssh/telnet client
Added Snake Game
Added Twidget Lite Widget
Removed Voice Search/Dialer
Home screen now allows adding/moving/deleting items
Touch screen seems to be a bit inaccurate right at the bottom so try to keep off the very bottom edge - not too hard because buttons are fine size wish
I would say this build is just about usable - it still crashes when it goes to sleep sometimes though (omap watchdog reboots it)
Boot up does take some time so please be patient.
N8X0 Flashing Howto For Current Build:
2GB memory card minimum is recommended due to the partitioning I have setup. With this kernel image you have to use an external SD card. N810's internal SD card won't work because the kernel image is configured to boot from the external memory card.
HOW-TO:
Download above files to a working folder.
Load up your favourite disk partitioning tool and partition the SD card as follows. The example below is an 8GB card:
primary partition 1 = 1.43gb win95 lba type (vfat)
pri partition 2 = 1.86gb linux swap
pri partition 3 = 1.86gb linux (ext3)
pri partition 4 = 2.48gb linux (ext3)
Format the above partitions as needed. Parts 3 and 4 MUST be ext 3 as kernel does not have ext2 support currently.
Mount partition 3 as the root partition e.g. using mount for an SD card on /dev/sdb
/dev/sdb3 /mnt
Create the data folder and mount partition 4 on it, again for an SD card on /dev/sdb
mkdir /mnt/data
mount /dev/sdb4 /mnt/data
Extract the rootfs to the root and it should place files into the correct folders. Note: you must not leave out the p flag to tar.
tar xjvvpf rootfs-nitdroid-0.5.0.tar.bz2 /mnt
Unmount both partitions as they are now finished with.
If you haven't already grab the Nokia flasher tool
tablets-dev.nokia.com restricted downloads
In the terminal run the command, assuming you put flasher in same folder as zimage.
./flasher-3.0-static -f -k zImage --enable-rd-mode -R
Note: If you get the error 'Error claiming USB interface: Device or resource busy...." while attemptuing to flash, it is because automount or similar has mounted the n8x0 before the flash utility. To prevent this you must remove the kernel modules that recognise the N8x0 as a filesystem, using the commands:
sudo modprobe -r cdc_phonet
sudo modprobe -r phonet

IMPORTANT: WHEN DEVICE REBOOTS AFTER FLASH, PULL THE BATTERY AND PUT IT BACK IN AND BOOT, AS THE KERNEL WILL PANIC IF YOU DONT
Keep the cover open and be prepared to pull out the battery because the flashing+rebooting phase happens very quickly! You can put the battery back, close the tablet and boot normally after that.
Old Howto archived here for reference: (How to install android on n8x0 using Ubuntu host computer)

1. Prepare memorycard: [ALL DATA ON THE CARD WILL BE DESTROYED] - Open up a terminal window. - Insert memorycard you want to format - type
dmesg | tail
You'll see something like this: [28457.047170] sd 8:0:0:0: [sdb] 7915520 512-byte logical blocks: (4.05 GB/3.77 GiB) [28457.050878] sd 8:0:0:0: [sdb] Assuming drive cache: write through [28457.055041] sd 8:0:0:0: [sdb] Assuming drive cache: write through [28457.055047] sdb: sdb1
Now we know the card is device "sdb" it could also be sdc or sdd or so.
- type: [replace "sdb" with your card]
sudo fdisk /dev/sdb
[replace "sdb" with your card]
Now the fdisk should open. Type in the following commands:
[This will create a new parition table, confirm if needed:] o
[This will create a new primary partition size 100MB] n p 1 +100M
[This will mark the first partition as bootable, select partition 1 if asked] a
[This will set the partition type, select partition 1 if asked] t c
[This will create second partition size 100MB:] n p 2 +100M
[This will create third partition size rest of the diskspace available:] n p 3
[This will write all the changes to the card, confirm is asked:] w
Now lets format the partitions we just made - Type in terminal [replace sdb with you memorycard]
sudo mkfs.vfat /dev/sdb1
sudo mkfs.ext3 /dev/sdb3
Now the memorycard is correctly formatted for NITdroid. Let's put in the nitdroid root filesystem:
- Type in the following commands
sudo mount /dev/sdb3 /mnt -o noatime
- Download the rootfs to your home directory and name it "rootfs.tar.bz2" - Run the following commands
cd /mnt
sudo tar -pjxvf ~/rootfs.tar.bz2
At this point, a lot of text should appear. Once it finishes, you can unmount the memorycard
- Run the following commands
cd /
sudo umount /mnt

That's it. Memorycard is ready to use.
2. Flash Android kernel
- Download flasher-3.0 from tablets-dev.nokia.com restricted downloads to your home directory. - Download the kernel zImage to you home directory and name it zImage - Open up terminal window - Turn your n8x0 off and connect the USB cable. - Turn the n8x0 on while holding down the home button. (This should leave the device in a flashing mode, NOKIA screen with USB logo in top corner) - Run the following commands
chmod +x flasher-3.0
sudo modprobe -r cdc_phonet
sudo ./flasher-3.0 -f -k zImage --enable-rd-mode -R
Done. Now remove the USB cable and android should boot.
3. Flashing back to Maemo.
- Download flasher-3.0 from tablets-dev.nokia.com restricted downloads to your home directory. - Open up terminal window - Turn your n8x0 off and connect the USB cable. - Turn the n8x0 on while holding down the home button. (This should leave the device in a flashing mode, NOKIA screen with usb logo in top corner) - Run the following commands
chmod +x flasher-3.0
wget -c -O zImage http://stskeeps.subnetmask.net/mer/0.16/mer-armel-n8x0-standard-v0.16.zImage
sudo modprobe -r cdc_phonet
sudo flasher-3.0 -f -k zImage
Done. Now remove the USB cable and Maemo should boot.