Cannot install root tools on android 4.3

Post your questions and help other users.

Moderator: Martin

Post Reply
lchiocca
Posts: 69
Joined: 15 Aug 2013 10:11

Cannot install root tools on android 4.3

Post by lchiocca » 15 Aug 2013 10:21

Hi Martin,

[I've already sent you a mail about this - just disregard it]

I've recently upgraded my phone to android 4.3 and I'm having some issues with automagic. Just to give you my setup: I'm using a samsung galaxy s3 with cyanogenmod 10.2 (android 4.3) and it is rooted. When trying to enable root functionality automagic says "Automagic root tools could not be installed". Looking at the debug logs, it seems that it cannot find "/storage/emulated/0/Automagic/AutomagicRoot-release.apk" and I can confirm that that file is really not there.

Workaround: Download the trial version and extract the apk from there and install it.

I'll do what I can to help you debug this, I'm sure other users will soon try android 4.3

Cheers
Loris

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Cannot install root tools on android 4.3

Post by Martin » 15 Aug 2013 18:55

Hi Loris,

I already replied by mail. The root tools installation works on all my devices using stock Android 4.3. Perhaps it's a cyanogenmod special behavior.
The trial version and the Google Play version should also be the same in this regard. Please enable 'Debug Log' in the preferences of Automagic and check the Root functions checkbox again and then send the log to me (Menu->Manage->Log, Menu->Send Log, to info@automagic4android.com).

Thanks & Regards,
Martin

lchiocca
Posts: 69
Joined: 15 Aug 2013 10:11

Re: Cannot install root tools on android 4.3

Post by lchiocca » 16 Aug 2013 08:10

I tried to uninstall the root tools, but it didn't succeed... The logs say:
16.08.2013 09:21:47.778 Executing command: su
16.08.2013 09:21:47.805 Executing command: mount -o remount,rw -t ext4 /dev/block/mmcblk0p9 /system
16.08.2013 09:21:48.807 Executing command: rm /system/app/ch.gridvision.ppam.androidautomagicroot.apk
16.08.2013 09:21:48.823 rm failed for /system/app/ch.gridvision.ppam.androidautomagicroot.apk, No such file or directory
16.08.2013 09:21:49.809 Executing command: mount -o remount,ro -t ext4 /dev/block/mmcblk0p9 /system
16.08.2013 09:21:53.812 AutomagicRoot could not be removed
16.08.2013 09:21:53.837 Process exited with exit_status 0
16.08.2013 09:21:53.842 AutomagicRoot tools removed
16.08.2013 09:21:56.726 Executing command: su
16.08.2013 09:21:56.753 Executing command: id
16.08.2013 09:21:56.822 Process exited with exit_status 0
16.08.2013 09:21:56.823 stderr =
16.08.2013 09:21:56.824 stdout = uid=0(root) gid=0(root) context=u:r:init_shell:s0
16.08.2013 09:21:56.837 AutomagicRoot tools installed

So I uninstalled it manually. After that, I tried to reinstall them using the "standard way". The logs show:
16.08.2013 09:25:32.213 Could not determine installed version, AutomagicRoot seems not to be installed.
16.08.2013 09:25:39.218 Executing command: su
16.08.2013 09:25:39.247 Executing command: id
16.08.2013 09:25:39.319 Process exited with exit_status 0
16.08.2013 09:25:39.320 stderr =
16.08.2013 09:25:39.321 stdout = uid=0(root) gid=0(root) context=u:r:init_shell:s0

16.08.2013 09:25:39.323 Could not determine installed version, AutomagicRoot seems not to be installed.
16.08.2013 09:25:39.340 Executing command: mount
16.08.2013 09:25:39.367 Process exited with exit_status 0
16.08.2013 09:25:39.368 mount exit_status = 0
16.08.2013 09:25:39.369 stderr =
16.08.2013 09:25:39.370 stdout = rootfs / rootfs ro,relatime 0 0
tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,seclabel,relatime 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
/sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0
tmpfs /storage tmpfs rw,seclabel,relatime,mode=050,gid=1028 0 0
tmpfs /storage/emulated tmpfs rw,seclabel,nosuid,nodev,relatime,mode=050,gid=1028 0 0
/dev/block/vold/179:17 /storage/sdcard1 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /mnt/secure tmpfs rw,seclabel,relatime,mode=700 0 0
tmpfs /mnt/asec tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
/dev/block/dm-0 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-1 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-2 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-3 /mnt/asec/ch.gridvision.ppam.androidautomagic-1 ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-4 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-5 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-6 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-7 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-8 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-9 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-10 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-11 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-12 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-13 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-14 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-15 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-16 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-17 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-18 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-19 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-20 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-21 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-22 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-23 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-24 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-25 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-26 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-27 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-28 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-29 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-30 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-31 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
/dev/block/dm-32 /mnt/asec/[obfuscated] ext4 ro,dirsync,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1 0 0
tmpfs /mnt/obb tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/fuse tmpfs rw,seclabel,relatime,mode=775,gid=1000 0 0
/dev/block/mmcblk0p3 /efs ext4 rw,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1,journal_async_commit,data=ordered 0 0
/dev/block/mmcblk0p9 /system ext4 ro,seclabel,nosuid,nodev,relatime,user_xattr,barrier=1,data=ordered 0 0
/dev/block/mmcblk0p8 /cache ext4 rw,seclabel,nosuid,nodev,noatime,errors=panic,user_xattr,barrier=1,journal_async_commit,data=ordered 0 0
/dev/block/mmcblk0p10 /preload ext4 rw,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1,journal_async_commit,data=ordered 0 0
/dev/block/mmcblk0p12 /data ext4 rw,seclabel,nosuid,nodev,noatime,user_xattr,barrier=1,journal_async_commit,data=ordered,noauto_da_alloc,discard 0 0
/dev/fuse /mnt/shell/emulated fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/emulated/0 fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/emulated/0/Android/obb fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/emulated/legacy fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
/dev/fuse /storage/emulated/legacy/Android/obb fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
16.08.2013 09:25:39.386 Executing command: su
16.08.2013 09:25:39.402 Executing command: mount -o remount,rw -t ext4 /dev/block/mmcblk0p9 /system
16.08.2013 09:25:40.408 Executing command: cat /storage/emulated/0/Automagic/AutomagicRoot-release.apk > /system/app/ch.gridvision.ppam.androidautomagicroot.apk.tmp
16.08.2013 09:25:40.415 sh: <stdin>[2]: cat: /storage/emulated/0/Automagic/AutomagicRoot-release.apk: No such file or directory
16.08.2013 09:25:41.411 Executing command: chmod 644 /system/app/ch.gridvision.ppam.androidautomagicroot.apk.tmp
16.08.2013 09:25:41.514 Executing command: mv /system/app/ch.gridvision.ppam.androidautomagicroot.apk.tmp /system/app/ch.gridvision.ppam.androidautomagicroot.apk
16.08.2013 09:25:41.617 Executing command: mount -o remount,ro -t ext4 /dev/block/mmcblk0p9 /system
16.08.2013 09:25:45.619 Could not determine installed version, AutomagicRoot seems not to be installed.
16.08.2013 09:25:45.621 AutomagicRoot could not be installed
16.08.2013 09:25:45.642 Process exited with exit_status 0
16.08.2013 09:25:45.646 Temporary AutomagicRoot successfully deleted from external memory.
16.08.2013 09:25:45.649 Could not determine installed version, AutomagicRoot seems not to be installed.
16.08.2013 09:25:45.651 AutomagicRoot tools not installed

hope that helps.

Loris

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Cannot install root tools on android 4.3

Post by Martin » 16 Aug 2013 09:00

Thanks for the log.
Very strange, perhaps it can not extract the APK file to external storage but this seems unlikely to be the cause.
I will try to get cm 10.2 installed in the next few days so I can make some tests myself.

In the meantime you have to install the root functions APK manually by placing the file ch.gridvision.ppam.androidautomagicroot.apk in /system/app.
You can get the file here (for version 1.17):
ch.gridvision.ppam.androidautomagicroot.apk

or this one (for the new version 1.18, should be up on Google Play later today):
ch.gridvision.ppam.androidautomagicroot.apk

Does manually installing work on cm 10.2?

Regards,
Martin

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Cannot install root tools on android 4.3

Post by Martin » 16 Aug 2013 14:16

Hi,

Installed CM and it seems that root does not have access to /storage/emulated/0/. You can also see this when you open the CM File Manager and enable Root Access mode.
The reason for this is not clear to me yet, especially since stock Android 4.3 seems not to handle it this way. Perhaps it's an issue in CM that will be changed in a future CM nightly.
Anyhow, I will add a workaround in the next update.

Regards,
Martin

lchiocca
Posts: 69
Joined: 15 Aug 2013 10:11

Re: Cannot install root tools on android 4.3

Post by lchiocca » 19 Aug 2013 13:33

Hi Martin,

This is just a guess, but as of android 4.2, google have introduced multi-users and it might be that when running as su (probably in a different thread), you might not really be aware when a user-switch happend. It might sound sane to assume you don't want to access the "user's sdcard" from within root. Having a look at what CM had to say about this, I found this thread:
https://plus.google.com/100275307499530 ... DVgeKMWaf4

It really sounds like android 4.3 is restricting a lot of su functionality... Wouldn't it be simpler to unpack the root.apk as non-su?

Loris

lchiocca
Posts: 69
Joined: 15 Aug 2013 10:11

Re: Cannot install root tools on android 4.3

Post by lchiocca » 19 Aug 2013 13:59

Here's a more elaborate - although not technical - android 4.3 root post:
http://pocketnow.com/2013/08/01/dont-want-to-root

lchiocca
Posts: 69
Joined: 15 Aug 2013 10:11

Re: Cannot install root tools on android 4.3

Post by lchiocca » 20 Sep 2013 08:49

Cyanogenmod changed the way su seen the file system. This issue is probably no longer an issue. See https://github.com/CyanogenMod/Superuse ... cd2447aaa1

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Cannot install root tools on android 4.3

Post by Martin » 20 Sep 2013 09:42

Thanks for the information!
The installation of the root tools indeed seems to work again in the latest nightly builds of CM.

Post Reply