[Q] Custom app installation path - Nexus 7 Q&A, Help & Troubleshooting

Hi,
I own rooted Nexus 7 and would like to have the possibility of custom installation path for all apps. In other words, if I connect a usb stick to my nexus 7 using usb/otg cable and stickmount app, this additional storage appears in
/storage/sdcard0/usbStorage/sda1
I would like to install some of the apps directly into this folder (or a subfolder there). Is there a way to change the intall location of an app in Android?
What I tried:
- changing default installation path to SD card using adb (didn't work since this is obviously not an external SD card)
- some apps that are supposed to move arbitrary app tp SD card (didn't work for the same reason I guess)
Thanks for your help

Related

[q] guys need help!!!! Plz reply fast

i am using the sd version of the AmeriCanAndroid AOSP HD2 GB2.3.5 CM7 and i cannot copy the files through usb ie it gets copied and then when i disconnect the copied files are not visible .......and sometimes they even get deleted ...So plz tell how can i get over this ????
You could transfer the files via Dropbox, the link below in my signature will get us both extra storage space.
welll i can copy but they r not visible or getting deleted ......
Are you copying the files to the sdcard? And what app are you using to browse for them once you have transfered? Root Explorer is the best file explorer imo.
sidduhtc said:
welll i can copy but they r not visible or getting deleted ......
Click to expand...
Click to collapse
Try SD card mount from market
Sent from my HTC HD2 using XDA App
tried tht but no use
sidduhtc said:
i am using the sd version of the AmeriCanAndroid AOSP HD2 GB2.3.5 CM7 and i cannot copy the files through usb ie it gets copied and then when i disconnect the copied files are not visible .......and sometimes they even get deleted ...So plz tell how can i get over this ????
Click to expand...
Click to collapse
Are you removing the usb device safely?
Usually if you copy files to the SD on android they will not be visible until you restart the device. You can make the media files visible using some apps, but other files will only appear after you restart.
Apparently, when copying files using My phone explorer, the app seems to make android update it's information and thus files you copy using My phone explorer will appear when you finish.
I have tested this with most sense builds, but not with Amercian Android.
Dr.Move said:
Usually if you copy files to the SD on android they will not be visible until you restart the device. You can make the media files visible using some apps, but other files will only appear after you restart.
Apparently, when copying files using My phone explorer, the app seems to make android update it's information and thus files you copy using My phone explorer will appear when you finish.
I have tested this with most sense builds, but not with Amercian Android.
Click to expand...
Click to collapse
This is false.
When you copy anything to Android's SDCard via USB/WiFi, the device immediately sees the files.
When you copy media files (pics/music/movie), the device sees the files, but the Media Service might not have indexed the files yet, so media apps relying on the Media Service will not show them (Music app f.e.)
IF you're copying files to the SD card via USB, safely removing the device from your computer, and they still do not show up on Android's File explorer, then i would check your SD card for errors...
P.S. Tested on HTC Kaiser running froyo/gingerbread, HTC Diamond running Froyo/Gingerbread, HTC HD2 Running gingerbread, HTC Desire running Gingerbread, HTC DesireHD running froyo/gingerbread. Multiple SDcards raging from 1gb to 16, class 2 to 10.
With americanandroid on SD, Theres a problem with usb files transfer (check FAQ'S on thread), u can do: reboot to wimo, copy files and boot android, files will be there, OR use the program for windows described in the FAQ (guess its Androidmanager) OR.. Use NAND Rom... ;-)
Hope it helps
Enviado desde mi HTC HD2
daedric said:
This is false.
When you copy anything to Android's SDCard via USB/WiFi, the device immediately sees the files.
When you copy media files (pics/music/movie), the device sees the files, but the Media Service might not have indexed the files yet, so media apps relying on the Media Service will not show them (Music app f.e.)
IF you're copying files to the SD card via USB, safely removing the device from your computer, and they still do not show up on Android's File explorer, then i would check your SD card for errors...
P.S. Tested on HTC Kaiser running froyo/gingerbread, HTC Diamond running Froyo/Gingerbread, HTC HD2 Running gingerbread, HTC Desire running Gingerbread, HTC DesireHD running froyo/gingerbread. Multiple SDcards raging from 1gb to 16, class 2 to 10.
Click to expand...
Click to collapse
I like that you tested it on multiple devices, but they're all running Android form device memory if I'm correct, right? you're not running SD Android. anyway I tagged a long and scanned my SD for errors and nothing was there. Using wifi and bluetooth makes android recognize the files, and yes media files have to be reloaded.
however, when copying non-media files through USB on several build I've tried before (can't remember which because I've tried almost every SD build out there) the phone will not see them even using a file browser, but they would appear on the PC. Resetting the device would make them appear. My only explanation to that was that certain builds would create some kind of "image" of the files on SD at the time, and would show you that image when you request the files. So if you add files using a way that doesn't update that image (here copying through USB) they wouldn't appear until the next start.
try samba filesharing from market.
you can copy files via wifi without usb.
Or you could use a card reader......
dropbox is great for transferring files wirelessly too
Dr.Move said:
I like that you tested it on multiple devices, but they're all running Android form device memory if I'm correct, right? you're not running SD Android. anyway I tagged a long and scanned my SD for errors and nothing was there. Using wifi and bluetooth makes android recognize the files, and yes media files have to be reloaded.
however, when copying non-media files through USB on several build I've tried before (can't remember which because I've tried almost every SD build out there) the phone will not see them even using a file browser, but they would appear on the PC. Resetting the device would make them appear. My only explanation to that was that certain builds would create some kind of "image" of the files on SD at the time, and would show you that image when you request the files. So if you add files using a way that doesn't update that image (here copying through USB) they wouldn't appear until the next start.
Click to expand...
Click to collapse
HTC Kaiser run android from sdcard (either SD partitions or image files on the main partition) long before there was nand.
I understand what you're saying, but i cannot accept it. It makes no sense.
Let's see, Android requires a minimum of 2 partitions, one for data, one for system. Those might be a SD card partition (in this cases), or 2 files on the SD card mounted using loop.
IF, you're using the second option, you cannot access the sdcard on the computer (it must be unmounted from android to appear on the computer, you probably noticed that it's impossible to access the sdcard when it's connected via USB as mass storage.)
So, you're probably using SD card partitions. Am i right?
it might be permission issue...
daedric said:
HTC Kaiser run android from sdcard (either SD partitions or image files on the main partition) long before there was nand.
I understand what you're saying, but i cannot accept it. It makes no sense.
Let's see, Android requires a minimum of 2 partitions, one for data, one for system. Those might be a SD card partition (in this cases), or 2 files on the SD card mounted using loop.
IF, you're using the second option, you cannot access the sdcard on the computer (it must be unmounted from android to appear on the computer, you probably noticed that it's impossible to access the sdcard when it's connected via USB as mass storage.)
So, you're probably using SD card partitions. Am i right?
Click to expand...
Click to collapse
sorry didn't notice the Kaiser on that list. I don't use SD partitions, too lazy to do so, and I don't unmount the SD, had my share of troubles doing so in the past, I used apps like Dualmount SD and such, media files would appear after I force android to rescan media, but other file types would appear after I restart the device. So I came up with the best possible explanation. However, when I copy files with My phone explorer they always show up, whether media or not, could be the new build I'm trying, or could be that I'm doing something I didn't in the past, who knows.

Where do I need to place 'SD Card' files?

I have some apps I want to transfer from PC to my Nexus 4. They come with files/folders that need to reside on an 'SD Card' however clearly the nexus 4 does not have one.
I.E. they say "Extract the zip to SD Card/Android/data"
Where do I place them? Do I need to make a virtual SD card of some sort, or do they go directly into Nexus4->Internal Storage->Android->Data (as viewed from Windows when connecting via USB)
If so, that leads me to my 2nd question. Why does it not work? apps say they need to download data, even though its there in the \Android\Data folder
When you say apps do you just mean the APK files? If so, just copy them onto the 'SD Card' as you see it on your PC and then install them via a file manager on your phone. Or use ADB to install them manually
e.g.
adb install name_of_app.apk
I think it's suppose to be in Android/Obb/(your downloaded files).
Sent from my Nexus 4 using Tapatalk 2
EddyOS said:
When you say apps do you just mean the APK files? If so, just copy them onto the 'SD Card' as you see it on your PC and then install them via a file manager on your phone. Or use ADB to install them manually
e.g.
adb install name_of_app.apk
Click to expand...
Click to collapse
I'm new to Android so bare with me. I realise I can place the .apk anywhere (I can can't I?) and run it on the Nexus itself to install the app. What I mean is some apps will store data on an SD card. I have the data on my PC. I want to transfer it to the Android device so it doesn't have to download it again, or simply fail because it doesn't recognise the data is there.
So lets assume 'MyApp' needs to access 'MyFile.x' which would normally reside on 'SDCard\Com.MyApp.001\MyFile.x'
What is the equivelent with the Nexus4 so that I can paste 'MyFile.x' and have 'MyApp' read it?
When you plug you're phone in
Go to my computer > nexus 4 > internal storage
That is /sdcard
Obb files go in /mnt/shell/emulated/obb/
Note: /mnt/shell/emulated/ is the only way to access the true root of your sdcard
This is also where your cwm backups are stored
The folder 0 is default android user sdcard and is where /sdcard is mounted to
For your example.
Start > my computer > nexus 4 > internal storage
Make a new folder called Com.MyApp.001
Open folder
Paste MyFile.x
That will put the file at /sdcard/Com.MyApp.001/MyFile.x
Sent from my Nexus 4 using xda app-developers app

[Q] Write (download) to internal storage?

Total noob here. I did the CM 10.1 and gapps (the proper version). All -seems- to work well except it doesn't appear that I can download anything to the internal storage even though there's about 800MB available (according to the Settings).
Example 1: I installed the DropBox app and it tells me I have to use an external SD card. Doesn't seem to be any way around this.
Example 2: I installed an eBook reader named "UB" and, when I ask for it to download the user guide (the link to it appears within the app in my bookshelf), the app advises that I don't have an external SD card (which is true).
I'm wondering if this sort of mod (Android overwriting the stock B&N Nook Color software) means that I can't use the internal storage. Is this normal? If so, I can live with that as a microSD card is cheap and has much more space. I'm just an inquiring mind that wants to know.
If there's some sort of setting that I've missed—remember, this is my first Android device—I'd appreciate a pointer.
By the way, it appears as though the old method of side-loading my non-drm'd epubs isn't available. Is there an app for this? IOW: How would I turn on filesharing or have the device mount when plugged into my Mac or access a shared folder -on- my Mac? (I can enable SMB on my Mac if necessary.) I imagine I can use a microSD and simply use ana adapter to get it mounted on my Mac if all else fails.
Thanks in advance for any assistance.
Barry
rumplestilts said:
Total noob here. I did the CM 10.1 and gapps (the proper version). All -seems- to work well except it doesn't appear that I can download anything to the internal storage even though there's about 800MB available (according to the Settings).
Example 1: I installed the DropBox app and it tells me I have to use an external SD card. Doesn't seem to be any way around this.
Example 2: I installed an eBook reader named "UB" and, when I ask for it to download the user guide (the link to it appears within the app in my bookshelf), the app advises that I don't have an external SD card (which is true).
I'm wondering if this sort of mod (Android overwriting the stock B&N Nook Color software) means that I can't use the internal storage. Is this normal? If so, I can live with that as a microSD card is cheap and has much more space. I'm just an inquiring mind that wants to know.
If there's some sort of setting that I've missed—remember, this is my first Android device—I'd appreciate a pointer.
By the way, it appears as though the old method of side-loading my non-drm'd epubs isn't available. Is there an app for this? IOW: How would I turn on filesharing or have the device mount when plugged into my Mac or access a shared folder -on- my Mac? (I can enable SMB on my Mac if necessary.) I imagine I can use a microSD and simply use ana adapter to get it mounted on my Mac if all else fails.
Thanks in advance for any assistance.
Barry
Click to expand...
Click to collapse
You need to swap sdcards so that it considers your internal sdcard as your external sdcard. Go to my NC Tips thread linked in my signature and read item A16.
Sent from my BN NookHD+ using XDA Premium HD app
leapinlar said:
You need to swap sdcards so that it considers your internal sdcard as your external sdcard. Go to my NC Tips thread linked in my signature and read item A16.
Click to expand...
Click to collapse
Tried the first suggestion in A16 (adding that one line of code) but, after a power-off / remove card / power-on, UB and Dropbox complain about not having a card.
Frankly, as long as the apps I install go to the internal storage (and they do), I don't mind leaving the SD card in place. An extra 16GB is a good thing.
Next up is finding an app that restores the original "mount as external HD when plugging in to Mac with USB cable" feature that was present in the original NC software.
Thanks,
Barry

MM & Formatting an SD card as internal storage

Hi!,
I have a 16gb Moto X Style with a decently fast 64GBs sd card and have it formatted as internal memory (mostly so I can put all my spotify music on it without having to deal with workarounds on the ****ty app). Everything works great and I'm quite happy and all that but I've been having issues with transferring stuff back and forth between my computer and my phone from day one and want to know if it's common or if I'm doing something wrong.
My issues are this:
If I connect the phone to my computer via USB Windows recognizes it but I can't browse it's content. It's empty.
If I use an app like ES File Explorer to transfer files through wifi I can save stuff and browse it on the phone but if I transfer a rom and then boot to TWRP it's not accessible.
TWRP can't make nandroid backups at all.
Are all those side effects of the sd card being encrypted? Am I doing something wrong?.
Change USB mode to mtp
Sent from my XT1575 using Tapatalk
I'm having the exact same problem. I too formatted my 64gig sdcard and can not make back ups. I get error code 5 in twrp, unable to create back up folder. I also can't browse some folders, I use fx file explorer and when I open some folders they say access denied. I have given the app permissions as well. If anyone can help it'd be much appreciated!
Haven't figured it out yet. Also can not install busybox using any of the install locations

[Q] OTG Cardreader's root Location in Rootbrowser?

I got a otg-cable which has a USB port and a SD/micro SD card slot. It works fine (I can browse files when tapping on notification icon, card is empty/formatted), however, does anyone know where it's root folder is located? I can't find it with rootbrowser or root explorer.
Tried /mnt/ but there's nothing related, not even ext-sd, only the usual SDCard (internal storage), and i tried most other folders, just can't find it...
I want to backup my flashable (ROM) files from internal to my SD card without the need for a PC (which i currently don't have).
I'm using CM13.0 Snapshot on a G2-d802
anyone??
Just a thought: If the drive is indeed mounted and accessible, you could try the "df" command in Terminal Emulator to see a list of partitions and their mount points.
I have already found it. Apperantly i did not get through all folders in "/mnt". It's root-folder is located at "/mnt/media_rw/XXXX-XXXX/". I'm not sure how i messed that the first few times.
Thanks for your reply though, at least you took the time to actually make one

Categories

Resources