Monday, 1 August 2016

Cannot clone device or create new hardware profile



I just started learning android studio from thenewboston but I'm stuck with this problem.I cant clone a device or create a new hardware profile from the avd manager.It shows an error message saying "null".I'm able to click next,finish and also select devices.Yes I did try cloning by right clicking the phone profile too but I got the same error.It does open the explorer to import hardware profiles though.Please help me for free kappa!(seriously please help me)
this is the error message details btw:
null
java.lang.NullPointerException
at com.android.tools.swing.util.FormScalingUtil.scale Component(FormScalingUtil.java:183)
at com.android.tools.swing.util.FormScalingUtil.scale ComponentTreeWorker(FormScalingUtil.java:140)
at com.android.tools.swing.util.FormScalingUtil.scale ComponentTree(FormScalingUtil.java:111)
at com.android.tools.swing.util.FormScalingUtil.scale ComponentTree(FormScalingUtil.java:98)
at com.android.tools.idea.avdmanager.ConfigureDeviceO ptionsStep.<init>(ConfigureDeviceOptionsStep.java: 97)
at com.android.tools.idea.avdmanager.CloneDeviceActio n.actionPerformed(CloneDeviceAction.java:46)
at javax.swing.AbstractButton.fireActionPerformed(Abs tractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed (AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultB uttonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.jav a:6535)
at javax.swing.JComponent.processMouseEvent(JComponen t.java:3324)
at java.awt.Component.processEvent(Component.java:630 0)
at java.awt.Container.processEvent(Container.java:223 6)
at java.awt.Component.dispatchEventImpl(Component.jav a:4891)
at java.awt.Container.dispatchEventImpl(Container.jav a:2294)
at java.awt.Component.dispatchEvent(Component.java:47 13)
at java.awt.LightweightDispatcher.retargetMouseEvent( Container.java:4888)
at java.awt.LightweightDispatcher.processMouseEvent(C ontainer.java:4525)
at java.awt.LightweightDispatcher.dispatchEvent(Conta iner.java:4466)
at java.awt.Container.dispatchEventImpl(Container.jav a:2280)
at java.awt.Window.dispatchEventImpl(Window.java:2750 )
at java.awt.Component.dispatchEvent(Component.java:47 13)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.j ava:758)
at java.awt.EventQueue.access0(EventQueue.java:97)
at java.awt.EventQueue.run(EventQueue.java:709)
at java.awt.EventQueue.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessI mpl.doIntersectionPrivilege(ProtectionDomain.java: 76)
at java.security.ProtectionDomain$JavaSecurityAccessI mpl.doIntersectionPrivilege(ProtectionDomain.java: 86)
at java.awt.EventQueue.run(EventQueue.java:731)
at java.awt.EventQueue.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessI mpl.doIntersectionPrivilege(ProtectionDomain.java: 76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 728)
at com.intellij.ide.IdeEventQueue.defaultDispatchEven t(IdeEventQueue.java:866)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeE ventQueue.java:650)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEv entQueue.java:381)
at java.awt.EventDispatchThread.pumpOneEventForFilter s(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.java:109)
at java.awt.WaitDispatchSupport.run(WaitDispatchSup port.java:184)
at java.awt.WaitDispatchSupport.run(WaitDispatchSup port.java:229)
at java.awt.WaitDispatchSupport.run(WaitDispatchSup port.java:227)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(WaitDispatchSup port.java:227)
at java.awt.Dialog.show(Dialog.java:1084)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl $MyDialog.show(DialogWrapperPeerImpl.java:792)
at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl .show(DialogWrapperPeerImpl.java:465)
at com.intellij.openapi.ui.DialogWrapper.invokeShow(D ialogWrapper.java:1638)
at com.intellij.openapi.ui.DialogWrapper.show(DialogW rapper.java:1587)
at com.intellij.openapi.ui.DialogWrapper.showAndGet(D ialogWrapper.java:1602)
at com.android.tools.idea.wizard.dynamic.DynamicWizar d.showAndGet(DynamicWizard.java:531)
at com.android.tools.idea.avdmanager.CreateAvdAction. actionPerformed(CreateAvdAction.java:41)
at javax.swing.AbstractButton.fireActionPerformed(Abs tractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed (AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultB uttonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.jav a:6535)
at javax.swing.JComponent.processMouseEvent(JComponen t.java:3324)
at java.awt.Component.processEvent(Component.java:630 0)
at java.awt.Container.processEvent(Container.java:223 6)
at java.awt.Component.dispatchEventImpl(Component.jav a:4891)
at java.awt.Container.dispatchEventImpl(Container.jav a:2294)
at java.awt.Component.dispatchEvent(Component.java:47 13)
at java.awt.LightweightDispatcher.retargetMouseEvent( Container.java:4888)
at java.awt.LightweightDispatcher.processMouseEvent(C ontainer.java:4525)
at java.awt.LightweightDispatcher.dispatchEvent(Conta iner.java:4466)
at java.awt.Container.dispatchEventImpl(Container.jav a:2280)
at java.awt.Window.dispatchEventImpl(Window.java:2750 )
at java.awt.Component.dispatchEvent(Component.java:47 13)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.j ava:758)
at java.awt.EventQueue.access0(EventQueue.java:97)
at java.awt.EventQueue.run(EventQueue.java:709)
at java.awt.EventQueue.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessI mpl.doIntersectionPrivilege(ProtectionDomain.java: 76)
at java.security.ProtectionDomain$JavaSecurityAccessI mpl.doIntersectionPrivilege(ProtectionDomain.java: 86)
at java.awt.EventQueue.run(EventQueue.java:731)
at java.awt.EventQueue.run(EventQueue.java:729)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessI mpl.doIntersectionPrivilege(ProtectionDomain.java: 76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 728)
at com.intellij.ide.IdeEventQueue.defaultDispatchEven t(IdeEventQueue.java:866)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeE ventQueue.java:650)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEv entQueue.java:381)
at java.awt.EventDispatchThread.pumpOneEventForFilter s(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:82)



Where can I find the vold.fstab of oppo f1f?



Help me sir uf somebody knows where to find the vold.fstab of oppo f1f? if there is no vold.fstab where can I edit to swap the internal memory
to sdcard?

Hope somebody can help thanks in advance.:angel:



There is no option for lockscreen shortcuts 4.4.2



Hi everyone
I recently updated my Samsung gt n8000 to 4.4.2.
But now when I use swipe as screenlock, there is no short cut option, to remove the short cuts. Anyone who can help?



Stock ROM for honor 7

Hi,
I'am a user of honor 7 (PLK-UL00)
I tried to root honor 7 but after the last step i.e to install SuperSU and then reboot your system,
My phone got stuck in boot loop then i started searching for a solution and found that i should install
another version for SuperSU which i did and that made my phone to always boot into bootloader.
Then i again went to hunt for a solution , I got that i had to install a stock ROM for my phone .
When i searched for stock ROM available for my phone i got ROMs available for only PLK-L01
So the question is that is it OK if i install PLK-L01 stock ROM in PLK-UL00 phone.
I'm struggling since a week ,immediate response will be appreciated
Thank you

"Android is upgrading: Optimizing apps" every time I reboot

My phone's Java VM was originally dalvik when in Kitkat. I did a firmware upgrade to lollipop, and now my Java VM has changed to ART. I mentioned that because I've read people say this is the cause for the "Android is upgrading: optimizing apps... Estimated max time xxx seconds".
So I want to know how to get rid of this optimizing thing because this takes a lot of time when booting up.
Device info: ZF5 A510CG WW

How does /etc/mixer_paths.xml TinyAlsa ctl/path routing work?

/etc/mixer_paths.xml is apparently related to TinyAlsa (https://stackoverflow.com/questions/...xml-in-android).

The file can be edited to reroute or alter audio. "adb root && adb remount && push mixer_paths.xml /etc/"

The file starts with a series of default parameters. I assume each corresponds to a hardware/ALSA value or rounting preference.


Code:


    <ctl name="Voice Rx Device Mute" id="0" value="0" />
        "id" is used when multiple controls appear under the same name. It's like an indexing scheme.
    <ctl name="Voip Mode Config" value="12" />
    <ctl name="SLIM_0_RX Channels" value="One" />
    <ctl name="SLIM_0_TX Channels" value="One" />


Then there are a series of profiles, which override default parameters.


Code:


    <path name="headphones">
        ...
        <ctl name="HPHL DAC Switch" value="1" />
        <ctl name="HPHL Volume" value="20" />
        <ctl name="HPHR Volume" value="20" />
        <ctl name="RX1 Digital Volume" value="82" />
        <ctl name="RX2 Digital Volume" value="82" />
        <ctl name="COMP1 Switch" value="1" />
    </path>


I observed that changed "RX1/2 Digital Volume" changed the output volume. "HPHL/R Volume" had no effect.

Some paths include an inner "path name=" tag. I assume this inherits settings.


Code:


    <path name="voice-line">
        <path name="voice-headphones" />
    </path>

    <path name="voice-headphones">
        <path name="headphones" />
        <ctl name="COMP1 Switch" value="1" />
        <ctl name="HPHL Volume" value="20" />
        <ctl name="HPHR Volume" value="20" />
        <ctl name="RX1 Digital Volume" value="78" />
        <ctl name="RX2 Digital Volume" value="78" />
    </path>


--------

Now the kicker... What do path names mean?

For example, "headphones" obviously means headphone port, and "speaker" means speakers.

However, there are literally hundreds of speaker, headphones, headsets, handsets, mic, sidetone-iir, tty, etc... How does Android choose which path to enable?

If I'm trying to decrease headphone volume (for earbuds), which settings do I have to change? "headphones" only, or some unknown set of options?

I noticed an interesting <path name="ADSP testfwk">... What could that mean?

A Google search took me to http://www.perkel.com/x/snd_soc_msm . Searching `snd_soc_msm` took me to https://android.googlesource.com/pla...sm/snd_soc_msm... The log link references "mako" (Nexus 4), not my Nexus 5X (this is the first commit the file appears). Additionally, the file is not available in "master" branch (replace the hex with master), as apparently libalsa was removed.

Sunday, 31 July 2016

usb connector flap for z3 [copper variant]



Hi folks, the soft pad on my usb flap (copper z3) has gone completely and the flap is almost useless now.
I was looking for a good replacement (if not original). Could someone (who has already bought) guide me the best place to buy the same?