This forum uses cookies. Click X button to hide this message. What is stored? / Privacy
Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Slow moving files on external SD
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander for Android Printable version
View previous topic :: View next topic  
Author Message
Dharmendra
Junior Member
Junior Member


Joined: 12 Jun 2017
Posts: 5

PostPosted: Mon Jun 12, 2017 2:01 pm    Post subject: Reply with quote

even if I move Total Commander app to /system/app and give it root rights, it doesn't make any difference. it still uses copy and delete commands to move a file. why my default file manager can use move command on sd and TC can't ?
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35767
Location: Switzerland

PostPosted: Thu Jun 15, 2017 2:42 am    Post subject: Reply with quote

Are you on Android 7? Older Android versions do NOT have the move function.

The default file manager is a system app signed either by Google or the device manufacturer. System apps do not have the ricdiculous restrictions imposed on installed apps.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dharmendra
Junior Member
Junior Member


Joined: 12 Jun 2017
Posts: 5

PostPosted: Wed Jun 21, 2017 2:28 am    Post subject: Reply with quote

I am on Android 6.0, my default Android file manager provided with rom can move files without any problem but I've tried all popular file managers in play store and they all use copy and delete to move files even if I move them to /system/app
Back to top
View user's profile Send private message
Dharmendra
Junior Member
Junior Member


Joined: 12 Jun 2017
Posts: 5

PostPosted: Wed Jun 21, 2017 2:32 am    Post subject: Reply with quote

how can I remove these restrictions from TC? is there any work around for rooted phone?
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35767
Location: Switzerland

PostPosted: Thu Jun 22, 2017 2:32 am    Post subject: Reply with quote

You probably can't - "system" is on a different partition of the flash memory than the user data, so the files need to be copied then deleted.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dharmendra
Junior Member
Junior Member


Joined: 12 Jun 2017
Posts: 5

PostPosted: Thu Jun 22, 2017 10:45 am    Post subject: Reply with quote

it looks like you misunderstood my comment. by saying move to /system/app I ment to say that I made them system app, ofcourse data and system are different partitions so we need to copy and delete, but as my OS is rooted I moved all popular file managers from market to system partition in the hope that it might remove the restriction you mentioned earlier, but it doesn't. moving a file from external sd card to some other folder in external sd card also uses copy and delete command even when TC is system app (only my defaults file manager supplied with ROM does the magic and can move it).

anyway it may be because they are not signed with some system certificate as you said. thank you for your valuable time.
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35767
Location: Switzerland

PostPosted: Mon Jun 26, 2017 7:57 am    Post subject: Reply with quote

Giving the Total Commander apk root rights doesn't help at all - it's just a zip containing java byte code and a few C libraries, not executable code. TC usually calls the shell via "su" and then uses the shell command "mv" to move the file, something like this:
sendShellRequest("mv \""+escapeName(fullsrc)+"\" \""+escapeName(fulltrg)+"\"")

Does "rename" within the same folder work? It uses the same command.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dharmendra
Junior Member
Junior Member


Joined: 12 Jun 2017
Posts: 5

PostPosted: Mon Jun 26, 2017 2:23 pm    Post subject: Reply with quote

Yes, I've tried moving 1 GB file and renaming within same folder works fine, but moving to other folder takes one minute as it uses copy and delete. I also have tried 'mv' command using a terminal emulator and it can move files within external sd without any problem (within folder and to the other folders). looks like TC is not using same command, otherwise it would give me same result...!
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35767
Location: Switzerland

PostPosted: Thu Jun 29, 2017 2:38 am    Post subject: Reply with quote

OK, I will check it in the debugger.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
beholder
Junior Member
Junior Member


Joined: 28 Mar 2008
Posts: 3

PostPosted: Mon Jan 22, 2018 9:46 am    Post subject: Reply with quote

This issue still persists, samsung galaxy j3, android 5.11.

I have tried moving large files from sd to same sd with the stock "My Files" app and it was instant. Total cmd copies and deletes instead, making the "moving' extremely slow. Please look into it, a lot of people have samyong phones.
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35767
Location: Switzerland

PostPosted: Mon Jan 22, 2018 9:54 am    Post subject: Reply with quote

"My Files" is a system app, it has more rights than user-installed apps. Moving files on SD card is only possible on Android 7 and newer, sorry.
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
beholder
Junior Member
Junior Member


Joined: 28 Mar 2008
Posts: 3

PostPosted: Mon Jan 22, 2018 10:54 am    Post subject: Reply with quote

I see, was pondering about the same thing. Can't you just issue some kind of terminal request which would take care of moving? Perhaps I am too spoiled from Windows though.
Back to top
View user's profile Send private message
ghisler(Author)
Site Admin
Site Admin


Joined: 04 Feb 2003
Posts: 35767
Location: Switzerland

PostPosted: Thu Jan 25, 2018 4:06 am    Post subject: Reply with quote

No, unfortunately there isn't any such command. Sad
_________________
Author of Total Commander
http://www.ghisler.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander for Android All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Imprint/Impressum: This site is maintained by Ghisler Software GmbH
Privacy Policy | Datenschutzerklärung | Politique de Confidentialité

Using phpBB © phpBB Group