Related
If you are like me you are tired of reformatting to have to type in a long mess of stuff just to use adb well I have simplified it in a small sh file. It installs all the applications according to Android's website. I even updated the application names to the ones which Ubuntu 11.10 64-bit recognizes. It's an initial release feel free to modify.
Extract all files to your HOME dir, edit the username in phones.rules and execute in terminal
Find the most recent version on github (Link in my Signature)
Download initial release here : https://github.com/elginsk8r/build_env/zipball/master
elginsk8r said:
If you are like me you are tired of reformatting to have to type in a long mess of stuff just to use adb well I have simplified it in a small sh file. It installs all the applications according to Android's website. I even updated the application names to the ones which Ubuntu 11.10 64-bit recognizes. It's an initial release feel free to modify.
Extract all files to your HOME dir, edit the username in phones.rules and execute in terminal
Find the most recent version on github (Link in my Signature)
Download initial release here : megaupload dot com ?d=QJ1VLJIL[/url]
Click to expand...
Click to collapse
gr8 idea how to run it on windows7??
doomhammer07 said:
gr8 idea how to run it on windows7??
Click to expand...
Click to collapse
You can't compile on windows, you need a linux distro or mac to do so!
cdesai said:
You can't compile on windows, you need a linux distro or mac to do so!
Click to expand...
Click to collapse
Or a Linux distro running as a VirtualBox VM under Windows.
a change to your script...line 14
cd ~/sdk/tools
should be changed to
cd ~/android-sdk-linux/tools
anyone could probably figure it out but for those in need and confused..
Can someone repost this script? Some sort of FBI warning on megaupload atm.
I'll reupload when I get home tonight with updated version
Sent from my HTC Glacier using XDA
link has been updated. Thanks JKILO for pointing that out I must have overlooked that one.
hey there!
is there a possibility to get this script anywhere?
the link to github is dead and i can't find it elsewhere...
would be really cool!
greetz n thx,
sUsH
ROM INSTALLATION SCRIPT
Code:
[LIST]
[*]your warranty will be voided
[*]YOU NEED A UNLOCKED BOOTLOADER
[*]Be smart, read the instructions and the read me
[/LIST]
INTRODUCTION
This will allow you to easily install roms on you phone, good for beginners who are not very experienced.
These scripts are in the form of (.sh) so they will only work on mac and linux at the time I will release (.bat) windows scripts as well.
Click to expand...
Click to collapse
FEATURES
fast and easy to use
works on devices with and without fastboot
can use root to isntall recovery if there is no fastboot
use openrecovery script to isntall, wipe and backup current rom
is on GITHUB
Click to expand...
Click to collapse
INSTRUCTIONS
download as a zip
extract
open a command line at folder or cd to it
install devices drivers
get ADB working
run
Code:
chmod +x install.sh
or
Code:
chmod +x install_no_fastboot.sh
run
Code:
./install.sh
or
Code:
./install_no_fastboot.sh
wait for process to complete
ENJOY
Click to expand...
Click to collapse
CHANGELOG
Code:
Fixed the scripts so that they work far more reliably. It also fixes that root access bug for pushing the OPENRECOVERYSCRIPT
OLDER RELEASES:
Initial release
Click to expand...
Click to collapse
DOWNLOADS
source code
FAQ
Q. Do I need root if I have fastboot
A. No (use install.sh)
Q. Does this flash safetrap
A. NOOO!!!, IF you have a locked bootloader do NOT use this it will void your warranty, BRICK your phone or worse
Q. DO I "need" to rename my recovery
A. YES
Q. What custom recoveries does this support
A. Any one that is in .img form, can flash roms, and support openrecoveryscript
XDA:DevDB Information
ROM installation script, Tool/Utility for all devices (see above for details)
Contributors
melbing
Source Code: https://github.com/Melbing/rom_installation_script
Version Information
Status: Testing
Current Stable Version: 2.0
Stable Release Date: 2014-12-24
Current Beta Version: 1.0
Created 2014-12-06
Last Updated 2014-12-28
OTools------------------------------------------------------------------
OTools is an opensource toolkit for windows and linux that helps you manage your oppo or oneplus device.
Click to expand...
Click to collapse
Code:
This program has enough knowledge to brick your device, destroy your computer,
void warranties, eat cats and burn your flowers.
The developer disclaim every damange caused from the usage of this program.
Supported devices
------------------------------------------------------------------
OnePlus One
Oppo Find 7(a/s)
Oppo Find 5
Oppo N1
Features
------------------------------------------------------------------
User friendly gui
Management features
Backup and restore (adb)
Push and Pull files
Import camera photos
Install apk
Record Screen
Shell
Modding
Root
Unlock Bootloader
Lock Bootloader
Backup EFS
Flash zip files
Install roms (optional backup)
Flash boot.img files
Install recovery
Root Mode
Dipendecies
------------------------------------------------------------------
ADB
FastBoot
XTerm (only for linux amd64)
Downloads
------------------------------------------------------------------https://github.com/linuxxxxx/O-Tools
Sources
------------------------------------------------------------------
Github - Master
Windows
Linux (amd64)
Unix / Linux
Notes
------------------------------------------------------------------
It's fully written using qt (c++), some parts are written in bash (batch for windows), if you want to compile, just import the sources into qt
It's not avaible yet, I just got my opo, so NO ETA
It's based on my XiaomiTool
Contributions and suggestions are welcome
XDA:DevDB Information
OTools - An opensource Toolkit for Oppo and OnePlus devices , Tool/Utility for the Oppo Find 5
Contributors
linuxxxx
Source Code: https://github.com/linuxxxxx/O-Tools
Version Information
Status: Alpha
Created 2014-12-27
Last Updated 2015-01-16
linuxxxx said:
OTools------------------------------------------------------------------
Code:
This program has enough knowledge to brick your device, destroy your computer,
void warranties, eat cats and burn your flowers.
The developer disclaim every damange caused from the usage of this program.
Supported devices
------------------------------------------------------------------
OnePlus One
Oppo Find 7(a/s)
Oppo Find 5
Oppo N1
Features
------------------------------------------------------------------
User friendly gui
Management features
Backup and restore (adb)
Push and Pull files
Import camera photos
Install apk
Record Screen
Shell
Modding
Root
Unlock Bootloader
Lock Bootloader
Backup EFS
Flash zip files
Install roms (optional backup)
Flash boot.img files
Install recovery
Root Mode
Dipendecies
------------------------------------------------------------------
ADB
FastBoot
XTerm (only for linux amd64)
Sources
------------------------------------------------------------------
Github - Master
Windows
Linux (amd64)
Unix / Linux
Notes
------------------------------------------------------------------
It's fully written using qt (c++), some parts are written in bash (batch for windows), if you want to compile, just import the sources into qt
It's not avaible yet, I just got my opo, so NO ETA
It's based on my XiaomiTool
Contributions and suggestions are welcome
XDA:DevDB Information
OTools - An opensource Toolkit for Oppo and OnePlus devices , Tool/Utility for the Oppo Find 5
Contributors
linuxxxx
Source Code: https://github.com/linuxxxxx/O-Tools
Version Information
Status: Alpha
Created 2014-12-27
Last Updated 2014-12-27
Click to expand...
Click to collapse
how do i used it? where is the download?
eko_cahyono said:
how do i used it? where is the download?
Click to expand...
Click to collapse
Read the op
Sent from my A0001
linuxxxx said:
Read the op
Sent from my A0001
Click to expand...
Click to collapse
Thanks a lot for your work mate, will test it asap on my Oneplus, later on my Find5 when I get it back from repair.
Cheers
Sent from my A0001 using XDA Free mobile app
Alpha released for unix and linuxamd64 (on linux you may need to install qtwidget)
There are bugs and missing features!!
Windows users: the code is ready but i have to find a pc (or setup a vm) where i can compile this
Hi all , I'm new here and I would like to present to you this simple application which backup, edit, repack and flash kernel.img or recovery img with a single click.
This apk need root.
All credit of unpak/repack tools used in my apk are to @osm0sis
atoxyd said:
Hi all , I'm new here and I would like to present to you this simple application which backup, edit, repack and flash kernel.img or recovery img with a single click.
This apk need root.
Click to expand...
Click to collapse
can I use this on snapdragon 615 stock kernel
Sent from my 6045X using Tapatalk
Yes, you can try
tested on htc desire 816, cm13
unpacks and repacks kernel and ramdisk successfully, but didn't extract or repack the dtbs (device tables image, kernel 3.4) so the repacked image won't boot.
Well I use in my apk AIK.mobile tools proposed by osm0sis.
atoxyd said:
Well I use in my apk AIK.mobile tools proposed by osm0sis.
Click to expand...
Click to collapse
https://github.com/osm0sis/AnyKernel2/ ?
from http://forum.xda-developers.com/showthread.php?t=2670512
bigsupersquid said:
tested on htc desire 816, cm13
unpacks and repacks kernel and ramdisk successfully, but didn't extract or repack the dtbs (device tables image, kernel 3.4) so the repacked image won't boot.
Click to expand...
Click to collapse
Hi, I test it on cm13 and I unpack recovery.img for HTC desire 816, I think it work fine.
If the apk didn't work properly that's means the boot image doesn't not following Google's standard format so you'll need to find other tools to unpack and edit your image.
atoxyd said:
Hi, I test it on cm13 and I unpack recovery.img for HTC desire 816, I think it work fine.
If the apk didn't work properly that's means the boot image doesn't not following Google's standard format so you'll need to find other tools to unpack and edit your image.
Click to expand...
Click to collapse
I can unpack, edit, and repack successfully.
but, it wont boot.
I used official twrp 3.0.0-0 recovery.img and cm13 boot.img both, tried without editing.
just unpack/repack/flash.
boots straight into hboot, which is what happens if I build a boot.img or recovery.img without dtbs.
I pointed to the anykernel2 link because I know its scripting handles dtbs.
the whole kernel device table thing is new to me, and so far only on this device, so I'm not very savvy with dtb work. been lucky enough that it was preconfigured in the build system for cm.
nero curin said:
can I use this on snapdragon 615 stock kernel
Sent from my 6045X using Tapatalk
Click to expand...
Click to collapse
Hi, did my apk work for you?
atoxyd said:
Hi, did my apk work for you?
Click to expand...
Click to collapse
only unpacking and repacking,didnt help on my device but yet again nothing else helps me compile kernel for this idol 3 so i guess this app works just not for me, bad luck :/
Sent from my 6045X using Tapatalk
Well, this is a beta version of my apk, only for testing, I use @osm0sis tools ,this doesn't mean that you have bad luck my friend, this is due to the limitation of @osm0sis tools, but I will find another way to make it universal apk. Okay
atoxyd said:
Well, this is a beta version of my apk, only for testing, I use @osm0sis tools ,this doesn't mean that you have bad luck my friend, this is due to the limitation of @osm0sis tools, but I will find another way to make it universal apk. Okay
Click to expand...
Click to collapse
The scope of my tools is for Google's Android image standard as defined in the bootimg.h header from AOSP/CM. My tool forks have the widest support available for images which are standards compliant, supporting all commonly used ramdisk compression formats.
Supporting Sony's ELF, MTK's labeled and Samsung's headerless image formats along with the standard images (not to mention Samsung's and others' various deviations based on the standard header) and having the script/app differentiate between them would be a very large and difficult undertaking indeed. If that's your plan then I wish you the best of luck in your efforts.
hey, ran more tests.
no issues with the dtb or other functions either.
backup and flash functions working fine too.
here, for your devices.xml
Code:
<!-- Desire 816 a5 (710C) added by bigsupersquid -->
<device>
<model>710C</model>
<kernel>/dev/block/mmcblk0p40</kernel>
<recovery>/dev/block/mmcblk0p41</recovery>
<cache>/dev/block/mmcblk0p42</cache>
</device>
thanks for your work.
eagerly awaiting your open source as well
atoxyd said:
Hi all , I'm new here and I would like to present to you this simple application which backup, edit, repack and flash kernel.img or recovery img with a single click.
This apk need root.
All credit of unpak/repack tools used in my apk are to @osm0sis
Click to expand...
Click to collapse
Thank you for adding the appropriate credit back to your post. Patching, cross-compiling and scripting has taken significant work. :good:
The only other thing that I'd ask is that you do not use the name of Android Image Kitchen or AIK in the title of your app. I'd like to suggest maybe "Image Editor and Flasher" as a snappy alternative?
bigsupersquid said:
hey, ran more tests.
no issues with the dtb or other functions either.
backup and flash functions working fine too.
here, for your devices.xml
Code:
<!-- Desire 816 a5 (710C) added by bigsupersquid -->
<device>
<model>710C</model>
<kernel>/dev/block/mmcblk0p40</kernel>
<recovery>/dev/block/mmcblk0p41</recovery>
<cache>/dev/block/mmcblk0p42</cache>
</device>
thanks for your work.
eagerly awaiting your open source as well
Click to expand...
Click to collapse
Thank you my friend , you are the only one who supported me , and from the beginning.
atoxyd said:
Thank you my friend , you are the only one who supported me , and from the beginning.
Click to expand...
Click to collapse
it's a useful project, definitely worth a little testing and feedback.
besides, i remember what a pain it was getting my xda account eligible for posting the project i was all gung-ho about sharing (optimus v boot from sd card if i remember correctly)
sharing is cool, but a lot of the feedback tends to be annoying when there's no logs or other usable information, just "it's broken" or "can you implement for me on device XYZ."
bigsupersquid said:
I can unpack, edit, and repack successfully.
but, it wont boot.
I used official twrp 3.0.0-0 recovery.img and cm13 boot.img both, tried without editing.
just unpack/repack/flash.
boots straight into hboot, which is what happens if I build a boot.img or recovery.img without dtbs.
I pointed to the anykernel2 link because I know its scripting handles dtbs.
the whole kernel device table thing is new to me, and so far only on this device, so I'm not very savvy with dtb work. been lucky enough that it was preconfigured in the build system for cm.
Click to expand...
Click to collapse
Did you have an unlocked bootloader ?
nothing changed on the device, unlocked and still s-on, I'm not sure what went wrong the first try.
PEBKAC error probably
(problem exists between keyboard and chair)
I release AIK&Flasher v2 , I use @xiaolu unpack/repack tools.
atoxyd said:
I release AIK&Flasher v2 , I use @xiaolu unpack/repack tools.
Click to expand...
Click to collapse
Please use a different name for your app as I have requested.
Okay I don't have enough time to update this whole description, no one volunteered to host the VM so now I only have a Debian Buster WSL2 (Windows 10 latest) build environment. You can make kernels and ROMs from it. It has a built in XFCE4 and all the features listed below. It will build kernels for you from source and place them in AnyKernel3 zip files ready for flashing in the ~/ directory. Build scripts are provided for Op8T 5G custom and GPUOC RadioActive Kernels from my GitHub (modded for performance + battery). You can use this guide and get full audio and a GUI and all you need to build.
Try out this build for Debian Buster for WSL2:
First you need to ensure you are on a recent build of Windows, go to windows Updates in settings and download the latest.
Next open a Powershell Command Prompt in Admin mode. Type:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform -NoRestart
Restart your PC, then get back into an Admin Powershell prompt and type:
wsl --set-default-version 2
Next you can download this tar.gz distribution, it's quite big (6GB zipped -> 14GB unzipped). Apparently you can import a tar.gz directly, so I changed it from a .zip file to .gz: https://mega.nz/file/DkARXIjD#hGu8TjxaA__YrRsfqfWJw9-2ViyyntyK5U8JdClor6A
Easily move WSL distributions between Windows 10 machines with import and export!
wsl --import <DistributionName> <InstallLocation> <Full path to .tar/.tar.gz FileName>
After import, you should type: login: user password: user (also the sudo password) change the Global Git settings to your own email and username.
Open the command line.
Set your username: git config --global user.name "FIRST_NAME LAST_NAME"
Set your email address: git config --global user.email "[email protected]"
Then if you want to set up SSH between your WSL2 instance and NoMachine, download NoMachine here for your host PC: https://www.nomachine.com/download/download&id=8 then follow the steps to generate an SSH key, which will be located at ~/.ssh.
ssh-keygen -m PEM -t rsa -b 4096
Use the directory default ~/.ssh/
Then copy this file: ~/.ssh/id_rsa.pub to ~/.nx/config/authorized.crt
In the NoMachine GUI, you should select Configuration, Use a key based authentication key which you provide, then provide the path to the private key \\wsl$\debian\home\user\.ssh\id_rsa and check the box Import the key to the connection file.
To get to the XFCE4 GUI, you should type login: user password: user, then run /.nomachine.sh
It will post the IPV6 address you need to enter into the configuration into NoMachine on Windows 10. It changes every time you open it (WSL2 problem).
Now you should be able to connect to the GUI and use all the dev tools built in. Or you can just use the command line if you're more comfortable there. You'll probably need to do some more Googling to get everything setup the way you like. There are 2 examples in this file for an Op8T RadioActive modded kernel from my GitHub repos with a ./Build-Clang12.sh script you can use to see how to build a kernel. It it fully automatic. It will generate the zip specified in that file in the ~/ directory which can be flashed to a device via EX Kernel Manager or FK Kernel Manager. Best of luck!
Great job mate. I hope this is the kick off and boost up kernel development on the MI9 ??
Now THAT is what XDA is all about.
I'd like to get in to this type of development but simply don't have the personal time right now.
Hope this helps boost community support a bit.
This must've taken some time. Hats off to you sir.
kickassdave said:
Now THAT is what XDA is all about.
I'd like to get in to this type of development but simply don't have the personal time right now.
Hope this helps boost community support a bit.
This must've taken some time. Hats off to you sir.
Click to expand...
Click to collapse
Thanks Dave - this is the absolute easiest way to build a kernel. Yes it took forever to get working, a lot had to do with bad Xiaomi source code and Android 9 package requirements for building kernels. You can simply download, install, click Goto Build, click on QClang8_Build, copy/paste it's text from Geany into the open terminal, sit back and wait for the build to finish. Then once it completes, you click on Built Kernels and you have your image ready. A few more steps obviously outlined in the post to transfer to the host machine (cp Image-dtb /media/sf_VMxfer) and pack via Android Image Kitchen, copy to the device, and flash via TWRP. Most features require Magisk patching as well to enable altering in a kernel manager. The mentioned repo (mrslezak) has Fsync toggle, 830GPU overclock, and F2FS file system support (Mauro TWRP has just enabled it, so I'm using it now). I should note as well that this kernel has only been tested on MIUI and Xiaomi.eu builds thus far (anything based on Xiaomi MIUI should work - MIUI Global Dev, China Dev, Xiaomi.eu, MiGlobe, RevolutionOS, etc. as long as it is Android Pie).
I'm waiting on others to jump on board!!!! Hopefully it happens
Excellent guide, will work for almost all pie devices!
Great work OP :highfive:
Regards,
acervenky
Hi, @mslezak @acervenky Can you help me to build kernel for Stock Miui 10 for K20/Mi9t . I followed your guide setup all requirement i just changed the device code name from cepheus to davinci everything went well kernel complied and also created the boot.img with AIK but after flash it is through back me to recovery.
Can you Please help me with this.
@acervenky fixed that by applying the patch in the Desktop Mi9_Build_Tools/Required_Patches_to_Compile_Xiaomi_Source/cosmin_kernel-module.c copy that to /kernel/module.c, he can chime in here. Or check out his repo he has one on Github that compiles already QUAX kernel I believe with a bunch of stuff added already over stock.
Good job. Compiled a kernel for mi9t pro (raphael) with your detailed guide.
Can you help with "make modules" command?
I need to make xt_HL.ko module, but it not compiling ((
Not needed anymore, made it successfully.
Can you compile q kernels with this?
asgardpark said:
Can you compile q kernels with this?
Click to expand...
Click to collapse
Yes! Just don't replace .dtsi and module.c files for now.
Regards,
acervenky
New Q build VM coming soon. GCC10 x64 and Arter97 GCC9 x32 toolchain.
Just a notice here I have a VM almost ready to upload that can build Mi9 source. It's a ton of patches to stock code but I'll setup a repo with them already applied.
Can i use anykernel to make a flashable zip? Or do i have to use a diffrent approach?
https://mega.nz/#!voJEGIRC!r4FcV6zUlVbFExcidhL9JmgVZlu3IscYH-S5XlnTUJI Android Q VM - expands to 40gb on your hard drive so you don't run out of space. Builds a GCC10 patched version of Xiaomi Cepheus and Raphael kernels from my repo, forked from Xiaomi and commits outlining every step needed to get it to build. https://github.com/mrslezak/Cepheus-Raphael-Q-GCC10
Yes AnyKernel3 is the easiest
asgardpark said:
Can i use anykernel to make a flashable zip? Or do i have to use a diffrent approach?
Click to expand...
Click to collapse
Sure AnyKernel3 is easy, take someone's kernel zip, insert your Image-gz.dtb or Image-dtb into the root of the zip, delete the other kernel, and you should be able to flash it.
got some compile errors today when i tried your wm
/home/user/toolchains/aarch64-linux-elf/bin/aarch64-linux-elf-ar: kernel/resource.o: No such file or directory
I'd first try a: make clean; and: make mrproper;....
But here's more info:
Double click the GoTo Build icon, a terminal will open in the source directory. Then in the terminal: cp /home/user/Desktop/Build GCC10 Cepheus.sh .; chmod +x "Build GCC10 Cepheus.sh"; ./"Build GCC10 Cepheus.sh"; Once done the kernel will be in /home/user/Cepheus-Raphael-Q-GCC10/out/arch/arm64/boot/Image.gz-dtb. /out9TP/ for Raphael, just substitute the build script you need.
If it then still won't build, you'll have to grab the repo again. Type: git pull
Or the safest is a complete re-download: cd ..; rm -rf Cepheus-Raphael-Q-GCC10; git clone --depth=1 https://github.com/mrslezak/Cepheus-Raphael-Q-GCC10.git and repeat the prior copying of the build script to the source directory.
I tested this last night and it worked. If I tried to just drag the script into a terminal window it failed. There could be some dirty files in there not sure how that happened, but deleting and cloning again definitely works. I built both Cepheus and Raphael kernels last night in the VM off a fresh clone of the repo. I'd update I but it literally takes 6hrs + since the files are huge and take forever to compress and upload to Mega. And I have to delete so much off my VM and SSD just to do it. This way you learn something too
I first drag n dropped the file when i got the error, then i remembered when i compiled kernels for my raspberry pi's it also failed if i draged n dropped my build script so i did it the proper way and it worked
Thanks for your WM it's working great
mslezak said:
https://mega.nz/#!voJEGIRC!r4FcV6zUlVbFExcidhL9JmgVZlu3IscYH-S5XlnTUJI Android Q VM - expands to 40gb on your hard drive so you don't run out of space. Builds a GCC10 patched version of Xiaomi Cepheus and Raphael kernels from my repo, forked from Xiaomi and commits outlining every step needed to get it to build. https://github.com/mrslezak/Cepheus-Raphael-Q-GCC10
Click to expand...
Click to collapse
Could you upload the VM to Google Driver? Thank you!
q659503934 said:
Could you upload the VM to Google Driver? Thank you!
Click to expand...
Click to collapse
Yeah if you buy me Google drive space I'd be more than happy to upload to Google Drive. I'm out of space man. If you run Windows 10 Preview WSL2 I have a 3.2GB build that kills everything else out there.
mslezak said:
Yeah if you buy me Google drive space I'd be more than happy to upload to Google Drive. I'm out of space man. If you run Windows 10 Preview WSL2 I have a 3.2GB build that kills everything else out there.
Click to expand...
Click to collapse
Do you have WSL2 tar file that can build Kernel?