Rooting from Linux? - Galaxy S II Q&A, Help & Troubleshooting

Anyone got any hints on rooting the SGS2 from Linux? The guides suggest using Odin, which is a win32 app.
As the tar just contains an alternate zImage, is it possible to replace this using adb?

on linux wine is your friend

Chainfire says there is a linux version of Odin called "Heimdall" but recommends not to try it with SGS2 until the developers of "Heimdall" have tested it.... check out the original post for more details:
http://forum.xda-developers.com/showpost.php?p=13357501&postcount=70

ma10 said:
Chainfire says there is a linux version of Odin called "Heimdall" but recommends not to try it with SGS2 until the developers of "Heimdall" have tested it.... check out the original post for more details:
http://forum.xda-developers.com/showpost.php?p=13357501&postcount=70
Click to expand...
Click to collapse
Unfortunately I won't be able to do the testing myself as I don't have access to a Galaxy S II and don't really have the cash to buy one at the moment.
However I'd be surprised if the protocol for the Galaxy S II is any different that the protocol used for any of the other Galaxy S devices. Some devices require a small one line change in code to make the initial handshake work but a failed handshake won't harm your device.

Related

Heimdall for Galaxy Player 5.0

By request, I'm posting linux binary for my fork of Heimdall that seems to work on the Galaxy Player 5.0 USA:
http://www.mediafire.com/?lkwd4a4yo66k7at
It's just the heimdall binary, compiled on Ubuntu 11.10 32 bit. Recommend to install the latest released .deb to get all the dependencies worked out and then overwrite the /usr/bin/heimdall with this version. I don't have a Mac or Visual Studio to be able to compile Mac or Windows binaries..
Source is here:
https://github.com/ambrice/Heimdall
Time to update my flashing instructions.
Thanks for finding the fix! Heimdall's sources have always been voodoo black magic to me.
Thanks! I primarily use 64bit Linux, but on occasion I have to use an OS X machine at school.
Here's the binary for Mac OS X Lion. Users just need to be sure to have libusb 1.0 (methinks, maybe not).
Hey guys... if you can post a Windows binary and a linux64, I can fork Heimdall One-Click for use on the Galaxy Player. This way you guys can make one-click back-to-stock packages or one-click custom kernels.
However, you guys should contact Benjamin Dobell here on the forums to merge the changes upstream.
That would be a great idea. I'm always fearful not to be able to go back to stock.
Sent from my YP-G70
Does anyone have other samsung devices they can test this heimdall on? It works better for galaxy players, but I'd like to make sure it doesn't break other things before merging.
ambrice said:
Does anyone have other samsung devices they can test this heimdall on? It works better for galaxy players, but I'd like to make sure it doesn't break other things before merging.
Click to expand...
Click to collapse
I can try kernel flashing on my GS2 tomorrow.
Just thought I'd let you guys know that I am on it.
I've been quite busy lately so haven't had a lot of free time to properly investigate. I don't want to release a potentially breaking change (for non-Galaxy Player devices). So I'm trying to further investigate what the "partitionType" actually is by reverse engineering the bootloaders.
I've just officially released Heimdall 1.3.2 which addresses the issue. Heimdall should now be good to go with Galaxy Players!
Benjamin Dobell said:
Heimdall 1.3.2 is now available. Here's the announcement and here are the download links.
Happy flashing!
Click to expand...
Click to collapse

samsung galaxy pocket gt-s5300 build from source

i own samsung galaxy pocket gt-s5300, its like galaxy Y little brother. And i'm trying to build from source.
i'm new in this stuff, so i can't elaborate enough to find solution myself.
i've downloaded the samsung source for this device from samsung website, when extracted it has 2 sources, platform and kernel.
im trying to build the platform and hopefully can build the stock rom successfully so i can proceed to modification.
already followed the instructions to get the gingerbread 2.3.6 from aosp, merge the folders from samsung to aosp, and execute build script (generic-user). seems fine, i got system.img,userdata.img,etc but no boot.img, still tried to flash anyway and figured that this device doesn't support fastboot but adb works. then i tried to make otapackage but got no rule error. perhaps caused by this generic-user lunch, but i dont know how to add this device to build, because there's only generic,emulator,crespo-4g, and crespo choices.
trying to find alternatives, and thinking about modify the stock rom with my build, so i also tried to open the odin flashable stock rom with winrar (xxx.tar.md5) which i cant, i dont know why since the other galaxy rom has no problem.
so many thing i'm not sure of doing it right, so i need help building for this samsung device from source.
bLusiLv said:
i own samsung galaxy pocket gt-s5300, its like galaxy Y little brother. And i'm trying to build from source.
i'm new in this stuff, so i can't elaborate enough to find solution myself.
i've downloaded the samsung source for this device from samsung website, when extracted it has 2 sources, platform and kernel.
im trying to build the platform and hopefully can build the stock rom successfully so i can proceed to modification.
already followed the instructions to get the gingerbread 2.3.6 from aosp, merge the folders from samsung to aosp, and execute build script (generic-user). seems fine, i got system.img,userdata.img,etc but no boot.img, still tried to flash anyway and figured that this device doesn't support fastboot but adb works. then i tried to make otapackage but got no rule error. perhaps caused by this generic-user lunch, but i dont know how to add this device to build, because there's only generic,emulator,crespo-4g, and crespo choices.
trying to find alternatives, and thinking about modify the stock rom with my build, so i also tried to open the odin flashable stock rom with winrar (xxx.tar.md5) which i cant, i dont know why since the other galaxy rom has no problem.
so many thing i'm not sure of doing it right, so i need help building for this samsung device from source.
Click to expand...
Click to collapse
I try to do it but i still make a lot of tweaks on my Rom I need to make good performance to my phone

[Q] [DEV]Wifi Monitor Mode successed on SGS2&Nexus! How about SGS3?(with source code)

[Q] [DEV]Wifi Monitor Mode successed on SGS2&Nexus! How about SGS3?(with source code)
Finally someone get sysfs injection successed.......
with the hard work, now SGS2 and Nexus is tested fine......
and here is the project site
http://bcmon.blogspot.co.il/
it mentioned that other phones can also compile a .ko from source code and test.........
I am curious if SGS3 can also use it.......
I know now Cyanogen is still not stable for S3, ITS NOT A GOOD CHOICE FOR S3
However I havn't compile a .ko for (siyah for s3), actually I also failed to compile another module for siyah before (nsio.ko)........I stuck with siyah...= =''
seems I got problem for this.......I dont have enough experiment on android dev, but sounds like this monitor mode injection may have chance to work on SGS3?
Anyone also try it?
IF success plz share the ideas......
"ITS JUST THE BIGGEST NEWS HAPPENS THESE DAYS"
these are mentioned in the post:
Other phones
Check out the source from http://code.google.com/p/bcmon/source/checkout
Build the KO for your device (cyanogen wiki should be helpful)
If it works please tell us and send us the compiled version so we can list it here (if it doesn't work contact us)
AirCrack binaries
We bundled useful binary executables for arm:
aircrack-ng suite
tcpdump
iwconfig
FAQ
I get "Can't find wireless tools, exiting."
Solution: Make sure you have 'iwpriv' on your system, just add soft link from 'iwpriv' to 'iwconfig' (actually it is 'iwmulticall')
available on: http://bcmon.googlecode.com/svn/trunk/bundles/utils.zip
Unzip them and run: 'chmod a+x -R aircrack misc'
Update: We added a statically linked version of aircrack-ng suite.
Now you can have fun with commands like: 'airodump-ng -i eth0'
Click to expand...
Click to collapse
ynlinchen said:
Finally someone get sysfs injection successed.......
with the hard work, now SGS2 and Nexus is tested fine......
and here is the project site
http://bcmon.blogspot.co.il/
it mentioned that other phones can also compile a .ko from source code and test.........
I am curious if SGS3 can also use it.......
I know now Cyanogen is still not stable for S3, ITS NOT A GOOD CHOICE FOR S3
However I havn't compile a .ko for (siyah for s3), actually I also failed to compile another module for siyah before (nsio.ko)........I stuck with siyah...= =''
seems I got problem for this.......I dont have enough experiment on android dev, but sounds like this monitor mode injection may have chance to work on SGS3?
Anyone also try it?
IF success plz share the ideas......
"ITS JUST THE BIGGEST NEWS HAPPENS THESE DAYS"
these are mentioned in the post:
Click to expand...
Click to collapse
Sounds promising..
Sent from my GT-I9300 using xda premium
Since galaxy s2 is using broadcom4330,so is s3, we may give a hope on it!

[Q] Is it possible to install Linux Hardware drivers on Android?

Hi guys!
I hope I finally get a decend answere here... seems like german forums are of no use for such kind of questions
Here is my issue:
I got a wacom graphic tablett wich I want to use on my Android Tablet PC. Of course Android hasn't got a working driver for it, so thats why I want to install an opensource linux driver. So my first question is, if this might be possible. The linux driver is made for a 2.6 Kernel which of course is not complete the same as my 2.6 android Kernel, but are they similar enough to at least give it a try?
And I got an other question: A grafic tablett is you know... nothing else as a weird mouse so am I might be able to tell Android that it shoud use a simple mouse driver for the graphic tablett? Because my mouse is running well on it.
So thats it. Any help is appreciated!
Got any news on that? I'm facing a similar issue, but still haven't found an answer.
Doesn't work like that. Android won't know what to do with the driver or the device.
mc.escher said:
Got any news on that? I'm facing a similar issue, but still haven't found an answer.
Click to expand...
Click to collapse
You can't use the same PC drivers, because they are developed for a different platform (i386 or amd64 on PC, ARM on mobile devices).
RoberGalarga said:
You can't use the same PC drivers, because they are developed for a different platform (i386 or amd64 on PC, ARM on mobile devices).
Click to expand...
Click to collapse
063_XOBX said:
Doesn't work like that. Android won't know what to do with the driver or the device.
Click to expand...
Click to collapse
I have the linux drivers for the chipset of my usb-ethernet converter (MCS 7830).
I was thinking about cross compiling them as a module, with the arm compiler that comes with Android NDK, and then give an "insmod" on adb shell. Is it possible? Have you guys ever heard about something like that?
Thank you!
mc.escher said:
I have the linux drivers for the chipset of my usb-ethernet converter (MCS 7830).
I was thinking about cross compiling them as a module, with the arm compiler that comes with Android NDK, and then give an "insmod" on adb shell. Is it possible? Have you guys ever heard about something like that?
Thank you!
Click to expand...
Click to collapse
Try it, but I think it's not easy as that (problems with libs, memory locations or stuff like that).
RoberGalarga said:
Try it, but I think it's not easy as that (problems with libs, memory locations or stuff like that).
Click to expand...
Click to collapse
I actually did it today! Dude, that thing was tough for me, I'm such a noob on compiling custom kernels and stuff like that.
But it's not exactly using a linux driver on an android. I found a custom kernel that had the needed drivers (I'm not sure if those were the same linux drivers, or if they were adapted to android), but they weren't added to the kernel image as default. So, I compiled them as modules. I had to set a few variables on the .config file as "m", some of them weren't even there, and I had to figure out what were missing and paste them out.
Finally, after several hours struggling with compilers, makefiles and .configs, I did an "insmod mii.ko", "insmod usbnet.ko" and "insmod mcs7830.ko" and everything went fine, and now I have my usb-ethernet dongle working on my samsung galaxy s2 i9100.
I'll try to write a tutorial with all the steps I took until I reached success.
mc.escher said:
I actually did it today! Dude, that thing was tough for me, I'm such a noob on compiling custom kernels and stuff like that.
But it's not exactly using a linux driver on an android. I found a custom kernel that had the needed drivers (I'm not sure if those were the same linux drivers, or if they were adapted to android), but they weren't added to the kernel image as default. So, I compiled them as modules. I had to set a few variables on the .config file as "m", some of them weren't even there, and I had to figure out what were missing and paste them out.
Finally, after several hours struggling with compilers, makefiles and .configs, I did an "insmod mii.ko", "insmod usbnet.ko" and "insmod mcs7830.ko" and everything went fine, and now I have my usb-ethernet dongle working on my samsung galaxy s2 i9100.
I'll try to write a tutorial with all the steps I took until I reached success.
Click to expand...
Click to collapse
Dude have you written the tutorial yet?

Lenovo IdeaTab S6000-F upgrade OS -- help

Hi,
I've had this tablet for years and it got to a point where it is just paperweight (even Skype is broken for the version of Android 4.2.2. that is running). I've looked through XDA and internet in general and could not find any information on how to run TWRP or Clockwork Recovery Mod on this device as it is not officially supported. I have also not been able to find a suitable Android ROM. I've been particularly looking for Android 7 Nougat.
I have rooted the tablet using Framaroot (verified with Root Checker).
I have tried to install Clockwork Recovery Mod using ROM Manager.
I have tried to install TWRP recovery using TWRP official app and TWRP Manager.
I am aware of threads like https://forum.xda-developers.com/showpost.php?p=44660171&postcount=417 (How to install CWM on most rooted mtk devices) and I have not tried it yet.
Tablet details:
Lenovo IdeaTab S6000-F
OS: Android 4.2.2 Jelly Bean (Kernel 3.4.5)
Build number: S6000_A422_101_025_131017_WW_WiFi
SW version: S6000_130419
HW version: Lepad S6000-F
Chipset: Mediatek MT8125 (ARM Cortex-A7)
I have found some articles on the web describing how to perform the upgrade but they are all out-of-date, i.e. links don't work to ROMs and no information on how to install Clockwork or TWRP. Does anyone know how to go about this? Even getting Android 4.4 KitKat to run on this would be a big step-up.
@qumat
Because phone is powered by a MediaTek chipset, I think SP Flash Tool is the correct tool to flash a new ROM onto the phone, in conjunction with matching USB-driver provided by Lenovo for this phone.
Read also here.
jwoegerbauer said:
@qumat
Because phone is powered by a MediaTek chipset, I think SP Flash Tool is the correct tool to flash a new ROM onto the phone, in conjunction with matching USB-driver provided by Lenovo for this phone.
Read also here.
Click to expand...
Click to collapse
Thank you for your suggestion. Eventually, I managed to make a full backup of the stock ROM. Hopefully that means I will also be able to flash the tablet with a custom ROM. However, I am unable to find any for this device. Are there any options left other than building a version of Android (LineageOS or OmniROM) for this device myself?
@qumat
I'm not a ROM cook ( developer ) but as far as I know you need the specific source code for that device to compile ROMs. What would require MediaTek / Lenovo has made it public.
Does that mean that there is nothing that can be done in this case?
I have managed to install ClockworkMod Recovery. Also, I found the source code for this tablet on the official Lenovo support website. I have tried to unlock the bootloader but regardless of what I do nothing happens. It seems as if the bootloader was not locked in the first place, there is no status displayed when I fastboot and none of the show version fastboot PC commands work. The PC connects without any issues, I can see the device ID both using adb and fastboot but unlock-related commands do nothing.
I now have the source code and installed ClockworkMod Recovery. Do I have everything I need to build LineageOS or OmniRom for this device? What is the best way I should go about doing it?
@qumat
Look inside Android's system file named build.prop for entry ro.oem_unlock_supported: This entry is set to "0" if flashing unlock is not supported on
the device or "1" if flashing unlock is supported. NOTE: This property is set by Android kernel.
jwoegerbauer said:
@qumat
Look inside Android's system file named build.prop for entry ro.oem_unlock_supported: This entry is set to "0" if flashing unlock is not supported on
the device or "1" if flashing unlock is supported. NOTE: This property is set by Android kernel.
Click to expand...
Click to collapse
There is no such entry in build.prop. In fact there are no entries that contain the word "oem".
qumat said:
There is no such entry in build.prop. In fact there are no entries that contain the word "oem".
Click to expand...
Click to collapse
Then look in file default.prop.
jwoegerbauer said:
Then look in file default.prop.
Click to expand...
Click to collapse
Also no such entries. "default.prop" entries below:
#
# ADDITIONAL_DEFAULT_PROPERTIES
#
ro.secure=1
ro.allow.mock.location=0
persist.mtk.aee.aed=on
ro.debuggable=0
persist.sys.usb.config=mtp
persist.service.acm.enable=0
ro.mount.fs=EXT4
I could not find any other default.prop or build.prop files on the device.
Hi qumat,
Did you get any solution so far? I am very much in the same boat in which you are. I also have Lenovo IdeaTab S6000-F and looking forward to upgrading the same.
My Tablet details are:
Lenovo IdeaTab S6000-F
OS: Android 4.2.2 Jelly Bean (Kernel 3.4.5)
Build number: S6000_A422_101_025_131017_WW_WiFi
SW version: S6000_130419
HW version: Lepad S6000-F
Thanks,
Mohit
@Mohit1110
I have not yet. I have a feeling that the bootloader is not locked in the first place on this device, there simply is no mention of any bootloader lock anywhere on it. I have not tried compiling the source code from the Lenovo support site yet. Mediatek seem to be utterly awful at providing their binaries/source code so it is an infamous platform to do anything with. I (or anyone else) will have to try to compile it and check that everything needed is in fact there. If there are binaries missing then probably nothing can be done.
First I need to figure out how to actually compile that Lenovo source code...
Thanks for the reply qumat. I have always used the proprietary OS comes with the device itself and this is the first time I am looking for Custom OS. All the terms you used are jargon for me.
Request you to please keep posting here so that I and other users can also learn from your experience about the same.
Please share the links where have you downloaded the said software in your previous post about Flash,AWB and Source Code.
Additionally can't we build the latest android source code from the Android website, instead of taking from Lenovo. Is there any benefit of taking code from Lenovo?
In case somehow if I build the latest android code, would that work for the tablet? I have no clue, do you have any idea?
BTW, how can I check the Hardware used on the tablet, like you mentioned it is using Mediatek
Any Progress?
qumat said:
@Mohit1110
I have not yet. I have a feeling that the bootloader is not locked in the first place on this device, there simply is no mention of any bootloader lock anywhere on it. I have not tried compiling the source code from the Lenovo support site yet. Mediatek seem to be utterly awful at providing their binaries/source code so it is an infamous platform to do anything with. I (or anyone else) will have to try to compile it and check that everything needed is in fact there. If there are binaries missing then probably nothing can be done.
First I need to figure out how to actually compile that Lenovo source code...
Click to expand...
Click to collapse
Hi Qumat,
Were you able to manage to make some progress? Could you please guide me as well on how to install better version of Android on my Lenovo Tab?
Thanks,
Mohit
Lenovo IdeaTab S6000-F
Guys,
I am also wanting to upgrade the OS on mine. No issues with the tablet working, just want to experiment with a new ROM and maybe upgrade the kernel version if possible.
IdeaTab S6000-F
Android version 4.2.2
Kernel version 3.4.5
Build Number
S6000_A422_101_025_131017_WW_WiFi
Software version
S6000_130419
Hardware Version
Lepad S6000-F
Thanks
Mohit1110 said:
Hi Qumat,
Were you able to manage to make some progress? Could you please guide me as well on how to install better version of Android on my Lenovo Tab?
Thanks,
Mohit
Click to expand...
Click to collapse
I also still have this device (using it mainly as a digital photo frame) after I learned that there were no custom roms available for it. I have managed to flash Superuser for root and CWM though, but that was the extent of it.
I am the owner of another one of those paperweights. It would make a nice ebook reader. If there is an update on this tablet, please post here.
Me too... I'ts a shame but I could not find any updates for it... :-(
I also have the same problem, Lenvo S6000-h looking for updated firmware, i am also very new to this. Has anyone found something for this tablet?

Categories

Resources