Skip to content

Commit

Permalink
Treewide: Switch to arch & rewrite from scratch
Browse files Browse the repository at this point in the history
  • Loading branch information
XenonTheInertG committed Mar 7, 2022
1 parent c2dd102 commit 6b60269
Show file tree
Hide file tree
Showing 14 changed files with 726 additions and 222 deletions.
45 changes: 0 additions & 45 deletions .github/workflows/build.yml

This file was deleted.

674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions README.md

This file was deleted.

39 changes: 39 additions & 0 deletions install_packages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/bin/bash

# Uncomment community [multilib] repository
sed -i "/\[multilib\]/,/Include/"'s/^#//' /etc/pacman.conf

# Update
pacman -Syyu --noconfirm

# Install Basic Packages
pacman -S --needed --noconfirm \
sudo nano git curl wget rsync aria2 rclone \
python2 python3 python-pip zip unzip cmake \
make neofetch speedtest-cli inetutils cpio \
jdk8-openjdk lzip dpkg openssl ccache libelf \
base-devel

# Install Some pip packages
pip install \
twrpdtgen telegram-send

# More Packages
pacman -S --noconfirm \
tmate tmux screen mlocate

# Create a non-root user for AUR
useradd -m -G wheel -s /bin/bash testuser
echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers


# Setup the Android Build Environment
git clone --depth=1 --single-branch https://github.com/akhilnarang/scripts.git /tmp/scripts
cd /tmp/scripts
sudo chmod -R a+rwx .
sudo -u testuser bash setup/arch-manjaro.sh
cd /root
rm -rf /tmp/scripts

# Use python2 by default
ln -sf /usr/bin/python2 /usr/bin/python
27 changes: 0 additions & 27 deletions proprietary/etc/profile

This file was deleted.

99 changes: 0 additions & 99 deletions proprietary/root/.bashrc

This file was deleted.

20 changes: 0 additions & 20 deletions proprietary/root/.profile

This file was deleted.

21 changes: 0 additions & 21 deletions proprietary/usr/bin/goupload

This file was deleted.

3 changes: 0 additions & 3 deletions proprietary/usr/bin/libneeds

This file was deleted.

1 change: 1 addition & 0 deletions rootfs/etc/locale.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
LANG=en_US.UTF-8
1 change: 1 addition & 0 deletions rootfs/etc/locale.gen
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
en_US.UTF-8 UTF-8
13 changes: 8 additions & 5 deletions proprietary/usr/bin/idcheck → rootfs/usr/bin/ldcheck
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,20 @@ def ldcheck(files, libpath, printalldefined, printresolved, demangle):
for filename in libswithpath:
for sym in readsymbols(filename, nmopts):
if sym["type"] == "U":
if resolved := syms.get(sym["name"]):
resolved = syms.get(sym["name"])
if resolved:
if filename in libsused:
libsused.add(resolved["file"])
if printresolved:
print("{0:25} {1:25} {2} {3}".format(filename, resolved["file"], resolved["type"], sym["name"]))
else:
print("{0:25} {1:25} U {2}".format(filename, "UNRESOLVED #####", sym["name"]))
elif printalldefined:
print("{0:25} {1}".format(filename, sym["line"]))
else:
if printalldefined:
print("{0:25} {1}".format(filename, sym["line"]))

if unused := set(libswithpath) - libsused:
unused = set(libswithpath) - libsused
if unused:
print("unused:", unused)


Expand Down Expand Up @@ -86,4 +89,4 @@ if __name__ == "__main__":
parser.add_argument('-d', '--demangle', action='store_true', help="Demangle C++ names")

args = parser.parse_args()
ldcheck(args.files, args.path, args.alldefined, args.resolved, args.demangle)
ldcheck(args.files, args.path, args.alldefined, args.resolved, args.demangle)
3 changes: 3 additions & 0 deletions rootfs/usr/bin/libneeds
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
# list needed shared libs for Android lib
readelf -d $1 |grep '\(NEEDED\)' | sed -r 's/.*\[(.*)\]/\1/'
Binary file not shown.

0 comments on commit 6b60269

Please sign in to comment.