yashsingh1/xdaforums huggingface dataset:
[HTC Sensation] crypted:
Thanks for the input! I'm glad it's working for you. I wonder if I'd get better results using TMOUS vs the Google build. I'm an AT&T subscriber, but I don't know that they would block the connection attempt. Maybe one day I'll try! :D
[HTC Sensation] crypted:
Sorry, I saw your comment but wanted to post the new version before responding. Needless to say, I didn't have time to go right back to it.

Plastic can be an obstacle. Any obstruction can be. My personal situation: I had a plastic case that would get no satellites inside my loft and would get a few with a large error (18m) outside. If I removed the phone from the case, it would get 9-11 sats and an error of 2m. I have a new case. It has a larger opening around the area the GPS antenna is located on my HTC Inspire. I get sats inside, and outside I receive 8 sats with an error of 4m.

No, the files are deleted by the script. If you end up flashing a stock ROM again for some reason, send them my way.

Why would you apply the patch if it was working? Second line of the thread says it's for those with issues.

HOWEVER, that isn't a GPS telling you you're in Nevada. That would be where your getting to the "internet" from the internal cell network. So, you had an IP resolving to a Nevada datacenter and you were located on that basis, not GPS. If I don't use my GPS, I sometimes end up in 400 miles south. Also, some towers have faulty location information. There is one tower in OKC that resolves as a tower in NYC...clearly a couple thousand miles off.

Further, CM builds sometimes get compiled without aGPS being enabled. Thus, the patch won't always work. ROM issue....not patch issue.

CM has been discussed thoroughly with its issues of lack of support accidentally being baked into it on numerous threads.

Give v2.2 a try and report back, please. ;)
[HTC Sensation] Soween:
Hi,

I tested without the case this morning in the bus..

Result: I obtained between 8-10 satellites in less than 10 seconds..

I can't believe that a simple plastic case can handle the signal like this...

So your work is perfect ;-)

I just wonder if I can put an invisible shield on it and if it will be the same as the case? Because I like it protect as I change often my phone I like it to be mint condition to sell it..

I ask about the invisible shield, because if this is the same as the case, this is far worse if you need to withdraw it each time (I mean this is impossible).

In the meantime, I can use it without the case or found a way to cut my case where the antenna is (but where??).

Thank you again!!!!
[HTC Sensation] crypted:
If you can find the GPS antennas location, just have a hole around it. I bought an "innocase" because it had the half of the plate where the GPS antenna was at exposed. I think that's why it works decently. On my HTC Inspire, the antenna is on the same plate as the LED flash.
[HTC Sensation] Soween:
Ok, I will check that.
[HTC Sensation] DaNnY549:
great i need this!
[HTC Sensation] xstormli:
hey man, one quick question,

i am currenly using CWR 5.0.2.0

which version of CWR r u using?

i still don't dare to try the 3rd method,

since crypted do not recommend sensation users to try the 3rd method
[HTC Sensation] crypted:
I'm using that version and it flashes. If it won't work it should just say failed or error.
[HTC Sensation] xstormli:
roger that,

thx mate
[HTC Sensation] cdman1980:
worx perfect

Thx 4 this m8,

This worx excellent in Belgium where I live.

Before I never could get a fix indoors with my sensation and ARHD 3.6.2XE custom ROM.

After applying your google specific patch with method 3 this wasn't a problem anymore.
[HTC Sensation] BladeKnight:
it doesn't work for me...it says Error...waiting for your nxt update:D
[HTC Sensation] crypted:
I assume you mean it says "error" when you try and Flash it? Then, you're using a recovery system that I don't have on my HTC Inspire4G.

I would recommend using method 1 or 2 instead of waiting. Method 1 is the faster. method 2 is the easiest if you don't want to plug into Windows and go that route.

Let me know how it goes.
[HTC Sensation] xstormli:
i am just here to flatter you!!! lolz

"2.2 google generic" is magnificant!!!

I think I am sticking to this unless you come out with something better man!!!

I am sure you will, hehehehe
[HTC Sensation] ugrubni:
wow, flashed cm7, flashed your patch

had a fix in 5 seconds, ...accuracy of 8 meters

8 satelites in view and 8 in use

thx
[HTC Sensation] xstormli:
CM7 on Sensation?

if that's the case, which version is it, bro?

I would like to try it out too, hehehehe
[HTC Sensation] quahog_convo:
http://xdaforums.com/showthread.php?t=1258543 is the one I'm using. There's another one out there, too, but I haven't really looked at it.
[HTC Sensation] xuni89:
how to know how many satellite are locked into your gps?
[HTC Sensation] ntonzrockz:
im in ASIA

using ARHD 3.6.2 faux kernel 0.2.2

what version should i install??
[HTC Sensation] crypted:
Read the Notes Section. Throughout the first post I discussed "GPS Status" which is a free app. It gives you that information.

You can use any of them. As the first post says, I recommend the Google version. It will work for anyone. Case in point, I am an AT&T customer. I use the Google version even though I provide an AT&T build because it seems to be great.
[HTC Sensation] Byrana:
Hi there,

I suggest using this value.

ACCURACY_THRES=1500

The default value was 3000, with that I did not get a lock in GPS status, even though it was showing 12 satellites.

Changing the value to my suggestion gives me a lock in 3 seconds.
[HTC Sensation] crypted:
We tried that value and different values for all variables to create a graphical understanding of the effects of each. I agree for some that could be beneficial. But for most, these current values are the best.

But, I will consider re-testing variable alterations with v3.x after we get the first two planned releases (3.0 and 3.1) out the door to you all! ;)
[HTC Sensation] Byrana:
Ok, like I said just a suggestion. I was going crazy because I couldn't get a fix. I lost gps connection while using google navigation. Changing this value did the fix for me.

My conclusing to this value...better to have a little less accurate fix than no fix at all :)

Now, I even get a fix inside the house on IC 3.3.8
[HTC Sensation] crypted:
I understand. But with that value unchanged, most people are getting fixes inside their house with accuracy of 3-5 meters.

Just remember the change that fits your specific needs for future updates! :)
[HTC Sensation] def-g:
Nice fix. Works GREAT on RCMix 3.5 ROM. Thanks alot,

G
[HTC Sensation] atlp99:
Anyone try this on the most recent CM alpha 9?

I was having problems with GPS causing reboots and locking up the phone with alpha 9 and was wondering if this would help.
[HTC Sensation] crypted:
The patch itself wouldn't cause those problems. All it does is add or modify variables for the GPS configuration. Anything that wasn't needed would be ignored.
[HTC Sensation] xstormli:
use the lastest "google.generic.v2.2" is fine.

I am living in Hainan island, China.

Not that far from you.

This patch worked perfect for me,

very Genuine & Juicy fix.
[HTC Sensation] more.then.fiction:
Running Insertcoin 3.3.9, I've tried the Tmo 2.2, Google 2.2 and world 1.3 patches and still couldn't get GPS to lock. What else can I try?
[Nexus S Q&A, Help & Troubleshooting] gotjazz:
I recently stumbled over this and I the most popular answer claims in short that undervolting can damage your battery although his description of what undervolting IS is completely different from what I am thinking about when I read that word.

Is there any truth to this post at all or is it just nonsense?
[Nexus S Q&A, Help & Troubleshooting] jonnygee555:
It wont damage your battery, if anything it will increase battery life, but if you underclock it to much it wont have enough power to boot, so it wont damage your battery but it could cause your phone to become a brick
[Nexus S Q&A, Help & Troubleshooting] prakashpn007:
In general when voltage is down electonic circuits draw more current when under volted, to maintain the oowee factor. When it reaches a tripping level processor will do a reboot. That is when peiple complaint of random reboots....
[Nexus S Q&A, Help & Troubleshooting] prakashpn007:
Sorry for typo.... its power factor. Not oowee...
[Nexus S Q&A, Help & Troubleshooting] gotjazz:
So it's baloney. Thought so :). And oowee factor was quite comprehensible actually
[Nexus One Q&A, Help & Troubleshooting] kuljit55:
[Cool3D Sense 3.0][14 Sep]Cool3D AceS v2 |Android 2.3.5|FAST|STABLE|STOCK|CM7/r2

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

this rom looks amazing just wondering if it will ever be ported to nexus as the current leading nexus sense rom is, well not to my taste its that R somthing mix.

but this rom looks realy cool, it has everything included, and no major bugs reported.

thanks
[Nexus One Q&A, Help & Troubleshooting] naqn:
Yes. but... 'kernel'...
[Nexus One Q&A, Help & Troubleshooting] kuljit55:
so how long before we get the kernal required
[Nexus One Q&A, Help & Troubleshooting] Menelkir:
Depends on who will port and how much free time this developer can spent. :P
[Nexus One Q&A, Help & Troubleshooting] dla5244:
i guess

i seems to ported.

desire kernel source released..
[Nexus One Q&A, Help & Troubleshooting] Deep-Knight:
Really ? You men Desire Kernel Source-Code GB 2.3.5 ????

Link ?

-> http://www.htcdev.com/devcenter/downloads

HTC Desire – GB MR – 2.6.35 kernel source code 88.7 MB !

Let the party start.... Happy coding....
[HTC Incredible S] Her0o:
Hello,

i need change cid number from HTC__622 to HTC__J15 ...

i follow the instructions applied for Sensation (with adb tools) in windows 7

My incredible s respond to the adb method but give me Error after last step as following:

Code:

C:\adb>fastboot oem writecid HTC__J15
...
[bootloader] [ERR] Command error !!!
OKAY [ -0.000s]
finished. total time: -0.000s

Any idea PLz???

HTC Incredible S 2.3.3

HBOOT 1.09.1000

AlphaRev S-offed & Rooted
[HTC Incredible S] Her0o:
UP
[HTC Incredible S] itsbeertimenow:
I am too uninformed to help you so all I can do is give a +1 to help your cause.

Your welcome.
[HTC Incredible S] Her0o:
Thank u :) :)
[HTC Incredible S] Her0o:
up
[HTC Incredible S] Her0o:
any ideas please ???
[HTC Incredible S] Her0o:
>>> up <<<

:)
[HTC Incredible S] doctorsax:
Stop doing that.
[HTC Incredible S] jul644:
we cant do that at this time with the IS we dont have the same amount of access we do on sensation
[HTC Incredible S] Her0o:
Thanks..
[HTC Incredible S] sert_tabl:
See the list of available commands: fastboot oem h
[HTC Incredible S] Her0o:
thats all i get when i type in the command fastboot oem h

C:\adb>fastboot oem h
...
(bootloader) command list
(bootloader) keytest
(bootloader) heap
(bootloader) boot
(bootloader) reset
(bootloader) powerdown
(bootloader) rebootRUU
(bootloader) heap_test
(bootloader) rtask
(bootloader) task
(bootloader) enableqxdm
(bootloader) gencheckpt
(bootloader) list_partition_emmc
(bootloader) load_emmc
(bootloader) check_emmc
(bootloader) check_emmc_mid
(bootloader) read_mmc
(bootloader) get_wp_info_emmc
(bootloader) send_wp_info_emmc
(bootloader) get_ext_csd_emmc
(bootloader) get_sector_info_emmc
OKAY [ 0.031s]
[HTC Incredible S] Her0o:
UP

إرسلت من HTC Incredible S باستخدام برنامج XDA Premium App
[HTC Incredible S] NeverGone\RU:
1) execute:

dd if=/dev/block/mmcblk0p17 of=/sdcard/cid.img

2) edit cid.img with any hex editor (but don't use notepad or any other text editor)

3) write it back:

dd if=/sdcard/cid.img of=/dev/block/mmcblk0p17

4) reboot and check. your cid should now be changed.

It worked for me, but I'm not responsible if your device will become a brick (which is unlikely anyway)

Good luck.
[HTC Incredible S] moustafatch:
i try but i get

$ dd if=/dev/block/mmcblk0p17 of=/sdcard/cid.img

dd if=/dev/block/mmcblk0p17 of=/sdcard/cid.img

/dev/block/mmcblk0p17: cannot open for read: Permission denied
[HTC Incredible S] tpbklake:
You need to have a rooted system and running the adb shell as Superuser to issue these commands.
[HTC Incredible S] goki1:
it is temporary or not?

thanks
[HTC Incredible S] tpbklake:
On a properly rooted system this would make a permanent change.
[HTC Incredible S] Nonverbose:
I have read about this method causing a USB brick in some cases on other models. Would be interested if anyone has similar issues.

Edit: if you're going to change the Cid might as well supercid it (11111111).
[Sony Cross-Device General] DooMLoRD:
THIS IS FOR ADVANCED/EXPERIENCED USERS ONLY

[ info ]

hello devs/users this should be a useful tool (its just a small perl script) for u guys... i have modified the popular unpack-bootimg.pl script to support the (new) kernel.sin files... so it will basically unpack kernel.sin to zImage and ramdisk, ramdisk will also be extracted...

[ requirements ]

linux machine

perl

[ supported devices ]

Xperia X10 (GB update, custom kernels for unlocked bootloaders)

Xperia 2011, 2012, 2013 H1 devices

Xperia 2013 H2 devices onwards with dt.img extraction support

[ download link ]

unpack-kernelsin.pl

[ usage ]

./unpack-kernelsin.pl kernel.sin

Enjoy!
[Sony Cross-Device General] andrewddickey:
Awesome job DooM!

Just one more reason for me to get more into linux.

Thanks for all that you do!
[Sony Cross-Device General] BinaryXeroMedia:
Use Ubuntu or back|track 5 r1 which is what I am using right now also it has flash player plugin pre installed unlike ubuntu 11.04. Also as lons as you know a bit about security penetration then bt5r1 is the best linux distro;)
[Sony Cross-Device General] luke1215:
thanks for all work you do,i'm looking for it.
[Sony Cross-Device General] BinaryXeroMedia:
erm....... how have you posted in the devs section with only 2 posts:confused::confused::confused::confused::confused:
[Sony Cross-Device General] Mayazcherquoi:
Or simply use CygWin...
[Sony Cross-Device General] aZuZu:
nice work! can you make one in ms-dos batch version? :D
[Sony Cross-Device General] luke1215:
with my poor English,it's difficult for me to post my view...
[Sony Cross-Device General] DooMLoRD:
aZuZu u are the expert at porting linux stuff to windows ;)
[Sony Cross-Device General] Blagus:
Wouldn't perl work on Windows too? split_bootimg.pl works fine on both Windows and Linux...
[Sony Cross-Device General] Blagus:
Also, are you sure 1F 8B is enough? Because I see a lot of 1F 8B in kernel.sin, while 1F 8B 08 is the kernel magic for SE devices.
[Sony Cross-Device General] DooMLoRD:
well it should as long as u have the required binaries in place

1F 8B has been enough for Xperia X10, Arc, Neo, Play, Mini, Mini Pro, Ray (as i have made insecure kernels for all those devices using this same file)
[Sony Cross-Device General] Blagus:
I remember seeing a lot of 1F 8B strings through X8 images, so you maybe want to add support for them by adding 08 and you won't break support for already supported ones.

Sent from my R800i
[Sony Cross-Device General] Bin4ry:
Little correction here ;-)

1F8B08 is the tar.gz magic number and has nothing to do with SE :-P

But you are right its safer to search for the whole magic.

Regards
[Sony Cross-Device General] Deleted member 3665957:
safer and proper way - parse SIN header, extract payload, parse ELF header in payload, extract program tables.

everything other, like signature search and heuristic analyze, can work, but can fail ;)
[Sony Cross-Device General] DooMLoRD:
oh ok, u have the x10mini/x8 right? can u please check on those kernel.sin files using this change which u suggested?

Thanks Bin4ry! did u get my p.m.?

can u kindly post the hex delimiters for those parts/sections?

may be u can provide us with the tool to unpack kernel.sin, since u posted the tool to make a custom one ;)
[Sony Cross-Device General] Z3US911:
yo!!

thanx doom again awesome work!
[Sony Cross-Device General] sahibunlimited:
This area is having very complicated stuff so its not good to post here let the DEVs discuss here...:):)
[Sony Cross-Device General] Z3US911:
okk..sry!

but i was just motivating Doom...:)
[Sony Cross-Device General] lzyllp:
I use sudo ./unpack-kernelsin.pl kernel.sin

but it say command not found

someone can help me？
[Sony Cross-Device General] DooMLoRD:
no need for sudo

just use plain:

./unpack-kernelsin.pl kernel.sin
[Sony Cross-Device General] lzyllp:
I use ./unpack-kernelsin.pl kernel.sin

But it say Permission not enough

---------- Post added at 04:09 PM ---------- Previous post was at 03:56 PM ----------

I set permission 755 for files

Now work perfect

Thanks
[Sony Cross-Device General] ephumuris:
When i unpack i don't get a zimage?
[Sony Cross-Device General] ephumuris:
Ok i get it now thanks, last hurdle should be after editing init.rc...how to repack ramdisk from that folder? I think i have to fire up virtualbox again?
[Sony Cross-Device General] DooMLoRD:
to repack ramdisk go in the root folder of ramdisk (which has init binary and init.rc files):

find . | cpio -o -H newc | gzip > ../NEW-ramdisk.cpio.gz

this will create NEW-ramdisk.cpio.gz in the folder one directory/level above the root folder of ramdisk...
[Sony Cross-Device General] ephumuris:
Fantastic stuff. I'm going to all this trouble for porting MIUI to a CM7 base and when the rom boots it's laggy as **** anyway ha!

Thanks for all the help you have been great Doom!

Problem...my resultant kernel.sin is 90+mb when the original is only 6+mb. I notice original ramdisk is 3.16mb whereas after repacking the ramdisk it shoots up to over 100mb.

I'm definitely doing something wrong! Sbin folder is over 100mb...
[Sony Cross-Device General] vasilis13:
its not working for ST15i 4.0.1.A.0.283 firmware's kernel.sin file :(

i get this :

vasilis@####:~/Desktop/kernel401$ ./unpack-kernelsin.pl kernel.sin
DooMLoRD modified unpack-bootimg.pl script for SEMC devices

Info:
this will unpack kernel.sin to zImage and ramdisk

Supported Devices:
Xperia X10 (GB update, custom kernels for unlocked bootloaders)
Xperia 2011 devices (Arc, Neo, Play, Mini, Mini Pro, Ray, Pro)
Use of uninitialized value $header in print at ./unpack-kernelsin.pl line 44.
Use of uninitialized value $bootimg in pattern match (m//) at ./unpack-kernelsin.pl line 52.
Could not find any embedded ramdisk images. Are you sure this is a full boot image?
[Sony Cross-Device General] DooMLoRD:
i have already tested this on the newest 2.3.4 FW for Arc/Ray/Neo/Play it works without any issue...

anyways upload the kernel.sin file here...
[Sony Cross-Device General] vasilis13:
you are right i try it today and it worked perfectly! but how can i build boot.img from this files?:confused:
[Sony Cross-Device General] DooMLoRD:
https://github.com/freexperia/boot_tools/blob/master/build-bootimg-mogami/makeit.sh
[Sony Cross-Device General] vasilis13:
a thousand thanks!!!!! :D :D :D :D :D
[Sony Cross-Device General] a1exander:
Im new with this kernel stuff, I've unpacked kernel.sin, so I got kernel.sin-header, kernel.sin-kernel and kernel.sin-ramdisk (folder). But then how do I repack everything into a kernel.sin again?
[Sony Cross-Device General] DooMLoRD:
Read the_laser's bootloader unlock thread... He has given details on how to do it...
[Sony Cross-Device General] viper001:
i keep getting a permission denied error:confused:
[Sony Cross-Device General] DooMLoRD:
See unless u post exact output of the exact command u used we can't help u...
[Sony Cross-Device General] viper001:
Sorry sir.

set up both the unpacker and the kernel file (Stock X8 Kernel) in a work directory.

entered ./unpack-kernelsin.pl kernel.sin in command line while in the work directory. got permission denied error. sudo did not help, so i chmod 755 the kernel file and still got permission denied.

solve the permission denied problem with chmod 755 the unpacker. run a ok no permission denied error. however, nothing happens.:confused: No errors, no extra files. just a happily blinking cursor, waiting for the next command:o

EDIT: Sometimes a cup of coffee helps. for some reason, i just went and check the file properties and found that the unpacker file size was zero (0) :o. extracted, again permission denied, chmod 755 and voila. IT WORKS!!!!

I should tie up all my post into a new thread and call it "Noob Post" :D
[Sony Cross-Device General] viper001:
Hello again sir.

Well, i was repeatedly successful in unpacking the FXP kernel for X8. However when i tried alfasamsungs and even the stock kernel i get the error below:

root@viper001-VirtualBox:~/Ramdisk# ./unpack-kernelsin.pl kernel.sin

DooMLoRD modified unpack-bootimg.pl script for SEMC devices

Info:

this will unpack kernel.sin to zImage and ramdisk

Supported Devices:

Xperia X10 (GB update, custom kernels for unlocked bootloaders)

Xperia 2011 devices (Arc, Neo, Play, Mini, Mini Pro, Ray, Pro)

Use of uninitialized value $header in print at ./unpack-kernelsin.pl line 44.

Use of uninitialized value $bootimg in pattern match (m//) at ./unpack-kernelsin.pl line 52.

Could not find any embedded ramdisk images. Are you sure this is a full boot image?
[Sony Cross-Device General] weaponXandroid:
Hello DooM brother, here to trouble u again,

I have been searchin on how to use Perl on windows to unpack the kernel.sin but whenever I double click on "unpack-kernelsin.pl" it gets me to open with notepad n all such, I have Perl installed on win7 but how do I use it? Where to insert the commad line? And do I need to specify the whole path or just the code in cmd?

Please help, doing this first time so need u to guide me,

Thanks :-)
[Sony Cross-Device General] DooMLoRD:
its better to use that script on linux...
[Sony Cross-Device General] weaponXandroid:
OK so figured out how to use perl, but getting an error, in cmd which is:-

removed old directory kernel.sin-ramdisk

Can't spawn "cmd.exe": No such file or directory at unpack-kernelsin.pl line 84.

extracted ramdisk contents to directory kernel.sin-ramdisk/

But there is nothing in kernel.sin-ramdisk folder, "empty"

And I got two files, kernel.sin-header, kernel.sin-kernel.

Is this the out put expected?

Sorry if i m irritating u
[Sony Cross-Device General] DooMLoRD:
there are many dependencies for unpacking the ramdisk (gunzip, cpio binary)... thats why i told u to use linux... i am sure if u search u can find windows versions of those files... but symlinks are NOT preserved by windows thats why use linux...
[Sony Cross-Device General] CosmicDan:
Well Cygwin knows how to use NTFS symlinks and junctions and does it well, just that the pure-win32 ports of the GNU toolchains don't have that capability. Those of us who can't/won't install Linux are best off trying Cygwin.

Thanks a lot for this, much appreciated. Now I can get to work on testing out custom MTD layouts for FXP.

EDIT: About repacking.... I assume we have to join kernel.sin-header to the beginning of kernel.sin-kernel in order to get the raw zImage right...? Then we convert that with bin2elf and etc. Will try it and test a flash and confirm that a repacked RAMDisk works under Cygwin, otherwise I'll start downloading Ubuntu.

EDIT2: Nope, no need to append the loader. Anyway, those of us on Windows who want to repack it, use this batch file:

:: the_laser's sinTools example with updates/comments
:: updates and comments by jonusc
@echo off
:BEGIN
:: Repack the kernal image
bin2Elf.exe 2 0x20008000 kernel.sin-kernel 0x20008000 0x0 kernel.sin-ramdisk.cpio.gz 0x24000000 0x80000000
:: Convert to SIN and define linux partition map
bin2sin.exe result.elf 03000000220000007502000062000000
:: Cleanup
del result.elf
ren result.elf.sin kernel.sin
:: Move repacked kernel to template folder overwriting the old kernel
:: (i) Optional. Repack yourself if missing, choose kernel the repack is based on
move /Y kernel.sin .\template-fxp047
cd template-fxp047
:: Pack it to an FTF (zip) with 7-Zip commandline version.
:: (i) Optional. Repack yourself using whatever ZIP program and rename to FTF.
..\7z a -tzip -r ..\X10_CUSTOM_REPACK.FTF *
cd..

:END

...you cannot edit the ramdisk cpio in Windows however. Apparently the Cpio port for Win32 supports cross-platform symbolic link handling but I am yet to investigate and test it. Cygwin's "port" doesn't appear to support it either.