cgapps / vendor_google

Other
345 stars 400 forks source link

libjni_latinimegoogle.so installed in the wrong place? #11

Closed scottwallacesh closed 9 years ago

scottwallacesh commented 9 years ago

Hello,

I am installing the CM 12.1 nightlies along with gapps-5.1-2015-05-23-24.zip but the AOSP keyboard gesture typing does not work. A lot of people have confirmed this and have suggested that libjni_latinimegoogle.so be installed into /system/lib but I find that, after a clean flash, libjni_latinimegoogle.so is in /system/lib/lib instead.

Flashing is done via TWRP on a Samsung Galaxy S5 (SM-G900F):

Any ideas?

scottwallacesh commented 9 years ago

Copying libjni_latinimegoogle.so from /system/lib/lib to /system/lib and rebooting fixes the problem and gesture typing works in the built-in CM 12.1 AOSP keyboard.

p-s- commented 9 years ago

having the same problem, but in my case there's no libjni_latinimegoogle.so on my device (Moto X 2014, CM12.1 nightly) at all, in fact, there's no /system/lib/lib folder used https://github.com/cgapps/vendor_google/releases/tag/2015-05-24

scottwallacesh commented 9 years ago

@p-s-, that's interesting.

I can see that libjni_latinimegoogle.so is definitely in the Gapps .zip:

$ unzip -l gapps-5.1-2015-05-23-24.zip | grep libjni_latinimegoogle
  677372  02-29-08 03:33   arch/arm/lib/libjni_latinimegoogle.so
  677372  02-29-08 03:33   arch/arm64/lib/libjni_latinimegoogle.so

... but as it's not the same directory structure as on my device there must be some script that copies them into the right places. The same script on your device obviously behaves differently than on my device.

scottwallacesh commented 9 years ago

After a little digging it appears that, for me, this block of arch/arch.sh is the issue:

if [ $ARCH == armeabi-v7a ]; then # arm
    echo "Installing gapps for arm"
    cp -r $GARM/app/FaceLock /system/app/FaceLock
    cp -r $GARM/priv-app/PrebuiltGmsCore /system/priv-app/PrebuiltGmsCore
    cp -r $GARM/priv-app/Velvet /system/priv-app/Velvet
    cp -r $GARM/lib /system/lib
    cp /tmp/arch/arm/addon.d/30-gapps.sh /system/addon.d/30-gapps.sh
    cp /tmp/arch/arm/addon.d/31-faceunlock.sh /system/addon.d/31-faceunlock.sh

Since /system/lib already exists, $GARM/lib gets copied as /system/lib/lib instead of being "merged", as intended.

A fix for arm devices might be something like this below, which results in merging the lib/ directories:

--- a/arch.sh
+++ b/arch.sh
@@ -23,7 +23,7 @@ if [ $ARCH == armeabi-v7a ]; then # arm
     cp -r $GARM/app/FaceLock /system/app/FaceLock
     cp -r $GARM/priv-app/PrebuiltGmsCore /system/priv-app/PrebuiltGmsCore
     cp -r $GARM/priv-app/Velvet /system/priv-app/Velvet
-    cp -r $GARM/lib /system/lib
+    cp -r $GARM/lib/ /system/lib/
     cp /tmp/arch/arm/addon.d/30-gapps.sh /system/addon.d/30-gapps.sh
     cp /tmp/arch/arm/addon.d/31-faceunlock.sh /system/addon.d/31-faceunlock.sh
rubenalamina commented 9 years ago

I can confirm that libjni_latinime.so is not copied anywhere in a OnePlus One. Manually copying it to System\lib and rebooting fixes the gesture typing in the AOSP keyboard just like @scottwallacesh said in a previous comment.

cgapps commented 9 years ago

Switched back to "splitted" gapps, it's easier for me to maintain them

brianjmurrell commented 8 years ago

So which zip in the zip is the library now in? I have:

$ unzip -l open_gapps-arm-5.1-full-20151111.zip
Archive:  open_gapps-arm-5.1-full-20151111.zip
signed by SignApk
  Length      Date    Time    Name
---------  ---------- -----   ----
  1228144  02-29-2008 02:33   Core/configupdater.tar.xz
   213888  02-29-2008 02:33   Core/framework.tar.xz
 33866532  02-29-2008 02:33   Core/gmscore.tar.xz
   160628  02-29-2008 02:33   Core/googlebackuptransport.tar.xz
   210760  02-29-2008 02:33   Core/googlecontactssync.tar.xz
   198488  02-29-2008 02:33   Core/googlefeedback.tar.xz
   128484  02-29-2008 02:33   Core/googleonetimeinitializer.tar.xz
   118600  02-29-2008 02:33   Core/googlepartnersetup.tar.xz
  1572348  02-29-2008 02:33   Core/gsfcore.tar.xz
  3305884  02-29-2008 02:33   Core/gsflogin.tar.xz
  1934868  02-29-2008 02:33   Core/setupwizard.tar.xz
  7766420  02-29-2008 02:33   Core/vending.tar.xz
  7297528  02-29-2008 02:33   GApps/books.tar.xz
 14582112  02-29-2008 02:33   GApps/calendargoogle.tar.xz
  1008436  02-29-2008 02:33   GApps/calsync.tar.xz
 24345168  02-29-2008 02:33   GApps/chrome.tar.xz
  5041436  02-29-2008 02:33   GApps/clockgoogle.tar.xz
  2313396  02-29-2008 02:33   GApps/cloudprint.tar.xz
 27416520  02-29-2008 02:33   GApps/docs.tar.xz
 26849712  02-29-2008 02:33   GApps/drive.tar.xz
    67120  02-29-2008 02:33   GApps/ears.tar.xz
  1449164  02-29-2008 02:33   GApps/exchangegoogle.tar.xz
   254468  02-29-2008 02:33   GApps/facedetect.tar.xz
  7240388  02-29-2008 02:33   GApps/faceunlock.tar.xz
 10619596  02-29-2008 02:33   GApps/fitness.tar.xz
  6443040  02-29-2008 02:33   GApps/gmail.tar.xz
 15143480  02-29-2008 02:33   GApps/googlenow.tar.xz
 18392416  02-29-2008 02:33   GApps/googleplus.tar.xz
 15130524  02-29-2008 02:33   GApps/googletts.tar.xz
 21678412  02-29-2008 02:33   GApps/hangouts.tar.xz
  8629528  02-29-2008 02:33   GApps/keep.tar.xz
 18701524  02-29-2008 02:33   GApps/maps.tar.xz
  6143960  02-29-2008 02:33   GApps/movies.tar.xz
 11472932  02-29-2008 02:33   GApps/music.tar.xz
  9644656  02-29-2008 02:33   GApps/newsstand.tar.xz
  2947108  02-29-2008 02:33   GApps/newswidget.tar.xz
 19635520  02-29-2008 02:33   GApps/photos.tar.xz
  9952872  02-29-2008 02:33   GApps/playgames.tar.xz
 22345152  02-29-2008 02:33   GApps/search.tar.xz
 32650548  02-29-2008 02:33   GApps/sheets.tar.xz
 36459616  02-29-2008 02:33   GApps/slides.tar.xz
 14618836  02-29-2008 02:33   GApps/speech.tar.xz
   184552  02-29-2008 02:33   GApps/taggoogle.tar.xz
  1644988  02-29-2008 02:33   GApps/talkback.tar.xz
 10463344  02-29-2008 02:33   GApps/youtube.tar.xz
    56632  02-29-2008 02:33   META-INF/com/google/android/update-binary
       47  02-29-2008 02:33   META-INF/com/google/android/updater-script
   209136  02-29-2008 02:33   Optional/swypelibs.tar.xz
     1753  02-29-2008 02:33   app_densities.txt
     2075  02-29-2008 02:33   app_sizes.txt
     2041  02-29-2008 02:33   bkup_tail.sh
      145  02-29-2008 02:33   g.prop
     2278  02-29-2008 02:33   gapps-remove.txt
    14693  02-29-2008 02:33   installer.data
   387512  02-29-2008 02:33   xzdec
     1675  02-29-2008 02:33   META-INF/com/android/otacert
     4191  02-29-2008 02:33   META-INF/MANIFEST.MF
     4244  02-29-2008 02:33   META-INF/CERT.SF
     1714  02-29-2008 02:33   META-INF/CERT.RSA
---------                     -------
462161232                     59 files