yashsingh1/xdaforums huggingface dataset:
[Android Software Development] xavihernandez:
Ok thanks for your answer.

Well if I blocks connections from Whatsapp I won't receive messages I guess.

Well I do not get delayed messages. But whatsapp got lots of wakeups (maybe due to the fact that it cannot use gcm to deliver instant message).

I had never noticed that before on BetterBatteryStats or Wakelock Detector, Whatsapp wakeup the phone almost every minute (50-60/h).

Can you tell me your wakeups stats from whatsapp please ?
[Android Software Development] PunchUp:
I use GCM (planning to get rid of it). Whatsapp has 226 wakelocks in 2 hours. Depends on the amount of messages I think. Not sure
[Android Software Development] RogyHyde:
Seems to.

20 wakelocks per hour... Not too much.

Very little amounts of incoming messages, too.
[Android Software Development] xavihernandez:
And what about Wakeups ? I think not much.

Ok ok. Do you use Gapps? If not can you tell me about WhatsAp wakeups? I get 50-60/h without GCM (because no Gapps).
[Android Software Development] PunchUp:
Oh sorry. I didn't read your post properly. How do you check for wakeups?
[Android Software Development] xavihernandez:
No problem.

Well if you use BetterBatteryStats, check in "Alarms" part.

If you use Wakelock Detedcor, check "Wakeup triggers" part.
[Android Software Development] PunchUp:
Ok wait I'll check.

Edit: 2h 14m - 197 times
[Android Software Development] xavihernandez:
Wow it's pretty high. Even higher than me while I do not use GCM.

Well I'll wait for someone not using GCM posting his wakeup stats.
[Android Software Development] haffenloher:
Please, could you all just move the NOGAPPS-unrelated discussion about Whatsapp, Youtube, etc. to the appropriate threads? Thank you!
[Android Software Development] PunchUp:
I receive a lot of messages

I don't see how it's unrelated. The fact that he mentioned the Whatsapp issue has actually helped me as I was looking forward to try No GApps myself
[Android Software Development] xavihernandez:
It is kinda related. Well if you don't want to read, just do not read.
[Android Software Development] sancho_panzer:
No, it's not related. Do you really think this is the place to talk about ALL apps having problems about stupid GCM. Read thread title, it's about NetworkLocation, MapsAPI and Blank Store. Use PM or open a thread for that matter.

It's also amazing see people here concerned about Google privacy matters but using and talking about Whatsapp!
[Android Software Development] xavihernandez:
Well as I stated, if you do not want to read just do not read. Period.

I have started to get rid of Gapps due to battery not privacy...

Well anyways it's a good place to talk, no need for people like you with a bad mood.
[Android Software Development] PunchUp:
[MENTION=5942520]sancho_panzer[/MENTION] calm down.
[Android Software Development] sancho_panzer:
Respect Xda rules and don't talk to me about moods, this isn't your walking park.

Sorry?!
[Android Software Development] xavihernandez:
I give up on this.

Do not read my post and you will be fine, I won't quote you.
[Android Software Development] RogyHyde:
I'm privacy concerned, but I have a live in what, UNFORTUNATELY, I cannot give up WhatsApp or Facebook (e.g.: teachers using them and not reachable through mail or FLOSS alternatives).

Do not judge, I'm not judging you. Thanks.

I'm off talking something not-totally-related-with-NoGApps here, for respect to others. PM me if interested.

Sorry for the inconveniences.
[Android Software Development] Cozmos23:
Tried it yesterday because google services were trying to get my location every 10seconds and it was too annoying.

I'm really surprised how good it works, even Tasker with Cell detection. Also I was able to download my bought apps from the playstore when logging on with my ID.

My phone is feeling much more "fresh"
[Android Software Development] Izzysoft:
[MENTION=3999488]MaR-V-iN[/MENTION] Just a short "update": I still couldn't get NetworkLocation working on that Wildfire – but "importance" of that fact just went down, because the Wildfire is just a "test device" and…

I succeeded on my second device (Motorola Milestone 2, currently running 4.1.1 with CM). Though not showing coordinates, SatStat displays my current position fine on the map if WiFi is available. If not, it crashes when calling up the map (FC) – and though no longer running, is listed at #1 of the top consumers 24h later. I had a similar issue with another app using MapsApi and Location (RFSignalTracker) a while ago. Only way to get out of that "battery sucking" is to either reboot the device, or uninstall the "alleged sucker".

My guess is that, on crash, the app had some WakeLocks set which then were not released, staying as "zombies".

Should I file that as issue on Github for NL? Is there anything which can be done from your end (like e.g. setting a "maximum lifetime" for whatever got stuck there, so it would get automatically released if not used/refreshed before "expired")?

Apart from that, I'm fascinated: BlankStore works great, Location and Maps as well. Currently I'm not missing a single thing from the "original GApps". But that might change when I have to use the MS as main device in a few weeks (my primary needs to be sent in for service) ;)
[Android Software Development] selemine:
so Mar-vin has given a talk on the nogapps motivation on xda devcon, any chance that we can watch it somewhere or get the slides at least?
[Android Software Development] JanGhent:
For me UnifiedNlp seems to drain battery more, somehow by the PHONE app.

Still I have troubles getting the database to work with the NOGAPPS NetworkLocation and OmniRom / CM11 on several devices.,

A few questions:

Should the name be cells.db or lacells.db?

Where do you have to place it? On 4.4.4 /sdcard/ doesn't exist. So

/sdcard0/.nogapps/cells.db

or

/sdcard1/.nogapps/cells.db (external)

Is a log message written?

- database can't be found

- cell-ID is not in database

- lookup time

How fast should a look-up normally be? Less 1 s or less 1 minute.

And is it only looking for the cellID the phone is connected to or seeks is also for unconnected cell-ID's in the neighbourhood?

Thx. with wifi enabled all is working fine BTW. Still love this project.
[Android Software Development] haffenloher:
cells.db for the old database file format, lacells.db for the new one. NetworkLocation can work with both.

You'll probably want to generate your own database with up to date cell data using this guide (link can be found in the first post).

Place it onto the internal storage (sdcard0).
[Android Software Development] MaR-V-iN:
You can find the slides here: http://xdaforums.com/android/general/talk-slides-xdadevcon-14-google-android-t2897726

It's not focused on nogapps, but I guess you might be interested anyway.

Did you try without the GSM backend running?

Logging is disabled by default for performance and privacy reasons. You can enable it by adding "log.tag.nlp=DEBUG" to your /system/build.prop - it should then report once the db file is checked, but not if the db file is not found
[Android Software Development] JanGhent:
[MENTION=5988044]haffenloher[/MENTION]

Thx.

Yes, not enough to say if that makes a difference.

Thx..

Still how long should a lookup in the DB normally take ( < 1sec ?)
[Android Software Development] MaR-V-iN:
Usually it should take less than a second, yes - but i never tested on slow or low-memory devices...
[Android Software Development] JanGhent:
Thx, I'm gonna build a new db tonight.

Just wondering, I had UnifiedNLP working with GMSlocation-backend in a phone without SIM card.

In that light does MNC matter, or does a phone with SIM card limit itself someway?
[Android Software Development] MaR-V-iN:
I guess NOGAPPS NetworkLocation does work only with SIM card, but I never tested. GSM-location-backend uses some different code to obtain cell tower ids which works better for some phones, but causes high battery drain on others (or maybe the same as well) - there's still some investigation needed.

If you run your phone without SIM card, it heavily depends on the phone's radio chip, how it will continue to scan for networks - it might be locked to a single frequency or scan randomly. When using a sim card, the radio will keep on the associated frequency as long as there is a network on it (or you search for networks, which will disconnect you)
[Android Software Development] JanGhent:
Have things changed.? I ended up with a DB not working, so I took a peek.

The cell_towers.csv.gz I downloaded has 14 columns : radio	mcc	net	area	cell	unit	lon	lat	range	samples	changeable	created	updated	averageSignal

First column radio, a string

According to the guide the DB I have to create should have 18 columns starting with mcc integer?

So I get an `expected 18 coumns but found 14 columns - filling the rest with NULL` message on importing.
[Android Software Development] JanGhent:
For me this worked:

CREATE TABLE cells_new(radio TEXT , mcc INTEGER, mnc INTEGER, lac INTEGER, cellId INTEGER,unit INTEGER, long REAL, lat REAL,range INTEGER, samples INTEGER, changeable BOOL, created INTEGER, updated INTEGER, averageSignalStrength INTEGER);

The cell_towers.csv.gz I downloaded had only 14 columns.

---------- Post added at 09:53 PM ---------- Previous post was at 09:34 PM ----------

I have 3 devices, 1 simcard. I normally test location with OSMAND and SatStat.

With SatStat I can see MCC, MNC etc. It doesn't matter if I have a SIM card inserted, all devices change CellId quite regularly in SatStat, see often the same, but somehow although the cellid is in the database, OSMAND can not find it.

Sometimes a device without SIM card finds (WIFI disabled) finds a location, but always very slow.

FYI Tested with sqlite3 a simple lookup

SELECT * from cells WHERE cid = *

took on a 181MB world database.

Samsung Galaxy S around 9 sec: CPU Time: user 7.800782 sys 1.437500

Galaxy Note 2 around 2 sec

Made an index on cid;

Samsung Galaxy S CPU Time: user 0.003907 sys 0.000000

So don't we need an index, and on which columns? Dunno the exact query in the lib.

Tradeof +50mb db increase 181 -> 231
[Android Software Development] MaR-V-iN:
Thanks, I updated the post accordingly. OpenCellId is changing their format quiet often right now, as they start cooperating with Mozilla: https://location.services.mozilla.com/downloads

We can't use index on cid only, we would need it on mcc/mnc/cid altogether - and sometimes that's not even sufficient, that's why lacells.db added lac (which was not there on cells.db). As cell tower operators do nasty things here, I can't say exactly but I guess index should be mcc/mnc/cid/lac - that's also what is used to request right now

The file format is not really final, in fact an sqlite3 database is stupid here, as the database is never changed once created. The gsm location backend for unifiednlp uses some other format, see https://github.com/rtreffer/LocalGS...ter/src/org/gfd/gsmlocation/db/BCSReader.java
[Android Software Development] JanGhent:
That format will settle down then sometime.

Yeah I saw some duplicate MMC/MNC/CID entries. WTF. Cell tower operators don't know what an ID is. Some cell towers though broadcast more then one ID, I believe, or maybe change ID dynamically.

BTW is there any logic in LAC?

Maybe on CID is enough, for a filtered db MCC and MNC is unique, and an index on CID is boosting performance enough in my test.

At least on a query like this

SELECT * from cells WHERE mcc=204 AND mnc=1 AND lac = 1500 AND cid = *

+1000x faster: 0.6s to 0.0003s

Also limiting my cell phone to 2G boosted performane here on a no SIM card phone. Yes, Locationmanager works without SIM card.

And I feel an index on CID only boosted performance here. Got it instantly now, wifi disabled in OSMAND on a 231mb World DB.

CREATE INDEX idx_cid ON cells (cid)
[Android Software Development] MaR-V-iN:
I heard that some operators intent to randomize cell ids regularly to make locating using them impossible (or maybe to be able to hide imsi catchers?), but afaik this is only plans right now. I also heard that a major operator's own cell management is so bad, that they build their database using opencellid.

LAC should normally be the same among several towers at the same location - this might be interesting for locating as well :)

Thanks for your research, I added your suggestion to the tutorial.
[Android Software Development] Nyakov:
When I use UnifiedNlp and open map app the firs I see is approximate(gsm tower) location, and then after few second GPS location. With NetworkLocation I don't see in map app approximate(gsm tower) location. Is it ok?

Can someone confirm?
[Android Software Development] JanGhent:
Which ROM?

I have that issue with CM11. I can't get NetworkLocation with database working in CM11, it can be device specific, it does work on other devices with OmniROm 4.4.4

NetworkLocation and UnifiedNlp do work on CM11 but suffer from battery drain.

Both work with Omnirom.

I can confirm the battery drain for UnifiedNlp on the Phone App on CM11 and latest OmniRom.
[Android Software Development] Nyakov:
Device Sony Xperia Z1(with unlocked boot loader). Firmware - rooted official 14.4.A.0.108 (Android 4.4.4)

I just cannot understand, is it work "quiet" and don't show GSM location but help to do quick GPS, or don't work at all.:confused:
[Android Software Development] JanGhent:
This is NOGAPPS, so it is for devices on custom ROMS that have no GAPPS (Google Apps)

Check page 1
[Android Software Development] Nyakov:
1. For rom to be custom not necessary to have "custom" world in caption.

2. UnifiedNlp work fine, is it not part of NOGAPPS project?
[Android Software Development] xavihernandez:
I think he meant that since you have all Gapps preinstalled on your Stock ROM, you don't need any of this (you already have the official NetworkLocation.apk from Google)

To answer, yes it does act quietly. When you run an application that requires Location it will help you to be located thanks to mobile network. Exactly how the Google location does.

People on rom without Gapps cannot use Network location, and have to use GPS only. With this, we are able to be network located, not only GPS located. And it is really faster.
[Android Software Development] Cookie Ninja:
FYI, I'm on stock ROM on all rooted devices. I rip out all Google bloatware including location service and all associated lib & other files. I then use unified NLP. No problems there....

Dead Cookies leave no trails...
[Android Software Development] xavihernandez:
Hi [MENTION=3999488]MaR-V-iN[/MENTION],

When I launch an application which tries to get my location (Maps, SatStat, GPS Test, ...), NetworkLocation does not starts. It stays close. Then I cannot have my location (I assume only GPS is on, then only way to get location is by GPS only, no network location).

Do you have any clue ?

EDIT : let me precise, when I manually close NetworkLocation (via Settings > Force close), it never starts again. I have to reboot the device. The second thing is that NetworkLocation run one time, I am waiting for location, and several minutes later (location is not found yet) I can see that NetworkLocation does not ask for location (I have taken a look at Privacy Guard and it says NetworkLocation has requested location several minutes ago)

Another thing, I had launch Maps, requested for my location, wait for few minutes, no go. Went to SatStat, wait several minutes, no go. Kept the screen on, then several minutes after Maps popped up and said location has been determined (location was good). But nothing in SatStat, and nothing in GPS Test neither (still "No Fix").

EDIT : when I say several minutes, it more than 5 minutes. Sometimes even 15 minutes.
[Android Software Development] Cozmos23:
Yeah noticed that too. Network location is not working but I'm using the premade cells.db.

But should be CM11 specific as mentioned before.

My GPS behavior is also similar.

The first GPS lock after reboot is taking ages.

But when it is locked once the GPS is working really quick until reboot.
[Android Software Development] Nyakov:
UnifiedNlp with GSM backend on Motorola Defy+ cm-11-20141007-NIGHTLY-mb526 shows that I am in Austria, but I am in Ukraine.

On Sony Xperia Z1 shows all OK.
[Android Software Development] k4r70ng:
could someone try and download firefox beta or instagram with blankstore?

All other apps i have tried works!

it does not seem to work here and my kernel doesnt give any logcat atm :/
[Android Software Development] sancho_panzer:
Already did it downloading Firefox. No problems here.

Nevertheless I'm getting lots of FC lately, I'm guessing it's related to this last Play Store 5 update.
[Android Software Development] Wakamatsu:
Do you have NetworkLocation installed? Some apps won't install without it. Not sure about Firefox, but I found this to be the case with the Starbucks app.
[Android Software Development] k4r70ng:
i dont but today when i tried it worked for both apps :eek:

Very weird! But i guess google might be doing some internal changes since the release of lollipop. Thx for testing anyway!
[Android Software Development] Cozmos23:
I have an Firewall and for using GPS do I have to let the service have access to the net? And Network Location also?

The red GPS in the middle.

Red means its a system service

Beside Network Location not working and some apps not showing in Blank Store Im really happy without Google Services.

Claiming back full control over my phone is really important to me and this thread helped me to get a step closer.

Its the small thing that counts. Adblock and Firewall saving a lot of mobile data which is really expensive in my country.

App Ops in Cyanogenmod and a neat automation of daily tasks via Tasker.

And not to mention getting rid of nearly 95% of the wakelocks :)

A huge thank you from me.
[Android Software Development] aospid:
If you want fast GPS locks, let it access the internet.

If you are not using the SQL database file to provide Cell Tower I.D, and use things like a weather app, you need to allow internet access for NetworkLocation.
[Android Software Development] sancho_panzer:
[MENTION=3999488]MaR-V-iN[/MENTION] here we go again, BlankStore started to FC on each time I try to open it on my devices. Didn't changed anything on my system for months. Maybe something related to Google updating Play Store to receive Lollipop?

Tapatalk signature:

Device:

Samsung Galaxy S4 (GT-I9505)

ROM:

CyanogenMod 11/M9

Kernel:

Default CM11/M9 3.4.0

Recovery:

TWRP 2.7.1.0

Modem:

I9505XXUGNE8

Device:

Nexus 7 (Grouper)

ROM:

CyanogenMod 11/M9

Kernel:

Default CM11/M9 3.1.10

Recovery:

TWRP 2.7.1.0
[Android Software Development] MaR-V-iN:
No problem here. Did you try recreating your android id using the checkin tool?
[Android Software Development] sancho_panzer:
Now it's working (most of the time) on my S4, always FC on Nexus 7. I was hoping to maintain my Android id...

Tapatalk signature:

Device:

Samsung Galaxy S4 (GT-I9505)

ROM:

CyanogenMod 11/M9

Kernel:

Default CM11/M9 3.4.0

Recovery:

TWRP 2.7.1.0

Modem:

I9505XXUGNE8

Device:

Nexus 7 (Grouper)

ROM:

CyanogenMod 11/M9

Kernel:

Default CM11/M9 3.1.10

Recovery:

TWRP 2.7.1.0
[Android Software Development] :
Why is blankstore discontinued? Are we not supposed to use it anymore? What's the alternative?
[Android Software Development] MaR-V-iN:
Once Google decided that you should no longer use an android id there is not much possible anymore. This even happens on Google Android™ from time to time under certain conditions. You can try to refresh your android id, but there is no tool out their to do so :D

BlankStore uses the old Android Market API instead of the latest Play Store API. Moreover it relies on direct password and android id storage which it should not.

The alternative is still far from complete, which is why i try to provide the needed updates to blankstore (like after they disabled the deprecated download API), so it's still safe to use it.
[Android Software Development] Nyakov:
If the is any workout for making NetworkLocation-gms.apk works on cm 11?

Don't bother. Somehow it is working from today CM update.
[Android Software Development] Sick1:
Just wanted to drop by and inform:

Im have Oneplus One with custom CM11 nightly build.

Using Blankstore and Network Locations from here, and of course Freecygn.

For maps i use Osmand and Nokia Here beta.

All running gooooooood!
[Android Software Development] Sick1:
Hello again.

Is there any way to fake that google services are installed?. As some apps seems to require that...
[Android Software Development] xavihernandez:
Not yet. :)
[Android Software Development] Sick1:
Thanks,

Actually i think i got some app working with Xprivacy when i set restrictions to some "google token" . as far as i know, it gives some fake data to an app, that believes its all authentic google info stuff
[Android Software Development] mrrocketdog:
ok, figured this would be a good thread to ask for assistance/ideas on...

am using duckduckgo and freezing (with Tibu) the stock browser. all is well except when a click on a link from an XDA thread or text msg ,etc. it will not open.

does anyone know a fix/workaround or do i have to have stock browser defrosted for a link to open?

thanks for reading and any ideas or suggestions.

"all i can really do , is stay out of my own way and let the will of heaven be done"
[Android Software Development] Vagelis1608:
Unfreeze stock browser.

Freezing it seems to brake other browsers.

Sent from my D620r [Stock 4.4.2]
[Android Software Development] michelsberg:
I have the stock browser frozen without any issue. Maybe go to the app info (in system settings), clear everything and especially "clear defaults".
[Android Software Development] NexS:
Hey,

installed it and made it work with the europe cells.db

However, ist just gave me the correct loacation on wifi. on mobile connection my location always jumps round and round in germany??? Is that behavior correct?
[Android Software Development] aospid:
The Wi-Fi connection will generally locate closer to where you are because of subscriber I.P.

The Mobile connection will locate to wherever the nearest exit I.P of your carrier, so yes, it is pretty normal.

Influencing variables are carrier/ROM/software/security etc.
[Android Software Development] sancho_panzer:
Not true, I always DELETE stock browser on my ROMS.
[Android Software Development] NexS:
Okay thank you, but the location given on mobile connection ist useless then, absolutely. Its not even close.
[Android Software Development] aospid:
It works absolutely fine for myself. :) In fact, too fine! Triangulation and signal homing can be a scary thing when particular agencies do not appreciate one exercising their temporary civil privilege: 'Freedom of Speech'.

Some of us know who GooGle really are, and that is why we appreciate the good work that is offered here! ;)

This is maybe worth a read - http://xdaforums.com/showthread.php?t=1422969

The lack of accuracy that you are experiencing is most likely caused by the carrier network type and your device/ROM configuration.
[Android Software Development] Cozmos23:
Which Rom are u using? Noticed that CM had some problems with Network Location till M11 on the Galaxy S4. Haven't tested M12 yet
[Android Software Development] sancho_panzer:
Not true, M9 worked fine and M12 is working as it should too.

Device:

Samsung Galaxy S4 (GT-I9505)

ROM:

CyanogenMod 11/M12 (KK 4.4.4)

Kernel:

Default CM11/M12 3.4.104

Recovery:

TWRP 2.7.1.0

Modem:

I9505XXUGNE8

Device:

Nexus 7 (Grouper)

ROM:

CyanogenMod 11/M9 (KK 4.4.4)

Kernel:

Default CM11/M9 3.1.10

Recovery:

TWRP 2.7.1.0
[Android Software Development] dajoe:
Has anybody tried this on one of the CM12/Lollipop alpha builds yet? Will it work like on KitKat or are there major changes that require a new version?
[Android Software Development] Cozmos23:
I was using the premade cells.db which wasn't working. I now made one myself from OpenCellId and its working fine on 1206 nightly.

Not to mention that I needed 2 trys to compile and at the beggining a lesson in switching folders in the terminal emulator :p
[Android Software Development] gueschmid:
Which region did you build? And can you share ist?

Thanks

gueschmid