Stratos internationl : add Mi Home app - Amazfit

Hi amazexperts !
Do you think that it is feasible to add the Mi Home app to the International firmware version ?
Best regards,

raboliot said:
Hi amazexperts !
Do you think that it is feasible to add the Mi Home app to the International firmware version ?
Best regards,
Click to expand...
Click to collapse
I got this error : C:\adb>adb install WearSmartHome.apk
6478 KB/s (624773 bytes in 0.094s)
pkg: /data/local/tmp/WearSmartHome.apk
Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION]

It seems that you have only the .apk file, but in /system folder of Pace/Stratos normally the apps are odexed so you have a /mips folder with the correspondent .odex file. I have attached the full folder from stock Pace 2.6.1.0 firmware. Probably it's a better idea to push it back to /system instead of trying to deodex and install as normal APK. Have fun.

lfom said:
It seems that you have only the .apk file, but in /system folder of Pace/Stratos normally the apps are odexed so you have a /mips folder with the correspondent .odex file. I have attached the full folder from stock Pace 2.6.1.0 firmware. Probably it's a better idea to push it back to /system instead of trying to deodex and install as normal APK. Have fun.
Click to expand...
Click to collapse
Thank you ! I am testing uploading the files. I will let you informed.
Best regards,
Best regards.

raboliot said:
Thank you ! I am testing uploading the files. I will let you informed.
Best regards,
Best regards.
Click to expand...
Click to collapse
Some errors, if you have ideas....
I/art ( 413): DexFile_isDexOptNeeded file /system/app/WearSmartHome/mips/WearSmartHome.odex is out of date for /system/app/WearSmartHome/WearSmartHome.apk
I/PackageManager( 413): Running dexopt on: /system/app/WearSmartHome/WearSmartHome.apk pkg=com.huami.smarthome isa=mips vmSafeMode=false
I/PackageManager( 413): No secure containers found
W/PackageManager( 413): Unknown permission android.permission.LOCAL_MAC_ADDRESS in package com.huami.smarthome
...
I/dex2oat ( 453): /system/bin/dex2oat --zip-fd=5 --zip-location=/system/app/WearSmartHome/WearSmartHome.apk --oat-fd=6 --oat-location=/data/dalvik-cache/mips/[email protected]@[email protected]@classes.dex --instruction-set=mips --instruction-set-features=default --runtime-arg -Xms64m --runtime-arg -Xmx512m --swap-fd=7
E/dex2oat ( 453): Failed to open dex from file descriptor for zip file '/system/app/WearSmartHome/WearSmartHome.apk': Entry not found
E/installd( 91): DexInv: --- END '/system/app/WearSmartHome/WearSmartHome.apk' --- status=0x0100, process failed
..
I/LogUtils( 545): com.huami.watch.train.ui.activity.launch.TraintLauncherView-------onBindHost is null ?:false-------
W/System.err( 545): java.lang.ClassNotFoundException: com.huami.smarthome.widget.SmartHomeLauncherWidget
W/System.err( 545): at java.lang.Class.classForName(Native Method)
W/System.err( 545): at java.lang.Class.forName(Class.java:309)
W/System.err( 545): at com.huami.watch.launcher.springboard.PassagerCreator.prepare(PassagerCreator.java:68)
W/System.err( 545): at com.huami.watch.launcher.springboard.PassagerManager$1.onExecute(PassagerManager.java:125)
W/System.err( 545): at clc.utils.taskmanager.TaskManager.executeTask(TaskManager.java:641)
W/System.err( 545): at clc.utils.taskmanager.TaskManager.doInBackground(TaskManager.java:570)
W/System.err( 545): at clc.utils.taskmanager.TaskManager.access$3(TaskManager.java:551)
W/System.err( 545): at clc.utils.taskmanager.TaskManager$2.run(TaskManager.java:295)
W/System.err( 545): at android.os.Handler.handleCallback(Handler.java:739)
W/System.err( 545): at android.os.Handler.dispatchMessage(Handler.java:95)
W/System.err( 545): at android.os.Looper.loop(Looper.java:135)
W/System.err( 545): at clc.utils.taskmanager.ThreadWorker.run(ThreadWorker.java:93)
W/System.err( 545): at java.lang.Thread.run(Thread.java:818)
W/System.err( 545): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.huami.smarthome.widget.SmartHomeLauncherWidget" on path: DexPathList[[zip file "/system/app/WearSmartHome/WearSmartHome.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
W/System.err( 545): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
W/System.err( 545): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
W/System.err( 545): at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
W/System.err( 545): ... 13 more
W/System.err( 545): Suppressed: java.io.IOException: Zip archive '/system/app/WearSmartHome/WearSmartHome.apk' doesn't contain classes.dex (error msg: Entry not found)
W/System.err( 545): at dalvik.system.DexFile.openDexFileNative(Native Method)
W/System.err( 545): at dalvik.system.DexFile.openDexFile(DexFile.java:295)
W/System.err( 545): at dalvik.system.DexFile.<init>(DexFile.java:80)
W/System.err( 545): at dalvik.system.DexFile.<init>(DexFile.java:59)
W/System.err( 545): at dalvik.system.DexPathList.loadDexFile(DexPathList.java:262)
W/System.err( 545): at dalvik.system.DexPathList.makeDexElements(DexPathList.java:231)
W/System.err( 545): at dalvik.system.DexPathList.<init>(DexPathList.java:109)
W/System.err( 545): at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:48)
W/System.err( 545): at dalvik.system.PathClassLoader.<init>(PathClassLoader.java:65)
W/System.err( 545): at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:57)
W/System.err( 545): at android.app.LoadedApk.getClassLoader(LoadedApk.java:361)
W/System.err( 545): at android.app.ContextImpl.getClassLoader(ContextImpl.java:851)
W/System.err( 545): at com.huami.watch.launcher.springboard.PassagerCreator.prepare(PassagerCreator.java:53)
W/System.err( 545): ... 10 more
W/System.err( 545): Caused by: java.io.IOException: Failed to open oat file from dex location '/system/app/WearSmartHome/WearSmartHome.apk'
W/System.err( 545): ... 23 more
W/System.err( 545): Caused by: java.io.IOException: Failed to open oat file from /system/app/WearSmartHome/mips/WearSmartHome.odex (error ) (no dalvik_cache availible) and relocation failed.
W/System.err( 545): ... 23 more
W/System.err( 545): Caused by: java.io.IOException:
W/System.err( 545): ... 23 more
W/System.err( 545): Suppressed: java.lang.ClassNotFoundException: com.huami.smarthome.widget.SmartHomeLauncherWidget
W/System.err( 545): at java.lang.Class.classForName(Native Method)
W/System.err( 545): at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
W/System.err( 545): at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
W/System.err( 545): at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
W/System.err( 545): ... 14 more
W/System.err( 545): Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available

Did you use a PC with Windows to unpack the files before pushing it to the watch? If yes, it will lose its permissions, and some errors seem to be related to this kind of problems. If you don't have macOS/Linux, them push the file to watch first, then decompress it on /cache or another etx4 directory with space before moving them to /system.

Last error using Linux :
W/System.err( 581): java.lang.ClassNotFoundException: com.huami.smarthome.widget.SmartHomeLauncherWidget
W/System.err( 581): at java.lang.Class.classForName(Native Method)
W/System.err( 581): at java.lang.Class.forName(Class.java:309)
W/System.err( 581): at com.huami.watch.launcher.springboard.PassagerCreator.prepare(PassagerCreator.java:68)
W/System.err( 581): at com.huami.watch.launcher.springboard.PassagerManager$1.onExecute(PassagerManager.java:125)
W/System.err( 581): at clc.utils.taskmanager.TaskManager.executeTask(TaskManager.java:641)
W/System.err( 581): at clc.utils.taskmanager.TaskManager.doInBackground(TaskManager.java:570)
W/System.err( 581): at clc.utils.taskmanager.TaskManager.access$3(TaskManager.java:551)
W/System.err( 581): at clc.utils.taskmanager.TaskManager$2.run(TaskManager.java:295)
W/System.err( 581): at android.os.Handler.handleCallback(Handler.java:739)
W/System.err( 581): at android.os.Handler.dispatchMessage(Handler.java:95)
W/System.err( 581): at android.os.Looper.loop(Looper.java:135)
W/System.err( 581): at clc.utils.taskmanager.ThreadWorker.run(ThreadWorker.java:93)
W/System.err( 581): at java.lang.Thread.run(Thread.java:818)
W/System.err( 581): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.huami.smarthome.widget.SmartHomeLauncherWidget" on path: DexPathList[[zip file "/system/app/WearSmartHome/WearSmartHome.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
W/System.err( 581): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
W/System.err( 581): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
W/System.err( 581): at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
W/System.err( 581): ... 13 more
W/System.err( 581): Suppressed: java.io.IOException: Zip archive '/system/app/WearSmartHome/WearSmartHome.apk' doesn't contain classes.dex (error msg: Entry not found)
W/System.err( 581): at dalvik.system.DexFile.openDexFileNative(Native Method)
W/System.err( 581): at dalvik.system.DexFile.openDexFile(DexFile.java:295)
W/System.err( 581): at dalvik.system.DexFile.<init>(DexFile.java:80)
W/System.err( 581): at dalvik.system.DexFile.<init>(DexFile.java:59)
W/System.err( 581): at dalvik.system.DexPathList.loadDexFile(DexPathList.java:262)
W/System.err( 581): at dalvik.system.DexPathList.makeDexElements(DexPathList.java:231)
W/System.err( 581): at dalvik.system.DexPathList.<init>(DexPathList.java:109)
W/System.err( 581): at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:48)
W/System.err( 581): at dalvik.system.PathClassLoader.<init>(PathClassLoader.java:65)
W/System.err( 581): at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:57)
W/System.err( 581): at android.app.LoadedApk.getClassLoader(LoadedApk.java:361)
W/System.err( 581): at android.app.ContextImpl.getClassLoader(ContextImpl.java:851)
W/System.err( 581): at com.huami.watch.launcher.springboard.PassagerCreator.prepare(PassagerCreator.java:53)
W/System.err( 581): ... 10 more
W/System.err( 581): Caused by: java.io.IOException: Failed to open oat file from dex location '/system/app/WearSmartHome/WearSmartHome.apk'
W/System.err( 581): ... 23 more
W/System.err( 581): Caused by: java.io.IOException: Failed to open oat file from /system/app/WearSmartHome/mips/WearSmartHome.odex (error ) (no dalvik_cache availible) and relocation failed.
W/System.err( 581): ... 23 more
W/System.err( 581): Caused by: java.io.IOException:
W/System.err( 581): ... 23 more
W/System.err( 581): Suppressed: java.lang.ClassNotFoundException: com.huami.smarthome.widget.SmartHomeLauncherWidget
W/System.err( 581): at java.lang.Class.classForName(Native Method)
W/System.err( 581): at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
W/System.err( 581): at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
W/System.err( 581): at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
W/System.err( 581): ... 14 more
W/System.err( 581): Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available

Looks like it relies on some other system libraries, so it's not a stand alone app. Probably it will work only with the CN version of the firmware, which already includes it. If you do want it, probably it's easier to unlock bootloader (it voids watch's warranty) and flash CN-based firmware.

Hi I have the international Stratos too and I would like to use the smart home app... If I change to a Chinese firm would I be able to use it. And could be a Chinese firm translate to English or Spanish? Thank for any info

ysotha said:
Hi I have the international Stratos too and I would like to use the smart home app... If I change to a Chinese firm would I be able to use it. And could be a Chinese firm translate to English or Spanish? Thank for any info
Click to expand...
Click to collapse
Hi,
I use Stratosfield firmware. CN base with translations.

raboliot said:
Hi,
I use Stratosfield firmware. CN base with translations.
Click to expand...
Click to collapse
HI and thanks. Does it have the smart home app? And works with the smart home ecosystem of xiaomi without problems? I have had the watch only for a few days and still a newbie...
Thanks again.

The Mi home apps gave me access only to Mi plug Mini and Xiaomi Color Bulb.
I have 3 other devices, that i can't control via Watch. So i turn back to stock rom

Hello guys!
I found that one Russian guy released a video showing that Amazfit Stratos works with Mi app home on a stock ROM.
I used his instructions and wow it's works!!!
If you need some translations I will help you!
Kindly ask you not to copy direct link here to the modified App so he will get necessary viewings on his page.
---------- Post added at 10:36 AM ---------- Previous post was at 10:16 AM ----------
Some short instructions
This modified apk could be installed directly from PC to your Amazfit Stratos.
1. What you will need is just install software for PC and app itself.
2. Install drivers if you need.
3. Then use your cable to connect the phone
4. Install apk on your phone using this software
5. Restart the watch
6. Be sure that your Amazfit is not in airplane mode and connected to the phone.
7. Open Mi home app at your Amazfit Stratos watch
8. In your phone Mi home app press add new device and find Amazfit Pace even if you have Amazfit Stratos
9. Phone app will try to configure the app on the watch and you will be able to use it
10. First time you need to configure on Phones Mi home app what Measurements will be shown on your watch and what devices you will need to configure
10. After you will need to press sync button to send the settings to phone
11. The whatch Mi home app needs phone to be connected in order to control your home devices
12. Every first 5-10 minutes after each phone-watxh reconnection it workes with some lags as watch receiving the info from devices.

Hi, could you post the link once again or the link to the APK? For me the link to YouTube does not work. Thanks

amb777 said:
..
9. Phone app will try to configure the app on the watch and you will be able to use it
10. First time you need to configure on Phones Mi home app what Measurements will be shown on your watch and what devices you will need to configure
10. After you will need to press sync button to send the settings to phone
11. The whatch Mi home app needs phone to be connected in order to control your home devices
12. Every first 5-10 minutes after each phone-watxh reconnection it workes with some lags as watch receiving the info from devices.
Click to expand...
Click to collapse
Thanks for sharing the steps, indeed the youtube video is down, it would be nice if you could share the apk. From you explanation it sounds like he controls the Mi home devices via the phone, which is a workaround....
The original app from the CN firmware controls the devices via Wifi directly, right? (I'm asking because I've only used the Stock OS)

behrma said:
Hi, could you post the link once again or the link to the APK? For me the link to YouTube does not work. Thanks
Click to expand...
Click to collapse
I think this is the youtube video: https://www.youtube.com/watch?v=4hM9A9KRPd0
And the apk is from here: https://drive.google.com/file/d/11Me4xOSaoozU3uJRaHYlS1Hmvj1CdV98/view

Yes, this is right app.
No, the app works via your phone. So it should be connected. But I'm not sure if it works via WiFi, my opinion that it works only via Bluetooth.

How to install the Mi Home app on the amazfit stratos internacional version
Hello All
I just have found a way to install the mi home app on the amazfit stratos international version please see the video and the video description to access all the information and files needed to perform this
https://youtu.be/nHy2ao5N3u8
Best regards

Stratos
Doesn't work. Too me app not open. Mi home app on the phone, can't see the smartwach. What version of firmware do you have on Stratos? I have 2.3.7.0.

CRISSTIB75 said:
Doesn't work. Too me app not open. Mi home app on the phone, can't see the smartwach. What version of firmware do you have on Stratos? I have 2.3.7.0.
Click to expand...
Click to collapse
at mi home app on phone change region to mainland china..it will works
---------- Post added at 10:59 AM ---------- Previous post was at 10:57 AM ----------
mine works after change to mainland china region

Related

Porting Rom, crashes after "unfortunately the process com.android.phone has stopped"

Porting Rom, crashes after "unfortunately the process com.android.phone has stopped"
I'm trying to port a 4.0.4 rom from the samsung galaxy note to the xperia play. I've crushed a good amount of bugs so far, but I still can't get it past the boot-splash except for a couple seconds after wiping the dalvik cache or not wiping data on first boot.
So when I flash my attempted port rom over itself with wiping everything but data it boots and I get to the android is updating screen and after it's finished optimizing all the apps a dialog box with "unfortunately the process com.android.phone has stopped" and I can see the android setup screen in the background. But immediately after the dialog box appears my phone soft reboots (it goes immediately to the boot-splash) and is stuck at the boot-splash.
If I flash the attempted port rom after wiping everything including data I'm just stuck at the boot-splash screen.
Here is the logcat when the phone crashes after the error dialog onscreen:
Code:
[ 01-06 06:21:43.507 2024:0x7e8 E/AndroidRuntime ]
FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to create application com.android.phone.PhoneApp: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.android.internal.telephony.SemcRIL
at android.app.ActivityThread.handleBindApplication(ActivityThread.java)
at android.app.ActivityThread.access$1300(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java)
at android.os.Handler.dispatchMessage(Handler.java)
at android.os.Looper.loop(Looper.java)
at android.app.ActivityThread.main(ActivityThread.java)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.android.internal.telephony.SemcRIL
at com.android.internal.telephony.PhoneFactory.makeDefaultPhone(PhoneFactory.java)
at com.android.internal.telephony.PhoneFactory.makeDefaultPhones(PhoneFactory.java)
at com.android.phone.PhoneApp.onCreate(PhoneApp.java:443)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java)
... 11 more
Caused by: java.lang.ClassNotFoundException: com.android.internal.telephony.SemcRIL
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:217)
at java.lang.Class.forName(Class.java:172)
... 15 more
Caused by: java.lang.NoClassDefFoundError: com/android/internal/telephony/SemcRIL
... 18 more
Caused by: java.lang.ClassNotFoundException: com.android.internal.telephony.SemcRIL
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
... 18 more
Right here also seems to be where the setup wizard fails to start or something similar, does anyone know what this log means?
Code:
[ 01-06 07:09:05.237 1923:0x783 E/ViewRootImpl ]
IllegalArgumentException locking surface
java.lang.IllegalArgumentException
at android.view.Surface.lockCanvasNative(Native Method)
at android.view.Surface.lockCanvas(Surface.java)
at android.view.ViewRootImpl.draw(ViewRootImpl.java)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java)
at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java)
at android.os.Handler.dispatchMessage(Handler.java)
at android.os.Looper.loop(Looper.java)
at android.app.ActivityThread.main(ActivityThread.java)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
at dalvik.system.NativeStart.main(Native Method)
[ 01-06 07:09:05.237 1923:0x783 D/PhoneStatusBar ]
disable: < EXPAND ICONS ALERTS ticker SYSTEM_INFO back HOME RECENT clock >
[ 01-06 07:09:05.237 1923:0x7cc I/StorageNotification ]
UMS connection changed to true (media state removed)
[ 01-06 07:09:05.237 2069:0x815 E/AndroidRuntime ]
FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to get provider com.google.android.gsf.subscribedfeeds.SubscribedFeedsProvider: java.lang.NullPointerException
at android.app.ActivityThread.installProvider(ActivityThread.java)
at android.app.ActivityThread.installContentProviders(ActivityThread.java)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java)
at android.app.ActivityThread.access$1300(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java)
at android.os.Handler.dispatchMessage(Handler.java)
at android.os.Looper.loop(Looper.java)
at android.app.ActivityThread.main(ActivityThread.java)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at android.accounts.AccountManager.getAccounts(AccountManager.java)
at android.accounts.AccountManager.addOnAccountsUpdatedListener(AccountManager.java)
at com.google.android.gsf.subscribedfeeds.AbstractSyncableContentProvider.onCreate(AbstractSyncableContentProvider.java:169)
at com.google.android.gsf.subscribedfeeds.SubscribedFeedsProvider.onCreate(SubscribedFeedsProvider.java:78)
at android.content.ContentProvider.attachInfo(ContentProvider.java)
... 13 more
[ 01-06 07:09:05.247 2069:0x815 I/Process ]
Sending signal. PID: 2069 SIG: 9
[ 01-06 07:09:05.247 2069:0x815 E/AndroidRuntime ]
Error reporting crash
android.os.DeadObjectException
at android.os.BinderProxy.transact(Native Method)
at android.app.ActivityManagerProxy.handleApplicationCrash(ActivityManagerNative.java)
at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
at dalvik.system.NativeStart.main(Native Method)
[ 01-06 07:09:05.257 2020:0x7e4 E/InputQueue-JNI ]
channel '2bcfa598 com.google.android.setupwizard/com.google.android.setupwizard.WelcomeActivity (client)' ~ Publisher closed input channel or an error occurred. events=0x8
[ 01-06 07:09:05.267 1824:0x720 I/Zygote ]
Exit zygote because system server (1830) has terminated
[ 01-06 07:09:05.427 2118:0x846 D/AndroidRuntime ]
I hope someone can help me
Thank's to everyone in advance :fingers-crossed:
So I can't interact with my phone, but after digging a little deeper I was able to get it to not reboot, but now it flashes from a blank screen to a screen that says "unfortunately the process com.android.phone has stopped" with the statusbar indicating no network and the app to set up your phone in the background and adb produced some new errors that I can't begin to understand.
Code:
01-06 11:33:56.058 8063:0x1f9e E/AndroidRuntime ]
*** FATAL EXCEPTION IN SYSTEM PROCESS: android.server.ServerThread
java.lang.RuntimeException: Error receiving broadcast Intent { act=android.hardware.usb.action.USB_STATE flg=0x20000010 (has extras) } in [email protected]
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java)
at android.os.Handler.handleCallback(Handler.java)
at android.os.Handler.dispatchMessage(Handler.java)
at android.os.Looper.loop(Looper.java)
at com.android.server.ServerThread.run(SystemServer.java:826)
Caused by: java.lang.IllegalArgumentException
at com.android.server.MountService.getVolumeState(MountService.java:1404)
at com.android.server.MountService.notifyShareAvailabilityChange(MountService.java:1026)
at com.android.server.MountService.access$1300(MountService.java:92)
at com.android.server.MountService$1.onReceive(MountService.java:546)
... 5 more
[ 01-06 11:33:56.248 8224:0x2020 E/AbstractCompatWrapper ]
Invalid input to AbstructCompatWrapper
[ 01-06 11:33:56.248 8224:0x2020 E/CompatUtils ]
Exception in invoke: NullPointerException
[ 01-06 11:33:56.248 8224:0x2020 E/CompatUtils ]
Exception in invoke: InvocationTargetException
[ 01-06 11:33:56.268 8241:0x2031 E/AndroidRuntime ]
FATAL EXCEPTION: main
java.lang.AssertionError: android.os.DeadObjectException
at android.app.LoadedApk.initializeJavaContextClassLoader(LoadedApk.java)
at android.app.LoadedApk.getClassLoader(LoadedApk.java)
at android.app.LoadedApk.makeApplication(LoadedApk.java)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java)
at android.app.ActivityThread.access$1300(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java)
at android.os.Handler.dispatchMessage(Handler.java)
at android.os.Looper.loop(Looper.java)
at android.app.ActivityThread.main(ActivityThread.java)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.os.DeadObjectException
at android.os.BinderProxy.transact(Native Method)
at android.content.pm.IPackageManager$Stub$Proxy.getPackageInfo(IPackageManager.java)
... 14 more
[ 01-06 11:33:56.268 8241:0x2031 E/AndroidRuntime ]
Error reporting crash
android.os.DeadObjectException
at android.os.BinderProxy.transact(Native Method)
at android.app.ActivityManagerProxy.handleApplicationCrash(ActivityManagerNative.java)
at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
at dalvik.system.NativeStart.main(Native Method)
[ 01-06 11:33:56.278 8224:0x2020 E/AbstractCompatWrapper ]
Invalid input to AbstructCompatWrapper
[ 01-06 11:33:56.278 8224:0x2020 E/CompatUtils ]
Exception in invoke: NullPointerException
[ 01-06 11:33:56.288 8254:0x203e E/AndroidRuntime ]
FATAL EXCEPTION: main
java.lang.AssertionError: android.os.DeadObjectException
at android.app.LoadedApk.initializeJavaContextClassLoader(LoadedApk.java)
at android.app.LoadedApk.getClassLoader(LoadedApk.java)
at android.app.LoadedApk.makeApplication(LoadedApk.java)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java)
at android.app.ActivityThread.access$1300(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java)
at android.os.Handler.dispatchMessage(Handler.java)
at android.os.Looper.loop(Looper.java)
at android.app.ActivityThread.main(ActivityThread.java)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.os.DeadObjectException
at android.os.BinderProxy.transact(Native Method)
at android.content.pm.IPackageManager$Stub$Proxy.getPackageInfo(IPackageManager.java)
... 14 more
[ 01-06 11:33:56.288 8254:0x203e E/AndroidRuntime ]
Error reporting crash
android.os.DeadObjectException
at android.os.BinderProxy.transact(Native Method)
at android.app.ActivityManagerProxy.handleApplicationCrash(ActivityManagerNative.java)
at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
at dalvik.system.NativeStart.main(Native Method)
[ 01-06 11:33:56.328 8224:0x2020 E/AndroidRuntime ]
FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to create service com.android.inputmethod.latin.LatinIME: java.lang.NullPointerException
at android.app.ActivityThread.handleCreateService(ActivityThread.java)
at android.app.ActivityThread.access$1600(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java)
at android.os.Handler.dispatchMessage(Handler.java)
at android.os.Looper.loop(Looper.java)
at android.app.ActivityThread.main(ActivityThread.java)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NullPointerException
at android.view.accessibility.AccessibilityManager.<init>(AccessibilityManager.java)
at android.view.accessibility.AccessibilityManager.getInstance(AccessibilityManager.java)
at android.app.ContextImpl$2.getService(ContextImpl.java)
at android.app.ContextImpl.getSystemService(ContextImpl.java)
at android.content.ContextWrapper.getSystemService(ContextWrapper.java)
at com.android.inputmethod.accessibility.AccessibilityUtils.initInternal(AccessibilityUtils.java:79)
at com.android.inputmethod.accessibility.AccessibilityUtils.init(AccessibilityUtils.java:63)
at com.android.inputmethod.latin.LatinIME.onCreate(LatinIME.java:495)
... 11 more
[ 01-06 11:33:56.328 8224:0x2020 E/AndroidRuntime ]
Error reporting crash
android.os.DeadObjectException
at android.os.BinderProxy.transact(Native Method)
at android.app.ActivityManagerProxy.handleApplicationCrash(ActivityManagerNative.java)
at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
at dalvik.system.NativeStart.main(Native Method)
[ 01-06 11:33:56.328 1608:0x648 E/installd ]
eof
[ 01-06 11:33:56.328 1608:0x648 E/installd ]
failed to read size
[ 01-06 11:33:56.418 8158:0x1fde E/InputQueue-JNI ]
channel '2b8e8580 RecentsPanel (client)' ~ Publisher closed input channel or an error occurred. events=0x8
[ 01-06 11:33:56.418 8158:0x1fde E/AudioManager ]
Dead object in getRingerMode
android.os.DeadObjectException
at android.os.BinderProxy.transact(Native Method)
at android.media.IAudioService$Stub$Proxy.getRingerMode(IAudioService.java)
at android.media.AudioManager.getRingerMode(AudioManager.java)
at com.android.systemui.statusbar.phone.PhoneStatusBarPolicy.updateVolume(PhoneStatusBarPolicy.java:245)
at com.android.systemui.statusbar.phone.PhoneStatusBarPolicy.access$300(PhoneStatusBarPolicy.java:53)
at com.android.systemui.statusbar.phone.PhoneStatusBarPolicy$1.onReceive(PhoneStatusBarPolicy.java:133)
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java)
at android.os.Handler.handleCallback(Handler.java)
at android.os.Handler.dispatchMessage(Handler.java)
at android.os.Looper.loop(Looper.java)
at android.app.ActivityThread.main(ActivityThread.java)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
at dalvik.system.NativeStart.main(Native Method)
[ 01-06 11:33:56.428 8158:0x1fde E/AudioManager ]
Dead object in shouldVibrate
android.os.DeadObjectException
at android.os.BinderProxy.transact(Native Method)
at android.media.IAudioService$Stub$Proxy.shouldVibrate(IAudioService.java)
at android.media.AudioManager.shouldVibrate(AudioManager.java)
at com.android.systemui.statusbar.phone.PhoneStatusBarPolicy.updateVolume(PhoneStatusBarPolicy.java:251)
at com.android.systemui.statusbar.phone.PhoneStatusBarPolicy.access$300(PhoneStatusBarPolicy.java:53)
at com.android.systemui.statusbar.phone.PhoneStatusBarPolicy$1.onReceive(PhoneStatusBarPolicy.java:133)
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java)
at android.os.Handler.handleCallback(Handler.java)
at android.os.Handler.dispatchMessage(Handler.java)
at android.os.Looper.loop(Looper.java)
at android.app.ActivityThread.main(ActivityThread.java)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
at dalvik.system.NativeStart.main(Native Method)
[ 01-06 11:33:56.438 8158:0x1fde E/AndroidRuntime ]
FATAL EXCEPTION: main
java.lang.RuntimeException: Package manager has died
at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java)
at android.app.ApplicationPackageManager.getResourcesForApplication(ApplicationPackageManager.java)
at com.android.systemui.statusbar.StatusBarIconView.getIcon(StatusBarIconView.java:185)
at com.android.systemui.statusbar.StatusBarIconView.getIcon(StatusBarIconView.java:169)
at com.android.systemui.statusbar.StatusBarIconView.set(StatusBarIconView.java:138)
at com.android.systemui.statusbar.StatusBarIconView.set(StatusBarIconView.java:122)
at com.android.systemui.statusbar.phone.PhoneStatusBar.addIcon(PhoneStatusBar.java:734)
at com.android.systemui.statusbar.CommandQueue$H.handleMessage(CommandQueue.java:212)
at android.os.Handler.dispatchMessage(Handler.java)
at android.os.Looper.loop(Looper.java)
at android.app.ActivityThread.main(ActivityThread.java)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.os.DeadObjectException
at android.os.BinderProxy.transact(Native Method)
at android.content.pm.IPackageManager$Stub$Proxy.getApplicationInfo(IPackageManager.java)
... 16 more
[ 01-06 11:33:56.438 8158:0x1fde E/AndroidRuntime ]
Error reporting crash
android.os.DeadObjectException
at android.os.BinderProxy.transact(Native Method)
at android.app.ActivityManagerProxy.handleApplicationCrash(ActivityManagerNative.java)
at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
at dalvik.system.NativeStart.main(Native Method)

[Q] SystemOrSignature permission denied

I am trying to build a very small broadcast receiver only application, that will be in /system/app so it will have access for the permissions i need, and i can broadcast a few intents from my main application (not in /system) to perform a few activities.
I had never programmed using system permissions, so it took me a while to understand why even copying the apk in /system i was still getting permission denied; So i found out that i have to manually run "pm grant PACKAGE PERMISSION" to the manually copied apk and it worked. At least for WRITE_SECURE_SETTINGS permission. The problem is i am trying now to use the android.permission.CHANGE_COMPONENT_ENABLED_STATE, which should also be System|Signature , but i can not make it work.
If i try pm grant PACKAGE android.permission.CHANGE_COMPONENT_ENABLED_STATE, i get:
Operation not allowed: java.lang.SecurityException: Permission android.permission.CHANGE_COMPONENT_ENABLED_STATE is not a changeable permission type
And the error when i try to disable a component from another app is:
W/System.err( 4631): java.lang.SecurityException: Permission Denial: attempt to change component state from pid=4631, uid=10069, package uid=10038
W/System.err( 4631): at android.os.Parcel.readException(Parcel.java:1465)
W/System.err( 4631): at android.os.Parcel.readException(Parcel.java:1419)
W/System.err( 4631): at android.content.pm.IPackageManager$Stub$Proxy.setComponentEnabledSetting(IPackageManager.java:2943)
W/System.err( 4631): at android.app.ApplicationPackageManager.setComponentEnabledSetting(ApplicationPackageManager.java:1296)
W/System.err( 4631): at android.app.ActivityThread.handleReceiver(ActivityThread.java:2439)
W/System.err( 4631): at android.app.ActivityThread.access$1700(ActivityThread.java:145)
W/System.err( 4631): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1282)
W/System.err( 4631): at android.os.Handler.dispatchMessage(Handler.java:102)
W/System.err( 4631): at android.os.Looper.loop(Looper.java:136)
W/System.err( 4631): at android.app.ActivityThread.main(ActivityThread.java:5081)
W/System.err( 4631): at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err( 4631): at java.lang.reflect.Method.invoke(Method.java:515)
W/System.err( 4631): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
W/System.err( 4631): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)
W/System.err( 4631): at dalvik.system.NativeStart.main(Native Method)
Any ideas how can i get this permission ?
My apk is already in /system/app
Thanks !
If you're using Android 4.4 it should be in /system/priv-app

[Q] Google Play services and Android modifications

I have problems with Google Play services after I made couple of small
logging source code changes to Android frameworks files. I have tried
with various GApps packages from BasketBuild.
I have rebuilt CyanogenMod12 20150318 build for hammerhead (Nexus5)
and installed also Google Apps. Everything works fine with unmodified
code. Next I tried to study and debug control flow of Android activities and
process creation by adding log output messages to a couple of class
methods in frameworks/base and recompiled again. Basically everything
still works fine but there is a nasty side effect as Google Play
services start to fail. There is a popup message:
"Unfortunately, Google Play services has stopped"
Obviously my changes are causing these problems but I do not
understand what is happening and why only Google Play services
seem to fail. Seems like modifications to final Java classes like
ActivityRecord, ActivityManagerService, ActivityStackSupervisor are
triggering these problems. I did not add or modify class function
APIs or data members. I just added couple of log prints and tests for
intents. These problems are already present during system setup.
I have to delay network configuration as otherwise this Google Play
error is causing the whole configuration phase to stuck.
Attached logcat log contains many suspicous messages:
1. Two jar files do not exist or contain no resources
The jar files actually are in /system/framework directory but for some
reason the files cannot be used.
2. Insert disabled by gate 'gms:security:enable_conscrypt_in_gms_application'
Google search found couple of postings with this message and there
were hints that this could be a signing key problem. However, I did
not detect any Cyanogenmod instructions and my initial unmodified
build worked with GApps and Google services.
3. Parcel errors when unmarshalling
Class com.google.android.gms.auth.firstparty.shared.AppDescription
not found. This is causing android.os.BadParcelableException
exception.
Any ideas what could cause these problems. Here is extract from log output:
I/ActivityManager( 772): Start proc com.google.android.gms.ui for activity com.google.android.gms/.games.ui.signin.SignInActivity: pid=7978 uid=10022 gids={50022, 9997, 2001, 3003, 1007, 3006, 3007, 3002, 3001, 1028, 1015, 1005} abi=armeabi-v7a
E/Zygote ( 7978): ForkAndSpecializeCommon - name=com.google.android.gms.ui info=release
I/Timeline( 7945): Timeline: Activity_idle id: [email protected] time:7502907
W/ResourcesManager( 7978): Asset path '/system/framework/com.android.media.remotedisplay.jar' does not exist or contains no resources.
W/ResourcesManager( 7978): Asset path '/system/framework/com.android.location.provider.jar' does not exist or contains no resources.
I/MultiDex( 7978): VM with version 2.1.0 has multidex support
I/MultiDex( 7978): install
I/MultiDex( 7978): VM has multidex support, MultiDex support library is disabled.
I/ProviderInstaller( 7978): Insert disabled by gate 'gms:security:enable_conscrypt_in_gms_application'
D/GCM ( 2484): GcmService start Intent { act=com.google.android.gms.INITIALIZE flg=0x10 pkg=com.google.android.gms cmp=com.google.android.gms/.gcm.GcmService } com.google.android.gms.INITIALIZE
D/AuthorizationBluetoothService( 2484): Received GmsCore event: Intent { act=com.google.android.gms.INITIALIZE flg=0x10 pkg=com.google.android.gms cmp=com.google.android.gms/.auth.be.proximity.authorization.bt.AuthorizationBluetoothService$AutoStarter }.
D/c ( 2484): Getting all permits...
D/a ( 2484): Opening database...
D/LocationInitializer( 2680): Restart initialization of location
D/a ( 2484): Opening database auth.proximity.permit_store...
D/a ( 2484): Closing database...
D/OpenGLRenderer( 7978): Render dirty regions requested: true
D/Atlas ( 7978): Validating map...
I/Adreno-EGL( 7978): <qeglDrvAPI_eglInitialize:410>: QUALCOMM Build: 10/24/14, 167c270, I68fa98814b
I/OpenGLRenderer( 7978): Initialized EGL, version 1.4
D/OpenGLRenderer( 7978): Enabling debug mode 0
I/ActivityManager( 772): START u0 {act=com.google.android.gms.common.account.CHOOSE_ACCOUNT flg=0x20000000 pkg=com.google.android.gms cmp=com.google.android.gms/.common.account.AccountPickerActivity (has extras)} from uid 10022 on display 0
I/Timeline( 772): Timeline: Activity_windows_visible id: ActivityRecord{3cfb3e37 u0 com.google.android.gms/.games.ui.signin.SignInActivity t13} time:7503232
W/GLSActivity( 2484): [LegacyAuthenticator] The app AppDescription<com.google.android.gms, 10022> is invoking addAccount
W/GLSActivity( 2484): [LegacyAuthenticator] Returning intent launch AccountIntroActivity.
I/Timeline( 7978): Timeline: Activity_launch_request id:com.google.android.gms time:7503308
I/ActivityManager( 772): START u0 {flg=0x80000 cmp=com.google.android.gms/.auth.gsf.AccountIntroActivity (has extras)} from uid 10022 on display 0
I/GLSActivity( 7978): [AccountIntroActivity] Provisioning with name/email. Edu: false
I/GLSActivity( 7978): [AccountIntroActivity] Setup a Google account using GmsCore managed workflow.
I/Timeline( 7978): Timeline: Activity_launch_request id:com.google.android.gms time:7503474
E/Parcel ( 772): Class not found when unmarshalling: com.google.android.gms.auth.firstparty.shared.AppDescription
E/Parcel ( 772): java.lang.ClassNotFoundException: com.google.android.gms.auth.firstparty.shared.AppDescription
E/Parcel ( 772): at java.lang.Class.classForName(Native Method)
E/Parcel ( 772): at java.lang.Class.forName(Class.java:308)
E/Parcel ( 772): at java.lang.Class.forName(Class.java:272)
E/Parcel ( 772): at android.os.Parcel.readParcelableCreator(Parcel.java:2275)
E/Parcel ( 772): at android.os.Parcel.readParcelable(Parcel.java:2239)
E/Parcel ( 772): at android.os.Parcel.readValue(Parcel.java:2146)
E/Parcel ( 772): at android.os.Parcel.readArrayMapInternal(Parcel.java:2479)
E/Parcel ( 772): at android.os.BaseBundle.unparcel(BaseBundle.java:221)
E/Parcel ( 772): at android.os.BaseBundle.containsKey(BaseBundle.java:269)
E/Parcel ( 772): at com.android.server.am.ActivityStackSupervisor.startActivityLocked(ActivityStackSupervisor.java:1314)
E/Parcel ( 772): at com.android.server.am.ActivityStackSupervisor.startActivityMayWait(ActivityStackSupervisor.java:950)
E/Parcel ( 772): at com.android.server.am.ActivityManagerService.startActivityAsUser(ActivityManagerService.java:3654)
E/Parcel ( 772): at com.android.server.am.ActivityManagerService.startActivity(ActivityManagerService.java:3641)
E/Parcel ( 772): at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:141)
E/Parcel ( 772): at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2476)
E/Parcel ( 772): at android.os.Binder.execTransact(Binder.java:446)
E/Parcel ( 772): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.auth.firstparty.shared.AppDescription" on path: DexPathList[[directory "."],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
E/Parcel ( 772): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
E/Parcel ( 772): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
E/Parcel ( 772): at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
E/Parcel ( 772): ... 16 more
E/Parcel ( 772): Suppressed: java.lang.ClassNotFoundException: com.google.android.gms.auth.firstparty.shared.AppDescription
E/Parcel ( 772): at java.lang.Class.classForName(Native Method)
E/Parcel ( 772): at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
E/Parcel ( 772): at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
E/Parcel ( 772): at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
E/Parcel ( 772): ... 17 more
E/Parcel ( 772): Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
F/ActivityManager( 772): Activity Manager Crash
F/ActivityManager( 772): android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.google.android.gms.auth.firstparty.shared.AppDescription
F/ActivityManager( 772): at android.os.Parcel.readParcelableCreator(Parcel.java:2289)
F/ActivityManager( 772): at android.os.Parcel.readParcelable(Parcel.java:2239)
F/ActivityManager( 772): at android.os.Parcel.readValue(Parcel.java:2146)
F/ActivityManager( 772): at android.os.Parcel.readArrayMapInternal(Parcel.java:2479)
F/ActivityManager( 772): at android.os.BaseBundle.unparcel(BaseBundle.java:221)
F/ActivityManager( 772): at android.os.BaseBundle.containsKey(BaseBundle.java:269)
F/ActivityManager( 772): at com.android.server.am.ActivityStackSupervisor.startActivityLocked(ActivityStackSupervisor.java:1314)
F/ActivityManager( 772): at com.android.server.am.ActivityStackSupervisor.startActivityMayWait(ActivityStackSupervisor.java:950)
F/ActivityManager( 772): at com.android.server.am.ActivityManagerService.startActivityAsUser(ActivityManagerService.java:3654)
F/ActivityManager( 772): at com.android.server.am.ActivityManagerService.startActivity(ActivityManagerService.java:3641)
F/ActivityManager( 772): at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:141)
F/ActivityManager( 772): at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2476)
F/ActivityManager( 772): at android.os.Binder.execTransact(Binder.java:446)
D/AndroidRuntime( 7978): Shutting down VM
--------- beginning of crash
E/AndroidRuntime( 7978): FATAL EXCEPTION: main
E/AndroidRuntime( 7978): Process: com.google.android.gms.ui, PID: 7978
E/AndroidRuntime( 7978): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.gms/com.google.android.gms.auth.gsf.AccountIntroActivity}: android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.google.android.gms.auth.firstparty.shared.AppDescription
E/AndroidRuntime( 7978): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2329)
E/AndroidRuntime( 7978): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2391)
E/AndroidRuntime( 7978): at android.app.ActivityThread.access$900(ActivityThread.java:147)
E/AndroidRuntime( 7978): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1296)
E/AndroidRuntime( 7978): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 7978): at android.os.Looper.loop(Looper.java:135)
E/AndroidRuntime( 7978): at android.app.ActivityThread.main(ActivityThread.java:5256)
E/AndroidRuntime( 7978): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 7978): at java.lang.reflect.Method.invoke(Method.java:372)
E/AndroidRuntime( 7978): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:898)
E/AndroidRuntime( 7978): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:693)
E/AndroidRuntime( 7978): Caused by: android.os.BadParcelableException: ClassNotFoundException when unmarshalling: com.google.android.gms.auth.firstparty.shared.AppDescription
E/AndroidRuntime( 7978): at android.os.Parcel.readException(Parcel.java:1542)
E/AndroidRuntime( 7978): at android.os.Parcel.readException(Parcel.java:1493)
E/AndroidRuntime( 7978): at android.app.ActivityManagerProxy.startActivity(ActivityManagerNative.java:2414)
E/AndroidRuntime( 7978): at android.app.Instrumentation.execStartActivity(Instrumentation.java:1480)
E/AndroidRuntime( 7978): at android.app.Activity.startActivityForResult(Activity.java:3736)
E/AndroidRuntime( 7978): at android.app.Activity.startActivityForResult(Activity.java:3697)
E/AndroidRuntime( 7978): at android.support.v4.app.q.startActivityForResult(SourceFile:817)
E/AndroidRuntime( 7978): at com.google.android.gms.auth.gsf.b.startActivityForResult(SourceFile:660)
E/AndroidRuntime( 7978): at com.google.android.gms.auth.gsf.b.a(SourceFile:513)
E/AndroidRuntime( 7978): at com.google.android.gms.auth.gsf.AccountIntroActivity.i(SourceFile:358)
E/AndroidRuntime( 7978): at com.google.android.gms.auth.gsf.AccountIntroActivity.d(SourceFile:213)
E/AndroidRuntime( 7978): at com.google.android.gms.auth.gsf.AccountIntroActivity.onCreate(SourceFile:188)
E/AndroidRuntime( 7978): at android.app.Activity.performCreate(Activity.java:5933)
E/AndroidRuntime( 7978): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
E/AndroidRuntime( 7978): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2282)
E/AndroidRuntime( 7978): ... 10 more
W/ActivityManager( 772): Force finishing activity com.google.android.gms/.auth.gsf.AccountIntroActivity
W/ActivityManager( 772): Force finishing activity com.google.android.gms/.common.account.AccountPickerActivity
W/DropBoxManagerService( 772): Dropping: system_server_wtf (1497 > 0 bytes)
W/DropBoxManagerService( 772): Dropping: system_app_crash (2410 > 0 bytes)

[ASK] force close RadioFM

I want ask
How to fix RadioFM app system so i cant use it.
Need help;
This is error logcat:
Process: com.sonyericsson.fmradio
PID: 12543
Flags: 0xc8be45
Package: com.sonyericsson.fmradio v4 (4.0)
Build: Sony/D2305/D2305:5.1.1/18.6.A.0.182/1643041205:user/release-keys
UUID: 3a62dbcc-4685-403b-9b41-35ffe14d968d
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/sonyericsson/fmradio/service/FmService;
at com.sonyericsson.fmradio.ui.FmRadioFeedback.<init>(FmRadioFeedback.java:63)
at com.sonyericsson.fmradio.ui.FmRadioActivity.connectToFmService(FmRadioActivity.java:449)
at com.sonyericsson.fmradio.ui.FmRadioActivity.onStart(FmRadioActivity.java:250)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1236)
at android.app.Activity.performStart(Activity.java:6006)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2342)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2442)
at android.app.ActivityThread.access$800(ActivityThread.java:156)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1351)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:211)
at android.app.ActivityThread.main(ActivityThread.java:5373)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.sonyericsson.fmradio.service.FmService" on path: DexPathList[[zip file "/system/app/Radio3/Radio3.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
... 16 more
Suppressed: java.lang.NoClassDefFoundError: com.sonyericsson.fmradio.service.FmService
at dalvik.system.DexFile.defineClassNative(Native Method)
at dalvik.system.DexFile.defineClass(DexFile.java:226)
at dalvik.system.DexFile.loadClassBinaryName(DexFile.java:219)
at dalvik.system.DexPathList.findClass(DexPathList.java:321)
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:54)
... 18 more
Suppressed: java.lang.ClassNotFoundException: com.sonyericsson.fmradio.service.FmService
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 17 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
Thanks before

[Q] Installing AOSP Dialer in stock Nexus 5X ROM problems

After successfully compiling AOSP Marshmallow 6.0.1 I tried to install the Dialer in a stock Nexus 5X ROM of the same build number.
AOSP build: MHC19J android-6.0.1_r22 bullhead user-debug
Nexus Stock ROM build: MHC19J
I install it by pushing the Dialer and Contacts apk to /system/priv-app and assigning proper SELinux permissions
Code:
chcon u:object_r:system_file:s0
to every newly added file and folder.
After booting up, launching Dialer results in the following error:
Code:
W/System(5353): ClassLoader referenced unknown path: /system/priv-app/Dialer/lib/arm64
D/AndroidRuntime(5353): Shutting down VM
E/AndroidRuntime(5353): FATAL EXCEPTION: main
E/AndroidRuntime(5353): Process: com.android.dialer, PID: 5353
E/AndroidRuntime(5353): java.lang.RuntimeException: Unable to instantiate application com.android.dialer.DialerApplication: java.lang.ClassNotFoundException: Didn't find class "com.android.dialer.DialerApplication" on path: DexPathList[[zip file "/system/priv-app/Dialer/Dialer.apk"],nativeLibraryDirectories=[/system/priv-app/Dialer/lib/arm64, /vendor/lib64, /system/lib64]]
E/AndroidRuntime(5353): at android.app.LoadedApk.makeApplication(LoadedApk.java:578)
E/AndroidRuntime(5353): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4685)
E/AndroidRuntime(5353): at android.app.ActivityThread.-wrap1(ActivityThread.java)
E/AndroidRuntime(5353): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405)
E/AndroidRuntime(5353): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(5353): at android.os.Looper.loop(Looper.java:148)
E/AndroidRuntime(5353): at android.app.ActivityThread.main(ActivityThread.java:5422)
E/AndroidRuntime(5353): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(5353): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
E/AndroidRuntime(5353): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
E/AndroidRuntime(5353): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.dialer.DialerApplication" on path: DexPathList[[zip file "/system/priv-app/Dialer/Dialer.apk"],nativeLibraryDirectories=[/system/priv-app/Dialer/lib/arm64, /vendor/lib64, /system/lib64]]
E/AndroidRuntime(5353): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
E/AndroidRuntime(5353): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
E/AndroidRuntime(5353): at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
E/AndroidRuntime(5353): at android.app.Instrumentation.newApplication(Instrumentation.java:981)
E/AndroidRuntime(5353): at android.app.LoadedApk.makeApplication(LoadedApk.java:573)
E/AndroidRuntime(5353): ... 9 more
E/AndroidRuntime(5353): Suppressed: java.io.IOException: No original dex files found for dex location /system/priv-app/Dialer/Dialer.apk
E/AndroidRuntime(5353): at dalvik.system.DexFile.openDexFileNative(Native Method)
E/AndroidRuntime(5353): at dalvik.system.DexFile.openDexFile(DexFile.java:295)
E/AndroidRuntime(5353): at dalvik.system.DexFile.<init>(DexFile.java:80)
E/AndroidRuntime(5353): at dalvik.system.DexFile.<init>(DexFile.java:59)
E/AndroidRuntime(5353): at dalvik.system.DexPathList.loadDexFile(DexPathList.java:279)
E/AndroidRuntime(5353): at dalvik.system.DexPathList.makePathElements(DexPathList.java:248)
E/AndroidRuntime(5353): at dalvik.system.DexPathList.<init>(DexPathList.java:120)
E/AndroidRuntime(5353): at dalvik.system.BaseDexClassLoader.<init>(BaseDexClassLoader.java:48)
E/AndroidRuntime(5353): at dalvik.system.PathClassLoader.<init>(PathClassLoader.java:65)
E/AndroidRuntime(5353): at android.app.ApplicationLoaders.getClassLoader(ApplicationLoaders.java:58)
E/AndroidRuntime(5353): at android.app.LoadedApk.getClassLoader(LoadedApk.java:376)
E/AndroidRuntime(5353): at android.app.LoadedApk.makeApplication(LoadedApk.java:568)
E/AndroidRuntime(5353): ... 9 more
E/AndroidRuntime(5353): Suppressed: java.lang.ClassNotFoundException: com.android.dialer.DialerApplication
E/AndroidRuntime(5353): at java.lang.Class.classForName(Native Method)
E/AndroidRuntime(5353): at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
E/AndroidRuntime(5353): at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
E/AndroidRuntime(5353): at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
E/AndroidRuntime(5353): ... 12 more
E/AndroidRuntime(5353): Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
I have searched for this problem but I have only found solutions for when it is a normal Android Studio app, but nothing on AOSP.

Categories

Resources