cyanogenmod

Can't cherry pick (error)

左心房为你撑大大i 提交于 2019-12-13 10:39:00
问题 I'm trying to cherry-pick a commit from CyanogenMod Github and having issue, here's more info: Commit to cherry-pick: https://github.com/CyanogenMod/android_device_lge_bullhead/commit/4c98c8df392dfb305d7ffe5deaf9a2bdf7824037 Error occurring: error: commit 4c98c8df392dfb305d7ffe5deaf9a2bdf7824037 is a merge but no -m option was given. fatal: cherry-pick failed Please help me, my repo is based off CM, has a different branch and is modified for a different ROM. 回答1: When cherry-picking a merge

cm12 build for one plus failed

假装没事ソ 提交于 2019-12-13 05:04:48
问题 I am trying to build cm12 for One Plus. But I get the following error and the build process stops. I checked CM12 build failed for oneplus one also. Can anyone please help? I used 1). build/envsetup.sh 2)brunch bacon make[1]: Entering directory '/home/xyz/Codes/CM12/kernel/oneplus/msm8974' make: *** No rule to make target '/home/xyz/Codes/CM12/out/host/linux-x86/bin/dtbToolCM', needed by '/home/xyz/Codes/CM12/out/target/product/bacon/dt.img'. Stop. 回答1: Got the answer from XDA. Need to get

Is it reliable to test an Android application on a rooted phone with cyanogenmod

梦想的初衷 提交于 2019-12-13 04:32:20
问题 I am learning how to program in Android and I am using Android Developer Tools to deploy and test on a Samsung GT-5830L If I decide to root this device and install cyanogenmod will I be able to deploy and test ?, or is it posible that certain parts of the Android Api get broken in this process 回答1: whether you are rooted or not, certain api calls to hardware features will act differently from stock android versus any skinned android OS. Cameras functions will be unreliable, reading files from

android:textColor no longer works in Marshmallow

一曲冷凌霜 提交于 2019-12-11 11:10:35
问题 I have written an app which relies on colors defined in resources. Some are set directly in the layout XML file, others are set in code. Examples: Color definition in res/values/styles.xml : <color name="orvGyro">#33B5E5</color> Layout: <TextView android:id="@+id/textView3" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/dotSpace" android:textAppearance="?android:attr/textAppearanceSmall" android:textColor="@color/orvGyro" /> Color in code:

how change screen led like Cyanogenmod widgetrenderFx night mod

泄露秘密 提交于 2019-12-11 01:32:29
问题 i work about application how can change android screen brightness, can somme help me by giving some examples of how to doing this. Thanks :-) 回答1: This peice of code will set the brightness: private void setBrightness(int brightness) { try { IHardwareService hardware = IHardwareService.Stub.asInterface( ServiceManager.getService("hardware")); if (hardware != null) hardware.setScreenBacklight(brightness); } catch (RemoteException doe) { } } Do not forget to add to your manifest <uses

Help building patched android framework

二次信任 提交于 2019-12-10 16:09:00
问题 I am new to Android platform development. I have just succeded building Cyanogenmod 7 sources after applying a patch, which adds extra jars to the system (fit into /system/framework directory). After flashing the device and checking that the new custom jars are there, and decompiling (extracting classes.dex and running dex2jar) just to verify that the needed classes are there, I see my test program crashing due to ClassNotFound exceptions. Since the compiled custom java sources seem ok, have

Making successful Bluetooth connections in Android

落爺英雄遲暮 提交于 2019-12-10 10:08:04
问题 I am mystified by two approaches to making BT connections in Android. This is what I have done for as long as I can remember, and it has worked from 2.3+ devices to early 4.x. This what the Android docs describe as well. private static final UUID sppUUID = UUID.fromString("00001101-0000-1000-8000-00805F9B34FB"); bluetoothSocket = bluetoothDevice.createRfcommSocketToServiceRecord(sppUUID); bluetoothSocket.connect(); This has ceased to work on some newer Androids (Nexus 7 running 4.4),

Android-Telephony application that keeps focus on incoming calls

眉间皱痕 提交于 2019-12-09 18:27:33
问题 I am developing a custom telephony application that is able to receive calls. Using this code for handling the incoming call https://code.google.com/p/auto-answer/source/browse/trunk/src/com/everysoft/autoanswer/AutoAnswerIntentService.java Unfortunately my app loses focus on the incoming call. THIS was a partial solution for outgoing calls Android- Telephone app that keeps focus on outgoing & incoming phoneCall What about incoming calls? How do I keep focus in my custom app? I am guessing

Host-based Card Emulation, any guidance please?

两盒软妹~` 提交于 2019-12-09 03:25:47
问题 I'm new to this field, I got a Nexus S ( CyanogenMod11 = Android Kitkat 4.4.2) And I need to use HCE (Host-Based Card Emulation) mode in order to emulate a contactless card. Any guidance on the steps and the tips I need to follow in order to accomplish this? ( - Do I need to program the simulated Secure Element? put it on cloud? ) P.S: I have to use the new Reader Mode also, because my app is going to be read by another Android NfC-enabled phone and not by an NFC reader. Thank you. 回答1:

Is the Samsung Galaxy S4 compatible with CyanogenMod's smart card emulation (NFC)?

谁都会走 提交于 2019-12-08 12:04:15
问题 I have the Samsung Galaxy S4 and the SCM SDI010 card reader. My goal is to let the S4 emulate a smart card which then can be read by the card reader. I tried to apply the PKI applet example described here (installing CyanogenMod 10.2, starting se-emulator on the S4 and starting the se-pki-client on my Linux PC). But the connection establishment fails with either a "SCARD_W_UNRESPONSIVE_CARD" or "SCARD_W_UNPOWERED_CARD" exception on the reader side. Does anyone know if the NFC chip on the S4