yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Original Android Development] zxz0O0:
You can change the mA charging in a driver. I don't know the path to it but looks like this

info->batt_full_status = BATT_NOT_FULL;

if (enable) { /* Enable charging */
switch (info->cable_type) {
case CABLE_TYPE_USB:
val_type.intval = POWER_SUPPLY_STATUS_CHARGING;
val_chg_current.intval = 450; /* mA */
break;
case CABLE_TYPE_AC:
val_type.intval = POWER_SUPPLY_STATUS_CHARGING;
val_chg_current.intval = 650; /* mA */ [COLOR="Red"]<- change this[/COLOR]
break;
case CABLE_TYPE_MISC:
val_type.intval = POWER_SUPPLY_STATUS_CHARGING;
val_chg_current.intval = 450; /* mA */
break;
[Galaxy S II Original Android Development] lynx2k50:
This would be nice too

if (enable) { /* Enable charging */
switch (info->cable_type) {
case CABLE_TYPE_USB:
val_type.intval = POWER_SUPPLY_STATUS_CHARGING;
val_chg_current.intval =[COLOR="Red"] 450[/COLOR]; /* mA */
break;

so we can charge our SGS2 with a car charger. In this way we wouldnt loose battery while navigating.

Only problem is that when you charge your SGS2 at your PC, USB can only give you 500mA. But Car charger can give you 1A and some up to 2A.

...

Maybe we can change it and look what happen when you plug it in you PC USB :D I'm too afraid :D
[Galaxy S II Original Android Development] jzuijlek:
We allready can charge via a car charger. Just use a decent one with 1000mA.
[Galaxy S II Original Android Development] lynx2k50:
Really? I thought its limited by the kernel (USB charge).

Okay thanks for info.
[Galaxy S II Original Android Development] kalpik:
Ok, been using this for almost a day now, I can say that it has not really made a significant difference in my battery life :(
[Galaxy S II Original Android Development] Spartoi:
I dunno, I guess you could try talking to Tegrak about it, but this is the error I get when trying to load the OC module.
[Galaxy S II Original Android Development] ObihoernchenDE:
Samsung "disabled" car charging because in summer temp would be too high.
[Galaxy S II Original Android Development] saturn_de:
Changed all values to 650mA ... USE AT YOUR OWN RISK!

Kernel is attached to this post.
[Galaxy S II Original Android Development] zxz0O0:
Well maximum for USB 2.0 is 500mA, so maybe this may cause problems or may damage the USB port.

I think car charger is CABLE_TYPE_MISC
[Galaxy S II Original Android Development] saturn_de:
Here is a version attached with only CABLE_TYPE_MISC set to 650mA.

USE AT YOUR OWN RISK!
[Galaxy S II Original Android Development] zxz0O0:
lynx2k50 did request a version for car charger not me:)

But thanks anyway that you accept all requests
[Galaxy S II Original Android Development] BackfireNL:
Well no problem here! can charge with my old charger i bought for 5 euro's!
[Galaxy S II Original Android Development] lynx2k50:
Request?

I bought 500€ for my SGS2. Doesnt want to make experiment with electricity.

But, thanks saturn. Maybe there are some courageous user out there.

Btw: Some old notebooks only deliver 100mA with USB. But you can also charge your mobile on this port. Maybe when CABLE_TYPE_MISC is set to 650mA, the port will only deliver 500mA so there is no risk. USE AT YOUR OWN RISK! :)
[Galaxy S II Original Android Development] bbolgar:
I wonder, why would the 'CABLE_TYPE_MISC' be the car charger? When I'm charging my phone in car, the type of power shown on the battery screen is AC. :confused:
[Galaxy S II Original Android Development] lynx2k50:
Hmmm maybe we can take a look at the HTC sources. Or at the SGS1 sources.
[Galaxy S II Original Android Development] saturn_de:
Backslash-1.3-HYST0-CF-Root-XXKG1.zip added to the first post.
[Galaxy S II Original Android Development] lynx2k50:
Flashed 1.3, thank you.

Will report back.
[Galaxy S II Original Android Development] kwazyivan:
Thank you so much buddy :D
[Galaxy S II Original Android Development] RE795:
Would it be too much to ask for one with both :confused:

MOVHYSTI set to 0mA and CABLE_TYPE_MISC set to 650mA :D

Much Thanks :)
[Galaxy S II Original Android Development] H377:
Has anyone tried this kernel with an earlier ROM like KF3?
[Galaxy S II Original Android Development] saturn_de:
Should work, if you use the corresponding radio image.
[Galaxy S II Original Android Development] H377:
I see, many thanks!

Will give it a try!
[Galaxy S II Original Android Development] saturn_de:
I mean, if you use a KF3 ROM, you should use the KF3 radio image.
[Galaxy S II Original Android Development] H377:
I want to give it a try with the official EU KF3, Modem: KE7.
[Galaxy S II Original Android Development] saturn_de:
Go ahead. Worst thing is, that the radio has problems (phone call, data connection), but you can always change, when that happens.
[Galaxy S II Original Android Development] snark_be:
Could there be problems with automatic backlighting with Backslash 1.3? It doesn't seem to work all the times. I have a hard time finding when and how it's behaving. Yesterday I was outside and backlight was very low, couldn't see the screen correctly. Normally it would increase the backlight but it did not.

Not sure if it happened with the 1.2 or older versions.
[Galaxy S II Original Android Development] saturn_de:
Might be ... I will observe it on my phone ... Please compare with the CF-Root original kernel.
[Galaxy S II Original Android Development] sorg:
Hi, saturn_de

thanks for kernel! It works fine on KE7 ROM and KG1 radio.

I'm not moving to 2.3.4 yet, because audio libraries incompatibility and impossible to integrate native call recorder.

Can you upload snapshot of source code you've used to build kernel (v1.3). I mean with all patches applied.

I want to make some changes and compile it for my own internal use for ex., insecure version - because i have many changes in framework/system apks and desperately need adb to work with /system directly...
[Galaxy S II Original Android Development] saturn_de:
All source code is uploaded. github links are in the first post.
[Galaxy S II Original Android Development] sorg:
ah, i didn't understand it's your personal repository.

Thanks again!
[Galaxy S II Original Android Development] godutch:
why did you remove "setprop dalvik.vm.execution-mode int:fast", fast is supposed to be faster than JIT isn't it?

http://netmite.com/android/mydroid/dalvik/docs/embedded-vm-control.html

The current implementation of the Dalvik VM includes three distinct interpreter cores. These are referred to as "fast", "portable", and "debug". The "fast" interpreter is optimized for the current platform, and might consist of hand-optimized assembly routines. In constrast, the "portable" interpreter is written in C and expected to run on a broad range of platforms. The "debug" interpreter is a variant of "portable" that includes support for profiling and single-stepping.
[Galaxy S II Original Android Development] saturn_de:
You are free to put that command in a file, which is called at startup. Just read the CF-Root thread, which files are executed at startup.
[Galaxy S II Original Android Development] Spartoi:
Saturn, did you ever contact Tegrak about how to add Tegrak OC app support?

Sent from my GT-I9100
[Galaxy S II Original Android Development] godutch:
but which one is faster JIT or Fast?
[Galaxy S II Original Android Development] lowrider_05:
JIT is the fastest because it activates Dalvik JIT and FAST deactivates it you can test it with linpack the scores should almost raise 100% with JIT.
[Galaxy S II Original Android Development] Ascenca83:
+1 for this request. Would also like to have Tegrak OC support.

Sincerely,

Ascenca
[Galaxy S II Original Android Development] roool:
Hello all,

What about is battery drain with this mods kernel?

Any comments back?

Anyways, thanks for your kernel, man.
[Galaxy S II Original Android Development] lynx2k50:
Hey ho saturn.

Here is my promised feedback.

I'm very sorry but i switched back to CF Root. The reason is, i was running the countdown timer for 35min and the mobile lost a lot of juice and was getting very warm. The battery drain was to big. Doesnt know why its getting so hot, 'cause it only counting time :D

Here are some screens, started at

- 77% with

- Backslash 1.3 Kernel and

- VR 1.4 (my own lite edition) and

- KF2 modem.

Here you go:

http://imageshack.us/g/696/sc20110714190150.jpg/

Thaks for you hard work, hope it helps.
[Galaxy S II Original Android Development] saturn_de:
Understandable.. cannot reproduce this with vr2.0 :-/
[Galaxy S II Original Android Development] lynx2k50:
Yeah maybe its VR 1.4.

Will flash VR 2.0 in some days but the browser bug is annoying.
[Galaxy S II Original Android Development] saturn_de:
just use firefox :)
[Galaxy S II Original Android Development] nightranger73:
Firefox hasn't support for flash... unacceptable on these days

Sent from my GT-I9100

If you find this post usefull please press the "Thanks" button
[Galaxy S II Original Android Development] rmourar:
Use miren or dolphin hd!

Great kernel, I've no problems with it and have a very good battery life for my standards....
[Galaxy S II Original Android Development] nrs1988:
works awesome thanks :)

would like to see some oc settings if possible
[Galaxy S II Original Android Development] kawa636r:
Can you do for me (my risk) a kernel with 1000ma charging over usb and over ac charger? (with all type of charging)

i know that usb can give only 500ma, but this is a mine risk. I want to speedup charging process
[Galaxy S II Original Android Development] Audren:
Hey!

Any feedback about this kernel with MIUI 1.7.8 ?
[Galaxy S II Original Android Development] sorg:
Just wonder, what is the problem to set secure=0 in root'ed kernel?

If kernel already rooted then any application gained access to the root can remount any partition to RW and do any modification. So, why limit adb then?
[Galaxy S II Original Android Development] nightranger73:
Because otherwise a malicious app could write to system without superuser permission?

Sent from my GT-I9100

If you find this post usefull please press the "Thanks" button
[Galaxy S II Original Android Development] sorg:
nope. You cannot write to RO partition. And to remount it, you will have to get SU rights.

You also cannot write to /dev/block devices without SU permission.

And using SU on secure and insecure kernels are the same AFAIK.

So, still no answer why somebody prefer rooted kernels with secure=1 option.
[Galaxy S II Original Android Development] kawa636r:
Hey guys... i put this down again... 1000ma request.
[Galaxy S II Original Android Development] nightranger73:
Sorry... quick reading and I thought you were speaking of the system partition mounted as RW as in some kernels

Sent from my GT-I9100

If you find this post usefull please press the "Thanks" button
[Galaxy S II Original Android Development] impulse4u:
your kernel is very good, but I found one bug. when phone is off and charged, the phone itself "power on" in a few minutes. checked on other kernels - no bug like this. sorry for my bad eng
[Galaxy S II Original Android Development] omniwolf:
i can confirm this, phone off and charging (usb to laptop), gets to 100%, a minute later it turns on
[Galaxy S II Original Android Development] androidkid311:
No issues here. Love it! Hopefully u release on for KG2 :).
[Galaxy S II Original Android Development] afcp:
Yes, please...
[Galaxy S II Original Android Development] mrvirginia:
i was coming here to confirm this as well haha.

my phone would also turn the screen on sometimes by itself. went back to Chainfire's and those issues are gone...
[Galaxy S II Original Android Development] kwazyivan:
+1 Same here

Also hoping for a KG2 release :D
[Galaxy S II Original Android Development] Rar9:
+1 currently missing this kernal for KG2
[Galaxy S II Original Android Development] hani1980:
waaaaaaaaaaawoooo very nice the best kernel until now battery ,speed, stability 100%
[Galaxy S II Original Android Development] sorg:
There is no reason to make KG2 version because it's actually the same as KG1.

Since this kernel is built from separate sources there is no relation to stock releases from Samsung.
[Galaxy S II Original Android Development] kwazyivan:
I'm sorry my friend but there are many that wouldnt agree with that, specially when the custom KG1 firmware has the bug, which when phone is off and charging or charged, the phone itself "power on" in a few minutes.

In many of occasions, I let the battery drain completely, the phone goes off, once plugged to the mains, its starts charging for 2 minutes, the phone powers itself on and while doing so it powers off again as it doesnt have enough charge, then again it will continue doing the same (Just because of this Bug)

Therefore a KG2 would be very much a request to sort this main issue out, and to stay up to date.

But unfortunately I dont think there will be a KG2, as I'm sure everyone noticed that saturn_de hasnt replied to anyone after the 16th July, so I belive we are very much talking to ourselves :p
[Galaxy S II Original Android Development] nightranger73:
Again... this kernel is built from sources and has no relations with stock kernel apart InitRAMfs that hasn't changed.

Kg2 sources are not available so what would you build?
[Galaxy S II Original Android Development] sorg:
You didn't understand what i was told.

Backslash's kernel is not based on source code of KG1 at all.

Changes between KG1 and KG2 of Samsung kernel won't appear in this kernel.

Samsung release source codes of kernel but not so often and not with every firmware releases. There were only 2 source code releases from Samsung.

The kernel used by Backslash is a fork from first source code from Samsung. It has its own fixes and improvements not related to Samsung kernel releases.

P.S.: oops.. didn't see nightranger73's post :)
[XPERIA X8 General] dlxdl:
I am a new user. I use rooted SE X8 with original 2.1 android. I want to have the colours: white for all backgrounds and black for all fonts.

How can I do that? I hope I do not have to install a theme to avoid changing any alements that I want to keep as they are.

Please, tell me the thread I should read if any.

Thank you.
[XPERIA X8 General] dlxdl:
Never mind. No body is smart enough to so.

Strange.

.
[Galaxy S II Q&A, Help & Troubleshooting] roosta:
Hey guys,

The Galaxy S2 is an extremely powerful (and very popular) smartphone in the market today - and since Samsung have sold a record number of these worldwide, figured its about to BOOM bigtime; particularly in Australia as prices start to fall and phone plans start to drop. Because of this, I wanted to provide other Aussie members on these forums with a HANDY point of reference, as a lot of guides & tutorials are for different models or have different specifications and require some tweaking. Use this thread as a guide, a starting point, or utilise this thread for other aussie general help.

Please help by posting what build you have on your SGS2, your speed test results in australia, modem type, network,etc...Your experiences, your advice, any input is appreciated. Ive only done the first 15 pages thus far:

Members and their SGS2's on the following networks:

page 2: Optus/Telstra tips/tricks on FW: diable fast dormancy, GPS info etc

page 5: Full review of phone (photo/vid), usb drivers, oldin, complete phone service manual, letter codes

page 10:Specifics for rooted phone 3g hack

page 11: undervolting and saving battery life steps

...

Thanks guys

RoOSTA
[Galaxy S II Q&A, Help & Troubleshooting] zetsubou7:
From another forum:
[Galaxy S II Q&A, Help & Troubleshooting] HeavySixEight:
Well, i got mine with an Optus $59 at the start of june, KE7 stock..

I Hated the amount of Optus rubbish on the phone (that i could'nt remove!) so i ended up here, reading everything i could for a few days, then rooted my stock rom from chainfire's post.

Since then, I've de-branded with the stock KF2 poland rom and rooted that. (Since Intratech put up the original stock roms for optus, i have my backup.)

Performance is great, coverage is great and everything runs well...

Has anyone updated from Kies to KF3? Was KF3 the Aus update?
[Galaxy S II Q&A, Help & Troubleshooting] tjjensen23:
Release UK imported. Bought it from Hantec

Works 100% with NextG. Also my mates got one and his works fine aswell. All settings out of Box except changed the APN for faster speeds ;).

Custom Rom (keeps switching between VR and Cognition)

No problems whatsoever
[Galaxy S II Q&A, Help & Troubleshooting] unrealtb:
Vodafail customer here... Great fone. Rooted with lighting 1.5. Dun want to go to v2 as it changes the web browser as i quite like stock. Still on 2.3.3 tried 2.3.4 didnt notice a great change. Gonna wait for cm7... maybe 8! Question.... Just say i wanted to go back to vodafail rom etc.. So it would be like when i first got ot how would i do this?
[Galaxy S II Q&A, Help & Troubleshooting] roosta:
Hey zetsu,

Yes my initial post did sound a little ditsy... But i have read additional articles of other software modifications Tesltra have in the works to make it a bit more unqiue - arguably, some would say really not that much difference or worth waiting for - but nevertheless I would much prefer an Aussie version of the phone and AC power without having to use a loose, dodgy international adapter to plug into an Aussie powerpoint.

I do (and did) understand this phone, whether its from Telstra or not, from anywhere around the world is quadband and works on the nextg 850mhz freq band.

Cheers.
[Galaxy S II Q&A, Help & Troubleshooting] HeavySixEight:
Just check Intratech's carrier branded Rom thread and flash one from Vodafone Australia that matches what you had originally...
[Galaxy S II Q&A, Help & Troubleshooting] roosta:
tjj, what APN settings did you use, the ausdriod.net one?

RoOSTA
[Galaxy S II Q&A, Help & Troubleshooting] bentothemaxx:
I've got an Optus branded handset, running on Telstra. I get awesome speeds, have gotten over 10Mbps download speeds!

Using the telstra.wap APN, seems to work a bit better than the telstra.internet for me.
[Galaxy S II Q&A, Help & Troubleshooting] zeitgeb3r:
Bought from TeleChoice outright for $750 early June after haggling with the seller. Optus branded (AllPhone wasn't selling unbranded at the time).

Rooted it with ChainFire (In case I need to unroot and not lose the warranty, I bought USB Jig from EBAY in case I need to reset download counter).

Paid for Titanium Backup to freeze Optus bloatware (that was before IntraTech released the Optus Stock ROM).

Put on SIM Telstra $49/month Freedom Connect BYO 12 month plan.

I love it when H+ (HSPA+) lights up. My colleagues are jealous, because they're either on Optus, Voda or Virgin and they can only 3G, not H+.

I used ausdriod.net APN (telstra.internet). Getting around 10Mbps in CBD. I might try telstra.wap and see if it's any faster.

Bought accessories from ExportPrive (Korean based) :

Official Samsung spare battery AUD$25

Official Samsung Anymode Charging Dock for spare battery AUD$12

SGP Stenheil Ultra Oleophobic Anti-Fingerprints screen protector AUD$11

Transcend Micro SDHC Class 4 32GB AUD$63

Samsung official car dock AUD$50

Shipping $11
[Galaxy S II Q&A, Help & Troubleshooting] roosta:
@zeit: 10mbps in philipines? Best i have been able to get, using speedtest.net andriod app (on SGS1) in Melbourne near CBD was 2.54mbps on a hsdpa connection, so thats pretty poor, should be higher...and i expect as lot more with Telstra on the SGS2.

@bentothemaxx: thanks for the advice, after my SIM is inserted into the phone, all relevant MMS/net APNs are set, defaults me to telstra.iph (telstra internet). Doing it now about 20 mins drive from Melbourne CBD, telstra.iph peaked at 1.79mbps. .internet settings peaked at 2.54 and .wap settings peaked at 2.24 with the lowest ping. Upload FAAR better with.internet settings, so may stick with that.

RoOSTA
[Galaxy S II Q&A, Help & Troubleshooting] sm98:
Heyas, some sgs2 tips optus (and one telstra)

I'm with Optus (tpg) in melb, unlockedmobiles uk it's good :)

I've had H+ once driving through lillydale, rest of the time is 3G/H or gprs cause optus is well optus :)

Things to do/check/change (non .au based firmware)

unrooted

disable fast dormancy ( *#9900# then disable) (is it even needed to do on telstra?)

rooted

edit /etc/gps.conf and change NTP_SERVER to au.pool.ntp.org

*** may be optional in xxkg1 2.3.4 ***

disable fast dormancy ( *#9900# then disable)

in the city i got lots of wake ups with it enabled, further out it didn't do it

edit /data/data/com.android.providers.telephony/databases/nwk_info.db

open nwkinfo and add the dormancy info if it doesn't exist

KG1 has Optus dormancy off mtu 1500 in mine

open dormpolicy and you can change the lcdon/offfdtime.

KG1 has telstra, yes optus, vodafone eu, 3telstra, one.tel in there as 0 on 0 off

the carrier numbers are in /data/data/com.android.providers.telephony/databases/telephony.db

info from the /etc/nwk_info.xml

<!-- Australia -->
<DormPolicy plmn="50502"
nwkname="Telstra"
lcdonfdtime="0"
lcdofffdtime="0"
/>
<DormPolicy plmn="50503"
nwkname="YES OPTUS"
lcdonfdtime="0"
lcdofffdtime="0"
/>
<DormPolicy plmn="50506"
nwkname="Vodafone AU"
lcdonfdtime="0"
lcdofffdtime="0"
/>
<DormPolicy plmn="50508"
nwkname="3Telstra"
lcdonfdtime="0"
lcdofffdtime="0"
/>
<DormPolicy plmn="50501"
nwkname="One.Tel"
lcdonfdtime="0"
lcdofffdtime="0"
/>

Using Telstra? enable HD Voice (wide band amr)

dial *#197328640# (optional * at the end)

go into menu 5 audio

menu 7 wb-amr settings

then 1 to enable the wb-amr on your phone

telstra hd voice is wb-amr and will be annouced as working on the sgs2 when it's released on the 26th!
[Galaxy S II Q&A, Help & Troubleshooting] zeitgeb3r:
Telstra

Get TelstraOne app from Android Market. It will give u unmetered access to news, sports, weather, Bigpond, and billing. See

http://exchange.telstra.com.au/2011/07/13/new-app-bring-unmetered-content-to-next-g-androids

Yes, I get 10Mbps from my desk at 101 Collins St Melbourne CBD. From my other office at 525 Collins (Rialto), I only get about 5Mbps.

Maybe the cell network at 101 Collins isn't as congested. Weird, cuz there's prolly more yuppies at 101 than 525.

I get about 6Mbps from my apartment in Kew (Inner north east Melbourne).

@sm98 Good tip about that HD Voice.
[Galaxy S II Q&A, Help & Troubleshooting] 380AU:
I bought mine outright from Telechoice (an Optus reseller)

All I've done is flashed mine to the KE7 UK firmware to get rid of all the Optus bloatware on it, and now the latest XSA KF3

Pretty happy with the phone overall.
[Galaxy S II Q&A, Help & Troubleshooting] aussiebum:
Hmm, I have FD disabled via *#9900# but I still get wakeups occasionally. Interesting thing is that when I was on VillianROM 1.0 / KE2 I used to not get these wakeups even with FD disabled. They only started happening after installing KG1-based 2.3.4 android roms.

I also swear I'm getting crappier battery life with KG1 roms vs the old KE2 rom when 3G data is enabled. Currently experimenting with different modems to see which one gives better battery life
[Galaxy S II Q&A, Help & Troubleshooting] jwonga:
I have an Optus set on the 59 Optus plan.

I've flashed Litening and Cognition with no problems. It was great to get rid of the optus bloat and customise the phone with some themes too.

Also I've used the *#301279# to set the phone to only use the 3g network, along with the *#9900# to disable fast dormancy.

Cheers.
[Galaxy S II Q&A, Help & Troubleshooting] kachunch76:
Hi guys,

Since this is a thread specially for Australians. I'm just wondering where's your SGS2 made in?

My first one says "Made in Korea"

Then I got one for my partner and it says "Made in China"

What are yours?

Cheers
[Galaxy S II Q&A, Help & Troubleshooting] robt772000:
I have a Korean made KE7 Optus version. At least it was an Optus version for about 1 hour after I got home and rooted it and put Cog 1.12 on it. 1.5ghz FTW.

I came from a Nexus One so I have had every rom ever on it. Even Ubuntu. But the SGS2 is amazing.

Good data speed on Optus. No dropouts yet.