[Q] Android Studio “install_failed_invalid_apk” error - General Questions and Answers

Hi.
Im trying to debug a app in Android Studio, but every time i run the app to the phone it says:
Code:
Installing com.myapplication2.app
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.myapplication2.app"
pkg: /data/local/tmp/com.myapplication2.app
Failure [INSTALL_FAILED_INVALID_APK]
Log
Code:
06-22 21:20:07.908 5072-5083/com.android.defcontainer W/zipro﹕ Unable to open zip '/data/local/tmp/com.myapplication2.app': Permission denied
06-22 21:20:07.908 5072-5083/com.android.defcontainer D/asset﹕ failed to open Zip archive '/data/local/tmp/com.myapplication2.app'
06-22 21:20:07.910 5072-5083/com.android.defcontainer W/PackageParser﹕ Unable to read AndroidManifest.xml of /data/local/tmp/com.myapplication2.app
java.io.FileNotFoundException: AndroidManifest.xml
at android.content.res.AssetManager.openXmlAssetNative(Native Method)
at android.content.res.AssetManager.openXmlBlockAsset(AssetManager.java:487)
at android.content.res.AssetManager.openXmlResourceParser(AssetManager.java:455)
at android.content.pm.PackageParser.parsePackageLite(PackageParser.java:729)
at com.android.defcontainer.DefaultContainerService$1.getMinimalPackageInfo(DefaultContainerService.java:173)
at com.android.internal.app.IMediaContainerService$Stub.onTransact(IMediaContainerService.java:110)
at android.os.Binder.execTransact(Binder.java:367)
at dalvik.system.NativeStart.run(Native Method)
06-22 21:20:07.910 5072-5083/com.android.defcontainer W/DefContainer﹕ Failed to parse package
06-22 21:20:07.911 364-386/system_process W/ActivityManager﹕ No content provider found for permission revoke: file:///data/local/tmp/com.myapplication2.app
06-22 21:20:08.101 364-386/system_process D/dalvikvm﹕ GC_EXPLICIT freed 90K, 16% free 47127K/55479K, paused 5ms+30ms, total 191ms
I´m able to install the apk by copying to sdcard and installing directly from Android.
Tried to change /data/local folder permissions to 755, but the issue remains.
This started to happen after:
a) Updated my Android to a custom rom
b) Updated Android Studio from 0.4.6 to 0.5.2
But since both updates were simultaneously, cant say which one is responsible for this error.
Any help is appreciated.
Using Windows 8.

Related

Anyone know much about Package Manager? (logcat included)

working on getting the IM app instaleld..thought it might be as simple as pulling the apk and doing adb install IM.apk..it fails with a DEXOPT error, here's the logcat. Thoughts?
D/dalvikvm( 338): GC freed 8171 objects / 572600 bytes in 158ms
D/dalvikvm( 338): threadid=17 wakeup: interrupted
D/AndroidRuntime( 793):
D/AndroidRuntime( 793): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
D/AndroidRuntime( 793): CheckJNI is OFF
D/AndroidRuntime( 793): --- registering native functions ---
D/PackageParser( 58): Scanning package: /data/app/vmdl29166.tmp
I/PackageManager( 58): /data/app/vmdl29166.tmp changed; unpacking
D/installd( 36): DexInv: --- BEGIN '/data/app/vmdl29166.tmp' ---
W/dalvikvm( 800): DexOptZ: zip archive '/data/app/vmdl29166.tmp' does not inclu
de classes.dex
W/installd( 36): DexInv: --- END '/data/app/vmdl29166.tmp' --- status=0xff00,
process failed
E/installd( 36): dexopt failed on '/data/dalvik-cache/[email protected]@[email protected]
lasses.dex' res = 65280
W/PackageManager( 58): Package couldn't be installed in /data/app/com.android.
im.apk
Okay scrap that..found that classes.dex had to be there in the apk file - I grabbed the .odex from the IM app and put it in the apk as classes.dex -- right thing to do? wrong thing? now i'm getting this:
E:\>adb install E:\IM.apk
927 KB/s (0 bytes in 326585.000s)
pkg: /data/local/tmp/IM.apk
Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
adb logcat shows:
D/AndroidRuntime( 827):
D/AndroidRuntime( 827): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
D/AndroidRuntime( 827): CheckJNI is OFF
D/AndroidRuntime( 827): --- registering native functions ---
D/PackageParser( 58): Scanning package: /data/app/vmdl29167.tmp
E/PackageParser( 58): Package com.android.im has no certificates at entry clas
ses.dex; ignoring!
D/AndroidRuntime( 827): Shutting down VM
D/dalvikvm( 827): DestroyJavaVM waiting for non-daemon threads to exit
D/dalvikvm( 827): DestroyJavaVM shutting VM down
D/dalvikvm( 827): HeapWorker thread shutting down
D/dalvikvm( 827): HeapWorker thread has shut down
D/jdwp ( 827): JDWP shutting down net...
D/dalvikvm( 827): VM cleaning up
!
Does anyone have any ideas?
I've been working on getting the IM from CRB34 into 6.0r1. I really want it. But I get stuck, just like you.
Anyone wanna help us?
fwiw the IM app is definitely new. The IM app no longer includes gtalk as the gtalk app is used for that (from the HTC builds)
I'm convincing myself that someone who is online today will know more about package manager than yesterday..gogo!
You can't just rename the odex to dex and dump it into the apk file. Odex is the optimized dex file that is generated specifically for that build of a device. You'd essentially need to get a virgined dex file, or somehow fool the device into thinking its already installed and push the files.
afflaq said:
Okay scrap that..found that classes.dex had to be there in the apk file - I grabbed the .odex from the IM app and put it in the apk as classes.dex -- right thing to do? wrong thing? now i'm getting this:
E:\>adb install E:\IM.apk
927 KB/s (0 bytes in 326585.000s)
pkg: /data/local/tmp/IM.apk
Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
adb logcat shows:
D/AndroidRuntime( 827):
D/AndroidRuntime( 827): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
D/AndroidRuntime( 827): CheckJNI is OFF
D/AndroidRuntime( 827): --- registering native functions ---
D/PackageParser( 58): Scanning package: /data/app/vmdl29167.tmp
E/PackageParser( 58): Package com.android.im has no certificates at entry clas
ses.dex; ignoring!
D/AndroidRuntime( 827): Shutting down VM
D/dalvikvm( 827): DestroyJavaVM waiting for non-daemon threads to exit
D/dalvikvm( 827): DestroyJavaVM shutting VM down
D/dalvikvm( 827): HeapWorker thread shutting down
D/dalvikvm( 827): HeapWorker thread has shut down
D/jdwp ( 827): JDWP shutting down net...
D/dalvikvm( 827): VM cleaning up
Click to expand...
Click to collapse
strazzere said:
You can't just rename the odex to dex and dump it into the apk file. Odex is the optimized dex file that is generated specifically for that build of a device. You'd essentially need to get a virgined dex file, or somehow fool the device into thinking its already installed and push the files.
Click to expand...
Click to collapse
that was my fear -- any ideas on doing either of those things? dexdumping it perhaps?
afflaq said:
that was my fear -- any ideas on doing either of those things? dexdumping it perhaps?
Click to expand...
Click to collapse
I am not sure, but does it require you to install? Could you try pushing the apk and odex to apps directory and see if it shows up after reboot?

Link2SD problem!! - see Logcat

Hello !!
I installed Link2SD on my Acer liquid E (running LiquidNext 1.9.2).
linked 5 apps.
But after rebooting, Titanium autmoatically crashes, as well as other apps!!
I could not understand what the problem is !
could you please help me ?
Logcat attached
Firstly, I would actually like to thank you on taking the efforts on getting a logcat...
Loads of members nowadays think that their problem is our problem, and hence don't put in efforts in even explaining...
On the other hand, you actually did a good thing :thumbup::good:
Even though I'm not too knowledgeable on such technical stuff, I did go through your logcat (for the simple reason that you took efforts in attaching it in the first place)...
I've (hopefully) identified the problem areas:
Code:
I/Vold ( 284): Vold 2.1 (the revenge) firing up
D/Vold ( 284): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media)
D/Vold ( 284): Volume sdcard state changing 0 (No-Media) -> 2 (Pending)
D/Vold ( 284): Volume sdcard state changing 2 (Pending) -> 1 (Idle-Unmounted)
W/Vold ( 284): Ignoring unknown switch 'MSM72K_UDC'
.
.
.
.
I/Installer( 347): connecting...
E/PackageManager( 347): Package com.keramidas.TitaniumBackup has mismatched uid: 0 on disk, 10042 in settings
I/PackageManager( 347): Linking native library dir for /data/app/com.keramidas.TitaniumBackup-1.apk
I/PackageManager( 347): Time to scan packages: 7.069 seconds
W/PackageManager( 347): Unknown permission com.android.vending.permission.UPDATE_MARKET_FAILURE in package com.android.vending.updater
W/PackageManager( 347): Unknown permission android.permission.ADD_SYSTEM_SERVICE in package com.android.phone
W/PackageManager( 347): Unknown permission android.permission.READ_EXTERNAL_STORAGE in package com.cyanogenmod.cmparts
W/PackageManager( 347): Not granting permission android.permission.SEND_DOWNLOAD_COMPLETED_INTENTS to package com.android.browser (protectionLevel=2 flags=0x9be45)
W/PackageManager( 347): Unknown permission com.google.android.gm.permission.READ_GMAIL in package com.google.android.talk
W/PackageManager( 347): Unknown permission android.permission.READ_OWNER_DATA in package com.android.setupwizard
W/PackageManager( 347): Unknown permission android.permission.WRITE_OWNER_DATA in package com.android.setupwizard
W/PackageManager( 347): Unknown permission com.google.android.gm.permission.WRITE_GMAIL in package com.android.settings
W/PackageManager( 347): Unknown permission com.google.android.gm.permission.READ_GMAIL in package com.android.settings
W/PackageManager( 347): Unknown permission com.google.android.gm.permission.READ_GMAIL in package com.google.android.apps.uploader
W/PackageManager( 347): Unknown permission com.google.android.voicesearch.SHORTCUTS_ACCESS in package com.google.android.googlequicksearchbox
W/PackageManager( 347): Unknown permission android.permission.READ_EXTERNAL_STORAGE in package com.android.vending
W/PackageManager( 347): Not granting permission android.permission.SEND_DOWNLOAD_COMPLETED_INTENTS to package com.android.vending (protectionLevel=2 flags=0xabec5)
W/PackageManager( 347): Unknown permission android.permission.SEND_SMS_NO_CONFIRMATION in package com.android.vending
W/PackageManager( 347): Not granting permission android.permission.STATUS_BAR to package com.android.vending (protectionLevel=3 flags=0xabec5)
W/PackageManager( 347): Not granting permission android.permission.PACKAGE_USAGE_STATS to package com.android.vending (protectionLevel=2 flags=0xabec5)
W/PackageManager( 347): Unknown permission android.permission.PACKAGE_VERIFICATION_AGENT in package com.android.vending
W/PackageManager( 347): Unknown permission com.google.android.verifier.permission.UPDATE_VERIFIER in package com.android.vending
W/PackageManager( 347): Not granting permission android.permission.INSTALL_PACKAGES to package com.chelpus.lackypatch (protectionLevel=3 flags=0xbe46)
W/PackageManager( 347): Not granting permission android.permission.DELETE_PACKAGES to package com.chelpus.lackypatch (protectionLevel=3 flags=0xbe46)
W/PackageManager( 347): Not granting permission android.permission.CLEAR_APP_USER_DATA to package com.chelpus.lackypatch (protectionLevel=2 flags=0xbe46)
W/PackageManager( 347): Unknown permission android.permission.READ_OWNER_DATA in package com.android.email
W/PackageManager( 347): Not granting permission android.permission.DEVICE_POWER to package com.android.deskclock (protectionLevel=2 flags=0x8be45)
(I've put in dots .... to just state that there isn't any error there)
From what I've seen, I believe that your partition (since you are using link2sd) isn't formatted properly (or mounted)...and titanium was linked to your partition (am I right?)
Do your system apps also force close?
There's an error with the status bar...
And ya, because of that logcat, I hope we see more of such members in the future :beer:
I agree. I am thinking that your partitions are not set up correctly. IIRC from when I used Link2Sd, you had to have 1-Fat32 for normal stuff and 1-Fat32 for the apps to link too. In older versions it was Fat32, Ext2/3 and the Swap.
When you installed Link2Sd, and it checked for partitions, did it throw any errors? Does your ROM support Link2SD? I'll look around at it some more but A.cid asked for some help.
Thank you both guys for replying in such a kind way: i appreciate!
I am running this MOD: LiquidNext (latest version 1.9.2)
forum thread about the rom here
It seems to be possible to run link2SD on the above ROM.
Other apps crash as well, but I honestly can't recall whether they were system apps or not.
I have now resetted everything:
I have wiped everything, both internal and external memories (8GB SDcard).
I have formatted the sd card from the CWM Recovery (touch): EXT3 1024 MB, Swap: 0 MB, FAT32 remaining space.
I have flashed the same rom again, and haven't yet installed link2sd and Titanium.
so far everything is running smoothly, but I want to understand what's wrong when I install link2sd!
I have been running it smoothly in the past on the same ROM => then something mysterious happened
hope you guys are better than me and can find the culprit !!
Corrupt partition. Removing the link2sd script from init.d will be a temporary fix. You need to reformat your ext partition!
___________XDA Premium__________
Don't be a noob. Be a newbie..!!
Details here.
____________________________________
shaaan said:
Corrupt partition. Removing the link2sd script from init.d will be a temporary fix. You need to reformat your ext partition!
Click to expand...
Click to collapse
already done !!
thanks though
Hey, I know that this isn't your device but there may be somethings in this trhead that will help you troubleshoot, like kernel modules and proper partition setup. This was my first Android device so you might see a post or two in there from me way back when.
[GUIDE] Link2SD on milestone XT 720
Woodrube said:
Hey, I know that this isn't your device but there may be somethings in this trhead that will help you troubleshoot, like kernel modules and proper partition setup. This was my first Android device so you might see a post or two in there from me way back when.
[GUIDE] Link2SD on milestone XT 720
Click to expand...
Click to collapse
Thank you but that was not of much help !!
I still haven't managed to get Link2SD to work correctly!!
help me please

[Q] Installing AOSP ICS launcher

Hi,
I'm trying to modify the AOSP ICS launcher. I've downloaded the ICS source tree and built Launcher2 as is. However, when I try to install it in an Android device(a stock Samsung Galaxy S3 running stock ICS, and a HTC Desire Z running Andromadus mimicry 1.5.0 based on ICS) using "adb install", I get a INSTALL_FAILED_DEXOPT installation error. Logcat output from the Galaxy S3 is as follows:
Code:
D/AndroidRuntime( 5431):
D/AndroidRuntime( 5431): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime( 5431): CheckJNI is OFF
D/AndroidRuntime( 5431): setted country_code = France
D/AndroidRuntime( 5431): setted countryiso_code = FR
D/AndroidRuntime( 5431): setted sales_code = XEF
D/AndroidRuntime( 5431): readGMSProperty: start
D/AndroidRuntime( 5431): readGMSProperty: already setted!!
D/AndroidRuntime( 5431): readGMSProperty: end
D/LibQmg_native( 5431): register_android_app_LibQmg
D/AndroidRuntime( 5431): Calling main entry com.android.commands.pm.Pm
W/PackageManager( 2093): verifying app can be installed or not
I/ApplicationPolicy( 2093): isApplicationInstallationEnabled
D/dalvikvm( 2093): GC_CONCURRENT freed 7885K, 31% free 32346K/46791K, paused 2ms+6ms
D/dalvikvm( 2093): GC_CONCURRENT freed 1834K, 31% free 32555K/46791K, paused 3ms+5ms
E/PackageManager( 2093): Package XXX.XXXXXXX.XXXXXXXX has mismatched uid: 10130 on disk, 10131 in settings
I/PackageManager( 2093): Running dexopt on: XXX.XXXXXXX.XXXXXXXX
I/PackageManager( 2093): Linking native library dir for |XXXX|XXX|XXXXXXXXXXXXXXXXXXXXXX.XXX
W/dalvikvm( 5442): DexOptZ: zip archive '/data/app/com.android.launcher-1.apk' does not include classes.dex
W/installd( 1907): DexInv: --- END '/data/app/com.android.launcher-1.apk' --- status=0xff00, process failed
E/installd( 1907): dexopt failed on '/data/dalvik-cache/[email protected]@[email protected]' res = 65280
W/PackageManager( 2093): Package couldn't be installed in /data/app/com.android.launcher-1.apk
Does anyone know how to build and install the AOSP launcher on non Nexus devices?
Thanks.
It looks like the apk you built was deodexed but was missing a classes.dex file. And when the installer tried to create an odex file it couldn't because the apk didn't contain instructions on how to.
That's my interpretation of the log for you, although I can't answer you question. Sorry.
Wouldn't this be better in q&a section? Also regarding the launcher I'm pretty sure you can just install the unmodified apk as is by enabling install from unknown sources and placing the apk on your memory card, or just use one of the plethora of stock based home launchers like apex, trebuchet, nova, adw or holo launcher just to name a few.
Sent from my LT30p using xda app-developers app
razz, there's actually a .apk file and a .odex file in the out directory after I build the app. Is the .odex file what it's trying to look for? Is there any way I can include it in the apk, or direct the installer to its location so that it doesn't throw the error? I'm guessing the apk is currently odexed since there's an .odex file, and I need to deodex it? If so, how can I do this?
Galcactus, I'm trying to modify the stock AOSP launcher, hence getting it to install on an Android device unmodified is my first step.
I thought I could install it as is as well, however I keep getting this error. I've tried pushing the apk to my memory card and using a file manager/app installer app to install it but no go as well.
Anyone? Thanks.

Can not install apps in CM based ROMs

I've tried 3 CM based ROMs with different kernels and recoveries. All of them give this error when I try to install non-market apks like the ones from humble bundle. Specifically, larger apks which require extra files in the internal storage partition. Also, titanium backup freezes when I try to restore them. Does anybody have any idea what this is about? AOSP ROMs work fine.
Code:
12-19 12:35:24.806 I/PackageManager(820): Verification timed out for file:///mnt/sdcard/badland_android_46.apk
12-19 12:35:24.806 I/PackageManager(820): Continuing with installation of file:///mnt/sdcard/badland_android_46.apk
12-19 12:35:24.813 D/Finsky (14536): [1] PackageVerificationReceiver.onReceive: Verification requested, id = 43
12-19 12:35:24.816 D/Finsky (14536): [1] PackageVerificationService.cancelVerificationIntent: Cancel active verification id=43
12-19 12:35:25.105 E/Vold (185): Error creating imagefile (Read-only file system)
12-19 12:35:25.105 E/Vold (185): ASEC image file creation failed (Read-only file system)
12-19 12:35:25.105 W/Vold (185): Returning OperationFailed - no handler for errno 30
12-19 12:35:25.106 E/PackageHelper(22123): Failed to create secure container smdl1450163079.tmp
12-19 12:35:25.106 W/DefContainer(22123): Failed to copy package at /mnt/sdcard/badland_android_46.apk
12-19 12:35:25.106 W/DefContainer(22123): java.io.IOException: Failed to create container smdl1450163079.tmp
12-19 12:35:25.106 W/DefContainer(22123): at com.android.defcontainer.DefaultContainerService.copyPackageToContainerInner(DefaultContainerService.java:323)
12-19 12:35:25.106 W/DefContainer(22123): at com.android.defcontainer.DefaultContainerService.access$000(DefaultContainerService.java:67)
12-19 12:35:25.106 W/DefContainer(22123): at com.android.defcontainer.DefaultContainerService$1.copyPackageToContainer(DefaultContainerService.java:108)
12-19 12:35:25.106 W/DefContainer(22123): at com.android.internal.app.IMediaContainerService$Stub.onTransact(IMediaContainerService.java:60)
12-19 12:35:25.106 W/DefContainer(22123): at android.os.Binder.execTransact(Binder.java:446)
12-19 12:35:25.242 I/art (820): Explicit concurrent mark sweep GC freed 71196(3MB) AllocSpace objects, 20(8MB) LOS objects, 27% free, 42MB/58MB, paused 1.163ms total 133.773ms
12-19 12:35:25.246 D/InstallAppProgress(29894): Installation error code: -18
Geo2160 said:
I've tried 3 CM based ROMs with different kernels and recoveries. All of them give this error when I try to install non-market apks like the ones from humble bundle. Specifically, larger apks which require extra files in the internal storage partition. Does anybody have any idea what this is about?
Code:
12-19 12:35:24.806 I/PackageManager(820): Verification timed out for file:///mnt/sdcard/badland_android_46.apk
12-19 12:35:24.806 I/PackageManager(820): Continuing with installation of file:///mnt/sdcard/badland_android_46.apk
12-19 12:35:24.813 D/Finsky (14536): [1] PackageVerificationReceiver.onReceive: Verification requested, id = 43
12-19 12:35:24.816 D/Finsky (14536): [1] PackageVerificationService.cancelVerificationIntent: Cancel active verification id=43
12-19 12:35:25.105 E/Vold (185): Error creating imagefile (Read-only file system)
12-19 12:35:25.105 E/Vold (185): ASEC image file creation failed (Read-only file system)
12-19 12:35:25.105 W/Vold (185): Returning OperationFailed - no handler for errno 30
12-19 12:35:25.106 E/PackageHelper(22123): Failed to create secure container smdl1450163079.tmp
12-19 12:35:25.106 W/DefContainer(22123): Failed to copy package at /mnt/sdcard/badland_android_46.apk
12-19 12:35:25.106 W/DefContainer(22123): java.io.IOException: Failed to create container smdl1450163079.tmp
12-19 12:35:25.106 W/DefContainer(22123): at com.android.defcontainer.DefaultContainerService.copyPackageToContainerInner(DefaultContainerService.java:323)
12-19 12:35:25.106 W/DefContainer(22123): at com.android.defcontainer.DefaultContainerService.access$000(DefaultContainerService.java:67)
12-19 12:35:25.106 W/DefContainer(22123): at com.android.defcontainer.DefaultContainerService$1.copyPackageToContainer(DefaultContainerService.java:108)
12-19 12:35:25.106 W/DefContainer(22123): at com.android.internal.app.IMediaContainerService$Stub.onTransact(IMediaContainerService.java:60)
12-19 12:35:25.106 W/DefContainer(22123): at android.os.Binder.execTransact(Binder.java:446)
12-19 12:35:25.242 I/art (820): Explicit concurrent mark sweep GC freed 71196(3MB) AllocSpace objects, 20(8MB) LOS objects, 27% free, 42MB/58MB, paused 1.163ms total 133.773ms
12-19 12:35:25.246 D/InstallAppProgress(29894): Installation error code: -18
Click to expand...
Click to collapse
Hope you are not talking about cracks and warez. Not allowed on XDA.
Verstuurd vanaf mijn Nexus 5 met Tapatalk
Ofc not. I've mentioned clearly that the ones I have tried are from humble bundle. Also, I forgot to mention that restoring big apps like these through titanium causes it to freeze, even if they were downloaded from google play.
Try different gapps versions? Like.. There's PA gapps.. Banks gapps..
a maguro wrote this.
I didn't mention that I used different gapps for the ROMs because I didn't think the issue is related to gapps. I've even tried no gapps. What's the reasoning behind suggesting a different gapps package, since I'm not even trying to install google dependent apks?
Probably the same as yours then.
Does it work on stock?
Stock ROM, stock based ROMs like optipop and AOSP based ROMs like omni rom work fine.
The error you're getting is "read only".
Can you manually create files in the same location a on your /sdcard?
Geo2160 said:
I've tried 3 CM based ROMs with different kernels and recoveries. All of them give this error when I try to install non-market apks like the ones from humble bundle. Specifically, larger apks which require extra files in the internal storage partition. Also, titanium backup freezes when I try to restore them. Does anybody have any idea what this is about? AOSP ROMs work fine.
Click to expand...
Click to collapse
Sorry for bumping an old thread, but try this: http://forum.xda-developers.com/showpost.php?p=58409922&postcount=4845
Jani- said:
Sorry for bumping an old thread, but try this: http://forum.xda-developers.com/showpost.php?p=58409922&postcount=4845
Click to expand...
Click to collapse
Thanks a lot anyway! I can now go back to trying CM based ROMs.
That solution worked for me too. Thanks.
Jani- said:
Sorry for bumping an old thread, but try this: http://forum.xda-developers.com/showpost.php?p=58409922&postcount=4845
Click to expand...
Click to collapse
That solution unfortunately doesn't work for me. Under Settings > Apps > Menu I don't see "Preferred install location". Maybe because my Nexus 5 doesn't have a SD card?
I'm on CM 12.1-20150804-NIGHTLY. Any idea how I can fix this? Would really like to be able to restore apps via Titanium Backup and install apps from Amazon App-Shop.
Thanks!
Update:
Found a solution myself If you don't see the option "Preferred install location" like me you can set it via terminal:
Either open a shell on your phone via adb (adb shell) or with a terminal application on your phone, then type
su (to get superuser rights)
pm set-install-location 1 (to set install location to internal [0 = auto, 1 = internal, 2 = external])

Porting CM to new device system_server crash

Hi !
I'm trying to port CM10 (old system) to Galaxy Fame Lite (old and cheap phone). I may try to port a later version of CM if I succeed for CM10...
Right now the system boots but remains blocked in the boot animation. I've managed to use adb shell (this has not been easy). What happens right now is that system_server commits suicide with the following message in /data/system/[email protected]<time>.txt
Code:
Process: system_server
Build: samsung/cm_nevisnvess/nevisnvess:4.1.2/JZO54K/eng.grenie.20160927.110731:eng/test-keys
android.view.InflateException: Binary XML file line #71: Error inflating class android.widget.ScrollView
at android.view.LayoutInflater.createView(LayoutInflater.java:613)
at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:660)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:275)
at com.android.internal.app.AlertController.installContent(AlertController.java:240)
at android.app.AlertDialog.onCreate(AlertDialog.java:336)
at android.app.Dialog.dispatchOnCreate(Dialog.java:351)
at android.app.Dialog.show(Dialog.java:256)
at com.android.server.am.ActivityManagerService$2.handleMessage(ActivityManagerService.java:910)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at com.android.server.am.ActivityManagerService$AThread.run(ActivityManagerService.java:1431)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
at android.view.LayoutInflater.createView(LayoutInflater.java:587)
... 17 more
Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x1/d=0x10804f4 a=1 r=0x10804f4}
at android.content.res.Resources.loadDrawable(Resources.java:1921)
at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
at android.view.View.initializeScrollbars(View.java:3859)
at android.view.View.<init>(View.java:3493)
at android.view.ViewGroup.<init>(ViewGroup.java:427)
at android.widget.FrameLayout.<init>(FrameLayout.java:101)
at android.widget.ScrollView.<init>(ScrollView.java:161)
at android.widget.ScrollView.<init>(ScrollView.java:157)
... 20 more
Anybody knows what goes wrong?
Thanks!
Is there any custom recovery and rom for this device??

Categories

Resources