yashsingh1/xdaforums huggingface dataset:
[Android Software Development] SecUpwN:
Since the developer of AOKPush refuses to answer my request of including an alternative way to receive push notifications from GCM, how can I add the necessary dependencies to my AOKP without all the other Google crap? With Xprivacy, I might give this a try.. ;)
[Android Software Development] MaR-V-iN:
You need at least the original gapps versions of the following installled in system:

- GoogleServicesFramework

- GoogleLoginService

- PlayStore

- Play Services

You may find those files in the GAPPS package in /system/bin. PlayStore is named Phonesky, You may need to get Play Services from another source (or install it via PlayStore).

Note that enabling gcm requires you to at least send your device metrics to Google, else it's impossible to receive push notifications. If you block access to android id to one of those apps given above, you won't be able to use gcm either
[Android Software Development] SecUpwN:
Crap, too much data collection. I guess I won't use AOKPush then. Sucks balls! :(
[Android Software Development] tinyXperia:
Most of you have probably read this already, it will be harder and harder to leave PlayServices out of you phone. http://arstechnica.com/gadgets/2013...ntrolling-open-source-by-any-means-necessary/
[Android Software Development] thelieisajoke:
Looks like we probably soon need more nogapps. Like SMS and Gallery-Apps

http://arstechnica.com/gadgets/2013...ontrolling-open-source-by-any-means-necessary

N7105 | NOGAPPS | PROBAM | AGNI
[Android Software Development] MaR-V-iN:
On KitKat, "system apps" (those who get system permissions) are stored in /system/priv-app while those apps in /system/app are just preinstalled "user apps". Please try to put BlankStore in /system/priv-app

The idea was to add automatic update or multi-update features some day. Those are not possible without Intents, because they force user interaction. Maybe both should used in BlankStore, automaticall decided on whether the app got the permission or not?

it would be nice if it would work with reflection, but it's not easily possible: BlankStore not only uses hidden functions but also extends hidden classes (see here). This is not possible with reflection.

I started designing a way to workaround this problem in case it's aidl based (which it is in this case as well as in NetworkLocation), but it's not ready yet.

Just a note on NetworkLocation with KitKat: Google changed the package name for networklocation in kitkat (compare old with new. You could try to change packagename, but i'm quiet sure that something else also changed.
[Android Software Development] etbotw:
Building instruction

Hello,

I have tryed to build from source but I don't understand how to find the file android.location.jar ...

For android.location.provider.jar I manage to import using dex2jar from my phone but I'm not sure to be right.... MaR-V-iN you said :

Can you (or anyone else) give us a short how to ?

Thanks in advance,

Etbotw
[Android Software Development] cernekee:
That fixed it. Thanks.

OK, so we have two different problems:

1) Making calls out to hidden APIs in the /system/framework jars

2) Having the right constants/classes available locally (in our app) so that suitable arguments can be provided to those calls

Here is my first attempt - could you please take a look:

https://github.com/cernekee/BlankStore/commit/a17da6b75eafda5a871081f1967aa3f0369de82e

https://github.com/cernekee/BlankStore/commit/6c82fcbafd3b7a7e595fb7db4b9bc6ab9e8f0aea

https://github.com/cernekee/BlankStore/commit/d3c719d0495e43a59be5b6f7dd7e78eb56fdef9b

https://github.com/cernekee/BlankStore/commit/31bee1752c3929f571f89a849019f42f8f3ceeb7

https://github.com/cernekee/BlankStore/commit/880287a122e2f7b11b238b3834f0e817a1095a30

Unfortunately the reflection stuff adds a fair amount of bloat.

But on the plus side, this is buildable with a totally stock SDK:

https://github.com/cernekee/BlankStore/commit/0b9a10b76fe7aeb7a925f40b0bbe6bc5f194cbdb

https://travis-ci.org/cernekee/BlankStore/builds/13842131

The permission autodetection is implemented here:

https://github.com/cernekee/BlankStore/commit/d1151de002cf9d08858b973ec29b271243257559

https://github.com/cernekee/BlankStore/commit/629272a411ad22a3a8142bc26e49e4ff00f8a0a7

Bonus - here's a quick hack to bring up the "add account" activity the first time the user starts the app:

https://github.com/cernekee/BlankStore/commit/e03e390459ce06f5848f3b439e179c0a975f8952
[Android Software Development] MaR-V-iN:
android.location is the stuff from https://github.com/CyanogenMod/android_frameworks_base/tree/cm-10.2/location/java/android/location

I think NetworkLocation currently only uses a single hidden api function: android.location.Location.makeComplete - it should be possible to copy this into the source (maybe i'm doing this in a future release anyway), so you don't need to compile against android.location internals.

You, man, are great! I just took a short look on the code and it seems good. I'll pm you :)
[Android Software Development] etbotw:
Thanks for you answer but ...It seems that many sources are needed, i tryed but wasn't really sucessfull (maybe not spent enought time), I'm really new with all this aspect, sorry for noob question ...

Can you give instructions to include the right sources, or is it possible to provide us a project ? I really want to learn, thanks again.
[Android Software Development] MountainX:
I want to support this project

This is a fantastic project! Have you received enough donations to ensure that it keeps moving forward?

Why don't you put this on a crowdfunding site like Indigogo or Kickstarter? I want to support your work. I know most donations you receive through forums like this are small. If you turn this into a serious project on a crowdfunding site I think you could raise enough money to make this into something big. I'm happy to send you a small donation here, but if you set up a crowdfunding project, I pledge to contribute a much larger donation (and I have friends who will do the same).

If you get this really developed, maybe the new Cyanogenmod, Inc. will purchase your company with some of the venture capital funding they have raised recently.
[Android Software Development] MaR-V-iN:
I uploaded the binaries i'm using in my classpath for your convenience: http://d-h.st/wG9

I do not receive many donations. Actually I'm not sure I can ever ensure that this project is going to keep moving forward, I don't have the time to work on this as much as it would require - I already have like two full-time jobs (= i'm a computer science student). However I'm sure this project will keep running with newer Android versions - because I need it :)

If I would crowdfund this project, the pledgers would want to see me working on this. If I can't effort the time (and this has nothing todo with how much money I would receive) I can't work on this, what would be some kind of breach of agreement.

If Cyanogenmod, Inc would buy this project, it would mean it's end, because CyanogenMod has no problems with proprietary Google applications (the newly created CMAccount relies heavily on them). They're even working on making CyanogenMod officially comaptible with GAPPS.
[Android Software Development] nutpants:
You could use crowd sourcing to fund bounties as rewards for important improvements you don't have time for.

I would donate regularly if it encouraged a team to help you out.or even if it generated interest in getting the Google out of Google apps.

I love open source, but not direct personal information based advertising funded projects
[Android Software Development] aelmahmoudy:
I hope the OMNI project would support your work !

OMNI is a community based ROM started by devs like xplodwild & Entropy512 who left CM.
[Android Software Development] thelieisajoke:
I think the replicant project would really appreciate your work. (FOSS android kernel & hw drivers)

N7105 | NOGAPPS | PROBAM | TEUFEL
[Android Software Development] adwinp:
You can follow the same model OSMAND does: bidding for features;

http://code.google.com/p/osmand/

scroll to point #2
[Android Software Development] k4r70ng:
i get FC on blankstore. i've included logcat.
[Android Software Development] MaR-V-iN:
How did you retrieve this logcat? Looks like relevant parts (including the actual exception) are missing...
[Android Software Development] wkwkwk:
Hello.

I've installed NetworkLocation.apk under /system/priv-app but it doesn't seem to work.

If I use 'get network location' in tasker logcat says:

E/Tasker (11032): 11.50.53#E: error: code 3: java.lang.IllegalArgumentException: provider doesn't exist: network.
E/Tasker (11032): 11.50.53#E: error: prefsException/Get Location: java.lang.IllegalArgumentException: provider doesn't exist: network

GPS location works.

Thanks.
[Android Software Development] MaR-V-iN:
In KitKat Google changed the package name of the networklocationprovider.

Try this version on kitkat: http://d-h.st/E1R
[Android Software Development] wkwkwk:
Amazing work, as always, working as expected. Thank you
[Android Software Development] k4r70ng:
hmm i retrevied it with catlog, i have tried with diffrent accounts and i get fc on all i will try with a diffrent logcat program.

[EDIT] I wiped the cache and dalvik cache and now it works!!! =)

Really great work man, how about incorporate the android id creator in the app? i might give it a try if i get some free time over.
[Android Software Development] Voda_Smart_2:
Hello,

Nexus 7 WIFI ( 2012 ) I run SlimBean 4.2.2 build 8 without GAPPS.

EDIT:

I had a bad Android ID, now I generate from PC and it is working.

Blank Market it is working !!

p.s.

Any idea how can I check/test if Network location and nogapps-maps are ok ?

thank you
[Android Software Development] Voda_Smart_2:
Hello,

I try to install Open Maps but Blank Market FC after I press Install.

see attached log

Edit:

the same FC if I try to update ClassDojo, log attached.
[Android Software Development] MaR-V-iN:
Feel free :)

I use c:geo for testing, it's using both (make sure the selected map view is "Google Map" and it show osm maps)

Install BlankStore as system app by pushing it to /system/app (or /system/priv-app on KitKat)
[Android Software Development] Voda_Smart_2:
Thank you for help that solved the problem.
[Android Software Development] MountainX:
I read through about 13 pages of this thread so far. I'm ready to install NOGAPPS. I just installed CM 10.2 without any GAPPS. Where are the full instructions for installing all the NOGAPPS apks? I only found the one thread about how to install Blank Store. Is there a step-by-step guide for everything? Thanks
[Android Software Development] aelmahmoudy:
Do you follow the issue tracker on GitHub ? I submitted a bug and a couple of suggestions there:

https://github.com/mar-v-in/BlankStore/issues/1

https://github.com/mar-v-in/BlankStore/issues/2

https://github.com/mar-v-in/BlankStore/issues/3
[Android Software Development] MaR-V-iN:
Not yet. I think I'll add some more flashable zips, to make everything easier.

Just added a new version of NetworkLocation.

The new version will try to download missing cell information from opencellid.org via their API, so you don't need to update the cells.db file that often. Calculated location is less fluctuating.
[Android Software Development] MaR-V-iN:
Yeah, i read it.

Please note that I'm not actively developing nor using the old BlankStore these days (you may have noticed the last update is more than a year ago). I'll keep supporting it, but do not expect me to add any new features.

If someone else is willing to continue the work, feel free to fork the BlankStore; i'll provide every information you may need.

- Sorry for that, but i don't have much time and i currently focus on other things. btw: F-Droid is great for most purposes!
[Android Software Development] MaR-V-iN:
Just another update on NetworkLocation:

Version 1.3.0 added a GeocodeProvider with reverse geocoding feature (using data from Nominatim/OSM project). This requires an active internet connection and is currently not cached.

This feature is used in different apps, including the Android Gallery app on geolocated photos.
[Android Software Development] thelieisajoke:
Wow, that's really awesome. Just maps-api v2 missing and you reversed the whole google geodata stuff, good work indeed.
[Android Software Development] sharingan:
a good idea and a very nice thread
[Android Software Development] MaR-V-iN:
maps api v2 requires rom modification, app (play services library) modification or some really dirty system signature hacking. Not sure which way to go, maybe all of them :D Still need to investigate how map data is transfered between play services and the app using it.
[Android Software Development] dabl8:
Can NetworkLocation really be built with maven ? I just ran mvn package, put the apk in system/app etc., but it's not working for me (CM 10.1 without gapps). I compiled the proto with normal protobuf and it's not working either (compiling protoc-micro now on my netbook; wasted an hour on protobuf-nano yesterday messing with launcher3 :P ). Anyway the prebuild script points to proto not protos-repo. How does one compile an apk for KitKat?

Edit: protoc-micro says, --javamicro_out: protos-repo/apple_loc.proto: protos-repo/apple_loc.proto: Java MICRO_RUNTIME may only have 1 message if there is no 'option java_outer_classname'"

Edit: It seems to be working now, all of a sudden.
[Android Software Development] MaR-V-iN:
mvn package should work. Make sure the package name provided in AndroidManifest.xml is "com.google.android.location" for any version before KitKat and "com.google.android.gms" for KitKat.

I'll split the git in multiple branches, to make everything easier (also this would allow using the newer APIs for newer Android versions)
[Android Software Development] dabl8:
It appears to work for apps, maybe it took a while to download the db (wherever that is). I notice Battery Settings say GPS is on constantly but GPS is off: I'd guess that's a problem with words. got this in log:

12-03 12:22:55.560 W/PackageManager(389): Unknown permission android.permission.ACCESS_COARSE_UPDATES in package com.google.android.location
12-03 12:22:56.830 W/PackageManager(389): Unknown permission android.permission.ACCESS_COARSE_UPDATES in package com.google.android.location
12-03 12:23:21.470 W/PackageManager(389): Unknown permission android.permission.ACCESS_COARSE_UPDATES in package com.google.android.location
12-03 14:24:00.230 W/CursorWindow(4628): Window is full: requested allocation 17910 bytes, free space 2444 bytes, window size 2097152 bytes
12-03 14:26:27.860 W/InputDispatcher(389): channel '428e4928 com.android.settings/com.android.settings.Settings$LocationSettingsActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
12-03 14:26:27.860 E/InputDispatcher(389): channel '428e4928 com.android.settings/com.android.settings.Settings$LocationSettingsActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
12-03 14:26:27.870 W/InputDispatcher(389): Attempted to unregister already unregistered input channel '428e4928 com.android.settings/com.android.settings.Settings$LocationSettingsActivity (server)'
12-03 14:49:09.710 E/GpsLocationProvider(389): Error getting cell location info.
12-03 14:49:30.290 E/GpsLocationProvider(389): Error getting cell location info.
12-03 14:49:50.740 E/GpsLocationProvider(389): Error getting cell location info.
12-03 14:50:11.210 E/GpsLocationProvider(389): Error getting cell location info.
12-03 14:50:31.700 E/GpsLocationProvider(389): Error getting cell location info.
12-03 14:50:52.130 E/GpsLocationProvider(389): Error getting cell location info.
12-03 14:58:16.130 W/InputDispatcher(389): channel '423f25c0 com.android.settings/com.android.settings.Settings$LocationSettingsActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
12-03 14:58:16.130 E/InputDispatcher(389): channel '423f25c0 com.android.settings/com.android.settings.Settings$LocationSettingsActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
12-03 14:58:16.130 W/InputDispatcher(389): Attempted to unregister already unregistered input channel '423f25c0 com.android.settings/com.android.settings.Settings$LocationSettingsActivity (server)'
[Android Software Development] tinyXperia:
I'm curious if you anyone knows how operating systems that can run Android apps work (or don't work) with stuff like locationprovider. BB OS is closed source, but how does Sailfish OS do it? Do any of the gapps dependencies work?
[Android Software Development] jeekajoo:
Awesome work, thanks MaR-V-iN!
[Android Software Development] MaR-V-iN:
Interesting question. I assume they add a compatibility layer for NetworkLocation, as they provide this service in their OSs anyway and just need to pipe it to android the same way they do it for GPS. I don't think they do such a thing for the maps api, because it requires additional work.
[Android Software Development] owais40:
Support for GB has been dropped long ago. See below. So only older versions will work on GB.

http://xdaforums.com/showthread.php?p=39026764
[Android Software Development] dabl8:
please ignore

--
[Android Software Development] PiggyFlooper:
The op says

Network Location 2.3-4.3...

If no GB support, shouldn't it be changed to reflect this, most people won't read thru a whole thread before using mod

I'm on 4.0.3, maps 6.14.1, picks up location just fine. It's unclear to me what this version of Network Location does- non stalking? After installing will no longer pick it up. Put NetworkLocation in /system /app, deleted old, wiped its dalvic,renamed cells-world.db to cells.db, moved to sdcard/.nogapps, flashed maps API v.1 via 4ext. Will someone tell me why it won't work anymore, n possibly explain advantages in using it, had it worked:confused:King Baby

Sent From Above Using Xparent Blue Tapatalk
[Android Software Development] MaR-V-iN:
There are different kinds of "dropping support". For me this means I will no longer take care of GB during development. But if it is possible to keep things running (and it has been in the past and most likely will in the future) i'll happily make sure it does. However this means it could always happen that I release new versions that do not work with GB, I do not test on GB either. A bug report like the one above might end in me fixing the problem (and in this case it seems it could be easy).

This is not intended to be used together with regular google apps.
[Android Software Development] MaR-V-iN:
Could you please try this version: http://d-h.st/Ccw
[Android Software Development] PiggyFlooper:
Okay thanks, can't get location picked up on Osmand + either, I've explained what I did using 1.3- any help on somethin I missed greatly appreciated

Sent From Above Using Xparent Blue Tapatalk
[Android Software Development] MaR-V-iN:
Is it enabled in location settings? does it list up in the app list under all?
[Android Software Development] PiggyFlooper:
Yes and yes

Sent From Above Using Xparent Blue Tapatalk
[Android Software Development] gebla:
I have a Volvo carkit (SCT) based upon android 2.3. Device is rooted but network location is not available on the device (device is standard without google services). I would like to enable it to help speed up and improve GPS and navigation. I can install the nogapps networklocation version into the right folder but inside the settings menu I cannot switch it on.

The problem is that inside the settings menu the setting for network based location is removed. Meaning the option to switch it on is not available, the only option is to enable/disable GPS. Any advise how to switch on network location when the UI is not available to do so?

I am not a programmer but maybe: http://stackoverflow.com/questions/4721449/enable-gps-programatically-like-tasker might help as a solution?

Using the above inspiration I installed tasker/secure settings and secure helper. I created a task at boot to enable location service but still not working. The location service shows as enabled from the secure settings menu but maps and weather widget do not update the location. Any tips will be welcome
[Android Software Development] k4r70ng:
Osmand + works great here. M-a-rvin whats all the new stuff on github for?
[Android Software Development] runwithme:
If I have minimal gapps installed, with just the play store,play services,etc., so is it safe to assume the NetworkLocation mod will work by replacing the current system NetworkLocation.apk app and adding a database of phone cells at /sdcard/.nogapps/cells.db?
[Android Software Development] MaR-V-iN:
I didn't even know that it's possible to access the os on those devices :)

There seem to be problems with the latest version and android 2.3, so you should try with NetworkLocation 1.1.0. Also the precise Android 2.3 version could be important. Normally the system should save the location-enabled-setting, so it should stay enabled after reboot. Please also try using a usual App, because the default apps maybe force the usage of gps (the app developer can decide to do so). If possible, you might also create a logcat from system startup until the first location retrieval request. (if you think it contains sensitive information, you may also send it to me via pm)

What exactly do you mean?

Yes, that should work. However I'm not sure if some Google stuff might cause problems, but if it doesn't work you can always flash the original back ;)
[Android Software Development] k4r70ng:
Phonesky,framework etc.

Also i seems to have problem with blankstore on kitkat, The apk resides in priv-app but the apps dont have the rights to install after download, i can install them manually after download by browsing the storage. Is there any rights i can edit somehow?
[Android Software Development] jgcaap:
This project seems nice. =) can It be used in any cyanogenmod?
[Android Software Development] DOCIOHN:
Thanks for support but the new update brings a new problem.

I think it's fine to stay with v1.1.0 on old phones (Android 2.3.7). It works perfect (much better as google's location service) :D .

12-15 17:38:45.619: D/LocationRetriever(2450): org.microg.networklocation.backends.mozilla.IchnaeaCellLocationSource@40527010 caused problem!
12-15 17:38:45.619: D/LocationRetriever(2450): java.lang.NullPointerException
12-15 17:38:45.619: D/LocationRetriever(2450):	at org.microg.networklocation.data.LocationRetriever.retrieveLocations(LocationRetriever.java:147)
12-15 17:38:45.619: D/LocationRetriever(2450):	at org.microg.networklocation.data.LocationRetriever.retrieveLocations(LocationRetriever.java:135)
12-15 17:38:45.619: D/LocationRetriever(2450):	at org.microg.networklocation.data.LocationRetriever.access$300(LocationRetriever.java:14)
12-15 17:38:45.619: D/LocationRetriever(2450):	at org.microg.networklocation.data.LocationRetriever$2.run(LocationRetriever.java:99)
12-15 17:38:45.619: D/LocationRetriever(2450):	at java.lang.Thread.run(Thread.java:1019)
[Android Software Development] MaR-V-iN:
These are things I wrote, that are not usable (and might never get) that i wanted to share to other developers.

It can be used with any AOSP-based ROMs and probably even some of those vendor ROMs, so yes it can.

Also this error message should not be visible, it doesn't cause any problems.
[Android Software Development] Memethecat:
This is an excellent project, I've been gathering knowledge for quite a while so I can escape gapps, I already get the majority of my apps from fdroid, but there is a few on play store I would miss, so Blankstore is a great solution.

Is it possible to generate an Android ID using my phone? I Don't have a working PC.

Edit: it's OK, I got my PC to work (by hitting it) & I've got a new android I'd.
[Android Software Development] htnawsaj:
Great work [MENTION=3999488]MaR-V-iN[/MENTION] everything working as expected with gapps on CM 11,especially Blankstore