[Fire HD 8 and HD 10 General] teixeirap:
Fails for me on Fire HD 8 7th Gen 5.6.0.0

From shell I get this:

pm install -rd /sdcard/com.amazon.unifiedsharefacebook.apk

pkg: /sdcard/com.amazon.unifiedsharefacebook.apk

Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]

with adb I get:

C:\Users\<user>\Desktop>adb install -rd com.amazon.unifiedsharefacebook.apk

229 KB/s (13137 bytes in 0.055s)

pkg: /data/local/tmp/com.amazon.unifiedsharefacebook.apk

Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]

this in on a clean HD 8 7th Gen (according to the Device Options menu) running OS 5.6.0.0 (according to the System Updates menu) that has never been connected to wifi.

Same result with the hacked.apk (semi-auto procedure).

There does seen to be an existing package with the same b=name because:

1|shell@douglas:/ $ run-as com.amazon.unifiedsharefacebook

run-as: Package 'com.amazon.unifiedsharefacebook' is not debuggable

output from logcat:

D/PackageManager( 533): Renaming /data/app/vmdl307527202.tmp to /data/app/com.amazon.unifiedsharefacebook-1

D/PackageManager( 533): Sideloading logging is not enabled on the device

W/PackageManager( 533): Trying to update system app code path from /system/priv-app/com.amazon.unifiedsharefacebook to /data/app/com.amazon.unifiedsharefacebook-1

E/installd( 214): Couldn't opendir /data/data/com.amazon.unifiedsharefacebook: No such file or directory

W/PackageManager( 533): Package couldn't be installed in /data/app/com.amazon.unifiedsharefacebook-1

W/PackageManager( 533): com.android.server.pm.PackageManagerException: Package com.amazon.unifiedsharefacebook requires unavailable shared library com.amazon.client

.metrics; failing!

W/PackageManager( 533): at com.android.server.pm.PackageManagerService.updateSharedLibrariesLPw(PackageManagerService.java:5453)

W/PackageManager( 533): at com.android.server.pm.PackageManagerService.scanPackageDirtyLI(PackageManagerService.java:5815)

W/PackageManager( 533): at com.android.server.pm.PackageManagerService.scanPackageLI(PackageManagerService.java:5550)

W/PackageManager( 533): at com.android.server.pm.PackageManagerService.installNewPackageLI(PackageManagerService.java:10892)

W/PackageManager( 533): at com.android.server.pm.PackageManagerService.installPackageLI(PackageManagerService.java:11497)

W/PackageManager( 533): at com.android.server.pm.PackageManagerService.access$2300(PackageManagerService.java:262)

W/PackageManager( 533): at com.android.server.pm.PackageManagerService$6.run(PackageManagerService.java:9332)

W/PackageManager( 533): at android.os.Handler.handleCallback(Handler.java:739)

W/PackageManager( 533): at android.os.Handler.dispatchMessage(Handler.java:95)

W/PackageManager( 533): at android.os.Looper.loop(Looper.java:135)

W/PackageManager( 533): at android.os.HandlerThread.run(HandlerThread.java:61)

W/PackageManager( 533): at com.android.server.ServiceThread.run(ServiceThread.java:46)

I/art ( 533): Explicit concurrent mark sweep GC freed 9000(585KB) AllocSpace objects, 4(61KB) LOS objects, 19% free, 16MB/20MB, paused 1.502ms total 124.849ms

I/art ( 4013): System.exit called, status: 1

I/AndroidRuntime( 4013): VM exiting with result code 1.

I/com.android.server.pm.ExternalInstallPackageManagerCallback( 533): Installation failed for app com.amazon.unifiedsharefacebook on internal storage. Return code:-9

Any help appreciated...