Skip to content
This repository has been archived by the owner on Dec 8, 2019. It is now read-only.

Made it work #1

Merged
merged 1 commit into from
Dec 2, 2014
Merged

Made it work #1

merged 1 commit into from
Dec 2, 2014

Conversation

Arneball
Copy link
Contributor

No description provided.

@Nutomic
Copy link
Owner

Nutomic commented Nov 30, 2014

Wow that's awesome, thanks a lot :)

Unfortunately, it seems that Android-Scala-Installer breaks on Lollipop, so I can't use this yet.

Also, for release builds (where libraries aren't present), I need to add a second AndroidManifest.xml like in your example, right?

@Arneball
Copy link
Contributor Author

I would rather have a manifest to the release build. The debug build only
adds children to the <application tag. Namely the s1 s2 s3
Den 30 nov 2014 22:31 skrev "Felix Ableitner" notifications@github.com:

Wow that's awesome, thanks a lot :)

Unfortunately, it seems that Android-Scala-Installer breaks on Lollipop
jbrechtel/Android-Scala-Installer#1, so I
can't use this yet.

Also, for release builds (where libraries aren't present), I need to add a
second AndroidManifest.xml like in your example, right?


Reply to this email directly or view it on GitHub
#1 (comment).

@Arneball
Copy link
Contributor Author

I man rather have a specialized debug manifest

@Arneball
Copy link
Contributor Author

Also, test My fork of the Scala installer.

@Nutomic
Copy link
Owner

Nutomic commented Dec 2, 2014

Unfortunately, I'm still getting Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY].

(I removed the other Scala Installer libraries, rebooted, then installed yours)

Also, I got a WindowLeaked exception, the same one I reported upstream.

Edit: linking fails:

E/AndroidRuntime( 8002): Process: com.mobilemagic.scalainstaller, PID: 8002
E/AndroidRuntime( 8002): java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: Execution of cmd 'ln -s /data/data/com.mobilemagic.scalainstaller/files/s1_desc.xml /system/etc/permissions/s1_desc.xml' failed with exit code 1
E/AndroidRuntime( 8002):        at com.mobilemagic.scalainstaller.RoboInstaller.performOperationOnSystem(RoboInstaller.scala:51)
E/AndroidRuntime( 8002):        at com.mobilemagic.scalainstaller.RoboInstaller.installScalaLibs(RoboInstaller.scala:59)
E/AndroidRuntime( 8002):        at com.mobilemagic.scalainstaller.MainActivity$$anon$1$$anon$2.run(MainActivity.scala:18)
E/AndroidRuntime( 8002):        at java.lang.Thread.run(Thread.java:818)
E/AndroidRuntime( 8002): Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Execution of cmd 'ln -s /data/data/com.mobilemagic.scalainstaller/files/s1_desc.xml /system/etc/permissions/s1_desc.xml' failed with exit code 1
E/AndroidRuntime( 8002):        at com.mobilemagic.scalainstaller.RoboInstaller$.sudo(RoboInstaller.scala:26)
E/AndroidRuntime( 8002):        at com.mobilemagic.scalainstaller.RoboInstaller$$anonfun$com$mobilemagic$scalainstaller$RoboInstaller$$makeLinks$1.apply$mcVI$sp(RoboInstaller.scala:78)
E/AndroidRuntime( 8002):        at com.mobilemagic.scalainstaller.RoboInstaller$$anonfun$com$mobilemagic$scalainstaller$RoboInstaller$$makeLinks$1.apply(RoboInstaller.scala:76)
E/AndroidRuntime( 8002):        at com.mobilemagic.scalainstaller.RoboInstaller$$anonfun$com$mobilemagic$scalainstaller$RoboInstaller$$makeLinks$1.apply(RoboInstaller.scala:76)
E/AndroidRuntime( 8002):        at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
E/AndroidRuntime( 8002):        at scala.collection.mutable.ArrayOps$ofInt.foreach(ArrayOps.scala:234)
E/AndroidRuntime( 8002):        at com.mobilemagic.scalainstaller.RoboInstaller.com$mobilemagic$scalainstaller$RoboInstaller$$makeLinks(RoboInstaller.scala:76)
E/AndroidRuntime( 8002):        at com.mobilemagic.scalainstaller.RoboInstaller$$anonfun$installScalaLibs$1.apply$mcV$sp(RoboInstaller.scala:61)
E/AndroidRuntime( 8002):        at com.mobilemagic.scalainstaller.RoboInstaller.performOperationOnSystem(RoboInstaller.scala:47)
E/AndroidRuntime( 8002):        ... 3 more
E/AndroidRuntime( 8002): Caused by: java.lang.RuntimeException: Execution of cmd 'ln -s /data/data/com.mobilemagic.scalainstaller/files/s1_desc.xml /system/etc/permissions/s1_desc.xml' failed with exit code 1
E/AndroidRuntime( 8002):        at com.mobilemagic.scalainstaller.RoboInstaller$.sudo(RoboInstaller.scala:22)
E/AndroidRuntime( 8002):        ... 11 more
W/ActivityManager( 2048):   Force finishing activity com.mobilemagic.scalainstaller/.MainActivity

Edit 2: There were some leftover sn_desc.xml files in /system/etc/permissions/, removing those fixed the installer problems. But installing with your PR still gives missing libraries error.

@Arneball
Copy link
Contributor Author

Arneball commented Dec 2, 2014

Im trying to fix this on lollipop.
Den 2 dec 2014 12:05 skrev "Felix Ableitner" notifications@github.com:

Unfortunately, I'm still getting Failure
[INSTALL_FAILED_MISSING_SHARED_LIBRARY].


Reply to this email directly or view it on GitHub
#1 (comment).

@Nutomic
Copy link
Owner

Nutomic commented Dec 2, 2014

Great, tell me if you need any help ;)

@Arneball
Copy link
Contributor Author

Arneball commented Dec 2, 2014

I've pushed an update to https://github.com/Arneball/Android-Scala-Installer.
Try that one. It works with my nexus 5 lollipop

2014-12-02 12:51 GMT+01:00 Felix Ableitner notifications@github.com:

Great, tell me if you need any help ;)


Reply to this email directly or view it on GitHub
#1 (comment).

@Nutomic
Copy link
Owner

Nutomic commented Dec 2, 2014

Thx it works :D

(though I'd recommend to put the apk in a Github release, or even better on F-Droid, instead of into git)

@Nutomic Nutomic merged commit 4f9ccfa into Nutomic:master Dec 2, 2014
@Nutomic
Copy link
Owner

Nutomic commented Dec 2, 2014

Merged, thanks for all your help :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants