yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] aguaz:
yes, nothing really changes except that the data partition will then be on the sdcard. The size of it is only limited by the size of your card.

As mentioned in the other thread I still use a small partition on sdcard for the "external" sdcard. Android usually tries to automount the first partition on the sdcard as "external" sdcard. So I chose to have data on the 2nd partition.

I doubt that this really is necessary though. I assume vold will just give up trying to mount "external" sdcard after realizing the partition is already in use.

Generally, I don't think there is a need for an external sdcard.

You would need to flash a new boot.img onto it, because this image holds the fstab.qcom file, which needs to be edited to change the mount point of the data partition. Unfortunately it's triple packed:

cm-11-UNOFFICIAL-serranodsdd.zip

.....> boot.img

..........> initrd.img

...............> fstab.qcom

So it's not very straight forward, but the forum is full of info on how to do so. Keep in mind that your recovery.img has to be changed the same way in order for it to find the new data partition.

When formatting a data partition to be used for Android encryption, make sure the filesystem doesn't extend into the last 16 Kbytes of the partition where the crypto footer is kept. See https://community.freescale.com/docs/DOC-93753

Don't say that. Hit the button :)
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] hadage:
Alright, I'll have a look on that. I'm not absolutely sure if I'll be doing this, but thanks anyway. Helped me a lot :)
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] aguaz:
It's a bit of effort to set up, but in the long term it'll save you time not having to deal with additional tools. Plus you got ONE big storage instead of data fragmentation across several locations.

Good luck!
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] impactor:
[MENTION=5671827]aguaz[/MENTION],

That's some very interesting stuff you are writing about.

Few questions, if you will:

1. You say the fstab.qcom is tripple-packed. But if I use a tool like Android Kitchen or AIK to unpack the boot.img, it appears there's only one layer of packing.

2. why not mount the external SD card just as the /data/media/0/ instead of /data? This way, app-data is still kept on the internal memory, and we get even more free space on SD + faster read/write speeds for app-data.

3. What /dev/ are you using to mount the external?

Can you shed some light on that?

EDIT:

Ad. 1

I guess this is kind of irrelevant as doing it with the tools I'm using seems to work flawlessly.

Ad. 2 and 3.

I did in fact manage to mount the sdcard just as a subfolder /data/media/0/ while leaving all the remaining /data on the internal storage, and from brief testing on an old SD card, it seemed to work fine

/dev/block/platform/msm_sdcc.3/mmcblk1p1	/data/media/0/	ext4 nosuid,nodev,noatime,noauto_da_alloc,journal_async_commit,errors=panic wait,check,encryptable=footer,length=-16384

Now, the question is how to tune those mount options for a SD card, and how would they change if I was to use F2FS instead of ext4, which would be the ultimate solution.
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] aguaz:
1) I'm not familiar with the tools you mention, but boot.img consists of both kernel & ramdisk images. The ramdisk image itself contains fstab etc.

Alternatively you could also try an init.d script to change fstab. Those scripts get executed before data and sdcard are mounted.

2) Did you keep the vold entry regarding the external card? If so, does it still get (additionally) mounted as external card?

The mount options are usually file system depended. So if file system is the same, you can use the same options as for internal flash partitions. I'd probably only change "errors=panic" into "errors=remount-ro" and remove "length=-16384" (deprecated).

I can't help you with f2fs mount options.

As the original question was about encrypting the card, let me add that stock encryption only works on partitions mounted as /data. So in your case that would not work.
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] impactor:
Thanks for the clarification.

I commented out the vold mount, so it does not get automounted. Moreover, I doubt it would mount anyway because AFAIK a device in linux can only be mounted once.

I do want to encrypt my phone, eventually.

Can you elaborate more on why a card mounted under /data/media/0/ would not get encrypted when /data is being encrypted?

Also, what happens to encrypted partition when I install a new ROM? Can it still be mounted (will the rom ask me for password), or is the data lost and device needs to be reencrypted each time new ROM is installed??
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] aguaz:
You can multi mount as long as you specify the same mount options. I imagine it's technically the same as bind mounts.

Actually it's not the /data directory tree which gets encrypted, but the whole file system of the underlying partition. Linked locations or external mount points are are not part of that file system, so they are not regarded.

Yes, Android checks the data partition for an encryption footer and if found will ask for a password. So as long as you don't wipe/format that partition even a freshly installed ROM is supposed to recognize it.
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] impactor:
I see. Are you aware whether it's possible to use cross-device virtual devices (like LVM vgroups or BTRFS raid options) on android?

Is it still the case (4.4 CM roms) that if encrypted, the password must be the same as screenlock AND you have to tape it every time you unlock the screen AND the screenlock cannot be pattern?

BTW, what SD card model/spec are you using on your device for mounting as /data?

---------- Post added at 10:13 AM ---------- Previous post was at 09:25 AM ----------

One more thing. The tool I have been using seems to have proglems with boot.img fot KitKat. Where can I find this abootimage, and what options/operators are you using while (de)compressing with gzip, cpio & abootimage?
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] aguaz:
I'm not sure. Android tends to make things complicated, but at the end it's still just Linux.

This is all by memory, but I think I might not be too far off:

- screenlock initially has to be either pin or pwd

- encryption password will be set the same as the current screenlock and cannot be changed once encrypted.

- screenlock however can be changed anytime.

- screenlock can also be completely removed by e.g. removing lock offline or installing a fresh ROM.

You can then choose whatever lock, or skip lock completely doh.

I believe I got a Transcend 64GB UHS. But the S4 Minis controller is probably hooked to a slow USB line anyway, so It does not achieve advertised sequencial speeds.
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] impactor:
Tis true, but it is quite gutted to achieve smaller footprint (among other reasons). Which is why, for example, we have so very few filesystems in kernels. I doubt getting LVM support is doable, but BTRFS should be less outlandish, as it's just a filesystem.

The thing is, hardly anyone here talks about it, which is strange as it offers features that scream "AWESOME" for uses in mobile phones - for example with transparent data compression: on an old HDD with interface capped at 50MB/s, I am able to reach transfers of up to 600MB/s with BTRFS. Imagine how that'd change the performance of internal memory and SD card in the phone...

Now, this is interesting, because that would mean there were some serious changes since JellyBean 4.1.

See this bug: https://code.google.com/p/android/issues/detail?id=29468

Its status is still "NEW" instead of "Closed", so I wonder if anything has been done about it. If I had to type in the pin every time I unlock the screen, that would make encryption unusable for me due to practicality.

UHS speeds are not achievable for mobile phones, but there is a difference in speed between various UHS-1 cards when used in such devices.

Right now I have SanDisk Ultra, but I've been digging around and decided this would be the option, especially if I have to use it as /data mountpoint: http://www.amazon.com/Samsung-Electronics-Adapter-MB-MP64DA-AM/dp/B00IVPU7AO#customerReviews

By the way: The tool I have been using for operations on boot.img seems to have proglems with boot.img fot KitKat. Where can I find this abootimage, and what options/operators are you using while (de)compressing with gzip, cpio & abootimage?
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] aguaz:
As mentioned above Android (I'm speaking for kitkat) lets you change the screenlocks pwd / pin after encryption. So the lock eventually can become independent of the pwd you enter for encryption at boot. If you want to use another kind of screenlock or remove it alltogether you can e.g. replace it offline or make a fresh ROM installation.

It's called abootimg, I've corrected that. All those tools are generally included in your distribution, so you can easily install them with the package manager.

unpacking ramdisk

$ abootimg -x boot.img
$ mkdir ramdisk && cd ramdisk
$ cat ../initrd.img | gunzip | cpio -idv

repacking boot.img

$ find . | cpio -o -H newc | gzip > ../initrd.img
$ cd ..
$ abootimg --create boot.img -f bootimg.cfg -k zImage -r initrd.img
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] impactor:
Thanks. I have another problem, though. Whatever changes I make to fstab, they are being ignored by KitKat. Here's the details: http://xdaforums.com/android/help/wrong-fstab-qcom-kitkat-changes-effect-t2898184

Do you know what might be causing it?
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] impactor:
Something occurred to me. Later on, you said to drop the "length=-16384" from mount options. Is it the same thing as the above? If so, then is it no longer necessary to leave the extra space?
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] aguaz:
I can't recall why the mount flag was removed from CM. I expect the footer to be still in use though.

Run logcat via adb then start encryption for error messages.
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] aguaz:
No sign of lvm, but btrfs is in the official samsung kernel sources.

Technically it should even work with encryption since the file system is on top of dm-crypt. But then again, it's Androids implementation...
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] impactor:
Interesting. But still, it needs kernel module for BTRFS, and judging from the rarity of F2FS kernels, I am extremely doubtful we will get BTRFS one anytime soon, unless we compile it ourselves.

On the subject of encryption - I think I found a way to encrypt the external SD card mounted on /data/media/0 independently on /data encryption:

http://www.guyrutenberg.com/2012/06...isk-encryption/comment-page-1/#comment-357674

Read the comment from January 14, 2013 at 05:28.
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] aguaz:
Obviousely someone has to do it. But if nobody would do stuff like that there was no xda and we all use stock ROMs

Yes, but this approach uses luks, another variant of dm-crypt used in stock encryption. There is nothing wrong with luks, in fact it'd be desirable if stock used luks as it is the de facto standard.

But as it's not the standard in Android a few downsides come to mind:

- requires 3rd party app/tool

- luks is not supported by recovery

- is that a plain text password in the init.d script!? If true you might as well skip encryption altogether.

Another approach could be:

- temporarily use sdcard as data just to encrypt it

- change again to desired mount point via fstab with "wait,check,encryptable=footer" options

- find out whether Android is smart enough to ask for password and mount it (even if it's not used for /data anymore)

Keep in mind that by hanging the sdcard in /data/media/0 most stuff gets written on the card anyway, so internal /data would not be of great use.

There is other good stuff you can do with it.
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] impactor:
I'll look into it more when I get some spare time. In the meantime, a quick comment:

Except that autodecrypting-automounting init.d script is on the encrypted /system partition, which means to access it you must first encrypt the standard android encryption.

I do the very same thing on my laptop which automounts other encrypted disks once the main LUKS password for root SSD is provided.
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] aguaz:
How to encrypt /system?
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] impactor:
Doesn't standard android encryption encrypt /system? If it doesn't then I suppose in init.d you can place a call for a script residing on /data
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] aguaz:
Stock encrypts only /data. init.d scripts get executed before /data is mounted.
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] impactor:
Then how about putting this in an init.d script?

sh -c "sleep 8 && /data/scripts/mountSD.sh" &
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] aguaz:
That most likely sets the whole init process to sleep. I believe you would need to separate it from the init.d script eg with nohup
[Galaxy S 4 Mini Q&A, Help & Troubleshooting] impactor:
Not exactly. This would delay execution of that single line, while everything else would continue normally.
[LG Optimus 4X HD] mo_oin:
hi everyone,

i'd like to use the iodiak v10 kernel because it has the usb to go feature.

I need this feature to build a module for the pcan-usb-adapter. i need it for my bachelor's degree.

i updated my stock p-880 to cm 10.1.3 stable cause the stock system lagged horribly.

it worked without any problems. but after that i tried to install the iodiakx3_v10_cm kernel and it stuck on the lg logo so i switched back to cm kernel.

i alwas wiped all the caches.

since i cant write in the suitable developer thread, i hope i get here some help.

thanks in advance

ray
[LG Optimus 4X HD] Adam77Root:
If it was for my degree, I'd get a real OTG-supporting device. What we have here is a hack and it's not stable enough IMO.
[LG Optimus 4X HD] mo_oin:
well it's worth a try ... if it's working i'd be happy because i can save money and i dont have to wait until the company provides me with one (this takes time and i have only 1/2 semester to finish it :( ).

the problem is, there are no reports on the original kernel thread that v10 has installing issues so i assume only i do something wrong.

initially i wanted to use EternityProject Kernel 3.4.37 but sadly its dead.
[LG Optimus 4X HD] Flying_Bear:
Consider upgrading to cm11 nightly
[LG Optimus 4X HD] mo_oin:
well i did it and it worked. :D so thx !

i installed the nightly +gapps and after that iodak.

but in kernel version it showes 3.1.10-cm and not iodak. so how do i verify hes using the iodak kernel?

at the adb shell uname -r shows only 3.1.10-cm.
[LG Optimus 4X HD] Flying_Bear:
ivan@ubuntu means iodak's kernel is installed ;)
[LG Optimus 4X HD] mo_oin:
awesome thanks!

but why doesn't work otg ?

its kind of confusing

point 1 makes total sense but 2 - 4 is confusing

i wrote a 1 in the file while the phone was connected to pc usb. for a short second it disconnects the handy and connects it again.

after that i connect via otg cable a normal microsoft wheel mouse optical (super fancy ;) ) and nothing happens, no light from the mouse or else, same from a cherry keyboard or usb stick.

even with a powered usb hub between otg cable and mouse nothing happens. :(

do i have to use a certain app / programm ?

or have i done something wrong? kind of confusing....
[LG Optimus 4X HD] Adam77Root:
I suggest to try it out without connected to PC. It could confuse the whole operation.

Yes, you need a USB Y-cable with external power support. After it you can disable external power, but it is needed in the first place.
[LG Optimus 4X HD] Flying_Bear:
i've used otg with y usb host cable and it worked.

this is short summary:

1. have your phone with you but not connected to charger

2. change the line from 0 to 1

3. plug in charger, and unplug it

4. plug in your otg y cable, and then plug in your mouse/usb stick*

5. plug in the y cable into computer/charger

6. unplug it after you confirm the mouse/stick working

*

in case of using usb stick, you gotta mount the storage after you plug it in. there are several apps that should be able to do this on the market, so check them out (i used stickmount)
[LG Optimus 4X HD] mo_oin:
thanks both of u.

today i learned USB Y-Cable != Powered USB Hub. :D

i tought the outcome of both solutions would be the same but i was wrong (a work mate explaind it in short to me).

i guess i cant hide myself of reading the otg specifications. :(

i made a usb y-cable myself and tried the steps with it but it also didn't want to function.

i wanted to provide pictures of my selfmade cable but it seems the pictures are corrupt :( (cant transfer them from handy to comp, i try it later again).

just to make shure i did it the right way.

here in short what i did:

- opend carefully a usb extension without damaging the small wires in it.

- soldered a male usb plug to : shield, red, black ( didnt do anything to white & green).

- no wire or shield of the extension were cut trough, only carefully opend.

i tested it so far only with a mouse & keyboard, but the usb stick will soon follow.

maybe there are issues with the cm-nightly ? -just a guess-

but i will later try Flying_Bear's steps to make shure i didnt miss smthing.
[LG Optimus 4X HD] mo_oin:
here the pictures

http://imgur.com/xuAEdii

http://imgur.com/yQcRnMz

http://imgur.com/id4gnxJ

http://imgur.com/zbNvTQf
[LG Optimus 4X HD] mo_oin:
tried it yesterday and it didnt work... tried it today and it worked perfectly with mouse and keyboard !

so thanks alot !!! :D

now starts the real work O_o
[XDA Assist] L04D3R:
Hi !

I have installed CyanogenMod 11 on my Sony Xperia Z (version by FreeXperia build 327) but i have a problem : sometimes, when i listen music or watch a movie, the sound "saturate", it is like a "crackling" during 1 second.

It is a bit disturbing, it seems the sound is too "powerful".

Have you a solution for me ?

Thanks you in advance.

And sorry for my approximately english.
[XDA Assist] It_ler:
I could not find a thread directly related to your issue.

But here is the Xperia Z General forum, and here you find the {Z}[DEVELOPMENT] - CM11 - Android 4.4 - FreeXperia Project thread.

If you can't find a solution there, you can ask your question in the Xperia Z Q&A, Help & Troubleshooting section.

There you can also find the [HELP THREAD] Xperia Z | Ask any question | Noob friendly thread.

I think that's the best place for you to get quick and proper help.
[Android Apps and Games] Waexu:
Need help with your homework? Are you stuck with your assignment? Looking for an essay writing help? This app will help you to get a free quote for your essay paper of homework assistance.

Google Play link

1. Just take a picture of your homework task OR copy-paste it OR upload files from your phone.

2. Add some additional details.

3. Send it to us!

That's it! During the next 15 minutes you'll get a free quote and our support-manager will contact you with all the details.

Save time by using our app rather spend it searching endlessly for an essay writing companies and comparing prices!

We have hundreds of writing experts from the USA, Great Britain, Australia, and Canada that will help you with your homework of any level and on any topic!

* No disclosure of any personal information.

* Guarantee of privacy.

* 100% non-plagiarized papers.

Subjects we can help you with:

1) English, Grammar, Writing, ESL ESOL, Science Help;

2) Assistance in Essay writing and editing;

3) Science, Biology, Chemistry, Physics, Psychology Help;

Get the free quote for the homework help!
[Wing, P4350 General] Lucas0511:
HTC Tytn minus UMTS/3G, minus front camera, 17mm tick: Welcome HTC Herald. Polish PDA Club has a review with nice photos, for a warmup. Enjoy.

http://pdaclub.pl/view.php?news_id=12107
[Wing, P4350 General] TheBrit:
It looks nice but has that idiotic usb/audio combine connector on the bottom.
[Wing, P4350 General] lmf_slacker:
Dopod will launch it as C800 is asia
[Wing, P4350 General] szlevi:
It really sounds like the just-announced Cingular 8525 which everybody consider as a modified TyTn: front camera is gone... are we sure it isn't the 8525?

PS: http://laptopmag.com/Review/Cingular-8525.htm
[Wing, P4350 General] lmf_slacker:
no its not, we have the Cingular 8525 in Singapore n its Dopod 838pro whereas the HTC Herald is Dopod C800
[Wing, P4350 General] Lurker0:
Note, that TyTN's (and 8525) keyboard slides out from the left, but Herald's from the right.
[Wing, P4350 General] Lucas0511:
HTC will introduce it as the P4350, according to Mobile Review.
[Wing, P4350 General] tkao2025:
Looks like it's got a 200mhz processor...so is it going to be slower than the Tytn?
[Wing, P4350 General] Kag:
It is spring hinge not the old normal lousy hinge
[Wing, P4350 General] rdboyce:
Its got a similar processor to the Prophet. Even though the Prophet has a slower processor than the Magician, it runs much faster. I own both and speak from personal knowledge.

The TyTn and the Herald are completely different under the hood(or bonnet depending on your side of the pond). Slower processor does not equate to slower performance. Taking into account everything the TyTn is running, this may be a case of a Mustang(TyTn) vs. a crotch rocket(Herald).
[Wing, P4350 General] Inc:
Could someone move this Forum from "Upcoming" ? I DO have it in my hand right now ;-)

Martin
[Xperia SP Q&A, Help & Troubleshooting] Azene:
hey guys

im just gonna get suggestions from you all, the XSP users

is it valueable if i buy this XSP ? :confused:

coz im just fadeup with my XE :(

is XSP doing well in gaming ? :confused:
[Xperia SP Q&A, Help & Troubleshooting] JackHanAnLG:
The xperia SP is pretty old now, you'd probably benefit from getting a xperia Z as they're around the same price

J
[Xperia SP Q&A, Help & Troubleshooting] creepycow:
Dont get the SP for gaming multitouch issues will kill you

Sent from my C5303
[Xperia SP Q&A, Help & Troubleshooting] selmane24:
Noo..... Galaxy s3 is vary better than this stupidphone
[Xperia SP Q&A, Help & Troubleshooting] noahvt:
Are you kidding me? The xperia SP beats the s3 in every aspect the s3 has a slow exynos CPU and Mali 400 gpu
[Xperia SP Q&A, Help & Troubleshooting] xAD3r1ty:
Well, i actually never had any multitouch issues, i bought my SP 2 weeks ago so that hardware fault must be fixed already than the older xsp's ... And lol, even tho it's "old" (it's not even old cmon lol) it has a powerfull cpu and a great gpu (same hardware on moto x) that does completely fine at 720p... i'd say if you'r a gamer go for it as i bought for the same reasons
[Xperia SP Q&A, Help & Troubleshooting] noahvt:
Yeah I think there is a difference between the released xperia SP's Sony might have fixed small issues hardware wise and some stores might still be selling the older versions
[Xperia SP Q&A, Help & Troubleshooting] iScrappyKoKo:
SP does have this touch problem when it's charging..

but overall it's still an awesome mid-range phone
[Xperia SP Q&A, Help & Troubleshooting] codeknight11:
I would say a NO. Its outdated in terms of its life and wont get any updates in the future. Go for the Moto G which will get officially updated to Android L and maybe even the Android version after that.
[Xperia SP Q&A, Help & Troubleshooting] xAD3r1ty:
Let's just make it this way, if you want a phone for it's specs go for sp, if you care for android updates moto g, Both are awesome and you can't go wrong with either
[Xperia SP Q&A, Help & Troubleshooting] ireaper4592:
same here never had any problems and i had mine not long after release date and still go well:laugh:
[Xperia SP Q&A, Help & Troubleshooting] creepycow:
Maybe its just unlucky me haha

Sent from my C5303
[Galaxy Note 3 Neo Q&A, Help & Troubleshooting] mynameisjj_:
My Note 3 Neo, Shut downs by itself sometimes while it is charging. Could someone help me with this?
[Galaxy Note 3 Neo Q&A, Help & Troubleshooting] Souron29:
Have you modified anything? (rooted?)