Closed amilopowers closed 8 years ago
The same problem on CM13,Nexus 5.
You need to check the permissions. It hadn't had one permission it needs.
In v1.3.0 and UnifiedNlp v1.5.0 it should automatically ask for permission. Unfortunately both are not on F-Droid yet.
Can you provide the apk file of v1.3.0?Now i can only download the source file.
Done.
Thanks for you work. Still crash on cm13,nexus5.I give it both location and phone permission. Do you need logcat info?
Yes.
03-04 16:48:45.205 D/WifiStateMachine(799): starting scan for "3lengjing"-WPA_PSK with 2462
03-04 16:48:45.325 I/E-Robot (1312): Notification posted: Notification(pri=0 contentView=com.tencent.qqpimsecure/0x7f030004 vibrate=null sound=null defaults=0x0 flags=0x62 color=0x00000000 vis=PRIVATE)
03-04 16:48:45.325 I/E-Robot (1312): Notification event posted: com.tencent.qqpimsecure: null, actions: [], extras: Bundle[{android.icon=2130837931}]
03-04 16:48:45.996 I/ActivityManager(799): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.cyanogenmod.trebuchet/com.android.launcher3.Launcher (has extras)} from uid 1000 on display 0
03-04 16:48:46.128 I/art (799): Background partial concurrent mark sweep GC freed 37758(2MB) AllocSpace objects, 13(300KB) LOS objects, 33% free, 25MB/38MB, paused 1.308ms total 119.932ms
03-04 16:48:46.515 D/NetlinkSocketObserver(799): NeighborEvent{elapsedMs=1001553, 192.168.1.1, [C06118FC59D9], RTM_NEWNEIGH, NUD_STALE}
03-04 16:48:46.587 W/OpenGLRenderer(1505): Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
03-04 16:48:47.754 I/E-Robot (1312): Focus change from [com.nolanlawson.logcat] -> [com.cyanogenmod.trebuchet]
03-04 16:48:48.461 I/E-Robot (1312): Alarm triggered, key: available-configured-networks-changed:poll
03-04 16:48:48.462 I/E-Robot (1312): Start wifi scan: true
03-04 16:48:48.462 I/E-Robot (1312): Reregister repeated exact alarm: available-configured-networks-changed:poll
03-04 16:48:48.462 I/E-Robot (1312): Trigger alarm "available-configured-networks-changed:poll" 1m 59s later
03-04 16:48:50.046 I/E-Robot (1312): Intent received: Intent { act=android.net.wifi.SCAN_RESULTS flg=0x4000010 (has extras) }, extras: resultsUpdated=true
03-04 16:48:50.068 I/E-Robot (1312): Available configured networks: [3lengjing, MyPC]
03-04 16:48:52.427 I/ActivityManager(799): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.google.android.gms/org.microg.nlp.ui.SettingsLauncherActivity (has extras)} from uid 10021 on display 0
03-04 16:48:52.456 I/ActivityManager(799): Start proc 7432:com.google.android.gms/u0a69 for activity com.google.android.gms/org.microg.nlp.ui.SettingsLauncherActivity
03-04 16:48:52.563 E/dex2oat (7446): Failed to create oat file: /data/dalvik-cache/arm/system@priv-app@NetworkLocation@NetworkLocation.apk@classes.dex: Permission denied
03-04 16:48:52.563 I/dex2oat (7446): dex2oat took 577.865us (threads: 4)
03-04 16:48:52.565 W/art (7432): Failed execv(/system/bin/dex2oat --runtime-arg -classpath --runtime-arg --instruction-set=arm --instruction-set-features=smp,div,atomic_ldrd_strd --runtime-arg -Xrelocate --boot-image=/system/framework/boot.art --runtime-arg -Xms64m --runtime-arg -Xmx512m --instruction-set-variant=krait --instruction-set-features=default --dex-file=/system/priv-app/NetworkLocation/NetworkLocation.apk --oat-file=/data/dalvik-cache/arm/system@priv-app@NetworkLocation@NetworkLocation.apk@classes.dex) because non-0 exit status
03-04 16:48:52.683 W/System (7432): ClassLoader referenced unknown path: /system/priv-app/NetworkLocation/lib/arm
03-04 16:48:52.691 I/ActivityManager(799): START u0 {cmp=com.google.android.gms/org.microg.nlp.ui.SettingsActivity} from uid 10069 on display 0
03-04 16:48:52.891 D/OpenGLRenderer(7432): Use EGL_SWAP_BEHAVIOR_PRESERVED: true
03-04 16:48:52.933 I/Adreno-EGL(7432):
The crash seems not to be caused by the Mozilla backend. Did you grant location permission to UnifiedNlp?
Did you install NetworkLocation.apk to /system/priv-app (or using a /system mover tool)? This is not intended for systems >4.4. It should work as a "usual" app.
yes,i install NetworkLocation.apk to /system/priv-app
Try to install it as a normal app (remove it from /system/priv-app first).
when install it as a normal app, it doesn't appear in Location-Location services. when install NetworkLocation.apk to /system/priv-app,it appear in Location-Location services.
It's not necessary to appear as Location service for functionality. The settings will pop-up as a normal app when it's not in Location->Location services.
install it as a normal app still crash
try untick/tick location permission for UnifiedNlp, reboot and provide new logcat if problem persists.
Can you try running in a root shell pm grant com.google.android.gms android.permission.ACCESS_COARSE_LOCATION
Please continue further discussion on this problem in https://github.com/microg/android_packages_apps_UnifiedNlp/issues/68 where it really belongs. Will close here.
Your backend does crash in Android 6.0.1 (OmniROM and CopperheadOS).
I get no location information at all. I use a hammerhead (Nexus 5) device.