[Development] [Tools] Right Click Android Tools - Android Q&A, Help & Troubleshooting

I have been wanting to do this for a while, and the time has finally came. I will be porting most of my tools and scripts I use for Nautilus File Manager Scripts. Currently I have added the installer for only Sign-Apk-Zip script. There will be a pretty penny of scripts that I will be adding to this git repo with an easy to install script attached to apply some pretty cool android tools from the right click menu like signing apks, decompiling apks, compiling apks. Change the hue color of a img just from a right click menu. Many many more to come. So check back frequently.
You will need to install git to clone the project.
Code:
sudo apt-get install git-core
Clone it:
Code:
git clone https://github.com/lithid/Right-Click-Android-Tools.git
Then just run the installer from time to time to see what is available. :good:
Code:
[email protected]:~/Right-Click-Android-Tools$ ./install.sh
Right click android tools installer
=====
Here are some things to do:
--install-sign <> Install sign-apk-zip script
--install-compressed-sign <> Install compress-sign script
--install-apktool <> Install apktool scripts
--install-runroot <> Install run as root
--install-searchstring <> Search for strings like grep
--all <> Install all scripts
Now install what you want.
Code:
[email protected]:~/Right-Click-Android-Tools$ ./install.sh --install-sign
Sign-Apk-Zip is installed!
Videos:
Sign-Apk-Zip
Compress-Sign
Apktool
Run-As-Root
Search-For-String

Cool idea!
Bookmarked!

Man, I'm glad to see my post turned into such a great idea. I thought just posting the scripts in a thread would b great, but this...this is genius. Way to go lithid! I knew there was a reason your name had risen to mythical status!
Well, I hope u keep on it cuz I will b checking for new scripts. Thanks a lot bud. This is gna b so awesome!
Bacon in my coffee, please? You don't have bacon?!?! Unacceptable!!

lithid-cm said:
I have been wanting to do this for a while, and the time has finally came. I will be porting most of my tools and scripts I use for Nautilus File Manager Scripts. Currently I have added the installer for only Sign-Apk-Zip script. There will be a pretty penny of scripts that I will be adding to this git repo with an easy to install script attached to apply some pretty cool android tools from the right click menu like signing apks, decompiling apks, compiling apks. Change the hue color of a img just from a right click menu. Many many more to come. So check back frequently.
You will need to install git to clone the project.
Code:
sudo apt-get install git-core
Clone it:
Code:
git clone https://github.com/lithid/Right-Click-Android-Tools.git
Then just run the installer from time to time to see what is available. :good:
Code:
[email protected]:~/Right-Click-Android-Tools$ ./install.sh
Right click android tools installer
=====
Here are some things to do:
--install-sign <> Install sign-apk-zip script
--install-compressed-sign <> Install compress-sign script
--all <> Install all scripts
Now install what you want.
Code:
[email protected]:~/Right-Click-Android-Tools$ ./install.sh --install-sign
Sign-Apk-Zip is installed!
Videos:
Sign-Apk-Zip
Compress-Sign
Click to expand...
Click to collapse
Easy-peasy lemon-squeazy! Worked like a charm! Thanks so much for this lithid! Great idea! :thumbup::thumbup:
Bacon in my coffee, please? You don't have bacon?!?! Unacceptable!!

triptosyll said:
Easy-peasy lemon-squeazy! Worked like a charm! Thanks so much for this lithid! Great idea! :thumbup::thumbup:
Bacon in my coffee, please? You don't have bacon?!?! Unacceptable!!
Click to expand...
Click to collapse
Glad it works for ya. Yea I will be adding more and more as time goes on.

lithid-cm said:
Glad it works for ya. Yea I will be adding more and more as time goes on.
Click to expand...
Click to collapse
OK, so, I've been trying to activate right-click 'open as administrator', because they have stopped making gksu-nautilus. Any ideas? Or possibly a script?
I know its THERE, the ability to have administrator privelages within your folders, cuz $ gksudo nautilus brings up your root folder with root privelages, so is a script possible?
Thx in advance yo!
And one more thing, could you tell me where that script from you was installed? Was gna take a look at it and didn't find it in /.gnome2/nautilus-scripts.
Thanks again :thumbup:
Bacon in my coffee, please. You don't have any bacon?!?! unacceptable!!

lithid-cm said:
I have been wanting to do this for a while, and the time has finally came. I will be porting most of my tools and scripts I use for Nautilus File Manager Scripts. Currently I have added the installer for only Sign-Apk-Zip script. There will be a pretty penny of scripts that I will be adding to this git repo with an easy to install script attached to apply some pretty cool android tools from the right click menu like signing apks, decompiling apks, compiling apks. Change the hue color of a img just from a right click menu. Many many more to come. So check back frequently.
You will need to install git to clone the project.
Code:
sudo apt-get install git-core
Clone it:
Code:
git clone https://github.com/lithid/Right-Click-Android-Tools.git
Then just run the installer from time to time to see what is available. :good:
Code:
[email protected]:~/Right-Click-Android-Tools$ ./install.sh
Right click android tools installer
=====
Here are some things to do:
--install-sign Install sign-apk-zip script
--install-compressed-sign Install compress-sign script
--all Install all scripts
Now install what you want.
Code:
[email protected]:~/Right-Click-Android-Tools$ ./install.sh --install-sign
Sign-Apk-Zip is installed!
Videos:
Sign-Apk-Zip
Compress-Sign
Click to expand...
Click to collapse
So u know lithid, I had a little problem installing compress-sign, cuz I'm still new to the whole Linux stuff, so I followed ur text on selecting a package to install and went for what you wrote as " install-compressed-sign Install compress-sign script" but typing in $ ./install.sh --install-compress'ed'-sign doesn't work. You have to type $ ./install.sh --install-compress-sign
without the 'ed'. Otherwise it won't work. Just letting you know so if u wanna change it in the op so that noobs like me don't get like I did.
Bacon in my coffee, please. You don't have any bacon?!?! unacceptable!!

Good Job

Updated the OP with APKTOOL scripts for right click, check out the youtube video for functionality.

lithid-cm said:
Updated the OP with APKTOOL scripts for right click, check out the youtube video for functionality.
Click to expand...
Click to collapse
I am using this thread for de/compile of .apk's for jellybean:
http://forum.xda-developers.com/showthread.php?t=1814441
Will I be able to use the versions of aapt and apktool that u provided? Or can I replace them and still use your script? I have other versions I need for jellybean, so if your versions are compatible with jellybean, I'll leave them there. If they're not, I'll replace them. What do you think?
Bacon in my coffee, please. You don't have any bacon?!?! unacceptable!!

triptosyll said:
I am using this thread for de/compile of .apk's for jellybean:
http://forum.xda-developers.com/showthread.php?t=1814441
Will I be able to use the versions of aapt and apktool that u provided? Or can I replace them and still use your script? I have other versions I need for jellybean, so if your versions are compatible with jellybean, I'll leave them there. If they're not, I'll replace them. What do you think?
Bacon in my coffee, please. You don't have any bacon?!?! unacceptable!!
Click to expand...
Click to collapse
You can replace them by pushing them to /usr/local/bin/

lithid-cm said:
You can replace them by pushing them to /usr/local/bin/
Click to expand...
Click to collapse
That's where my other aapt, apktool, and apktool.jar were placed. When I downloaded the script, did your packages replace mine?
Bacon in my coffee, please. You don't have any bacon?!?! unacceptable!!

triptosyll said:
That's where my other aapt, apktool, and apktool.jar were placed. When I downloaded the script, did your packages replace mine?
Bacon in my coffee, please. You don't have any bacon?!?! unacceptable!!
Click to expand...
Click to collapse
Most likely, if you point me in the direction of the "updated" tools, I can update my script so everyone will have those.

lithid-cm said:
Most likely, if you point me in the direction of the "updated" tools, I can update my script so everyone will have those.
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1755243
v1.4.9 and the required aapt right below it.
Bacon in my coffee, please. You don't have any bacon?!?! unacceptable!!

Updated the apktool script, and added Run-As-Root script. Check it out.

Awesome to see this.. great idea... Will be trying this tonight for sure...
Cellar Door
"Who are you people and where is my horse?"

lithid-cm said:
Updated the apktool script, and added Run-As-Root script. Check it out.
Click to expand...
Click to collapse
Awesome! Thanks again man! :thumbup::thumbup:
Bacon in my coffee, please. You don't have any bacon?!?! Unacceptable!!

Updated with a searching for string option!
http://www.youtube.com/watch?v=3RjHEHzQFrg

lithid-cm said:
Updated with a searching for string option!
http://www.youtube.com/watch?v=3RjHEHzQFrg
Click to expand...
Click to collapse
Not a part of the process I understand yet, but I'm gna download it anyway, cuz I've heard about strings, and minimally understand it, so I'll need it sooner or later. (Whenever I can get to researching the topic)
Bacon in my coffee, please. You don't have any bacon?!?! Unacceptable!!

I like tools and all, and not intending to hi-jack this thread (although I know I might) but, where is Salvage-Mod for Galaxy Nexus Toroplus??? I kid. Scripts are a mans almost best friend. Thanks for expressing this idea in a useful application!

Related

[MOD] Modded SpareParts for Android 2.2 *sources 4 all*

== Modded SpareParts for Android 2.2 ==
As no one seems more than that interrested into this, I'll not maintain this thread.
SpareParts Mod sources are still on github.
I'll now one integrate this to Settings into my ROM.
THIS THREAD IS FOR DEV
Hi,
I'm the cooker of LeoFroYo, a Android 2.2 ROM.
In that ROM I started modding the basic SpareParts from AOSP 2.1-update1.
Quite some people enjoyed it.
So here I am, releasing my sources to get it vastly improved by all devs and to get it included by all the ROMs that would like to.
I know Java for... like 2 weeks.
So my code needs to be improved and more flexible for the other ROM cookers.
I'm developing this only for Google Nexus One - but feel free to port.
Special thanks to imfloflo for help and support, djmcnz for ideas and advices and jlevy73 for betatesting (not the only one, but mostly).
== Source code ==
@github: http://github.com/leonnib4/development_apps_SpareParts
# aptitude install git-core
$ cd && git clone git://github.com/leonnib4/development_apps_SpareParts.git
To compile it, you will need the Android source and copy my repo:
# aptitude install git-core gnupg sun-java5-bin sun-java5-jre sun-java5-jdk sun-java5-demo flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev bison
Alternatively you can get java5 here: http://android.shk-desktop.com/java5/
$ curl http://android.git.kernel.org/repo ~/bin/repo
$ chmod a+x ~/bin/repo
$ cd && mkdir android && cd android
$ repo init-u git://android.git.kernel.org/platform/manifest.git -b eclair
$ repo sync
This will take time... and download something like 2.4GB.
$ rm -rf developement/apps/SpareParts
$ mv ~/development_apps_SpareParts developement/apps/SpareParts
$ make SpareParts && adb install -r out/target/product/generic/system/app/SpareParts.apk && adb logcat
== Readme ==
This is meant to be included by who ever would like to.
But please respect my work (on my free time as I'm also studient in a IT school):
- do not say this is only your work
- do not forget to give me credits
- respect my english (as I'm a young french) and my poor skills in Java (which is totally new to me)
You also might want to consider to buy me a beer
To adapt to your ROM:
1. Get the sources
-or-
2. Get apktool.
$ apktool d SpareParts.apk out/
Edit out/res/values/string.xml and out/res/xml/spare_parts.xml.
$ apktool b out
To not forget to sign the .apk!
== Downloads ==
old
http://github.com/leonnib4/development_apps_SpareParts
Addons & co. : http://android.shk-desktop.com/SpareParts/
new
Now integrated into Settings: http://github.com/leonnib4/packages_apps_Settings
New addons & co: http://android.shk-desktop.com/LeoParts/
http://android.shk-desktop.com/SpareParts/
== Features ==
from leonnib4
ROM infos
Name
Version
Build
Fingerprint
System version
Kernel
Radio
Check for update
Tweaks
Stock App2SD
Screen Timeout
UI sounds
Fix permissions
Quick commands
Reboot
Reboot recovery
Reboot bootloader
Remount RW
Remount RO
Addons
Bootanimation
Notification bar
Trackball Alert
Headset volume ctrl.
Trackball Wake
HTC_IME
Restore stock Launcher2
(Samsung) Galaxy LWPs
About
from Enomther
Data Storage Options
from Google
Original SpareParts as of AOSP 2.1-update1
== ToDo ==
Show progress bar % during download
Check if file exists in /data/local/tmp after download
Auto set defaults values (checks)
And I might need help for this.
== Legal ==
Bootanimation: stock or mine (from frysee
Notification bar: free
Trackball Alert (from lilHermit)
Headset volume ctrl: from t0ol
Trackball Wake: actually myLock, free from Market
HTC_IME: free
Launcher2: stock
So this adds trackball wake?
Good post.
Thanks for thanks.
I have a question cause i'm not totally sure about the addons section have you got all rights to use and share this software in your mod ?
And if you can add a little line of description for each futur it'll be the perfect MOD
Markdental said:
So this adds trackball wake?
Click to expand...
Click to collapse
This is not yet for all roms.
Work in progress.
And no for now my modded SpareParts installs myLock and set it to act like:
- double press unlock
- power button unlcok directly
Trackball Waker simply do NOT work for Android 2.2 for now
LEGAL
@imfloflo:
Bootanimation is stock or mine
Notification bar is free
Trackball Alert is OK (lilHermit)
Headset volume ctrl. is free from xda
Trackball Wake is myLock, free, from Market
HTC_IME is free
stock Launcher2: well, it's stock
Basicly it just download apk I pull from my device after installing from Market
except from RockDivxPlayer which I found on xda and RemVol (same).
Hope I'm not sharing things I should not...
PM me I'll remove IMMEDIATLY
[Mod edit:
Removed link due too divx player is in beta and xda has been notified not too post/insert into roms.
Click to expand...
Click to collapse
Done all is OK
thanks
imfloflo said:
[Mod] edit:
Removed link due too divx player is in beta and xda has been notified not too post/insert into roms.
Click to expand...
Click to collapse
Just saw that.
Actually, I removed them from my ROM just 10 minutes ago
EDIT:
I mean I removed from the website (mine) where they were and removed them from my 1.0.0 beta rom.
My SpareParts also gets uploaded to not include RockPlayer.
Perfect
when you said booanimation which one have you include in your mod ?
is it possible to have a folder in /sdcard/bootanimation where i can put many bootanimation.zip and choose which one i want to apply ?
Updated for Old a2sd method and dalvik-cache to sdcard
Requiered scripts are on my leofroyo repo.
this is very cool. i am going to give it a try
lpasq said:
this is very cool. i am going to give it a try
Click to expand...
Click to collapse
You already have it in your ROM, don't you?
Also, I do not maintain this thread because nobody seemed interrested
BUT sources are still on github for anyone willing to take a look
leonnib4 said:
You already have it in your ROM, don't you?
Also, I do not maintain this thread because nobody seemed interrested
BUT sources are still on github for anyone willing to take a look
Click to expand...
Click to collapse
i did use it in one of my "shameless kang-bang" roms. but that rom was nothing but a dsixda_android_kitchen cooked rom based on other's work. i think i just included your loeparts.apk with no real idea that some of the mods would need to be compiled in source for some features to work.
this time, i am looking at your leoparts' source and practicing two thing:
- i am working on doing more than just repo aosp and modding source by copying git commit code...now i'm slowly trying to get knowledge on how to incorporate a cloned git tree into my repo
- also, i'm reading your leoparts mods through to the source code to simply learn the structure of things and where the referenced mods resides in framework and such.
i missed that you closed the thread. sorry.
lpasq said:
i did use it in one of my "shameless kang-bang" roms. but that rom was nothing but a dsixda_android_kitchen cooked rom based on other's work. i think i just included your loeparts.apk with no real idea that some of the mods would need to be compiled in source for some features to work.
this time, i am looking at your leoparts' source and practicing two thing:
- i am working on doing more than just repo aosp and modding source by copying git commit code...now i'm slowly trying to get knowledge on how to incorporate a cloned git tree into my repo
- also, i'm reading your leoparts mods through to the source code to simply learn the structure of things and where the referenced mods resides in framework and such.
i missed that you closed the thread. sorry.
Click to expand...
Click to collapse
You mainly missed the fact that I distributed the APK in exchange for credits PLUS re-write of strings.xml to not use my repo.
By acting like that, this leads to people wanting to make closed-sources things.
Please read before copying APKs...
leonnib4 said:
You mainly missed the fact that I distributed the APK in exchange for credits PLUS re-write of strings.xml to not use my repo.
By acting like that, this leads to people wanting to make closed-sources things.
Please read before copying APKs...
Click to expand...
Click to collapse
i think i understand what you are saying and will PM to confirm.
No pb
Replied
Anyone can use this but please read readmes etc.
Free software does not mean anarchy software
Sent from my Full Android on Passion using XDA App
Hi, setting app2sd to Internal will install apps to internal memory?

I wish to become a developer for our O1's!

Hi guys, I would like to ask you what IDE's and other software I need to make and modify android roms. I am particularly looking at helping with ICS production. I know java and some C++ if this helps, I am unsure of what to use whether that be eclipse or some other IDE/SDk. Also there are a few file types I am unfamiliar with and want to know how to edit those such as .so's and other files. Thanks P500 community you guys are awesome D
If you haven't already, I'd highly reccomend setting up a build environment and trying to sync the cm repos. Once you have the code, you can play around and see what you need from there, in terms of an IDE.
Sent from my LG-P500 using XDA
Fantastic, I shall get onto that right away.
May the force be with you, bro!
Sent from my LG-P500 using Tapatalk 2
gymfreak7855 said:
Hi guys, I would like to ask you what IDE's and other software I need to make and modify android roms. I am particularly looking at helping with ICS production. I know java and some C++ if this helps, I am unsure of what to use whether that be eclipse or some other IDE/SDk. Also there are a few file types I am unfamiliar with and want to know how to edit those such as .so's and other files. Thanks P500 community you guys are awesome D
Click to expand...
Click to collapse
gymfreak7855 said:
Hi guys, I would like to ask you what IDE's and other software I need to make and modify android roms. I am particularly looking at helping with ICS production. I know java and some C++ if this helps, I am unsure of what to use whether that be eclipse or some other IDE/SDk. Also there are a few file types I am unfamiliar with and want to know how to edit those such as .so's and other files. Thanks P500 community you guys are awesome D
Click to expand...
Click to collapse
Read some android books.you already know c++ and Java so you will become good dev.
For playing with code you need.
Ubuntu.
Notepad.
sdk & adb.
And this "good luck!"
Yeah! Actually even i am interested in learning.
I know c/c++. No java yet
I'll be finishing my exams on the 3rd of may and would have around 2 months of vacations to learn
So guidance would really be appreciated. Do we need a separate sdk for linux based os? I have sdk on windows, isnt that enough?
What is the advantage of using linux for android development? I have backtrack(ubuntu based) on vmware. Will it do?
Essential Software:
Ubuntu 11.10 (dual boot not virtual machine, it's too slow)
Eclipse IDE with the Android plugins
Meld (for easy directory compares)
Mastery of the terminal especially git / repo commands
Github account
CyanogenMod gerrit account
Google Plus account
I'm assuming you're coming from Windows since you don't know what a .so file is (like I did when starting). .so files are android's versions of .dll files. 'executables' don't have a file extension. Kernel modules use the .ko extension.
(I think .so means shared object, .ko means kernel object. Makes sense to me anyway )
The worst thing about starting is simply the sheer size of the project, it is a whole operating system we are dealing with here!
Start simple and easy, follow the instructions on how to make your own build and flash it. (and feel proud you have your own build string in about phone!) Then do it again without the instructions. (harder than it sounds )
The programming side may not be such a problem for you if you already know it. I didn't know anything. reading library files written in c++ ain't so bad, but getting used to how an android app is written in java was a huge mindf**k for me at first.It still is actually
I'm really just your average code hacker, I just hack based on educated guesses but I have taken copious notes on what I do and how things work. Seriously, I have two A5 notebooks full of lists, commands, file locations, diagrams and other tips I've found over the past 6 months.
Prepare to read a lot, be confused a lot, say WTF?!?!?! a lot, delighted when you make your first changes and they work, a ton of waiting for builds to finish and perhaps a bit nervous when you are ready to submit your first commit to CyanogenMod...
Can't we practice on something less taxing than the the whole cyanogenmod, like maybe some prebuilt system apps?
I have allocated 2.9gb of ram and enough cpu to my vm for it to run smoothly so speed isn't really an issue here
Will backtrack do or would ubuntu be better(backtrack is a network security related os based on ubuntu only)
And how important is java. I have two months of almost pure vacations(just have to make a project) so time wont be much of an issue and i'll anyway be doing java in a year or two at college so starting now wont be any harm.
BTW just curious why is g+ account an essentiality here?
Edit
Oh and yeah ill be switching from win to linux and that IS going to be a pretty big problem :/
I don't even properly know what a kernel is and what it does.
Edit2
Iv added you to my circles adfad please add me.
These guides could help!
http://forum.xda-developers.com/showthread.php?t=1272270
http://forum.xda-developers.com/showthread.php?t=667298
I'm starting learning too. I already know the android framework and java.
I have some problems when I try to compile for a device.
Code:
[email protected]:~/WORKING_DIRECTORY$ source build/envsetup.sh
including device/moto/wingray/vendorsetup.sh
including device/samsung/maguro/vendorsetup.sh
including device/samsung/toro/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including sdk/bash_completion/adb.bash
It doesn't include device/cm_device_lge_p500/vendorsetup.sh (I'm using androidmeda's sources) and if I run "lunch":
Code:
[email protected]:~/WORKING_DIRECTORY$ lunch
You're building on Linux
Lunch menu... pick a combo:
1. full-eng
2. full_x86-eng
3. vbox_x86-eng
4. full_maguro-userdebug
5. full_toro-userdebug
6. full_panda-eng
7. cm_anzu-userdebug
8. cm_captivatemtd-userdebug
9. cm_coconut-userdebug
10. cm_crespo-userdebug
11. cm_crespo4g-userdebug
12. cm_epicmtd-userdebug
13. cm_galaxysbmtd-userdebug
14. cm_galaxysmtd-userdebug
15. cm_galaxys2-userdebug
16. cm_haida-userdebug
17. cm_hallon-userdebug
18. cm_i777-userdebug
19. cm_iyokan-userdebug
20. cm_mango-userdebug
21. cm_maguro-userdebug
22. cm_p1-userdebug
23. cm_p1c-userdebug
24. cm_p3-userdebug
25. cm_p4-userdebug
26. cm_p4tmo-userdebug
27. cm_p4vzw-userdebug
28. cm_p4wifi-userdebug
29. cm_p5-userdebug
30. cm_p5wifi-userdebug
31. cm_p920-userdebug
32. cm_p970-userdebug
33. cm_p990-userdebug
34. cm_p999-userdebug
35. cm_pyramid-userdebug
36. cm_satsuma-userdebug
37. cm_shooter-userdebug
38. cm_shooteru-userdebug
39. cm_smb_a1011-userdebug
40. cm_smultron-userdebug
41. cm_tenderloin-userdebug
42. cm_tf101-userdebug
43. cm_tf201-userdebug
44. cm_toro-userdebug
45. cm_urushi-userdebug
46. cm_vibrantmtd-userdebug
47. cm_wingray-userdebug
48. cm_zeus-userdebug
Which would you like? [full-eng]
There isn't our phone.
I think it can't know I've added another device. Does anybody know how to solve this problem? I'm sure it's something pretty stupid...
P.S. I'm using Ubuntu 11.10
EDIT: Ok, I think I've done something wrong syncing androidmeda sources.
What I've done is:
Code:
[email protected]:~$ cd WORKING_DIRECTORY
[email protected]:~/WORKING_DIRECTORY$ repo init -u git://github.com/androidmeda/cm_device_lge_p500.git
repo initialized in /home/francesco/WORKING_DIRECTORY
[email protected]:~/WORKING_DIRECTORY$ repo sync
Fetching projects: 100% (248/248), done.
Syncing work tree: 100% (248/248), done.
I've done this for git://github.com/androidmeda/cm_vendor_lge_p500.git and git://github.com/androidmeda/lge-kernel-msm7x27.git too. I can't see them though.
Solved the problem. Cloned androidmeda's device folder into device/lge/p500
EDIT2: FINALLY COMPILING!
EDIT3:
Code:
make: *** Nessuna regola per generare l'obiettivo "device/lge/p500/init.p500.usb.rc
It's 'No rule to make target'. I don't know what to do, I can't even find that file, but I've got a file called init.thunderg.usb.rc
Solved renaming init.thunderg.usb.rc to init.p500.usb.rc. It's compiling now
adfad666 said:
Essential Software:
Ubuntu 11.10 (dual boot not virtual machine, it's too slow)
Eclipse IDE with the Android plugins
Meld (for easy directory compares)
Mastery of the terminal especially git / repo commands
Github account
CyanogenMod gerrit account
Google Plus account
I'm assuming you're coming from Windows since you don't know what a .so file is (like I did when starting). .so files are android's versions of .dll files. 'executables' don't have a file extension. Kernel modules use the .ko extension.
(I think .so means shared object, .ko means kernel object. Makes sense to me anyway )
The worst thing about starting is simply the sheer size of the project, it is a whole operating system we are dealing with here!
Start simple and easy, follow the instructions on how to make your own build and flash it. (and feel proud you have your own build string in about phone!) Then do it again without the instructions. (harder than it sounds )
The programming side may not be such a problem for you if you already know it. I didn't know anything. reading library files written in c++ ain't so bad, but getting used to how an android app is written in java was a huge mindf**k for me at first.It still is actually
I'm really just your average code hacker, I just hack based on educated guesses but I have taken copious notes on what I do and how things work. Seriously, I have two A5 notebooks full of lists, commands, file locations, diagrams and other tips I've found over the past 6 months.
Prepare to read a lot, be confused a lot, say WTF?!?!?! a lot, delighted when you make your first changes and they work, a ton of waiting for builds to finish and perhaps a bit nervous when you are ready to submit your first commit to CyanogenMod...
Click to expand...
Click to collapse
Thanks man Your work has really inspired me and yes haha I am moving from windows all though I have had some experience with ubuntu before. It makes sense about the extensions. Thanks for your advice Will ask questions if I need to
I'm having problems compiling using make -j4
Code:
make -C kernel/lge/p500 O=/home/francesco/WORKING_DIRECTORY/out/target/product/p500/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=/home/francesco/WORKING_DIRECTORY/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi- cyanogenmod_p500_defconfig
make[1]: ingresso nella directory "/home/francesco/WORKING_DIRECTORY/kernel/lge/p500"
make[1]: *** Nessuna regola per generare l'obiettivo "cyanogenmod_p500_defconfig". Arresto.
make[1]: uscita dalla directory "/home/francesco/WORKING_DIRECTORY/kernel/lge/p500"
make: *** [/home/francesco/WORKING_DIRECTORY/out/target/product/p500/obj/KERNEL_OBJ/.config] Errore 2
make: *** Attesa per i processi non terminati....
'No rule to make target "cyanogenmod_p500_defconfig". Stop'
Any idea?
When I've used make -i I haven't had this problem
EDIT: Solved moving cyanogenmod_p500_defconfig in p500 folder
Ok, I'm trying to tidy up everything a bit. I've noticed there is a new github. I've seen this:
Code:
LG P500 ICS Setup
Copy/paste it WORKING_DIR/.repo/local_manifest.xml
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project path="device/lge/p500" name="p500/cm_device_lge_p500" remote="github" revision="master" />
<project path="vendor/lge/p500" name="p500/cm_vendor_lge_p500" remote="github" revision="master" />
<project path="kernel/lge/p500" name="p500/lge-kernel-msm7x27" remote="github" revision="android-ics-msm-2.6.35" />
</manifest>
I have no local_manifest.xml. Do I have to create it? Or do I have to add these three lines to manifest.xml (which is in .repo folder)? And do I have to add toolchain too?
Question: if installing Ubuntu with wubi on Windows XP, will it show the dual-boot screen on every boot?(or else what shortcut?)
And does it need to defragment, or is it safe just like that?
vlt96 said:
Question: if installing Ubuntu with wubi on Windows XP, will it show the dual-boot screen on every boot?(or else what shortcut?)
And does it need to defragment, or is it safe just like that?
Click to expand...
Click to collapse
No idea, never tried.
If you understand anything:
http://en.wikipedia.org/wiki/Wubi_(Ubuntu)
Why dont you use vmware instead?
Now someone help me with this:
Whenever i try to recompile the framework-res.apk(pasquale test)(even without editing) i get this error:
What can i do about it?
rishabh22 said:
No idea, never tried.
If you understand anything:
http://en.wikipedia.org/wiki/Wubi_(Ubuntu)
Why dont you use vmware instead?
Now someone help me with this:
Whenever i try to recompile the framework-res.apk(pasquale test)(even without editing) i get this error:
What can i do about it?
Click to expand...
Click to collapse
VM got me an error when installing saying it is incompatible with win xp (I could install, but didn't wanna risk, windows is harder to recover than Android)
try using virtual box.
https://www.virtualbox.org/
rishabh22 said:
try using virtual box.
https://www.virtualbox.org/
Click to expand...
Click to collapse
yea I did that... but did anyone try it on XP, it says it failed incompatibility tests or something (same error I got when trying to install windows 7 video drivers on xp) and I don't wanna risk, anyone?
I don't think it's good to install ubuntu to compile android in a virtual machine, I think the compilation would be too slow. I'm sorry I can't help you, I've installed ubuntu from a Live CD and I didn't have many problems with the installation process.
BTW, added the three lines to manifest.xml synced repo. It's compiling well using make -j4
vlt96 said:
yea I did that... but did anyone try it on XP, it says it failed incompatibility tests or something (same error I got when trying to install windows 7 video drivers on xp) and I don't wanna risk, anyone?
Click to expand...
Click to collapse
huh? both vmware and virtual box arn't compatible with xp
why the heck were u trying to install win7 video drivers on xp
And why dont you dual boot?
---------- Post added at 08:37 PM ---------- Previous post was at 08:34 PM ----------
ZatBaloo said:
I don't think it's good to install ubuntu to compile android in a virtual machine, I think the compilation would be too slow. I'm sorry I can't help you, I've installed ubuntu from a Live CD and I didn't have many problems with the installation process.
BTW, added the three lines to manifest.xml synced repo. It's compiling well using make -j4
Click to expand...
Click to collapse
if you have enough ram and a good enough processor there shouldnt be any problem in using a virtual machine. i use backtrack with 2.9/4gb ram and am able to use both windows7 and backtrack simultaneously without any problems/lag
I have an i5 2.3-2.9GHz
Sure it depends on what you want to compile. It was just a suggestion to compile faster. You probably won't notice lag, but it will take more to compile everything.

[Problem] AOSP Compile Failed - makefile not found.

Hello. I Try Compile AOSP froyo-relase compile but Make doesn't work. :S
I Downloaded All Zip from github/android/ where is froyo-relase and unpack to once folder (screen) and i give it chmod to 777 but after make i see
"Make file not fount. Stop."
What I Doing wrong?
Screen in Attach
cheqolada said:
Hello. I Try Compile AOSP froyo-relase compile but Make doesn't work. :S
I Downloaded All Zip from github/android/ where is froyo-relase and unpack to once folder (screen) and i give it chmod to 777 but after make i see
"Make file not fount. Stop."
What I Doing wrong?
Screen in Attach
Click to expand...
Click to collapse
There should be a Makefile in the root of your source tree, If it's missing , run this command in the source tree root
Code:
echo "include build/core/main.mk" > Makefile
That will probably get you started!
Thanks
Thanks
now i Have problem with compile Android 2.2.3 - I have Java 1.6 but i need 1.5 so i Cant Start Compile . What Now? I Try to install Java 1.5
cheqolada said:
Thanks
now i Have problem with compile Android 2.2.3 - I have Java 1.6 but i need 1.5 so i Cant Start Compile . What Now? I Try to install Java 1.5
Click to expand...
Click to collapse
Looks like it's your lucky day then
This post covers all things Java - http://forum.xda-developers.com/showpost.php?p=26957072&postcount=4
Doesn't hurt to use the search feature either, It's works really well

[Guide][Noob-Friendly]Building Kernel For Lenovo A6000/+

Building A Kernel For A6k​
Hello Folks, Looks like A6000 Forums Are On Fire So Now I AM HErE TO POuR Oil In The FIRE
Lets Get Straight To The POint
This Guide Will Help you build a kernel for our little Precious One
Requirements:
Ubuntu[DOnt Ask How]
Required Libs like libncurses, and stuff [If you face any such error realted to libs, just google Once]
Good Internet
AT least 2GB RAM and a good processor
A bit of your time
Patience and brain
Steps:
1) Create A folder anywhere with any name you want and open it
2) Open terminal in that folder and Run This COmmand Which will install all required Libs
Code:
sudo apt-get install -y build-essential kernel-package libncurses5-dev bzip2
3)After It gets done now we need a toolchain so now type " mkdir kernel" and "cd kernel" without quotes
4) Now we will dload toolchain so first install GIT and GCC libs for ex
"sudo apt get-install git"
Now Run This to clone the toolchain
Code:
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8
5)After toolchain gets downloaded now we need kernel sources, to simplify it clone the sources from my GIT using this command in terminal
Code:
git clone https://github.com/varunhardgamer/kernel_lenovo_a6000.git
6)After Dloading kernel sources open the kernel sources folder which may have name Semar Kernel or something like that and open BuildingKernel.txt and understand the way you need to edit Build.sh
Its not hard you just need to type the address to your kernel folder which you made
7)Now type
Code:
make ARCH=arm
and press enter
8)Then RUn
Code:
make wt86518_defconfig
9)THen Run
Code:
make menuconfig
and a popup will appear showing you all the tweaks that can be included in the kernel, select accordingly and save it
10)After you Finish tweaking it, open build.sh and edit it acordingly and then run the script by " .build.sh " in the terminal and wait till you get the zimage which is the kernel
8)Now download semar kernel r5zip and push your zimage inside it and flash your first Kernel
COmment here if you face any Errrors
Kernel Source _ https://github.com/varunhardgamer/kernel_lenovo_a6000
Credits to-
Me
Mr.AW
@3lambda
Orata
@mshoaib7
@dev_harsh1998
and XDA Forums
Reserved
Link To the original Thread
https://forum.xda-developers.com/android/software/guide-easy-kernel-building-tutorial-t3581057
Thanks To @3lambda
[Really THanks Man]
Just In Case
DualBoot Coming Soon By The WAy
The MErc With A MouTh is Back
The source you have mentioned isnt the proper source for Kernel and is Limpy when it comes to New stuff support better you link them to this repo :- https://github.com/dev-harsh1998/android_kernel_lenovo_msm8916
and GCC-4.7 is old and has regression bugs Better use gcc-4.8
Regards,
dev_harsh1998
dev_harsh1998 said:
The source you have mentioned isnt the proper source for Kernel and is Limpy when it comes to New stuff support better you link them to this repo :- https://github.com/dev-harsh1998/android_kernel_lenovo_msm8916
and GCC-4.7 is old and has regression bugs Better use gcc-4.8
Regards,
dev_harsh1998
Click to expand...
Click to collapse
Ok but the build.sh that i have mentioned will have to be edited again
Oh man
OK wait
Some Modifications To the guide will be done by tomorrow
No worries you doing good work
dev_harsh1998 said:
No worries you doing good work
Click to expand...
Click to collapse
Thanks Limit DOne
WIll thanks Tomorrow
You need to edit build.sh
Change -j64 to -j4 or it'll mess up for everyone.
---------- Post added at 05:02 PM ---------- Previous post was at 05:02 PM ----------
dev_harsh1998 said:
The source you have mentioned isnt the proper source for Kernel and is Limpy when it comes to New stuff support better you link them to this repo :- https://github.com/dev-harsh1998/android_kernel_lenovo_msm8916
and GCC-4.7 is old and has regression bugs Better use gcc-4.8
Regards,
dev_harsh1998
Click to expand...
Click to collapse
+1
Use this kernel it's updated nd better.
Has.007 said:
You need to edit build.sh
Change -j64 to -j4 or it'll mess up for everyone.
---------- Post added at 05:02 PM ---------- Previous post was at 05:02 PM ----------
+1
Use this kernel it's updated nd better.
Click to expand...
Click to collapse
Oh Thanks for pointing that 64 out:good:
Thanks
The Hard Gamer said:
Oh Thanks for pointing that 64 out:good:
Thanks
Click to expand...
Click to collapse
Welcome. Keep up the good work. :good:
Lol, just rechecked your git.
The kernel will not compile. You need to define the toolchain.
Has.007 said:
Lol, just rechecked your git.
The kernel will not compile. You need to define the toolchain.
Click to expand...
Click to collapse
I myself used this method and compiled a kernel
And for toolchain
I already mentioned
export cross_compile in .sh
The Hard Gamer said:
I myself used this method and compiled a kernel
And for toolchain
I already mentioned
export cross_compile in .sh
Click to expand...
Click to collapse
bad command practise..
is it work for any version of Android? currently I'm using RR 5.8.2
hayatnas18 said:
is it work for any version of Android? currently I'm using RR 5.8.2
Click to expand...
Click to collapse
Wait till i update the guide again

[KIGTCHEN][R][TEST] Dynamic unpacker

Dynamic unpacker​
Hey, here I am with one testing kitchen to pack and unpack SUPER.IMG​
its just in initial phase, the motive behind this kitchen is only to help others who wants to learn and make it more better​
Initial​
Clone that repo with git clone https://github.com/neel021000/dynamic.git tho its still in beta phase.
Get the super.img file and put it in the same folder as the binary named 'lpunpack'
What needed?​
Linux machine and some time
REPO
Dynamic unpacker
extracting stuff​
Note: Some devices have only: system, odm, vendor and product. Oppo/Realme devices can have oppo_product, then use imjtool binary its there too!!
Shell time:
chmod a+x ./kitchen.sh
./kitchen.sh
or
. kitchen.sh
choose as per your need!
Credits​
@DAvinash97 - for his base script
@Astrako - for his help in each and everything
@yukosky - for explaining me and sharing his idea
@cytolytic - for his clever ideas
Google sources - for files
Credits for Binaries (backbone of this kitchen)
bynarie - lpunmake and lpmake is his property
morpheus______ - imjtool is his property
- if I forgot to mention anyone, please do let me know by pming me on telegram @neel0210 ​
OMG! Good work as usual!
epic! thanks!
Astrako said:
OMG! Good work as usual!
Click to expand...
Click to collapse
tysm
el0xren said:
epic! thanks!
Click to expand...
Click to collapse
I am not a dev but I would like to wish u well done good job
Good work! But you forgot to credit the owners of binaries. Here
DAvinash97 said:
Good work! But you forgot to credit the owners of binaries. Here
Click to expand...
Click to collapse
Agnes you're life saver. Just added.
kitchen*
Epic work as usual @neel0210
Working on WSL2 ?

Categories

Resources