[General Questions and Answers] frenzymind:
Hello. I have STB Vermax HD-100 with android 4.2.2 and allwinner A20 processor. I try to create custom image for device with enabled adb debugging by default. I found that post: https://xdaforums.com/showthread.php?t=2335799 So, I have to insert the follow lines:

persist.service.adb.enable=1
persist.service.debuggable=1
persist.sys.usb.config=mtp,adb

My stock build.prop is already has "persist.sys.usb.config=mass_storage"

# begin build properties

# autogenerated by buildinfo.sh

ro.build.id=JDQ39

ro.build.display.id=JDQ39

ro.build.version.incremental=20150319

ro.build.version.sdk=17

ro.build.version.codename=REL

ro.build.version.release=4.2.2

ro.build.date=Пт. марта 20 03:02:34 MSK 2015

ro.build.date.utc=1426809754

ro.build.type=user

ro.build.user=andrey

ro.build.host=cyberdev2

ro.build.tags=test-keys

ro.product.model=Vermax HD100

ro.product.brand=softwinners

ro.product.name=sugar_ref001

ro.product.device=sugar-ref001

ro.product.board=wing

ro.product.cpu.abi=armeabi-v7a

ro.product.cpu.abi2=armeabi

ro.product.manufacturer=unknown

ro.product.locale.language=ru

ro.product.locale.region=RU

ro.wifi.channels=

ro.board.platform=exDroid

# ro.build.product is obsolete; use ro.product.device

ro.build.product=sugar-ref001

# Do not try to parse ro.build.description or .fingerprint

ro.build.description=sugar_ref001-user 4.2.2 JDQ39 20150319 test-keys

ro.build.fingerprint=softwinners/sugar_ref001/sugar-ref001:4.2.2/JDQ39/20150319:user/test-keys

ro.build.characteristics=tablet

# end build properties

#

# ADDITIONAL_BUILD_PROPERTIES

#

ro.com.android.dateformat=MM-dd-yyyy

ro.config.ringtone=Ring_Synth_04.ogg

ro.config.notification_sound=pixiedust.ogg

ro.carrier=unknown

ro.config.alarm_alert=Alarm_Classic.ogg

ro.setupwizard.mode=DISABLE

ro.com.google.gmsversion=4.2_r1

ro.com.google.clientidbase=android-orange-ouk

ro.com.google.clientidbase.ms=android-orange-ouk

ro.com.google.clientidbase.yt=android-orange-ouk

ro.com.google.clientidbase.am=android-orange-ouk

ro.com.google.clientidbase.gmm=android-orange-ouk

wifi.interface=wlan0

wifi.supplicant_scan_interval=15

ro.display.switch=1

rild.libargs=-d/dev/ttyUSB2

rild.libpath=/system/lib/libsoftwinner-ril.so

keyguard.no_require_sim=true

persist.sys.timezone=Asia/Yekaterinburg

persist.sys.language=ru

persist.sys.country=RU

drm.service.enabled=false

dalvik.vm.heapsize=256m

dalvik.vm.heapstartsize=8m

dalvik.vm.heapgrowthlimit=96m

dalvik.vm.heaptargetutilization=0.75

dalvik.vm.heapminfree=2m

dalvik.vm.heapmaxfree=8m

persist.sys.usb.config=mass_storage

persist.sys.noconfig=false

ro.property.tabletUI=true

ro.statusbar.alwayshide=true

ro.udisk.lable=sugar

ro.product.firmware=v1.3.1i

ro.sw.defaultlauncherpackage=com.kaiboer.tvlancher.sihh

ro.sw.defaultlauncherclass=com.kaiboer.tvlancher.sihh.MainActivity

audio.output.active=AUDIO_CODEC

audio.input.active=AUDIO_CODEC

ro.audio.multi.output=true

ro.sw.directlypoweroff=true

ro.softmouse.left.code=105

ro.softmouse.right.code=106

ro.softmouse.top.code=103

ro.softmouse.bottom.code=108

ro.softmouse.leftbtn.code=232

ro.softmouse.midbtn.code=-1

ro.softmouse.rightbtn.code=-1

ro.sw.shortpressleadshut=false

ro.sf.lcd_density=160

ro.sw.videotrimming=1

ro.opengles.version=131072

video.accelerate.hw=1

ro.hwa.force=true

debug.sf.hw=1

debug.composition.type=dyn

persist.sys.ui.hw=true

persist.sys.strictmode.visual=0

persist.sys.strictmode.disable=1

persist.sys.use_dithering=0

profiler.force_disable_err_rpt=1

profiler.force_disable_ulog=1

ro.kernel.android.checkjni=0

ro.config.nocheckin=1

debug.checkjni=0

debug.performance.tuning=1

service.adb.tcp.port=5555

persist.sys.adbd=false

net.bt.name=Android

dalvik.vm.stack-trace-file=/data/anr/traces.txt

I try combinations:

persist.service.adb.enable=1
persist.service.debuggable=1
persist.sys.usb.config=mtp,adb,mass_storage

persist.service.adb.enable=1
persist.service.debuggable=1
persist.sys.usb.config=adb,mass_storage

persist.service.adb.enable=1
persist.service.debuggable=1
persist.sys.usb.config=adb

If I use ethernet - device gets ip well and I can connect via adb. But wifi in all cases can't get ip addres, there is just "getting ip address" status in settings panel. If I remove theres string - wifi works well. What can be wrong ?