Can anyone point me in the right direction to getting AOSP APK's working on other devices (in my case, HTC EVO 3D GSM and HTC One X)?
For example, when I push a different Settings.apk to my device, I see the following logcat output:
I/PackageManager( 1256): /system/app/Settings.apk changed; collecting certs
D/dalvikvm( 1256): GC_CONCURRENT freed 1980K, 22% free 11742K/14947K, paused 9ms+20ms
W/PackageManager( 1256): Signature mismatch for shared user : SharedUserSetting{40de1400 android.uid.system/1000}
E/PackageManager( 1256): Package com.android.settings has no signatures that match those in shared user android.uid.system; ignoring!
Click to expand...
Click to collapse
What's the recommended approach to getting the app to match the same signature of the previous one? I tried opening both APK's and copying the META-INF folder to the new app but that doesn't help.
I'm looking to get this working in my custom ROMs which are obviously rooted, deodexed, etc.
Thanks in advance.
Related
I cant install apps. It always said that application is not installed
Below is my log cat
Code:
: Scanning package com.innowebtech.g0t0
D/installd( 1335): DexInv: --- BEGIN '/data/app/com.innowebtech.g0t0-1.apk' ---
D/dalvikvm( 3817): Zip inflate: partial write (will retry): (20440 of 32768)
E/dalvikvm( 3817): Zip inflate: write failed: No space left on device
W/dalvikvm( 3817): DexOptZ: extraction of classes.dex from /data/app/com.innowebtech.g0t0-1.apk failed
W/installd( 1335): DexInv: --- END '/data/app/com.innowebtech.g0t0-1.apk' --- status=0xff00, process failed
E/installd( 1335): dexopt failed on '/data/dalvik-cache/[email protected]@[email protected]' res = 65280
D/dalvikvm( 1808): GC_EXPLICIT freed 943K, 42% free 7228K/12295K, external 145K/657K, paused 121ms
I/InstallAppProgress( 3806): Finished installing com.innowebtech.g0t0
Someone please help me but I do not want to do a reset
amosng1 said:
E/dalvikvm( 3817): Zip inflate: write failed: No space left on device
Click to expand...
Click to collapse
See above...
doktornotor said:
See above...
Click to expand...
Click to collapse
Yeah thanks. SOMEONE please help me...I need to update my apps...
Sent from my LG-P500 using Tapatalk
amosng1 said:
Yeah thanks. SOMEONE please help me...I need to update my apps...
Click to expand...
Click to collapse
With what?! There is NO SPACE LEFT! You need a bigger partition for d2sd (or check whether it works at all.)
I have ungaze data2sd with a 900mb extra partition that is working. I suspect it is the dalvik-cache...
Sent from my LG-P500 using Tapatalk
Hi,
I'm trying to install the AOSP ICS launcher on my Galaxy S3 via adb install, but I'm getting a INSTALL_FAILED_DEXOPT error. The device logcat 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
Is there something I'm doing wrongly?
Thanks.
Did you try direct install?
You can try to install the apk by directly putting it to your sdcard, see if similar error comes.
do you really need the aosp launcher? i would recommend you apex or nova from playstore, many possibilities to customize and easy installable
Sent from my GT-I9300 using xda premium
Yes I need it because I'm modifying certain parts of it. If Apex or Nova are open source they might be possibilities though.
psycoder said:
You can try to install the apk by directly putting it to your sdcard, see if similar error comes.
Click to expand...
Click to collapse
What do you mean by direct install? You mean putting the apk into my sdcard, and using some file manager to install it? I've tried that as well, it failed with an "application not installed" error.
why dont u push it to /system using some root explorer and then set permissions?
rebairo said:
why dont u push it to /system using some root explorer and then set permissions?
Click to expand...
Click to collapse
How would I do that? You mean adb push the apk file into /system without installing? What permissions would it require, and would it just replace the default launcher after that?
Thanks.
Edit: I tried pushing the apk and odex files into /system/app of my Desire Z running Mimicry 1.5.0 (since my S3 isn't rooted), where all my other system app apks are. I then chmod 644 the 2 files to match the others, and did a reboot, but nothing changed. Apex is still the default launcher, and I'm not sure how to change it.
Anyone? Thanks!
Hi there,
since I recently went back to Stock 2.3.6 ROM because of some issues with CM 7.2 I was wondering if there is any possibility to get the CM torch app installed. This seems to be ridiculous regarding the mass of torch apps on play store but I really like the simplicity of CMs Torch app! :laugh:
Thanks in advance!
PS:
I already tried pushing and installing Torch.apk & Torch.odex via ADB but I keep getting
Code:
Failure [INSTALL_FAILED_DEXOPT]
Logcat:
Code:
W/PackageManager( 1511): Check ABI compatibility
E/PackageManager( 1511): Package net.cactii.flash2 has mismatched uid: 10003 on
disk, 10044 in settings
I/PackageManager( 1511): Linking native library dir for
W/dalvikvm(22897): DexOptZ: zip archive '/data/app/net.cactii.flash2-1.apk' does
not include classes.dex
W/PackageManager( 1511): Package couldn't be installed in
D/dalvikvm( 1511): GC_EXPLICIT freed 1065K, 65% free 7248K/20487K, external 5531
K/6298K, paused 131ms
I don't know how to put cm's torch in stock, but man, why don't you use an custom rom? The most of them has torch in SB. Much better in my opinion.
Hello all
I am having some trouble with SDK installing apps to my Android. I've tried to find many forums about my issue, but I've hit a brick wall every time. My rooted device is an LG Optimus C running Android 2.2 (ancient lol). My issue is that I'm getting the error: Failure [INSTALL_FAILED_DEXOPT] for every app I try to install. I've wiped the device twice and then found out that this error happens every time after I've installed a good amount of apps...which I read somewhere that this will happen because of not having enough space in Dalvik..or in the data area and won't allow the install to write anything else..correct me if I'm wrong on this I've also cleared all caches multiple times, including Dalvik.
I've also tried the work around where you try and skip that all together and put the app straight into /system /app. That came up with no resolution, even with the correct properties selected (read/write/execute etc). So now, I really have no other avenues left but to come here and ask.
Here is the Logcat results I get using adb install -r app.apk no matter what app it is. I will use tumblog.apk (compatible with device) for this example:
D/AndroidRuntime( 4201):
D/AndroidRuntime( 4201): >>>>>> AndroidRuntime START com.android.internal.os.Run
timeInit <<<<<<
I/AndroidRuntime( 4201): Heap size: -Xmx32m
D/AndroidRuntime( 4201): CheckJNI is OFF
D/AndroidRuntime( 4201): Calling main entry com.android.commands.pm.Pm
W/ActivityManager( 1356): No content provider found for:
W/ActivityManager( 1356): No content provider found for:
D/PackageParser( 1356): Scanning package: /data/app/vmdl-166230949.tmp
D/PackageManager( 1356): Scanning package com.luckydroid.tumblelog
E/PackageManager( 1356): Package com.luckydroid.tumblelog has mismatched uid: 10
060 on disk, 10061 in settings
I/PackageManager( 1356): Linking native library dir for /data/app/com.luckydroid
.tumblelog-1.apk
D/installd( 1256): DexInv: --- BEGIN '/data/app/com.luckydroid.tumblelog-1.apk'
---
D/dalvikvm( 4211): Zip inflate: partial write (will retry): (24536 of 32768)
E/dalvikvm( 4211): Zip inflate: write failed: No space left on device
W/dalvikvm( 4211): DexOptZ: extraction of classes.dex from /data/app/com.luckydr
oid.tumblelog-1.apk failed
W/installd( 1256): DexInv: --- END '/data/app/com.luckydroid.tumblelog-1.apk' --
- status=0xff00, process failed
E/installd( 1256): dexopt failed on '/data/dalvik-cache/[email protected]@com.luckydroid.
[email protected]' res = 65280
W/PackageManager( 1356): Package couldn't be installed in /data/app/com.luckydro
id.tumblelog-1.apk
D/AndroidRuntime( 4201): Shutting down VM
I/AndroidRuntime( 4201): NOTE: attach of thread 'Binder Thread #3' failed
D/jdwp ( 4201): adbd disconnected
I really have no clue what any of this means lol...pretty new to logcat. I am aware of the file name not matching the original name of the apk..shouldn't matter considering I've installed many apps with shortened names. Any help would be greatly appreciated! Thanks
EDIT: Looks like "E/dalvikvm( 4211): Zip inflate: write failed: No space left on device" is the problem. Not enough space in Dalvik. Still have no idea how to work around.
Bump
Is this not posted in the correct forum? I'm just guessing no one knows of a solution?
Çözüme Yakın
Sizin sorununuz apk~classes.dex~.smali dosyalarının içinde gereksiz kodları siliniz. "Ayrıca Facebook klasörünü bulup siliniz (her clasess.dex'te bulunmaz)" ayrıca kimi classes.dex boyutu 9MB iken yükleniyor bazı clasess.dex dosyaları ise 7,8*MB olunca yüklenmiyor. Tabikide kodlar içinde dexOpt= dex options ayarı vardır ama ben bulamadım sadece bunları biliyorum. Umarım çözüm bulan çıkar. TR
So with Google pushing Clock updates to the Play Store, I decided to try installing/updating from CM12.1, but every time it failed with a -505 error. The relevant adb logcat output:
Code:
W/PackageManager( 851): Package couldn't be installed in /data/app/com.google.android.deskclock-1
W/PackageManager( 851): com.android.server.pm.PackageManagerException: Can't install because provider name com.android.deskclock (in package com.google.android.deskclock) is already used by com.android.deskclock
W/PackageManager( 851): at com.android.server.pm.PackageManagerService.scanPackageDirtyLI(PackageManagerService.java:5870)
W/PackageManager( 851): at com.android.server.pm.PackageManagerService.scanPackageLI(PackageManagerService.java:5542)
W/PackageManager( 851): at com.android.server.pm.PackageManagerService.installNewPackageLI(PackageManagerService.java:11012)
W/PackageManager( 851): at com.android.server.pm.PackageManagerService.installPackageLI(PackageManagerService.java:11557)
W/PackageManager( 851): at com.android.server.pm.PackageManagerService.access$2500(PackageManagerService.java:273)
W/PackageManager( 851): at com.android.server.pm.PackageManagerService$5.run(PackageManagerService.java:9456)
W/PackageManager( 851): at android.os.Handler.handleCallback(Handler.java:739)
W/PackageManager( 851): at android.os.Handler.dispatchMessage(Handler.java:95)
W/PackageManager( 851): at android.os.Looper.loop(Looper.java:135)
W/PackageManager( 851): at android.os.HandlerThread.run(HandlerThread.java:61)
W/PackageManager( 851): at com.android.server.ServiceThread.run(ServiceThread.java:46)
E/Finsky (17358): [1] PackageInstallerImpl.handleCommitCallback: Error -505 while installing com.google.android.deskclock: INSTALL_FAILED_CONFLICTING_PROVIDER: Package couldn't be installed in /data/app/com.google.android.deskclock-1: Can't install because provider name com.android.deskclock (in package com.google.android.deskclock) is already used by com.android.deskclock
W/Finsky (17358): [1] 3.installFailed: Install failure of com.google.android.deskclock: -505 null
D/Finsky (17358): [1] InstallerTask.cancelCleanup: Cancel running installation of com.google.android.deskclock (com.google.android.deskclock)
I've considered uninstalling Clock from TitaniumBackup and installing the Play version, but I'm afraid of what I'll break if I do that. Has anyone else tried this?
Make a backup of the stock CM clock app, then uninstall it with TB. Then install the Play Store version. Now that as of earlier today the Play Store one didn't have Increasing Volume for alarms, which I like and CM12.1 has. I've been waiting for several years for Google to put their clock on the Play Store, just wish it had the Increasing Volume.
Or make a nandroid backup before uninstalling the CM clock app. That's even better.
[VK810.4G] [altev] [ViKtory810ROM] official LG G Pad 8.3 Lollipop 35A_08 5.0.2
[VK810.4G] [altev] official LG G Pad 8.3 Lollipop 35A_08 5.0.2 DEBLOAT SCRIPTS and copies of all the files they remove
[VK810.4G] [altev] OTAs, .IMGs and KDZs, oh my
Same error on OnePlus One
I have Cyanogen OS installed on my OPO. No hacks to the system, not routed. How do I deal with the error when trying to install CLOCK from the store?
gotroot801 said:
So with Google pushing Clock updates to the Play Store, I decided to try installing/updating from CM12.1, but every time it failed with a -505 error. The relevant adb logcat output:
Code:
W/PackageManager( 851): Package couldn't be installed in /data/app/com.google.android.deskclock-1
W/PackageManager( 851): com.android.server.pm.PackageManagerException: Can't install because provider name com.android.deskclock (in package com.google.android.deskclock) is already used by com.android.deskclock
W/PackageManager( 851): at com.android.server.pm.PackageManagerService.scanPackageDirtyLI(PackageManagerService.java:5870)
W/PackageManager( 851): at com.android.server.pm.PackageManagerService.scanPackageLI(PackageManagerService.java:5542)
W/PackageManager( 851): at com.android.server.pm.PackageManagerService.installNewPackageLI(PackageManagerService.java:11012)
W/PackageManager( 851): at com.android.server.pm.PackageManagerService.installPackageLI(PackageManagerService.java:11557)
W/PackageManager( 851): at com.android.server.pm.PackageManagerService.access$2500(PackageManagerService.java:273)
W/PackageManager( 851): at com.android.server.pm.PackageManagerService$5.run(PackageManagerService.java:9456)
W/PackageManager( 851): at android.os.Handler.handleCallback(Handler.java:739)
W/PackageManager( 851): at android.os.Handler.dispatchMessage(Handler.java:95)
W/PackageManager( 851): at android.os.Looper.loop(Looper.java:135)
W/PackageManager( 851): at android.os.HandlerThread.run(HandlerThread.java:61)
W/PackageManager( 851): at com.android.server.ServiceThread.run(ServiceThread.java:46)
E/Finsky (17358): [1] PackageInstallerImpl.handleCommitCallback: Error -505 while installing com.google.android.deskclock: INSTALL_FAILED_CONFLICTING_PROVIDER: Package couldn't be installed in /data/app/com.google.android.deskclock-1: Can't install because provider name com.android.deskclock (in package com.google.android.deskclock) is already used by com.android.deskclock
W/Finsky (17358): [1] 3.installFailed: Install failure of com.google.android.deskclock: -505 null
D/Finsky (17358): [1] InstallerTask.cancelCleanup: Cancel running installation of com.google.android.deskclock (com.google.android.deskclock)
I've considered uninstalling Clock from TitaniumBackup and installing the Play version, but I'm afraid of what I'll break if I do that. Has anyone else tried this?
Click to expand...
Click to collapse
Did you happen to do this? Successfully? Just wondering because I want to do it too.
BigLisy said:
Did you happen to do this? Successfully? Just wondering because I want to do it too.
Click to expand...
Click to collapse
I tried it and it seemed to work just fine. Until I updated to a newer nightly. Then I had constant force closes because the original clock was reinstalled.
The most recent version of Clock installs fine, but in parallel to the stock clock. I installed the new version and disabled the old.
Let's see if I'm late for work tomorrow as a result...
EDIT: It worked without getting double alarms, but I did have to set my alarms in the new app first, obviously.