[ROM][THEA][MM-6.0.1][Sungsonic HD][SSHD-MM-6.0.1-MMB29U-PR-4.0][25.03.2016] - Moto G 2014 LTE Android Development

ADDITIONAL FEATURES ADDED TO AOSP :
Advanced reboot.
Inbuilt Root.
Layers Manager.
SSHD Tuner [Empty as of now ..It wont take too much time to make it full !!]
Built Using UBERTC Toolchain for Both Rom & kernel.
SOURCE
ROM SOURCE
KERNEL SOURCE
NOTE: This thread will be updated soon with full detailed information.
DOWNLOADS
ROM
CREDITS:
Google
AOSP
CAF
CyanogenMod for device trees
XDA:DevDB Information
Sungsonic HD, ROM for the Moto G 2014 LTE
Contributors
tapan15in, Adi Shakthi
ROM OS Version: 6.0.x Marshmallow
ROM Kernel: Linux 3.4.x
Version Information
Status: Stable
Current Stable Version: PR1.0
Stable Release Date: 2016-03-26
Created 2016-03-26
Last Updated 2016-03-26

Reserved

Reserved

Does it have root access?

Avesi said:
Does it have root access?
Click to expand...
Click to collapse
see OP:
...
Advanced reboot.
Inbuilt Root.
Layers Manager.
SSHD Tuner [Empty as of now ..It wont take too much time to make it full !!]
Built Using UBERTC Toolchain for Both Rom & kernel...

I've installed the rom and I'm testing it. For now it's running great (no crashes, good performance)
I attached some screenshots (I'm using a custom kernel, a layers theme, installed xposed and removed all telephone/sms functions because it's my second phone)

Can you confirm if data is working from your sim card

He says the package installer stopped

Y las gapps donde estan?

English dude

Based on Cyanogenmod 13?...

dani_vardy said:
Y las gapps donde estan?
Click to expand...
Click to collapse
use opengapps
---------- Post added at 10:19 AM ---------- Previous post was at 10:17 AM ----------
Nice ROM, good performance, looking forward to see complete SSHD Tuner in next release

I can't install apk files

zhornos said:
I can't install apk files
Click to expand...
Click to collapse
Those postings are not helpful for developer(s) .
Try to be a bit more specific...
(when I read your posting, I wanted to ask, if you have to learn, how to install apks - but I'm sure you mean it otherwise)

bitstra said:
Those postings are not helpful for developer(s) .
Try to be a bit more specific...
(when I read your posting, I wanted to ask, if you have to learn, how to install apks - but I'm sure you mean it otherwise)
Click to expand...
Click to collapse
when i open a apk file, says package installer stopped

zhornos said:
when i open a apk file, says package installer stopped
Click to expand...
Click to collapse
Did you clean flashed this ROM ? (full wipe?)
If not, try to reflash after a full wipe and see, if your issue is gone...

zhornos said:
when i open a apk file, says package installer stopped
Click to expand...
Click to collapse
Same here, tried with different apk files so that I'm sure it was not a problem of corrupted installer. Coming from clean install (full wipe except for media folder)
Here's the log, hope it helps:
build.board: MSM8226
build.bootloader: 0x481D
build.brand: motorola
build.cpu_abi: armeabi-v7a
build.cpu_abi2: armeabi
build.device: thea
build.display: sshd_thea-userdebug 6.0.1 MMB29U 9d1246fd9b test-keys
build.fingerprint: motorola/thea_retgb/thea:6.0/MPB24.65-34/31:user/release-keys
build.hardware: qcom
build.host: blackhawk
build.id: MMB29U
build.manufacturer: motorola
build.model: Moto G 2014 LTE
build.product: sshd_thea
build.radio: unknown
build.serial: ZX1C2259VH
build.tags: test-keys
build.time: 1458919810000
build.type: userdebug
build.user: neohack
version.codename: UNOFFICIAL
version.incremental: 9d1246fd9b
version.release: 6.0.1
version.sdk_int: 23
04-04 08:43:22.759 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:22.760 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:22.760 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:23.331 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:23.331 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:23.331 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:23.331 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:23.331 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:23.353 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:23.361 I/ActivityManager(778): START u0 {act=com.android.systemui.recents.SHOW_RECENTS flg=0x10804000 cmp=com.android.systemui/.recents.RecentsActivity} from uid 10016 on display 0
04-04 08:43:23.525 I/art (1938): Background partial concurrent mark sweep GC freed 15046(672KB) AllocSpace objects, 4(1084KB) LOS objects, 40% free, 18MB/30MB, paused 11.969ms total 76.632ms
04-04 08:43:24.194 I/ThermalEngine(238): Sensor:batt_therm:35700 mC
04-04 08:43:24.223 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:24.223 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:24.223 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:24.224 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:24.224 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:24.224 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:24.224 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:24.351 I/OpenGLRenderer(20256): Initialized EGL, version 1.4
04-04 08:43:25.923 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:25.923 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:25.924 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:25.925 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:25.925 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:25.934 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:25.934 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:25.949 I/ActivityManager(778): START u0 {dat=/storage/emulated/0/Download/com.cygery.toggledata.xda-1.5.4.0.apk cmp=com.estrongs.android.pop.pro/com.estrongs.android.pop.app.ShowDialogActivity (has extras)} from uid 10116 on display 0
04-04 08:43:26.082 W/Activity(20256): An activity without a UI must call finish() before onResume() completes
04-04 08:43:26.194 I/ActivityManager(778): Displayed com.estrongs.android.pop.pro/com.estrongs.android.pop.app.ShowDialogActivity: +195ms (total +17s164ms)
04-04 08:43:26.620 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:26.811 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:26.812 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:26.817 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:26.817 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:26.818 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:26.818 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:26.818 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:26.859 I/ActivityManager(778): START u0 {cmp=com.estrongs.android.pop.pro/com.estrongs.android.pop.app.OpenRecomm (has extras)} from uid 10116 on display 0
04-04 08:43:26.925 I/ActivityManager(778): START u0 {act=android.intent.action.VIEW dat=file:///storage/emulated/0/Download/com.cygery.toggledata.xda-1.5.4.0.apk typ=application/vnd.android.package-archive cmp=com.google.android.packageinstaller/com.android.packageinstaller.PackageInstallerActivity} from uid 10116 on display 0
04-04 08:43:26.955 W/System (778): ClassLoader referenced unknown path: /system/framework/QPerformance.jar
04-04 08:43:26.956 E/BoostFramework(778): BoostFramework() : Exception_1 = java.lang.ClassNotFoundException: Didn't find class "com.qualcomm.qti.Performance" on path: DexPathList[[],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
04-04 08:43:26.956 V/BoostFramework(778): BoostFramework() : mPerf = null
04-04 08:43:26.956 E/BoostFramework(778): Exception java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])' on a null object reference
04-04 08:43:26.956 I/ActivityManager(778): Start proc 20984:com.google.android.packageinstaller/u0a24 for activity com.google.android.packageinstaller/com.android.packageinstaller.PackageInstallerActivity
04-04 08:43:27.054 W/System (20984): ClassLoader referenced unknown path: /system/priv-app/GooglePackageInstaller/lib/arm
04-04 08:43:27.246 W/ResourceType(20984): Failure getting entry for 0x010806e9 (t=7 e=1769) (error -75)
04-04 08:43:27.250 D/AndroidRuntime(20984): Shutting down VM
04-04 08:43:27.253 E/AndroidRuntime(20984): FATAL EXCEPTION: main
04-04 08:43:27.253 E/AndroidRuntime(20984): Process: com.google.android.packageinstaller, PID: 20984
04-04 08:43:27.253 E/AndroidRuntime(20984): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.packageinstaller/com.android.packageinstaller.PackageInstallerActivity}: android.view.InflateException: Binary XML file line #28: Binary XML file line #66: Error inflating class android.widget.HorizontalScrollView
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.app.ActivityThread.-wrap11(ActivityThread.java)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.os.Handler.dispatchMessage(Handler.java:102)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.os.Looper.loop(Looper.java:148)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.app.ActivityThread.main(ActivityThread.java:5417)
04-04 08:43:27.253 E/AndroidRuntime(20984): at java.lang.reflect.Method.invoke(Native Method)
04-04 08:43:27.253 E/AndroidRuntime(20984): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
04-04 08:43:27.253 E/AndroidRuntime(20984): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
04-04 08:43:27.253 E/AndroidRuntime(20984): Caused by: android.view.InflateException: Binary XML file line #28: Binary XML file line #66: Error inflating class android.widget.HorizontalScrollView
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.view.LayoutInflater.inflate(LayoutInflater.java:539)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
04-04 08:43:27.253 E/AndroidRuntime(20984): at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:393)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.app.Activity.setContentView(Activity.java:2177)
04-04 08:43:27.253 E/AndroidRuntime(20984): at com.android.packageinstaller.PackageInstallerActivity.onCreate(PackageInstallerActivity.java:535)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.app.Activity.performCreate(Activity.java:6285)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
04-04 08:43:27.253 E/AndroidRuntime(20984): ... 9 more
04-04 08:43:27.253 E/AndroidRuntime(20984): Caused by: android.view.InflateException: Binary XML file line #66: Error inflating class android.widget.HorizontalScrollView
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.view.LayoutInflater.createView(LayoutInflater.java:645)
04-04 08:43:27.253 E/AndroidRuntime(20984): at com.android.internal.policy.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:58)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:694)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:762)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.view.LayoutInflater.rInflate(LayoutInflater.java:838)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.view.LayoutInflater.rInflate(LayoutInflater.java:838)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.view.LayoutInflater.parseInclude(LayoutInflater.java:971)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.view.LayoutInflater.rInflate(LayoutInflater.java:831)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
04-04 08:43:27.253 E/AndroidRuntime(20984): ... 17 more
04-04 08:43:27.253 E/AndroidRuntime(20984): Caused by: java.lang.reflect.InvocationTargetException
04-04 08:43:27.253 E/AndroidRuntime(20984): at java.lang.reflect.Constructor.newInstance(Native Method)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.view.LayoutInflater.createView(LayoutInflater.java:619)
04-04 08:43:27.253 E/AndroidRuntime(20984): ... 31 more
04-04 08:43:27.253 E/AndroidRuntime(20984): Caused by: android.content.res.Resources$NotFoundException: Resource "android:drawable/unlock_default" (10806e9) is not a Drawable (color or path): TypedValue{t=0x1/d=0x10806e9 a=-1 r=0x10806e9}
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.content.res.Resources.loadDrawableForCookie(Resources.java:2607)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.content.res.Resources.loadDrawable(Resources.java:2545)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.content.res.TypedArray.getDrawable(TypedArray.java:870)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.view.View.<init>(View.java:3955)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.view.ViewGroup.<init>(ViewGroup.java:574)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.widget.FrameLayout.<init>(FrameLayout.java:97)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.widget.HorizontalScrollView.<init>(HorizontalScrollView.java:159)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.widget.HorizontalScrollView.<init>(HorizontalScrollView.java:154)
04-04 08:43:27.253 E/AndroidRuntime(20984): at android.widget.HorizontalScrollView.<init>(HorizontalScrollView.java
04-04 08:43:27.257 W/ActivityManager(778): Force finishing activity com.google.android.packageinstaller/com.android.packageinstaller.PackageInstallerActivity
04-04 08:43:27.319 I/OpenGLRenderer(778): Initialized EGL, version 1.4
04-04 08:43:27.768 W/ActivityManager(778): Activity pause timeout for ActivityRecord{59ba417 u0 com.google.android.packageinstaller/com.android.packageinstaller.PackageInstallerActivity t623 f}
04-04 08:43:28.398 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:28.400 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:28.401 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:28.402 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:28.402 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:28.419 I/Process (20984): Sending signal. PID: 20984 SIG: 9
04-04 08:43:28.465 I/ActivityManager(778): Process com.google.android.packageinstaller (pid 20984) has died
04-04 08:43:28.549 W/AppOps (778): Finishing op nesting under-run: uid 1000 pkg android code 24 time=0 duration=0 nesting=0
04-04 08:43:28.911 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:28.911 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:28.912 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:28.912 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:28.912 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:28.912 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:28.912 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:28.912 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:28.912 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:28.938 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:28.952 I/ActivityManager(778): START u0 {act=com.android.systemui.recents.SHOW_RECENTS flg=0x10804000 cmp=com.android.systemui/.recents.RecentsActivity} from uid 10016 on display 0
04-04 08:43:29.175 I/art (778): Background partial concurrent mark sweep GC freed 24292(1690KB) AllocSpace objects, 6(136KB) LOS objects, 33% free, 27MB/41MB, paused 3.050ms total 206.782ms
04-04 08:43:29.192 I/art (1938): Background partial concurrent mark sweep GC freed 8139(391KB) AllocSpace objects, 9(3MB) LOS objects, 40% free, 17MB/29MB, paused 9.471ms total 88.917ms
04-04 08:43:29.827 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:29.827 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:29.827 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:29.827 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:29.827 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:29.955 V/PhoneStatusBar(1938): setLightsOn(true)
04-04 08:43:30.065 I/art (19369): Background sticky concurrent mark sweep GC freed 29369(1344KB) AllocSpace objects, 0(0B) LOS objects, 15% free, 9MB/11MB, paused 5.186ms total 41.226ms
04-04 08:43:30.169 V/PhoneStatusBar(1938): setLightsOn(true)
04-04 08:43:31.416 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:31.416 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:31.416 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:31.416 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:31.416 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:31.420 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:31.420 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:31.421 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:31.422 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:31.434 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:31.434 D/EmojiAltPhysicalKeyDetector(2248): onKeyUp() : KeyEvent { action=ACTION_UP, keyCode=KEYCODE_MENU, scanCode=0, metaState=0, flags=0x48, repeatCount=0, eventTime=29009866, downTime=29009862, deviceId=-1, source=0x101 }
04-04 08:43:31.434 D/EmojiAltPhysicalKeyDetector(2248): onKeyUp() : Not Mapped: 82
04-04 08:43:32.232 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:32.232 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:32.232 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:32.232 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:32.232 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:33.897 D/NetlinkSocketObserver(778): NeighborEvent{elapsedMs=80547336, 10.4.37.254, [00005E00016B], RTM_NEWNEIGH, NUD_STALE}
04-04 08:43:34.050 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:34.050 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:34.051 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:34.051 D/PowerHAL(778): power_hint: no power profile selected yet
04-04 08:43:34.051 D/PowerHAL(778): power_hint: no power profile selected yet

Waiting update :C

The project still alive?

Is this ROM support volte ?

Related

simulated multiple key presses

does anyone know of a piece of software that can be configured to simulate two or more keypresses just by pressing one key.
i have a vario II and want to set the keyboad up to play console emulators,
but i want it so W is up, A is left, D is Right and X is down,
but i also want Q to simulate me pressing W and A
E to simulate pressing W and D
Z to simulate pressing A and X
and C to simulate pressing D and X
any ideas?
thanks, quang.

adjust volume

Hi,
I feel the headset volume is kind of low and was wondering if somebody know how to increase it.
I found this
headset in call volume hack (dial *#*#197328640#*#*, [8] audio -> [2] headset -> [2]rx value -> [1] rx codec/volume, enter 5FFF for 4db, 7FFF for 6db, FFFF for 12db, 4000 for default)
Click to expand...
Click to collapse
but it is for the I9000 and menus are different.

[TUT] Change wakeup buttons

Challenge: don't wake up you phone when I press any of the buttons!!! Only ENDCALL button (example is from Samsung i5500 with Froyo)
Finding the keycode for a button
Click all the hardware buttons (write down the sequence you pushed
Find keycode with dmesg (rooted phone)
# dmesg|grep keycode:
dmesg|grep keycode:
<4>[ 6379.122037] key event (keycode:107, pressed:1), wlan_debug_step=0
<4>[ 6379.304589] key event (keycode:107, pressed:0), wlan_debug_step=0
<4>[ 6400.249157] key event (keycode:139, pressed:1), wlan_debug_step=0
<4>[ 6400.451860] key event (keycode:139, pressed:0), wlan_debug_step=0
<4>[ 6404.388724] key event (keycode:102, pressed:1), wlan_debug_step=0
<4>[ 6404.571092] key event (keycode:102, pressed:0), wlan_debug_step=0
<4>[ 6407.086125] key event (keycode:158, pressed:1), wlan_debug_step=0
<4>[ 6407.268522] key event (keycode:158, pressed:0), wlan_debug_step=0
<4>[ 6410.270504] key event (keycode:217, pressed:1), wlan_debug_step=0
<4>[ 6410.432657] key event (keycode:217, pressed:0), wlan_debug_step=0
<4>[ 6422.337047] key event (keycode:103, pressed:1), wlan_debug_step=0
<4>[ 6422.580344] key event (keycode:103, pressed:0), wlan_debug_step=0
<4>[ 6425.833795] key event (keycode:105, pressed:1), wlan_debug_step=0
<4>[ 6426.036509] key event (keycode:105, pressed:0), wlan_debug_step=0
<4>[ 6429.794280] key event (keycode:108, pressed:1), wlan_debug_step=0
<4>[ 6429.997194] key event (keycode:108, pressed:0), wlan_debug_step=0
<4>[ 6433.061290] key event (keycode:106, pressed:1), wlan_debug_step=0
<4>[ 6433.304629] key event (keycode:106, pressed:0), wlan_debug_step=0
<4>[ 6437.635529] key event (keycode:231, pressed:1), wlan_debug_step=0
<4>[ 6437.797985] key event (keycode:231, pressed:0), wlan_debug_step=0
<4>[ 6442.918039] key event (keycode:107, pressed:1), wlan_debug_step=0
<4>[ 6443.141397] key event (keycode:107, pressed:0), wlan_debug_step=0
So for Samsung i5500 the scan / keycode table looks like:
139 MENU
102 HOME
158 BACK
217 SEARCH
103 DPAD_UP
105 DPAD_UP
108 DPAD_DOWN
106 DPAD_RIGHT
232 DPAD_CENTER
231 CALL
107 ENDCALL
114 VOLUME_DOWN
115 VOLUME_UP
Which button definition file is in use
In a adb shell type: getprop hw.keyboards.0.devname
In my case it is europa_keypad0
cd /system/usr/keylayout
ls -l
-rw-r--r-- root root 349 2011-04-01 13:01 AVRCP.kl
-rw-r--r-- root root 1712 2011-04-01 13:01 europa_keypad0.kl
-rw-r--r-- root root 1697 2011-04-01 13:01 europa_headset.kl
-rw-r--r-- root root 1699 2011-04-01 13:01 qwerty.kl
This file looks like:
key 158 BACK WAKE_DROPPED <<<REMOVE
key 230 SOFT_RIGHT WAKE
key 60 SOFT_RIGHT WAKE
key 107 ENDCALL WAKE_DROPPED <<<REMOVE
WAKE: When this key is pressed while the device is asleep, the device will wake up and the key event gets sent to the app.
WAKE_DROPPED: When this key is pressed while the device is asleep, the device will wake up and the key event does not get sent to the app.
So:
- system needs to be r/w mounted
- adb pull /system/usr/keylayout/europa_keypad0.kl
- adb shell chmod 666 /system/usr/keylayout/europa_keypad0.kl
- edit you file, remove any WAKE or WAKE_DROPPED from the keys
that you don't want the phone to wake up
(or do the opposite if you like your phone to wake on a specific button)
- adb push europa_keypad0.kl /system/usr/keylayout
- reboot
Cheers
ORG:
Code:
key 399 GRAVE
key 2 1
key 3 2
key 4 3
key 5 4
key 6 5
key 7 6
key 8 7
key 9 8
key 10 9
key 11 0
key 158 BACK WAKE_DROPPED
key 230 SOFT_RIGHT WAKE
key 60 SOFT_RIGHT WAKE
key 107 ENDCALL WAKE_DROPPED
key 62 ENDCALL WAKE_DROPPED
key 229 MENU WAKE_DROPPED
key 139 MENU WAKE_DROPPED
key 59 MENU WAKE_DROPPED
key 127 SEARCH WAKE_DROPPED
key 217 SEARCH WAKE_DROPPED
key 228 POUND
key 227 STAR
key 231 CALL WAKE_DROPPED
key 61 CALL WAKE_DROPPED
key 232 DPAD_CENTER WAKE_DROPPED
key 108 DPAD_DOWN WAKE_DROPPED
key 103 DPAD_UP WAKE_DROPPED
key 102 HOME WAKE
key 105 DPAD_LEFT WAKE_DROPPED
key 106 DPAD_RIGHT WAKE_DROPPED
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 116 POWER WAKE
key 212 CAMERA
MOD:
Code:
key 399 GRAVE
key 2 1
key 3 2
key 4 3
key 5 4
key 6 5
key 7 6
key 8 7
key 9 8
key 10 9
key 11 0
key 158 BACK
key 230 SOFT_RIGHT
key 60 SOFT_RIGHT
key 107 ENDCALL WAKE_DROPPED
key 62 ENDCALL WAKE_DROPPED
key 229 MENU
key 139 MENU
key 59 MENU
key 127 SEARCH
key 217 SEARCH
key 228 POUND
key 227 STAR
key 231 CALL
key 61 CALL
key 232 DPAD_CENTER
key 108 DPAD_DOWN
key 103 DPAD_UP
key 102 HOME
key 105 DPAD_LEFT
key 106 DPAD_RIGHT
key 115 VOLUME_UP
key 114 VOLUME_DOWN
key 116 POWER
key 212 CAMERA

capture volume key events in Android TV Box from Android version 8.1 on wards

We have Android TV (ATV) box running on Android version 8.1 and above. We need to get key events for volume keys when pressed from ATV remote. Unfortunately we couldn't get volume key events from Android version 8.1. But we can get volume key events from Android version Nougat 7.0 box. Question : How I need to capture volume key events in Android TV box versions 8.1 and 9 [pie] ?
We have tried following callback API onKeyDown(), onKeyUp(), dispatchKeyEvent(), onKeyLongPress() and onKeyEvent() in activity class.
Code:
 @override
public boolean onKeyDown(int keyCode, KeyEvent event){
Log.d(TAG,"Key code pressed:" + event.getKeycode);
}
Expected output : Key code pressed :25 Key code pressed: 24
Actual output : onkeydown not get triggered for volume keys .

S-Pen Button long press and Tasker Task

In settings, it allows setting the 'Air Action' for 'Hold Down Pen Button to' (aka long-pressing the S-Pen button) to any Android app.
So, I setup this Tasker Task named Mute Media Toggle and selected an Icon image for the Task.
Task: Mute Media Toggle
If Condition %MediaMute equals 1
Variable Set %MediaMute to 0
Media Volume Level 10
Else
Variable Set %MediaMute to 1
Media Volume Level 0
End If
I then exported this Task using Tasker App Factory as an app named mute.media.toggle. I then assigned the Mute Media Toggle app as the app for the Air Action for 'Hold Down Pen Button to'. Now whenever I'm in an app that uses media volume, besides using the standard S-Pen Air Gestures for volume up/down, I can now mute/unmute the Media Volume simply by long pressing the S-Pen button. I really needed to be able to mute/unmute media volume easily because the Amazon Fire app when streaming video from the Amazon Recast DVR doesn't have any volume controls at all in the app's video playback screen.
So I imagine that anything Tasker can do in a Task should be able to be set to the 'Hold Down Pen Button to' action.
Sent from my SM-T860 using Tapatalk
I'm using the app SideSqueeze+ for extended S-Pen gestures, since Samsung's gestures are unfortunately pretty limited. It's a very useful app with great support. I recently asked about an option to change the over all volume up and down and it came with last update
m.

Categories

Resources