yashsingh1/xdaforums huggingface dataset:
[Nexus 7 Accessories] jewnersey:
I am looking for a case for my moto bluetooth keyboard and have been struggling. has anyone else out there using a BT keyboard found a good sleeve/pouch type bag for theirs??

heres my kb

http://www.woot.com/offers/motorola-bluetooth-keyboard-2
[Galaxy Note 10.1 Android Development] andylam16:
Where to find premission? Please advice.
[Galaxy Note 10.1 Android Development] lm that guy:
use a root file browser then press and hold on the file, select permissions. Change to: Owner (rwx), group and other (rx)
[Galaxy Note 10.1 Android Development] kaipro:
My device doesn't have intI. D folder in system/Etc

I have to create new folder?

Rename the file without . Txt?
[Galaxy Note 10.1 Android Development] andylam16:
Thanks bro, is r = read , w = write , x = ???

Please advice.
[Galaxy Note 10.1 Android Development] lm that guy:
Execute

:p
[Galaxy Note 10.1 Android Development] andylam16:
Got it, thanks!:thumbup:
[Galaxy Note 10.1 Android Development] fauzin:
+1
[Galaxy Note 10.1 Android Development] lm that guy:
I suggest this thread: http://xdaforums.com/showthread.php?t=1883125
[Galaxy Note 10.1 Android Development] TweakerL:
Check link in my sig for my other thread where you can get the init.d enabler.
[Galaxy Note 10.1 Android Development] andylam16:
After did the procedure as mentioned nothing happened the apps still go to the scared not the external. Please advice anything I missed. Thanks

---------- Post added at 10:54 AM ---------- Previous post was at 10:12 AM ----------

One more thing there is a file "99testinit" inside the init.d , do I need to anything about it?
[Galaxy Note 10.1 Android Development] kaipro:
Exactly same as me.
[Galaxy Note 10.1 Android Development] TweakerL:
If you guys read everything, this is still an early version. At the moment, only /sdcard/Android is getting moved, which is the location that stores extra files downloaded by apps, not the apps themselves. If the script is running, you can go on terminal and type:

df -h

and you should see mmcblk1p2 (which is the ext4 partition in the MicroSD) and how much space is being used, which is the amount of space that should be getting saved from the internal storage. Also, if you look under storage under settings, the amount of space available should have increased considerably, specially if you have a lot of games.

I'll be working on the other two parts throughout this week (moving APK and DATA) Then you will be able to notice a bigger difference, although it will always look like apps are installed in the internal storage, even when they're in the external storage.

The reason for this is because the script works by mounting the external storage to:

/data/app (not yet implemented)

/data/data (not yet implemented)

/data/media/Android (already implemented)

while at the same time copying the contents of those locations from internal to external then wiping them from internal. Essentially when it's all said and done, the OS pretty much thinks that nothing has changed, except that whenever anything gets written to those folders it takes space from the external storage instead of internal.

A good way to test it would be to download a free gameloft game like MIB3 or Six Guns. Take a look at storage before installing. After you install MIB3, your available storage should drop by roughly 500MB, but if you're using the script, even at preview stage, the available storage will only drop by about 30MB, even though storage settings will say that the game takes up ~500MB.

Also, you can mount your normal data partition and take a look at how much space is being used there, as opposed to the external partition like this:

(All the following commands in terminal)

make sure which partition is mounted to /data

# mount

mount data to temp location (assuming data is mmcblk0p12)

# mount /dev/block/mmcblk0p12 /mnt/ext4/temp

check amount of space used in internal storage:

# du -dh /mnt/ext4/temp/media/Android

check amount of space used in external storage

# du -dh /mnt/ext4/data/Android

In the future I'll add to the script a way to automatically calculate the amount of space saved
[Galaxy Note 10.1 Android Development] htainlin:
The script itself is not working. Init.d is working, did rename the file and changed permission. I use script manger and try to run the script but it's got error,
[Galaxy Note 10.1 Android Development] TweakerL:
I'm gonna be uploading a new version soon with more debugging so I can see why people might have issues.

EDIT - Done updating OP
[Galaxy Note 10.1 Android Development] smaw51:
Is there any recommendations for the partition other than ext4, like swap size and what not? I also assume a reboot is required in order to get it to run right? I am still getting insufficient storage available when updating apps in the play store. I was getting that error before, even though I have plenty of space, like more than 10 gb on the internal memory so I don't know if it is just a batch update issue on the play store with my note for whatever reason. But even individual updates stop with an insufficient storage error.

I have tried using both the attached file in the op as well as the copy and paste method. The file should have no extension once in place right?

It seems as though it is still not working right

I have init.d working, confirmed with the test file and your method, Busybox installed, partitions with 0 swap and 1024 size at ext4

I have not been able to locate a log created, where is it dumped to to see if it is even running the script?

EDIT: never-mind, I figured out why my stuff was't updating but still able to add new apps, in rom tool box, I set it to install to sd card after most of my apps were already put on the internal memory. Just switched it to auto and it fixed it up
[Galaxy Note 10.1 Android Development] banderos101:
Had a similar problem when i had the tf201, kept getting an error whenever playstore started installing an app after the initial download, and i had the same problem a couple of days ago with the note which i resolved by deleting all odex files in the data\apps folder, i used es file explorer, navigated to the app folder and did a search for 'odex', then deleted them, i can now install apps again

Dont know if this is the same issue as yours , and ive just now seen your edit, so i see youve resolved it, so no worries, hopefully our solutions will help out others

Edit: dont quote me but my particular issue i 'think' has something to do with titanium backup, so for those having 'inssuficient storage errorr' in the playstore AND you have titanium backup, this may help
[Galaxy Note 10.1 Android Development] smaw51:
It might be a restore from backup in general issue, after you mention you used titanium. I used my backup pro to restore apps and data from my tf 700 to the my note. Only halfsies worked but maybe that caused some issues.

This is going to be very nice one apk and data are enabled to move to sd
[Galaxy Note 10.1 Android Development] fauzin:
how do I know that I have ext4 in my SDcard? and if I dont have it , How do I make ext4 ?

Thanks
[Galaxy Note 10.1 Android Development] mvrk69:
Hi, i've got and Galaxy S DUOS, which only has 1.8G of internal memory.

I've installed you script, but still says 1.8G total space.

Here are my mountpoints:

Filesystem Size Used Available Use% Mounted on

tmpfs 322.7M 84.0K 322.6M 0% /dev

tmpfs 322.7M 0 322.7M 0% /mnt/asec

tmpfs 322.7M 0 322.7M 0% /mnt/obb

/dev/block/mmcblk0p16

1.1G 836.4M 314.4M 73% /system

/dev/block/mmcblk0p25

1.8G 1.6G 190.9M 90% /data

/dev/block/mmcblk0p11

7.9M 4.0M 3.8M 51% /persist

/dev/block/mmcblk0p17

492.1M 8.2M 483.9M 2% /cache

/dev/block/mmcblk0p19

11.8M 4.1M 7.7M 35% /efs

/dev/fuse 1.8G 1.6G 190.9M 90% /mnt/sdcard

/dev/block/mmcblk0p25

1.8G 1.6G 190.9M 90% /mnt/temp/data

/dev/block/mmcblk1p2 12.6G 2.1G 9.9G 18% /mnt/sd-ext/data

/dev/block/mmcblk1p2 12.6G 2.1G 9.9G 18% /data/media/Android

/dev/block/mmcblk1p2 12.6G 2.1G 9.9G 18% /data/app

/dev/block/mmcblk1p2 12.6G 2.1G 9.9G 18% /data/media/Android

/dev/block/mmcblk1p2 12.6G 2.1G 9.9G 18% /data/app

/dev/block/mmcblk1p2 12.6G 2.1G 9.9G 18% /data/data

/dev/block/mmcblk1p2 12.6G 2.1G 9.9G 18% /data/data

/dev/block/vold/179:33

2.0G 44.0K 2.0G 0% /mnt/extSdCard

I need to have a lot of space on /mnt/sdcard because apps like ndrive puts the data on /mnt/sdcard.

Is there any way to mount /dev/block/mmcblk1p2 as ext4 on /mnt/sdcard ?

I've tried to put a script on init.d to mount it on /mnt/sdcard, but when i reboot allways mounts /dev/fuse as /mnt/sdcard :(
[Galaxy Note 10.1 Android Development] blz_phnx:
Doesn't work yet on older devices, as of now newer devices with /data/media only work
[Galaxy Note 10.1 Android Development] jonne.eklund:
Hi!

I'm trying to get this to work, but I get stuck after the first reboot with the same issue as a couple of other members here. No /sdcard/Tweaked.Scripts/A2SD/options/vars. Only install_vars.

Busybox, root/su and init.d/init.a is avaliable. Sdcard is a sandisk 64gb. It has two primary Partitions, one fat32 and one Ext4. Device is a SGN10.1 GT-N8000 running BakedRom.

How do I troubleshoot?

Thanks!
[Galaxy Note 10.1 Android Development] blz_phnx:
Wats ur device
[Galaxy Note 10.1 Android Development] jonne.eklund:
Ah, sorry. Updated my post. Its a Gnote 10.1 N8000.
[Galaxy Note 10.1 Android Development] jonne.eklund:
I'm just brainstorming here... Could it be an issue with the rom (BakedRom, based on 4.2.2)? I really like it but for the sake of troubleshooting I plan to install a rooted Stock rom (I think it's based on 4.1.2 sources).
[Galaxy Note 10.1 Android Development] blz_phnx:
Yea, the script written on an ICS build so it has to be rewritten to work on JB

Not necessarily the ROM but android version
[Galaxy Note 10.1 Android Development] jonne.eklund:
Ok, after some tinkering I finally got a stock rom flashed (4.1.2) and with it I don't get FukedupFS=true. The script looks like it do what it says, but after I set it to delete stuff and reboot, it seems to disable it self.

Very strange.
[Galaxy Note 10.1 Android Development] flippingout:
Just curious if development on this has stopped or if it is somewhere else. Seems like this solution and Zedomax's thread have both gone quiet. The one crappy part of this tablet is the storage issue and the lack of installing apps on the SD card. I have the 16Gb 8013 with a 64Gb card and using Zedomax's solution I ran out of space to install apps even though I have 39Gb left on the SD card.

Just checking because this is the one feature / capability this tablet is missing.
[Galaxy Note 10.1 Android Development] hectorviov:
Does this work on KitKat?
[Galaxy Note 10.1 Android Development] romabr:
Can this be done an android 4.1.2??? How sholuld i format a 64GB microSD??

I really want to run this script as My note10 have only 16GB and is almost full
[Galaxy Note 10.1 Android Development] romabr:
The script works perfectly... the only thing as good as having the apps in the SDcard would be transfer the Miscellaneous files ( specially the cloudagent ) when sync the dropbox with gallery, it uses a lot of internal space.
[Galaxy Note 10.1 Android Development] Karolis LTU:
Please welp!

i used your script the init.d and int.a was created and tweaked.script had device is ready and all other neded folders but apps still don't move in sd-card can you help me ask me any screenshot or any file from phone and i will send you it asap I'm rooted my device is SM-J320FN (SEB) 5.1.1
[Galaxy Note 10.1 Android Development] GermainZ:
MiniTool for both your questions.

I usually mount the SD Card via my phone then use MiniTool, but if that doesn't work, you'll need a microSD USB card reader.
[Galaxy Note 10.1 Android Development] ralphie1267:
This is Awesome Concept But until it's a lot easier to use and understand how it works I'll stay away. Sounds to advanced for the regular users (noobs) sounds like there is a lot of issues still. But I love the idea..
[Galaxy Note 10.1 Android Development] Small_town_boy:
hey there...i own a galaxy mini with cm7 running ...so can i use it...?

or is it only for gnote...?

i have a class4 sd card..:( so will i be experiencing any lag while using my apps...?

will it work on cm9 and cm10..(i think yes coz only int.d is needed right..?)

thanks for your work:)
[Galaxy Note 10.1 Android Development] gothicman02:
Just curious, but how does this compare to mount2sd? Also, has anyone tried the sd-ext partition past 1.5 GB with this script? Generally there are issues going past the 1.5 GB mark with mount2sd.

Thanks!
[Galaxy Note 10.1 Android Development] twoxx:
i used mounts2sd with a 3gb-partition.... no issues... it worked fine.........

with "mounts2sd" you can choose if you want to mount sd-ext as data and data as sd-ext ----- this is the "rmount"-option in the "mounts2sd"-installer.

or if you want to "move" apps, dalvik, cache and so on from internal to sd-ext like all the others "a2sd-scripts" are doing.....

the "super"-Script does the "rmount" too... like mounts2sd does -- if you chose that option.

personally... i would rather use mounts2sd than using this "super-Script"... mounts2sd is much much more stable, secure, faster.....

because... mounts2sd can disable "journal" on ext3/and ext4-partitions.... an that makes sd-card faster...

mounts2sd can set readahead- value of sd-card ... and that makes sd-card faster too....

mounts2sd can handle slow sd-cards... it waits with mounting until sd-card is ready....

and so on.... try mounts2sd... and your life will be easy :)
[Galaxy Note 10.1 Android Development] kmetek:
what about link2sd?

mounts2sd is RIP.
[Galaxy Note 10.1 Android Development] Joshmccullough:
You can do it in recovery (Amon Ra, Smelkus, CWM, TWRP, etc.). I use Smelkus, there's an option in there about formatting the SD card and then you chose the options to 'upgrade' to ext3 and then again to ext4.

Be careful: backup your SD card to your computer before you format or to get going on A2SD, it'll wipe your card. Move everything back to your card once it's formatted.
[Galaxy Note 10.1 Android Development] TweakerL:
#1 Like I said in OP, this is just a preview for what I'm working on...

So yea, atm it's definitely not stable, hence just a preview, though I've been able to have everything working from the SD card (data/app, data/data, and data/media/Android). However I've come across a bit of a wall because up until a couple of hours ago I couldn't get the mounts to take place early enough on boot to have things stay smooth.

However, I figured I can hijack an early binary to run the mounts pretty early and hence get the apps to be seen properly by the system. Will be posting results as soon as I have them.
[Galaxy Note 10.1 Android Development] YOSEFE:
Are you going to build this into an apk app?
[Galaxy Note 10.1 Android Development] sharpeyedman:
This init.d looks so promising. I REALLY APPRECIATE WHAT YOU ARE DOING. Thank you:)

I am looking forward this ^ ^
[Galaxy Note 10.1 Android Development] twoxx:
mounts2sd rulz !!!..... link2sd is rubbish
[Galaxy Note 10.1 Android Development] TweakerL:
For those of you making comparisons between what I'm doing and what people have done before:

I currently have every single user app running from external storage, including launchers, keyboard and widgets...

I've got the script fully working now, just working on the best way to integrate it into people's devices without creating havoc

Here's a couple of screenshots:
[Galaxy Note 10.1 Android Development] smaw51:
Looking forward to it!
[Galaxy Note 10.1 Android Development] smaw51:
I just got everything set up according to your directions. The trickiest part about it was getting the /data file in place properly. I was originally using rom toolbox pro to try to get it but wasn't showing anything in the data folder on my tablet, checked setting for an option to remedy this, couldn't find any, so I switched to ES Explorer, found the root access setting, applied and then was able to view everything and get everything in place. The boot time was about the same as usual which I thought was a bit odd. I checked the storage in settings to see if any different, nothing. So I checked everything again to make sure I had the permissions right, but found the /data/ folder wasn't copied over right so I fixed that.

I then rebooted, and checked the storage in settings, still the same, remembered that it didn't show the partition and that delete after move was disabled, so I set to true to see if that would make a difference, but it didn't.

So far it looks like it is not working for me. I will continue to play around with this until it looks like it is working right.
[Galaxy Note 10.1 Android Development] 1966CAH:
Nexus 7

This looks like a promising tool. If it ever supports the Nexus 7/Stickmount scenario I would buy it in a heartbeat! Hope it takes off in a big way for you...
[Galaxy Note 10.1 Android Development] lhrt:
Galaxy Tab2 7"

Is there any chance this support Galaxy Tab2 7" GT-P3113?
[Galaxy Note 10.1 Android Development] TweakerL:
Go into terminal and type

cat /init.rc | grep "debuggerd"

If it returns something like

service debuggerd /system/bin/debuggerd

the device is most likely supported.

Same as the guy above, just tell me how the "stickmount" is shown in the device (aka /dev/block/mmcblkXpX) and I'll put together a modified version that applies for it. Also pastebin the output for

mount

from terminal.
[Galaxy Note 10.1 Android Development] TweakerL:
The file that goes in /data can also go in /sdcard/Tweaked.Scripts/A2SD/options (/data/media and /sdcard are essentially the same thing for this purpose)

Here's the steps I would take:

Go to /sdcard/Tweaked.Scripts/A2SD/options and make sure that if you have a file called "vars," delete it!

Open rom toolbox or something like that can run scripts, and run the 01earlymounts script from init.a, this will setup the "premounts" for you to be able to copy your stuff over

Still in rom toolbox, run 01a2sd from init.d and this will copy all your files over in the structure that it needs to be for it to work as well as trigger the "propermounts" for the next time that 01earlymounts is run

Run 01earlymounts again, and now that the propermounts are enabled, it should bind the external storage over the internal storage and everything should be running from external.

Very important thing to note though, when it comes for this stuff running on boot it's just as important that the folders have the right permissions as the files, namely the folders init.a and init.d, if they don't have the right permissions, the files in them will not run even if the files themselves have the right permissions

It looks like you're really interested in this, and if you'd like, and if you don't mind going on irc, it would be a whole lot easier to try and figure out what went wrong for your, and since it's early in getting this out, it would really benefit others in the future. You should be able to find me in freenode on #and-host, feel free to send me a PM if I don't respond quickly in the main channel (it's a new channel and we don't have a lot of traffic there yet).
[Galaxy Note 10.1 Android Development] lorenzo_btbw:
/system/bin/sh: cat: /init.rc: permission denied

done with p3110 running cm10 (latest)

I wrong in something?

thanks
[Galaxy Note 10.1 Android Development] TweakerL:
Gotta run as root, use the command

su

before the cat command
[Galaxy Note 10.1 Android Development] El Ha$on:
i ran this command and a lot more stuff return after running command, but i scrolled through everything that was returned i did see:

service debuggerd /system/bin/debuggerd
class main

I have attached the whole file just in case.
[Galaxy Note 10.1 Android Development] smaw51:
I tried this, it still didn't work for some reason. I checked the permissions again on all the files and folders, all still good at 755.

I looked into the irc thing to message you, but I am not familiar with how it works or what it is exactly yet other than internet relay chat. I will look into it later today when I have some more time.

I am guessing the boot time should take longer than normal on the first reboot correct?

Also, the first and second time I run 01earlymounts I get an exit value of 0, is this normal? With 01a2sd I get an exit value of 127

Thanks for your help dude

EDIT: Also, what rom are you on? I am on just the stock rooted
[Galaxy Note 10.1 Android Development] TweakerL:
I'm also on stock rooted; as for the boot time, it should be the same. Download the latest attachment as there was a typo on the one I uploaded yesterday, though the typo wouldn't keep the script from running. Also very important, did you set ENABLED='true' in USER_OPTIONS? The script will not run at all otherwise.

Just to expand on the boot time, on the first run it will look like nothing happened because the script will start copying all your stuff after boot is completed. Then on second boot the bind mounts will happen and the stuff will be running from external storage. Another important thing is that your MicroSD has to have a second partition formatted to EXT4 or the script will not run. I might remove that restriction in the future after further tests but that's how it is now.

As for using irc, you can just google for a free irc client, install it and pretty much all of them will have the freenode network already built in. Just connect to freenode and use the command

/join #and-host

and you'll be in the channel.

You're also welcome to use the shoutbox on my website (address in my sig) though there's no way for me to see that a message got sent unless I'm looking at it. I'm also connected to every IM service out there if you use those (Live messenger, Gtalk, Yahoo messenger, AIM, Steam, teamspeak, ICQ) the only places you'll never find me on are facebook and tweeter because they're just dumb.

So long as your device has the debuggerd service AND you have a microSD with a second partition formatted to EXT4 and it gets mounted to /dev/block/mmcblk1p2 the script should work without any modification.
[Galaxy Note 10.1 Android Development] smaw51:
I keep getting a failed to copy error and for some reason am not able to change the permissions. I'll be able to look more into this in a few hours
[Galaxy Note 10.1 Android Development] TweakerL:
Did you get failed to copy with the install script that I put together? If so, make sure that you're navigating to the location where you extract the files before executing the script. It has to be executed from its folder or it will not work. If not, then it's probably because the Note is finicky about writing to system, at least on my own experience in terminal. You have to daisy chain all the commands into one that ends in a reboot for it to work properly, that is, the command has to start with mount -o remount,rw /system; and end with ; reboot, or it will not copy or get reverted after reboot.
[Galaxy Note 10.1 Android Development] rsage:
I want to try installing this on my Galaxy Tab 2, but I'm having a hard time determining the mount point for my ext sd card (which does have a second ext partition already). When I execute "mount" from terminal emulator on my phone, I get the output I'd expect. But when I execute it on my tablet, I'm getting very little output (which doesn't seem to include the mount point for my ext sd card). See below:

http://pastebin.com/9Gz2xkZv

Any ideas?
[Galaxy Note 10.1 Android Development] TweakerL:
cat /proc/partitions

in terminal will show you every partition in your device, including the ones that aren't mounted.