User-agent: Mediapartners-Google Disallow: User-agent: * Disallow: /search Allow: / Sitemap: http://nano7mobile.blogspot.com/sitemap.xml Nano Mobile: external
Affichage des articles dont le libellé est external. Afficher tous les articles
Affichage des articles dont le libellé est external. Afficher tous les articles

External SD Card permissions topic






Hi All,

I am having issues being able to use files i have stored on my Ext SD Card. The problem started after flashing back to VenomRom from Skydragon Lollipop. I can read and write to the card fine but some (not all) files are no longer readable by the phone or by my windows PC if I copy the file to my desktop. This also effected some back ups I might prior to make the move back to Venom.

Any ideas on what has happened here or how to fix? I'm guessing its a permissions thing?






How to change keyboard input on external keyboard? topic






I got a Lenovo N5902A today, so far very impressed,apart from the fact it is a German layout because I live in Germany and the input is US. so some keys are incorrect. Anyone know how to change it?
I have tried a few apps, they don't work though.
Any help would be appreciated
Thanks
Thilly1






[Q] Non root write to external sd Lollipop? topic






Just done an OTA update to Android 5 on my UK sim free Lg G3 but I am still unable to move files from internal SD to external SD.

Have a lot of downloads that are taking up space and tried to use ES file manager to move a video to my 64GB micro SD card and it failed.

I thought Lollipop returned the use of the external SD card?

Don't want to root the G3 because the banking apps will stop working.

What should I do?






external sd error topic






Friends i have note 2 dn4 v2 my ex-sd auto mount and dismount and unexpectdly removed please help me fix this issue :crying:






[Q] External USB HDD topic






I just bought a 1TB Toshiba Stor.E Canvio. Does anyone have any experience with it along the Tab S? Well it work with a OTG cable?






GPE 5.0.1 External SD write permission help topic






I have a GPE converted M8 which has lost write access to the external SD since upgrading from KK. I'm running the RUU conversion with root, will a custom kernal sort me out or can i change some system files? I'm looking to just get titanium backup writing to the sd mostly

Thanks






Sound only through external speaker topic






Hi,

As of today - my phone will only play sound through the external speaker. Calls play through it, and music plays through it.
The phone detects that head phones are connected/disconnected just fine, and the internal speaker was working for calls yesterday. I have no idea WTF is going on, haven't changed anything.

Updated the kernel from .108 to .157 in case it was a known bug - fixed nothing.

Is there anyone who might know what is going on??

Col.






[Q] Firetv STICK external USB topic






I recently got a Firetv Stick. I tried loading Kodi on it but when I stream from my NAS, the stick buffers every few seconds. I tried changing "Video Cache Buffering" via the firetv utility app nothing changes. So I want to try something else.
Is there a USB hub out there that is powered enough to support the firetv stick AND I can plug my external HDD into that the stick will see?






Move all your internal and external data on encrypted, external SD topic






Disclaimer:

THIS TUTORIAL IS PROVIDED ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL I
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS TUTORIAL, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.


Motivation and idea

Starting with Android 3.x, the system theoretically supports encrypting the personal data on your device. But this has several caveats:

- it turns out that AOSP only supports encrypting /data, leaving other personal data (e.g. your pictures or storage from varios messengers) completely unencrypted on internal (emulated) or external SD storage.
- ever since, the partitioning of /data to a small, limited area leads to "no space left" issues (that's why many people go for app2sd etc.)
- in case your device suffers from physical damage, you usually loose all data you didn't backup previously.
- in case you want to sell or dispose your broken device you never know who will get access to your data anywhere in the future.
- securely wiping flash memory is complicated due to the fact that many controllers do not let you access their trim areas. Having built-in flash makes the situation even worse, especially because almost no manufacturer provides even a "manufacturer-declared-secure" wiping method - unlike some SSD drive vendors.

In this tutorial I will describe how I managed to move all personal data (probably excluding cached data, but this could be enhanced) to my external microSD card, overcoming these issues at the expense of a few drawbacks:

- (micro)SD cards are usually much slower than internal flash: boot time is about 2x slower and some apps feels a little slower, though not sluggish
- the mod requires root
- on most devices the mod also requires a modified boot image (due to change in initial RAM disk)
- it's pretty complicated to set it up (but following this guide can save you many efforts I already invested)

Although this is more a proof-of-concept, I have been running this setup for a couple of days now as my daily driver without significant issues. I had some force-closes in Firefox, but I don't relate them to this mod and other browsers seem to work fine.

Enough said, let's get to work and move all personal data to your external SD card!

CURRENTLY, THIS GUIDE IS TARGETED AT ADVANCED USERS / DEVELOPERS / EXPERTS AND THUS ONLY COVERS THE ESSENTIAL BASICS, NOT THE DETAILS!

FOLLOWING THE PROCESS, YOU WILL LOOSE ALL YOUR PERSONAL DATA ON YOUR DEVICE! MAKE BACKUPS FIRST!!!


Compatibility

The tutorial is based on OmniROM 4.4 and TWRP. With not too much effort, it could be adopted to earlier Android Versions based on AOSP 4.0, probably even 3.0. (most likely, the location and internal layout of some configuration files will vary). Please note that I tried it only on one device, your milage may vary!


Step 1: Find out your partition layout

First off, you need to find out which devices are used for holding which data partitions. You can play around with "mount" or simply look in your fstab files which are located in /fstab.vendor in KK. While in some cases the devices are listed i.e. "by-name", the fstab files of custom recoveries often list the "real" device names. I.e. on my Xperia V they are as follows:



Code:


Internal Data partition: /dev/block/platform/msm_sdcc.1/by-name/Userdata
Internal, emulated SD card: /dev/block/mmcblk0p15
First partition of external SD card: /dev/block/mmcblk1p1


Step 2: Encrypt internal data

After backing up everything, run the usual Android encryption process so your data partition (in this case: /dev/block/platform/msm_sdcc.1/by-name/Userdata) will be encrypted by means of standard 128bit AES Android encryption.

Step 3: Extract the cryptofooter

Boot into TWRP recovery (don't unlock your /data if prompted!) and connect via ADB as root. Usually, the crypto footer is stored in the last 16384 bytes of your partition (but check your fstab to be sure). Now determine the size of your partition with:


Code:


fdisk -l /dev/block/platform/msm_sdcc.1/by-name/Userdata

In my case:


Code:


Disk Userdata: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders, total 4194304 sectors
Units = sectors of 1 * 512 = 512 bytes
...


In my case, the size is 2147483648 bytes. Subtracting 16384 bytes, you know the starting offset for the extraction. Now extract the footer using dd:


Code:


dd if=/dev/block/platform/msm_sdcc.1/by-name/Userdata of=/cryptofooter bs=1 seek=2147467264 count=16384

Please note, that due to a limitation in dd which supports only up to 2GB this may file - you will need a modified busybox dd command in this case - or just download the file to your UNIX machine and use the normal dd from there.


Step 4: Prepare the external SD card:

We de not want to partition the SDcard, thus we will not put any partition table on it. Nevertheless, we need to determine its exact size using fdisk:


Code:


fdisk -l /dev/block/mmcblk1p1

Disk mmcblk1: 31.9 GB, 31914983424 bytes
255 heads, 63 sectors/track, 3880 cylinders, total 62333952 sectors
Units = sectors of 1 * 512 = 512 bytes
...


Again, subtract the 16384 bytes from 31914983424 and use dd to write the cryptofooter on the end of SD:


Code:


dd if=/cryptofooter of=/dev/block/mmcblk1= bs=1 skip=31914967040 count=16384

Again, this might fail due to dd limitations.

For later testing, we copy over the existing (encrypted) data partition to the SD card:


Code:


dd if=/dev/block/platform/msm_sdcc.1/by-name/Userdata of=/dev/block/mmcblk1p1

Finally, we can wipe the internal data partition:


Code:


dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/Userdata


Step 5: Modifying fstab and init files:

Now we will need to modify the fstab files and init so they will reflect the new layout. On most devices, this requires compiling a new rootfs. This can be either done by uncompressing your boot.img, making the changes and recompressing it or recompiling it from sources. The modified boot.img has to be flashed back to the device, usually via fastboot.

In particular, we need to tell Android not to use the internal userdata partition at all, to mount the emulated sd card as usual and to use the external storage for /data using an encrypted ext4 filesystem. In my case, the modified fstab.qcom looks like this:


Code:


/dev/block/mmcblk1    /data            ext4        noatime,nosuid,nodev,barrier=1,data=ordered,noauto_da_alloc  wait,check,encryptable=footer,length=-16384
/devices/platform/msm_sdcc.1/mmc_host/mmc0          auto              ext4        defaults                                                    voldmanaged=sdcard0:15,nonremovable,noemulatedsd
#/devices/platform/msm_sdcc.3/mmc_host/mmc1          auto              auto        defaults                                                    voldmanaged=sdcard1:auto
/devices/platform/msm_hsusb_host                    auto              auto        defaults                                                    voldmanaged=usbdisk:auto


You will also need to modify the twrp.fstab file accordingly.

We also need to modify init (in my case through sony.init.rc) to avoid getting the external sd card being treated as sdcard during boot by uncommenting the relevant lines:


Code:


    chmod 0701 /mnt/media_rw
    mkdir /storage 0775 system system
    mkdir /mnt/media_rw/sdcard0 0700 media_rw media_rw
#    mkdir /mnt/media_rw/sdcard1 0700 media_rw media_rw
    mkdir /mnt/media_rw/usbdisk 0700 media_rw media_rw
    mkdir /storage/sdcard0 0775 system system
#    mkdir /storage/sdcard1 0775 system system
    mkdir /storage/usbdisk 0775 system system

    export EXTERNAL_STORAGE /storage/sdcard0
#    export SECONDARY_STORAGE /storage/sdcard1

    # for backwards compatibility
    symlink /storage/sdcard0 /sdcard
    symlink /storage/sdcard0 /mnt/sdcard
#    symlink /storage/sdcard1 /ext_card
#    symlink /storage/sdcard1 /mnt/ext_card
    symlink /storage/usbdisk /usbdisk
    symlink /storage/usbdisk /mnt/usbdisk


Step 6: First booting test

With all this set up, we can now boot again into our system. It should ask you for your encryption password (it's the same as you've set it in step 2) and you should notice that it runs a little slower - because SD cards are usually slower than internal flash. You will notice that the size of the internal space and external storage has not changed - we will fix this in the next step.


Step 7: Tweak the cryptofooter and reformat the SD card:

Now comes the fun part: Android determines the size of encrypted filesystems not by information from the filesystem, but by the size as it is stored in the cryptofooter. Therefore, we need to modify the information there. The cryptofooter is a complicated mess. Luckily, there is a great guide which describes its structure much better than the source code itself:

http://nelenkov.blogspot.de/2014/10/revisiting-android-disk-encryption.html

You will need to use a hex editor to edit the from bytes between Offset 0000:0018 and 0000:001B to match the size of your SD card. But please leave enough bytes at the end, at least for the cryptofooter!

Write back your modified cryptofooter as outlined in step 4 and boot into TWRP. Unlock your /data (which is now served from SD), connect via ADB and check the size of your encrypted device using fdisk:


Code:


fdisk -l /dev/block/dm-0

It should reflect the size as you modded it in your cryptofooter. Now, reformat the partition so fills the whole space:


Code:


make_ext4fs /dev/block/dm-0


Step 8: Adjust internal SD.

Now, you are ready to reboot into your system serving its freshly wiped, encrypted data from your external SD! Be amazed by the space you now have for your internal Userdata! Unfortunately, it will still serve "internal SD" from internal flash. First, create a directory on the sdcard to hold it using a root shell:


Code:


# mkdir -p /data/sdcard0

I tried various things to fix this already in the boot process, but somehow vold always got in the way or the device was mounted too early. Also, the media server indexes the internal flash instead of the stuff on the external SD. Therefore, I bind-mount the sdcard0 after every boot and rerun the media server by running the following commands in a root shell:


Code:


# busybox mount -bind /data/sdcard0 /mnt/media_rw/sdcard0
# am broadcast -a android.intent.action.MEDIA_MOUNTED -d file:///storage/sdcard0


Now, you can copy back all your data from the backup to the device and enjoy your new setup!


Final notes:

- Suggestions for correctly mounting the sdcard0 inside data at boot time without the bind-mounting is warmly welcome.
- Some (Stock) ROMs allow you to encrypt both SD "cards", but the implementations I have seen so far seem to be vendor-specific and closed source. Although I noticed that encrypting internal SD seems to work with AOSP out-of-the-box on some devices without external SD (e.g. Nexus S) I didn't find any Custom ROM for my Xperia V which worked with encrypted any of the SDs when putting the "encryptable=sdcard" flag in the fstab file: The storage seems to have been encrypted, but Android simply fails to mount it.

XDA:DevDB Information
All data 2 encrypted, removable SD, Tool/Utility for the Android General

Contributors
Defier525, Defier525

Version Information
Status: Alpha

Created 2015-01-08
Last Updated 2015-01-07






External SD Not Showing All Available Free Space topic






My external SD card shows as
Total Space: 29.78 GB
Apps 466MB,
Pictures, videos 7.77GB
Audio 10.05GB
Downloads 651MB
Available 83.84MB
I really should have closer to ~10GB available. This just started happening today. Any ideas?






external webcam too dark topic






hi everybody, I need to use an external webcam on android device (android stick mk809III)

I use a logitech c270 (which I read is compatible as someone is using it), but the image is too dark (almost -2EV)

is there a way to tweak the signal in order to achieve this lost exposure in every app like camera and skype?

I tried on my samsung galaxy s5 and is correctly working...

thanks






Can't modify anything on my External SD Card topic






As the title says & I can't even save pictures to my SD card.

I'm running Android 5.0 via Cloudy G3 2.0. I didn't have this issue when I was stock I don't know if the problem is related to Cloudy G3 as I did adb push a file to my phone (moments before I installed the custom rom) and I have read that doing so messes up permissions regarding the SD Card.

I have done a Google search but nothing relevant is coming up regarding Android 5.0

I'd greatly appreciate it if help could be provided, thanks in advance!






[Q] External SD Reverting Changes on Reboot topic






Hi everyone. I've been dealing with this for a few days now and I can't seem to figure out what the problem is. I'm currently running Wicked S5 Xperience with PhilZ recovery and CWM bootloader. My permissions file is written appropriately to allow apps to write to the external SD, and I manually went into ES File Explorer and changed the permissions appropriately. I'll take a picture, it saves to my external. Ill create a folder on external and it sticks. When I reboot, the folder is gone and the pictures disappear. I've also deleted pictures from the external, and upon reboot they come back. I've unmounted the external when flashing the ROM. I've formatted my internal SD. I've flashed the permissions file, tried Play Store apps, and manually editing the permissions.xml. I can't, for the life of me, figure out why this is happening. It's like my phone is forgetting what happened on the external when I reboot...

Any input would be greatly appreciated! Thanks in advance!






[SOLVED] Cannot disable External SD Card Encryption under any circumstances... Why? topic






Solution at Bottom

I stupidly encrypted my SD Card. This resulted in slower startups as it always searches for errors, and notifies me that it's encrypted, plus it's slower to view, load and transfer any files associated/on the External Card.
Worst of all, for some reason I cannot disable the encryption. On my friend's phone she has the option under Settings > Security > Encrypt SD Card > Disable Encryption. I however, do not have that option and I have no idea why

Here is a picture of the screen I get instead:



I only have the option to change my screen lock type. When I go to do this and put my current password in, I get this:



All other forms of secure lock screens are disabled except for password.

I've googled around on the internet and I cannot find any answers for this problem.

I've tried:

1. Disabling everything that is set as a device administrator. Rebooting and seeing if I can disable External SD Card Encryption. > Didn't help at all.
2. Formatting the SD Card after taking the files off. > Encryption is still on and I cannot turn it off.

Whilst doing this I always made sure I had more than 80% of my battery on my phone.

Does anyone else have any ideas? It's really annoying to have to use a password all the time, it's a little excessive in addition to the huge performance hit I get when interacting with stuff on my External SD Card.

I'd happily /thank anyone who can help me out.

EDIT: I spent 3 days trying to work this out, and googling around. I then also had to put up with it for 10 days.
Simply to find that all I had to do, to get the option to disable the encryption and get all of my options for lock screens back again was just set a password WITH A NUMBER in it...
Then after that, the option to disable encryption appeared and voilá. Finally I get my fingerprint lock screen back and my External SD is Unencrypted...






Moto G 2014 - Encrypt external SD topic






I have a Moto G 2014. I have updated to 5.01. I can't find the option to encrypt the SD card. Is this possible? If not what are my alternatives?

Thanks.






Can't store external resources or create APK ready! topic






Hello! First of all sorry for my english.

So I've just learned how to create my Zooper Widget APK Template. So when i modify and export template everything looks good except that i can't store external resources or create apk zip ready file, its not possible to check that options even if i can save template. If i save template and open it again there aint any fonts or bitmaps, its only simple widget with standard font. I did put 1 number in my eclipse strings.xml file so that everyone can reserve template. Ive also tried to set it on 0 but that only gave me a message that author is not allowed to save template. Anyone have idea what I'm missing here ?

Thanks in advance!