yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab  Android Development] reddog69:
hey sbrady this is the first half of my updater script whats wrong shouldnt this convert me to yaffs2 first.assert( getprop("ro.product.device") == "GT-P1000" || getprop("ro.build.product") == "GT-P1000"

show_progress(0.15, 5);

package_extract_file("modem.bin", "/tmp/modem.bin");

set_perm(0, 0, 0777, "/tmp/modem.bin");

package_extract_file("updater.sh", "/tmp/updater.sh");

set_perm(0, 0, 0777, "/tmp/updater.sh");

package_extract_file("make_ext4fs", "/tmp/make_ext4fs");

set_perm(0, 0, 0777, "/tmp/make_ext4fs");

package_extract_file("busybox", "/tmp/busybox");

set_perm(0, 0, 0777, "/tmp/busybox");

package_extract_file("flash_image", "/tmp/flash_image");

set_perm(0, 0, 0777, "/tmp/flash_image");

package_extract_file("erase_image", "/tmp/erase_image");

set_perm(0, 0, 0777, "/tmp/erase_image");

package_extract_file("bml_over_mtd", "/tmp/bml_over_mtd");

set_perm(0, 0, 0777, "/tmp/bml_over_mtd");

package_extract_file("bml_over_mtd.sh", "/tmp/bml_over_mtd.sh");

set_perm(0, 0, 0777, "/tmp/bml_over_mtd.sh");

package_extract_file("boot.img", "/tmp/boot.img");
[Galaxy Tab  Android Development] sbradymobile:
I'm not sure what more Cdesai has to do to get it going so I have been removing the mtd kernel from the image and using the old one.
[Galaxy Tab  Android Development] humberos:
Sorry, but I think my way is better.

Once this thread is a WiP so we'll can have many kernel versions for a specific rom version. i.e. If you want a specific kernel version then you have a file with 4mb.

About GApps, we have to left it as it is. I think is better for future copyright problems.

Unfortunately this will happen often because most users do not have paying attention. Also, I think its so easy! Maybe we need to write a thread about install process at Galaxy Tab Q&A forum.

Thank you!

Greetings from Brazil.
[Galaxy Tab  Android Development] reddog69:
just compiled 4.04 ics and flashed several things are broken such as no data no wifi
[Galaxy Tab  Android Development] humberos:
Yeah!

For MTD we have to work a little bit.

Our kernel is ready for it but the rom not yet.

I don't use MTD in my kernels yet.

Greetings from Brazil!

---------- Post added at 03:40 PM ---------- Previous post was at 03:30 PM ----------

as I told!

http://xdaforums.com/showpost.php?p=23639279&postcount=2415

Greetings from Brazil!
[Galaxy Tab  Android Development] eaut:
Humberto, Scott,

what needs to be changed/done to build from the current repository a non-MTD package?

thx, eaut
[Galaxy Tab  Android Development] sbradymobile:
I just did a normal make bacon, then changed the updater script to only mount and extract system and do the symbolic linking and set permissions (meaning do not run the updater.sh).
[Galaxy Tab  Android Development] humberos:
Also, maybe you should remove this line:

BOARD_USES_BML_OVER_MTD := true

in to android/device/samsung_p1-common/BoardConfigCommon.mk

Greetings from Brazil!
[Galaxy Tab  Android Development] reddog69:
ril problem

so it would seem that on the mtd build of 4.0.4 there is some sort of ril issue .it shows no baseband .its like there is no efs partition.other than that i have to say it seemed silky smooth and faster overall
[Galaxy Tab  Android Development] humberos:
Yeah!

We need update our ramdisk and use the correct modem.bin file.

Greetings from Brazil!
[Galaxy Tab  Android Development] espionage724:
I thought it was reported that Samsung modem libs didn't like MTD partitions or something, I forget exactly
[Galaxy Tab  Android Development] humberos:
I think we just need know how to make ril works on our device because it works on Galaxy S devices (with MTD partitions).

Check it

http://xdaforums.com/showthread.php?t=1363593

Greetings from Brazil!
[Galaxy Tab  Android Development] eaut:
Now that MTD is merged into master but not working, would it make sense to open a separate branch "non-MTD" for the repositories

- device/samsung/{p1-common,p1, p1c}

- vendor/samsung

- kernel/samsung/p1

to facilitate sgt7 building until the mtd layout version is stable?

This way we could altogether move to 4.0.4 first without waiting for MTD dependencies.

BTW: The build scripts in "scripts" seem to be outdated as well.

br, eaut
[Galaxy Tab  Android Development] cdesai:
Na, bad idea :p

@humberto - nope the issue isnt with the modem, nor with the MTD layout- its just something i might have missed in the new device - exams from tomorrow so i cant post a build but do one thing

make a MTD kernel, then flash it (the whole zip that comes out - keep it on external sd)

then, just flash system from any of your release (even the march 03 one is ok) - and ril should work

n yea forgot to update the scripts - just need to change galaxytab to p1 - problem is i dont have access to a *nix pc atm - n i need to get a new routerem, so till then - do what i said humberto n it should work

Also, just removing that line from BoardConfig won't work, as the kernel will need to be replaced, n so will the *.rc(s) - but RIL ain't working with it - i believe it's more of a mismatch issue - replace all the ril libs n rild binary and then try - also check overlay in p1
[Galaxy Tab  Android Development] humberos:
Ok, bro!

Take your time!

Thank you!

Greetings from Brazil!
[Galaxy Tab  Android Development] adi6262:
3rd to 13th april are exams in india , no wonder he is busy !

@cdesai , Best of luck :D
[Galaxy Tab  Android Development] brunoisa10:
to Scott (sbrady) Thank you for your Trebuchet :)

http://www.youtube.com/watch?v=6DuMmKUMV2o&list=UU-AJ-X1E9ZfrqNtSonXyilg&index=1&feature=plcp

only thing not working on my SGT7 is GPS :( unfortunately

I've tried all the fixes and impossible , even GPS Status and refreshing the AGPS data
[Galaxy Tab  Android Development] humberos:
Hey!

Can you send me your logcat and kernel message?

I can try to fix your GPS.

You can get all logs using adb command.

Like this:

Kernel Messages

adb shell cat /proc/kmsg > kmsg.txt

Logcat

adb logcat > logcat.txt

Run adb command and ...

Try to gps connect, open Maps, open GPS Test APP...

clear A-GPS,... send flowers to your girl...

Greetings from Brazil!
[Galaxy Tab  Android Development] brunoisa10:
humberto : I have the message : cannot create kmsg.txt permission denied

same for logcat

so it is perhaps my issue

trying to send you logs via log dumper :)

sorry I've forgotten su LOL

sent you my 2 files :)

take your time :)

I'll check tomorrow morning if you've found something on them :)
[Galaxy Tab  Android Development] humberos:
Sorry!

If you are using linux then you should use root user.

Get root and type:

# adb kill-server

# adb start-server

# [now you can make it]

Greetings from Brazil!
[Galaxy Tab  Android Development] brunoisa10:
I've edited my post so the 2 files were sent :)

I was using terminal Emulator on the SGT
[Galaxy Tab  Android Development] N3RD420:
I wanna flash this on my tab but I've already flashed jts cm9 from rootz. I know that after flashing that Rom you can't simply flash another Rom or restore a backup. I have to flash system package through odin. Can anyone help me with this...
[Galaxy Tab  Android Development] Nitro785:
Hi Humberos.. Pls say how much time can takes to fix battery leak promblem? Ore may be we should downgrade to previous ROM?

On a new rom the battery is dead about 24h on previous about 2-3 days.

thanks for your roms and kernels!

Greetings from Russia!
[Galaxy Tab  Android Development] humberos:
I am testing new kernel right now.

Please, email me and help me with this test.

humberos @ Gmail

Greetings from Brazil!
[Galaxy Tab  Android Development] cheatman:
@humberos: have you had a look over jt1134's repos? He has full HW acceleration patched up good and MTD running for a while now.

Here's the link(s)

Kernel: https://github.com/jt1134/android_kernel_samsung_galaxytab-cdma

Device: https://github.com/jt1134/android_device_samsung_p1c

Since you're familiar with CDMA code as well, maybe it's going to be of some use to you. Btw, he's working on AOSP as far as I can tell.

Peace,

C.
[Galaxy Tab  Android Development] humberos:
@jt1134 is in the TE4M!

I always follow him work, he is a great dev!

I think the @jt1134 source for full HW acceleration still have a famous green glitch.

About MTD, I will wait @cdesai back.

He have the device source for make it.

BTW, thank you!

Greetings from Brazil!
[Galaxy Tab  Android Development] grandduke:
sorry for bugging in..

but is there a post here to see what is working on Galaxy Tab P-1000 using CM9 and Humber OS? like if the gyroscope is working? compass is working? so on and so forth.. I have tested Overcome ROM and their gyroscope isn't working..

Thank you so much for your time...

Grandduke
[Galaxy Tab  Android Development] lambstone:
Please Search, or give it a whirl to see what works and what doesn't. Being new here is no excuse for not knowing the right thing to do. In short, this build is working enough to be used daily. Want to know more? DIY, do a search.
[Galaxy Tab  Android Development] eaut:
MTD fixes

to get the MTD booting on P1 devices it needs this patch to p1-common:

diff --git a/updater.sh b/updater.sh
index 2c9b8c6..c9b7cfe 100755
--- a/updater.sh
+++ b/updater.sh
@@ -47,7 +47,7 @@ if /tmp/busybox test -e /dev/block/bml7 ; then

if $IS_GSM ; then
# make sure efs is mounted
- check_mount /efs /dev/block/stl3 rfs
+ check_mount /efs /dev/block/stl3 vfat

# create a backup of efs
if /tmp/busybox test -e /mnt/sdcard/backup/efs ; then
@@ -148,8 +148,8 @@ elif /tmp/busybox test -e /dev/block/mtdblock0 ; then
/tmp/erase_image cache

# unmount and format data
- /tmp/busybox umount /data
- /tmp/make_ext4fs -b 4096 -g 32768 -i 8192 -I 256 -a /data /dev/block/mmcblk0p2
+ #/tmp/busybox umount /data
+ #/tmp/make_ext4fs -b 4096 -g 32768 -i 8192 -I 256 -a /data /dev/block/mmcblk0p2
#/tmp/erase_image userdata

# unmount and format datadata

updater.sh was expecting /efs to be a "rfs" partition, but we already use vfat as file system for /efs.

The second part prevents unneeded loss of data in /data. You can always do a manual "wipe data".

Now you just need to repeat the update procedure two times. The first time the new MTD kernel is flashed, the second time all mtd partitions are installed using the new kernel.

After this you can install gapps or just reboot into the new system.

have fun,

eaut
[Galaxy Tab  Android Development] reddog69:
thanks eaut really appreciate the help just got done compiling a build that efs was screwed i will re-compile with ur fix.i hit ur thanks button.funny i just got done odin back to humberos,now i am gonna have to try ur fix.
[Galaxy Tab  Android Development] lucky24x7:
Firstly, I would thank all the smart people out here to come up with ICS on Samsung galaxy tab. You people have gone a step ahead of the manufacturing company. People like me holding Galaxy tab (GT-P1000) with 2.3.3 were very unhappy on hearing no future firmware updates.

But now after tasting the Icecream it feels good! I am aware of the bugs yet to be fixed including camera.But here are some of the small bugs which I and my friends have come across and I consider them to be important for perfect user experience and which could be fixed in the future updates:

1) Music: After searching any music file and opening it, it plays for a while which is followed by a force close option.

2))Facelock: Though front camera works, Facelock app doesn't. (Tried flashing an update again).

3)Facebook Account Syn: Earlier in stock Rom we could easily syn our Facebook contacts which helped users to syn photos,statuses and their birthdays in the calender. But now, though an option Facebook still comes under Accounts & syn,its not working.

4)Gapps and Basic apps : After installing the latest gapps, I still had to manually download Google Maps.There was no YouTube, Ebook Reader nor any app for Microsoft office support and these are things which define a tablet.

5)Themes: I am confused, when I come across "Temporary placeholder until functionality merged" under Settings->INTERFACE.

6)File Explorer: Earlier there was 'MyFiles' in the stock Rom. I couldn't find any.

7)Task manager:No Widget like 'Program Monitor' is available. Which makes it difficult to get an idea about the memory taken by a running app.

8)System update: I have been checking for System updates under About tablet manually and it shows "Your system is currently up to date",even after these recent changes:

1) New wifi driver

2) HW/Accel without green glitch.

Again, Thanks a lot! for coming up with such a revolutionary change. Hope to get these bugs fixed soon. :)
[Galaxy Tab  Android Development] jeebspawnshop:
I'll address the ones I know;

3 - Facebook: They have to fix their API to work with ICS. Not an ICS bug.

4 - Gapps and Basic apps: You have to download these yourself, for a variety of reasons not worth repeating here.

5 - Theme: Place-holder simply means that the function has not YET been implemented, but it will some day.

6 - File Explorer: Download ES File Explorer from Play Store.

7 - Task Manager: Go to System Settings > Apps > Running. Now you know.

8 - System Update: This function is used more for the cell phone companies to send updates to your phone, not to sync with CM9 nightlies...

And yet I believe that you would have gathered most or all of these answers using some Search function and patience.
[Galaxy Tab  Android Development] eaut:
more updates for the latest github device/samsung/p1.

with this patch adb is working again. it also reduces the differences between P1 and P1C to a needed minimum and should allow you guys to get wifi working.

go to device/samsung/ and look at

diff -u p1c p1

diff -u p1c/init.sch-i800.rc p1/init.gt-p1000.rc

my current understanding is that the diferrences should be only RIL and /sdcard device names.
[Galaxy Tab  Android Development] eaut:
it works now

two more patches:

1) fix path to all binary modules - patch device/samsung/p1

--> this fixes e.g.wifi

diff --git a/p1.mk b/p1.mk
index 79c4507..d02dd9e 100644
--- a/p1.mk
+++ b/p1.mk
@@ -44,8 +44,8 @@ PRODUCT_PROPERTY_OVERRIDES += \

# Kernel modules
PRODUCT_COPY_FILES += $(foreach module,\
- $(wildcard device/samsung/p1/*.ko),\
- $(module):system/lib/modules/$(notdir $(module)))
+ $(filter-out $(RAMDISK_MODULES),$(wildcard device/samsung/p1/modules/*.ko)),\
+ $(module):system/lib/modules/$(notdir $(module)))

ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/samsung/p1/kernel

2) update build version in vendor/cm

diff --git a/config/common.mk b/config/common.mk
index 1d91d6c..846253a 100644
--- a/config/common.mk
+++ b/config/common.mk
@@ -97,7 +97,7 @@ PRODUCT_VERSION_MAJOR = 9
PRODUCT_VERSION_MINOR = 0
PRODUCT_VERSION_MAINTENANCE = 0-RC0

-PRODUCT_BUILD_PROP_OVERRIDES += BUILD_DISPLAY_ID=IML74K
+PRODUCT_BUILD_PROP_OVERRIDES += BUILD_DISPLAY_ID=IMM76D

ifdef CM_NIGHTLY
PRODUCT_PROPERTY_OVERRIDES += \

..enjoy android 4.0.4 and let's hope we get RIL working soon!
[Galaxy Tab  Android Development] ableeker:
eaut, these fixes look very useful! These are diff files, does that mean the fixes haven't been entered into the repository? But if they work, shouldn't they be?

About that first fix, what do you mean by "you just need to repeat the update procedure two times"?
[Galaxy Tab  Android Development] eaut:
I do not have write access to the sgt7 repository. Therefore I have posted the diffs made in my local repository.

You need to install the generated update.zip twice from the CWM recovery install menu. This is because the first time the install script just installs a mtd boot kernel. The second time you run it, the script installs the mtd partitions using the previously installed mtd kernel.

If you are interested I can upload the resulting update-cm-9.0.0-RC0-P1-KANG-2012-04-01-signed.zip for testing purposes.
[Galaxy Tab  Android Development] DroidTalk:
Humbertos,

I think the new wifi driver is buggy. My wifi signal moves up and down all the time with the new drivers. From 2 bars to 3 then 0 and it disconnects and reconnects. Could you please investigate this issue and solve it?

Thanks for your hard work.
[Galaxy Tab  Android Development] eaut:
samsung RIL on mtd

referring to RIL:

when starting /system/bin/rild, rild fails to load /system/lib/libsec-ril40.so.

Any particular reason why names are different for P1 and P1C?
[Galaxy Tab  Android Development] jt1134:
Re: mtd and such

Thanks for looking into it eaut. Everything is functional for cdma devices right now, just a few things need to be tuned for GSM but I don't think it will take a lot of work.

I would caution mounting efs as vfat instead of rfs, though it seems to work it can lead to data loss :o we may be better off finding out why its not mounting as rfs to begin with.

Also, I will add a check to see if data is already ext4 to prevent unnecessary wipes, but the formatting needs to remain, as the script needs to target first time ics users also.

Also, if you check my repos, you can see I've completely ignored using a separate datadata partition. I know that there are concerns about keeping all data on mmc for performance reasons, but I see a negligible difference (if any) and from my experience with sgs devices, the complaints from end users about lack of free space outweighs any possible benefits. I'd suggest removing datadata from the mtd partition layout and donating that space to cache.

As for any issues with the ril, check the aries-common repo on the teamhacksung github to see how it is setup on the sgs devices. The exact same process can be applied here. Specifically, see init.aries.rc and uevent.aries.rc. Also, I have not reviewed the partition layout in the GSM kernel repo yet, but if it is not already, the efs partition is best left at the very end of the nand space, so we can change the sizes of the other partitions later if needed without disturbing the efs data.

I'm not sure why its been necessary to flash twice to complete the install, the process should reboot the device and continue the flashing automatically without any extra steps from the user (this does work correctly for me on cdma tab, so there may be an issue with the stage1 init being used).

When the updater.sh script runs it logs to the sdcard, so clues to solving some of these issues should be found there. Please post these logs if you have them so i can check it out. Feel free to send pull requests via github for any useful changes you may make :-)
[Galaxy Tab  Android Development] jt1134:
Ha! Cdma uses libsec-ril40.so. GSM uses libsec-ril.so. It is referenced in system.prop in the device tree, and goes into build.prop in a compiled rom. If the linker is complaining about it, then somehow the cdma rild binary is getting installed. Otherwise just edit system.prop/build.prop. :)
[Galaxy Tab  Android Development] eaut:
hi jt1134, thank you very much for your help!

when I do "strings rild | grep libsec" in vendor/samsung/p1/proprietary the result is: "/system/lib/libsec-ril40.so".

is it possible that we have the wrong rild in the repository "koush / proprietary_vendor_samsung" ?
[Galaxy Tab  Android Development] jt1134:
Yep, that's definitely the wrong one then. You can simply push rild from a stock rom or older ics build and should work (provided the other libs are OK).
[Galaxy Tab  Android Development] eaut:
jt1134, thanks for your detailed reply!

regarding RFS filesystem support I have the impression that quite a few cwm kernels these days are missing rfs support. so I would prefer that updater.sh uses in this case vfat rather then aborts silently.

After looking at the whole /datadata complexity in the last 24 hours I fully support your viewpoint! I just didn't know anything about it and therefore left it untouched.

I started forking the relevant repositories. I will start to send you pull requests hopefully soon.
[Galaxy Tab  Android Development] cdesai:
@jt1134

i agree with you about the efs part, better be safe than sorry, and yea it's on the end.

I did make a form few days back, and found out only a small percentage of users had data on /datadata, 75% people had it empty so we can free up that space for maybe storing kernels (dual-boot, kexec :))

And it is normal for rild to say that libsec-ril40.so is not found, try running it on a normal gb / old ics rom and you'll find the same output - i've seen the same behaviour on other Samsung devices too.

Flashing works if the zip is on external sd, if it's on internal sd then recovery bootloops as it's unable to mount the internal sd, havent looked into it yet (exams till 12th, then loads of free time)

Also, as jt1134 said, shoot a pull request for anything useful you do and we'll merge it :)
[Galaxy Tab  Android Development] ozcandurmusoglu:
Improvement for Trebuchet Launcher

Dear Friends,

I have been using slim rom dated 25032012 since 5 days.

I noticed that it is the fastest till now.

And, also i realized that trebuchet launcher is making this rom slower.

Probably it needs improvement or replacement.

I changed to Go Launcher Ex and have seen great difference, trebuchet is laggier.
[Galaxy Tab  Android Development] DroidTalk:
I'm back to the old kernel and my wifi connection is rock solid again!
[Galaxy Tab  Android Development] humberos:
If you have the logcat then send it to me and I can help you.

New wifi driver works fine and fast.

Greetings from Brazil!
[Galaxy Tab  Android Development] grukko:
I've been using Humberto's new kernel over the weekend and I can vouch for the great wifi performance and improved battery life.

I unplugged my tab about 27 hours ago and still have 40% left after a day of moderate use.
[Galaxy Tab  Android Development] humberos:
Yeah!

Today, I included the Clean Cache driver and I think it can increase our battery life too.

I will finish some updates and build one soon.

Thank you!

Greetings from Brazil!
[Galaxy Tab  Android Development] t.benedek92:
Humberto,is it possible that with yout latest kernel,the hardware encoding in mx player doesn't supported?

http://db.tt/otbE1Fv9

http://db.tt/3Uz6Do4e
[Galaxy Tab  Android Development] humberos:
Please, check this video!

http://www.youtube.com/watch?v=V4uYAxobKxk

All credits to @qm4n76 !

Greetings from Brazil!
[Galaxy Tab  Android Development] t.benedek92:
I've already seen it. But for me doesn't work. What could be the reason? I did everything the same as in tha video. But none of videoplayer apps able to play videos with h/w acceleration :/ .

This evening I maybe try to reflash your rom+kernel again+full wipe. If it doesn't work,maybe restock would?

----------------

edit: didn't work any of them. Could anyone help me? The youtube videos are perfect (without green glitch),but the videolayers are only working in SW mode :/

Thanks in advance!
[Galaxy Tab  Android Development] DroidTalk:
I haven't seen that video, I use bs player lite and I have installed its codecs too from market. It plays some of the videos with hardware acceleration.
[Galaxy Tab  Android Development] kanecb89:
Boot issues

OK so I updated my tablet to CM9 and was forced to move over to MTD. I decided I would like to sell the tab to a friend and wanted to go stock so that I could have the tab activated on an account as I see no way of getting into the services menu. When flashing the stock through Heimdal( have tried several times and various ways) it will sit at Logo screen vibrate once then 2 times and then bootloop repeatedly.

I have tried to logcat the bootloop but it is just sitting at waiting for device. I can reload ICS no problem, is there any way I can go back to stock? Or does someone have some insight into how this issue can be fixed?
[Galaxy Tab  Android Development] cdesai:
Flash a full stock rom (find one on the overcome site) and your problem will be solved

And we havent released any MTD builds yet, so dont blame us

And you flash this ROM at your own will, we done "force" you
[Galaxy Tab  Android Development] Sandzak385:
humberos will the new Rom have android 4.0.4 :)
[Galaxy Tab  Android Development] coralexx:
about wifi tethering

Hello! Please check this bug: wifi tether apn mac address changing periodically . Thank you!
[Galaxy Tab  Android Development] gurudev32:
I can confirm that too !