yashsingh1/xdaforums huggingface dataset:
[Desire HD General] geko1966:
Well....by the looks of it DG, RB has mad some mods on the R12 getting sat stats quicker.....the flip side is that it does not work for Europe....try flashing faster fix and the get into Your gps.conf file and modify to Your settings!!! I am not 100% sure, but i think that this will fix Your connection....

Try.....Try and Try again.....and if that does not help......reflash.....hopefully You have dun an nandroid of Your 10.1......if not....hmm....:eek:
[Desire HD General] dg170775:
Hey I can confirm that the GPS works on R12 without making any changes to any files. RB has cracked it...

But, once you've used GPS based apps, the gps needs to be switched off and on, to get lock again.

But accuracy still an issue..
[Desire HD General] havitoc:
well, i think the edit value works for R10.1

i now using R13, totally can't get any statellite.
[Desire HD General] havitoc:
so I still need to flash the GPS fix by MacroHD?
[Desire HD General] dg170775:
I'm now on R14 and I can confirm that the GPS works for me straight after flashing R14 ROM. I have not done any changes whatsoever, to the gps.conf.

So, it looks like RB has tweaked GPS related files R13 onwards.

But, I still have the issue of accuracy..

Would anybody be able to post a link for the Stock GB ROM for DHD, I think 2.3.5 version? I can then compare as I never had GPS issues until I rooted and started using custom ROMs.
[Desire HD General] dg170775:
I meant to ask this sometime back but I forgot. How do you measure the accuracy??

Today, I had Copilot running and did not set a destination. But, as I was driving, I could clearly see the image on the screen go off the wrong way every time there were roads, roundabouts, etc nearby. And that looked like an accuracy error of at least 70-80 meters ..

Even while navigating that's the issue I have.. I don't lose signal as the lock is solid with average 6-8 SATs, but it's this accuracy thats a bit of a bother ..
[Desire HD General] RogerL:
I've found that the free app GPS Test is the best all round app for checking GPS performance, as it provides SNR levels for each satellite, an accuracy value which updates realtime, and a time to first fix value. Really easy to use. As well as using it to test GPS tweaks, I use it while driving to monitor signal levels and accuracy.

I've also found that the app AGPS Injector is useful as it starts apps which use GPS e.g. navigation apps via an AGPS download. It doesn't work for everyone apparently, but I've had good success using it. Provides a faster GPS fix.

GPS Doctor is also worth a go. I've had all sorts of GPS issues and that seems to wake the GPS up after its decided to stop working!

I have found that the antenna connection is a major factor though, as mentioned in johnnyp12321's post earlier. Even when it seems to be working well, I've found that it can be further improved by a better connection. Its a shame but the GPS antenna is a bit of a weak point on the DHD.
[Samsung Captivate Glide] LiquidXed:
Does flashing with odin count towards the counter?

I read somethin somewhere this phone counts the number of flashed, but can't remember where I saw it
[Samsung Captivate Glide] Shawn:
Yes. When you boot into download mode it tells how many custom firmwares have been flashed.

sent from my Infuse running UnOfficial CM10 Jelly Bean. You Jelly bro?
[Samsung Captivate Glide] LiquidXed:
Is there a way around that? I want to flash cwmr, but I've had nothin but trouble with this phone and I'm worried I might have to send it back in again.. I've already sent it in for warranty twice
[Samsung Captivate Glide] Dr. Mario:
Check the "reset counter", it clears Odin flashes. It's in the partition and firmware setting on Odin's main window.
[Samsung Captivate Glide] LiquidXed:
Ok. Thanks man
[Samsung Captivate Glide] Dr. Mario:
You're welcome. :D
[General Questions and Answers] Beedo34:
I have an xperia play i just sold for parts on ebay. I am also rooted. How do i permanently wipe all personal data from the phone before i ship it out. The memory card slot is broken so i want to save re flashing as a last resort
[HTC Rezound] volleygod:
I just got my new Kingston WiDrive yesterday and am having a problem i hope someone can help with. When i look at pics that are on the drive, only a 1/4 of the picture (it is also zoomed in a bunch) is displayed. I can not move the picture around to view the rest of the picture nor can i zoom out. I can zoom in, however, i can only move the picture around of the part that i zoomed in on. I tried a friends Razr and my Nexus tablet, they both work great. Its just my Rezound running cleanrom 4.5 on ICS unlocked with S-OFF.
[HTC Rezound] GrayBoltWolf:
Is there a certain app that you use to access the drive?
[HTC Rezound] volleygod:
Yes, if you hit the play store and search for Kingston widrive.
[HTC Rezound] GrayBoltWolf:
Then that is app-related. Not much we can do about that.
[Verizon Samsung Galaxy S III] ericerk:
have I missed a port of this?
[Verizon Samsung Galaxy S III] ericerk:
Is anyone going to work on it??
[Verizon Samsung Galaxy S III] con247:
I would say don't hold your breath, but this is XDA so maybe it might happen. But I doubt it.
[Verizon Samsung Galaxy S III] ericerk:
Damn
[Verizon Samsung Galaxy S III] DertyDOH:
there's a thread going on for the Galaxy Nexus, which makes sense with its development following, and even that is almost not even bootable. So I definitely would not expect any type of build for the S3, if anything just a bootable verison to play with the ui
[Verizon Samsung Galaxy S III] ericerk:
But it could happen eventually :D
[EVO Shift 4G Q&A, Help & Troubleshooting] thronnos:
As some of you may have noticed, The Gingerbread YouTube app got an update today. Well that update force closes for me. Can someone post a link to the previous version?

Shifted from a Zombie Wasteland
[EVO Shift 4G Q&A, Help & Troubleshooting] Vanilla Pudding:
Just go to the settings for the YouTube app and press uninstall updates :)

Sent from my GT-S5570
[EVO Shift 4G Q&A, Help & Troubleshooting] thronnos:
Sadly I didn't try the app before integrating updates into the ROM. That option is lost.

Shifted from a Zombie Wasteland
[EVO Shift 4G Q&A, Help & Troubleshooting] Julian.:
gembox.us/loads/view/android/FfKOtcZh/YouTube.html just count 20 seconds in your head cause the numbers don't move, then click 'click here to download' :D
[EVO Shift 4G Q&A, Help & Troubleshooting] thronnos:
Man, that was a load of spam. Can someone post me a link that doesn't add 50 thousand apps to my home screen

Shifted from a Zombie Wasteland
[EVO Shift 4G Q&A, Help & Troubleshooting] thronnos:
You know that was a d-bag move?

Shifted from a Zombie Wasteland
[EVO Shift 4G Q&A, Help & Troubleshooting] thronnos:
I still need the apk if someone has it

Shifted from a Zombie Wasteland
[EVO Shift 4G Q&A, Help & Troubleshooting] prboy1969:
Did you try fixing Permissions in Recovery ? Well anyway I posted an older version ;)
[EVO Shift 4G Q&A, Help & Troubleshooting] thronnos:
So many times. I tried literally everything.

Shifted from a Zombie Wasteland
[EVO Shift 4G Q&A, Help & Troubleshooting] prboy1969:
So are you sorted ?
[EVO Shift 4G Q&A, Help & Troubleshooting] Julian.:
Man it worked for me? I always use that site. Maybe it was just the uploader that faked the YT app. Sorry about that dude, didn't mean to >_<

Sent from my GT-S5570
[EVO Shift 4G Q&A, Help & Troubleshooting] thronnos:
Yes sir!

Shifted from a Zombie Wasteland
[EVO Shift 4G Q&A, Help & Troubleshooting] prboy1969:
Good deal. Glad to hear :) .
[EVO Shift 4G Q&A, Help & Troubleshooting] zalam4u:
6.12 version is the best it need on vpn to open youtube in pak
[Galaxy Tab Q&A, Help & Troubleshooting] king870:
I need help! I'm trying to figure out what I'm doing wrong. The problem is every time I try to flash a different rom it says installation aborted. What am I doing wrong??
[Galaxy Tab Q&A, Help & Troubleshooting] priyana:
You expect help this this title and this little info?
[Galaxy Tab Q&A, Help & Troubleshooting] king870:
What's wrong with my question... at first I could flash ROMs and now I can't. If u don't want to help me that's cool.
[Galaxy Tab Q&A, Help & Troubleshooting] priyana:
I was trying to help. Believe me.

But no info what device, which rom, how you flash, what error, etc etc.

Suits yourself. All the best.

Giving you one example thread where our moderator commented.

http://xdaforums.com/showthread.php?t=1906463
[Galaxy Tab Q&A, Help & Troubleshooting] AvRS:
priyana was trying to help by asking you to be more informative. As per the thread he linked to you need to use descriptive titles, which in your case "Installation aborted when flashing" would suffice. Also when asking for help you need to try give as much information as you can to help others help you. Reply to priyana's questions he's asked and that would help a lot as well as updating your OP with more relevant information too.

Thanks

AvRS
[Galaxy Tab Q&A, Help & Troubleshooting] G0G0L:
Uploading some screenshots will also help. And priyana, please have some sympathy for this new user
[Galaxy Tab Q&A, Help & Troubleshooting] priyana:
I wasn't teasing when I said too little info.

The only thing resembling info was his LG-999 or something but that wasn't even the right info.

Sigh.

Gogol, you know how many newbies I have helped so far in this forum.
[Android Software/Hacking General [Developers Only]] Chainfire:
Presenting: Fast AAPT - aka FAAPT ;)

Lately Android development has been getting me down. Slow builds all over the place in many of my app projects, and my PC is blazing fast - it shouldn't all be that slow, even if you're running Eclipse!

Working on DSLR Controller has been driving me mad - testing a minor change in the underlying communications library, then building and launching the app - ugh! So I set out to fix this. I had done all the usual tricks, even gave Eclipse loads more memory (helped with regular performance, but not building) but nothing major seemed to change. Then I figured out most of the time building was spent in AAPT. So I synced my AOSP repo (2012.09.26, took a few minutes), tried to get the Windows SDK to build on my Linux box (took several hours) and finally got to actually mucking with the source.

Found the bottleneck (for my long-build-time projects at least, related to XML file compilation) and fixed it (by introducing a simple cache). "DLSR Controller" build time has gone down from 35 seconds minimum, to 2-3 seconds ( >10 times faster). Hell, I can even turn "Build Automatically" back on without getting constant delays!

Note that my build times quoted only apply to incremental internal builds. If your images still need to be "crushed" (optimized), or you're "exporting" an APK (final build for publication), build time will still be significantly longer. However, during normal development and testing (by far most builds if you're making an app in Eclipse) those stages are not performed, and builds should be lightning fast.

"Fixed" is a big word though, right now it's more of a "hack", and it needs some pollish, so the patch can be submitted to AOSP. I don't want to keep it from you for that long, so my first test build is attached - don't use it in production builds..

Patch code has been submitted to:

AOSP - #1 Cancelled, #2 Review in Progress ... superseded by ctate rewrite

AOKP - #1 Merged, #2 Merged

CM - #1 Cancelled, #2 Merged

Attached ZIP includes Linux, Windows and Mac OS X versions.

The files are drop-in replacement, but I would certainly advise you to backup the originals for your production builds! :) Also, don't forget to chmod/chown on Linux or it won't work.

Enjoy and leave some feedback :)

Will this help your project build ?

A quick way to spot if this will have effect on your slow build is as follows:

- In Eclipse, set Build output to Verbose under Window -> Preferences -> Android -> Build.

- Clean and build your project.

- If the build pauses on lines in the "(new resource id <filename> from <filename>)" format, you have the problem FAAPT fixes :)

(of course, you can also run aapt manually if you know how, you'll get the same output)

In a full framework build the optimizations only affect a very small portion of the actions done during the build, so you won't see any spectaculair speed increases there.

Update (#2)

I have updated the patch code to fix problems with Mac OS X compatibility, I've also included a Mac OS X binary in the new zip file.

-----

( v1: 557 )
[Android Software/Hacking General [Developers Only]] Quinny899:
So that's what's been killing the speed of my eclipse then. It froze so often I had to switch to AIDE on my phone. Hopefully this'll speed it up a little
[Android Software/Hacking General [Developers Only]] rohan32:
Awesome work Chainfire, will play around with this in a few :)
[Android Software/Hacking General [Developers Only]] wildstang83:
Thanks brother, gonna give it a try right now on Linux :)

EDIT:

It works. Gave it three tries. Went consistently around 19.1 sec with FAAPT and 33.9 sec with regular AAPT. This is on the Linux version. Good job :)
[Android Software/Hacking General [Developers Only]] iBotPeaches:
Amazing work. Handles large resources like framework-res a lot faster.
[Android Software/Hacking General [Developers Only]] Chainfire:
Glad to hear the Linux version also works! Too bad your increase is not as much as mine, but I guess it depends heavily on the amount and type of assets in your project.
[Android Software/Hacking General [Developers Only]] wildstang83:
I tested on a theme project of mine, so its heavy in img files. Thats probably why. I'm not complaining one bit. Absolutely love it and can't wait to try it out on my other apps :)
[Android Software/Hacking General [Developers Only]] wanam:
Indeed, tested the Windows version and yes it gives a very good result with a amount of assets, i got 7 time faster than the normal one on Eclipse, too bad we can't use it for production, we need one for Apktool :) .
[Android Software/Hacking General [Developers Only]] wildstang83:
Actually, I was using it with APKTool.
[Android Software/Hacking General [Developers Only]] Siberian Tiger:
Thanks CF.

Decompiling recompiling now is so fast :)
[Android Software/Hacking General [Developers Only]] eagleeyetom:
apktool and Maps.apk on Linux.

aapt - 29.2s to compile

faapt - 2.2s to compile

Amazing job, Chainfire!
[Android Software/Hacking General [Developers Only]] Bologna:
Tested both in linux and winz....

It works great!

Untested time but noticeble faster.

What's the next step after elite rec dev for chainfire?
[Android Software/Hacking General [Developers Only]] mffryslan:
Thanks for the great work!

Could you post your tweaked source file(s)?

Would like to compile from source for OS X..
[Android Software/Hacking General [Developers Only]] zoltan.fekete:
On my projects I see anywhere from 5 to 20x speed increase on build. Thank you for this magic.

I don't get how the google android SDK team did not optimize this (I know they done some crazy optimizations for different stuff).
[Android Software/Hacking General [Developers Only]] berdon:
Yeah, could you post your patch? :)
[Android Software/Hacking General [Developers Only]] iBotPeaches:
He did say in the OP. He had to clean it up for AOSP inclusion, so just wait till you see it on Gerrit :)

Sent from MIUIAndroid Phone.
[Android Software/Hacking General [Developers Only]] steve.garon:
That is good stuff. It's gonna save me a whole lot of time. The thanks button was just not enough to thank you!
[Android Software/Hacking General [Developers Only]] Kameo:
Thanks for the great work Chainfire.
[Android Software/Hacking General [Developers Only]] ssuukk:
Whoa! Now I will surely stop cursing while waiting for xenoAmp tu build (just not enough time to say "kurwa!")! Thank you!
[Android Software/Hacking General [Developers Only]] Leandros_Ger:
I'am using ArchLinux x64 as my normal desktop OS. (Yes, I don't have Windows.) and tried it with Eclipse, but it don't work.
[Android Software/Hacking General [Developers Only]] madquack:
+1! Recompiling is lightning fast now!
[Android Software/Hacking General [Developers Only]] lockzackary:
chainfire - you're a god!

anyways, for a productive post, it really is faster now. very much noticeable when the project contains a lot of assets (mine was around 14mb of assets and before it builds with the "pause" you were referring to on your post)

using faapt it just cleans builds in like 2 seconds

thanks for your awesome work :)
[Android Software/Hacking General [Developers Only]] jmbneaf:
Awesome! Thanks Chainfire!
[Android Software/Hacking General [Developers Only]] cdesai:
Nm.
[Android Software/Hacking General [Developers Only]] StErMi:
I'm using Ubuntu 12.04 x64 version with latest eclipse (stable), latest adb (stable) and sdk version.

Maybe it's be that I don't understand restrictions of your aapt version.

If I use your faapt it would not compile as always, I notice that R.java is not regenerated well and my projects show those errors.

With faapt I can only build but not clean? Or my is an example of not-stable-faapt?
[Android Software/Hacking General [Developers Only]] Chainfire:
Could be the linux compile, could be many things. If you want to figure it out, jump on IRC.

(I don't have much time though, leaving for Paris for the weekend in a bit)

EDIT: turned out to be a permission problem (doh), nothing to see here.
[Android Software/Hacking General [Developers Only]] StErMi:
For those like me that develop under Linux please remember to update aapt file permission to be executed!

It will solve your problem :)
[Android Software/Hacking General [Developers Only]] wildstang83:
Didn't have problems but I did forget to set the permission lol

Thanks for the reminder.
[Android Software/Hacking General [Developers Only]] giveen:
So from my simple device developer standpoint, how will this affect compilation time of system apps?

Typically my build time is around 75 minutes for a CM10 device build.

Also I am not seeing the patch on http://r.cyanogenmod.com

*edit*, nevermind found the patch http://r.cyanogenmod.com/#/c/24040/
[Android Software/Hacking General [Developers Only]] Chainfire:
Typical how both your questions are answered by the first post.
[Android Software/Hacking General [Developers Only]] KOJANHQ:
After compiling faapt (Patched aapt from android source) on Mac OS X i get Bus error: 10:

...snip...

Can someone help me with compiling on Mac OS X?
[Android Software/Hacking General [Developers Only]] DieBagger:
Holy sh**, android development has just become fun again... Really compile times have gone way done with this patch... Only problem, now I can't get coffee while I wait for eclipse to re-compile.. ;)

thx a lot!
[Android Software/Hacking General [Developers Only]] Chainfire:
I've not been able to compile the SDK on my OS X VM at all, so I can't help you directly. Not sure why this would throw a "bus error", it's a relic of the past that has no place in modern computing.

First, revert to the original code, as I see you made some changes.

(1) Try reducing lutCapacity to 256 (should still be enough for most projects) in case it's a heap allocation problem.

(2) If that doesn't work, try changing the onlyPublic bool to a uint32_t (and change some code), or change both onlyPublic and resId to to uint64_t if you're compiling to 64 bit executables... in case it's an alignment issue (as should be the case when you get a bus error, but shouldn't happen with this code, and I've read is regularly not the actual cause of a bus error on OS X).

(3) Try removing the "static" keywords, see if that helps

If any of those things fixes the problem, do let us know ...

Are you sure the bus error occurs at allocation? If not, at which access? If you know which iteration it happens...
[Android Software/Hacking General [Developers Only]] dymmeh:
How am I supposed to play on the internet if compiling is this fast? :confused:
[Android Software/Hacking General [Developers Only]] KOJANHQ:
I found solution:

//
// Copyright 2012 The Android Open Source Project
//
// Cache for resIds - we tend to lookup the same thing repeatedly
//

#include "ResourceIdCache.h"
#include <vector>

struct lutEntry {
String16 package;
String16 type;
String16 name;
bool onlyPublic;
uint32_t resId;
};

//typedef struct lutEntry t_lutEntry;

// more than enough... uses about 100kb of memory
//static const int lutCapacity = 4096;
//static struct lutEntry lut[lutCapacity];
std::vector <lutEntry> lut;
static int lutUsed = 0;

uint32_t ResourceIdCache::lookup(const String16& package,
const String16& type,
const String16& name,
bool onlyPublic)
{
for (int i = 0; i < lutUsed; i++) {
if (
// name is most likely to be different
(name == lut[i].name) &&
(package == lut[i].package) &&
(type == lut[i].type) &&
(onlyPublic == lut[i].onlyPublic)
) {
return lut[i].resId;
}
}
return 0;
}

bool ResourceIdCache::store(const String16& package,
const String16& type,
const String16& name,
bool onlyPublic,
uint32_t resId)
{
lut.push_back(lutEntry());
lut[lutUsed].package = String16(package);
lut[lutUsed].type = String16(type);
lut[lutUsed].name = String16(name);
lut[lutUsed].onlyPublic = onlyPublic;
lut[lutUsed].resId = resId;
lutUsed++;
return true;
}
[Android Software/Hacking General [Developers Only]] Chainfire:
That's not a solution, that's a work-around. It doesn't figure out what the problem was, it just uses some different class to implement the original idea ;)
[Android Software/Hacking General [Developers Only]] Chainfire:
Patch updated with Mac OS X compatibility, and a Mac OS X binary has been added to the download :)
[Android Software/Hacking General [Developers Only]] giveen:
Thank you, I failed to read your post completely. Basically I just need to upgrade my processor, lol.
[Android Software/Hacking General [Developers Only]] wildstang83:
Haha exactly
[Android Software/Hacking General [Developers Only]] dzn:
Hey,

Disclaimer: this might just be me missing a readme somewhere or doing something wrong!

I've been building K-9 ( android e-mail client ) since 2 years, when I read about this I tried it. Just swapped out the aapt binary on my linux system. Ever since I had resource troubles ( weren't found in the app ). Only when I switched back it worked again. I'm back at the default aapt for now, just letting you know.

thx
[Android Software/Hacking General [Developers Only]] MacDegger:
Excellent fix!

Somewhere between 17 and 20, compile times really skyrocketted (as well as build size, still not entirely sure why the inclusion of annotations does that). This fixes the build time issue totally ... autobuild is ON again :)
[Android Software/Hacking General [Developers Only]] Chainfire:
Will try to reproduce and fix :)
[Android Software/Hacking General [Developers Only]] :
I'm going to try this on my pc running linux

Any chance for arm version ?
[Android Software/Hacking General [Developers Only]] Chainfire:
Note sure what is going on here. I have installed the sources and dependencies on my Windows system (my Linux system is currently not equipped to build stuff like this, will try later) and produced files both in aapt as well as in faapt mode - with identical results.

The patches have been posted/submitted (see first post, AOKP currently has a full up-to-date merge), feel free to build an ARM version yourself - I'm not planning to.
[Android Software/Hacking General [Developers Only]] superatmos:
Really amazing CF.. awesome!! Hopefully we'll see this patch soon in AOSP :)
[Android Software/Hacking General [Developers Only]] dzn:
No problem. If you need more stats let me know, otherwise assume it's some strange combination of circumstances.
[Android Software/Hacking General [Developers Only]] Chainfire:
First off, are you getting these resource errors at runtime or at compiletime? And can you give more details about the exact errors and such?

Really curious as to what is going on here ... the aapt executable is just drop-in (make sure you give it +x) ...