I'm trying to write my first android app, I have alreadu managed to test it and debug on my Tablet which runs Android 4.4 but I couldn't run it on my mobile phone which runs Android 5.1.1 I googled it everywhere but I couldn't find any solution.. I have downloaded A-L-L SDK files (costed me about 60 GB) and still nothing works.. The main error is this:
on the Run console it says this:
pkg: /data/local/tmp/yarden4.myappsname
Error: java.lang.SecurityException: Neither user 2000 nor current process has android.permission.INSTALL_PACKAGES.
here is a logcat cropped to the specific time where I try to run:
12-16 03:19:16.543 16411-16411/? D/AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 2000 <<<<<<
12-16 03:19:16.547 16411-16411/? D/AndroidRuntime: CheckJNI is OFF
12-16 03:19:16.653 16411-16411/? D/AndroidRuntime: Calling main entry com.android.commands.pm.Pm
12-16 03:19:16.660 16411-16411/? E/Pm: Error
java.lang.SecurityException: Neither user 2000 nor current process has android.permission.INSTALL_PACKAGES.
at android.os.Parcel.readException(Parcel.java:1553)
at android.os.Parcel.readException(Parcel.java:1505)
at android.content.pm.IPackageManager$Stub$Proxy.installPackageAsUser(IPackageManager.java:3033)
at com.android.commands.pm.Pm.runInstall(Pm.java:958)
at com.android.commands.pm.Pm.run(Pm.java:143)
at com.android.commands.pm.Pm.main(Pm.java:101)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:249)
12-16 03:19:16.662 16411-16411/? I/art: System.exit called, status: 1
12-16 03:19:16.662 16411-16411/? I/AndroidRuntime: VM exiting with result code 1.
I also tried: reinstalling android studio / searching for the app installed somehow on my phone (its nor in app list and nor in data/app folders) / messing with google play service app.. / tried different apps.. even a clean neat hello world won't run.. and I'll mention again.. it works fine on my tablet.
P.S my phone and tablet are rooted + xposed + non original ROMs (both)
any idea what to do? I'm stuck for days with this thing.. :(
Thanks ALOT ahead!