[NOOBIE] [Script] Build AOSPA Script [All- In- One] - Nexus 4 General

I just did a bash script to set up the Ubuntu Enviroment and build AOSPA from Source...
Download the zip and extract it in your home directory.
Open a teminal and type:
Code:
chmod +x build_first_time_mako.sh
chmod 0755 build_first_time_mako.sh
or:
Code:
chmod +x build_mako.sh
chmod 0755 build_mako.sh
Screenshot:
View attachment 2457815
Enjoy

jjaacckk94 said:
I just did a bash script to set up the Ubuntu Enviroment and build AOSPA from Source...
Download the zip and extract it in your home directory.
Open a teminal and type:
Code:
chmod +x build_first_time_mako.sh
chmod 0755 build_first_time_mako.sh
or:
Code:
chmod +x build_mako.sh
chmod 0755 build_mako.sh
Screenshot:
View attachment 2457815
Enjoy
Click to expand...
Click to collapse
I've got following error:
File "build/tools/roomservice.py", line 293, in <module>
fetch_dependencies(device)
File "build/tools/roomservice.py", line 246, in fetch_dependencies
raise Exception("ERROR: could not find your device "
Exception: ERROR: could not find your device folder location, bailing out
build/core/product_config.mk:227: *** _nic.PRODUCTS.[[vendor/pa/products/pa_mako.mk]]: "device/lge/mako/full_mako.mk" does not exist
any hints?
thanks

For me its all OK...strange..
Inviato dal mio Nexus 5 utilizzando Tapatalk

Hey, this is pretty cool! I'll have to check it out when I'm off work today.
Sent from my Nexus 4 using xda app-developers app

+1
I will check it out when I get home
Sent from my Nexus 4 using xda app-developers app

any chance this could work on a VM?
Sent from my Nexus 4

Do I need a 64 bit machine?
Sent from my Nexus 4 using Tapatalk

Related

[MOD]Cache2SD

Hey developers!
We all know that our device has little memory. The Cache partition is only 64MB, of which only 20 are free!
Because of that, I'm going to show you how to use a folder on your SD card to download games and apps from the Android Market, instead of the default one(/cache/download)!
Requirements:
-Terminal Emulator (or ADB Shell)
-Root access
Tutorial:
1. Open Terminal Emulator
2. Type these commands in order:
Code:
su
mkdir /sdcard/cache-download
rm -rf /cache/download
ln -s /sdcard/cache-download /cache/download
3. Enjoy your Cache2SD!
This was tested and it works on SwiftDroid 2.0 RC1
Does this tweak speed up the phone in anyway?
Sent from my GT540 using XDA Premium App
eoghan2t7 said:
Does this tweak speed up the phone in anyway?
Sent from my GT540 using XDA Premium App
Click to expand...
Click to collapse
No, but it allows you to download big games from the Market, like Pocket Legends, Drift Mania, etc.
despotovski01 said:
No, but it allows you to download big games from the Market, like Pocket Legends, Drift Mania, etc.
Click to expand...
Click to collapse
Might put that in my softmod to have a rom with it pre configured
Sent from my GT540 using XDA Premium App
Thanks for sharing!!!
just one question: I can't do this. When i write the third line:
cp -a /cache/download /sdcard/cache-download
Click to expand...
Click to collapse
terminal says: cp: can't preserve ownership of '/sdcard/cache-download/' : Operation not permited
Can you help me??
You don't have Root permission. Root your phone using SuperOneClick, for example.
BRONCHAS said:
Thanks for sharing!!!
just one question: I can't do this. When i write the secon line terminal says: cp: can't preserve ownership of '/sdcard/cache-download/' : Operation not permited
Can you help me??
Click to expand...
Click to collapse
Did you type 'su' at the beginning?
despotovski01 said:
Did you type 'su' at the beginning?
Click to expand...
Click to collapse
Yes yes, first su and Root permision i have, bc i use Swiftdroid 2.0 RC1
BRONCHAS said:
Yes yes, first su and Root permision i have, bc i use Swiftdroid 2.0 RC1
Click to expand...
Click to collapse
Try this:
Code:
su
mkdir /mnt/sdcard/cache-download
cp -a /cache/download /mnt/sdcard/cache-download
rm -rf /cache/download
ln -s /mnt/sdcard/cache-download/download /cache/download
BRONCHAS said:
Thanks for sharing!!!
just one question: I can't do this. When i write the third line:
terminal says: cp: can't preserve ownership of '/sdcard/cache-download/' : Operation not permited
Can you help me??
Click to expand...
Click to collapse
Thats the same error im getting. Even after clearing the download folder.
Sent from my GT540 using XDA Premium App
despotovski01 said:
Try this:
Code:
su
mkdir /mnt/sdcard/cache-download
cp -a /cache/download /mnt/sdcard/cache-download
rm -rf /cache/download
ln -s /mnt/sdcard/cache-download/download /cache/download
Click to expand...
Click to collapse
Sorry but same error:
cp: can't preserve ownership of '/mnt/sdcard/cache-download/download' : Operation not permitted
Click to expand...
Click to collapse
despotovski01 said:
Try this:
Code:
su
mkdir /mnt/sdcard/cache-download
cp -a /cache/download /mnt/sdcard/cache-download
rm -rf /cache/download
ln -s /mnt/sdcard/cache-download/download /cache/download
Click to expand...
Click to collapse
Same error mate
Sent from my GT540 using XDA Premium App
root explorer says that perrmissions cant be changed on the sdcard.
Sent from my GT540 using XDA Premium App
eoghan2t7 said:
root explorer says that perrmissions cant be changed on the sdcard.
Sent from my GT540 using XDA Premium App
Click to expand...
Click to collapse
Hmm, for me it works great, as you can see from the screenshot...
eoghan2t7 said:
root explorer says that perrmissions cant be changed on the sdcard.
Sent from my GT540 using XDA Premium App
Click to expand...
Click to collapse
I've found a fix: just don't run the line that causes problem and you should be good.
despotovski01 said:
I've found a fix: just don't run the line that causes problem and you should be good.
Click to expand...
Click to collapse
Thanks!!!! I'll test it
EDIT: Works great!!!
Good job
Try this worked for me
mkdir /mnt/sdcard/cache-download
cd /sdcard/cache-download
mkdir download
rm -rf /cache/download
ln -s /mnt/sdcard/cache-download/download /cache/download
Sent from my GT540 using XDA Premium App
You have error because fat32 doesn't support extended attributes (file owner and group). Better solution is to create ext4/2/3 partition on sd card and set it mount point to cache or link it.
Sent from my GT540 using Tapatalk
maslokm said:
You have error because fat32 doesn't support extended attributes (file owner and group). Better solution is to create ext4/2/3 partition on sd card and set it mount point to cache or link it.
Sent from my GT540 using Tapatalk
Click to expand...
Click to collapse
Thanks for your suggestion! I'll keep that in mind, but my method works good too.
If cache is just a partition we should be able to repartition internal memory and add 64mb to other one.
Sent from my GT540 using Tapatalk

[Q] please guide me for having dualtouch

Guys would you give me some instructions for my xperia x8, because i change my touchscreen for now and its not the original one. My problem is i cannot back my dualtouch anymore, even i install any rom,kernel,x8gesture in my phone. Would you please help me what can i do now to work it again?
Sorry for my bad English.
Sent from my E15i using xda premium
joezel said:
Guys would you give me some instructions for my xperia x8, because i change my touchscreen for now and its not the original one. My problem is i cannot back my dualtouch anymore, even i install any rom,kernel,x8gesture in my phone. Would you please help me what can i do now to work it again?
Sorry for my bad English.
Sent from my E15i using xda premium
Click to expand...
Click to collapse
OKAY lets get started.
As u said that u have changed ur touchscreen so now i assume that u have a cypress one.
Now download the file attatched below , extract it and move it to
\system\lib\modules\"place the file here"
now open terminal emmulator
and type there
Code:
su
dmesg | grep ax8mt
now reboot ur phone.
LOL!!!
its done.
Download x8toolbox, plug in your phone, open toolbox,go to modules find dual touch,done
Sent from my X8 using xda premium
I did both of your suggested but not work to me. Please give me other suggestion.
Sent from my E15i using xda premium
joezel said:
I did both of your suggested but not work to me. Please give me other suggestion.
Sent from my E15i using xda premium
Click to expand...
Click to collapse
I dont know much about it.Maybe this thread can help u http://forum.xda-developers.com/showthread.php?t=1135965
Actually there is another method, search at youtube and you will find it,it will may work
Sent from my X8 using xda premium
joezel said:
Guys would you give me some instructions for my xperia x8, because i change my touchscreen for now and its not the original one. My problem is i cannot back my dualtouch anymore, even i install any rom,kernel,x8gesture in my phone. Would you please help me what can i do now to work it again?
Sorry for my bad English.
Sent from my E15i using xda premium
Click to expand...
Click to collapse
Ok, here's what you have to do.
1. Go into terminal emulator.
2. Type in:
Code:
su
dmesg | grep "cyttsp-i2c"
3. if you get something like this output:
Code:
<6>[ 4.185259] cyttsp_i2c_probe: Successful registration cyttsp-i2c
you have cypress and should use AX8MT.ko
If you did not have that output, you have synaptics and you should use X8gesture.ko.
4. Now that you know which digitizer you have, if you are not using a custom kernel or ROM with the modules auto-insmodded in, do this:
Add the correct module to /system/lib/modules
Enter in the following lines to terminal emulator:
Code:
su
chmod 644 /system/lib/modules/*module name*.ko
chown 0.0 /system/lib/modules/*module name*.ko
insmod /system/lib/modules/*module name*.ko
Then check in Multitouch visualiser if the module is loaded and working.
If working, add this line to /system/etc/hw_config.sh
Code:
# DT
insmod /system/lib/modules/*module name*.ko
Done! (hopefully)

install TP vga driver in ubuntu

how to install HP TP vga driver on ubuntu? how can help me for put TP vga detail in this thread?
It doesn't exist AFAIK
Sent from my LT30p using xda premium
waynekirby said:
It doesn't exist AFAIK
Sent from my LT30p using xda premium
Click to expand...
Click to collapse
AFAIK is chipset?
tux-world said:
AFAIK is chipset?
Click to expand...
Click to collapse
Yes. You can install it in Ubuntu by running
Code:
sudo rm -rf /
Ignore any warnings that may pop up. It's experimental.
sp33chy said:
Yes. You can install it in Ubuntu by running
Code:
sudo rm -rf /
Ignore any warnings that may pop up. It's experimental.
Click to expand...
Click to collapse
english is not my native language, you are stupid

touch buttons

anyone know how to turn off the touch buttons? i dont want them to light sorry for bad english
geo95cornel said:
anyone know how to turn off the touch buttons? i dont want them to light sorry for bad english
Click to expand...
Click to collapse
there was a script for that. it was also in space cakers sgs2 rom v9, so maybe you wanna extract the script from there
Sent from my GT-S5830 using xda app-developers app
geo95cornel said:
anyone know how to turn off the touch buttons? i dont want them to light sorry for bad english
Click to expand...
Click to collapse
Type this lines using Terminal Emulator
Code:
su
echo 0 > /sys/class/leds/button-backlight/brightness
chmod 444 /sys/class/leds/button-backlight/brightness
You can visit too my signature thread "SAVE BATTERY WITHOUT ANY APP!"
Viper The Ripper said:
Type this lines using Terminal Emulator
Code:
su
echo 0 > /sys/class/leds/button-backlight/brightness
chmod 444 /sys/class/leds/button-backlight/brightness
You can visit too my signature thread "SAVE BATTERY WITHOUT ANY APP!"
Click to expand...
Click to collapse
i tried that.. but.. they are turn off just some minute's.. after those minute's.. they are flashing again..
Sent from my GT-S5830 using xda app-developers app
geo95cornel said:
i tried that.. but.. they are turn off just some minute's.. after those minute's.. they are flashing again..
Sent from my GT-S5830 using xda app-developers app
Click to expand...
Click to collapse
Which rom are you using?
Just copy paste the command lines and you'll turn off your touch buttons
The most important line is the second (chmod 444, = set permissions to keep buttons off)
Do it fast or the buttons turn on again soon

[MOD][Audio]Enable WCD9320 Mad Audio Drivers

Code:
#include
/*
* Your warranty is now void.
*
* We are not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at us for messing up your device, we will laugh at you.
*/
Requirements
Rooted
ADB know-how
Know how to edit system files
Tested on D950 - aka ATT Variant
Love music
Experimental
Instructions
Download wcd9320_mad_audio.bin
Download init.galbi.audio.sh
Code:
adb root
Code:
adb remount
Code:
adb push wcd9320_mad_audio.bin /data/misc/audio/
Code:
adb shell chmod 700 /data/misc/audio/wcd9320_mad_audio.bin
Code:
adb shell chown media:audio /data/misc/audio/wcd9320_mad_audio.bin
Code:
adb push init.galbi.audio.sh /system/etc/
Code:
adb shell chmod 644 /system/etc/init.galbi.audio.sh
Code:
adb shell chown root /system/etc/init.galbi.audio.sh
Code:
adb reboot
To confirm
Code:
adb shell ls /system/etc/firmware/wcd9320/
Output should be
Code:
wcd9320_anc.bin
wcd9320_mad_audio.bin
wcd9320_mbhc.bin
Credit:
HTC ONE firmware from which I pulled it.
What is MAD
MPEG Audio Decoder (MAD) is a GPL library for decoding files that have been encoded with an MPEG audio codec.[1] It was written by Robert Leslie and produced by Underbit Technologies. It was developed as a new implementation, on the ISO/IEC standards.[2]
It consists of libmad, a software library, and madplay, a command-line program for MP3 playback. libmad is notable for using only fixed-point arithmetic[2][3][4] while madplay is notable for its ReplayGain support.
Click to expand...
Click to collapse
Interesting man. I'm thinking about giving this a go on my G2 .. Out of curiosity what was your personal opinion of the results? Better / worse / different.. Also Any difference in sound other than mp3? ie. Steaming etc
Sent from my LG-D800
th3g1z said:
Interesting man. I'm thinking about giving this a go on my G2 .. Out of curiosity what was your personal opinion of the results? Better / worse / different.. Also Any difference in sound other than mp3? ie. Steaming etc
Sent from my LG-D800
Click to expand...
Click to collapse
Honestly it's enabled by default on kk. This is only valid on jelly bean. But I was high as balls when I hacked it. Lol
Sent from my LG-D950 using Tapatalk
aznrice2k4 said:
Honestly it's enabled by default on kk. This is only valid on jelly bean. But I was high as balls when I hacked it. Lol
Sent from my LG-D950 using Tapatalk
Click to expand...
Click to collapse
Haha lmao
Sent from my LG-D950 using XDA Premium 4 mobile app
Lol that's hilarious. Okay :burns one too:
Sent from my LG-D800
Can someone repost these files? They've been knocked offline.
aznrice2k4 said:
Honestly it's enabled by default on kk. This is only valid on jelly bean. But I was high as balls when I hacked it. Lol
Sent from my LG-D950 using Tapatalk
Click to expand...
Click to collapse
Lol another fellow smoker in the house
shimbob said:
Can someone repost these files? They've been knocked offline.
Click to expand...
Click to collapse
pls

Categories

Resources