yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab 10.1 Android Development] DrGirlfriend:
Where is WiFi MAC address stored? Long back-story...

The last couple weeks I've been randomly getting reboots where the system freezes for a second, from multiple apps, the goes directly to ANDROID on a black screen reboot (skipping the Samsung bootloader cold start). This crash always generates a tombstone dump file, which I haven't yet evaluated. I disabled all of kernel adiutor to no avail (I had been overclocked to 1500M with KSM and LMK etc). I had been running aosp-6.0-p4wifi-20160206.zip with open_gapps-arm-6.0-pico-20151219.zip.

So today I decided to completely wipe and start over using the OP. I have twrp 3.0 and USB OTG for the zip files, so I changed /data and /cache to F2FS, wiped everything and flashed aosp-6.0-p4wifi-20160310, Neo-Modified-open-gapps-arm-6.0-pico-20160304 and then BETA-SuperSU-v2.52. Reboot took the usual forever then the system startup got ugly when it scanned for available WiFi networks, never finding anything because it asked me to enable WiFi, which I could not. I skipped on through to the desktop sans internet access, looked into settings only to find out my tab WiFi MAC address now to be 02:00:00:00:00:00. Yikes!

I think I retrieved my original MAC from my router DHCP history but two questions: How did I get here? and where is the MAC address stored in the tab?

Also, anybody else been seeing random reboots and has MAC address corruption happened to you?

Thanks decatf for defeating entropy on these ancient machines. I just discovered your thread on TRIM I'll be reading next.
[Galaxy Tab 10.1 Android Development] snsnse:
Yes, I'm having the MAC/wifi issue as well with the current ROM (p4wifi).

With the previous version I also had a wifi problem of another sort, it would not re-establish a connection after waking up from sleep (with "Keep Wi-Fi on during sleep" set to "Never"). I had to manually disable and enable wifi.

Still, thanks a bunch for your work on this ROM!
[Galaxy Tab 10.1 Android Development] decatf:
Send me your system logs. See post #2 on how to do so. Please be sure to capture the system logs after a fresh boot.

The mac address is stored in /efs/wifi/.mac.info. It is not hardcoded anywhere. Nor is it hardware specific. It is loaded onto the wifi driver at boot time. If the file does not exist it should generate a new random mac address. This is the design by Samsung or the original engineers of this device.

A small program is run at boot to read the address (or generate a new one) from that file. The original program / proprietary binary from the ICS ROM isn't compatible with recent versions of Android. I wrote a new one for Marshmallow. It's probably doing something wrong somewhere.
[Galaxy Tab 10.1 Android Development] Vybze:
Random restart

Anybody else getting random restarts?
[Galaxy Tab 10.1 Android Development] Gauss75:
[MENTION=4404851]decatf[/MENTION]

Hi, I just installed aosp-6.0-p4-20160310.zip and pico gapps.

It is seems that wi-fi and mobile data do not work.

No wi-fi are detected. My mobile carrier is recognized, but I was not able to connect to network.

Any suggestions?

If none, is it possible to downgrade to Lollipop?
[Galaxy Tab 10.1 Android Development] Vybze:
Im having the same problem it seems the wifi refuses to turn on so im gonna downgrade back to aosp-6.0-p4-20160206.zip until the problem is sorted out
[Galaxy Tab 10.1 Android Development] dihoc:
Gauss75, you can reflash lollipop rom following this link

http://xdaforums.com/galaxy-tab-10-1/development/rom-android-5-0-0-lollipop-lrx21m-p4wifi-t2938870

Make sure you make a titanium back-up of your rom so you can go back to it later.

I had the same wifi problem with 20160310 rom. Yes. I, too, went back to 20160202 rom. It rebooted occasionally at 150GHz overclocked. I cut it down to 1400GHz. It seems fine.
[Galaxy Tab 10.1 Android Development] snsnse:
While your at it, could you look into the "no wifi reconnect after sleep" issue I mentioned in my last post? ;)

Cheers!
[Galaxy Tab 10.1 Android Development] hedgehog99de:
I have the same problem with aosp-6.0-p4wifi-20160310.zip on my GT-P7510. No wi-fi detection. Mac address is 02:00:00:00:00:00 (usually 00:12:34:xx:xx:xx). I've changed back to the February release and all is proper again.
[Galaxy Tab 10.1 Android Development] rmvw:
same problem here, no wifi

downgraded alright now, exept the reboots
[Galaxy Tab 10.1 Android Development] LluisAzm:
Thanks for your work and time!!

Works perfectly 5 years later with lastest Android OS!!
[Galaxy Tab 10.1 Android Development] forrestgump2000:
Issues I've seen with my p4wifi:

1) "this is not a p4wifi, this is a p4tmo" error when trying to install OS via TWRP. I've installed p4tmo and it works, but "cell standby" is eating up most of my battery. I've since disabled phone components via Titanium Backup Root, so we'll see how that helps.

2) Any of the open_gapps installers complained about not enough space. I modified the install.sh script to not bail if it doesn't detect enough space, and that got past that.

3) The tablet will occasionally hang for about two seconds and subsequently reboot to the "Android" boot screen. Tombstones show no consistent cause. My CPU is not overclocked.
[Galaxy Tab 10.1 Android Development] mistersixt:
Just for info: I flashed the TRIM kernel directly after installing version 20160310 and wifi is working fine on my P4.

Regards, mistersixt.
[Galaxy Tab 10.1 Android Development] tarektarabichi:
Still have no Wifi enabled.

Can you repost the working version Link in the OP please :)

Thanks for the developer
[Galaxy Tab 10.1 Android Development] decatf:
No wifi problem

For all those with the wifi problem or any other problems/crash/bug. Read the second post. Follow the steps.
[Galaxy Tab 10.1 Android Development] decatf:
If your tablet is the p4wifi then why would you install the p4tmo recovery?
[Galaxy Tab 10.1 Android Development] forrestgump2000:
I don't believe that I did. The file that I downloaded is:

$ md5 twrp3000-20160207-p4wifi.tar.md5

MD5 (twrp3000-20160207-p4wifi.tar.md5) = 44f4bd6bca296c399de6eee540a4afe1

TWRP was installed via Odin.
[Galaxy Tab 10.1 Android Development] decatf:
Install the zip file. That should be the right one.
[Galaxy Tab 10.1 Android Development] forrestgump2000:
I actually had just done this as I saw your message here. There looks to be some issue with the Odin-installable TWRP, so what looks possible on a stock (recovery) p4wifi is to:

Install TWRP via Odin

Install TWRP via zip

Install p4wifi AOSP package.

FWIW, disabling the phone components via Titanium Backup did solve the battery life problem. Though it did still complain about no SIM card at the top of the screen. Obviously, getting the p4wifi version of Android on the tablet (e.g. using the above steps) is a much cleaner solution.
[Galaxy Tab 10.1 Android Development] Neo:
The Recovery installable version is the easiest way to upgrade it in my opinion. Just flash it in custom recovery and it will overwrite itself.
[Galaxy Tab 10.1 Android Development] Soundy106:
Hey all... just picked up a used P7500, took a lot of noodling to get this ROM to boot properly, but I finally have it going except for the WiFi issue.

Apologies if this has been addressed, I can't imagine I'm the only one who's run across this, but I couldn't find another mention of it... I've read the instructions in Post #2, but found just one small issue...

With no WiFi, I can't install anything from the Play Store. Anyone have an .apk I can copy over USB instead?
[Galaxy Tab 10.1 Android Development] forrestgump2000:
I believe that you need to install the AOSP build from February. The March build reportedly has broken WiFi. Now, the link that I got mine from is no longer valid, so I'm not sure how you'll accomplish that.
[Galaxy Tab 10.1 Android Development] Soundy106:
"410 Gone" - neat, never seen that one before! Thanks for the info... on the hunt!
[Galaxy Tab 10.1 Android Development] Neo:
Flash this in recover and it will install the apk and the necessary binaries to give you root access: SuperSU.zip: DOWNLOAD

Note that it may tell you after a reboot that the binaries need to be updated. You can decide whether to accept and allow for the updated binaries or ignore. You will be rooted nonetheless.

[MENTION=4404851]decatf[/MENTION], as with the gapps packages listed in my prior post, you can do with this supersu.zip as you wish as well.
[Galaxy Tab 10.1 Android Development] Soundy106:
Mercy buckets, mon sewer.
[Galaxy Tab 10.1 Android Development] snsnse:
Since the relevant passages from the logs (wifi reconnect after sleep issue) were not very long I decided to post that here instead, so maybe others can comment on it. I apologize if that is not the way to go.

Best regards
[Galaxy Tab 10.1 Android Development] forrestgump2000:
To confirm whether this was actually the case or not, I tried the latest March build. Unfortunately, even after a wipe, the system will not get past the "Samsung Galaxy Tab 10.1" splash screen. I think this means that it hasn't even gotten to the point where it is booting Android, right? Has anybody else seen this?
[Galaxy Tab 10.1 Android Development] Neo:
Once you have done a Factory/Data reset, followed by an advanced wipe of the data-system-cache-dalvik partitions, and flashed the rom, upon rebooting do you get a message from TWRP indicating that a OS was not present? Or does it reboot like normal but just sit at the splash?
[Galaxy Tab 10.1 Android Development] forrestgump2000:
It reboots as normal and just sits at the splash. I let it sit there for at least 10 minutes and it did nothing. I did do an advanced wipe of the data-system-cache-dalvik before attempting the flash. Is the factory/data reset before that really required? I'd think that it would be irrelevant, happening before the wipe. Thanks.
[Galaxy Tab 10.1 Android Development] decatf:
Send me the whole log files. I will parse it myself.
[Galaxy Tab 10.1 Android Development] folgui:
I can confirm this, it also works on my p4wifi. Thanks.
[Galaxy Tab 10.1 Android Development] Soundy106:
I did that but didn't have SysLog after. Found an .apk for it though, so it's all good.

On a completely unrelated note...

That lady could sell me pretty much anything... :silly:
[Galaxy Tab 10.1 Android Development] decatf:
Build 20160314

Wifi should be working

Wifi should respect the power saving mode configured in Settings

Fixed Clock app crashing in the global time menu

The random reboots mentioned by some are probably due to a crash in something related to sensors. I can't figure out how to reproduce it. It might be avoided by disabling auto-rotation. You can still use rotation. Just lock the rotation when you don't need it.
[Galaxy Tab 10.1 Android Development] Soundy106:
YES! Working nice, thank you!

Next step is to figure out why the GPS reception sucks on this tablet... not the fault of the ROM, even on the stock ICS, it wouldn't see more than two birds.
[Galaxy Tab 10.1 Android Development] forrestgump2000:
At the time that my tablet rebooted, I'm certain that I wasn't changing orientation. When it did happen it:

Was under heavy load

Hung for a copule seconds before rebooting

It's not clear if the temporary pause was a symptom of the reboot or a cause of the reboot (e.g. some watchdog figured the whole system was frozen). If there's a way to do a post-mortem of a reboot let me know, and I can get details to you if it happens again.
[Galaxy Tab 10.1 Android Development] Soundy106:
My Note 3 with CM12.1 based ROM does this sometimes as well. Usually starts to bog down before it happens, but not always. Half the time I'm in the middle of a swipe on the keyboard. Pretty sure it's related to a specific app, but no idea which one.
[Galaxy Tab 10.1 Android Development] Neo:
I've only noticed the random reboots when having the kernel over clocked to the maximum frequency. When dropped to a frequency just below max, the reboots never happen for me.

Just something I noticed and might be a cause for others.
[Galaxy Tab 10.1 Android Development] 2820:
I can't install rom using TWRP 3.0.0.0 but I can install it with TWRP 2.8.7.0

it is perfect (;
[Galaxy Tab 10.1 Android Development] DrWoodStein:
Big thanks!

Huge thanks to decatf for keeping our Tabs working.

Flashed the new build, WiFi fixed and the ROM is working great.

Have also locked the screen rotation and so far no reboots.

Thanks again decatf!
[Galaxy Tab 10.1 Android Development] dihoc:
thank you, decatf. Wifi works fine with 20160314 rom. I, however, ran into a root access problem. I tried to flash Beta superSU v.2.52 provided in post #1. Failed all the way. Any suggestion?
[Galaxy Tab 10.1 Android Development] Elektron60:
Another big thanks!

Wifi works also fine with 2016-03-14 rom here.

Here is my first question in this nice Forum:

I use your twrp3000 from 2016-02-07 and get error 70 during flash of opengapps-pico from 2016-03-15.

The version from 2016-02-07 is installable but a little bit smaler.

Is it possible that the system partition is realy to smal?

df shows my a size of 568.9M
[Galaxy Tab 10.1 Android Development] Vybze:
download supersu from playstore and update the binary and restrart the tablet
[Galaxy Tab 10.1 Android Development] Sik-1:
im also getting the same thing in twrp
[Galaxy Tab 10.1 Android Development] decatf:
When it boots again open Syslog. Check all the log types. Press "Take Log". Send the log files to me.

It's not the system partition size. There is enough space for the pico and nano gapps.

OpenGapps started packaging their own busybox binary which was compiled with NEON. If they won't package it with a non-NEON busybox binary then we'll have to start using a modified one that supports this device.

In the mean time the NEO modified gapps in the first post works.
[Galaxy Tab 10.1 Android Development] dihoc:
thanks for the tip, Vybze
[Galaxy Tab 10.1 Android Development] dihoc:
actually I had a bad superSU zip file. I reinstalled the file and reflashed it. It worked!! thank you
[Galaxy Tab 10.1 Android Development] RaisinTide:
Gawd knows what I've done but after three times of trying and none of the gapps being able to install, I'm now faced with no play store and a tablet that isn't connecting to my pc!
[Galaxy Tab 10.1 Android Development] Neo:
Did you try either of the two gapps packages I modified and posted here for everyone recently?
[Galaxy Tab 10.1 Android Development] RaisinTide:
Yes mate.

Both take me to the open apps page.
[Galaxy Tab 10.1 Android Development] Neo:
Ok so do this:

Download this file: https://db.tt/TIc2zUb2 to your tablet (or download it and push it to your tablet from your pc).

Reboot to recovery. If you don't know how without adb access, power down the tablet, and then to power it on, hold power+volume up+volume down until it gets passed the splash screen and to the loader menu. Press the volume-down key to switch it over to the icon with the open box, then press volume-up to select it. This is your recovery.

Data/Factory reset, then do an advanced wipe of cache, dalvik, system, and data.

Flash the rom.

Flash the Gapps.

Wipe caches (TWRP provides you this option immediately after flashing).

Then boot to the rom.

Let it do it's "apps" thing and you should be good to go.

Follow in that exact order and you shouldn't have issues..
[Galaxy Tab 10.1 Android Development] RaisinTide:
Cheers bud, I'll give it a punt tomorrow morning
[Galaxy Tab 10.1 Android Development] Neo:
Feel free to send me a pm if you still can't get it up and running ok. This rom works just fine as do the Gapps so fear not.
[Galaxy Tab 10.1 Android Development] forrestgump2000:
Has anybody else noticed poor wifi performance when bluetooth is actively being used? When using bluetooth speakers playing Pandora radio, my tablet with this ROM will benchmark at about 0.3 Mbps download according to Ookla Speed Test. This even happens when using a 5Ghz wifi frequency, which shouldn't interfere with bluetooth at all. (Both 2.4 and 5Ghz are abysmally slow when using bluetooth). When I turn off the bluetooth speakers, the wifi speed benchmark goes back up to over 20Mbps

The stock ROM for the Galaxy Tab 10.1 wasn't great in this regard, but it was definitely better. On 2.4Ghz, the SpeedTest download speed is 3.7Mbps, and ironically the 5GHz WiFi is only 1Mbps when bluetooth audio is active. I suppose this is an indication of a poor wireless chipset/driver, but it's sad to see that this Marshmallow ROM is so much worse. Has anybody else experienced anything similar?
[Galaxy Tab 10.1 Android Development] forrestgump2000:
Here's a last_kmsg.log from a recent reboot, running the latest build.

Suspicious are the:

[ 241.505591] INFO: task kinteractive_lo:27 blocked for more than 120 seconds.

[ 241.506391] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.

[ 241.507032] kinteractive_lo D c0489140 0 27 2 0x00000000

and then at the very end:

[ 567.279103] EXT4-fs (mmcblk0p4): mounted filesystem with ordered data mode. Opts:

[ 567.279350] SELinux: initialized (dev mmcblk0p4, type ext4), uses xattr

[ 567.346141] type=1400 audit(1458267253.940:286): avc: denied { append } for pid=91 comm="recovery" name="log" dev=mmcblk0p5 ino=7173 scontext=u:r:init:s0 tcontext=u:object_r:cache_file:s0 tclass=file permissive=1

[ 567.520213] SysRq : Emergency Remount R/O

[ 567.544688] EXT4-fs (mmcblk0p8): re-mounted. Opts: (null)

[ 567.564839] EXT4-fs (mmcblk0p5): re-mounted. Opts: (null)

[ 567.565218] Emergency Remount complete

[ 567.632190] LINUX_REBOOT_CMD_RESTART2

[ 567.634692] command : boot-reboot written on MISC

[ 567.639424] VFS: Close: file count is 0

[ 568.255859] Restarting system with command ''.

It looks like (SE)Linux has consciously rebooted the system, as opposed to hardware flakiness. But what is causing it to do so is not obvious to me. Note that I had auto-rotation disabled when this happened.

Or just after that:

[ 568.256560] ------------[ cut here ]------------

[ 568.257250] WARNING: at /home/username/twrp/kernel/samsung/p4/kernel/smp.c:459 smp_call_function_many+0x8c/0x278()

[ 568.267254] ------------[ cut here ]------------

[ 568.268198] WARNING: at /home/username/twrp/kernel/samsung/p4/kernel/smp.c:320 smp_call_function_single+0x9c/0x1d8()

I'm just now noticing the string "twrp" in the final back traces. I wouldn't have expected TWRP to come into play at all for any normal (non-recovery) boot of the tablet. Is this incorrect? If it truly is TWRP that is rebooting my tablet, what's the appropriate course of action? Install CWM? Install the 2.8.7.0 TWRP instead of my current 3.0.0.0? And if so, from where?

Thanks!
[Galaxy Tab 10.1 Android Development] decatf:
Yeah that's the log from a recovery session. The last_kmsg is dumped before the system crashes or is shutdown/rebooted. Sometimes it might not make it to that point.

There's two scenarios. The last_kmsg from the crash session didn't get written. So you get the one from the session before that.

e.g.

1. TWRP -> writes last_kmsg
2. Android -> system crash -> did not write last_kmsg
3. Boot again and last_kmsg is from 1.

Or the device is booted into recovery or charger mode and then booted again. So the last_kmsg is overwritten by the one from the last boot up.

e.g.

1. System crash -> writes or does not write last_kmsg
2. TWRP / Charger mode -> writes last_kmsg
3. Boot again and last_kmsg is from 2.
[Galaxy Tab 10.1 Android Development] decatf:
I forgot to mention that if it's a soft reboot (you don't see the Samsung boot logo) then you want to look the logcat not the kernel log.

Also opengapps is fixed as of 20160318. There is no need for a modified one anymore.
[Galaxy Tab 10.1 Android Development] RaisinTide:
Cheers Neo, worked a treat mate.

Just need to fix the kids galaxy tab 10.1 that now has no os and won't connect to the pc :D
[Galaxy Tab 10.1 Android Development] nwo122383:
Sent a little something your way [MENTION=4404851]decatf[/MENTION]
[Galaxy Tab 10.1 Android Development] PowerDK:
First of all Thanks to decatf !!

Just boot the Tab into TWRP recovery. When in recovery you can connect the Tab to your PC and transfer the files to the Tab either in the root or make temp directory.

I had made the same mistake once and wiped all :)

Do anyone know how I can connect to the Tab filesystem from a PC when booted into this ROM ?
[Galaxy Tab 10.1 Android Development] Soundy106:
Notifications tray should show a bar that says "USB connected, charging only, tap to change", or something like that. Tap that and choose an appropriate option.
[Galaxy Tab 10.1 Android Development] forrestgump2000:
It was a hard reboot. I had reproduced the reboot a couple of times, so I was surprised that the log was from the TWRP boot as opposed to the Android OS. The way I reproduced the reboot a couple of times was to launch Ookla SpeedTest (while Pandora was streaming to bluetooth).

It's a bit of a long shot, but one of the times that SpeedTest did not cause a reboot, I had noticed that the GPS indicator comes up during its launch. This is a tablet that never sees the sky, so I've since disabled the GPS option in the Android location settings. It's just correlation, so I can't say that it's the cause, but I've seen SpeedTest trigger a hard reboot 4 or 5 times at exactly the same time that the GPS indicator would have come up at the top of the screen.

So far I've not been able to reproduce the reboot. Given the intermittency of the reboot problem, it's hard to say if it truly is GPS-related. However, I can say for sure that with auto screen rotation disabled I still did have reboots. For anybody else having occasional reboot problems, maybe try disabling the GPS and reporting back here?
[Galaxy Tab 10.1 Android Development] redeemer01:
hopefully call feature will be added soon
[Galaxy Tab 10.1 Android Development] DrGirlfriend:
Soft Reboot

Orientation sensor does correlate with soft reboots so there is something to pursue there although I've been keeping mine in landscape. Two days ago I wanted to turn the tab 180 deg when locked, I rotated then upside down I enabled rotation and boom, soft reboot. I messed up getting the syslog files that time.

That said, I got a soft reboot locked in landscape mode doing nothing much so here's the syslog zip, if I'm allowed to upload it...

Looks like I'm allowed. Yay.
[Galaxy Tab 10.1 Android Development] Neo:
You have to pull the status bar down and touch the connection type displayed for more options. Select "File transfer" and it will change your connection type to a mounted SD for your PC to access.

EDIT: Looks like I'm 3 hours too slow[emoji14]
[Galaxy Tab 10.1 Android Development] DrGirlfriend:
FYI nitpicks

I forgot to mention some small items.

The OP link text still says 0310 but does go to 0314 zip download; just a little confusing.

The OP link to Neo's modified gapps is a dead end, for me at least. I get androidhost login. The links at the bottom of his post #212, page 22 worked for me.

As already brought up, the back camera flash led won't go on for anything I've tried including the quick settings pulldown 'flashlight' (or 'torch' for you brits). Speaking of which, I noticed this a few builds back but don't care about a flashlight on my tab so I had rearranged my quick settings with marshmallow's ui tuner by long-pressing the settings gear in the second pulldown to activate uituner it in settings (like developer options). With my current rom, 0314, the long-press of the gear does nothing. It might be something specific to my latest flashing. Anybody else getting ui tuner to show up?

BTW, [MENTION=4203241]Neo[/MENTION], your signature vid, along with these xda autoplay ads are really taxing our poor tab10.1 sloths, and I run mine at 1500 MHz OC. Cool sig, though - great film.

Much thanks to decatf and the rest of our thread-heads. I love showing bleeding-edge hardware owners my ancient slab cranking the very latest from google. Pure wizardry!