[Q] [SH] Script - Nexus 4 Q&A, Help & Troubleshooting

Hi,
Is it possible to run .SH file in Android Phone? I am trying to update WiFi driver. I have downloaded this: https://dl.google.com/dl/android/aosp/qcom-mako-kot49h-e7a74920.tgz
Is it even possible to update this driver? You will ask why?
I have some difficulties with connecting N4 to my router and want to check if it will work.
Thanks in advance.

That script is designed to be run on a linux computer it's a self extracting tar.gz file
Should work on an android phone too though, run through terminal emulator or adb shell.
There's a lot of libraries inside it. Don't know enough about it to know what they're for.
The tar.gz file is here if you're interested https://dl.dropboxusercontent.com/u/22080986/extract-qcom-mako.tar.gz

Link to dropbox is not working.

It is now, Pretty sure these are just the binaries for if you're building from source, and already included in latest update.

Not so sure. CM 10.2 is working with my router without aby problem, while stick 4.4.2 is not. :-\

Related

[Q] Is it possible to patch files within System.ext2

What I`m trying to do is change the bluetooth setup in darkstones FroyoV1 to the same as mattcfroyo. Basically that is the only build that works with my cars bluetooth kit every other one doesn`t work. However it tends to crash on me. I have read and extracted the bluetooth and brcm bluetooth services using explore2fs (I`m on Win 7) that gives me both .apk and .odex files, though FV1 only uses .apk files. Is there a way to patch them in? I did try to use Astro but it wouldn`t. I had a read through the development thread but it might as well have been written in Klingon.
Edit: Ok now I`m thinking I need to be using ADB from the SDK
I used root manager for this sort of operations. I am also interested in this bluetooth port you try to achieve. Could you please upload the files somewhere so I could try it myself.
Thanks and good luck
Sent from my HTC HD2 using TapaTalk
Fall Guy said:
Edit: Ok now I`m thinking I need to be using ADB from the SDK
Click to expand...
Click to collapse
Code:
adb install whatever.apk
Ok more tricky than I`d hoped.
Can`t just install over the top won`t let me, can`t install -r as certificates don`t match. Push doesn`t seem to do anything that I can tell but not sure enough about the directory setup to be sure I`m trying to push it to the right place. And there doesn`t seem to be a delete option.
http://www.megafileupload.com/en/file/257992/Bluetooth-zip.html
Link to extracted files as requested though there may be others needed as well

[Q] Acer Iconia Factory reset and now no WIFI

HI Guys,
Maybe somewhat can help me out here, in my attempt to update my Acer A500, I may have in a kind of way bricked my phone. I attempted to replace wpa_supplicant file as per some of the instructions, needless to say the update failed and me in my pure genius figure I would simply factory reset and reboot. Which I ended up doing, the problem now is that the WIFI does not turn on and my tab has been unrooted, I no longer have any file explorer app on the phone and I can't download anything. Does anybody know how I can gain access to the root files so that I may revert back the old file, or somehow install an apk file from the mini sdcard or even get access to the internet via bluetooth or USB. Anything would be helpful.
FYI - I am trying to gain access to my root files using Android SDK, but I've always had problems getting any of my pc to find any of the android stuff when plugged in.
Ph0tin0 said:
HI Guys,
Maybe somewhat can help me out here, in my attempt to update my Acer A500, I may have in a kind of way bricked my phone. I attempted to replace wpa_supplicant file as per some of the instructions, needless to say the update failed and me in my pure genius figure I would simply factory reset and reboot. Which I ended up doing, the problem now is that the WIFI does not turn on and my tab has been unrooted, I no longer have any file explorer app on the phone and I can't download anything. Does anybody know how I can gain access to the root files so that I may revert back the old file, or somehow install an apk file from the mini sdcard or even get access to the internet via bluetooth or USB. Anything would be helpful.
FYI - I am trying to gain access to my root files using Android SDK, but I've always had problems getting any of my pc to find any of the android stuff when plugged in.
Click to expand...
Click to collapse
I was in this court just yesterday, swearing up and down for some reason.
You'll need the root explorer apk, gingerbreak apk and the original wpa_supplicant file posted all over XDA.
Download and install Android SDK. It will also make you download the Java SDK too before you install the Android one. Start installing the Android SDK. It will seem like it's going to take forever, but you really only need what's in the folders 2 minutes in.
Go into the program files folder where the SDK stuff is and rip the 3 ADB files out and place them in their own folder. Mine were in: c:\program files\android\android-sdk\platform-tools\
I took the 3 files out and placed them in c:\and\
Place the apks in the c:\and\ folder
Make sure the driver files are installed from the Acer website.
Make sure USB bugging and apps from outside sources are enabled in settings on the tab.
Plug the tab into the PC via USB.
Open up the command prompt and go to the c:\and\ folder
then type
adb install c:\and\rootexplorer.apk
ENTER
then
adb install c:\and\gingerbreak-v1.20.apk
ENTER
The apps should be now installed on the tab.
Then just transfer the wpa_supplicant file over and you're right where you need to be.
Make sure you change the permissions on the wpa_supplicant file like you did the first time (enable everything read/write/etc etc) by holding on the wpa_supplicant file that you paste.
rorytmeadows said:
Open up the command prompt and go to the c:\and\ folder
then type
adb install c:\and\rootexplorer.apk
ENTER
then
adb install c:\and\gingerbreak-v1.20.apk
ENTER
The apps should be now installed on the tab.
Then just transfer the wpa_supplicant file over and you're right where you need to be.
Make sure you change the permissions on the wpa_supplicant file like you did the first time (enable everything read/write/etc etc) by holding on the wpa_supplicant file that you paste.
Click to expand...
Click to collapse
You are my new hero, all this time I've been trying to get Android ADK to recognize my tablet, but to no success. All I had to do was run ADB, which Ironically I had done, but only to see if it recognizes my unit. I was not aware I can install apps with it.
I'm not worthy... I'm not worthy
A million thank you's, now to try and get 3.1 installed and hopefully Googel/android was smart enough to put in a stock file explorer.
Not working wifi hardware
Somewhat similar to what happened to this guy. But to be specific, I am using an acer a500 originally on a rooted ics 4.0.3, i remember using lucky patcher and using the custom patch on adobe flash player then i saw an update regarding busybox and superSU...i was able to install the busybox updater but not the superSU since i remembered i already had superuser. I opened superuser and then it updated...from then on...I lost my wifi...at start it was still there but it can't connect. also, i lost my root because i no longer am able to use titanium backup. double checking it, i downloaded a root checker and it displayed not properly rooted. seeing this, i thought it's been a long time since i've updated my rom so i might as well upgrade everything...my bootloader, kernel, rom. So i first degraded it by flashing to the full package stock HC 3.1 ROM (it had an old HC 3.1 bootloader). Then i noticed i can no longer turn on my wifi and use my old apps...I flashed it back to a NON-rooted stock ics 4.0.3 thinking it might fix it...but it did not. HELP please...

Ultimate guide to get Ubuntu and Busybox on your samsung galaxy tab 10.1

this is an easy pease guide to install Ubuntu with working Busybox on your samsung galaxy Tab 10.1
Requirements:
A rooted device (there are lots op threads on xda on how to root your 10.1)
after rooting download Ubuntu installer Free
the second app you need to download is busybox installer
and third you will need to download and install android-vnc you will need this to view the ubuntu after instalation
and then last but not least you can download a overclocking kernel to make things work smoother. there is a thread in xda about this.
and then download the setcpu.apk file. search it on google.
If you have any trouble finding the correct apps and kernels please post in your reply and I will give you the links to the kernels I am using uploaded by myself for you to download
Okay so lets get this party started
okay so after rooting your device install the Ubuntu Installer Free and follow the promts. it is an easy to use app which guides you to 3 downloads. the first download is the ubuntu.sh file. and then there are two links to download the ubuntu image. If you want a light (not good looking) version of ubuntu download the smaller image (the second option of the downloads).
If you want the gnome (sexy looking ubuntu) download the third option.
while you are downloading the files GO AHEAD and install the BusyBox installer app. then choose the 1.18.4 version and install it into you system/bin directory. it will give you the directory in a list to choose. once thats done install the same version again but in the system/xbin directory.
while you wait for ubuntu installer to download the images for you go ahead and search for that nifty overclock kernel. make sure IT IS NOT the one from zedomax because then you will have no screen rotate ability. look for an overclock kernel that has ov_oa in its description. once again post in this thread if you are having troubles and i will upload my kernel.
So after ubuntu installer has downloaded files go ahead and extract them into the /sdcard/ubuntu folder (you will have to create the folder)
after you have extracted the files into /sdcard/ubuntu folder (this directory is in the root of your tab. you do not have to create a folder in the root saying /sdcard/ubuntu. you can just make a folder named Ubuntu and drop the files in there.
so after plainc the files into the Ubuntu folder go to you terminal on your device. if you dont have a terminal you can download it from the market for free. its called android terminal.
in the terminal tipe the following
su
cd /sdcard/ubuntu
sh ubuntu.sh
if you have correct busybox installed you will get a prompt that asks you for the screen size. make the screen size 1280x800
then IF it gives you a choise between lightlinux or Gnome. select option 2. gnome
after that done open android vnc and set the following
name: ubi
password: ubuntu
adress: localhost
port: 5900
and then select connect.
and congratulations. everything was perfect. if not. pm me or reply in this thread for support.
Have you test it on Galaxy Tab 8.9
Hi. it will work on the galaxy Tab 8.9. just follow the same steps and make sure your device is rooted. as for the overclocking on the 8.9 I am not sure what the steps are
Was just wondering how much space does an installation like that take up? And will an Ubuntu install like that actually support everything that "normal" Ubuntu does (for instance compiling python, c, etc. on the device?). What about programs that work with Ubuntu on a PC, will they work on the Tab as well?
it takes up to 4gig of your storage. the ubuntu for the tab is ubuntu 10 Gnome. so everything works as normal ubuntu 10 would work. python and all those compiling programs will work. if you connect a mouse and keyboard to you tab it would work the same way as it would on a pc.
llewelyn12 said:
it takes up to 4gig of your storage. the ubuntu for the tab is ubuntu 10 Gnome. so everything works as normal ubuntu 10 would work. python and all those compiling programs will work. if you connect a mouse and keyboard to you tab it would work the same way as it would on a pc.
Click to expand...
Click to collapse
Nice, will give it a try to see if I can get some of my pygame projects to work (just for the kicks of it) .
I'm guessing you can't use the virtual keyboard with it though right? You need a hardware one? Or maybe, you could download a virtual keyboard for Ubuntu and see if that works ... hmm ... testing time! ^_^
PS: Do you know which desktop environment is used in the light version? Since I have the 16GB tab and I'd mostly use linux through the command prompt to program some basic stuff etc. I wouldn't really need a good desktop interface, just enough to run some graphic stuff when needed. Plus a lightweight DE would run faster
there is an awesome virtual keyboard you can download its called florence. it look ssexy and works good for me.but i stil prefer the manual keyboard.
Check out this pic. It gives an on screen keyboard
Sent from my GT-P7500 using XDA
Does the touchscreen work alright? I remember the native port had troubles with it.
Okay, after a bit of testing I thought I'd share my findings.
The installation was really simple, even though I had problems at first due to a wrong Busybox version - but I downgraded to 1.18.4 and it worked just fine.
I've tried both the "full" install and the "small" one. Both installed without problems, but the "full" one noticeably slower, even when running LXDE desktop environment. Guess that's one of the prices you have to pay for a system with way more applications. Apart from being kinda slow, mostly everything worked fine, the only problem I found was that if you wanted to change the background color of the terminal (the transparent thing wasn't doing it for me) it crashed. Otherwise I've tried out firefox, thunderbird etc. and it all worked fine.
On the "small" install, things seemed faster, CPU/memory was definitely stressed much less then in the full version. But, I ran into a quite big problem - terminals inside the GUI don't work at all. Everytime I run the lxterminal (tried installing some other terminals too, same problem) it starts up, but doesn't do anything. It doesn't even show the usual prompt (for instance "[email protected]>" or something like that). That means you can't run any terminal commands or apps (like top) through the GUI. You CAN however, run apt-get install through the terminal emulator you used to start the whole thing up.
So I worked around the problem by installing stuff from the terminal emulator, then trying it out in the GUI. It works, but it's definitely a real setback, since you can't even do simple stuff like "python test.py" etc. (well, you can through the terminal emulator in android, but then you're limited to text stuff, can't start up tkinter or pygame for instance).
I've managed to run a simple game made in pygame, and it actually had around 20 fps, but since you're looking at it through android-vnc, there's no way for stuff like that to be playable. Felt nice to see your python work on android, especially if you're not on good terms with Java .
I'd also recommend setting the resolution to something smaller, since you have to take the status bar into account - if you don't do that, you'll have to "scroll" up and down to see the whole screen - I've settled on 1280x720, seems to work fine for me.
Another problem I've noticed is that the Esc, F1, F2, ..., F12 keys didn't work inside linux (I'm using an Apple Wireless keyboard). Also, I couldn't play any music files (wanted to see if voice was working).
I'll definitely play around with this a bit more, and I can see myself using this (probably directly through the android terminal emulator, since it detects all my keyboard keys and has auto-completion etc.) for some non graphical programming in Python and C on the move, even without a hardware keyboard it's manageable.
What about anyone else? Did you try it out and what did you think? Anyone has any solutions to my terminal and special keys problem?
PS: Touchscreen doesn't have any problems, you have a few different input modes that you can play around, I haven't found one that would suit me perfectly though (the one I like best can't right click it seems). Ah well, nothing's perfect
Wow man, thanks for your feedback and support! there is a keyboard you can download inside software centre that gives you all the cool keys you would need. but seeing that you cannot use the lxterminal it pretty useless. ill see what I can find out about that but in the meantime thanks a lot for the feedback
nightmarebadger said:
Nice, will give it a try to see if I can get some of my pygame projects to work (just for the kicks of it) .
I'm guessing you can't use the virtual keyboard with it though right? You need a hardware one? Or maybe, you could download a virtual keyboard for Ubuntu and see if that works ... hmm ... testing time! ^_^
PS: Do you know which desktop environment is used in the light version? Since I have the 16GB tab and I'd mostly use linux through the command prompt to program some basic stuff etc. I wouldn't really need a good desktop interface, just enough to run some graphic stuff when needed. Plus a lightweight DE would run faster
Click to expand...
Click to collapse
I don't have the tablet (yet-hopefully gonna get one soon) but I'd suggest trying e17 (enlightenment) as your desktop environment. It is lightweight (at least compared to GNOME and KDE), IMO it looks nicer than other lightweight DE's (though the default mouse navigation style is not typical) and it has a touchscreen option/version/interface (don't exactly know what to call it). I have never tried the touchscreen version, but I have seen some screenshots and when I tried it out on a regular computer it asked if I want the touchscreen UI or the normal one. AFAIK it has its own onscreen keyboard (haven't tried it). I'm pretty sure gnome has one as well (somewhere in accessibility)
nightmarebadger said:
Okay, after a bit of testing I thought I'd share my findings.
The installation was really simple, even though I had problems at first due to a wrong Busybox version - but I downgraded to 1.18.4 and it worked just fine....
Click to expand...
Click to collapse
Badger, thanks for the mention of downgrading to 1.18.4. Thanks sent to you and the OP
I got it to run fine on my E4GT phone using 1.19.4 but it did not want to work on the Tab. I found that the following apps worked best on my Tab:
1. BusyBox (by Stephen Stericson) - just run this and even if you have 1.19.4 just use the drop down to select 1.18.4 and it will copy over it for you.
(Do not use the uninstall option as it is not needed and can cause problems)
2. Android Terminal Emulator (by Jack Palevich)
3. android-vnc-viewer (by androidVNC team + antlersoft)
Other apps may work but I have found the combination of these 3 to get ubuntu running on my Tab10 just fine.
btw Badger... I am with you 100% on not being on good terms with java
Graphics problem
I've installed this on my Samsung Galaxy Tab 8.9. I seem to have it operating OK but the graphics seem to not be working. The icons on the left are a black and white blur. I have changed the colour format to all of the different settings and no luck - any ideas? Thanks.
Permission Denied
When trying to bootubuntu I keep getting permission denied. I was skipping the su step, as I was following someone elses instructions, and I am now getting farther, but still permission denied at bootunbuntu. I haven't tried a linux flavor since red hat almost 10 years ago, and I was no guru then, so I'm sure whatever I'm missing will be rediculous...
wat kernel
llewelyn12 said:
this is an easy pease guide to install Ubuntu with working Busybox on your samsung galaxy Tab 10.1
Requirements:
A rooted device (there are lots op threads on xda on how to root your 10.1)
after rooting download Ubuntu installer Free
the second app you need to download is busybox installer
and third you will need to download and install android-vnc you will need this to view the ubuntu after instalation
and then last but not least you can download a overclocking kernel to make things work smoother. there is a thread in xda about this.
and then download the setcpu.apk file. search it on google.
If you have any trouble finding the correct apps and kernels please post in your reply and I will give you the links to the kernels I am using uploaded by myself for you to download
Okay so lets get this party started
okay so after rooting your device install the Ubuntu Installer Free and follow the promts. it is an easy to use app which guides you to 3 downloads. the first download is the ubuntu.sh file. and then there are two links to download the ubuntu image. If you want a light (not good looking) version of ubuntu download the smaller image (the second option of the downloads).
If you want the gnome (sexy looking ubuntu) download the third option.
while you are downloading the files GO AHEAD and install the BusyBox installer app. then choose the 1.18.4 version and install it into you system/bin directory. it will give you the directory in a list to choose. once thats done install the same version again but in the system/xbin directory.
while you wait for ubuntu installer to download the images for you go ahead and search for that nifty overclock kernel. make sure IT IS NOT the one from zedomax because then you will have no screen rotate ability. look for an overclock kernel that has ov_oa in its description. once again post in this thread if you are having troubles and i will upload my kernel.
So after ubuntu installer has downloaded files go ahead and extract them into the /sdcard/ubuntu folder (you will have to create the folder)
after you have extracted the files into /sdcard/ubuntu folder (this directory is in the root of your tab. you do not have to create a folder in the root saying /sdcard/ubuntu. you can just make a folder named Ubuntu and drop the files in there.
so after plainc the files into the Ubuntu folder go to you terminal on your device. if you dont have a terminal you can download it from the market for free. its called android terminal.
in the terminal tipe the following
su
cd /sdcard/ubuntu
sh ubuntu.sh
if you have correct busybox installed you will get a prompt that asks you for the screen size. make the screen size 1280x800
then IF it gives you a choise between lightlinux or Gnome. select option 2. gnome
after that done open android vnc and set the following
name: ubi
password: ubuntu
adress: localhost
port: 5900
and then select connect.
and congratulations. everything was perfect. if not. pm me or reply in this thread for support.
Click to expand...
Click to collapse
Im having problem, terminal emulator say loop missing.
So plz provide me kernel link and name os version on wich tat kernal need to b flashed
model: samsung galaxy tab 10.1 3g (gt-p7500).
help me for loop supporte kernal
sriabhi said:
Im having problem, terminal emulator say loop missing.
So plz provide me kernel link and name os version on wich tat kernal need to b flashed
model: samsung galaxy tab 10.1 3g (gt-p7500).
Click to expand...
Click to collapse
Hello sir,
I need a kernal for loop support on samsung galaxy tab 10.1 3g
(model: gt-p7500).
Plz send me link for kernal and tell me on what rom that kernal
has to be flashed.
can you please direct me to the Ubuntu Installer Free? Can't seem to find it on Play market.
komorka said:
can you please direct me to the Ubuntu Installer Free? Can't seem to find it on Play market.
Click to expand...
Click to collapse
It's called "Lunux Ultimate Installer" now...or something along those lines anways. If you search for Ubuntu Installer, it comes up.
llewelyn12 said:
this is an easy pease guide to install Ubuntu with working Busybox on your samsung galaxy Tab 10.1
Requirements:
A rooted device (there are lots op threads on xda on how to root your 10.1)
after rooting download Ubuntu installer Free
the second app you need to download is busybox installer
and third you will need to download and install android-vnc you will need this to view the ubuntu after instalation
and then last but not least you can download a overclocking kernel to make things work smoother. there is a thread in xda about this.
and then download the setcpu.apk file. search it on google.
If you have any trouble finding the correct apps and kernels please post in your reply and I will give you the links to the kernels I am using uploaded by myself for you to download
Okay so lets get this party started
okay so after rooting your device install the Ubuntu Installer Free and follow the promts. it is an easy to use app which guides you to 3 downloads. the first download is the ubuntu.sh file. and then there are two links to download the ubuntu image. If you want a light (not good looking) version of ubuntu download the smaller image (the second option of the downloads).
If you want the gnome (sexy looking ubuntu) download the third option.
while you are downloading the files GO AHEAD and install the BusyBox installer app. then choose the 1.18.4 version and install it into you system/bin directory. it will give you the directory in a list to choose. once thats done install the same version again but in the system/xbin directory.
while you wait for ubuntu installer to download the images for you go ahead and search for that nifty overclock kernel. make sure IT IS NOT the one from zedomax because then you will have no screen rotate ability. look for an overclock kernel that has ov_oa in its description. once again post in this thread if you are having troubles and i will upload my kernel.
So after ubuntu installer has downloaded files go ahead and extract them into the /sdcard/ubuntu folder (you will have to create the folder)
after you have extracted the files into /sdcard/ubuntu folder (this directory is in the root of your tab. you do not have to create a folder in the root saying /sdcard/ubuntu. you can just make a folder named Ubuntu and drop the files in there.
so after plainc the files into the Ubuntu folder go to you terminal on your device. if you dont have a terminal you can download it from the market for free. its called android terminal.
in the terminal tipe the following
su
cd /sdcard/ubuntu
sh ubuntu.sh
if you have correct busybox installed you will get a prompt that asks you for the screen size. make the screen size 1280x800
then IF it gives you a choise between lightlinux or Gnome. select option 2. gnome
after that done open android vnc and set the following
name: ubi
password: ubuntu
adress: localhost
port: 5900
and then select connect.
and congratulations. everything was perfect. if not. pm me or reply in this thread for support.
Click to expand...
Click to collapse
I need the download files to run ubuntu on my galalaxy tab 3 10.1. thanks.

How to build AOSP for Nexus 7?

I would like to mess with trying to install my own customized ROM's to my Nexus 7, but the first place to probably start is with being able to build AOSP as-is from source.
As I understand currently, building is only supported on Linux and OS X, but I can easily get Ubuntu 10.04 and re-partition my HDD to give it about 100GB (if that much is even needed).
Looking at:
http://source.android.com/source/initializing.html
I need to choose a branch and setup the Linux environment. I'm a bit confused as to what branch I should choose though. I want the latest source of Android available at the time, so I should pick the master branch? Or since I'm only building for the Nexus 7, should I choose it's device-specific branch instead? Although looking at:
http://source.android.com/source/build-numbers.html
the Nexus 7 is only at android-4.1.1_r1.1, but I could of sworn I heard there was r4 out already.
As for setting up the Linux environment, I hope I can just follow all the commands listed there without any problem.
Proceeding on with:
http://source.android.com/source/downloading.html
It looks like a pretty straightforward process that I'm also hoping can be done successfully if I follow the commands exactly as presented. I don't have a proxy nor the need for a local mirror either.
And then moving onto:
http://source.android.com/source/building-devices.html
Some stuff there I find a little bit confusing. It would seem I have to first get proprietary drivers, which all 4 seem to be placed conveniently at:
https://developers.google.com/android/nexus/drivers#grouper
From there, I imagine I can move the script that's bundled inside to the root of the source folder, run it, and follow the instructions. I don't exactly know what the root of the source folder is, but it would probably be obvious once I did start trying to build this. But once I did find it, I would run (using Nvidia's Graphics driver for the example) sh extract-nvidia-grouper.sh in Terminal, and it would place the right files where they need to be.
I don't understand the make clobber part too well at all; should I run this on the very first build, later builds, or all builds?
And once the source and drivers are all downloaded and available, I should then run lunch full_grouper-userdebug and then finally make -j# (# being some number in accordance with how many cores on my CPU I have). I have a triple-core CPU at 3.5Ghz, and I have the ability to unlock to quad-core at 3.3Ghz (but prefer to stay on triple). Should I just run -j32? Also will this build the Kernel as well, or will I have to get the source for that and compile it separately?
And once the build completes, my plan from there was to just go back to Windows and flash it. And if I managed to get it to flash and boot properly, I assume I would of succeeded with compiling AOSP from source
I noticed that userdebug part on full_grouper-userdebug gives "root access and debuggability". Does this mean it comes with some program like Superuser or SuperSU already installed? Or does this mean I can easily install those?
Perhaps after I get comfortable with the basics of flashing AOSP as-is, I can then try to mess with different types of optimizations, like Linaro and perhaps even messing with many types of optimizations from different kernels like faux123 has done .
I also have a 360kb/s DSL connection, so downloading the entire source the first time will probably take a good while. But once I have the source, I take it I don't have to redownload the entire thing for patches and stuff?
Any and all guidance is welcome
Bump before I go for tonight
Bump
You have a bunch of questions. I will answer some. And while I whole-heartedly support learning to build you don't need to build to flash roms.
The best advice I can give you is to just start building. You have found a bunch of instructions and links, obviously. Go ahead and begin, and tackle problems as they arise.
Environment
Okay...really the hardest part is setting upi the environment, if you don' t know linux. After downloading and installing Java and the SDK, make sure you add them to your path.
Most guides will have adding the path in the directions. But make sure to check that it works! It will be extremely frustrating, and you won't know what is wrong. Go to a random directory, Documents would be good, and enter java -version and then adb devices. If the computer says it cannot find the commands, then your path is the problem.
Make sure to setup udev. It is easy, Google it.
Building
Branch
You want to build from the tags.
Code:
repo init -u https://android.googlesource.com/platform/manifest -b android-4.1.1_r4
For the proprietary blobs, whatever directory you repo sync from (~/android/system or whatever) is the root directory. run the extraction from there.
when the proprietary blobs are extracted, and the source has been downloaded, these are your commands.
Code:
. build/envsetup.sh
lunch
Lunch will return a list of devices, Grouper is the Nexus 7, it is number 4. eng and user-debug do have root access, but SU and SuperSU are more than just root, they manage the root access for your apps as well. You can download them from Play or install them as a flashable-zip.
Choose 4 and then
Code:
make otapackage
don't worry about the -j# part. Your machine almost definitley cannot handle -j32. It is -j4 by default, that should be fine for your cpu.
If you want to enable faster builds, you can enter
ENABLE_CCACHE=1
before make otapackage, but it will take up a lot of space on your hd. Your subsequent builds will use some thing from your intial build instead of rebuilding them each time (kernel and other things). So even if you repo sync, some changes won't be reflected in your later builds. For instance, if you do not clean your prebuilts and build system, your build date in the build.prop will always stay the same as the first build.
The way you clear the build directory and make new everything is with make clean or make clobber. You can run it before any build, but the build will take much much longer than one that uses prebuilts. Non-clobbered and with ccache enabled are the fastest of all. But subsequent builds are pretty fast even without ccache.
When you want to update your source, you can just go to your root dir and repo sync. It will only update your source, it won't take nearly as long.
Okay, I answered more than I intended. There are a million guides that show you every step in the process.
Don't ask anymore generic worry questions...you're ready. You understand more than most people do before their first build before I even posted. Get started and if you run into problems, search. If you can't find the answer, then come back and ask us.
Good luck. it is easy, and very satisfying.
I finally got around to installing a Virtual Machine, and Ubuntu 10.04 After doing that, I fully updated Ubuntu, installed VMWare Tools, and then proceeded to start trying to acquire the AOSP source.
Getting sun-java-6 was a bit tricky, but not too hard (I ran the commands exactly as listed on the site, but the package didn't exist; had to get it from somewhere else). After that, I proceeded to do everything else, except CCache (I didn't know what .bashrc was, but I'll look further into this with future AOSP builds).
I then made the folder, did repo sync, and I'm now acquiring the source now from android-4.1.1_r4. As a quick question, does it matter whether I choose to build from android-4.1.1_r4, or master? Would master be more up-to-date?
espionage724 said:
I finally got around to installing a Virtual Machine, and Ubuntu 10.04 After doing that, I fully updated Ubuntu, installed VMWare Tools, and then proceeded to start trying to acquire the AOSP source.
Getting sun-java-6 was a bit tricky, but not too hard (I ran the commands exactly as listed on the site, but the package didn't exist; had to get it from somewhere else). After that, I proceeded to do everything else, except CCache (I didn't know what .bashrc was, but I'll look further into this with future AOSP builds).
I then made the folder, did repo sync, and I'm now acquiring the source now from android-4.1.1_r4. As a quick question, does it matter whether I choose to build from android-4.1.1_r4, or master? Would master be more up-to-date?
Click to expand...
Click to collapse
Sorry for late answer, no, use the r4 branch as it is more up to date. Also, make clobber every time isn't needed but you should as it remove then entire out folder (wich is where compiled stuff go) and this make sure you rebuild a clean thing.
Building CyanogenMod 10
Dunno if this is of any interest, but I have a thread started with a complete walkthrough for building CyanogenMod10 for Nexus 7.
Most of the info is the same, and there are some tips in the comments as well.
espionage724 said:
I would like to mess with trying to install my own customized ROM's to my Nexus 7, but the first place to probably start is with being able to build AOSP as-is from source.
Click to expand...
Click to collapse
So, how did you get on? I've been following the same path I think - repo sync the source and follow Google's own tutorial on compiling Android but with the added step of incorporating the binary drivers for the grouper.
I've built the .img files using make -j8, that all works, fastboot flash worked, but I get no video out when booting up using the new OS. I can ADB into the Nexus and it's certainly booted and working okay apart from, I'm guessing, the missing binary drivers.
I've used each of the 5 binary driver scripts to populate the "vendor" directory in the root of the downloaded source before compiling from scratch, but perhaps I've missed a step, so I'm curious as to whether you've got a fully working AOSP+binary driver compile working.
(By the way, my build environment was Ubuntu 12.04 64bit, SDK r20.0.3, Android 4.1.1 (JRO03R) source, Sun Java 1.6, and it all seems to work well using 8 threads on a Core i5 2500K + 4GB RAM).
Edit:
I re-ran the binary extraction, did a make clean; make clobber, and re-compiled - and now video works. Everything works now apart from the compass, camera and rotation sensor. I also tried compiling CyanogenMod from source, too, and had the exact same three problems. Everything works, and works well, apart from camera, compass and rotation sensor. All of which work in the stock Google ROM. Weird.
OK, So I've just compiled an OTA update package from AOSP source... my question is this:
I already have unlocked the bootloader on my wife's Nexus 7, installed Clockworkmod, rooted it, installed busybox, etc, manually on the stock 4.2 update I downloaded from Google on the device when it asked me to upgrade.
Is the otapackage I just compiled going to replace my custom recovery if I flash it as is? I've looked, and it has a "recovery" folder in the .zip, whereas any of the custom ROMs I have downloaded for my phone do not. Do I simply delete this recovery folder, and flash away? Do I need to edit the updater-script? I'm still trying to read and learn about this, but I haven't gotten a good answer from google or searching this site for my specific problem... maybe I'm wording my searches incorrectly.
I would just rather not have to go back and reinstall Clockworkmod... I know that if I want to have busybox, SuperSU, and other apps installed when I flash I'm going to have to add them to the zip and resign... I just don't want to mess my recovery. And being that this is my wife's tab (and not mine to play with, as she pointed out ) I don't want her to get the impression that I'm having to "fix" something I "broke" lol.
hallowed.mh said:
OK, So I've just compiled an OTA update package from AOSP source... my question is this:
I already have unlocked the bootloader on my wife's Nexus 7, installed Clockworkmod, rooted it, installed busybox, etc, manually on the stock 4.2 update I downloaded from Google on the device when it asked me to upgrade.
Is the otapackage I just compiled going to replace my custom recovery if I flash it as is? I've looked, and it has a "recovery" folder in the .zip, whereas any of the custom ROMs I have downloaded for my phone do not. Do I simply delete this recovery folder, and flash away? Do I need to edit the updater-script? I'm still trying to read and learn about this, but I haven't gotten a good answer from google or searching this site for my specific problem... maybe I'm wording my searches incorrectly.
I would just rather not have to go back and reinstall Clockworkmod... I know that if I want to have busybox, SuperSU, and other apps installed when I flash I'm going to have to add them to the zip and resign... I just don't want to mess my recovery. And being that this is my wife's tab (and not mine to play with, as she pointed out ) I don't want her to get the impression that I'm having to "fix" something I "broke" lol.
Click to expand...
Click to collapse
Sorry if a bit late, but here are some answers:
yes, the rom will replace your recovery. but if you delete the recovery folder and delete every line containing the word "recovery" in the updater-script, you should be good to go.
And if you accidentally remove the recovery, you can always flash it back very easily using: "fastboot flash recovery [filename.img]" (your n7 has to be in the bootloader)
And again, yes, you will have to put the extra apps into the zip and update the updater-script to install them too.
Also, you will need the gapps package if you want to use the play store and other google apps.
Hope this helped
Nexus 7 3G does not boot after flashing AOSP
Hi,
I followed the steps provided on source.android.com to build and flash the AOSP for Nexus 7 3G Tilapia. After successful flash, the device does not show anything after Google logo. Please help me out.
Thanks,
Veeren
Compile with ccache makes build time extremely fast.
How to do:
_Open a terminal
_Install ccache:
sudo apt-get install ccache
_Open .bashrc:
sudo gedit ~/.bashrc
_Add these lines:
#ccache
export USE_CCACHE=1
_Save and exit
_Sync source code
_After source synced, run in same terminal (in root directory of your source):
prebuilts/misc/linux-x86/ccache/ccache -M 20G (20G is the size in giga of space allocated for ccache, change it as you want)
_Start building
How to see if ccache works:
_Open another terminal in the root directory of your source and type:
watch -n1 -d prebuilts/misc/linux-x86/ccache/ccache -s
First build using ccache may be a little much longer but the others will be faster...
veerndra said:
Hi,
I followed the steps provided on source.android.com to build and flash the AOSP for Nexus 7 3G Tilapia. After successful flash, the device does not show anything after Google logo. Please help me out.
Thanks,
Veeren
Click to expand...
Click to collapse
Did you pull the proprietary files for your nexus and include them in the build? I believe things like your video drivers are included in there, so if those are missing....
I think the prop files are available for download from Google on source.android.com... If not, they tell you how to use an included script to pull them via adb. I can't remember... It's been a while since I built vanilla AOSP.
Sent from my Inspire 4G using xda app-developers app
Modifying stock AOSP
I have built AOSP following the Google tutorial.
I am compiling using the master branch and
Code:
aosp_grouper-userdebug
.
I have downloaded and extracted the appropriate proprietary binaries.
I am modifying two files in the source tree (see attachments; search for "// MODIFICATION ADDED HERE" to find my changes). Will these changes work? I am using Eclipse, set up in the exact way the tutorial explains, and I am not receiving any new errors.
When I compile the source using the following commands
Code:
$ . build/envsetup.sh
$ lunch aosp_grouper-userdebug
$ make fastboot adb
and flash it to my device with
Code:
$ fastboot -w flashall
BEFORE my modifications, it works just fine. The android-info.txt file and all the image files are produced properly.
However, AFTER adding the modifications, the build completes with no errors, but android-info.txt and all image files are no longer produced.
Why am I experiencing these problems? What can I do to make it work the way I want?
P.S. YES, I am aware that my modifications are not secure; these are for my own purposes, not for a public build.

[Updated 01/06/2015] Ported Nethunter for note 3 (Kali / Backtrack)

http://nethunter.com/
Here is the first version working on the Note 3.
Not sure if there is any interest in this.
Am sure we will soon see.
Screenshots running on Note 3 SN-9005
(This thread was originally a request)
dave7802 said:
http://nethunter.com/
Got very excited when i read up on this, Does anyone know of any working projects? Or is anyone willing to have a look. Out of my depth
Thanks
Click to expand...
Click to collapse
Only for Nexus devices
Spitwista said:
Only for Nexus devices
Click to expand...
Click to collapse
Honestly...... i never knew that, Considering its plastered all over there website and everything you read about.
Thats why i Requested a PORT.
dave7802 said:
Honestly...... i never knew that, Considering its plastered all over there website and everything you read about.
Thats why i Requested a PORT.
Click to expand...
Click to collapse
Not going to happen soon for Note 3
Spitwista said:
Not going to happen soon for Note 3
Click to expand...
Click to collapse
Are you for feel, Stop spamming this thread with crap that everyone knows about already, Ghheeeze!
This is a request for a Port.
Not a users opinion on Timescale, Nor what current devices are supported!!!
Wrong , I just patched a kernel for my HTC one and complied a CM11 kernel.
viperblood said:
Wrong , I just patched a kernel for my HTC one and complied a CM11 kernel.
Click to expand...
Click to collapse
So you have a bootable Nethunter version running?
Any instructions?
Updated OP if there is any interest in this.
I would be interested have you got a patched kernel and what rom did you use?
+1 im interested too
Sent from my hlte using XDA Free mobile app
im interested too!!
Plz post the steps you took and if you can the rom and kernel. Thx!
Excuse the delayed response here:
I will update the OP with instructions and files.
As a heads up, i wont be providing the kernel, nor will i be providing instructions on how to compile your kernel.
Why do you need a custom Kernel you may ask.
One or a few of the tools in Kethunter, will allow for packet injection.
You will need a comptable Wifi device for this to work, and for it to work, you need to compile the drivers into the kernel.
I wont support this for two reasons.
I cannot make a error / hassle free way to switch Wifi devices (You can only had one active Wifi device at a time, i switch from Command line, But not so easy for your none so savvy linux users)
I do not have time to compile nor support issues that crop up with the Kernel (My work life consumes to much of my personal time / hobbys)
What i will do, is provide a compiled Flashable Zip, that will include all the Nethunter files.
This includes the APK that drives all the commands
and all the System files required.
You should be able to update Chroot etc without any issues.
Just a few tools wont work, without correct wifi device to Sniff and inject.
The flashable file is near to 1Gb and i am in work, so will not be uploading it from here.
I will do it at home later this evening.
Have a look at this: github.com/offensive-security/kali-nethunter/wiki/Porting-Nethunter
The example talks about note 3 but its a little bit outdated..
Any news for Kali NetHunter port for Note 3?
Im trying porting in my N3 (N900T) based in fw for Nexus 5 with Lollipop. Im working in booting kali but, now works:
- Nethunter APK (always open but now show options, screenshots added!)
- Kali boot in terminal but now only this and works apt-get (only test this now)
- Im trying fix buttons because this dont works when i push this. Only show error in terminal and dont works but manually this load kali.
PD: (sorry for my english)
I use this in 5.0.1 here the About:
Edit:
If any need im working in this script that boot kali (in theory but executing directly dont works).
http://pastebin.com/uYRmEwcs
I run Kali in console manually running this: In Terminal Emulator first write "su" and press "Enter" and next write this:
Code:
unset LD_PRELOAD
chroot /data/local/kali-armhf /bin/bash -l
With this Kali load in console. Works apt-get and other commands but im testing this. If any want try the steps are:
First download zip image (originally is for flashing in recovery but in my phone dont works or maybe works but I DONT TRY because is for other model xD).
Second, extract zip in PC and copy respective files and folders to the phone. For example: data folder in zip have 3 subfolders, copy all this to [d]data[/b] folder in phone in /data/ and remain files and folders.
In data/app folder have apks, install this. Have NetHunter apk (showed in screenshots), VNC and others. I recommend install all apks.
Next, in folder data/local have "kalifs.tar.bz2" file, this is the kali system. Unzip this in same folder but in phone. Final destination is: /data/local/kali-armhf (inside have bin, boot, captures, and other subfolders).
Next i dont know because i testing
please can u add support for the note 3 n900

Categories

Resources