This is a newbie question about the android firewall. When I list the chains on my linux PC I get just three: INPUT, FORWARD, OUTPUT, I know what these mean. But when I do the same thing on my android device, there is a lot of weird stuff, like penalty_box, oem_fwd, natctrl_FORWARD, fw_INPUT, costly_shared, bw_INPUT etc. I've tried researching this on the web but without any luck. - Can anybody tell me what it all means, or where to find information?
Code:
[email protected]:/ # iptables -F; iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain bw_FORWARD (0 references)
target prot opt source destination
Chain bw_INPUT (0 references)
target prot opt source destination
Chain bw_OUTPUT (0 references)
target prot opt source destination
Chain costly_shared (0 references)
target prot opt source destination
Chain fw_FORWARD (0 references)
target prot opt source destination
Chain fw_INPUT (0 references)
target prot opt source destination
Chain fw_OUTPUT (0 references)
target prot opt source destination
Chain natctrl_FORWARD (0 references)
target prot opt source destination
Chain oem_fwd (0 references)
target prot opt source destination
Chain oem_out (0 references)
target prot opt source destination
Chain penalty_box (0 references)
target prot opt source destination
Related
Here's the deal, I have Ubuntu and 2 wifi cards.
wlan5 is long-range has 192.168.1.42 with internet on 192.168.1.1
wlan3 is internal, connected to my HTC Rezound with 192.168.43.104, and can ping 192.168.43.1, my phone.
I set up a Tether network on my CM10 Rezound because my phone doesn't see AdHoc networks, which is what I usually do to share internet from my laptop.
So I have enabled IP forwarding on my Ubuntu laptop.
Code:
# sysctl net.ipv4.ip_forward=1
net.ipv4.ip_forward = 1
ifconfig:
Code:
wlan3 Link encap:Ethernet HWaddr 9c:b7:0d:a5:45:67
inet addr:192.168.43.104 Bcast:192.168.43.255 Mask:255.255.255.0
inet6 addr: fe80::9eb7:dff:fea5:4567/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:492 errors:0 dropped:0 overruns:0 frame:0
TX packets:536 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:47825 (47.8 KB) TX bytes:69980 (69.9 KB)
wlan5 Link encap:Ethernet HWaddr 00:c0:ca:58:c9:5f
inet addr:192.168.1.42 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2c0:caff:fe58:c95f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14602 errors:0 dropped:0 overruns:0 frame:0
TX packets:12503 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:11577132 (11.5 MB) TX bytes:3411451 (3.4 MB)
My route on Ubuntu:
Code:
route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default buffalo.setup 0.0.0.0 UG 0 0 0 wlan5
192.168.1.0 * 255.255.255.0 U 0 0 0 wlan5
192.168.43.0 * 255.255.255.0 U 0 0 0 wlan3
And my iptables on Ubuntu
Code:
# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
On my laptop I can ping external IP 208.67.222.222, and phone 192.168.43.1
Now on my HTC Rezound [192.168.43.1] I can only ping my laptop [192.168.43.104].
On my phone:
Code:
localhost / $ ip route add default via 192.168.43.104
localhost / $ ip route
default via 192.168.43.104 dev wlan0
192.168.43.0/24 dev wlan0 proto kernel scope link src 192.168.43.1
ifconfig:
Code:
$ ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 02:1A:11:FB:32:04
inet addr:192.168.43.1 Bcast:192.168.43.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:54113 errors:0 dropped:5692 overruns:0 frame:0
TX packets:36647 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:47922457 (45.7 MiB) TX bytes:6148861 (5.8 MiB)
and lastly, iptables:
Code:
$ iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
bw_INPUT all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)
target prot opt source destination
bw_FORWARD all -- anywhere anywhere
natctrl_FORWARD all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
bw_OUTPUT all -- anywhere anywhere
droidwall all -- anywhere anywhere
Chain bw_FORWARD (1 references)
target prot opt source destination
Chain bw_INPUT (1 references)
target prot opt source destination
all -- anywhere anywhere ! quota globalAlert: 2097152 bytes
RETURN all -- anywhere anywhere
all -- anywhere anywhere owner socket exists
Chain bw_OUTPUT (1 references)
target prot opt source destination
all -- anywhere anywhere ! quota globalAlert: 2097152 bytes
RETURN all -- anywhere anywhere
all -- anywhere anywhere owner socket exists
Chain costly_shared (0 references)
target prot opt source destination
penalty_box all -- anywhere anywhere
Chain droidwall (1 references)
target prot opt source destination
Chain droidwall-3g (0 references)
target prot opt source destination
Chain droidwall-reject (0 references)
target prot opt source destination
Chain droidwall-wifi (0 references)
target prot opt source destination
Chain natctrl_FORWARD (1 references)
target prot opt source destination
Chain penalty_box (1 references)
target prot opt source destination
(I have ProxyDroid but I've disabled it)
So now I try to ping an external IP, but it doesn't work. It never gets a reply, or doesn't give an error message after about a minute, and then I ^C it.
Now my end goal is to have all my apps use the wifi connection on 192.168.43.104. I know I must have done something wrong, but I cannot figure it out. I've been trying to figure it out by googling, etc, for weeks now, and I thought it was about time to ask here.
If you know a network guru on the forum, please send him a link to this, I really want to get it working.
Also, I will mention I tried using SSH Tunnel (Beta) pointing to my 192.168.43.104 laptop with SSHd running [I can ssh localhost]. It doesn't work, it says it failed to connect. I should note with adb shell, I can SSH into my laptop 192.168.43.104 perfectly, via the wifi tether network.
I think that's it, I hope it wasn't too long that nobody reads it.
Well ANY help would be appreciated. I have tried a few proxy apps, using SOCKS5 pointed at my 192.168.43.104 IP but none of them have worked so far.
Hello there guys, i've recently installed ubuntu, and followed this guide along with some debugging and help from others to reach a certain point in getting a successful build. I am however stuck with the following:
Code:
host C++: libLLVMCore <= external/llvm/lib/IR/TypeFinder.cpp
host C++: libLLVMCore <= external/llvm/lib/IR/Use.cpp
host C++: libLLVMCore <= external/llvm/lib/IR/User.cpp
host C++: libLLVMCore <= external/llvm/lib/IR/Value.cpp
host C++: libLLVMCore <= external/llvm/lib/IR/ValueSymbolTable.cpp
host C++: libLLVMCore <= external/llvm/lib/IR/ValueTypes.cpp
host C++: libLLVMCore <= external/llvm/lib/IR/Verifier.cpp
Install: /home/zohaib/rom/android/system/out/target/product/pyramid/system/usr/share/zoneinfo/tzdata
Install: /home/zohaib/rom/android/system/out/target/product/pyramid/root/property_contexts
Install: /home/zohaib/rom/android/system/out/target/product/pyramid/root/seapp_contexts
target thumb C: libmake_ext4fs <= bootable/recovery/utilities/../../../system/extras/ext4_utils/make_ext4fs_main.c
Target buildinfo: /home/zohaib/rom/android/system/out/target/product/pyramid/system/build.prop
target Prebuilt: (/home/zohaib/rom/android/system/out/target/product/pyramid/system/bin/monkey)
target Prebuilt: (/home/zohaib/rom/android/system/out/target/product/pyramid/system/usr/share/bmd/RFFspeed_501.bmd)
target Prebuilt: (/home/zohaib/rom/android/system/out/target/product/pyramid/system/usr/share/bmd/RFFstd_501.bmd)
target Prebuilt: (/home/zohaib/rom/android/system/out/target/product/pyramid/system/bin/bmgr)
target Prebuilt: (/home/zohaib/rom/android/system/out/target/product/pyramid/system/bin/ime)
target Prebuilt: (/home/zohaib/rom/android/system/out/target/product/pyramid/system/bin/input)
target Prebuilt: (/home/zohaib/rom/android/system/out/target/product/pyramid/system/bin/pm)
target Prebuilt: (/home/zohaib/rom/android/system/out/target/product/pyramid/system/bin/svc)
target Prebuilt: system_etcdir (/home/zohaib/rom/android/system/out/target/product/pyramid/system/etc/hosts)
target Export Resources: framework-res (/home/zohaib/rom/android/system/out/target/common/obj/APPS/framework-res_intermediates/package-export.apk)
Install: /home/zohaib/rom/android/system/out/host/linux-x86/framework/doclava.jar
Copying: /home/zohaib/rom/android/system/out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/emma_out/lib/classes-jarjar.jar
Copying: /home/zohaib/rom/android/system/out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/emma_out/lib/classes-jarjar.jar
Copying: /home/zohaib/rom/android/system/out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/classes.jar
target Static Jar: android-support-v4-eclair (/home/zohaib/rom/android/system/out/target/common/obj/JAVA_LIBRARIES/android-support-v4-eclair_intermediates/javalib.jar)
target Java: guava (/home/zohaib/rom/android/system/out/target/common/obj/JAVA_LIBRARIES/guava_intermediates/classes)
nothing matches overlay file default_wallpaper.jpg, for flavor ,,,,sw720dp,,,,,,,,,nodpi,,,,,,,
target StaticLib: libLLVMLinker (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMLinker_intermediates/libLLVMLinker.a)
target StaticLib: libLLVMipo (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMipo_intermediates/libLLVMipo.a)
target StaticLib: libLLVMBitWriter (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMBitWriter_intermediates/libLLVMBitWriter.a)
target StaticLib: libLLVMBitReader (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMBitReader_intermediates/libLLVMBitReader.a)
target StaticLib: libLLVMARMCodeGen (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMARMCodeGen_intermediates/libLLVMARMCodeGen.a)
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
target StaticLib: libLLVMARMAsmParser (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMARMAsmParser_intermediates/libLLVMARMAsmParser.a)
target StaticLib: libLLVMARMAsmPrinter (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMARMAsmPrinter_intermediates/libLLVMARMAsmPrinter.a)
target StaticLib: libLLVMARMInfo (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMARMInfo_intermediates/libLLVMARMInfo.a)
target StaticLib: libLLVMARMDesc (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMARMDesc_intermediates/libLLVMARMDesc.a)
target StaticLib: libLLVMARMDisassembler (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMARMDisassembler_intermediates/libLLVMARMDisassembler.a)
target StaticLib: libLLVMSelectionDAG (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMSelectionDAG_intermediates/libLLVMSelectionDAG.a)
target StaticLib: libLLVMCodeGen (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMCodeGen_intermediates/libLLVMCodeGen.a)
target StaticLib: libLLVMObject (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMObject_intermediates/libLLVMObject.a)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
target StaticLib: libLLVMScalarOpts (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMScalarOpts_intermediates/libLLVMScalarOpts.a)
target StaticLib: libLLVMInstCombine (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMInstCombine_intermediates/libLLVMInstCombine.a)
libpng warning: Ignoring attempt to set cHRM RGB triangle with zero area
target StaticLib: libLLVMInstrumentation (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMInstrumentation_intermediates/libLLVMInstrumentation.a)
target StaticLib: libLLVMTransformObjCARC (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMTransformObjCARC_intermediates/libLLVMTransformObjCARC.a)
target StaticLib: libLLVMTransformUtils (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMTransformUtils_intermediates/libLLVMTransformUtils.a)
target StaticLib: libLLVMipa (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMipa_intermediates/libLLVMipa.a)
target StaticLib: libLLVMAnalysis (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMAnalysis_intermediates/libLLVMAnalysis.a)
target StaticLib: libLLVMCore (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMCore_intermediates/libLLVMCore.a)
target StaticLib: libLLVMVectorize (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMVectorize_intermediates/libLLVMVectorize.a)
target StaticLib: libLLVMWrap (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMWrap_intermediates/libLLVMWrap.a)
target StaticLib: libLLVMBitReader_2_7 (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMBitReader_2_7_intermediates/libLLVMBitReader_2_7.a)
target StaticLib: libLLVMBitReader_3_0 (/home/zohaib/rom/android/system/out/target/product/pyramid/obj/STATIC_LIBRARIES/libLLVMBitReader_3_0_intermediates/libLLVMBitReader_3_0.a)
Install: /home/zohaib/rom/android/system/out/target/product/pyramid/system/lib/egl/egl.cfg
Install: /home/zohaib/rom/android/system/out/target/product/pyramid/system/lib/libz.so
Install: /home/zohaib/rom/android/system/out/target/product/pyramid/system/lib/libexpat.so
host StaticLib: libLLVMObject (/home/zohaib/rom/android/system/out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMObject_intermediates/libLLVMObject.a)
Install: /home/zohaib/rom/android/system/out/target/product/pyramid/system/etc/bluetooth/bt_stack.conf
Install: /home/zohaib/rom/android/system/out/target/product/pyramid/system/etc/bluetooth/bt_did.conf
Install: /home/zohaib/rom/android/system/out/target/product/pyramid/system/etc/bluetooth/auto_pair_devlist.conf
target Java: android-support-v13-ics-mr1 (/home/zohaib/rom/android/system/out/target/common/obj/JAVA_LIBRARIES/android-support-v13-ics-mr1_intermediates/classes)
Copying: /home/zohaib/rom/android/system/out/target/common/obj/JAVA_LIBRARIES/android-common-chips_intermediates/classes-jarjar.jar
Copying: /home/zohaib/rom/android/system/out/target/common/obj/JAVA_LIBRARIES/colorpicker_intermediates/classes-jarjar.jar
Copying: /home/zohaib/rom/android/system/out/target/common/obj/JAVA_LIBRARIES/android-opt-timezonepicker_intermediates/classes-jarjar.jar
target thumb C++: libstagefright <= frameworks/av/media/libstagefright/ExtendedCodec.cpp
target thumb C++: libstagefright <= frameworks/av/media/libstagefright/ThrottledSource.cpp
target thumb C++: libstagefright <= frameworks/av/media/libstagefright/TimeSource.cpp
target thumb C++: libstagefright <= frameworks/av/media/libstagefright/TimedEventQueue.cpp
target thumb C++: libstagefright <= frameworks/av/media/libstagefright/Utils.cpp
frameworks/av/media/libstagefright/ExtendedCodec.cpp: In static member function 'static void android::ExtendedCodec::enableSmoothStreaming(const android::sp<android::IOMX>&, android::IOMX::node_id, bool*, const char*)':
frameworks/av/media/libstagefright/ExtendedCodec.cpp:368:27: error: expected primary-expression before ')' token
make: *** [/home/zohaib/rom/android/system/out/target/product/pyramid/obj/SHARED_LIBRARIES/libstagefright_intermediates/ExtendedCodec.o] Error 1
make: *** Waiting for unfinished jobs....
/home/zohaib/rom/android/system/out/target/product/pyramid/pac_pyramid-ota-eng.root.zip doesn't exist!
Total time elapsed: 29 minutes 33 seconds
[email protected]:~/rom/android/system#
I can see the error:
frameworks/av/media/libstagefright/ExtendedCodec.cpp:368:27: error: expected primary-expression before ')' token
But i dont know how to fix it, any help is appreciated
FYI im a total noob in terms of building and ubuntu, first time doing it
I am pretty sure the source was just broken, just update your sources and recompile
Hey folks, I have a little problem over here,
Well ok so I tried to go ahead and compile the rom first I downloaded the source from git using the repo
That went fine but then I tried to compile it and I think at the very end of the compilation it showed a error
I've tried to compile before which took a hour so and cache is enabled so don't look weird why it took now only 7 minutes
Log:
Code:
DevDistro PACMAN # ./build-pac.sh jfltexx
Building P A C v4.3.Build-1
Looking for PAC product dependencies
Check for CyanogenMod/android_device_samsung_jfltexx in local_manifest
CyanogenMod/android_device_samsung_jfltexx already in local_manifest
Check for CyanogenMod/android_device_samsung_qcom-common in local_manifest
CyanogenMod/android_device_samsung_qcom-common already in local_manifest
Check for CyanogenMod/android_device_samsung_msm8960-common in local_manifest
CyanogenMod/android_device_samsung_msm8960-common already in local_manifest
Check for CyanogenMod/android_device_samsung_jf-common in local_manifest
CyanogenMod/android_device_samsung_jf-common already in local_manifest
Check for CyanogenMod/android_hardware_samsung in local_manifest
CyanogenMod/android_hardware_samsung already in local_manifest
Check for CyanogenMod/android_kernel_samsung_jf in local_manifest
CyanogenMod/android_kernel_samsung_jf already in local_manifest
Check for TheMuppets/proprietary_vendor_samsung in local_manifest
TheMuppets/proprietary_vendor_samsung already in local_manifest
Setting up environment
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/goldfish/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including device/samsung/jfltexx/vendorsetup.sh
including vendor/cm/vendorsetup.sh
including vendor/pac/vendorsetup.sh
including vendor/pa/vendorsetup.sh
including sdk/bash_completion/adb.bash
including vendor/cm/bash_completion/git.bash
including vendor/cm/bash_completion/repo.bash
Lunching device
Looking for dependencies
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.3
CM_VERSION=10.2-20131008-UNOFFICIAL-jfltexx
TARGET_PRODUCT=pac_jfltexx
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.2.0-23-generic-x86_64-with-LinuxMint-13-maya
HOST_BUILD_TYPE=release
BUILD_ID=JLS36G
OUT_DIR=/root/PACMAN/out
============================================
Starting compilation
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.3
CM_VERSION=10.2-20131008-UNOFFICIAL-jfltexx
TARGET_PRODUCT=pac_jfltexx
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.2.0-23-generic-x86_64-with-LinuxMint-13-maya
HOST_BUILD_TYPE=release
BUILD_ID=JLS36G
OUT_DIR=/root/PACMAN/out
============================================
build/core/copy_headers.mk:15: warning: overriding commands for target `/root/PACMAN/out/target/product/jfltexx/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/root/PACMAN/out/target/product/jfltexx/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: overriding commands for target `/root/PACMAN/out/target/product/jfltexx/obj/include/qcom/display/copybit_priv.h'
build/core/copy_headers.mk:15: warning: ignoring old commands for target `/root/PACMAN/out/target/product/jfltexx/obj/include/qcom/display/copybit_priv.h'
build/core/Makefile:44: warning: overriding commands for target `/root/PACMAN/out/target/product/jfltexx/system/lib/libril.so'
build/core/base_rules.mk:520: warning: ignoring old commands for target `/root/PACMAN/out/target/product/jfltexx/system/lib/libril.so'
build/core/Makefile:44: warning: overriding commands for target `/root/PACMAN/out/target/product/jfltexx/system/bin/rild'
build/core/base_rules.mk:520: warning: ignoring old commands for target `/root/PACMAN/out/target/product/jfltexx/system/bin/rild'
build/core/Makefile:44: warning: overriding commands for target `/root/PACMAN/out/target/product/jfltexx/system/lib/libreference-ril.so'
build/core/base_rules.mk:520: warning: ignoring old commands for target `/root/PACMAN/out/target/product/jfltexx/system/lib/libreference-ril.so'
build/core/Makefile:44: warning: overriding commands for target `/root/PACMAN/out/target/product/jfltexx/system/lib/libsecril-client.so'
build/core/base_rules.mk:520: warning: ignoring old commands for target `/root/PACMAN/out/target/product/jfltexx/system/lib/libsecril-client.so'
build/core/Makefile:44: warning: overriding commands for target `/root/PACMAN/out/target/product/jfltexx/system/etc/wifi/wpa_supplicant.conf'
build/core/base_rules.mk:520: warning: ignoring old commands for target `/root/PACMAN/out/target/product/jfltexx/system/etc/wifi/wpa_supplicant.conf'
build/core/Makefile:44: warning: overriding commands for target `/root/PACMAN/out/target/product/jfltexx/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:520: warning: ignoring old commands for target `/root/PACMAN/out/target/product/jfltexx/system/etc/permissions/android.software.live_wallpaper.xml'
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/AVRCP.kl:system/usr/keylayout/AVRCP.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Generic.kl:system/usr/keylayout/Generic.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_045e_Product_028e.kl:system/usr/keylayout/Vendor_045e_Product_028e.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_046d_Product_c216.kl:system/usr/keylayout/Vendor_046d_Product_c216.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_046d_Product_c294.kl:system/usr/keylayout/Vendor_046d_Product_c294.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_046d_Product_c299.kl:system/usr/keylayout/Vendor_046d_Product_c299.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_046d_Product_c532.kl:system/usr/keylayout/Vendor_046d_Product_c532.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_054c_Product_0268.kl:system/usr/keylayout/Vendor_054c_Product_0268.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_05ac_Product_0239.kl:system/usr/keylayout/Vendor_05ac_Product_0239.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keylayout/Vendor_22b8_Product_093d.kl:system/usr/keylayout/Vendor_22b8_Product_093d.kl ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keychars/Generic.kcm:system/usr/keychars/Generic.kcm ignored.
PRODUCT_COPY_FILES device/samsung/msm8960-common/keychars/Virtual.kcm:system/usr/keychars/Virtual.kcm ignored.
PRODUCT_COPY_FILES vendor/cm/prebuilt/common/bin/backuptool.sh:system/bin/backuptool.sh ignored.
PRODUCT_COPY_FILES vendor/cm/prebuilt/common/bin/backuptool.functions:system/bin/backuptool.functions ignored.
build/core/Makefile:44: warning: overriding commands for target `/root/PACMAN/out/target/product/jfltexx/system/etc/mkshrc'
build/core/base_rules.mk:520: warning: ignoring old commands for target `/root/PACMAN/out/target/product/jfltexx/system/etc/mkshrc'
PRODUCT_COPY_FILES vendor/cm/config/permissions/com.tmobile.software.themes.xml:system/etc/permissions/com.tmobile.software.themes.xml ignored.
PRODUCT_COPY_FILES vendor/cm/prebuilt/common/bootanimation/1080.zip:system/media/bootanimation.zip ignored.
No private recovery resources for TARGET_DEVICE jfltexx
make -C kernel/samsung/jf O=/root/PACMAN/out/target/product/jfltexx/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/root/PACMAN/prebuilts/misc/linux-x86/ccache/ccache /root/PACMAN/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-" VARIANT_DEFCONFIG=cyanogen_jf_defconfig SELINUX_DEFCONFIG=jfselinux_defconfig jf_eur_defconfig
make[1]: Entering directory `/root/PACMAN/kernel/samsung/jf'
host Executable: mkbootimg (/root/PACMAN/out/host/linux-x86/obj/EXECUTABLES/mkbootimg_intermediates/mkbootimg)
host Executable: acp (/root/PACMAN/out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp)
host Executable: clang-tblgen (/root/PACMAN/out/host/linux-x86/obj/EXECUTABLES/clang-tblgen_intermediates/clang-tblgen)
host Executable: tblgen (/root/PACMAN/out/host/linux-x86/obj/EXECUTABLES/tblgen_intermediates/tblgen)
preparing StaticLib: libc_common [including /root/PACMAN/out/target/product/jfltexx/obj/STATIC_LIBRARIES/libbionic_ssp_intermediates/libbionic_ssp.a]
preparing StaticLib: libc_common [including /root/PACMAN/out/target/product/jfltexx/obj/STATIC_LIBRARIES/libc_bionic_intermediates/libc_bionic.a]
preparing StaticLib: libc_common [including /root/PACMAN/out/target/product/jfltexx/obj/STATIC_LIBRARIES/libc_freebsd_intermediates/libc_freebsd.a]
GEN /root/PACMAN/out/target/product/jfltexx/obj/KERNEL_OBJ/Makefile
preparing StaticLib: libc_common [including /root/PACMAN/out/target/product/jfltexx/obj/STATIC_LIBRARIES/libc_netbsd_intermediates/libc_netbsd.a]
target StaticLib: libc_common (/root/PACMAN/out/target/product/jfltexx/obj/STATIC_LIBRARIES/libc_common_intermediates/libc_common.a)
host Executable: checkpolicy (/root/PACMAN/out/host/linux-x86/obj/EXECUTABLES/checkpolicy_intermediates/checkpolicy)
host Executable: checkfc (/root/PACMAN/out/host/linux-x86/obj/EXECUTABLES/checkfc_intermediates/checkfc)
target StaticLib: libfs_mgr (/root/PACMAN/out/target/product/jfltexx/obj/STATIC_LIBRARIES/libfs_mgr_intermediates/libfs_mgr.a)
target StaticLib: liblogwrap (/root/PACMAN/out/target/product/jfltexx/obj/STATIC_LIBRARIES/liblogwrap_intermediates/liblogwrap.a)
host Executable: minigzip (/root/PACMAN/out/host/linux-x86/obj/EXECUTABLES/minigzip_intermediates/minigzip)
target StaticLib: libext2fs (/root/PACMAN/out/target/product/jfltexx/obj/STATIC_LIBRARIES/libext2fs_intermediates/libext2fs.a)
target StaticLib: libext2_blkid (/root/PACMAN/out/target/product/jfltexx/obj/STATIC_LIBRARIES/libext2_blkid_intermediates/libext2_blkid.a)
target StaticLib: libext2_profile (/root/PACMAN/out/target/product/jfltexx/obj/STATIC_LIBRARIES/libext2_profile_intermediates/libext2_profile.a)
target StaticLib: libfuse (/root/PACMAN/out/target/product/jfltexx/obj/STATIC_LIBRARIES/libfuse_intermediates/libfuse.a)
target thumb C: libmake_ext4fs <= bootable/recovery/utilities/../../../system/extras/ext4_utils/make_ext4fs_main.c
target StaticLib: libedify (/root/PACMAN/out/target/product/jfltexx/obj/STATIC_LIBRARIES/libedify_intermediates/libedify.a)
Target buildinfo: /root/PACMAN/out/target/product/jfltexx/system/build.prop
KCONFIG_SELINUX(arch/arm/configs/jfselinux_defconfig)
arch/arm/configs/jfselinux_defconfig:9:warning: symbol value 'y' invalid for SECURITY_SELINUX_CHECKREQPROT_VALUE
KCONFIG_LOG_SELINUX((null))
KCONFIG_VARIANT(arch/arm/configs/cyanogen_jf_defconfig)
arch/arm/configs/cyanogen_jf_defconfig:647:warning: override: reassigning to symbol RFKILL
arch/arm/configs/cyanogen_jf_defconfig:655:warning: override: reassigning to symbol GENLOCK
arch/arm/configs/cyanogen_jf_defconfig:656:warning: override: reassigning to symbol GENLOCK_MISCDEVICE
arch/arm/configs/cyanogen_jf_defconfig:657:warning: override: reassigning to symbol BLK_DEV_LOOP
arch/arm/configs/cyanogen_jf_defconfig:722:warning: override: reassigning to symbol SCHED_MC
KCONFIG_DEBUG((null))
warning: (ARCH_MSM7X27 && ARCH_MSM8960 && ARCH_MSM8930 && ARCH_MSM8974) selects DONT_MAP_HOLE_AFTER_MEMBANK0 which has unmet direct dependencies (SPARSEMEM)
#
# configuration written to .config
#
make[1]: Leaving directory `/root/PACMAN/kernel/samsung/jf'
host Executable: aapt (/root/PACMAN/out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/aapt)
host Executable: zipalign (/root/PACMAN/out/host/linux-x86/obj/EXECUTABLES/zipalign_intermediates/zipalign)
target Generated: libRS <= frameworks/rs/rsgApiStructs.h.rsg
target Generated: libRS <= frameworks/rs/rsgApiFuncDecl.h.rsg
target Generated: libRS <= frameworks/rs/rsgApi.cpp.rsg
target Generated: libRS <= frameworks/rs/rsgApiReplay.cpp.rsg
target thumb C++: libRScpp <= frameworks/rs/cpp/RenderScript.cpp
target thumb C++: libRScpp <= frameworks/rs/cpp/BaseObj.cpp
target thumb C++: libRScpp <= frameworks/rs/cpp/Element.cpp
target thumb C++: libRScpp <= frameworks/rs/cpp/Type.cpp
target thumb C++: libRScpp <= frameworks/rs/cpp/Allocation.cpp
target thumb C++: libRScpp <= frameworks/rs/cpp/Script.cpp
target thumb C++: libRScpp <= frameworks/rs/cpp/ScriptC.cpp
target thumb C++: libRScpp <= frameworks/rs/cpp/ScriptIntrinsics.cpp
target StaticLib: libvpx (/root/PACMAN/out/target/product/jfltexx/obj/STATIC_LIBRARIES/libvpx_intermediates/libvpx.a)
target arm C++: libhugin <= /root/PACMAN/external/Focal/hugin/panodata/Panorama.cpp
target arm C++: libhugin <= /root/PACMAN/external/Focal/hugin/nona/Stitcher.cpp
target arm C++: libhugin <= /root/PACMAN/external/Focal/hugin/nona/Stitcher1.cpp
target arm C++: libhugin <= /root/PACMAN/external/Focal/hugin/nona/Stitcher2.cpp
make: *** [/root/PACMAN/out/target/product/jfltexx/obj/STATIC_LIBRARIES/libhugin_intermediates/panodata/Panorama.o] Killed
./build-pac.sh: line 121: 14297 Killed make -j"$opt_jobs" bacon
/root/PACMAN/out/target/product/jfltexx/pac_jfltexx-ota-eng.root.zip doesn't exist!
Total time elapsed: 7 minutes 35 seconds
DevDistro PACMAN #
Seems build-pac.sh error. Try to redownload all your repos..
The build process is getting killed so you could be running out of RAM. Are you building in a VM? I recommend having, at the very minimum, 4GB of RAM.
chenxiaolong said:
The build process is getting killed so you could be running out of RAM. Are you building in a VM? I recommend having, at the very minimum, 4GB of RAM.
Click to expand...
Click to collapse
Thanks for the help, appearently it needed alot more then just 2gb ram and 1gb swap
When I putted it at 5GB ram and 1GB swap at some points in the compilation it went to 4Gb usage
Thanks :victory:
I am building cyanogenmod but I encountered build error.
Anyone can help?
Code:
target StaticLib: libstagefright_g711dec (out/target/product/e510/obj/STATIC_LIBRARIES/libstagefright_g711dec_intermediates/libstagefright_g711dec.a)
target StaticLib: libglib_static (out/target/product/e510/obj/STATIC_LIBRARIES/libglib_static_intermediates/libglib_static.a)
target StaticLib: libbuiltinplugin (out/target/product/e510/obj/STATIC_LIBRARIES/libbuiltinplugin_intermediates/libbuiltinplugin.a)
target StaticLib: libgdbus_static (out/target/product/e510/obj/STATIC_LIBRARIES/libgdbus_static_intermediates/libgdbus_static.a)
target StaticLib: libiptc (out/target/product/e510/obj/STATIC_LIBRARIES/libiptc_intermediates/libiptc.a)
target StaticLib: libext (out/target/product/e510/obj/STATIC_LIBRARIES/libext_intermediates/libext.a)
preparing StaticLib: libc_nomalloc [including out/target/product/e510/obj/STATIC_LIBRARIES/libc_common_intermediates/libc_common.a]
target StaticLib: liblsof (out/target/product/e510/obj/STATIC_LIBRARIES/liblsof_intermediates/liblsof.a)
target StaticLib: libaudiointerface (out/target/product/e510/obj/STATIC_LIBRARIES/libaudiointerface_intermediates/libaudiointerface.a)
target StaticLib: libaudiopolicybase (out/target/product/e510/obj/STATIC_LIBRARIES/libaudiopolicybase_intermediates/libaudiopolicybase.a)
target thumb C++: libcamerastub <= frameworks/base/services/camera/libcameraservice/CameraHardwareStub.cpp
target thumb C++: libcamerastub <= frameworks/base/services/camera/libcameraservice/FakeCamera.cpp
target thumb C++: libmediaplayerservice <= frameworks/base/media/libmediaplayerservice/MediaRecorderClient.cpp
frameworks/base/services/camera/libcameraservice/CameraHardwareStub.cpp: In static member function 'static android::sp<android::CameraHardwareInterface> android::CameraHardwareStub::createInstance()':
frameworks/base/services/camera/libcameraservice/CameraHardwareStub.cpp:400: error: cannot allocate an object of abstract type 'android::CameraHardwareStub'
frameworks/base/services/camera/libcameraservice/CameraHardwareStub.h:31: note: because the following virtual functions are pure within 'android::CameraHardwareStub':
device/lge/e510/include/camera/CameraHardwareInterface.h:96: note: virtual android::status_t android::CameraHardwareInterface::getShutterSound(int)
device/lge/e510/include/camera/CameraHardwareInterface.h:142: note: virtual void android::CameraHardwareInterface::encodeData()
[B]make: *** [out/target/product/e510/obj/STATIC_LIBRARIES/libcamerastub_intermediates/CameraHardwareStub.o] Error 1[/B]
make: *** Waiting for unfinished jobs....
target StaticLib: libc_nomalloc (out/target/product/e510/obj/STATIC_LIBRARIES/libc_nomalloc_intermediates/libc_nomalloc.a)
Hi All. Not sure if custom ROM questions are allowed but anyway I’m trying to port cyanogen to my device and have run into a snag . I'm still pretty new to android development so any help will be greatly appreciated. When trying to build the Recovery .img I get the error at the bottom, porting CM11 I'm pretty sure the recovery.fstab is set up fine not sure about the BoardConfig.mk still messing around with that. Thanks in advance log when running "make recoveryimage" below
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.4.4
CM_VERSION=11-20150704-UNOFFICIAL-Z00A
TARGET_PRODUCT=cm_Z00A
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a7
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.16.0-41-generic-x86_64-with-Ubuntu-14.04-trusty
HOST_BUILD_TYPE=release
BUILD_ID=KTU84Q
OUT_DIR=/home/callum/cm11/out
============================================
/home/callum/cm11/out/target/product/Z00A/obj/APPS/SignatureTest_intermediates
"ebtables is disabled on this build"
find: `src': No such file or directory
PRODUCT_COPY_FILES device/generic/goldfish/data/etc/apns-conf.xml:system/etc/apns-conf.xml ignored.
find: `bootable/recovery/res-720': No such file or directory
No private recovery resources for TARGET_DEVICE Z00A
build/core/tasks/kernel.mk:91: **********************************************************
build/core/tasks/kernel.mk:92: * Kernel source found, but no configuration was defined *
build/core/tasks/kernel.mk:93: * Please add the TARGET_KERNEL_CONFIG variable to your *
build/core/tasks/kernel.mk:94: * BoardConfig.mk file *
build/core/tasks/kernel.mk:95: **********************************************************
build/core/tasks/kernel.mk:212: warning: overriding commands for target `/home/callum/cm11/out/target/product/Z00A/kernel'
build/core/Makefile:44: warning: ignoring old commands for target `/home/callum/cm11/out/target/product/Z00A/kernel'
target thumb C: mount.exfat_static <= external/exfat/main.c
target StaticExecutable: mount.exfat_static (/home/callum/cm11/out/target/product/Z00A/obj/RECOVERY_EXECUTABLES/mount.exfat_static_intermediates/LINKED/mount.exfat)
target Symbolic: mount.exfat_static (/home/callum/cm11/out/target/product/Z00A/symbols/recovery/root/sbin/mount.exfat)
target Strip: mount.exfat_static (/home/callum/cm11/out/target/product/Z00A/obj/RECOVERY_EXECUTABLES/mount.exfat_static_intermediates/mount.exfat)
Install: /home/callum/cm11/out/target/product/Z00A/recovery/root/sbin/mount.exfat
target thumb C: recovery <= bootable/recovery/recovery.c
target thumb C: recovery <= bootable/recovery/bootloader.c
target thumb C: recovery <= bootable/recovery/install.c
target thumb C: recovery <= bootable/recovery/roots.c
target thumb C: recovery <= bootable/recovery/ui.c
target thumb C: recovery <= bootable/recovery/mounts.c
target thumb C: recovery <= bootable/recovery/extendedcommands.c
bootable/recovery/extendedcommands.c: In function 'show_partition_menu':
bootable/recovery/extendedcommands.c:963:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
bootable/recovery/extendedcommands.c:968:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
target thumb C: recovery <= bootable/recovery/nandroid.c
target thumb C: recovery <= bootable/recovery/nandroid_md5.c
target thumb C: recovery <= bootable/recovery/reboot.c
target thumb C: recovery <= bootable/recovery/../../system/core/toolbox/dynarray.c
target thumb C: recovery <= bootable/recovery/../../system/core/toolbox/newfs_msdos.c
bootable/recovery/../../system/core/toolbox/newfs_msdos.c:238:0: warning: "powerof2" redefined [enabled by default]
In file included from bootable/recovery/../../system/core/toolbox/newfs_msdos.c:33:0:
bionic/libc/include/sys/param.h:40:0: note: this is the location of the previous definition
bootable/recovery/../../system/core/toolbox/newfs_msdos.c: In function 'newfs_msdos_main':
bootable/recovery/../../system/core/toolbox/newfs_msdos.c:370:6: warning: null argument where non-null required (argument 2) [-Wnonnull]
bootable/recovery/../../system/core/toolbox/newfs_msdos.c:503:3: warning: null argument where non-null required (argument 2) [-Wnonnull]
bootable/recovery/../../system/core/toolbox/newfs_msdos.c:621:6: warning: null argument where non-null required (argument 2) [-Wnonnull]
target thumb C: recovery <= bootable/recovery/firmware.c
target thumb C: recovery <= bootable/recovery/edifyscripting.c
target thumb C: recovery <= bootable/recovery/prop.c
target thumb C: recovery <= bootable/recovery/adb_install.c
target thumb C: recovery <= bootable/recovery/verifier.c
target thumb C: recovery <= bootable/recovery/../../system/vold/vdc.c
target thumb C: recovery <= bootable/recovery/propsrvc/legacy_property_service.c
target thumb C: recovery <= bootable/recovery/default_recovery_keys.c
target thumb C: recovery <= bootable/recovery/default_recovery_ui.c
target StaticExecutable: recovery (/home/callum/cm11/out/target/product/Z00A/obj/EXECUTABLES/recovery_intermediates/LINKED/recovery)
target Symbolic: recovery (/home/callum/cm11/out/target/product/Z00A/symbols/system/bin/recovery)
target Strip: recovery (/home/callum/cm11/out/target/product/Z00A/obj/EXECUTABLES/recovery_intermediates/recovery)
----- Making recovery filesystem ------
Copying baseline ramdisk...
Modifying ramdisk contents...
cp: cannot stat ‘/home/callum/cm11/out/target/product/Z00A/root/init.recovery.*.rc’: No such file or directory
make: [/home/callum/cm11/out/target/product/Z00A/recovery/root.ts] Error 1 (ignored)
mkdir -p /home/callum/cm11/out/target/product/Z00A/recovery/root/system/bin
if test -d bootable/recovery/res-720; then cp -rf bootable/recovery/res-720/* /home/callum/cm11/out/target/product/Z00A/recovery/root/res; fi
Modifying default.prop
sed -i 's/ro.build.date.utc=.*/ro.build.date.utc=0/g' /home/callum/cm11/out/target/product/Z00A/recovery/root/default.prop
sed -i 's/ro.adb.secure=1//g' /home/callum/cm11/out/target/product/Z00A/recovery/root/default.prop
----- Made recovery filesystem --------/home/callum/cm11/out/target/product/Z00A/recovery/root
----- Making uncompressed recovery ramdisk ------
/home/callum/cm11/out/host/linux-x86/bin/mkbootfs /home/callum/cm11/out/target/product/Z00A/recovery/root > /home/callum/cm11/out/target/product/Z00A/ramdisk-recovery.cpio
----- Making recovery ramdisk ------
/home/callum/cm11/out/host/linux-x86/bin/minigzip < /home/callum/cm11/out/target/product/Z00A/ramdisk-recovery.cpio > /home/callum/cm11/out/target/product/Z00A/ramdisk-recovery.img
----- Making recovery image ------
usage: mkbootimg
--kernel <filename>
--ramdisk <filename>
[ --second <2ndbootloader-filename> ]
[ --cmdline <kernel-commandline> ]
[ --board <boardname> ]
[ --base <address> ]
[ --pagesize <pagesize> ]
[ --ramdisk_offset <address> ]
[ --dt <filename> ]
-o|--output <filename>
make: *** [/home/callum/cm11/out/target/product/Z00A/recovery.img] Error
Click to expand...
Click to collapse