jconsole launches correctly. I even removed my old manual symlink in
/mnt/asec and it still worked

android_exec_am_failed because there is a typo in the code. stdlib.ijs has:

user=. (UserNumer_ja_)

(note missing b)

Setting the variable as UserNumer_ja_=:0 works and plot, xedit, edtc launch
correctly

thanks


On Thu, Apr 10, 2014 at 4:15 AM, bill lam <[email protected]> wrote:

> anther update. please try if loading libj.so and am start can
> work in this version. Please note that you may have to uninstall
> first. Check also the timestamp of ~bin/jconsole to verify it
> has been updated.
>
> Since jconsole does not know anything about android version or
> user serial number so android_exec_host (under jconsole)
> will fail for android 4.2 (API level 17 or later).
> Instead one needs to defines
>
> UserNumber_ja_=: 0
>
> some where, (eg, in ~config/startup.ijs using jqt)
>
> In the rare case that your User Serial Number is not 0,
> change that line accordingly.
>
> For earlier android versions, UserNumber_ja_ must be a negative
> number which is the default.
>
> Ср, 09 апр 2014, Joe Bogner писал(а):
> > All tests were successful by adding --user 0
> >
> > Very cool
> >
> > It looks like xedit launches with the permissions of jconsole so I am
> able
> > to edit files under /data/data/com.jsoftware.android.qtide/... Very handy
> > because otherwise browsing to the file is blocked.
> >
> > Another benefit of jconsole is that android doesnt kill jhs. It seems to
> > kill or suspend both jqt and jconsole_for_android. This version in the
> > terminal stays alive
> >
> > Thank you!
> > On Apr 9, 2014 9:52 PM, "bill lam" <[email protected]> wrote:
> >
> > > Could you test this? edit the stdlib.ijs, search for the line
> containing
> > > the string "am start -a" and insert a user number so that it becomes
> > > "am start --user 0 -a"
> > >
> > > save and restart jconsole. If it works, then also try launch other
> apps, eg
> > > browse_j_ 'http://www.google.com'
> > >
> > > xedit jpath '~config/base.cfg'
> > > On Apr 10, 2014 1:37 AM, "Joe Bogner" <[email protected]> wrote:
> > >
> > > > No problem. Some errors
> > > >
> > > >    require 'plot'
> > > >
> > > >    plot i. 12 12
> > > > java.lang.SecurityException: Permission Denial: startActivity asks
> to run
> > > > as user -2 but is calling from user 0; this requires
> > > > android.permission.INTERACT_ACROSS_USERS_FULL
> > > >         at android.os.Parcel.readException(Parcel.java:1431)
> > > >         at android.os.Parcel.readException(Parcel.java:1385)
> > > >         at
> > > >
> > > >
> > >
> android.app.ActivityManagerProxy.startActivityAsUser(ActivityManagerNative.java:2269)
> > > >         at com.android.commands.am.Am.runStart(Am.java:617)
> > > >         at com.android.commands.am.Am.onRun(Am.java:232)
> > > >         at
> com.android.internal.os.BaseCommand.run(BaseCommand.java:47)
> > > >         at com.android.commands.am.Am.main(Am.java:75)
> > > >         at
> com.android.internal.os.RuntimeInit.nativeFinishInit(Native
> > > > Method)
> > > >         at
> com.android.internal.os.RuntimeInit.main(RuntimeInit.java:297)
> > > >         at dalvik.system.NativeStart.main(Native Method)
> > > >
> > > >    load 'viewmat'
> > > >
> > > >    viewmat i. 12 12
> > > > java.lang.SecurityException: Permission Denial: startActivity asks
> to run
> > > > as user -2 but is calling from user 0; this requires
> > > > android.permission.INTERACT_ACROSS_USERS_FULL
> > > >         at android.os.Parcel.readException(Parcel.java:1431)
> > > >         at android.os.Parcel.readException(Parcel.java:1385)
> > > >         at
> > > >
> > > >
> > >
> android.app.ActivityManagerProxy.startActivityAsUser(ActivityManagerNative.java:2269)
> > > >         at com.android.commands.am.Am.runStart(Am.java:617)
> > > >         at com.android.commands.am.Am.onRun(Am.java:232)
> > > >         at
> com.android.internal.os.BaseCommand.run(BaseCommand.java:47)
> > > >         at com.android.commands.am.Am.main(Am.java:75)
> > > >         at
> com.android.internal.os.RuntimeInit.nativeFinishInit(Native
> > > > Method)
> > > >         at
> com.android.internal.os.RuntimeInit.main(RuntimeInit.java:297)
> > > >         at dalvik.system.NativeStart.main(Native Method)
> > > > 1
> > > > On Apr 9, 2014 1:26 PM, "bill lam" <[email protected]> wrote:
> > > >
> > > > > Could you also test if plot and viewmat can work? eg,
> > > > >
> > > > > load'plot'
> > > > > plot i.12 12
> > > > >
> > > > > load'viewmat'
> > > > > viewmat i.12 12
> > > > >
> > > > >
> > > > > 09.04.2014, в 23:46, Joe Bogner <[email protected]> написал(а):
> > > > >
> > > > > > Old jconsole works fine. New version segfaults
> > > > > >
> > > > > > Running strace suggests it's segfaulting when looking for
> > > > > > /mnt/asec/com.jsoftware.android.qtide-1/lib/libj.so
> > > > > >
> > > > > > I don't have a
> /mnt/asec/com.jsoftware.android.qtide-1/lib/libj.so
> > > > > >
> > > > > > However, on my rooted device if I ln -s
> > > > > > /data/data/com.jsoftware.android.qtide
> > > > > > /mnt/asec/com.jsoftware.android.qtide-1 then the new version
> works
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Wed, Apr 9, 2014 at 10:47 AM, bill lam <[email protected]>
> > > wrote:
> > > > > >
> > > > > >> I tested jconsole ok on android terminal emulator.  Even the box
> > > > > >> characters display nicely.
> > > > > >>
> > > > > >> Ср, 09 апр 2014, Joe Bogner писал(а):
> > > > > >>> in the latest version jconsole dies after a second with a
> > > > 'Segmentation
> > > > > >>> Fault' upon startup
> > > > > >>>
> > > > > >>> I uninstalled and reinstalled. jqt is fine. I also confirmed
> that
> > > the
> > > > > tmp
> > > > > >>> directory on my device gets created with 777 permissions in the
> > > > latest
> > > > > >>> version
> > > > > >>>
> > > > > >>> I then uninstalled and reinstalled the previous APK and that
> > > launched
> > > > > >> fine.
> > > > > >>> I suspect there's a problem in the new apk
> > > > > >>>
> > > > > >>>
> > > > > >>> By the way, I've been enjoying using jconsole over the past few
> > > days
> > > > on
> > > > > >> my
> > > > > >>> android. It lets me have a persistent J session available
> always in
> > > > the
> > > > > >>> upper left hand corner. I've also been running multiple
> instances
> > > of
> > > > > >>> jconsole -- 1 for a lab to play with during breaks and then 1
> with
> > > > > >> current
> > > > > >>> calcs I am using. The two instances let me keep the lab
> position
> > > > > without
> > > > > >>> interrupting it if I want to evaluate something unrelated. Just
> > > > figured
> > > > > >> I'd
> > > > > >>> share a unique advantage to using jconsole
> > > > > >>>
> > > > > >>> I noticed that boxed representations don't show up in a
> meaningful
> > > > way.
> > > > > >>> Boxes just seem to get offset with whites space. I wonder if I
> can
> > > > > >> somehow
> > > > > >>> enable ascii boxes or something else to correct it. I can send
> a
> > > > > >> screenshot
> > > > > >>> if that would help... Or just type 1;2;3;4
> > > > > >>>
> > > > > >>> thanks
> > > > > >>>
> > > > > >>>
> > > > > >>>
> > > > > >>>
> > > > > >>> On Wed, Apr 9, 2014 at 12:10 AM, bill lam <[email protected]
> >
> > > > wrote:
> > > > > >>>
> > > > > >>>> apk updated again to add support of plot and viewmat under
> > > jconsole.
> > > > > >> Only
> > > > > >>>> tested on android 4.0 .
> > > > > >>>>
> > > > > >>>> 07.04.2014, в 19:28, Joe Bogner <[email protected]>
> написал(а):
> > > > > >>>>
> > > > > >>>>> Good news. I uninstalled and re-installed and the latest
> version
> > > > > >> launches
> > > > > >>>>> successfully with
> > > > > >>>>>
> > > > > >>>>> /data/data/com.jsoftware.android.qtide/files/bin/jconsole
> > > > > >>>>>
> > > > > >>>>> and no other workarounds
> > > > > >>>>>
> > > > > >>>>> You mentioned you are looking into it, but I wanted to
> confirm
> > > that
> > > > > >> the
> > > > > >>>> tmp
> > > > > >>>>> issue exists in the latest version. The 2!:0 foreign still
> fails
> > > > > >> with:
> > > > > >>>>>
> > > > > >>>>> 'sh: can't create
> > > > > >>>>>
> /data/data/com.jsoftware.android.qtide/files/tmp/tmp.0.CajIu2178:
> > > > No
> > > > > >> such
> > > > > >>>>> file or directory'
> > > > > >>>>> | interface error
> > > > > >>>>>
> > > > > >>>>> I can work around it by creating the directory from within
> jqt.
> > > >  Not
> > > > > >> a
> > > > > >>>> big
> > > > > >>>>> deal and likely won't stop too many new users, which this is
> > > > already
> > > > > >> an
> > > > > >>>>> edge case for...
> > > > > >>>>>
> > > > > >>>>> Thanks for the quick fix
> > > > > >>>>>
> > > > > >>>>> Joe
> > > > > >>>>>
> > > > > >>>>>
> > > > > >>>>>
> > > > > >>>>> On Mon, Apr 7, 2014 at 7:13 AM, bill lam <
> [email protected]>
> > > > > >> wrote:
> > > > > >>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> /data/data/com.jsoftware.android.qtide/files/bin/../lib/libj.so
> > > > > >> failed
> > > > > >>>>>>
> > > > > >>>>>> This is a bug, it should read
> > > > > >>>>>>
> > > /data/data/com.jsoftware.android.qtide/files/bin/../../lib/libj.so
> > > > > >>>>>>
> > > > > >>>>>> But this bug did not affect me becasue my libj.so
> > > > > >>>>>> is not in that location, it is iniside sdcard, the same
> folder
> > > > > >>>>>> On my android it is
> > > > > >>>>>> /mnt/asec/com.jsoftware.android.qtide-1/lib
> > > > > >>>>>>
> > > > > >>>>>> Apparently you didn't choose external install or it does not
> > > > > >>>>>> support that.
> > > > > >>>>>>
> > > > > >>>>>> I updated the apk again, please try if this one can work
> > > smoothly.
> > > > > >>>>>> you may need to remove the bin/jconsole file or un-install
> the
> > > app
> > > > > >>>>>> before install.
> > > > > >>>>>>
> > > > > >>>>>> I'll take a look into the tmp folder issue later.
> > > > > >>>>>>
> > > > > >>>>>> Пн, 07 апр 2014, Joe Bogner писал(а):
> > > > > >>>>>>> Getting closer. I can execute it, but it fails loading the
> > > > library.
> > > > > >>>>>>>
> > > > > >>>>>>> Load library
> > > > > >>>>>>>
> /data/data/com.jsoftware.android.qtide/files/bin/../lib/libj.so
> > > > > >> failed
> > > > > >>>>>>>
> > > > > >>>>>>> There isn't a
> /data/data/com.jsoftware.android.qtide/files/lib
> > > > > >> folder
> > > > > >>>> on
> > > > > >>>>>> my
> > > > > >>>>>>> device
> > > > > >>>>>>>
> > > > > >>>>>>> I was able to create one from J
> > > > > >>>>>>>
> > > > > >>>>>>> My transcript was something like this:
> > > > > >>>>>>>
> > > > > >>>>>>> 2!:0 'mkdir
> /data/data/com.jsoftware.android.qtide/files/lib/'
> > > > > >>>>>>> 2!:0 'cp
> /data/data/com.jsoftware.android.qtide/lib/libj.so /
> > > > > >>>>>>> data/data/com.jsoftware.android.qtide/files/lib/'
> > > > > >>>>>>> 2!:0 'chmod 755
> > > > > >>>> /data/data/com.jsoftware.android.qtide/files/lib/libj.so'
> > > > > >>>>>>>
> > > > > >>>>>>> I also needed to create a tmp folder because when I
> executed
> > > > '2:!0
> > > > > >> ls
> > > > > >>>>>> -la'
> > > > > >>>>>>> under jconsole it complained about a tmp folder not
> existing
> > > > > >>>>>>>
> > > > > >>>>>>> 2!:0 'mkdir
> /data/data/com.jsoftware.android.qtide/files/tmp/'
> > > > > >>>>>>> 2!:0 'chmod 777
> > > > /data/data/com.jsoftware.android.qtide/files/tmp/'
> > > > > >>>>>>>
> > > > > >>>>>>> That fixed all my issues so far. jconsole was able to run
> from
> > > > > >> android
> > > > > >>>>>>> terminal emulator as
> > > > > >>>>>>> /data/data/com.jsoftware.android.qtide/files/bin/jconsole
> > > > > >>>>>>>
> > > > > >>>>>>> and I was able to execute the system foreign from under
> > > jconsole
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>> On Mon, Apr 7, 2014 at 12:50 AM, bill lam <
> [email protected]
> > > >
> > > > > >> wrote:
> > > > > >>>>>>>
> > > > > >>>>>>>> qtide-signed.apk is updated for bug fix, it now also set
> bin
> > > > > >> folder
> > > > > >>>>>>>> permission as 755.  Please try if it can help.
> > > > > >>>>>>>>
> > > > > >>
> > > ----------------------------------------------------------------------
> > > > > >>>>>>>> For information about J forums see
> > > > > >>>> http://www.jsoftware.com/forums.htm
> > > > > >>>>>>>>
> > > > > >>>>>>>
> > > > > >>
> > > ----------------------------------------------------------------------
> > > > > >>>>>>> For information about J forums see
> > > > > >> http://www.jsoftware.com/forums.htm
> > > > > >>>>>>
> > > > > >>>>>> --
> > > > > >>>>>> regards,
> > > > > >>>>>> ====================================================
> > > > > >>>>>> GPG key 1024D/4434BAB3 2008-08-24
> > > > > >>>>>> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> > > > > >>>>>> gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
> > > > > >>>>>>
> > > > > >>
> > > ----------------------------------------------------------------------
> > > > > >>>>>> For information about J forums see
> > > > > >> http://www.jsoftware.com/forums.htm
> > > > > >>>>>>
> > > > > >>>>>
> > > > > >>
> > > ----------------------------------------------------------------------
> > > > > >>>>> For information about J forums see
> > > > > >> http://www.jsoftware.com/forums.htm
> > > > > >>>>
> > > >
> ----------------------------------------------------------------------
> > > > > >>>> For information about J forums see
> > > > > http://www.jsoftware.com/forums.htm
> > > > > >>>>
> > > > > >>>
> > > >
> ----------------------------------------------------------------------
> > > > > >>> For information about J forums see
> > > > http://www.jsoftware.com/forums.htm
> > > > > >>
> > > > > >> --
> > > > > >> regards,
> > > > > >> ====================================================
> > > > > >> GPG key 1024D/4434BAB3 2008-08-24
> > > > > >> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> > > > > >> gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
> > > > > >>
> > > ----------------------------------------------------------------------
> > > > > >> For information about J forums see
> > > > http://www.jsoftware.com/forums.htm
> > > > > >>
> > > > > >
> > > ----------------------------------------------------------------------
> > > > > > For information about J forums see
> > > http://www.jsoftware.com/forums.htm
> > > > >
> ----------------------------------------------------------------------
> > > > > For information about J forums see
> http://www.jsoftware.com/forums.htm
> > > >
> ----------------------------------------------------------------------
> > > > For information about J forums see
> http://www.jsoftware.com/forums.htm
> > > ----------------------------------------------------------------------
> > > For information about J forums see http://www.jsoftware.com/forums.htm
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
>
> --
> regards,
> ====================================================
> GPG key 1024D/4434BAB3 2008-08-24
> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to