[GUIDE][COMPLETE][Noob Guide]How to build ROM with JENKINS! - Android

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
What is JENKINS?
Jenkins® is an open source automation server. With Jenkins, organizations can accelerate the software development process through automation. Jenkins manages and controls development lifecycle processes of all kinds, including build, document, test, package, stage, deployment, static analysis and many more.
How to setup Jenkins?
Installing Jenkins:
Install Java First - Java Installation
Now run this commands to install Java
Code:
wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key
Code:
echo "deb http://pkg.jenkins-ci.org/debian binary/" | sudo tee -a /etc/apt/sources.list.d/jenkins.list
Code:
sudo apt-get update
Code:
sudo apt-get install jenkins
Installing and Configuring Apache
Installing Apache
Code:
sudo apt-get install apache2
Code:
sudo a2enmod proxy
Code:
sudo a2enmod proxy_http
Configuring Apache
Code:
nano /etc/apache2/sites-available/jenkins.conf
Now paste the below code in jenkins.conf
Code:
<VirtualHost *:80>
ServerName HOSTNAME
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPreserveHost on
ProxyPass / http://localhost:8080/
</VirtualHost>
Replace HOSTNAME with your system/server IP Address
Enabling jenkins.conf
Code:
sudo a2ensite jenkins
Code:
sudo service apache2 reload
Installing Java / Maven / Git
Code:
sudo add-apt-repository ppa:webupd8team/java
Code:
sudo apt-get update
Code:
sudo apt-get install oracle-java7-installer maven git-core

Compiling ROMS with JENKINS
ReservedConfiguring Jenkins​Now open Jenkins by using your IP Address as your Jenkins url
Add the password which is specified in the Jenkins page.
This is your Admin Password and needed to enter once only
Click on Manage Jenkins
Click on Manage Global Security
Now select whether you want users to sign up or not
Now click on New Item
Enter Name of Project, select FreeStyle Project and hit OK
Now add Project name.
Select Use custom workspace, Specify your project directory here.
Add Build-Step, select executable shell and add the following code:
Code:
. build/envsetup.sh
brunch yourdevicecodename
Hit the save button
Hit Build with Parameters
Congratulations your rom is compiling!
​

Reserved too

Mmm.New things here,People will be helped! Good Job.

Thank you. I've been looking for this guide.

This is a great tutorial. Thanks!
Enviado desde mi Redmi Note 3 mediante Tapatalk

Related

[TUTORIAL LINUX]flash TWRP onto Mediapad 7 Lite

Introduction
Try at own risk
I am a Linux user. Commands are Debian or Ubuntu so you may need to check your package manager for
Linux software for adb if different distro.
If you do not have sudo enabled, then use su - please
On tablet, I use "reboot" by Petrus, as recommended by pogs24ever
I have also installed app= adbd insecure........YMMV
Know that when TWRP is used on removeable sdcard = /sdcard2, you will have a folder
called TWRP so I prefer to rename my image as twrp.img
Credits
Vampirefo for his wonderful help with adb and root id test
pogs24ever for his XDA post for TWRP
AbduL_PT for TWRP for Rockchip
Method
SPOILERS= Click to show content ..... hides images only
Ensure your device is rooted.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If your method to root is failing try my method here.
http://forum.xda-developers.com/hua...t-huawei-mediapad-7-lite-alternative-t2996675
On tablet go to system settings and enable USB debugging.
Don't worry about setting media transfer, camera or Hisuite
Download and unpack the TWRP* zip to PC and copy TWRP.img to your home folder.
See Original post for latest download
http://forum.xda-developers.com/showthread.php?t=2693100
Latest download is found at
"Dowload the zip file to this"
Install latest adb to Linux PC
Code:
sudo su
apt-get update
apt-get install android-tools-adb
Do NOT close terminal please
Create udev rule if you don't yet have Huawei mentioned in your rules
Code:
echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", MODE="666", GROUP="plugdev" ' > /etc/udev/rules.d/55-huawei.rules
Refresh udev for distros running "service" such as distros like Ubuntu with next command or
bottom line for distros not running service like Debian.
Code:
service udev restart
udevadm control --reload-rules
Now open terminal as local user please.
I prefer to kill the server and restart it with
Code:
adb kill-server
adb devices
If you do not get a device showing a serial number, you can NOT continue.
Recheck you have enabled USB debugging, kill the server and retry adb devices command.
If you are not sure what device your recovery is on, recheck it please with
Code:
adb shell cat /proc/mtd | grep recovery
Now we need to translate that into a device which is /dev/mtd/mtd3
Now we can flash with
Code:
adb push TWRP.img /sdcard2/twrp.img
# above line copies TWRP to removeable sdcard, change sdcard2 if you
don't use one please.
adb shell su -c "dd if=/sdcard2/twrp.img of=/dev/mtd/mtd3"
adb kill-server
Second last command may fail if you don't yet have a rooted device
also if size of bytes of TWRP image is wrong, recheck it please.
6717440 bytes = 6560 Kb = 6.41 Mb which is far less than max size of recovery image.
Before you test, ensure you have a backup of current recovery on removeable sdcard please.
Now use app to reboot into recovery to test.
Nice.. Hope you can find time to port some Cm rom for this.. I stop digging for this device for sometime now.. We have manage to boot on cm9 but it goes bootloop due to kernel compatibility ..
pogs24ever
I have not attempted to port anything yet. Feel free to pm or post here any links you would like me to look at please.
nor have I attempted to cross compile a kernel for this device but I can see Huawei appear to have source here
http://consumer.huawei.com/en/support/downloads/detail/index.htm?id=18334
cheers
just to make it clear in case others drop by via google
this is the mediapad with model showing as S7-931W
and
ro.product.device=hws7930w
2) you can use huawei and 7930 to see one entrant here
https://www.otaupdatecenter.pro/device-lookup
good luck

[TOOL] Running repo on Android!

repo for Android!
Just go to the point.
Why did i make this?
Well, i don't have any laptop, so i try to find a way, to do repo sync without any laptop, and then i move the files to my PC, and then build it!
Requirements
1. Termux App
2. Internet Connection
How to Install
Manual way
- Install some binaries
Code:
apt update
apt install python2
apt install curl
apt install git
- Setup git
Please refer to here
- Install repo
Code:
mkdir ~/bin
curl [url]http://github.com/Rendyindo/repo-installer/raw/master/repo[/url] > ~/bin
curl [url]http://github.com/Rendyindo/repo-installer/raw/master/shrepo[/url] > /data/data/com.termux/files/usr/bin/repo
chmod +x ~/bin/repo
chmod +x /data/data/com.termux/files/usr/bin/repo
- Done!
Automatic way
- Download this
- Run that script on Termux via:
Code:
./installer-android.sh
The script will automatically download all binaries needed and install it.
And you are ready to go! have fun with repo!
Here are some screenshots:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Note:
This is NOT for compiling! Through some binaries doesn't support at Termux, lol, and our phone will explode if it can
Credits:
- Fredrick Fornwall
- Google
RendyAK said:
repo for Android!
Click to expand...
Click to collapse
If we can't compile , there is no use of downloading GB's of data. [emoji14]
gopinaidu77 said:
If we can't compile , there is no use of downloading GB's if data. [emoji14]
Click to expand...
Click to collapse
You didn't get the main thing, huh?
This thing only for syncing! and you can move the files to your PC easily, this helps you when you have limited bandwith, and you find a free WiFi, but you didn't bring your PC
So, this help me much.
PS: Do not quote whole post plz.
RendyAK said:
You didn't get the main thing, huh?
This thing only for syncing! and you can move the files to your PC easily, this helps you when you have limited bandwith, and you find a free WiFi, but you didn't bring your PC
So, this help me much.
PS: Do not quote whole post plz.
Click to expand...
Click to collapse
Thanks,Edited my first post. :highfive:
Hi. My install seems correct and files seem present but repo command will not execute. I've tried from storage, storage/, and su. Any help?
Wow,, great work brother,, this fully helped me because i have problem to turn on my pc like a day for syncing,, but mobile not worry, love you sir
All links are dead. Could you re-share the project, please?

Override force dark settings command

Is there any command I could use to automate the enabling of force override dark mode:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I tried listing
Code:
`settings list [global, system, secure]
but doesn't seem it is there:
Code:
# matheus @ arch-matheus in ~ [15:53:31] C:255
$ adb shell settings list global | grep dark
# matheus @ arch-matheus in ~ [15:53:40] C:1
$ adb shell settings list system | grep dark
# matheus @ arch-matheus in ~ [15:53:47] C:1
$ adb shell settings list secure | grep dark
sysui_qs_tiles=wifi,bt,dnd,flashlight,rotation,battery,cell,airplane,cast,hotspot,dark,adb_network,livedisplay,custom(com.google.android.apps.wellbeing/.screen.ui.GrayscaleTileService),custom(com.google.android.apps.wellbeing/.focusmode.quicksettings.FocusModeTileService),volume_panel,usb_tether,vpn,inversion,cast
# matheus @ arch-matheus in ~ [15:53:52]
$
The device is an harpia (moto-g 4 play). I am using lineageOS.
I am doing this just because I'm curious. I don't know, could be useful for someone who is developing a automatic night mode or whatever but I just have some bug on my custom room (lineageOS 17.1) that it gets disabled after reboot and I would like to automatically run that after boot. So I just got curious with how to change developer settings through script and I just need to know what to run to set that on/off.
Another small question. Why the settings command only work as root?
Code:
[email protected]  ~  settings
cmd: Failure calling service settings: Failed transaction (2147483646)
✘ [email protected]  ~  sudo settings
Settings provider (settings) commands:
help
Print this help text.
get [--user <USER_ID> | current] [--lineage] NAMESPACE KEY
Retrieve the current value of KEY.
put [--user <USER_ID> | current] [--lineage] NAMESPACE KEY VALUE [TAG] [default]
Change the contents of KEY to VALUE.
TAG to associate with the setting.
{default} to set as the default, case-insensitive only for global/secure namespace
delete [--user <USER_ID> | current] [--lineage] NAMESPACE KEY
Delete the entry for KEY.
reset [--user <USER_ID> | current] NAMESPACE {PACKAGE_NAME | RESET_MODE}
Reset the global/secure table for a package with mode.
RESET_MODE is one of {untrusted_defaults, untrusted_clear, trusted_defaults}, case-insensitive
list [--user <USER_ID> | current] [--lineage] NAMESPACE
Print all defined keys.
NAMESPACE is one of {system, secure, global}, case-insensitive
That is from a termux shell, that's why sudo works.

General Extend WSA by 428 Linux commands

To my knowledge Windows Subsystem for Android ( WSA ) is not created to run apps from the Amazon store only, but is configured for testing via ADB, will say run Linux commands in an Android shell, too.
WSA ( what at time of this writing is running Android 12 ) has merged Landley's Toybox v0.8.4, a bag of over 200 Linux command line applets - I have not really counted them.
A typical Linux distribution provides 428 command line applets - the SU incorporated. I have uploaded .ZIP ( 263 MB ) what contains them all here to:
428-cmds
MediaFire is a simple to use free service that lets you put all your photos, documents, music, and video in a single place so you can access them anywhere and share them everywhere.
www.mediafire.com
If you are interested in this project, too, then it's on you to download and extract the .ZIP and push the 428 files onto Android, preferredly to /storage/emulated/0/428-cmds, and make them executable.
Example .BAT-file - assumed .ZIP got extracted into D:\428-cmds folder & ADB is installed on PC
Code:
adb connect 127.0.0.1:58526
adb devices
adb shell "cd /sdcard & mkdir -p -m06755 428-cmds 2>/dev/null"
adb push "D:\428-cmds" "/sdcard/428-cmds/"
adb shell "SM='getenforce';setenforce 0;cd /sdcard/428-cmds;CMDS='$(find .-name "*" -maxdepth 1 -type f 2>&1 | grep -i -v denied)';while read x;do chmod 06755 "$x" & chown root:shell "$x";done; << "$CMDS";chcon "$x" u:object_r:su_exec:s0;setenforce "$SM";"
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Note:
The 428 commands provided all are ELF32 binaries, so 32-bit:
That doesn't have to stop you from using them on a x86_64 PC because a 64-bit CPU can handle 32-bit commands.
Hmm... Great Work
I am getting an error on the last command.
/system/bin/sh: here document '$CMDS' unclosed
I tried the method in your toybox thread but it doesn't connect to wsa.
I think it is looking on the wrong port from the looks of the script. I am just trying to get root. I updated my rooted build of wsa and it no longer would load. i have tried different ones making sure to remove the one from the microsoft store first. Installing the one from the microsoft store by installing the amazon store gets wsa working again but without root and without my userdata.vhdx that I backed up. Any help would be appreciated. Thanks

Development WDT (WSL Distro Tars) | Install any distro on Windows Subsystem for Linux

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
WSL Distro Tars (WDT)
A simple script that generates importable tar files for Windows Subsystem for Linux (WSL2). This allows users to install any desired distro on their WSL2 machine.​
How is it different from distros available on the Microsoft Store?​
Distros that are available on the Microsoft Store are really quite limited and filled with unwanted prebuilts that one might not want. This scripts provides a really clean and bare minimal linux distro image for your needs.
What does it do?​
This script generates WSL2 importable minimal tarballs that are extracted from docker containers. At the moment only a few distributions are exported. These include:
Alpine Linux
Arch Linux
CentOS
Clear Linux
Debian
Fedora
Ubuntu
Grab the latest tarballs of your favourite distro from the Releases Page!
How do I import tarballs?​
Make sure you have WSL2 setup properly and it is set to default. To import any tarball:
Code:
wsl --import distroName path\to\create\vhd path\to\downloaded\tarball
Replace distroName with any name that you desire to call it, replace path\to\create\vhd with the absolute path where you want to create the virtual hard disk of the distro and replace path\to\downloaded\tarball with the absolute path to the downloaded tarball.
Click to expand...
Click to collapse
then to run your distro
Code:
wsl -d distroName
Example: Here my distroName is alpine, virutal hard disk path is D:\wslStorage and tarball is in C:\Users\admin\Downloads\alpine-26122022.tar
Code:
wsl --import alpine D:\wslStorage\ C:\Users\admin\Downloads\alpine-26122022.tar
to run
Code:
wsl -d alpine
My favourite distro isn't available, what do I do?​
It's simple! The prerequisites for generating tarballs are only docker and awk. Edit the wsl-tar-gen.sh (but make sure your distro exists in DockerHub, since the script extracts everything from docker) and run the script using:
Bash:
bash wsl-tar-gen.sh
If you want your favourite distro to be updated using automated cron job on Github Actions, just send a reply to this thread with a request, and send the DockerHub link as well. Please note that I will not be building custom modified images based on official docker images, I will only support the official images from the Distros.
Here are few screenshots of distros running using WDT:
Alpine Linux:
Arch Linux:
Source Code: GitHub
Updates:
18 March 2023
Added Fedora Rawhide
26 May 2023
Added Ubuntu bleeding edge
Added Debian slim and bleeding edge
Added openSUSE Tumbleweed
Reserved #2
Update!
Fedora rawhide has been added to wdt!
Update!
Changelog:
Added Ubuntu bleeding edge
Added Debian slim and bleeding edge
Added openSUSE Tumbleweed
Hello @m_vaisakh ,
very impressive work and also very useful! Many thanks!
Greets Martin

Categories

Resources