yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab 3 10.1 Android Development] r2d23cpo:
Nice!

Ok guys [MENTION=5688554]r2d23cpo[/MENTION] [MENTION=4788780]Daniel-TAz00[/MENTION] , [MENTION=4221381]Max4000[/MENTION] lets have fun here.

First I know I mention twice 4.2.2 - CM10.1 and there is a reason, No Selinux Files in boot nor recovery images! That makes me happy.

But lets be clear, Cianogenmod for Tab3 10.1 is like a Dog witching to received a fillet.! The only prove of concepts has been made by Angel_666 in his thread [Development][Source]CyanogenMod 11 for SGT-3 10.1 by Angel_666 => http://xdaforums.com/showthread.php?t=2633554. Thanks Angel and all that help him for those long days of work.

Now there are many thread in AOSP or Cianogenmod for TAB3 10.1. with time all got forgotten. So, Do not waist your time for now on that road to hell.

I my self burn out 1 moth some time ago on 4.2.2 CM10.1 , and I only got to compile a none working firmware. But It produce boot.img and recovery.img. Now This files are in fact worthless by them self. boot.img will not boot to a system and the recovery has issues with lag response. So Why then did I mention it. Because there is NO SELinux on them. That makes those files the perfect TEST Sandbox to try new things. So without more explanation I am attaching the files I build. I am attaching them here in update.zip form for easily installation. Be aware they are build for GT_P5210. But guess what, if you used them for testing, it do not matters because they in fact incomplete.

CM10.1_boot.zip 12.6 MB
h__ps://mega.co.nz/#!HkJVCDxK!wzKnciQx50QkIbe65-3l-DtfCy0lavoKRw4tUY2wGDA

CM10.1_boot.zip 12.6 MB
h__ps://mega.co.nz/#!HkJVCDxK!wzKnciQx50QkIbe65-3l-DtfCy0lavoKRw4tUY2wGDA

So forget to dedicate time in CM R&D. It is useless for now. Well that is not true. It may be possible to take Angels CM11 tree and modified it to meet CM10.1. Who knows it may work!. But believe me it takes a lot of time to paste all patches and correct all compilation error just to get a final CM compilation for x86!!! I had warned you.

Now I do not know if you have realized, I know all this not because I am Senior. I am not, I am just a newbee like you. But I was playing with kernel/initramfs in

[DEVELOPMENT]TAB310.1-Run a Linux distro natively ==> http://xdaforums.com/galaxy-tab-3/general/development-tab310-1-run-linux-distro-t3008521

But I got sick and now I will continue my work. It is just clearly related to what you are trying to do.
[Galaxy Tab 3 10.1 Android Development] Jacker31:
[MENTION=5688554]r2d23cpo[/MENTION] actually everyone make their own ways to become a good developer or a senior. I my self did the same thing, asked a lot of questions, brick my device unlimited times. And now I can pick up easily.

Actually you are right, after i summit this thread, i have googled for resources a while now and i gave up on it because there is too much problems going on. So now i just wanna try to mod my boot.img that i got from sammobile.com and try to flash it to enable wifi dongle support.

[MENTION=4788780]Daniel-TAz00[/MENTION] , Can you try to compile a kernel that based on stock rom? I noticed there is a lot people who prefer stock rom on this device.
[Galaxy Tab 3 10.1 Android Development] Jacker31:
can anyone help me out here?

http://xdaforums.com/galaxy-tab-3/help/adb-detect-tab-3-fastboot-dosent-weird-t3052404

I have tried every possible solution i can think of and google of.
[Galaxy Tab 3 10.1 Android Development] Daniel-TAz00:
The boot.img I made should work for stock roms aswell.

Anyway, back last year when I built my kernel, I took a bunch of notes with the idea of writing a detailed android kernel tutorial. It's not at all done, but contain a bunch of specific GT-P52xx info.

Here are my notes on compiling the GT-P5210 kernel: http://drebsdorf.net/content/samsung_gt3/KernelHowTo.html

*Crossposting*

Getting the proper monitor mode broadcom drivers should be possible, which broadcom chip do we have tho?

https://code.google.com/p/bcmon/source/browse/trunk/#trunk/bcm4329/driver/src/bcm4329

Anyone know which is the latest kernel source file? (i could surely compile for the P5200 aswell)

http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=GT-P5210

I suspect its: GT-P5210_EUR_KK_Opensource.zip (I will get the sources for the other versions of the tablet aswell)
[Galaxy Tab 3 10.1 Android Development] Jacker31:
I didnt really take down notes, but I actually have like 10+ tabs open with information that i need for doing things.
[Galaxy Tab 3 10.1 Android Development] Jacker31:
I used the SEA KK version instead of EUR since I got my device from singapore. I got stuck in broadcom.* error while compiling the kernel, and its alright after i disabled it in menuconfig.
[Galaxy Tab 3 10.1 Android Development] Daniel-TAz00:
Ello, what are you up to? :) You compiled .... something

You might want to remove -Werror flags from the makefile, otherwise default option is to exit on compile warnings
[Galaxy Tab 3 10.1 Android Development] Jacker31:
oh ~ for that make ARCH=i386 android_santos10_open_r00_user_defconfig i thought was a process of generating config. because i saw somewhere that i have to run it first, but i lost the link though.

Never mind, I was in confused and i figured it out...:D

#Create Boot.img
Now I copied the boot.img to /home/android/WRKDIR_BOOT/ from the P5210UEUAMI8.zip rom we found on XDA (by Mod57)
cd /home/android/WRKDIR_BOOT/
unmkbootimg -i boot.img

This will extract the boot.img into its parts.
It also will spit out the command you need to rebuild the image, save that for later.

Copy /home/android/WRKDIR_KRLSRC/arch/x86/bzImage to /home/android/WRKDIR_BOOT/bzImage

Change the parameters of the rebuild command you saved and change
--kernel bzImage
--ramdisk ramdisk.cpio.gz
-o boot-MI8.img

ex. (PLESE DO NOT USE, this is an example cmd, your offsets may vary, unless you need bricks for a house , I cant recommend it.)
To rebuild this boot image, you can use the command:
mkbootimg --base 0 --pagesize 2048 --kernel_offset 0x10008000 --ramdisk_offset 0x11000000 --second_offset 0x10f00000 --tags_offset 0x10000100 --cmdline 'init=/init pci=noearly console=ttyS0 console=logk0 earlyprintk=nologger loglevel=4 hsu_dma=7 kmemleak=off androidboot.bootmedia=sdcard androidboot.hardware=santos10wifi androidboot.spid=xxxx:xxxx:xxxx:xxxx:xxxx:xxxx androidboot.serialno=01234567890123456789012345678901 ip=50.0.0.2:50.0.0.1::255.255.255.0::usb0:on vmalloc=172M' --kernel bzImage --ramdisk ramdisk.cpio.gz -o boot-MI8.img

[MENTION=4788780]Daniel-TAz00[/MENTION] one question, can i just use other tool to pack like this one in the attachment? I like to use it as it has a gui. :confused:

the attachment (there is a 8mb limit so i uploaded to mega instead.) : https://mega.co.nz/#!6hkSTYJY!gUa0VeQ-6nDh2TMw4Ul23nPt6RLP8r0Wg3UFDJUr7vQ
[Galaxy Tab 3 10.1 Android Development] Daniel-TAz00:
Looks like it might be able to. I don't for sure though :)
[Galaxy Tab 3 10.1 Android Development] Jacker31:
Remember my thread with that some error occur during compiling kernel? the one you answered? that occur and prevent me from compiling even i flagged it to ignore warnings but it end up error. That's happen because i used the wrong gcc build. I have to use the exact build returned in readme_kernel to build it successfully.

Thanks for that, I have totally forgotten about AIK :D.

I am going to get a new i7 MSI laptop soon cant wait for it XD I cant really stand with my current 6yo hp laptop as it will overheat while using MSVs2012 or eclipse . Arrrh sometimes even in vmware. I only have 2 cores on my processors so i cannot actually put up 8 XD.
[Galaxy Tab 3 10.1 Android Development] r2d23cpo:
Is this your anwer or somebody else?

Listen I has used this to ,monitor wifi channel used. Some time ago I found hacking to complicated and time consuming. Maybe wrong with todays version.

So to monitor wifi usage I do not need Alpha or any other router.

If you plan to buy a new laptop make yourself sure that the graphic adapter is linux compatible!11 For example,Tab3 is PowerVR witch is not Linux Friendly!1
[Galaxy Tab 3 10.1 Android Development] Jacker31:
thats my answer, just noticed i made typo mistake haha, agree, I like ATI graphic on my HP as it works with Kali and Ubuntu. But i am not sure that MSI i gotta buy (with nvidia) compatible with linux or not as i never heard from anyone before.

correction.

"Hm...In my opinion, we should just forget about broadcom drivers as the wifi adapters is not as powerful as TL-w772n or that ALFA adapters. In fact most people who wish to use aircrack have either tplink or ALFA, unless they have something else."

Hacking maybe time consuming and tired, but with correct usage, it can create fireworks. But people seems to take their knowledge of hacking and use it wrongly.
[Galaxy Tab 3 10.1 Android Development] r2d23cpo:
Unless Daniel-TAz00 objects, I will postpone TAB3 wifi's own driver mod for promiscuous. Please remember I have my own Kernel mod project [DEVELOPMENT]TAB310.1-Run a Linux distro natively ==> http://xdaforums.com/galaxy-tab-3/general/development-tab310-1-run-linux-distro-t3008521/page11 Now If you go there you see is almost a monologue, me , my ideas and some more of my work. From time to time I get a visit witch offer me great Ideas. But at this point is just Kernel development. That is why I am spending time here with you guys. I see interest in learning and developing. More of us more may gets done. My philosophy learn and spread the knowledge to others. And never forget I am just a newbee just like most of us.

So back to Android Kernel Modding for GT-P52xx.

To share with us you only need to setup your Linux building environment and download Samsung Open Source. I suggest we stick with JB 4.2.2, So for testing it will help if you backup your tablet using TWTP to a external SDCARD. I suggest install the original stock JB 4.2.2. And you can download "GT-P5210_SEA_JB_Opensource.zip" witch I think was the original. So you do that until you see that you can Compile your own Kernel. Then you are ready for some modifications. And join the group. If you need help just ask?

Androids Kernel is just an incomplete Linux kernel. So they share many thing. That means we should be able to go into Kernel. org or similar sites and read their info and try to apply it to us.

Linux Kernel Documentation Index ==> h__ps://www.kernel.org/doc/index-old.html

Menuconfig docs for Linux v3.0-rc7 ==> h__ps://www.kernel.org/doc/menuconfig/

arch/x86/Kconfig v3.0-rc7 ==> h__ps://www.kernel.org/doc/menuconfig/x86.html

Do not waist your MAIN time reading it. Just know you can get there to get info.

Now the main problem when we mod the kernel is that we get Samsung Screen and nothing more. So we need a way to debug the kernel and get info. So you can google debugging Kernel and find many resources.

Now Here is the tricky part. When you boot there is "kernel space" then "user space". You need to remember because kernel security will not allow you to get into kernel space from user space. A nice place to start is

Kernel Debugging Tips ==> h__p://elinux.org/Kernel_Debugging_Tips

And here is what I want to do next. Google eclipse debugging linux kernel. For example

h__p://issaris.blogspot.com/2007/12/download-linux-kernel-sourcecode-from.html

h__p://www.yonch.com/tech/84-debugging-the-linux-kernel-with-qemu-and-eclipse

Now clearly this methods are for Linux Distro like Ubuntu. But I think we can run Our Android and run Ubuntu or kali under chroot like you been doing. Install Eclipse on the tab. Then execute all this on my desktop using VNC ty to the linux on the TAB. And finally I hope to debug the kernel without installing it.

I hope this works.
[Galaxy Tab 3 10.1 Android Development] Jacker31:
i think the original are something like this "GT-P5220_JB_Opensource.zip"

i will take my time and do a little research as i still got 1 and a half month of holiday before i get into my university.
[Galaxy Tab 3 10.1 Android Development] r2d23cpo:
Jacker31

I know working with the Kernel is fun!

But in reality what is what you want to add to it? What is your objective?
[Galaxy Tab 3 10.1 Android Development] Jacker31:
em there is a few objective of my point:

1) to spend my time on something useful,

2)for fun

3) tinkering around on my tab3 with kali linux and add in some usb driver.

4) discovering more ideas and maybe i can get started with another project.
[Galaxy Tab 3 10.1 Android Development] Jacker31:
[MENTION=5688554]r2d23cpo[/MENTION]

yea TL-WN722N

I will try it, quite confusing process though,meanwhile I just got "ioctl{siocsifflags)failed:no such file or directory" error when i trying to use airodump-ng wlan1/mon0 cannot do anything with it. Gotta try to fix it with different firmware and see if its working..
[Galaxy Tab 3 10.1 Android Development] r2d23cpo:
DO NOT TRY THIS MODULES JET I SEE SOME PROBLEMS

Listen I think I was wrong for the modules build. I may have forgotten a critical issue that is modules sometime are Kernel Version Dependant!!! So we may need to build this in fact on our own Android or Kali Kernel version.

So in order to provide you with the right driver, I need to you to do "uname -a" both in your Android and Kali. Any way are you still in kk 4.4.2?

Another thing. Options for ath9K are hiden in our menuconfig. reason for it may be related to the fact that our TAB3 USB port has a big impediment!!! Yes it is not a Full USB compliance!! There are many devices disable for USB attachment due to POWER Concern!! So you may want a more powerful adapter, the kernel may not like due to POWER consumption!! Just a point to think. Any way [MENTION=4788780]Daniel-TAz00[/MENTION] should provide us with his experience.

I am going to hide for know this, we may need it later after figure it out.

As always I know I write a lot. But you guys are to simple. And never answer my questions. It is har to help you blinded!

I never saw your "dmesg" before and after on the Kali Desktop. In fact now I will like to see "dmesg" before and after running your Kali chroot in Android. That is first step.

Anyway, Here I compile the drivers for you. See attachment.

First it is your responsibility do not blame me. I am doing as a favor. I have no TL-WN722N to test it.

From some body else post it seems that the drivers involve are

Modules linked in: ath9k_htc ath9k_common ath9k_hw ath mac80211(O) cfg80211(O) compat(O)

I will

assume

for know that we only need ath9k_htc ath9k_common ath9k_hw ath. And that "mac80211(O) cfg80211(O) compat(O)" are part of the Android system already.

Your compilation my had been good and drivers may be all ready installed! But you have not show me resilts. So asuming you need the drivers you can do the following. Just do you schroot to kaly as usual. then in Kaly. Then copy the files(ko modules) to a place where you can reach them form kali linux on the TAB. And do

insmod ath.ko
insmod ath9k_hw.ko
insmod ath9k_common.ko
insmod ath9k_htc.ko

Then Plug the Adapter and do again dmesg. dmesg should show now some difference. Now I do not work with Kali but I bet you you need to configure this wifi adapter some place in KALI in order for kali to use it.

Here is where [MENTION=4788780]Daniel-TAz00[/MENTION] can help. I have not done this things. It may be also possible that you need to install this driver ON ANDROID no KALI!!! And configure it there. Daniel-TAz00 is then the man for that.

This is the only I can do for you. If they work I will tell you how to compile them.
[Galaxy Tab 3 10.1 Android Development] Jacker31:
[MENTION=5688554]r2d23cpo[/MENTION] yeas i am on KK 4.4.2 and just give me few minute to process this long post lol trying to understand.

one from the terminal and another one from Kali via SSH
[Galaxy Tab 3 10.1 Android Development] r2d23cpo:
h__p://www.linux-kvm.org/wiki/images/a/a9/Kvm-forum-2013-Windows8-on-Android-with-KVM.pdf

So kernel version still 3.4.34 it seems it is pass from android to kali.

Listen remember what you wrote about win8,

See this that pdf
[Galaxy Tab 3 10.1 Android Development] Jacker31:
Hm, but there is alittle different as that example in the pic are windows surface if i am not wrong. But with our limited resource samsung tablet , we cannot do much on it.
[Galaxy Tab 3 10.1 Android Development] r2d23cpo:
Yes it is funny. I am studying quemu etc to test kernels, then I found qemu also can emulate XP and as you see they even try win8. Now that paper was found throu google search. If you inspect the site there is no reference as how they did it or the status, I think that paper hasbmore than 2 yeras!

---------- Post added at 06:28 PM ---------- Previous post was at 05:37 PM ----------

h__ps://docs.google.com/file/d/0Bx_UwXmBKWsyVS01WVBSM3FSM3M/edit?pli=1

Here is the video Win8 runing on top Android

---------- Post added at 06:32 PM ---------- Previous post was at 06:28 PM ----------

h__tp://sourceforge.net/projects/limbopcemulator/files/

Here is the limbo apk

Where isbthe win8 image!
[Galaxy Tab 3 10.1 Android Development] r2d23cpo:
h__p://www.techrepublic.com/blog/tablets-in-the-enterprise/how-to-run-legacy-windows-with-limbo-for-android/

Here some instructions
[Galaxy Tab 3 10.1 Android Development] r2d23cpo:
I did test limbo apk. Program seems to run. But when tested with a SDL Image I only got blank screen.

Looking inside apk i see there is binaries only for armeabi. There is no x86 code. Now project is no longer suported, but the sourcode show a lot of the sources for the binary codes in the jni folder. Who knows it may compile in eclipse. But this is another project. Nice will be if we could find Intels souces used for th win8 demo.
[Galaxy Tab 3 10.1 Android Development] Jacker31:
yea, but i saw how laggy it was in the video. So i can tell that it will be worst if we put it on our device
[Galaxy Tab 3 10.1 Android Development] Daniel-TAz00:
Sounds like you got the work cut out for you with the Atheros adapter. All I can say is, always use a usb powerinjector cable :D
[Galaxy Tab 3 10.1 Android Development] Jacker31:
Well I got one, with one usb power cable to connect to otg adapter which support 3 usb port.
[Galaxy Tab 3 10.1 Android Development] xTear:
Does anybody know how to enable charging if the device is connected to the USB-Port on my PC?

If i plug in the Tablet to the USB-Port it wont charge, i read that this is because samsung disabled this in the kernel settings.

How can i activated it?
[Galaxy Tab 3 10.1 Android Development] Jacker31:
a small little theory or tips ... when you plugin usb cable to pc and you will see a red X sign on your battery bar. But its actually charging some how, i did this experiment a few times by leaving it plugged into laptop and leave it for 8 hours and it increased by 20-50% of power. Its actually charging but slow..
[Galaxy Tab 3 10.1 Android Development] xTear:
i've read something about Fastcharge, it enbale the same charge amount like if its plugged in in the socket.

Does our Tab support this?
[Galaxy Tab 3 10.1 Android Development] Jacker31:
maybe yes or maybe no, not sure... never thought of it
[Galaxy Tab 3 10.1 Android Development] xTear:
I've downloaded the BinDroid Kernel for P5210(JB), the kernel got USB-Charging, there is an init.d script

echo 1 > /sys/class/power_supply/battery/force_usb_charging

If i google after that i found this thread.

http://xdaforums.com/showpost.php?p=30544191&postcount=42

Could it be possible that we could got the option to enable fast-charge over USB?

Any Idea ?

After some research i found this:

https://github.com/jawz101/android_kernel_thunderc/commit/280184f9062d8dc9ea149bf99f455ba71fda9809

Could we add it to our kernel too?
[Galaxy Tab 3 10.1 Android Development] r2d23cpo:
I like this more people interested in kernel modding.

Warning. A fully discharge device will try to consume about 3 times what the PC USB can supply!! Not good at all. So be carefull, never use PC for a discharged Tab.

As a test procedure, connect PC to TAB. Using terminal emulator do:

echo 1 > /sys/kernel/fast_charge/force_fast_charge

Observe if it charge.

Then echo 0 ..... to disable.

If it works the we only have to add the line to the init.rc

[MENTION=5707708]Jacker31[/MENTION]

Did you compiled the kernel with the recomendation I gave you? Did it work?
[Galaxy Tab 3 10.1 Android Development] Jacker31:
nope, i was away to overseas for days and i didnt bring my laptop with me as its too heavy. I planed to see what i can do on cyanogenmod after i get back to my laptop.
[Galaxy Tab 3 10.1 Android Development] r2d23cpo:
No no cyanogenmod.

Listen think I can not build you the ath9k drivers becouse their version/build will not match the kernel you have install.

So the best aproach is for you to build your own kernel with the drivers build in just as you has said previously. The diferent I am sugesting is to activate not the default atheros, but the ath9k ones. For that you need to go into make manuconfig and activate the options I have at thr end of post #25 the ones are hidden. Clearly you will change the "M" for "*" so that they get buildin instead of modules.

I do not post a copy here becouse I am in the Tab at bed. Now I dislocated my Shoulder! I know what life.
[Galaxy Tab 3 10.1 Android Development] Jacker31:
i knw what you want me to try, i am thinking of trying out of porting cyanogenmod, its is different thing ?, and i am going to try your driver method and see whats the result.
[Galaxy Tab 3 10.1 Android Development] r2d23cpo:
Many of us will love to have Cianogenmod. Infact many many had try, and that includes me. And we fail. The only parcial success is Angel_666, but he has release an alpha demo only for P5200. Now if you interested in P220 you will need to edit the ramdisk and change stuff to match your device. Some claim had done it but no body posted their solution!
[Galaxy Tab 3 10.1 Android Development] Jacker31:
i will try, as long it doesn't effect my university studies. mean while, let me enjoy my holidays :)
[Galaxy Tab 3 10.1 Android Development] r2d23cpo:
Happy Holidays

So I corrected the errors and now Eclipse is showing FULL debugging capabilities.

First Part of Tutorial => "

Part1-Compiling an uncompress Kernel for debugging

"

The second part of the tutorial is at ==> "

Part2-Kernel debugging on Eclipse

"

Next Step is to "Debug the custom kernel in a Virtual disk image". I will be studding that and as soon as I have it hammer-down I will place the next Tutorial. See you guys later.
[Galaxy Tab 3 10.1 Android Development] Jacker31:
Thanks, aaaaaaaAaAAAhhhhhhhh after 47 hours and i am still syncing my 12+gb of cyanogenmod source....
[Galaxy Tab 3 10.1 Android Development] r2d23cpo:
Yes it is like that. Thats where the fun start.

In my experience I did have a bad Internet. So I did started downloading AOSP 4.2.2r1 as explained in the readme. Just to find out there was not much information on AOSP. So later I did ripo Cianogenmod 10.1 on top of AOSP thinking it will take less time! jijiji Any way I spent a more than a week downloading. I end up with around 60 gigBytes jijiji what a waist of me time those days. Then you will finding that the tool is incomplete, and that you need to patch a lot of things, two weeks more! Nice learning I guess.

I was suggested to work in Ubuntu Touch but I find out I need to download about 15Gb!! And my previous experience had make me put that aside.
[Galaxy Tab 3 10.1 Android Development] Jacker31:
Yeap With only 3mbps total speed of internet which means about 45~65minutes per gb i will need about 12-20 hours...
[Galaxy Tab 3 10.1 Android Development] xTear:
Why you dont rent a small vps ? i try to compile the kernel on my vps, because the speed of my internet is only 6Mbit and my VPS got 100 MBIT
[Galaxy Tab 3 10.1 Android Development] Jacker31:
dude, we got poor students and unemployed here, unless you wanna sponsor us XD