yashsingh1/xdaforums huggingface dataset:
[Galaxy S Plus I9001 Android Development] skywalker01:
@manveru0: OK, so we were right that this won't work because it's just not enough. But it's the right direction and some additional changes still need to be made. The compiler warnings also seem to show that the used versions of fsa9480.c and fsa9480.h don't match. At least some of them.

I just had a look at the code in your given links above and analysed the code a little bit. Here are the results:

- the patch in the lkml link is already included in the latest version 3.2 of the lxr link

- BUT although this is a Samsung source code it is not meant for use with the Galaxy phones. It is just a generic linux kernel code and does NOT include the necessary "CAR_KIT" code.

- apart from an extremely different code architecture the fsa9480.c version that is provided in the I9001 sources DOES contain a lot of "CAR_KIT" references and is also much longer so this definitely seems to be the right code which we are looking for.

- the latter code can be found in kernel/drivers/misc and this is exactly the path where your compiler warnings derive from. So to my best knowledge and understanding you are already compiling the correct fsa9480.c code and there is "only" one step left: get rid of all the warnings so the code can work as intended.

- the ISO C90 warnings can generally be ignored as they just refer to programming style and standards which might be inappropriate for you anyway and definitely are for the author of the code ;-)

Just one example from line 612, original code is:

mm_segment_t fs = get_fs();

Replacing that with two lines, first declaration, then program code like this should remove the warning as ISO C90 is fulfilled:

mm_segment_t fs;
fs = get_fs();

Well, the latter version is kind of beginner's code for the slow-witted and every experienced hardcore-coder would just laugh at that but the same goes for the ISO C90 standard. Well, that's of course just my opinion. And that of a huge bunch of somewhat experienced coders I know :D

- you replaced fsa9480.h in include/linux/i2c which is included in kernel/drivers/misc/fsa9480.c. But looking at the code I found that it's a conditional include, the code actually says:

#if defined(CONFIG_MACH_ARIESVE) || defined(CONFIG_MACH_ANCORA) || defined(CONFIG_MACH_GODART)
#include <linux/fsa9480.h>
#else
#include <linux/i2c/fsa9480.h>

#endif

So as CONFIG_MACH_ARIESVE is defined in your FeaCore_config only include/linux/fsa9480.h is actually included by fsa9480.c.

- now I compared include/linux/fsa9480.h and include/linux/i2c/fsa9480.h and except for two additional empty lines and Windows EOLs in /linux/i2c instead of Linux EOLs in /linux the files are completely identical. This leads only to one conclusion: include/linux/fsa9480.h in the I9001 sources is the wrong version but only this one should be exchanged.

You could give this another try and I think here are still some grateful testers for a second test version. I'm not sure if this is really the final solution and end of the story but I can have another look at the new warnings of the compiler output with the proposed modification - if there are still any left.
[Galaxy S Plus I9001 Android Development] Rhonin86:
An additional information...

Hi guys,

first of all thx to Skywalker for his efforts. Due to the fact that i'm not a coder or a develloper i just can support this thread by collecting information and keep this thread updated. Therefor here is another opinion from another member of this forum:

Thx to TheBeano who created the thread for the problem with the audioplug :)

Cheers
[Galaxy S Plus I9001 Android Development] skywalker01:
Test kernel released

After some days of hard work I finally managed to setup a complete developer environment for successfully compiling my own kernel for the I9001.

I went to all the changes that manveru0 made to the original Samsung sources and implemented most of them, especially the OC/UV settings, the additional IO schedulers and CPU governors. I actually started my first version only 3 days ago, for details you can have a look at my sources on github:

https://github.com/skywalker01/Samsung-Galaxy-S-Plus

So I must give great thanks to manveru0 for all his efforts, without those this hadn't been possible so quickly.

I also added and changed some features like:

- adding two more governors

- enabling PPP and other net related support

- changing some features to internal kernel support instead of external module (like ARC4 and ECB encryption)

While doing all this and browsing the compiler configuration settings and manveru0's development history I noticed that he switched off a driver while testing the battery drain issue and obviously never enabled it again. It's the MSM battery driver which also contains a lot of code to handle the battery and charging modes of the phone including the CAR_KIT status.

In the stock kernels this is enabled as module so I did the same for my kernel version. With a good chance this could already solve the car kit issue. You are invited to test that, download and unpack the attachment to get the raw boot.img. :D

I hope you already know how to flash a kernel image with dd, it was described in several 9001 threads numerous times. Just for your convenience this is the command you can type in a shell on your PC:

adb shell su -c "dd if=/sdcard/boot.img of=/dev/block/mmcblk0p8"

:eek: But beware: this can brick your phone if not typed exactly like above, custom boot animations must be reinstalled, phone must be rooted and adb must be installed on your PC. And you must reboot the phone once of course.

Alternatively you can also use odin to flash the boot.img file: adb and rooting is NOT even required for this method and AFAIK there are also instructions for that somewhere in this forum. But I already gave you those via PM, didn't I ? ;)

Last words: I didn't found any bugs or issues with this kernel so far but you never know and you can also test other things than the car kit if you like. :D
[Galaxy S Plus I9001 Android Development] bikeaholics:
Thanks for your Great work. I will See when i coul try it.

IT would be nice if you could make a Flashable zip for to use with cwm.

Gesendet von meinem GT-I9001 mit Tapatalk
[Galaxy S Plus I9001 Android Development] Rhonin86:
WOW - THX

Hi Skywalker01

first of all THX for your big effort. :D

I've already downloaded your testkernel an now i'm on the way to install it. Keep you informed...

cu later

Edith says: OK and here are the first results of your work:

The kernel works like a charme - no visible errors on the first view, but i'm really sorry to say:

the kernel denies to work with the car charging cradle :-(

I was very confident that it will work because of your discovery of the missing driver. But don't give up... i believe in your skills...
[Galaxy S Plus I9001 Android Development] bikeaholics:
What about audio out?

Gesendet von meinem GT-I9001 mit Tapatalk
[Galaxy S Plus I9001 Android Development] Rhonin86:
Audio out...

Sorry, haven't test it yet due to the fact, that i have no connection to the car's radio. Maybe an external loudspeaker would do the job ? But AFAIR charging works but the audio out is another prob. Have a look to the following link: http://xdaforums.com/showthread.php?t=980937

As i plugged the mobile in the cradle, the cradle wasn't recognized. That means no charging in progress and the steering wheel as an indicator for the car mode didn't appear... :o sorry
[Galaxy S Plus I9001 Android Development] crybert:
Just flashed your kernel and for the moment everything works good. Why you don't make an own thread for it?

Gesendet von meinem GT-I9001 mit Tapatalk
[Galaxy S Plus I9001 Android Development] rayiskon:
+1 for opening a standalone thread for ur kernel sky ;)
[Galaxy S Plus I9001 Android Development] skywalker01:
It's still in testing phase but don't worry, I already considered an own thread as soon as I'm done with some additional ToDo's.

BTW: I just tried to compile with the alternative fsa9480.h like I proposed in post #10 but with that compiling fsa9480.c halts with severe errors (undeclared definitions). So these two files don't match and I am just searching for some other versions, like I9000 Samsung and CM sources.

About audio: I already found some posts that claim that the external audio feature doesn't work in any custom ROM like CM but at least charging is supposed to do. I will also investigate TheBeano's solution on that later but first things first. Without recognizing the car kit at all the audio issue is still to be postponed.
[Galaxy S Plus I9001 Android Development] Rhonin86:
Does it work for you....

Does this mean that your phone recognizes the cradle ? That would be mysterious :cool:
[Galaxy S Plus I9001 Android Development] crybert:
Sry didn't described it exactly. Meant everything works good except cradle (couldn't test this).

Gesendet von meinem GT-I9001 mit Tapatalk
[Galaxy S Plus I9001 Android Development] Rhonin86:
NoProb

what a pitty, thought it was only a problem of my mobile, if it had worked with yours. In this case it seems to be that this was not the expected solution....

But i count on skywalker01 and the other guys here included you :D
[Galaxy S Plus I9001 Android Development] skywalker01:
Good question, but I just found something which could even explain that: the added msm_battery code is definitely a piece of code that handles the charging status and delivers detailed info on the current battery state. It also detects and differs three types of chargers: usb to pc cables, AC wall chargers and car kits. The routine in question is called msm_batt_update_psy_status and according to my log file it is called permanently and delivers valid data.

I therefore changed the compiler settings for my kernel a little bit: I will now built this routine directly into the kernel (internal) instead of using an external module (which belongs to /system somewhere and as this is outside the kernel it might be missing there on some devices).

So before trying other source code patches I want you to give this new version a try.

Additional fixes:

- corrected the custom bootanimation issue which works now

- init.d wasn't enabled, also fixed now

As requested I made a CWM flashable zip including all the patches of FeaMod 1.4 but without the recovery partition/CWM part. This means all of the following is also included in the zip update package:

- adreno 3D graphics lib update

- bootanimation support

- custom boot sound

For a manual update of the kernel only just extract the boot.img from the zip and use the usual dd method.
[Galaxy S Plus I9001 Android Development] skywalker01:
Did you try this one (with stock kernel of course) ?

https://market.android.com/details?id=net.muteheadlight.dockredir
[Galaxy S Plus I9001 Android Development] Rhonin86:
Results of the second testkernel

Hi Skywalker,

during my nightshift i flashed your new testkernel via cwm. After a "relative" long bootingtime the kernel starts without errors. With Antutu i reached ~ 4400 points and i could see that now "all" performance tweaks worked. the former kernel reached "only" ~ 4000 points. The voltage and current could be manipulated. When i left the office i was very exited. But after plugging the phone in the cradle nothing happened :( So sad not to report you the solution of the cradle problem...

Cheers

Rhonin
[Galaxy S Plus I9001 Android Development] skywalker01:
OK, thanks for the test. I started to try some other usb/charger handling source codes today and it has the potential of driving me crazy. Apart from the crappy Samsung sources I tried to implement the Nexus S code which has different hardware and therefore uses totally different methods and functions.

After adding a lot of new code in different files and melting the old and new versions together (they were totally incompatible and compiling always stopped with dozens of errors) I finally managed to compile a new kernel successfully.

But the result is horrible, now the phone doesn't recognize any cable as charger. USB to PC cable is detected for data connection but does NOT charge. AC Wall charger isn't recognized at all so I quickly flashed back the last version of my kernel before the battery drains empty. Didn't test if it would still charge when switched off but if not this would be a homicidal way to brick the phone if you don't have a fitting external battery charger and don't know how to revert the kernel flash :eek:

OK, first I will have to revert all those crappy changes and then try another approach tomorrow, so no kernel updates and no own thread for now.
[Galaxy S Plus I9001 Android Development] Rhonin86:
wish you luck

OMG, i hope you haven't damaged your phone :eek:

As i expected the usb-plug of the charging cradle differs in the provided current on the pins so that the kernel can distinguish between the different plugs. And you find the proof for it in the kernel. If there is a possibility to support you in your quest, perhaps by reading out different data via terminal or so, don't hasitate to contact me. But i need an exact order due to the fact that i'm totally unexperienced in android/linux stuff.... :o

Another idea raising in my thoughts:

On which stock-kernel the phoenix is built upon ? The car mode was recognized by Stock-Kernel 2.3.4 . Maybe the phoenix kernel is based on a former one ?

So you identified one or the important part of the code. But why does it shows no reaction after integrating it into the kernel ? Are there any parameters that are not handed over correctly to the mentioned modul ?

Hope you find a solution. Btw Your Kernel works fine and no visible battery drain. Keep on coding :cool:

BIG THX for your work
[Galaxy S Plus I9001 Android Development] bikeaholics:
Thanks for your help. This App is also not recognized.

Gesendet von meinem GT-I9001 mit Tapatalk
[Galaxy S Plus I9001 Android Development] bikeaholics:
Are there some news? Could you fix the issues? Also bln would be nice

Gesendet von meinem GT-I9001 mit Tapatalk
[Galaxy S Plus I9001 Android Development] Rhonin86:
*sorry*

all kernels i' ve tested so far despite the new STOCKKERNELS doesn't work in the desired manner. Skywalker is going to create a new kernel, but he tries to implement the results of the cyanogenmod port.

@ the moment i have got a russian kernel, which i want to test. Tell you about it as soon as possible. But i think we have to open a door for our russian friends, because the first thread was closed by the moderator and i don't know why...

Cheers

Rhonin :D
[Galaxy S Plus I9001 Android Development] Mxm78:
What's the outcome? Problem solved?
[Galaxy S Plus I9001 Android Development] Rhonin86:
sorry - but no improvement...

I haven't published any new invformation, because there are no positiv news :(. Meanwhile i tested a lot of kernels and their variations. I tested vitaliys kernel but without success concerning the mentioned problem. Also the new SkyHigh V 1.4 doesn't recognize the original charging dock.

But may we got a new chance by sending Skywalker our log-files so that he can find a way to make it work.

You can find a howto in the original SkyHigh V 1.4 thread. Maybe we succeed :cool:

I will also ask the hard working ukrain developer vitaliy - maybe he has an idea....

Cheers

Rhonin
[Galaxy S Plus I9001 Android Development] Mxm78:
Rhonin - thanks for your work.

I also drop a message(s) to Dutch.ly in his thread for Simplistic Plus ROM (great, fast, stable!).

I also made many tests with same (negative) results :(

So, we keep on trying...
[Galaxy S Plus I9001 Android Development] Mxm78:
My Solution

1. Simply I revert back to the KQ1 (non-deodexed nor zip-aligned (as I did not have one in the office ;)).

2. Rooted.

3. Installed AIO_Package_v1.1.zip in CWM.

4. Applied Tweaks from 'First Run Setup Tool' delivered with BroodROM RC3.

5. Restared phone, applied Antutu CPU Master.

so far it works.

I hope Dutch.ly will help me to get rid of the bloat-ware of this ROM and also share with WiFi, battery and GPS tweaks, as his Simplistic Plus Final 2.0 worked VERY VERY GOOD on my phone. (The only thing I'm not happy is battery -> not bad, but could be better :D).
[Galaxy S Plus I9001 Android Development] Rhonin86:
My solution...

Thx for your solution, but it is too complex. I just take CyMod ROM and change the kernel to automode and thats it. The next time i will log the behaviour and provide the logfiles to skywalker and maybe to vitaliy. But i have to ask him first if he is interested in developing a solution for this "special" problem.

Have a nice evening

Rhonin
[Galaxy S Plus I9001 Android Development] Mxm78:
No problem :)

To be honest -> only point 1-3 does really matter :D

In pt 3 it adds new GPU drivers and few tweaks making system more 'responsive' but still working properly in samsung cradle :)

How about your tests? Any progres? :)
[Galaxy S Plus I9001 Android Development] Rhonin86:
i must admit ....

there is no success to be pubished.

Meanwhile i tested beside the skyhigh v1.4 Vitaliys newest kernel, but both of them don't provide the support for the charging dock :(. I asked cynob in our german forum howto create a script for simple logging the kernels behaviour when connected to the charging cradle (dock - as crybert said, it's a more suitable expression for it). I will test it within the next week and tell you about the results.

Greetings from your neighbor

Rhonin :D
[XPERIA X8 Q&A, Help & Troubleshooting] tohno:
hi all ,when i 1st used a rom (any rom )there must be a friggin ton of problem ..so when i updated to GDX v21 i expected trouble, so yes it's a little buggy but i fixed / the problem just went away ..so theres just one problem which is a true , but then this problem is just presistant and i can't fix it ...=( so heres's the problem , the sd(8GB class 10 ) in my phone will say it's damage please format , so i did , but then the whole phone restarts without fixing the problem , so i tried 2 more sd card a 2gb class 6 and a 8gb class 10(?) micro SD card they all started fine but then it encountered the same problem , i faced this problem a week ago and i cant fix it , yesterday the memory was abler to be read and then today it says SD card error again.WTF??? i tried factory reset but it's still there use CWM and wipe dalvik and battery stats , no resolve i cant flash cause my sd card is dead , imma using PCC to flash my phone later but is it cause of SD card problem or isit my phone sd card reader is buggy?

details

-SE w8

-GDX v21

-MIcro SD 8GB class 10

-problem -SD card unable to read (says SD card is damaged) tried 3 diff sd card but all same

-well maybe a little off topic but my DSP manager seems to lags the phone badly when i turn on equalizer for speaker
[XPERIA X8 Q&A, Help & Troubleshooting] sonik_5:
Is your sd card kingston? I have the same problem, and found out that there is a compatibility problem with kingston 8gb.

SE claims to have solved it with an update but this is for stock rom users. So not me. I don't know if anything can be done and if any of our fantastic (slurp slurp) developers could help.
[XPERIA X8 Q&A, Help & Troubleshooting] tohno:
mine is apacer 8GB ...it's so dam annoying i flash back to stock but still have problem i flashed like 6 times now and it's finally ok...can read sd card so far...but still going to the retailer and asking for a refund if the problem occurs
[XPERIA X8 Q&A, Help & Troubleshooting] B.Jay:
Not able to confirm again ...

There's a 8GB Kingston Class 4 in my X8 which is working perfectly fine since the last 7 months (GDX v021 on Stock Kernel).

However, as there's been another one posting about SD card problems who also has a Class 10 mSD ... I would rather say the phone seems to have a problem with Class 10 Micro SD cards ... given my Class 4 and some Class 6 (if you search the X8 section) work flawlessly.

The 2GB Class 6 _should_ work, given we have some posts around where people use a Class 6 mSD successfully.

But, as I said above, I would be cautious with Class 10 mSD's as there not only yours which gives trouble.
[XPERIA X8 Q&A, Help & Troubleshooting] tohno:
for some reason my phone is a magnet for trouble ...
[XPERIA X8 Q&A, Help & Troubleshooting] sonik_5:
I spoke to the guy that sold me the card and he told me to go by the store and try with either a kingston 8gb class 4 or an apacer 16gb class10 (that's what he has in store). I guess i'll try the kingston but i'll be away for a week so I'll have answers next week.

Same here mate. Perhaps we shouls start a club. :P
[XPERIA X8 Q&A, Help & Troubleshooting] tohno:
haha yea...we are really poor souls =(

damn it i tried my sister's sd card ( just to confirm my problem ) i connect it to pc and all is fine ...then i click turn off usb storage and it says blank sd card ...i guess i cant confirm it's the hardware problem
[XPERIA X8 Q&A, Help & Troubleshooting] B.Jay:
Just as a related note now that I checked back...

The other guy who had about the same SD card problems was using a Verbatim 16GB Class 4. Seems as the X8/W8 is somewhat picky when it comes to the brand (manufacturer) of a SD card and the related class.

As I wrote in that post - either try the card in your phone right there in the shop (if the clerk agrees to it) or strike a deal that you can return the card in case you have severe troubles due to compatibility issues.
[XPERIA X8 Q&A, Help & Troubleshooting] tohno:
as always thanks BJ! you helped me so many times! so yeah i called my dad to send it to the repairman but i doubt it's the sd card problem since the other 2 i tried also failed to read ...it could initially until i restart the phone or connect it to usb then it will get the warning..i suspect its the hardware problem
[XPERIA X8 Q&A, Help & Troubleshooting] polar bear!:
My sd card is 8 gb . after make a partition it goes to 3.25 gb ..help
[XPERIA X8 Q&A, Help & Troubleshooting] obaidshera:
u r making a partition by which way? if u made it ext2 so rest of them will be available as a sd memory and other memory reserve for apps. install link2sd that will show u if u r in GDX install root browser and find sdext u will know everything :p
[Galaxy S II Themes and Apps] B3311:
Morning all.

Trying and failing to install these apks on my device running krinyo's SlimROM.

Got the apks from here:

https://spreadsheets.google.com/spreadsheet/pub?hl=en_US&hl=en_US&key=0Ag43oj7rLQP4dENZcmhGN0ZUa3pHSENVeXlqUm5vV0E&single=true&gid=0&output=html

- pushing with Root Explorer, but getting "application not installed" messages.

As always thanks for any help.
[Galaxy S II Themes and Apps] umarian:
Man try with "android commader"
[Galaxy S II Themes and Apps] B3311:
Link please? Never heard of it, nothing on Market (assume you meant "commander"?).
[Galaxy S II Themes and Apps] sileshnair:
Use darkyota app to install system apps. Easiest method yet.
[Galaxy S II Themes and Apps] B3311:
Thank you sir.
[Galaxy S II Themes and Apps] B3311:
Still problems I'm afraid sileshnair - Polaris installed fine via OTA, but still can't install Voice Recorder (or Memo).

Any idea what I'm doing wrong?
[Galaxy S II Themes and Apps] umarian:
Here is android comader in my opinion is super

link:www.abcdownload.ro/346c62pc0wfv.html]AC0799_setup.exe - 2.4 Mb
[Galaxy S II Themes and Apps] B3311:
No offence, but this doesn't smell right.

As said, I've never heard of it

You've spelled it differently both times

You've not said anything about its origin, given no source and no link except a download site I've also never seen before

So give me a good reason why I should install this mysterious software on my phone.
[Galaxy S II Themes and Apps] umarian:
The software is the Htc Forum, before I have Htc wildfire. OK no problem.

I use and I like android commander for me is Ok.

Sorry for my bad english
[Galaxy S II Themes and Apps] NunxPT:
Hi there,

Try using this tool that I did to remove or restore apps on your SGS 2 ;)

http://xdaforums.com/showthread.php?t=1308447
[Galaxy S II Themes and Apps] B3311:
OK, thanks for the explanation. I'm a careful SOB who needs to know what/where/how....

Too much Chablis to try it now, will give it a go tomorrow.

And your English is 100000000000000% better than my Rumanian;)
[Galaxy S II Themes and Apps] B3311:
Already tried it. Memo didn't work, no Voice Recorder there,