• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[AOSP 10.0_r40][all-in-one] microG ufOfficial (cve Aug, 2020) arm32/64

Search This thread

oF2pks

Senior Member
May 22, 2016
779
1,074
All-in-one: "Regular" #phhusson Quack AOSP 10.0 vanilla build with microG patches, embedded #su /system, and multiple foss apps:
(/system partition requires: [arm64:>1.9Gb] [arm32:>1.3Gb] minimum)
  • official microG: GmsCore(mapbox) GoogleServicesFramework DroidGuard
  • addons: NominatimGeocoderBackend DejaVuBackend IchnaeaNlpBackend LocalWifiNlpBackend openbmapRadiocellsOrg LocalGsmNlpBackend
  • hot-built: emailExchange2 snapMusic calendarEtar Terminal screenRecorder testDevCamera Calculator
  • prebuilt: Fdroid F-DroidPrivilegedExtension browserQuarks ZxingClient kDI Superuser BromiteWebview NeoLinker
  • system/bin* : aapt32 grep64(pcre2grep version 10.22 2016-07-29)
Also included are these non-foss 3 Google : Playstore, Calendar/Contact_Sync; like phh-Superuser apk, they are disabled by default, and can be activated via Settings/Apps.
not included: Latest compatible Google Maps 9.84.2 optional https://androidfilehost.com/?fid=11410963190603886579

Extra(s): Nfc and Cafeine tiles, basic photoEditor*, experimental WakelockBlocker via Settings/{}DevOptions <USE WITH CAUTION>.

Nota: android Webview v87 is signed & upgradable from Bromite, Terminal is activated via Settings/System/Advanced/DeveloperOptions and Playstore has to be ForceStop-ed once after registration/wizard, and relaunch. F-Droid V.102.3 auto-update needs FDroid/Settings/ExpertMode/Privileged disabled.
After first rom flash and MicroG prim-initialization, for immediate working location, toggle /Settings /Security&Location /Location off&on. Switching between vtm & mapbox can need wipe for apk cache & account re-creation.
All included prebuilds are fdroid signed editions.

donations: Consider prim-origin @phhusson @MaR-V-iN @csagan5(Bromite)
others : @ale5000 @Setialpha #ThibG(DroidGuard)

+info for microG implementation https://forum.xda-developers.com/android/development/microg-unofficial-installer-t3432360
If you need more, please let me know about it, but for more "Google": just switch to phhusson "gapps" flavour...
 

Attachments

  • aio.jpg
    aio.jpg
    145.7 KB · Views: 972
  • microG1.png
    microG1.png
    167.8 KB · Views: 953
  • microG2.png
    microG2.png
    150.8 KB · Views: 883
  • microG3.png
    microG3.png
    60 KB · Views: 1,885
  • phhSU.png
    phhSU.png
    187.9 KB · Views: 1,879
  • purchasedApps_Google_Play_Store.jpg
    purchasedApps_Google_Play_Store.jpg
    140.7 KB · Views: 1,889
  • DroidGuardNEW-0_1_2-28.apk
    98.6 KB · Views: 64
  • GoogleServicesFramework.apk
    22.8 KB · Views: 56
  • GmsCoreMapbox209999-1d_2020-09-07.apk
    17.3 MB · Views: 46
  • GmsCoreVTM209999-1e-2020-09-09.apk
    10.1 MB · Views: 43
  • GmsCoreMapbox209999-1f_2020-11-19.apk
    17.5 MB · Views: 76
Last edited:

oF2pks

Senior Member
May 22, 2016
779
1,074
Bugs reporting

ufOfficial rom includes static & passive app kDI (KalturaDeviceInfo) to list all your device specs (treble, widevine...) in a json, and can help you with GSFid or others info(s). This app doesn't connect to internet, and the json (~Android/data/com.oF2pks.kalturadeviceinfo/files/) should not include any private data or ids; it's up to you to share or not.

If you encounter major AOSP "hardware (not software)" related bugs, please switch to #phhusson vanilla v___ edition and help him with proper focused hardware logs. For Camera2 missing features, take time to check OpenCamera first, aosp DevCamera "sample stub" is included for testing purpose : autofocus... ; full cam specs are also in KalturaDeviceInfo (per each "physical" cam).
(Specific Redmi Note 9 Pro overlay_joyeuse & props_ curtana/joyeuse are added)
(Huawei/msm8937 Moto/G7Play Razer/cheryl Sony/XZ3 Realme/X2Pro overlays are switched to aosp FusedLocation)
swappiness =28 & dirty_writeback_centisecs =1500: check #suKAdiutor for other tweaks.


For Treble with root, you can do some tests modifying specifically,
/system/bin/rw-system.sh to change some features on post-fs:
https://github.com/phhusson/device_phh_treble/blob/android-10.0/vndk.rc#L1
check also phh-on-boot.sh & phh-on-data.sh

hot-built links :
Code:
[SIZE="1"]<?xml version="1.0" encoding="UTF-8"?>
<manifest>
	<remote name="los" fetch="https://github.com/LineageOS/" />
	<remote name="of2" fetch="https://gitlab.com/oF2pks/" />
	<remote name="qcom" fetch="https://source.codeaurora.org/" />
	<remote name="aos" fetch="https://android.googlesource.com/"/>

	<project path="packages/apps/ExactCalculator" name="platform/packages/apps/ExactCalculator" remote="aos" revision="master"/>
	<project path="packages/apps/Recorder" name="android_packages_apps_Recorder" remote="los" revision="lineage-17.1" />
	<project path="packages/apps/Jelly" name="jelly" remote="of2" revision="jQuarksMore" />
	<project path="packages/apps/SnapdragonMusic" name="quic/la/platform/packages/apps/SnapdragonMusic" remote="qcom" revision="android_ui.lnx.4.0.r24-rel" />
	<project path="packages/apps/Exchange" name="external/gigabyte/platform/packages/apps/Exchange" remote="qcom" revision="caf/LA.UM.7.7.c25" />
	
	<remove-project name="platform/packages/apps/Calendar" />
	<project path="packages/apps/Etar" name="android_packages_apps_Etar" remote="los" revision="lineage-17.1" />
	
	<remove-project name="platform/packages/apps/Terminal" />
	<project path="packages/apps/Terminal" name="android_packages_apps_Terminal" remote="los" revision="lineage-17.1" />
	
</manifest>

[/SIZE]
- Bromite latest webView v84, upgradable via F-Droid repo https://fdroid.bromite.org/fdroid/repo
- Optimized browser Quarks ( adBlocker, offline reading mht , print/pdf , share/clipboard target ...) https://gitlab.com/oF2pks/jelly/commits/jQuarksMore. Conversely to embedded WebViewShell, Quarks don't allow permissions for Camera & Microphone capture (WebRTC)

Attached State_Changes___.zip if for rom devs only
 

Attachments

  • State_Changes-2020-08-05.zip
    184.9 KB · Views: 23
  • default_wallpaper.png
    default_wallpaper.png
    61.8 KB · Views: 246
  • photoEditor-debug.apk
    8.9 MB · Views: 24
  • fdroid.png
    fdroid.png
    7.4 KB · Views: 246
  • microG1.diff-Apache2_0.txt
    17.2 KB · Views: 27
Last edited:

voxit

Member
Mar 30, 2016
28
9
Working super great here on OnePlus6 (enchilada), but I noticed a bug with the fingerprint sensor: working fine right after 1st boot, but not anymore after some times (I don't exactly know how to reproduce). Anyone is experiencing the same?

Edit: after a data wipe, fingerprint sensor is working fine during 1st boot but stops working right after any reboot without any modifications to system settings or app installed.
Edit2: it is actually a Quack Phh-Treble issue, confirmed on system-quack-arm64-ab-floss.img .

Edit3: Possible temporary workaround waiting for a real fix: https://github.com/phhusson/treble_experimentations/issues/1432#issuecomment-675568932
 
Last edited:

voxit

Member
Mar 30, 2016
28
9
Last edited:
  • Like
Reactions: oF2pks

patrickdrd

Senior Member
Mar 24, 2015
723
141
there's a problem with google maps download from androidfilehost:
Code:
ava6.androidfilehost.com sent an invalid response.
ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION
any chance of a mirror?

edit: nevermind, I've found it
 
Last edited:

oF2pks

Senior Member
May 22, 2016
779
1,074
New home build of GmsCore uploaded in post#1
How do I update to more recent build of MicroG GMS Core, for example the one released today?

Due to missing official #MaR-V-iN mapbox.key for extensive use of microG (https://github.com/microg/android_pa...re/issues/1155), I will not maintain home build of 3x microG components, and switch next @phhusson aosp10 (if any ?) to official #MaR-V-iN 3x apk.

( @pvdeejay ) , if you have twrp on your device, I already suggest trying #Setialpha packages with official #MaR-V-iN releases https://forum.xda-developers.com/apps/magisk/module-nanomod-5-0-20170405-microg-t3584928.
Even with a future aosp10 GSi; since I'm using anticipated PlayServices variants to v20.99.99, this will need manual (root #su) cleaning of /data/data/* for all 3 microG apks https://forum.xda-developers.com/showpost.php?p=83540735&postcount=37 or a complete re-install (fastboot erase).
 

pvdeejay

Senior Member
Jan 5, 2010
128
30
hmm, this is tricky as I have device with no TWRP xiaomi redmi 9 code name galahad.
So I guess I need to tweak the image with new apks and reflash using fastboot. Am I right?
 

oF2pks

Senior Member
May 22, 2016
779
1,074
hmm, this is tricky as I have device with no TWRP xiaomi redmi 9 code name galahad.
So I guess I need to tweak the image with new apks and reflash using fastboot. Am I right?
For now, use my recent attached. I don't believe a GSi can be tweaked easily. If @phhusson don't update aosp10 anymore (r45 is still on cve Aug 2020 and r46/47 are unfinished by Google), I will re-upload aosp10.0_r40 with official #MaR-V-iN 3x apks, but that would need fastboot erase (or root:#su file manager on /data/data/*).
 
Last edited:

pvdeejay

Senior Member
Jan 5, 2010
128
30
I'm sorry, I'm getting 404 error on the latest microg upload no matter if I click in the first post or the latest one.
Should I just wait or can you do something about it please?
 

pvdeejay

Senior Member
Jan 5, 2010
128
30
I am coming back to this after a while.
I don't seem to be able to get google maps work. it always crashes when started.
I have only installed this as an app update and I don't managed to add it as a system app. Might that be a problem?
 

oF2pks

Senior Member
May 22, 2016
779
1,074
Latest GmsCore uploaded in post #1 2020-11-19 commits: https://forum.xda-developers.com/attachment.php?attachmentid=5138863&d=1605887888
I am coming back to this after a while.
I don't seem to be able to get google maps work. it always crashes when started.
I have only installed this as an app update and I don't managed to add it as a system app. Might that be a problem?
Seems the issue is about cronet JAVA NIO ByteBuffers ; check https://github.com/microg/GmsCore/issues?q=cronet . Latest @MaR-V-iN don't solve it (this issue is not on Webview implementation).
 

oF2pks

Senior Member
May 22, 2016
779
1,074
Final(?) release.

Due to missing official #MaR-V-iN mapbox.key for extensive use of microG (https://github.com/microg/GmsCore/issues/1155):
aosp10.0_r40 with official #MaR-V-iN 3x apks is re-uploaded
https://androidfilehost.com/?a=show&w=files&flid=286761
{_Names} = {_Apks}
- DroidGuard = org.microg.gms.droidguard
- GoogleServicesFramework = com.google.android.gsf
- GmsCore = com.google.android.gms


(Because of anticipated to v20.99.99 PlayServicesvariants),
TO UPGRADE from previous rom, you need to imperatively apply following steps:
  1. Remove Google account(s) via Settings/Accounts
  2. Uninstall any update via Settings/Apps/3x_apks (microG_Services_Core)
  3. Clear storage via Settings/Apps for 3x_apks
  4. root:#su with GhostCommander (or other or TWRP) to delete 3x_apks for: /data/data/3x_apks
  5. fastboot flash system10.img and reboot

I also switch hot-built jQuarks browser to latest F-Droid signed jQuarks (upgradable) edition: be sure to save your possible *.mht archives prior to fastboot flash system.

How do I update to more recent build of MicroG GMS Core, for example the one released today?
Once updated, use F-Droid repo or straight https://microg.org/download.html to update microG 3x_apks.
 
Last edited:

pvdeejay

Senior Member
Jan 5, 2010
128
30
Hello,

I have issues migrating to the microg.org compatible build.
I have no uninstall option for microg gms core so I have only wiped the data and flashed the updated system image.
After rebooting I can see no packages with compatible signature when looking at microg version in f-droid.
So I have manually tried to remove everything related to GMS under /data and /data/app using su and rm over adb.
But still when reflashing and rebooting I do have this.
How would I go about fixing it?
gsf proxy and microg guard helper are both okay as I had no updates to them installed.

Edit:
Granted signature spoofing through Settings -> Apps -> MicroG GMS Core.
However I still have two permissions missing: receive SMS and background location.
When I tap them on the self check activity nothing changes. I can't enable them from the Settings -> apps...

And still F-Droid can find no compatible versions so I suspect I have semi broken install here.

Edit:
I've downloaded latest apk from microg.org and installed it on the top of what I have so far and it sorted it-self meaning that device registration, FCM and unified NLP are all working great. F-droid now correctly shows compatible versions and I expect that it will be able to install updates in the future.

What I have noticed is that I have only few apps that were able to reregister FCM token after this upgrade dance. A lot of apps are still waiting for push messages with the old token e.g. Microsoft Teams, Viber, Element (former riot.im), Revolut, George (Die Ertzte banking) and more. I am looking for a way on how to invalidate their FCM tokens and force these apps to register for push messages again other than clearing their data and logging in and / or setting up them from scratch.
Is there a way around this?


Thanks and greetings

Peter
 
Last edited:

pvdeejay

Senior Member
Jan 5, 2010
128
30
It appears I can't edit my previous post...

Okay, figured the last bit of the puzzle and now I'm happy with the migration.
Please note that this rom is prerooted thus I fired up ADB and poked a bit with shared preference storage related to the apps I wished to force refreshing their FCM tokens.
I ended up deleting files related to GMS, FCM, firebase and similar such as these....
FirebaseAppHeartBeat.xml
com.google.android.gms.appid.xml
com.google.android.gms.measurement.prefs.xml
com.google.firebase.crashlytics.xml
com.appboy.push_registration.xml
com.appboy.storage.user_cache.push_token_store.37a6259cc0c1dae299a7866489dff0bd.
This is not straight forward, but it's easily done with a bit of common sense.
Out of 10 apps I had to reinstall only one of them.
Also I have discovered in the process that some apps may refresh their FCM token on upgrade as this has happened to me with one of those 10 apps.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    All-in-one: "Regular" #phhusson Quack AOSP 10.0 vanilla build with microG patches, embedded #su /system, and multiple foss apps:
    (/system partition requires: [arm64:>1.9Gb] [arm32:>1.3Gb] minimum)
    • official microG: GmsCore(mapbox) GoogleServicesFramework DroidGuard
    • addons: NominatimGeocoderBackend DejaVuBackend IchnaeaNlpBackend LocalWifiNlpBackend openbmapRadiocellsOrg LocalGsmNlpBackend
    • hot-built: emailExchange2 snapMusic calendarEtar Terminal screenRecorder testDevCamera Calculator
    • prebuilt: Fdroid F-DroidPrivilegedExtension browserQuarks ZxingClient kDI Superuser BromiteWebview NeoLinker
    • system/bin* : aapt32 grep64(pcre2grep version 10.22 2016-07-29)
    Also included are these non-foss 3 Google : Playstore, Calendar/Contact_Sync; like phh-Superuser apk, they are disabled by default, and can be activated via Settings/Apps.
    not included: Latest compatible Google Maps 9.84.2 optional https://androidfilehost.com/?fid=11410963190603886579

    Extra(s): Nfc and Cafeine tiles, basic photoEditor*, experimental WakelockBlocker via Settings/{}DevOptions <USE WITH CAUTION>.

    Nota: android Webview v87 is signed & upgradable from Bromite, Terminal is activated via Settings/System/Advanced/DeveloperOptions and Playstore has to be ForceStop-ed once after registration/wizard, and relaunch. F-Droid V.102.3 auto-update needs FDroid/Settings/ExpertMode/Privileged disabled.
    After first rom flash and MicroG prim-initialization, for immediate working location, toggle /Settings /Security&Location /Location off&on. Switching between vtm & mapbox can need wipe for apk cache & account re-creation.
    All included prebuilds are fdroid signed editions.

    donations: Consider prim-origin @phhusson @MaR-V-iN @csagan5(Bromite)
    others : @ale5000 @Setialpha #ThibG(DroidGuard)

    +info for microG implementation https://forum.xda-developers.com/android/development/microg-unofficial-installer-t3432360
    If you need more, please let me know about it, but for more "Google": just switch to phhusson "gapps" flavour...
    5
    Bugs reporting

    ufOfficial rom includes static & passive app kDI (KalturaDeviceInfo) to list all your device specs (treble, widevine...) in a json, and can help you with GSFid or others info(s). This app doesn't connect to internet, and the json (~Android/data/com.oF2pks.kalturadeviceinfo/files/) should not include any private data or ids; it's up to you to share or not.

    If you encounter major AOSP "hardware (not software)" related bugs, please switch to #phhusson vanilla v___ edition and help him with proper focused hardware logs. For Camera2 missing features, take time to check OpenCamera first, aosp DevCamera "sample stub" is included for testing purpose : autofocus... ; full cam specs are also in KalturaDeviceInfo (per each "physical" cam).
    (Specific Redmi Note 9 Pro overlay_joyeuse & props_ curtana/joyeuse are added)
    (Huawei/msm8937 Moto/G7Play Razer/cheryl Sony/XZ3 Realme/X2Pro overlays are switched to aosp FusedLocation)
    swappiness =28 & dirty_writeback_centisecs =1500: check #suKAdiutor for other tweaks.


    For Treble with root, you can do some tests modifying specifically,
    /system/bin/rw-system.sh to change some features on post-fs:
    https://github.com/phhusson/device_phh_treble/blob/android-10.0/vndk.rc#L1
    check also phh-on-boot.sh & phh-on-data.sh

    hot-built links :
    Code:
    [SIZE="1"]<?xml version="1.0" encoding="UTF-8"?>
    <manifest>
    	<remote name="los" fetch="https://github.com/LineageOS/" />
    	<remote name="of2" fetch="https://gitlab.com/oF2pks/" />
    	<remote name="qcom" fetch="https://source.codeaurora.org/" />
    	<remote name="aos" fetch="https://android.googlesource.com/"/>
    
    	<project path="packages/apps/ExactCalculator" name="platform/packages/apps/ExactCalculator" remote="aos" revision="master"/>
    	<project path="packages/apps/Recorder" name="android_packages_apps_Recorder" remote="los" revision="lineage-17.1" />
    	<project path="packages/apps/Jelly" name="jelly" remote="of2" revision="jQuarksMore" />
    	<project path="packages/apps/SnapdragonMusic" name="quic/la/platform/packages/apps/SnapdragonMusic" remote="qcom" revision="android_ui.lnx.4.0.r24-rel" />
    	<project path="packages/apps/Exchange" name="external/gigabyte/platform/packages/apps/Exchange" remote="qcom" revision="caf/LA.UM.7.7.c25" />
    	
    	<remove-project name="platform/packages/apps/Calendar" />
    	<project path="packages/apps/Etar" name="android_packages_apps_Etar" remote="los" revision="lineage-17.1" />
    	
    	<remove-project name="platform/packages/apps/Terminal" />
    	<project path="packages/apps/Terminal" name="android_packages_apps_Terminal" remote="los" revision="lineage-17.1" />
    	
    </manifest>
    
    [/SIZE]
    - Bromite latest webView v84, upgradable via F-Droid repo https://fdroid.bromite.org/fdroid/repo
    - Optimized browser Quarks ( adBlocker, offline reading mht , print/pdf , share/clipboard target ...) https://gitlab.com/oF2pks/jelly/commits/jQuarksMore. Conversely to embedded WebViewShell, Quarks don't allow permissions for Camera & Microphone capture (WebRTC)

    Attached State_Changes___.zip if for rom devs only
    1
    @oF2pks is the org.openbmap.unifiedNlpProvider package deprecated and thus can be disabled without any trouble for microG location backend to work?
    That's what I think but I would like a confirmation.


    Edit: found a confirmation here ;)
    https://github.com/FriendlyNeighborhoodShane/MinMicroG_releases/releases
    Replaced abandoned FDroid GSM NLP backend with releases from @ploink

    Thanks for the work, those prebuilds are handful ;)

    Everything is running fine here.
    1
    However I still have two permissions missing: receive SMS and background location.
    When I tap them on the self check activity nothing changes. I can't enable them from the Settings -> apps...

    These bugs seem fixed in today GmsCore v0.2.15.204713 .

    I"ll build android11 soon and check whether it can be flash straight over android10 without any loss.
    1
    Hi! Will you also release an arm32_binder64 ufOfficial Android 11? Thanks. (Your roar microG is superb., by the way)
    It's now uploaded: https://androidfilehost.com/?fid=2188818919693756508