[Moto E Android Development] castielstone:
I cannot install any apps on this ROM. I try installing the apk, it just says "Cannot install app".

When I try to install the apk from adb, it says "Error: failed to write; readlink failed: EACCES (Permission denied)".

When I try to install any app from play store, An error pops up saying cannot download app. Error code:963.

This is the logcat -

03-03 08:26:31.697 1195 1646 I ActivityManager: START u0 {dat=file:///data/user_de/0/com.android.packageinstaller/no_backup/package7837036833484530678.apk cmp=com.android.packageinstaller/.InstallInstalling (has extras)} from uid 10021

03-03 08:26:31.699 423 703 D audio_hw_primary: out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2

03-03 08:26:31.705 423 3421 D audio_hw_primary: start_output_stream: enter: stream(0xab5c7ac0)usecase(1: low-latency-playback) devices(0x2)

03-03 08:26:31.705 423 3421 D audio_hw_primary: start_output_stream: enter: usecase(1: low-latency-playback) devices(0x2)

03-03 08:26:31.705 423 3421 D audio_hw_primary: select_devices: out_snd_device(2: speaker) in_snd_device(0: )

03-03 08:26:31.705 423 3421 W msm8974_platform: Codec backend bitwidth 16, samplerate 48000

03-03 08:26:31.705 423 3421 D hardware_info: hw_info_append_hw_type : device_name = speaker

03-03 08:26:31.705 423 3421 I msm8974_platform: platform_send_audio_calibration: sending audio calibration for snd_device(2) acdb_id(14)

03-03 08:26:31.706 423 3421 D audio_route: Apply path: speaker

03-03 08:26:31.715 423 3421 D audio_route: Apply path: low-latency-playback

03-03 08:26:31.716 423 3421 D audio_hw_primary: select_devices: done

03-03 08:26:31.916 3512 3530 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:607>: EGL_BAD_ATTRIBUTE

03-03 08:26:31.927 3512 3530 D vndksupport: Loading /vendor/lib/hw/gralloc.msm8610.so from current namespace instead of sphal namespace.

03-03 08:26:31.930 3512 3530 E linker : readlink("/proc/self/fd/47") failed: Permission denied [fd=47]

03-03 08:26:31.930 3512 3530 E linker : warning: unable to get realpath for the library "/vendor/lib/hw/gralloc.msm8610.so". Will use given path.

03-03 08:26:31.952 3512 4347 E InstallInstalling: Could not write package

03-03 08:26:31.952 3512 4347 E InstallInstalling: java.io.IOException: readlink failed: EACCES (Permission denied)

03-03 08:26:31.952 3512 4347 E InstallInstalling: at java.lang.reflect.Constructor.newInstance0(Native Method)

03-03 08:26:31.952 3512 4347 E InstallInstalling: at java.lang.reflect.Constructor.newInstance(Constructor.java:334)

03-03 08:26:31.952 3512 4347 E InstallInstalling: at android.os.ParcelableException.readFromParcel(ParcelableException.java:56)

03-03 08:26:31.952 3512 4347 E InstallInstalling: at android.os.ParcelableException$1.createFromParcel(ParcelableException.java:82)

03-03 08:26:31.952 3512 4347 E InstallInstalling: at android.os.ParcelableException$1.createFromParcel(ParcelableException.java:80)

03-03 08:26:31.952 3512 4347 E InstallInstalling: at android.os.Parcel.readParcelable(Parcel.java:2851)

03-03 08:26:31.952 3512 4347 E InstallInstalling: at android.os.Parcel.readException(Parcel.java:1999)

03-03 08:26:31.952 3512 4347 E InstallInstalling: at android.os.Parcel.readException(Parcel.java:1950)

03-03 08:26:31.952 3512 4347 E InstallInstalling: at android.content.pm.IPackageInstallerSession$Stub$Proxy.openWrite(IPackageInstallerSession.java:232)

03-03 08:26:31.952 3512 4347 E InstallInstalling: at android.content.pm.PackageInstaller$Session.openWrite(PackageInstaller.java:806)

03-03 08:26:31.952 3512 4347 E InstallInstalling: at com.android.packageinstaller.InstallInstalling$InstallingAsyncTask.doInBackground(InstallInstalling.java:343)

03-03 08:26:31.952 3512 4347 E InstallInstalling: at com.android.packageinstaller.InstallInstalling$InstallingAsyncTask.doInBackground(InstallInstalling.java:327)

03-03 08:26:31.952 3512 4347 E InstallInstalling: at android.os.AsyncTask$2.call(AsyncTask.java:333)

03-03 08:26:31.952 3512 4347 E InstallInstalling: at java.util.concurrent.FutureTask.run(FutureTask.java:266)

03-03 08:26:31.952 3512 4347 E InstallInstalling: at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:245)

03-03 08:26:31.952 3512 4347 E InstallInstalling: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)

03-03 08:26:31.952 3512 4347 E InstallInstalling: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)

03-03 08:26:31.952 3512 4347 E InstallInstalling: at java.lang.Thread.run(Thread.java:764)

03-03 08:26:31.996 1195 1976 I ActivityManager: START u0 {dat=file:///data/user_de/0/com.android.packageinstaller/no_backup/package7837036833484530678.apk flg=0x2000000 cmp=com.android.packageinstaller/.InstallFailed (has extras)} from uid 10021

03-03 08:26:32.080 3512 3530 D OpenGLRenderer: endAllActiveAnimators on 0x930b9800 (RippleDrawable) with handle 0x92effa70

03-03 08:26:32.138 3512 3512 D InstallFailed: Installation status code: 1

03-03 08:26:32.141 3512 3522 I zygote : Background concurrent copying GC freed 15415(1061KB) AllocSpace objects, 3(2MB) LOS objects, 50% free, 2MB/4MB, paused 89us total 318.055ms

03-03 08:26:32.174 3512 3530 W Adreno-EGL: <qeglDrvAPI_eglGetConfigAttrib:607>: EGL_BAD_ATTRIBUTE

03-03 08:26:32.176 3512 3530 D vndksupport: Loading /vendor/lib/hw/gralloc.msm8610.so from current namespace instead of sphal namespace.

03-03 08:26:32.177 3512 3530 E linker : readlink("/proc/self/fd/37") failed: Permission denied [fd=37]

03-03 08:26:32.177 3512 3530 E linker : warning: unable to get realpath for the library "/vendor/lib/hw/gralloc.msm8610.so". Will use given path.

03-03 08:26:32.239 1195 1218 I ActivityManager: Displayed com.android.packageinstaller/.InstallFailed: +186ms (total +492ms)