yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] gblues:
[Kernel][Ref] Samsung Gravity Smart SGH-T589 Technical info & custom kernel project

The Samsung Gravity SMART is a low-midrange Froyo-based Android phone. It hasn't gotten a lot of attention because it's on an unpopular carrier (T-Mobile) and LOL QWERTY KEYBOARD. I intend to change that.

Technical Specifications

Below is information I've gleaned from spec sheets, Internet research, and judicious use of a loupe on my wife's broken phone.

Platform: Qualcomm S1 Snapdragon 7227 @ 800Mhz

CPU: ARM1136EJ-S

Touchscreen: ATMEL mXT224E

WiFi: Broadcom 4329

GPU: Adreno 200

RAM: 320MB, 275MB accessible

Bluetooth: ???

[more later--I'm at work and don't have all my notes]

Kernel development

I don't have anything to release yet. As a proof-of-concept, I've successfully compiled the sources provided by Samsung. It boots, but two big issues prevent me from releasing anything:

The coordinates on the digitizer are inverted--i.e. tapping the top left corner activates the bottom right, and vice versa.

The menu, back, and search capacitive buttons don't work at all.

Upcoming Features

Here's what I'm planning to add to the kernel once driver issues are resolved:

More CPU frequency scaling options

More scheduler/governor options

What's not planned

Gingerbread/ICS (phone needs updated boot loader to support 2.6.35 or later Linux kernels so we are stuck w/ Froyo for now)
[Miscellaneous Android Development] gblues:
I managed to hack the touchscreen driver to kinda-sorta work (at least the axes are correct now), but it's still not quite right. It's very inaccurate, which makes drawing anything (i.e. trying to play Draw Something) not work at all.

ATMEL has released drivers for the mXT series (including the 224E) but I'm having trouble getting it to work properly. Going to compare it against the kinda-working driver and see if I can fix it.
[Miscellaneous Android Development] gblues:
I found part of the problem, but I'm still having trouble with getting the driver to even load. Still, I discovered that the stock touchscreen driver only supports 2 simultaneous touches--the chip actually supports up to 10 simultaneous. I'm hoping to get the driver working so it's actually usable. :)
[Miscellaneous Android Development] du57:
I have a friend with this phone i'm curious to see what you can do with it!
[Miscellaneous Android Development] gblues:
Man, this touchscreen driver is kicking my butt.

The official Atmel drivers don't work at all--the i2c call(s) fail during initialization and you get no touchscreen input.

The driver in the kernel released by Samsung is broken, too. In the default configuration, both axis are inverted so you have to tap the top-right of the screen to tap on something that's actually in the bottom-left. And the navigation buttons at the bottom don't work at all (menu/back/search).

So far all I've managed to do is at least get the orientation fixed, but the driver's still broken--you can't tap on anything on the edges (left/right), and the scaling is wrong so taps are mis-aligned in different parts of the screen. It's hard to describe, but comparing the output of YAMTT on stock kernel vs. compiled kernel shows glaring problems.

At this point I am trying to fix the Samsung driver, since it at least partially works. In the process, I'm doing a pretty massive code cleanup, mainly code organization and complete debug info that will make it easier to dissect exactly how the driver works and hopefully find the cause of the freaky behavior.
[Miscellaneous Android Development] gblues:
I've overhauled the debug output of the Samsung driver so that it's easier to parse via grep. The next trick will be actually fixing the driver.. but I'm going to be gone for annual training for the next two weeks, so things will be on hold until I get back.
[Miscellaneous Android Development] SefEXE:
I'm very excited to see what can be done with this for the phone. :D

This is my girlfriend's first android phone and while she's enjoying it, I want the experience to be better for her.

Good luck with your training!
[Miscellaneous Android Development] srjvargas:
Nice choice :)

This is a powerful device but unfourtuneally is an unpopular one, so there is not many developers with the Gravity :(

I strongly recommend you to install to follow and install this ROM on your girlfriend's phone: http://xdaforums.com/showthread.php?t=1320187
[Miscellaneous Android Development] gblues:
Well, I've managed to get a 3.6.35.7 kernel to boot on the phone.

Samsung released the kernel source for the SGH-T589W which seems to be a Gingerbread edition of the Gravity Smart. The kernel builds successfully and manages to boot, but it gets stuck on a black screen. However, it does show up in the 'adb devices' list, so it's a start.

I believe the problem is the lack of both the OneNAND driver (AKA LinuStoreIII) and the RFS filesystem support. The modules from the stock kernel are compiled against 3.6.32.x so they don't work with the newer kernel.

My Google-Fu has turned up partial source for the same version of LinuStoreIII for the 3.6.35.7 kernel, and it successfully compiled. However, I haven't had any luck finding an RFS module.

EDIT: I think I found what I need, but I won't know until I get home!
[Miscellaneous Android Development] srjvargas:
NICE, keep us with update with the news :) :highfive:
[Miscellaneous Android Development] gblues:
Well, I thought I had something, but it's still not working quite right. I've got the parts for my debug cable on order. Should get here within the next week.
[Miscellaneous Android Development] gblues:
Well, I haven't yet gotten the serial output yet, but I do have a much more detailed output from dmesg now. I'm attaching it below.
[Miscellaneous Android Development] gblues:
Ugh. Samsung's OSRC is being a pain in the butt.

I contacted them requesting the correct driver. Their response: "That is the correct driver."

I responded, "Did you actually test it? Because when I compile the code you provided, the x/y axes are inverted." Their response: "Herp derp Samsung Proprietary."

My most recent response: "Don't give me that proprietary BS. The driver is GPL. If you used any of the code that's in that driver, you need to publish your modifications to it."

We'll see what happens next...
[Miscellaneous Android Development] njnken:
Your dedication to this project continues to provide me with a glimmer of hope for the 589. I thank you sir. Down with herp derp.
[Miscellaneous Android Development] gblues:
Well, now they're claiming that the driver is the one they used in the shipping kernel. Oy!

In other news... I successfully booted Gingerbread on the phone using a stock kernel. :) I cheated a bit, though. I'll describe how I did it, in case anyone doubts me. The post is intentionally vague because it's not fully usable, wifi doesn't work at all, and I'm not currently at home and able to fully document the process. If anyone is actually interested in trying this out, I'll consider writing a script to automate it.

Known issues with this method:

- network time doesn't seem to work right

- wifi definitely doesn't work right

- usb mode doesn't appear at all

- The phone reports itself as a Galaxy Ace in the Settings screen.

OK, the steps:

First, the things you will need:

1) Stock SGH-T589 firmware (samfirmware.com has it)

2) Stock Galaxy Ace firmware (again on samfirmware.com)

3) unpack-bootimg.pl (google it). This is used to extract the kernel and ramdisk from boot.img

4) mkbootimg (google, or build from source). This is used to re-create the boot.img file

Steps:

- Start by unpacking each firmware package into its own folder.

- From the SGH-T589 folder, delete everything except boot.img

- From the Ace folder, delete everything except boot.img and system.rfs (MAKE SURE YOU DELETE arm11boot.img)

- Now, make an empty folder and copy the stock boot.img into it. Unpack it with unpack-boot.img.pl

- Make another empty folder and put the Ace's boot.img into it. Unpack it also.

- delete the boot.img-kernel.gz from the Ace's folder

- delete boot.img-ramdisk/lib/modules/*.ko

- copy boot.img-kernel.gz from the stock folder to the ace one.

- copy boot.img-ramdisk/lib/modules/*.ko from stock folder to corresponding dir of the ace one.

- copy boot.img-ramdisk/COOPER.rle from stock folder to ace one (optional, preserves the Gravity Smart boot splash screen)

- now, repack the boot.img-ramdisk folder into the CPIO archive

- next rebuild the boot.img file

- lastly, create ODIN archive with the rebuilt boot.img and the Ace's system.rfs

Flash the resulting tar.md5 file using Odin 4.40 USA.
[Miscellaneous Android Development] ShaunOfTheLive:
Hi gblues. Very good work so far! Are you planning on porting CWM recovery? It's been ported to very similar phones, like the Ace, Gio, and Mini.
[Miscellaneous Android Development] gblues:
I used a similar technique (unpack, replace kernel/kernel drivers, repack) on the Galaxy Ace CWM recovery and it seems to work. Unfortunately, when I tried to use it to flash the Ace's ICS port, I get a black screen with "A N D R O I D" in the middle (note: this is after extracting the boot.img and doing the unpack/swap/repack process and flashing with ODIN). I suspect that ICS requires kernel features that simply aren't in the stock 2.6.32 kernel.

After doing some more long-term tests, my accomplishment above is a good proof-of-concept but it's not ready for prime time. Landscape mode is completely broken. Games like "Cut the Rope" only give you a black screen. The QWERTY keyboard is borked (mainly alt-keys). The SD card disappeared completely until a reboot. USB mode doesn't work. The accelerometer doesn't seem to work. The stock web browser crashes. Wifi doesn't work. The list goes on.

So that gets back to getting a custom kernel working...
[Samsung Galaxy Nexus] Chaosin1983:
Hi guys, I'm having some issue with wierd artifacts instead of text on widgets and the app drawer. It happens randomly and it's not launcher related since I have changed from Nova, to Apex and it still does the same thing...if I kill the launcher it will go back to normal...sometimes the artifacts appear again, sometimes they don't?

Any ideas? GSM Gnex.
[Samsung Galaxy Nexus] theking_13:
Could you upload better pics? They're tiny and blurry.

Sent from my Galaxy Nexus running AOKP+Franco
[Samsung Galaxy Nexus] zephiK:
What Kernel? Is it OC'd to 512 MHz?
[Samsung Galaxy Nexus] nodstuff:
Most likely a kernel with a 512mhz gpu.

Your phone can't handle the overclocked gpu, use a kernel with stock (307mhz) or the lesser underclocked 384mhz version Franco does.
[Samsung Galaxy Nexus] zephiK:
Yup. And if you're using Franco's nightlies, there's a folder at the very bottom that says /gpu_384mhz/ try that one instead. Phone still doesn't like? Well. you gotta use M3
[Samsung Galaxy Nexus] Hammer_Of_The_Gods:
Hi,

This weird issue has nothing to do with GPU overclock,it's launcher related (the OP says "if I kill the launcher it will go back to normal...sometimes the artifacts appear again").And take a look at the screenshots,it only appears in launcher elements related (app drawer icons text,widget text,etc...NO in the notification bar,nav bar,etc...)

It's not artifacts,glitches or whatever you want due to GPU overclock,artifacts caused by GPU overclock do not look like that at all...

There are other threads about this,clear cache/data of Apex Launcher,eventually reboot.

It would be best to reinstall Apex...

There are already some posts about this in the Apex's thread.

And it's the same thing for Nova (much less)...sometimes...

What ROM do you use?

:)
[Samsung Galaxy Nexus] Chaosin1983:
Hi, I'm running AOKP build 35, Franco Kernel Milestone 3 set at default speeds, haven't meessed with the GPU. I will try clearing launcher cache and reinstalling...

As viking37 says, it only happens on launcher elements, everything else work fine...

Thanks for the tips,
[Samsung Galaxy Nexus] nodstuff:
Good call!

Was so used to seeing this happen because of gpu I automatically assumed it was that.
[AT&T, Rogers HTC One X, Telstra One XL] NguyenHuu:
After doing some search and browsing, I found this still active link on at&t: http://www.wireless.att.com/cell-ph...jsp?LOSGId=&skuId=sku1160047&catId=cat1510009

It is the smartphone $30 unlimited data, looks like it's still active with sku and everything. if anyone eager to get back their unlimited data, can you test and see if it works? I am hesitant to do it right now, I am going to talk with AT&T first since I was grandfathered in but lost it, so I will see if i can convince them to give it back first. If they say no, then I will try the above as well in a couple days after i get my phone. still being shipped at moment.
[AT&T, Rogers HTC One X, Telstra One XL] mbaran:
interesting...
[AT&T, Rogers HTC One X, Telstra One XL] foxbat121:
It's a dead link and won't work. I tried to add it as new customer and selected a phone, then add the plan linked and it refused to work.
[AT&T, Rogers HTC One X, Telstra One XL] NguyenHuu:
oh ok, thanks for the confirmation, worth a shot since they didnt take down that landing page.
[AT&T, Rogers HTC One X, Telstra One XL] meccanikal:
Although the link shows the unlimited data plan, it won't allow to add to cart to existing customers. I don't know how it would work for new customers.

You could always get a silver back iPhone (2G) and pop in your sim. The phone will tell you to connect to iTunes and there you can select unlimited data plan. Google for instructions.

Worked for me a few months ago
[AT&T, Rogers HTC One X, Telstra One XL] rev1775:
I tried to add it to my existing plan after logging in and it won't add to the cart. My guess is a dead link. Nice try though!!
[AT&T, Rogers HTC One X, Telstra One XL] NguyenHuu:
yeah, I know about that method. it's an ongoing discussion in the Atrix forum which I posted in as well. But lately they said the loop hole was fixed so it was not possible anymore. I duno if still works or not. http://xdaforums.com/showthread.php?t=1008698&page=130
[AT&T, Rogers HTC One X, Telstra One XL] Maroon Mushroom:
That method hasn't worked for a long time
[AT&T, Rogers HTC One X, Telstra One XL] vinuneuro:
2g iphone is how I got it in November. It is closed now.
[LG Optimus 2x] mscache:
Hi all,

I've been on NOVA rom since it first started up (many thanks to hei), and I've found that out of all the different iterations, RC24-50 with HP 2X Xtreme (2.3.32.59) has been the combo that gives me the best performance and the best battery life. I'm on BB 218 with matching RIL. The battery life is excellent, my phone will last a full day with 3G on, plus wifi, tethering, music playing used intermittently throughout the day. My question is-any others on NOVA that are on a different version that are getting good results and with what BB/RIL? I'm a little hestitant to update to the latest NOVA simply because there are certain version out there that have performed poorly.
[T-Mobile Samsung Galaxy S II SGH-T989] ScottBroker:
I get an error cant back up system image when I try a Nandroid to my SD card. Doing it internal is fine. Any suggestions?????
[T-Mobile Samsung Galaxy S II SGH-T989] emmdub:
You're probably out of space...
[T-Mobile Samsung Galaxy S II SGH-T989] Akim1220:
Installed darkside evolution earlier this week and am having issues with a screen lock app I am using. I love the screen lock app, esp. the old tv option. When I first flashed the ROM the app was working fine. Now, only a few of the animations work. I was going to reinstall the app but I do not have the option to uninstall. Tried uninstalling the app in the Play Store but it will just keep trying to uninstall without actually doing so. Is there another way I can uninstall an app?
[T-Mobile Samsung Galaxy S II SGH-T989] Predicus:
Uninstall issue.

I would try uninstalling using titanium backup.

search the play store for it as i can not add links yet.

Good luck.
[T-Mobile Samsung Galaxy S II SGH-T989] Akim1220:
thanks, i figured out what was wrong.
[Nexus S Q&A, Help & Troubleshooting] mooz1:
The Settings in Android 404 is confusing me. I am looking for the application option in settings but can't find it. There is Developers option but I can't find what I am looking for in there.

What I am looking for are

Manage applications

Running services

Development.

Thank you in advance
[Nexus S Q&A, Help & Troubleshooting] dpeeps74:
Unknown sources is a security setting. Is that what you can't find?
[Nexus S Q&A, Help & Troubleshooting] lithid-cm:
System Settings > Accessibility > Large test [X]

Check that box, shouldn't be a problem seeing all the obvious settings now.
[Nexus S Q&A, Help & Troubleshooting] niteh@wk:
Totally agree. So confusing. I can't even find the laziness option.
[Nexus S Q&A, Help & Troubleshooting] mooz1:
Man you figured out what I was looking for . Thanks.
[Nexus S Q&A, Help & Troubleshooting] mooz1:
My problem wasn't seeing them. My problem was finding the options like "Application" which I was used to in the previous version of android.
[Nexus S Q&A, Help & Troubleshooting] niteh@wk:
"Apps" is right there in Settings. All sarcasms aside, it just takes a little bit of patience and exploring to find things. If you don't like changes, I guess iDevice would be a better fit as Apple has kept things the same for all generations of the iDevices.
[Nexus S Q&A, Help & Troubleshooting] mooz1:
I explored to my capacity. I don't mind change as long as I could figure things out. I have checked "Apps". In there, there are only apps I downloaded . Now I assume you did some exploring. Will you be kind enough to point me to the following applications in android 4.0.4 ?

Manage applications

Running services

Thank You
[Nexus S Q&A, Help & Troubleshooting] louderstill:
homescreen menu button

[or app launcher menu button]

manage apps scrolls left and right...

...who'd a thot
[Nexus S Q&A, Help & Troubleshooting] niteh@wk:
Manage Applications and Running Services are launcher specific shortcut menus to the Application in Settings. Do you see the different tabs at the top in Apps? Sliding that and you will see what you are looking for.
[Nexus S Q&A, Help & Troubleshooting] djquick:
System Settings>Security> scroll down and right under Device Administrators you should see Unknown sources
[Nexus S Q&A, Help & Troubleshooting] mooz1:
Now you are talking. Thank you very much.

For future reference please do not assume everything is as simple and clear to others like it is to you. There are lots of us out there who have no clues about a lot of technical stuff.
[Nexus S Q&A, Help & Troubleshooting] lamta:
Call Settings, SIP settings, etc

Another item that used to be under MENU/Settings/Call Settings in Android 2.3.x is now under DIALER or PHONE (no MENU first), and then Settings.

Call Settings then has a lot of important configuration settings for calls, dialer behaviour, SIP (internet call) accounts, etc.

Except for the above, I can't seem to find another route to Call Setting from System Settings. I am using cyanogenmod 9.0.0 RC1 with Nexus S.
[Nexus S Q&A, Help & Troubleshooting] albundy2010:
Nice bump of a old thread.

Anyways. Call settings. Open phone app. Press menu button.
[Nexus S Q&A, Help & Troubleshooting] vinny24:
No font changing option in my Samsung galaxy s DUOS GT-S7562

No font changing option in my Samsung galaxy s DUOS GT-S7562

Please help.
[Nexus S Q&A, Help & Troubleshooting] mrgreaper:
hunting for usb dev mode needed by titan backup, i stumbled on here, where most of you are being a little sarcastic and saying how easy this stuff is to find with just a bit of looking around.....

2 hours later i found it, for the benifit of anyone else that may stumble on this old thread via google like i did, to enable usb dev go to about device/phone in the settings menu and tap build number multiple times, this enables development menu which has the usb debugging option.....yeah i know i know very obvious and easy to see.
[HTC Amaze 4G] hasoon2000:
Found a one root script. Just need to see if it'll work on the Amaze. If it does, I'll add it in my tool and give proper credits as always. If not, I'll look into it myself.
[HTC Amaze 4G] glacierguy:
Prerequisites?

_________________________

Am I on Candid Camera?
[HTC Amaze 4G] hasoon2000:
Same as usual. S-off or unlock boot loader.
[HTC Amaze 4G] glacierguy:
I will be able to help after work in few hours if still needed. Unless I don't need a computer, in which if that's the case, I'll help ya out now

_________________________

Am I on Candid Camera?
[HTC Amaze 4G] hasoon2000:
You need a computer, I just need a few testers. Thanks GG!
[HTC Amaze 4G] glacierguy:
I'm home I'm an hour and half... I'll ccheck in then. No prob

_________________________

Am I on Candid Camera?
[HTC Amaze 4G] zPacKRat:
replacement is due in an hour or two so I will test it then.
[HTC Amaze 4G] hasoon2000:
Before you s-off/unlock your boot loader, run the script. Tell me if it works. If it does, reboot the phone twice and see if it is a perm root or temp root.
[HTC Amaze 4G] glacierguy:
Wife says I'm busy :banghead:

Sorry 4 now

_________________________

Am I on Candid Camera?
[HTC Amaze 4G] zPacKRat:
first attempt it hangs:

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

DON'T TOUCH THE DEVICE OR UNPLUG WHILE ROOTING!

PUSH FILES

749 KB/s (2005736 bytes in 2.613s)

640 KB/s (91980 bytes in 0.140s)

713 KB/s (570342 bytes in 0.781s)

REBOOT

cannot create /data/local.prop: permission denied

AGAIN REBOOT

After rebooting from power button it provided the following:

AGAIN!?

mount: Operation not permitted

mount: Operation not permitted

cannot create /system/xbin/busybox: read-only file system

Unable to chmod /system/xbin/busybox: No such file or directory

/system/xbin/busybox: not found

busybox: permission denied

busybox: permission denied

Unable to chmod /system/xbin/su: No such file or directory

Unable to chmod /system/xbin/su: No such file or directory

Unable to chmod /system/app/Superuser.apk: No such file or directory

rm failed for /data/local.prop, No such file or directory
[HTC Amaze 4G] hasoon2000:
Unlock your boot loader and try it.
[HTC Amaze 4G] zPacKRat:
same!

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

DON'T TOUCH THE DEVICE OR UNPLUG WHILE ROOTING!

PUSH FILES

4544 KB/s (2005736 bytes in 0.431s)

3592 KB/s (91980 bytes in 0.025s)

2978 KB/s (570342 bytes in 0.187s)

REBOOT

cannot create /data/local.prop: permission denied

AGAIN REBOOT

AGAIN!?

mount: Operation not permitted

mount: Operation not permitted

cannot create /system/xbin/busybox: read-only file system

Unable to chmod /system/xbin/busybox: No such file or directory

/system/xbin/busybox: not found

busybox: permission denied

busybox: permission denied

Unable to chmod /system/xbin/su: No such file or directory

Unable to chmod /system/xbin/su: No such file or directory

Unable to chmod /system/app/Superuser.apk: No such file or directory

rm failed for /data/local.prop, No such file or directory
[HTC Amaze 4G] hasoon2000:
Flash a recovery. Boot into recovery, run the command. Sorry for all this lol
[HTC Amaze 4G] zPacKRat:
from 4ext nothing, just hangs.

Hold on, adb is giving me issues.
[HTC Amaze 4G] hasoon2000:
Alright. Try CWM
[HTC Amaze 4G] hasoon2000:
try this. It will reboot you in recovery