yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab 2 7" Android Development] CodyF86:
[MENTION=1449163]Caldair[/MENTION] , Glad you like it, it's pretty slick. :)

[MENTION=5153662]Android-Andi[/MENTION] , sorry took me so long to respond guys, was doing some zombie killing. Andi

I haven't even looked yet, but if you already have, or if you can, make a readme file, with full

instructions to use your tool/script and repack it in your file and I'll link to it on the first page,

and put your name by it. I just want to be able to link to it and say read the readme for

instructions lol,... if you want.
[Galaxy Tab 2 7" Android Development] F3AR420:
Zombie killing where? Not black ops 2?
[Galaxy Tab 2 7" Android Development] CodyF86:
Well not really zombies, more like post apocalyptic/mutated humans. I was playing a slightly obscure, mmofps

called Fallen Earth for a bit. :)
[Galaxy Tab 2 7" Android Development] CodyF86:
[MENTION=1449163]Caldair[/MENTION] ,

don't forget to delete the Android folder on your internal card, probably isn't much there,

just whatever made it to the folder, before you added your userinit.d script.

Also,

Focal should be fixed this build, in terms of it showing the capture preview in the

correct orientation. It's all upside-down and side-ways atm. lol :)

http://review.cyanogenmod.org/#/c/48336/
[Galaxy Tab 2 7" Android Development] Android-Andi:
No Problem ;)

Instructions / Readme added into the zip https://www.file1.info/2aapqoV

If you want you can add this to the OP.

Thanks!
[Galaxy Tab 2 7" Android Development] CodyF86:
Added, thanks. :)
[Galaxy Tab 2 7" Android Development] CodyF86:
Here is 20130618 for p3110 / p3113 w/IR: http://d-h.st/IeL

TabletUI Patch: http://d-h.st/37g

I have also built this in starting with this build, it should allow you to pull down

the status bar even when in a full screen app like a 3d game, etc.

Allow showing statusbar on top of fullscreen window.

Swipe from top of the screen to show statusbar.

Statusbar will automatically disappears after 2 sec.

http://review.cyanogenmod.org/#/c/48352/
[Galaxy Tab 2 7" Android Development] Caldair:
There was nothing because I added data/local/userinit.d and the modified build.prop with Aroma file manager in recovery, before I ever booted into CM, right after flashing the rom :D

The only strange thing now is that ES FileExplorer insists on keeping its data on the internal Sd /Android/data :confused: Everything else is on the External though! So I can live with a few kb stored internally! :)

Thanks again! 12 hours in and everying is working great!
[Galaxy Tab 2 7" Android Development] btux81:
Except for my boot animation not being displayed properly until about a second before I am in Android (looks stretched) everything is running perfect for me... Thanks for the excellent build with working IR!
[Galaxy Tab 2 7" Android Development] CodyF86:
That's how every version of CM is, if you use blackhawk-next change hwrotation to 0 and it fixes it.
[Galaxy Tab 2 7" Android Development] CodyF86:
[MENTION=1449163]Caldair[/MENTION] [MENTION=4289544]F3AR420[/MENTION]

If anyone has already downloaded 0818 please downloaded it if you would like to test this,

in this build.

Caldair and F3 can you tell me if the actual switching is working for you. Once you reflash 0818

add this to your build prop, ro.vold.switchablepair 1

Now this option will show up under storage with the above setting, please make sure you turn it off then back on

so it sync's. This check box is what controls the persist use_sec_storage 1 setting.

Can you help me confirm it's working?

:)

0818 for p3110 / p3110 w/IR: http://d-h.st/MTC

TabletUI: http://d-h.st/LUj

Edit: Seems to be working for me, the check box adds the use_sec_storage persist

property.
[Galaxy Tab 2 7" Android Development] Caldair:
Downloading...
[Galaxy Tab 2 7" Android Development] CodyF86:
Wooo! [MENTION=1449163]Caldair[/MENTION] it's working for me. =D.

I do need to add thanks to David Hacker for his code review patch that added this, I just changed the

variable it edited, because his patch was for something slightly different.

http://review.cyanogenmod.org/#/c/48390/
[Galaxy Tab 2 7" Android Development] Caldair:
Very Nice!!:D

I can confirm, its definitely working here too!

First boot after flashing Browser populated /Android/data/ on Internal. Toggled tickbox in Settings>Storage off and on again and rebooted. All data now routed to External!

Very, VERY nice!:D

Does this mean that your subsequent builds will have that property built in to build.prop? :fingers-crossed:
[Galaxy Tab 2 7" Android Development] CodyF86:
Yeah I'll add it. Just one thing to be aware of, if you were ever to set use_sec_storage to 1 without the userinit.d script

it can get wonky, but someone would have to go out of their way to do that, so yes I'll include it. :)

Edit: and just because I feel bad about leaving p3100 out, im going to do weekly p3100 builds, once on sunday, so gonna do that right now.
[Galaxy Tab 2 7" Android Development] shinobisoft:
You're gonna be someone's hero today :eek::p
[Galaxy Tab 2 7" Android Development] CodyF86:
:)

[MENTION=1449163]Caldair[/MENTION] I might actually leave the switchable pair setting out, and just let you add it. :)

The only reason I say that is because, and I know it's going to happen. Someone is going

to click that setting and not have read the instructions and since they wouldn't have set up

their userinit.d script, it will start breaking hard lol. :)

Since im sure you fix hwrotation to 0 if you use ketuts kernel, just add it in when you do that. lol :)

Let me think about it some more though.
[Galaxy Tab 2 7" Android Development] shinobisoft:
Can't you include the userinit.d script in the build? Not sure how all that works so had to ask. Maybe better yet, someone ( probably me ;) ) could write a recovery script to install the userinit.d script.
[Galaxy Tab 2 7" Android Development] Caldair:
No, I get it. Its easy enough to add, and you are absolutely right: Someone is going to be wandering through the Settings in one of your builds one day, see that option, get all excited and enable it, and then they'll be here with a bucket for your blood when it screws up their tablet!:eek:

Edit: I like [MENTION=4501943]shinobisoft[/MENTION]'s idea! ... If it is possible.
[Galaxy Tab 2 7" Android Development] CodyF86:
Lol yeah, but I think I might be able to add a userinit.d script to the build let me look into it, if I can then I will. :)

Edit: Yeah let me see, If I can add it ill do that if not maybe make a script.
[Galaxy Tab 2 7" Android Development] CodyF86:
[MENTION=1449163]Caldair[/MENTION] [MENTION=4501943]shinobisoft[/MENTION]

I can add the userinit script to the build, so ill include the storage setting so it's visible, next build. :)
[Galaxy Tab 2 7" Android Development] Caldair:
I'm all out of thanks, so Thanks!!:)
[Galaxy Tab 2 7" Android Development] CodyF86:
Here is 20130818 for p3100: http://d-h.st/EjO

TabletUI Patch: http://d-h.st/mpf

This should already have the use external storage for apps setting already visible in

Settings / Storage and should be ready to go. If you do not want to use external

as app data storage please make sure it is clicked off. I think when I checked it was

on by default even tho it wasn't actually active. I'll work on changing it at some point soon.

I made the changes half way through the build, but mka is good about picking them up,

if for some reason the setting isn't there, please follow the directions on the OP toward

the bottom to get it working.

This is the weekly p3100 build, I'm not going to change the title to 31xx from 311x, people

will just have to read for themselves, I just felt bad I stopped haha :)
[Galaxy Tab 2 7" Android Development] titanshadow:
So, is it only your build with the Tablet UI patch that allows using external storage (such as a microsd card) for app data?
[Galaxy Tab 2 7" Android Development] CodyF86:
The TabletUI link is to the TabletUI patch file, it just patches TabletUI instead of phablet or whatever,

should work fine patched with TabletUI also tho.
[Galaxy Tab 2 7" Android Development] hkjr:
how would this, in theory, react to using nandroid backup and restoring just apps w/ data (instead of using cwm)?
[Galaxy Tab 2 7" Android Development] CodyF86:
I can't say for 100% because I haven't actually tried it, but whatever your trying to do, if it was

pointed at /data/media or /sdcard or /storage/sdcard0 before it should point to your external after.

So far app data, downloads, pictures you take, etc and so on are storing to the external with it on.

So pretty much like I said above of it points to /data/media, etc it should go to the external now.
[Galaxy Tab 2 7" Android Development] DrockaDroid:
Cody I must say this is very awesome to have 4.3, I work in electronics in my current job which I cant say do to policies. At my job I show customers my tab 2 compared to the nexus 7, customers are quite surprised that an older tablet is keeping up with a newer tablet like the nexus 7. Amazing

I wanted to clarify this external sd card option : In the latest build, 8/18 , do we need to make a text file userinit.d script for external storage? or is it built into the actual build prop already?
[Galaxy Tab 2 7" Android Development] CodyF86:
p3100 should already have the unserinit.d script and build.prop settings in it and ready, p3110 will be, on the one I post tonight.
[Galaxy Tab 2 7" Android Development] CodyF86:
Opps actually looks like the build.prop and userinit.d settings didn't make it into p3100

by default, so if you are using the p3100, just follow the directions on the OP, it's easy.

I added it in halfway through the build and didn't want to do a clean build and wait another

hour.

I'll prob rebuild it tonight also, with it built-in for sure.
[Galaxy Tab 2 7" Android Development] Xintorrim:
IR works on any device or it needs to have an inbuilt hardware?
[Galaxy Tab 2 7" Android Development] CodyF86:
The p3113 has an IR blaster and it works, the p3110 and p3100 don't.
[Galaxy Tab 2 7" Android Development] CodyF86:
Ok, I need a tester. I rebuilt 0818 for p3100 so userinit.d should extract to /data/local by itself,

but I need somone to test it for me, I'm using this as a dress-rehearsal for building p3110 tonight.

The build.prop variable is also already there, so the option should just show up in storage / settings

automagically. Whoever test this if you could make sure you don't have /data/local/userinit.d and

once you flash /data/local/userinit.d is there.

20130818 p3100: http://d-h.st/5aj

TabletUI: http://d-h.st/mpf

Here is my edify script is someone could tell me if I messed anything up.

mount("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.1/by-name/DATAFS", "/data");

package_extract_file("data/local/userinit.d", "/data/local/userinit.d");

set_perm(0, 0, 0755, "/data/local/userinit.d");

unmount("/data");
[Galaxy Tab 2 7" Android Development] shinobisoft:
I'm not 100% sure about the mount statement. Not saying it's wrong, I just don't know about Samsungs mount points. The remainder of the script is just fine ;)
[Galaxy Tab 2 7" Android Development] CodyF86:
I opened up the device fstab for our tabs in the source code and copied its mount for /data

the edify script and the fstab for /system were exactly the same, so /data should be the same, but

with /data instead of /system obviously.

/crossfingers :)

[MENTION=4021423]ketut.kumajaya[/MENTION] can you tell me if I mounted /data correctly, above?
[Galaxy Tab 2 7" Android Development] CodyF86:
I tested the script in 0818 for p3110 modified with the installer script and build.prop...it works!!! lol wooo!

It's all auto-magical now, well 0819 p3110 will be!
[Galaxy Tab 2 7" Android Development] Skazzy3:
This is what I use:

run_program("/sbin/mount", "/data");
run_program("/sbin/mount", "-o", "remount,rw", "/data", "/data");

Its the same one ketut uses.
[Galaxy Tab 2 7" Android Development] CodyF86:
Thanks,

I tried the script I posted above and it worked fine. Turns out, at least in recovery 6.0.3.7 /data

is already mounted when you boot into recovery, which makes sense. Does sbin/mount already

know what block /data is suppose to be mounted to? If not then the only reason the script above

works is because /data is already mounted. The way I did it specifies the block /data is normally

mounted to and mounts it.

I feel retarded because i don't know too much about sbin/mount, is it looking at the fstab and that's how it

knows what block its located at? Or is run_program /sbin/mount the same as mount().

mount("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.1/by-name/DATAFS", "/data");

just incase /data isn't mounted when you boot into recovery, which it should be.

Edit: Ok, think I figured it out, I already had it working, but was just thinking about the mount

commands. Either way will work while in recovery, but if you boot into fastboot you would

have to mount the data partition like I wrote above, I believe, so it's better to write it, so it

will work either way, just in case, by specifying the block.
[Galaxy Tab 2 7" Android Development] CodyF86:
Here is 20130819 for p3110 / p3113 wIR: http://d-h.st/qll

TabletUI Patch: http://d-h.st/l3g

Now 100% more auto-magical just for [MENTION=1449163]Caldair[/MENTION]. Installs userinit.d automagically.

Build.prop setting is also already included, the setting should show in settings / storage.

Eitherway, if you are going to use it or not, please cycle it once, then choose on or off

to make sure its synced and reboot.
[Galaxy Tab 2 7" Android Development] ketut.kumajaya:
mount("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.1/by-name/DATAFS", "/data");

Above command is correct but may not work correctly on the 2nd ROM. I'd agree with Luigi2012SM64DS way, let recovery handle how to mount a partition based on fstab information.
[Galaxy Tab 2 7" Android Development] hkjr:
I'm not sure why but when I attempt to go into Dev Options, I get settings has stopped fc, thoughts anyone?
[Galaxy Tab 2 7" Android Development] CodyF86:
hmm, Dev Settings have been working fine for me, Clear your cache and dalvik cache. If it still does it, just try to reflash the rom, things seem to get wonky sometimes for no reason in android, silly java programming language lol.

Thanks for the info [MENTION=4021423]ketut.kumajaya[/MENTION] here's some thanks your way. Your right, just let it look at the fstab, I keep

forgetting recovery is still a running linux system with a kernel, fstab and all. lol :)
[Galaxy Tab 2 7" Android Development] ketut.kumajaya:
Ha..ha..ha... Glad you came to this community. We have a lot of script collectors around here but not a real programmer :laugh:
[Galaxy Tab 2 7" Android Development] gradford11:
No problems on 20130819 with tabletUI running Blackhawks next 1.8.3 nooc. Thank you.
[Galaxy Tab 2 7" Android Development] CodyF86:
I got a PM from someone who got a permission change error when flashing the rom.

userinit.d gets installed automagically now and it's the last step in flashing the rom.

If anyone gets the same error, everything is fine and it will boot fine, just make sure

you have a file /data/local/userinit.d and make sure it has

export SECONDARY_STORAGE /storage/sdcard1

inside of it.

I changed the script a little bit starting with tonights build to avoid anymore

random can't set permission errors. The file should already have the right

permissions I was just being safe. It flashed fine for me also tho without error.
[Galaxy Tab 2 7" Android Development] btux81:
Loving the ROM more and more each day...I downloaded an app that controls basically all IR devices and can control my AC at work now :D I made a video to show you guys: http://goo.gl/oEZqyE Now all my devices have 4.3 :D
[Galaxy Tab 2 7" Android Development] CodyF86:
Haha that's awesome! :good:
[Galaxy Tab 2 7" Android Development] CodyF86:
Here is 20130820 for p3110 / p3113 w/IR: http://d-h.st/ZpJ

TabletUI Patch: http://d-h.st/c9n

I adjusted the installer script and it is working well it seems.

I deleted my userinit.d before I flashed and it flashed it back

and set the permissions on it just fine. It also has some

instructions for people who haven't been following this thread

too much.

Some changes to DSPManager Theme

DSPManager: Holo-ify equalizer surface

http://review.cyanogenmod.org/#/c/48539/

http://review.cyanogenmod.org/#/c/48484/

http://review.cyanogenmod.org/#/c/48459/

Some Focal stuff

PicSphere: First batch of enhancements [1/2]

PicSphere: First batch of enhancements [2/2]

http://review.cyanogenmod.org/#/c/48438/

http://review.cyanogenmod.org/#/c/48439/
[Galaxy Tab 2 7" Android Development] hkjr:
Am I to delete userinit.d before flashin 0820? (reason why I got the error?)
[Galaxy Tab 2 7" Android Development] antutu:
Didn't know about your problem, I just wanna suggest to use this tool http://xdaforums.com/showthread.php?p=42300613 for producing better pictures Or even video during recovery mode

This tool available for both Linux and Windows
[Galaxy Tab 2 7" Android Development] hkjr:
I've seen the utility but never acted on it - I'll have to add this in. As for the picture, I thought I was still, hah.

error is - assert failed: package_extract_file("data/local/userinit.d", it goes on -
[Galaxy Tab 2 7" Android Development] CodyF86:
No you don't delete userinit.d, I just meant I deleted it on mine to make sure it would

flash back just fine.

I don't know what the deal is, but from now on, I'm just going to have to say,

if you want to flash this ROM, flash it with clockworkmod recovery. For

some reason twrp and some versions of philz touch freak out over

copying a simple file.

clockworkmod works fine, so use it to flash this rom, or make sure

you make the userinit.d file yourself with

export SECONDARY_STORAGE /storage/sdcard1

So anyone who had problems, use my recovery I posted

on the first page. All that error means is the userinit.d file

couldn't be copied, which is a simple file operation lol.
[Galaxy Tab 2 7" Android Development] CodyF86:
Infact,

you can even copy the file inside the rom zip inside /data/local called userinit.d to

/data/local/userinit.d on your tab.
[Galaxy Tab 2 7" Android Development] hkjr:
will do - sadly, i flashed cwm in order to make a backup (i made two - one with twrp and one with cwm) - but flashed back to twrp.... so that might be the culprit. i keep two around since i used both tbkup and nandroid to restore stuff - a lot of extra work to play it safe but ill try again sometime tonight or tomorrow.
[Galaxy Tab 2 7" Android Development] CodyF86:
[MENTION=4501943]shinobisoft[/MENTION] was actually getting the same error, but he was messing around with some edify scripts

he wrote, I think it was the same error. Before I was actually mounting /data to the actual block

it's located at, but I started mounting /data with sbin/mount so that it could just use the fstab

of the tablet to find what block /data was on.

[MENTION=1105488]hkjr[/MENTION] if you could do me a favor even tho im sure its a pain in the butt. If you could try to flash

it with clockwork mod recovery. Just so I can be sure, also did you look to see if the file was

actually copied even tho it said it failed.

If it did copy even tho it gave that error, then twrp must not like assert() statements around

certain commands, clockworkmod doesn't like assert() statements used with set_perm().

I'll actually just remove the assert statement for 0821.
[Galaxy Tab 2 7" Android Development] CodyF86:
I reuploaded 0820 with the assert statement removed from the file copy

command. If someone would try and flash it with twrp, and make sure

you don't have /data/local/userinit.d and see if it copies it.

I'm going to put a note on the front page to use clockwork recovery if

you encounter a copy error or to copy the file manually.

20130820 for p3110 /p3113 w/IR: http://d-h.st/ZpJ
[Galaxy Tab 2 7" Android Development] hkjr:
certainly - kids got a peewee game at 6 and playing free safety!! - so ill be tied up until i get home. i did not look to see if it copied over as i was walking out the door with it this morning. since then, i threw slim on it but am 80-90% of the way there in setting it up along with everything else - once the backups are done - i'll flash cwm, flash your original file and report back. i could also flash philz to see if i get the same and report back as well.

just read your next post - i can use twrp again and will make sure its not there - either way - i'll flash over back to your rom tonight and hopefully get you some feedback before midnight
[Galaxy Tab 2 7" Android Development] CodyF86:
It's up to you, if you want to try it with twrp and or philz, just redownload it, i removed the assert statement.

Like I said that's the last step and all it does is copy /data/local/userinit.d to /data/local/userinit.d on your tab.

I'll add a note on the front page just to copy it over manually if it doesn't get copied. I've never had a problem

using clockworkmod recovery, works just fine tho.
[Galaxy Tab 2 7" Android Development] hkjr:
you got it.

for me, its all about testing everything lol
[Galaxy Tab 2 7" Android Development] CodyF86:
I also reuploaded 0818 for p3100 with the updated script.

I don't think it was actually failing, I just think some recoveries don't

like assert() statements around commands like package_extract_file()

and set_perm(). Should be good to go for all recoveries now, but I

added a message to the OP also.
[Galaxy Tab 2 7" Android Development] CodyF86:
Ok,

I'm building it right now to test and make sure it's going to work, which

it is, just some simple changes. Starting with tonights build 0821, you

won't need a userinit.d script for the secondary storage for app data

to work.

ro.vold.switchablepair is now going to contain the value /storage/sdcard1

Nothing extra will need to be copied over, starting with that build, tonight.
[Galaxy Tab 2 7" Android Development] kenundrem:
Will the current init.d file interfere with this? Or should we just delete it after flashing tommorrow's build?
[Galaxy Tab 2 7" Android Development] CodyF86:
The userinit.d file that is in /data/local now, you can just delete after you flash 0821, you'll

want to delete it, because it will become redundant after tonight.
[Galaxy Tab 2 7" Android Development] CodyF86:
Test build is done, and working great using external SD

for app data, downloads, pictures, etc etc with no userinit.d

script now! Wooo! lol :)

Gonna build 0821 in 3 hours.

Gonna build 0821 for p3100 also, so it has a build

that doesn't need the userinit.d script for that to work.
[Galaxy Tab 2 7" Android Development] kenundrem:
I hate to quote the whole post but it is for effect in saying you really have contributed a lot to the Galaxy Tab 2 CM community...I think I speak for alot of people in saying thanks and it is very much appreciated all the extra code review stuff your giving us early. Thanks again [MENTION=5337314]CodyF86[/MENTION] for building these unofficial builds for everyone and being so responsive and helpful to any and all questions!
[Galaxy Tab 2 7" Android Development] hkjr:
ha, so no need for me to attempt replicating this - outstanding! if you're ever in Jersey, ill buy you a few beers... one's never enough
[Galaxy Tab 2 7" Android Development] jdawg0024:
I've been running the 8/19/13 version of this ROM and I want to say thanks for all of your hard work. ( I just recently picked up this tablet for cheap) I have noticed that the text is a little blurry in some apps (like Facebook) I was wondering if there was a fix for this or if it was a limitation of the screen.
[Galaxy Tab 2 7" Android Development] CodyF86:
You might try messing with the dithering or 16-bit settings under Settings / Performance,

but that's probably it. You could also try a different launcher, like nova launcher, which is

amazing, but that might only help on the main screen.
[Galaxy Tab 2 7" Android Development] jdawg0024:
I'm sorry but I don't see Performance under settings...
[Galaxy Tab 2 7" Android Development] Skazzy3:
Go to settings > about and tap on build number 7 times