yashsingh1/xdaforums huggingface dataset:
[XPERIA X1 Android Development] Forged:
help me to run andriod... i manage to run ubuntu tho~

any1 can help me how to run android on my xperia? I already tried it yesterday but it stays at "booting linux" not where there a lot of text running across the screen

ok this is what i do :

Extract fatsal-xperoid-20100221. inside got following files:

- calibration

- haret.exe - i get haret from ubuntu file

- initrd.gz

- modules-2.6.27-00888-g339bdfc-dirty.tar.gz

- rootfs.img

- STARTUP.TXT - copy from the provided in the 1st post

- system.sqsh

- zImage - update the zImage from Xperiod

- conf/*.user.conf

- AndroidApps/*.apk

4. go to conf/ and delete eclair.user.conf, then rename eclair.user.conf~ to eclair.user.conf.

6. Copy all files and directories to the root of your sd-card. ( The first time running andriod, i put in storage card/... , Then the second time i try to run andriod, i put in storage card/android/..

7. On the X1 open the sd-card and run haret.exe. Then it stays it the "booting up linux more than 15min.... Try it twice too~

*Mostly i follow the step written in Vdelf => http://xdaforums.com/showthread.php?t=650559
[XPERIA X1 Android Development] n00b3r:
You can make your own swapfile and use that one instead.
[XPERIA X1 Android Development] n00b3r:
You shouldn't put it in a folder, you need it to be the root of the SD card.
[XPERIA X1 Android Development] Forged:
yea, as i said, i did in the first time.. I put in in the root of SD card. i do have the correct file. right??.. hmm.. my X1i just stuck at booting up linux... it wont go to the alot of word running across the screen... but i did manage to run ubuntu...let me try again~
[XPERIA X1 Android Development] vdelf:
I just tried it and guess what - it worked!

A quick compare of file permissions after extraction with squasfs-tools 3.3 and 3.4-1 showed differences, so i assume, thats why it did not work. I extracted system.sqsh as root. Please make sure, u are using the correct version. unsqhashfs -v must give you 3.4. Dont change any permissions inside the squasfs-root-dir, just copy the content over to the partition with cp -r -p -v source target. That worked for me.

Turning off boot animation does not help. I tried that but it will show black screen, bot no log.
[XPERIA X1 Android Development] Mic159:
hmm i did

unsquashfs system.sqsh

cp -rp squashfs-root/* /media/sys

When I run unsquashfs, the resulting files in squashfs-root are just all owned by my current user.

can you package it up in some other format? like a .img to dd onto the partition?

I also tried to:

sudo mount -o loop system.sqsh ./squashfs-root -t squashfs

cp -rp squashfs-root/* /media/sys

But it says 'SQUASHFS error: Major/Minor mismatch, older squashfs 3.1 filesystems are unsupported'.
[XPERIA X1 Android Development] X1iser:
For the first time I copy Android via ActiveSync and it stuck at booting up linux of haret.exe

Try to copy all files via USB Disc Drive or what you have to plug the card directly on the computer... If you have not already tried, of course ^^

It worked for me, I hope it will work for you ;)
[XPERIA X1 Android Development] vdelf:
Correct, assuming /media/sys is the mounted system-partition on sd-card.

That is the problem. Most files are owned by root, some have special uid/gid. If i remember the status message correct, then there are four different user-ids.

What version does

unsquashfs -v

show? Mine says now 3.4. Try to extract as root.

Dont know, but i will try :D
[XPERIA X1 Android Development] chabbe11:
Is this project closed? He hasn't updated it in 2 months...
[XPERIA X1 Android Development] dexteral:
dont read the title of the thread. read the last 10 pages to know the progress. anyway the only main issue left with runnin android is the backlight and ........ the sound issue is resolved
[XPERIA X1 Android Development] Mic159:
Yes it is :)

It shows 3.4, i used the deb you posted.

I ran the unsquashfs as my user, not root. Maybe it uses your current user when not running as root? to make sure the current user can always access the extracted files?

I will give it another shot with sudo unsquashfs.

UPDATE:

OMG! IT WORKS! YAY!!!

So the lesson learnt is that you must run the unsquashfs as root (or sudo). and use cp -pr to preserve the permissions.
[XPERIA X1 Android Development] Ape187:
It created a Android folder at my sdcard too. I've moved the zImage an the other files into the Android folder and only the AndroidApps and the media folder kept in the root of the sdcard. Then I ran haret and it bootet just fine.

If it won't boot then open the STARTUP.txt and add rel_path=Android in the set cmdline then it looks like this:

set cmdline "init=/ console=tty0 rel_path=Android msmsdcc_id=3 imgdevname=/dev/mmcblk0p1 imgdevnum=1 imgdir=/ msmts_calib=0x0366.0x04b.0x0c8.0x038e fbcon=rotate:2 wifi.mac=00:23:45:37:17:2c lcd.density=240 msmvkeyb_toggle=off pmem.extra=1 no_console_suspend clock7x00.mddi=0xa51"

I hope it helps.
[XPERIA X1 Android Development] Mic159:
Battery problems

Hey guys, just wanted to share a workaround for the battery issues we are having atm.

Add this to the startup.txt cmdline parameters to stop it showing low battery:

htc_battery_smem.fake=1

It makes android think its plugged in.

Source:

http://xdaforums.com/showthread.php?p=5215064#post5215064
[XPERIA X1 Android Development] Forged:
:D Android is working on my X1!!!!! :D wooo, actually all i had to do is extract the latest xperiod, copy start up and run haret.. the drawback is only the power consumption and no sound.. Keep it up! :D
[XPERIA X1 Android Development] Musse_1:
Sound is working thanks to drlucky kernel update few post back http://xdaforums.com/showthread.php?p=6124177#post6124177
[XPERIA X1 Android Development] twerg:
Hi, first post here, love the android port we are using here, runs well for me except the common issues, not sending sms, backlight etc.. All in good time.

Relating to the battery fix where we add "htc_battery_smem.fake=1" to the startup.txt file, does that just simple go at the end of the txt file? Add a 'space' then 'htc_battery_smem.fake=1' after the last character??

Thats what I did, still got battery flat messages thought it my x1 seemed to last longer that usual, 30mins perhaps with no use..

Thanks
[XPERIA X1 Android Development] Mic159:
It goes on the end of the "set cmdline " line

like this:

set cmdline "init=/ console=tty0 ..... htc_battery_smem.fake=1"
[XPERIA X1 Android Development] dexteral:
not workin, the android system is fooled into thinking that it is being charged bt it still turned off. good thing about it is that there were no annoying notifications about battery being low. did it work for u?
[XPERIA X1 Android Development] n00b3r:
Yep, that's right. If you do not run it as root, all the ownership of the files will be chowned to the user you extracted it with.
[XPERIA X1 Android Development] drlucky:
Headset / Battery issues

Hi,

First I'm trying to understand how the headset is recognized by the kernel. All my tests doesn't work. I'm pretty sure that the code for enabling the headphone should be 90% OK, but this code is never called when I plug in the headphones. I'm still searching the kernel code for the jack detection ... I will have a look into this next week.

Second I had a quick look into the battery code for the HTC. Very complicated code, especially some formulas and a battery type detection. The latter is most likely not correct for the kovsky, but I think something else is not working for X1 as well. My battery changes from 80% to 35% and back. Is there someone who has more technical details on the battery itself or the code in the htc_battery_smem.c (I think that was the name of the file in the arch/arm/mach-msm folder, I'm currently not at my computer at home).

Third I tried to compare the kernel we're using (vdelf, me and angusmcb as well I think) with the one from fatsal - I think there are some modifications in fatsal's code that are not merged into the official repository. I have copied some of the battery and h2w code, but the kernel seems to behave as before. When I have som more luck, I will commit my changes into our clone of the repository.

Have a nice weekend!
[XPERIA X1 Android Development] Jonny4911:
wow i finally got android booting via a partitioned sd card thanks to this :D

and i also found another thing in the process if you plug in your phone charging and then boot android, when you take out the battery android stays on :eek: and reports 100% battery

while on windows mobile it just turns off (i think) also the phone will no longer start if the battery is out even if the charger is in...
[XPERIA X1 Android Development] linuxtux:
Other (HTC) devices are also having issues with Android reporting inaccurate battery capacity.

There is a calculation that is used to determine battery capacity, and uses a variable that is inserted during booting, which in our build is 1340.

Dmesg output...

[ 3.472991] init_battery_settings, VREF=1264, 0.5 VREF=632

[ 3.488403] init_battery_settings, ADC_A=988, ADC_B=1168

[ 3.509552] get_battery_id_detection, HTC_SMEM_BATTERY_ID = -55

[ 3.524780] get_battery_id_detection, batt_id_kohm = 1037146

[ 3.540191] get_battery_id_detection, vendor = 2, capacity: 1340

Others have been able to adjust the variable capacity value to improve the reporting of battery capacity, thus reducing Android from rebooting when there is still amble battery capacity.

This thread http://xdaforums.com/showthread.php?t=644453 has a discussion on this topic utilising board-kaiser-battery module, which isn't present in our build. There must be an option to change the variable in our build, just not sure where?
[XPERIA X1 Android Development] neock:
i wanna enable and andoid on x1 using the swapfile each time i boot andoid automaticly, so i may not need to "swapon" each time i boot the system using terminal(since my "?" key has some hardware mulfunction). is there any way to make it happened? i tried seach with "batch terminal" or "enable swapfile auto" and some other key word with google but no hope.

tks, b.rgds
[XPERIA X1 Android Development] n00b3r:
Mount rootfs.img using your favourite Linux distribution, and edit init

Find the line that looks like:

else "Kovsky Build found", and then add the line afterwards:

swapon /sdcard/swapfile

Save, and unmount the rootfs.img

Then copy your rootfs.img over to your sdcard.
[XPERIA X1 Android Development] twerg:
Mic159, thanks for the reply, it works in that it now believes that it is charging. Hopefully no shut downs now until the battery is truely flat. Cheers
[XPERIA X1 Android Development] neock:
thx for the reply

but is it possible to deal with it all using just andoid?

since im not familiar with linux....
[XPERIA X1 Android Development] sp3dev:
we'll really need to look into the battery formulae, but i guess now there are two ways to "fix" the problem. really, just to hide it

1. In the android source tree, go to frameworks and grep for "ShutdownThread", then fix the files to disable shutting down when power is critical

2. Or, in kernel, fix the driver to report the old value if the battery level has changed more than, say, 20% in several seconds. Still, that's not ok, but I've not yet looked into it
[XPERIA X1 Android Development] Viper89:
What is the biggest swap file you use? Also will more swap increase performance, I was going to delete one of my PlayStation games that I don't play anymore because it's like 600mb+ and convert it to swap:).
[XPERIA X1 Android Development] n00b3r:
I'll make a rootfs.img, that does that, and upload it so you can use it.

Edit: Here it is - http://www.mediafire.com/?r2yzmykrnyf

The biggest swap you can make is the amount of free space you have on your card. However, it won't give you any performance increase for having more. It will allow you run more programs in memory, but the more swap you use, the slower it gets due to the read/write speed limit on your SD card.
[XPERIA X1 Android Development] Jonny4911:
also i believe that having a swapfile on your sd card will decrease the overall life of your sdcard because of the amount of read/writes the swapfile causes
[XPERIA X1 Android Development] Musse_1:
I'm a bit confused, wasn't so that sometime ago we had a tip from hotlein to remove mem=102M from set cmdline in startup.txt file (and to set swap_file_en=0 in eclair.conf file) after that everything works much faster and without errors (182MB whole Memory, 0MB swap)
[XPERIA X1 Android Development] n00b3r:
It works much faster because of the additional memory space that's been allocated, making the swap less of a factor. Swap is very slow compared to RAM, but it is a better alternative than having programs crash/complain about lack of memory.

I'm not sure what swap_file_en does in eclair.conf as I didn't have time to investigate, but I've added swapon /sdcard/swapfile into the init of Android (in the rootfs.img I uploaded) to make sure it enables swap on boot.

Edit: Just looked at eclair.user.conf; you actually don't need to download the rootfs.img I uploaded... all the swap related commands are in the file that'll be executed during boot. Change swappiness to a lower value if you don't want Android to swap as much so you will have the benefit of using most of the actual RAM first before you start using swap.
[XPERIA X1 Android Development] drlucky:
Yes - I've found that code and did a small hack like "if kovsky then capacity = 1500" (should be the capacity of the standard sony ericsson battery).

Found that one as well, but as far as I understand that only changes the capacity of the battery and bypasses the detection shown above. The battery percentage still "jumps" sometimes.

sp3dev made a good suggestion about ignoring battery information, if it is too far away from the last one. I will try to change the code to calculate the average battery level from the last lets say 10 informations and ignore anything that is way too far away from that. That should help reducing the jumping battery level ... additionally I will try to log some battery information and maybe there's some login in it :)
[XPERIA X1 Android Development] _Sensible:
@drlucky,

Awesome stuff!

@angusmcb

Regarding backlight - After some reversing I believe kovsky does have microp-klt, however the version just isnt there. We should ignore the errors with regards to it. Having a look at a haretconsole trace we should be able to see what i2c commands are used to control the backlight.

(btw is it just me or does kovsky not allow you to change brightness? backlight is either on or off?)
[XPERIA X1 Android Development] drlucky:
I'm having strange effects on my phone - if I open op the Android System App (don't know the exact name right now) the battery display differs from the symbol in the top bar of android. Does anybody know if they use different sources for their data? The System app looks promising, but the android icon on top just jumps around from 80% to 20% (rough estimate) ...

Testing is a little tedious because my phone always restarts if I remove the charger and my battery is <= 50% in WinMo ... need to charge the phone or include a hack in the battery code beforehand.
[XPERIA X1 Android Development] angusmcb:
The assembly listing I posted earlier is microp.dll from a working Kovsky WinMo rom. It is quite clearly reading the version info from microp-klt. It's über-wierd we can't get any reply in linux.
[XPERIA X1 Android Development] jwte:
You can change backlight. I have test it with a program in spb ms 3.5 and it change the brightness or have it in auto mode and use the sensor to the left of the phonecall speaker to change it.
[XPERIA X1 Android Development] Mariol:
Thank you to everyone involved in this project

Thank you all guys, i tried the latest kernel and i really dig it;

once the backlight and battery problems are solved i think i'm gonna ditch WinMo for Android... keep up the good work.
[XPERIA X1 Android Development] likuncheng1987:
hello,thanks for your hard work~~

but I have something wrong.

I'm in China and my phone's GPRS doesn't work,wifi doesn't work,too.

I have tried many method to surf the internet,but it doesn't always go to the edge,

and no sign of edge exist on my X1.

Could you understand me?

no matter what happened,thank you~

Chinese
[XPERIA X1 Android Development] sp3dev:
@likuncheng1987

Have you entered your APN in the Settings? It should work then. At least, I'm using the rootfs from blackstone (the one with rosie, find it in the HERO thread) - GPRS works. No luck with wifi though
[XPERIA X1 Android Development] neock:
using the latest zimage with its patch of wifi networking and should be fine.

remember to rebuild "data.img" in order to have new one. and advicing deleting "cache" folder as well.

you do not need to touch any thing in APN settings, android will recognize china mobile and work.

so far, not tested on china unicom and china telecom.
[XPERIA X1 Android Development] likuncheng1987:
thanks for your reply,i will test it .~~
[XPERIA X1 Android Development] neock:
@n00b3r

in my understanding that eclair.user.conf only creates swapfile but not enabling it in boot sequence. so a init file edit is needed.

tell me if i'm wrong.
[XPERIA X1 Android Development] fatsal:
why you guys show up when i'm losing my phone...:(
[XPERIA X1 Android Development] Dynad:
How can you lose your x1? :confused:
[XPERIA X1 Android Development] n00b3r:
Not too sure; you can always use the rootfs.img I uploaded that has the swapon command in the init.
[XPERIA X1 Android Development] pedrocel85:
Hey guys,

Just a sugestion...why dont sing up this xperoid project in the task force from the whole XDA forum, the XDANDROID.

http://xdaforums.com/showthread.php?t=601751

They join many efforts in make the hardware run...

singup xperoid there!

:-)

best,

pedro
[XPERIA X1 Android Development] alkatheri:
fatsal we all wish u didn't lose ur phone, so that u can help everyone with the project.
[XPERIA X1 Android Development] budisupriadi:
Good Job..

hello..i'm new here.n the first time i open this form,i'm very interesting with ur thread. I have downloaded n copy it to my phone sd card.i have a question about how to change a phone ringtone when i have an incoming call.. i have open the sound & display setting n open the phone ringtone, but there is only a silent option...

thx anyway..
[XPERIA X1 Android Development] Hardzen:
and again

you may take a look at the thread "HOWTO run ANDROID on X1 "
[XPERIA X1 Android Development] neock:
@n00b3r

tks, will try. contacting my friend in other country to download it for me since mediafire blocked by my country.

b.rgds
[XPERIA X1 Android Development] zyotty:
how will we know when the phone's battery is running out if the batterymeter stays at 100%?in the sys info,battery still being read as 100%.:confused:
[XPERIA X1 Android Development] cr4zy.b0y:
is there a chance that this rom woul work on htc blackstone ? it seems way faster than those in blackstone android roms :) .... thanks :)
[XPERIA X1 Android Development] likuncheng1987:
Hello,I want to make the program background,but others tell me I need to press the home button,so I want to know which button the "home" is?

thanks
[XPERIA X1 Android Development] dexteral:
panel button
[XPERIA X1 Android Development] likuncheng1987:
thanks

~~~~~~~~~~
[XPERIA X1 Android Development] jescca:
I have tested the for one day.........reset my x1 for so many times....
[XPERIA X1 Android Development] Vongola:
Upside down Touch

Hi!

I've got one weird problem.

The screen itself is working properly but when I want to use the touch screen i have to imagine the screen upside down and guess where to touch:S

How do i fix it?
[XPERIA X1 Android Development] Musse_1:
what files are you using, dates?
[XPERIA X1 Android Development] sjw6820528:
wow souds great,let me try,ahahaaaaaaaaaaaa!!!
[XPERIA X1 Android Development] knownie:
Sweet

its a very useable and neat....but i will use it when the back light issue is resolved :( dont want my lcd to burn
[XPERIA X1 Android Development] lofarkas:
Hi everyone, here is a question to the developers:

What's the plan here? The functionality seems to get pretty close to where android will be a viable full-time OS for Xperia owners. Could there be a way to flash Android onto the Xperia and make it the phone's only OS as opposed to running it from the sd card as a toy you can play with?

Would it run at close to the speed you get from comparable hardware that was released with Android on board?
[XPERIA X1 Android Development] republicano:
i percieved the plan as getting all the hardware setting and making them stable enough to run it effectively, then compress the files so they would fit on the memory then run under ram,emulation/porting and speed i would say come after or when its time to run it off the phones memory, speed would good since it runs under ram but it will consume battery while loading like usual

sorry if i created confusion,writing this with the xperia.
[XPERIA X1 Android Development] Saiyajin:
So Xperoid is dead or what? I was really looking forward to use it someday instead of WinMo. :(
[XPERIA X1 Android Development] ukon:
have you been in this thread before?:

http://xdaforums.com/showthread.php?t=666735

The development continued there instead.

The latest update was 10 days ago. So.. No, the development haven't stopped yet.
[XPERIA X1 Android Development] chabbe11:
Shame that this isn't beeing updated any longer.

It isn't fully complete and I'd like to see this working 100 %.

Great work though fatsal!
[XPERIA X1 Android Development] ilgreco112:
fatsal left us :( sanjayecb is working on 2.0.1 and 2.2 :)
[XPERIA X1 Android Development] Reversedhex:
hey fatsal i have some troubles following your guide on post #2

because the new repo is different..?

could you confirm these changes in red;
[XPERIA X1 Android Development] Omega Kaos:
if i flash my hd2 with a rom for another fone will it brick my phone and if so how do i revert it back to a custom rom, just flash it as normal?
[XPERIA X1 Android Development] circleofomega:
with "a" ROM do u mean this ROM (devs dont call it that BTW) then no..this doesent do anything to ur ROM which is on the phone...this is on your mem card..so whetever u do, stays on ur mem card...as far as i know...

PS: BTW, how did u get the 'Ω' sign in your name??
[XPERIA X1 Android Development] Omega Kaos:
No i ment if i created my own android rom based on the HTC Evo G4 and ported it to the Leo.

I used Windows Character Map "Start -> All Programs -> Accessories -> System Tools" its some where in the i got the Ҡ from there as well :)
[XPERIA X1 Android Development] circleofomega:
aaa...sorry my limited knowledge wont allow me to answer that..ask some dev, fatsal or sanjay...
[XPERIA X1 Android Development] calvinfoo:
Umm gd job with the android.

But i have a problem wth the market apps,

when i choose an app to install, the left hand

corner will tell me that my download was unsucessful

I have tried google for help, but no results.

Pls solve this problem 4 me. thks in advance.
[XPERIA X1 Android Development] hakkai999:
Man i love you guys! You guys rock! First time poster but ive been lurking around for a while. Love your work! Keep it up and i hope ill be seeing a full working android on x1 and maybe after that a full rom! :D
[XPERIA X1 Android Development] anthraxx:
Hey, is this normal?

The screen is upside down ( i knew that ) but i gotta hit it like its not upside down, only mer or?

EDIT: I restarted the phone and it worked alright, the screen was not upside down and all the touch functions worked :D
[XPERIA X1 Android Development] lepkin:
a new version?
[XPERIA X1 Android Development] bob`0`:
works..sorta

it runs on the xperia -x1a so thats good but there are some issues keyboard works but can use numbers so have to use onscreen keyboard for that. Screen is upside down but when its in portrait mode i have to clik as if its not upside down. overal great so far keep working on it:)
[XPERIA X1 Android Development] bob`0`:
hot phone

after about 20 min of use phone gets unusually hot and battery always shows that its halfway even though the phone is fully charged as well screen never turns off the backlight stays on when the phone goes into sleep mode other than that it works fine and is very nice:)