android-6.0.1-marshmallow

Signalling a root C++ executabke from a non-privileged Java Android app

独自空忆成欢 提交于 2020-01-05 06:55:14
问题 I am amending an Android C++ system executable (healthd), which runs as root. I want the amended healthd to be able to receive some form of signal from an unprivileged Android Java app. A few hundred ms of latency is fine, as is polling from healthd, rather than an actual "event". I only need to send an indication that something has happened - there's no requirement to transport data. What's the simplest form of communication I can use? 来源: https://stackoverflow.com/questions/57199825

How to update android emulator to 6.0.1

烈酒焚心 提交于 2020-01-03 10:33:03
问题 I am getting error 'E/Surface: getSlotFromBufferLocked: unknown buffer: 0xab7cffe0'. Upon research, I got understood that it is known issue in android 6.0. How to update android emulator from 6.0 to 6.0.1? In SDK manager I can see Android 7.0 and android 6.0 are installed ,but 6.0.1 is not there. How should I update 6.0 to 6.0.1? Also in AVD manager I cannot see any system image other that 6.0. I have installed other versions also, then how to select those versions of android for my AVD? Also

How to update android emulator to 6.0.1

江枫思渺然 提交于 2020-01-03 10:31:44
问题 I am getting error 'E/Surface: getSlotFromBufferLocked: unknown buffer: 0xab7cffe0'. Upon research, I got understood that it is known issue in android 6.0. How to update android emulator from 6.0 to 6.0.1? In SDK manager I can see Android 7.0 and android 6.0 are installed ,but 6.0.1 is not there. How should I update 6.0 to 6.0.1? Also in AVD manager I cannot see any system image other that 6.0. I have installed other versions also, then how to select those versions of android for my AVD? Also

The BarcodeScanner plugin in ngCordova doesnt work in Android 6

爱⌒轻易说出口 提交于 2019-12-25 07:40:33
问题 I'm developing in Ionic Framework.The barcodeScanner plugin(ngCordova) doesn't work for the newest version of Android. I suspect the plugin is not updated for this version. Any of you have found a solution? Thanks. 回答1: Samuel Paredes, There is many change in Android 6(M) , the main is runtime permissions, so we need the camera for the barcode scanner , but the plugin is not yet updated for that so we need to On the Camera permisson for the application manuully. Setting >> APP manager >> Your

Android: Implement a custom ConnectionService which uses built-in telephony stack

孤街醉人 提交于 2019-12-23 12:08:23
问题 I'm trying to implement a custom ConnectionService in my custom telephony-app. According to the documentation I need to select my registered PhoneAccount as default in the Phones settings menu. However when I'm registering a PhoneAccount to use the native telephony stack the PhoneAccount does not seem to show up for use. Let me show you what I got working so far. This code registers a PhoneAccount that "...is not allowed to manage or place calls from the built-in telephony stack" PhoneAccount

Attempt to invoke virtual method 'void android.widget.Editor$SelectionModifierCursorController.hide()' on a null object reference

余生长醉 提交于 2019-12-23 08:58:18
问题 This error seems to be happening only on Samsung phones using Android 6.0.1. or 7.0: Fatal Exception: java.lang.NullPointerException Attempt to invoke virtual method 'void android.widget.Editor$SelectionModifierCursorController.hide()' on a null object reference android.widget.Editor.performLongClick (Editor.java:1139) android.widget.TextView.performLongClick (TextView.java:10945) android.view.View$CheckForLongPress.run (View.java:22568) android.os.Handler.handleCallback (Handler.java:739)

Spinner inner padding is larger on Android 6.0.1

前提是你 提交于 2019-12-18 12:57:09
问题 Intro: With the new release of Android 6.0.1, seems like Android made some changes on the Spinner component because by default, the inner padding around the down carrot is a bit bigger. I noticed this on an app where I haven't modified anything in the code, but simply updated the OS on the device and yet the spinners have different sizes. Situation: I have 2 spinners one next to the other in a RelativeLayout (mind the rest of the components, I added everything so you can see this part of the

Camera.open works on Android 4.2.2, but fails on 6.0.1

南笙酒味 提交于 2019-12-13 08:39:50
问题 I have 2 devices to test my app : an Acer v370 running Android 4.2.2, and a Samsung Galaxy S6 on 6.0.1 The app works fine on the Acer, but crashes instantly on the S6. I'm using _camera = Camera.open(0); and debugging says it crashes at this point. The error I get is : 09-15 11:24:33.491 15284-15284/com.user.qrReader E/AndroidRuntime: FATAL EXCEPTION: main Process: com.user.qrReader, PID: 15284 java.lang.RuntimeException: Unable to resume activity {com.user.qrReader/com.user.qrReader

Upgrading app in background using Device Policy Controller

本小妞迷上赌 提交于 2019-12-01 12:58:10
问题 I have a working DPC app which is the Device Owner. I have tried this on two different Android 6.0.1 devices to rule out any device/manufacturer issues. I used adb shell dpm set-device-owner com.example.dpc/.DpcDeviceAdminReceiver to make my DPC-app the owner. After making it the owner it can correctly grant COSU permissions to another app, which convinces me that this has worked. The command returned the response: Success: Device owner set to package com.example.dpc Active admin set to

Spinner inner padding is larger on Android 6.0.1

前提是你 提交于 2019-11-30 08:27:48
Intro: With the new release of Android 6.0.1, seems like Android made some changes on the Spinner component because by default, the inner padding around the down carrot is a bit bigger. I noticed this on an app where I haven't modified anything in the code, but simply updated the OS on the device and yet the spinners have different sizes. Situation: I have 2 spinners one next to the other in a RelativeLayout (mind the rest of the components, I added everything so you can see this part of the layout - removed the totally unnecessary properties or view ids) <RelativeLayout android:id="@+id