forked from axxx007xxxz/fuckjack
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathauto-fuckjack.sh
executable file
·31 lines (24 loc) · 994 Bytes
/
auto-fuckjack.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
#
# FUCK JACK
# Use with Android 7.X
#
# Kill the Jack server
printf "Fuck Jack...\n\n"
sleep 1
./prebuilts/sdk/tools/jack-admin kill-server
rm -rf ~/.jack*
# IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT!
#
# Replace the value in the first of "ANDROID_JACK_VM_ARGS" with half of your RAM
# (i.e.: if you have 6GB of ram, use "-Xmx3g")
#
export ANDROID_JACK_VM_ARGS="-Xmx3g -XX:+TieredCompilation -Dfile.encoding=UTF-8"
#
# IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT!
export SERVER_NB_COMPILE=2
export ANDROID_JACK_VM_ARGS=$JACK_SERVER_VM_ARGUMENT
# You may need to uncomment the following command if Java tells you to use it.
# ulimit -n unlimited
./prebuilts/sdk/tools/jack-admin install-server prebuilts/sdk/tools/jack-launcher.jar prebuilts/sdk/tools/jack-server-4.8.ALPHA.jar
./prebuilts/sdk/tools/jack-admin start-server