Re: Flashing Galaxy S devices under Linux (Was: Upgrading Android Under Linux)

2011-06-16 Thread Amos Shapira
On 14 June 2011 23:35, Gadi Cohen dra...@wastelands.net wrote:

  On 13/06/2011 10:49, Amos Shapira wrote:

  1. I lost root after the flash. All links point to GingerBreak but
 multiple attempts didn't work. I now read that someone noticed it's done
 after leaving it for 2.5 hours so I'll try it again - I stopped it after
 letting it run for an hour. If you know of anything better then I'd love to
 hear.

 Yeah, you'll always lose rose if you flash back to a stock image.
 Did GingerBreak help you?
 Otherwise just flash any rooted / insecure kernel.
 (And then download su.apk etc...)


No it didn't.
I ended up downloading another kernel and installing it.
Once you go through it with Heimdall the anxiety level drops...:)



 Alternatively flash a custom ROM, which will have this all done for you.

   2. Hebrew keyboard - in Froyo I used Keyboard from Gingerbread with a
 Hebrew language pack, both from the market. But the Hebrew language pack
 says it doesn't suite a real gingerbread environment.

 Well, I'm currently using the SlideIT keyboard (like Swype but it's
 Israeli, had Hebrew support long before, and I found it has better 'error
 correction').

 The popular hebrew keyboard has always been the AnySoftKeyboard, haven't
 used it in ages though.


I used AnySoftKeyboard for a while until Keyboard From Gingerbread was
released on the market and I used that. It also had a Hebrew keyboard pack.
This was the best keyboard I had so far.
The funny thing is that now that I'm on Gingerbread the keyboard there is a
little less convenient than the one on The Market, and doesn't have Hebrew
keyboard option, but the one from the Market can't be used on Gingerbread
(at least it doesn't appear as an option after I installed it on Gingerbread
and tried to Change Input Method).
Any ideas?

For now I'm trying Better Keyboard 8 and already getting annoyed that
apparently I have to pay even to turn off the vibration (I'm OK with paying
after seeing that the application does what I need - e.g. I sent a donation
to the Heimdall and CWM authors).



   3. Battery life - what else can I do to extend it as this was my main
 problem with Froyo and I'm not sure how well GB does so far (but only one
 day of experience).


 Often ROMs have various tweaks to help with this.


Thanks.
It looks like the Gingerbread ROM with the newer root'ed kernel and some
tweaks turned via an application could sustain for about ~35 hours on one
charge. Still not ideal but far better than what I had before.
I'm still looking for ways to squeeze more from it, though.



 On my S1, I was using PilotX ROM and had great battery life; that was still
 Froyo though, but maybe there's an update by now.


What do you call great battery life?



 Don't forget, you may need to recallibrate the battery (more on this
 elsewhere... it involves wiping the battery stats from recovery and doing a
 few full full-empty-full cycles (i think from the lower level charger when
 you don't turn on the phone).


Yes I started doing that. Got the 35 hours after one such cycle.



 If you use something like OSMonitor and find that kswapd is always using
 lots of CPU, you can change some of the vm settings with sysctl... I don't
 recall off hand but I can check for you if you can't find it... vm_dirty or
 something, and I think one other one.


Yes one of the tweaks was to change swappiness, but also speed up SD card
access etc.
I use Battery Indicator, the graph is useful.



 Good luck!


Thanks,

--Amos
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Flashing Galaxy S devices under Linux (Was: Upgrading Android Under Linux)

2011-06-16 Thread Gadi Cohen
On 16/06/2011 10:15, Amos Shapira wrote:

 Once you go through it with Heimdall the anxiety level drops...:)

Haha I can relate to this!

Don't have any solution for the keyboard, unfortunately.  (As I
mentioned, I'm using SlideIT and it works great).

Glad Heimdall is getting a good response from Israel... donated to that
too.  Was such a pleasure not to have to load up W7 in VirtualBox, it's
the only thing I've needed Windows for in a very, very long time.

 It looks like the Gingerbread ROM with the newer root'ed kernel and
 some tweaks turned via an application could sustain for about ~35
 hours on one charge. Still not ideal but far better than what I had
 before.
 I'm still looking for ways to squeeze more from it, though.
Dude, 35 hrs is like... ridiculously good!  I hope you're not looking
for 3 days like we used to get with Nokia's from a smart phone.  Great
battery life for me is finishing the day with above 50%.  It was a
massive improvement over original Galaxy S use (with stock ROM) where
the battery would be dead in the middle of the day, and would have to
charge at work, etc.

Yeah I guess I have something similar called Juice Plotter.  I judge
battery life now based on how long it takes to discharge 10%.  Good = 4
hrs.  Bad = 1 hr.  That good was on my Galaxy S II though, but
sometimes it still gets bad, still working things out here.

-- 

Gadi Cohen aka Kinslayer dra...@wastelands.net www.wastelands.net
Freelance admin/coding/design HABONIM DROR linux/fantasy enthusiast
KeyID 0x93F26EF5: 256A 1FC7 AA2B 6A8F 1D9B 6A5A 4403 F34B 93F2 6EF5

//
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Flashing Galaxy S devices under Linux (Was: Upgrading Android Under Linux)

2011-06-16 Thread Amos Shapira
On 16 June 2011 19:59, Gadi Cohen dra...@wastelands.net wrote:

 **

 On 16/06/2011 10:15, Amos Shapira wrote:

  Once you go through it with Heimdall the anxiety level drops...:)


 Haha I can relate to this!

 Don't have any solution for the keyboard, unfortunately.  (As I mentioned,
 I'm using SlideIT and it works great).


I'll try to look at it. Thanks for the pointer. So far I always went back to
regular keyboards after trying new methods for a while.


 Glad Heimdall is getting a good response from Israel... donated to that
 too.  Was such a pleasure not to have to load up W7 in VirtualBox, it's the
 only thing I've needed Windows for in a very, very long time.


This one would actually count towards Australia's credit. :^).

I actually went with Heimdall after trying the more tried route of windows
7 + Odin (because Odin gets so much more examples on the web) but Windows 7
+ Parallels on top of Mac OS-X + SGS in Kies mode = Fail to recognise the
device.


  It looks like the Gingerbread ROM with the newer root'ed kernel and some
 tweaks turned via an application could sustain for about ~35 hours on one
 charge. Still not ideal but far better than what I had before.
  I'm still looking for ways to squeeze more from it, though.

 Dude, 35 hrs is like... ridiculously good!  I hope you're not looking for 3
 days like we used to get with Nokia's from a smart phone.  Great battery
 life for me is finishing the day with above 50%.  It was a massive
 improvement over original Galaxy S use (with stock ROM) where the battery
 would be dead in the middle of the day, and would have to charge at work,
 etc.


Yeah, pretty much same here except that I usually managed to get a full day
out of it. (with WiFi/GPS/Bluetooth turned off when not in use). Today I got
44% left after 14 hours since last charge, with WiFi on all that time.


  Yeah I guess I have something similar called Juice Plotter.  I judge
 battery life now based on how long it takes to discharge 10%.  Good = 4
 hrs.  Bad = 1 hr.  That good was on my Galaxy S II though, but sometimes
 it still gets bad, still working things out here.


Cheers,

--Amos
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Flashing Galaxy S devices under Linux (Was: Upgrading Android Under Linux)

2011-06-14 Thread Gadi Cohen
On 13/06/2011 10:49, Amos Shapira wrote:

 1. I lost root after the flash. All links point to GingerBreak but
 multiple attempts didn't work. I now read that someone noticed it's
 done after leaving it for 2.5 hours so I'll try it again - I stopped
 it after letting it run for an hour. If you know of anything better
 then I'd love to hear.
Yeah, you'll always lose rose if you flash back to a stock image.
Did GingerBreak help you?
Otherwise just flash any rooted / insecure kernel.
(And then download su.apk etc...)

Alternatively flash a custom ROM, which will have this all done for you.
 2. Hebrew keyboard - in Froyo I used Keyboard from Gingerbread with
 a Hebrew language pack, both from the market. But the Hebrew language
 pack says it doesn't suite a real gingerbread environment.
Well, I'm currently using the SlideIT keyboard (like Swype but it's
Israeli, had Hebrew support long before, and I found it has better
'error correction').

The popular hebrew keyboard has always been the AnySoftKeyboard, haven't
used it in ages though.
 3. Battery life - what else can I do to extend it as this was my main
 problem with Froyo and I'm not sure how well GB does so far (but only
 one day of experience).

Often ROMs have various tweaks to help with this.

On my S1, I was using PilotX ROM and had great battery life; that was
still Froyo though, but maybe there's an update by now.

Don't forget, you may need to recallibrate the battery (more on this
elsewhere... it involves wiping the battery stats from recovery and
doing a few full full-empty-full cycles (i think from the lower level
charger when you don't turn on the phone).

If you use something like OSMonitor and find that kswapd is always using
lots of CPU, you can change some of the vm settings with sysctl... I
don't recall off hand but I can check for you if you can't find it...
vm_dirty or something, and I think one other one.

Good luck!

-- 

Gadi Cohen aka Kinslayer dra...@wastelands.net www.wastelands.net
Freelance admin/coding/design HABONIM DROR linux/fantasy enthusiast
KeyID 0x93F26EF5: 256A 1FC7 AA2B 6A8F 1D9B 6A5A 4403 F34B 93F2 6EF5

//
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Flashing Galaxy S devices under Linux (Was: Upgrading Android Under Linux)

2011-06-08 Thread Diego Iastrubni
On יום שלישי 07 יוני 2011 22:13:22 Gadi Cohen wrote:

 Right, I finally overcame my fears and successfully flashed my SGS II
 I9100 in Linux yesterday.

I just used the recovery console to install this ZIP:
http://download.cyanogenmod.com/get/cm_galaxysmtd_full-21.zip

I also formatted the sys partition from the recovery console (I had my phone 
rooted, ever since I installed the PilotX ROMs).

I am using Pelephone here for a day, and meanwhile I *do* konw that sending 
MMS does not work. Camera works quite good. No idea about GPS. Wifi works, but 
manytimes I need to refersh the pages... seems like this is not perfect yet.

Also:
Do not enable 2G. Keep in 3G as there is a bug in the kernel, see the FAQ.

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Flashing Galaxy S devices under Linux (Was: Upgrading Android Under Linux)

2011-06-07 Thread Gadi Cohen
On 11/05/2011 15:48, Amos Shapira wrote:

 I'm following the forums around it but from what I heard CM7 doesn't
 fully support the SGS yet though this might change soon since Samsung
 released the kernel sources a few weeks ago.

First piece of news is this:
Samsung Delivers Galaxy S II to CyanogenMod Dev, Says Get to Work
http://phandroid.com/2011/06/06/samsung-delivers-galaxy-s-ii-to-cyanogenmod-dev-says-get-to-work/

 If someone can point me to *detailed* instructions how to achieve that
 without Odin then I'd love to hear - I don't have time to mess with a
 dead phone if I screw things up or to sit through tons of text which
 assumes you already know tons of jargon TLA's etc. I tried following
 instructions but they all either start by assuming you know the
 acronyms and the basic stuff or I end up chasing explanations of the
 terms used in the instructions.

Right, I finally overcame my fears and successfully flashed my SGS II
I9100 in Linux yesterday.

I'll be as detailed as I can, but ultimately exact instructions would
depend on which ROM you want to flash.

Basically:

1) Download and install Heimdall from here:
http://www.glassechidna.com.au/products/heimdall/
There are debian packages (.deb) which can be installed in Ubuntu/Debian
or converted to RPM.

2) Download whatever ROM you want.  Unzip/unrar/etc to get the .tar.md5
file.
This is just a regular tar file.  Odin can read it all in one go.
For Heimdall you need to untar it, and specify each file separately.

3) Get the phone into download mode.
From a powered off phone, hold down vol-down, home, and power.

4) There's a Heimdall GUI which I didn't use (since it's not updated for
the latest version).
But the command line is very easy.  Run heimdall with no arguments for a
list of options.
Then it's a matter of specifying what each file is.

The (possibly) less obvious ones are
* zImage is the kernel
* Sbl.bin is the Secondary Boot Loader

Then it's just (as an example):

heimdall flash --factoryfs factoryfs.bin --kernel zImage

Yeah, it's that simple.  For a full (stock) ROM it would probably be:

heimdall flash --primary-boot boot.bin --cache cache.img --factoryfs
factoryfs.img --hidden hidden.img --modem modem.bin --param param.lfs
--secondary-boot Sbl.bin --kernel zImage

Some ROMs require you to repartition how the memory is divided, in which
case you'll also need, for example, --repartition --pit 512.pit.

5) When Heimdall finishes, the phone reboots automatically with the new ROM.

Note, that's the flashing part, which is easy, but ROMs in general
might be a bit more complicated.  e.g. especially for the Galaxy S II
which is new, you might need to e.g. wipe the phone before flashing. 
You should definitely wipe the cache if you don't flash a new one.  You
can do these actions from recovery mode (power on with vol-up, home,
power).  Note, the SGS I is sometimes hard to get into recovery, see my
previous note in a previous email about that.

The point is, even if you flash successfully, other things could still
go wrong.  But then it's not a problem to just reflash the device.  Just
make sure you don't unplug or power off during the middle of a flash! 
Generally speaking, if you aren't trying to keep your user data between
flashes, more than likely if you flash a base ROM, and then a custom ROM
known to work on top of that base rom, your chances of success are very
high.

Let me know if anything wasn't clear, and good luck :)

G

-- 

Gadi Cohen aka Kinslayer dra...@wastelands.net www.wastelands.net
Freelance admin/coding/design HABONIM DROR linux/fantasy enthusiast
KeyID 0x93F26EF5: 256A 1FC7 AA2B 6A8F 1D9B 6A5A 4403 F34B 93F2 6EF5

//

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il