Advanced Launcher Submenu FC Proble - G1 Q&A, Help & Troubleshooting

Earlier today I finally got the hang of creating submenus using the advanced launcher and i started to put most of the apps that i rarely use in a submenu and now, whenever i try to open up the folder i get force closes. i've tried deleting it, but after i press confirm to delete it, i get a force close. Does anyone know how i can delete this folder now? Since some important apps are in there.

Anartic said:
Earlier today I finally got the hang of creating submenus using the advanced launcher and i started to put most of the apps that i rarely use in a submenu and now, whenever i try to open up the folder i get force closes. i've tried deleting it, but after i press confirm to delete it, i get a force close. Does anyone know how i can delete this folder now? Since some important apps are in there.
Click to expand...
Click to collapse
im suspecting a database error but do a logcat to confirm

xidominicanoix said:
im suspecting a database error but do a logcat to confirm
Click to expand...
Click to collapse
09-30 22:30:14.252: ERROR/AndroidRuntime(6707): Uncaught handler: thread main exiting due to uncaught exception
09-30 22:30:14.322: ERROR/AndroidRuntime(6707): android.database.sqlite.SQLiteException: near "t": syntax error: , while compiling: SELECT _id, name, intent, submenu FROM submenus_entries WHERE submenu = 'Stuff I Don't Use'
09-30 22:30:14.322: ERROR/AndroidRuntime(6707): at android.database.sqlite.SQLiteProgram.native_compile(Native Method)
09-30 22:30:14.322: ERROR/AndroidRuntime(6707): at android.database.sqlite.SQLiteProgram.compile(SQLiteProgram.java:110)
09-30 22:30:14.322: ERROR/AndroidRuntime(6707): at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:59)
09-30 22:30:14.322: ERROR/AndroidRuntime(6707): at android.database.sqlite.SQLiteQuery.<init>(SQLiteQuery.java:49)
09-30 22:30:14.322: ERROR/AndroidRuntime(6707): at android.database.sqlite.SQLiteDirectCursorDriver.query(SQLiteDirectCursorDriver.java:49)
09-30 22:30:14.322: ERROR/AndroidRuntime(6707): at android.database.sqlite.SQLiteDatabase.rawQueryWithFactory(SQLiteDatabase.java:1118)
09-30 22:30:14.322: ERROR/AndroidRuntime(6707): at android.database.sqlite.SQLiteDatabase.queryWithFactory(SQLiteDatabase.java:1006)
09-30 22:30:14.322: ERROR/AndroidRuntime(6707): at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:964)
09-30 22:30:14.322: ERROR/AndroidRuntime(6707): at android.database.sqlite.SQLiteDatabase.query(SQLiteDatabase.java:1041)
09-30 22:30:14.322: ERROR/AndroidRuntime(6707): at com.android.launcher.SubMenuAdapter.generateAppsList(SubMenuAdapter.java:70)
09-30 22:30:14.322: ERROR/AndroidRuntime(6707): at com.android.launcher.SubMenu.onOpen(SubMenu.java:133)
09-30 22:30:14.322: ERROR/AndroidRuntime(6707): at com.android.launcher.LauncherModel.openSubMenu(LauncherModel.java:559)
09-30 22:30:14.322: ERROR/AndroidRuntime(6707): at com.android.launcher.AllAppsGridView.onItemClick(AllAppsGridView.java:101)
09-30 22:30:14.322: ERROR/AndroidRuntime(6707): at android.widget.AdapterView.performItemClick(AdapterView.java:284)
09-30 22:30:14.322: ERROR/AndroidRuntime(6707): at android.widget.AbsListView$PerformClick.run(AbsListView.java:1635)
09-30 22:30:14.322: ERROR/AndroidRuntime(6707): at android.os.Handler.handleCallback(Handler.java:587)
09-30 22:30:14.322: ERROR/AndroidRuntime(6707): at android.os.Handler.dispatchMessage(Handler.java:92)
09-30 22:30:14.322: ERROR/AndroidRuntime(6707): at android.os.Looper.loop(Looper.java:123)
09-30 22:30:14.322: ERROR/AndroidRuntime(6707): at android.app.ActivityThread.main(ActivityThread.java:4203)
09-30 22:30:14.322: ERROR/AndroidRuntime(6707): at java.lang.reflect.Method.invokeNative(Native Method)
09-30 22:30:14.322: ERROR/AndroidRuntime(6707): at java.lang.reflect.Method.invoke(Method.java:521)
09-30 22:30:14.322: ERROR/AndroidRuntime(6707): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
09-30 22:30:14.322: ERROR/AndroidRuntime(6707): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
09-30 22:30:14.322: ERROR/AndroidRuntime(6707): at dalvik.system.NativeStart.main(Native Method)

Related

Market Install FC

Not sure what started it, but the market will download an app and then force close while trying to install.
Code:
D/vending ( 2920): com.android.vending.AssetDownloader$DownloadManagerBroadcastReceiver.ha
ndleDownloadCompletedAction(): Got a download completed intent.
D/vending ( 2920): com.android.vending.api.LocalAssetDatabase.notifyListener(): 2730644506
555660122 / INSTALLING
W/dalvikvm( 2920): threadid=23: thread exiting with uncaught exception (group=0x4001e170)
E/AndroidRuntime( 2920): Uncaught handler: thread Thread-19 exiting due to uncaught except
ion
E/AndroidRuntime( 2920): java.lang.SecurityException: Neither user 10003 nor current proce
ss has android.permission.INSTALL_PACKAGES.
E/AndroidRuntime( 2920): at android.os.Parcel.readException(Parcel.java:1246)
E/AndroidRuntime( 2920): at android.os.Parcel.readException(Parcel.java:1234)
E/AndroidRuntime( 2920): at android.content.pm.IPackageManager$Stub$Proxy.installPa
ckage(IPackageManager.java:1738)
E/AndroidRuntime( 2920): at android.app.ApplicationContext$ApplicationPackageManage
r.installPackage(ApplicationContext.java:2341)
E/AndroidRuntime( 2920): at com.android.vending.AssetDownloader$DownloadManagerBroa
dcastReceiver.installFromUri(AssetDownloader.java:370)
E/AndroidRuntime( 2920): at com.android.vending.AssetDownloader$DownloadManagerBroa
dcastReceiver$1.run(AssetDownloader.java:243)
E/AndroidRuntime( 2920): at java.lang.Thread.run(Thread.java:1096)
I/Process ( 151): Sending signal. PID: 2920 SIG: 3
I/dalvikvm( 2920): threadid=7: reacting to signal 3
Something about permissions? I think fix_permissions would fix, but any other ideas?
Update: ran fix permissions with no changes, log is still the same. Reflashed cyan, nothing. Any ideas?
lukekirstein said:
Update: ran fix permissions with no changes, log is still the same. Reflashed cyan, nothing. Any ideas?
Click to expand...
Click to collapse
its from the new market pushed out by T-Mo.Unistall it via manage apps in settings.

Anyone having market crashes?

I updated to Froyo from CM.
Some market updates/installs are fine. Some cause this crash and the Android GUI restarts (the whole N1 doesn't reboot however).
D/VoldCmdListener( 54): asec list
I/PackageHelper( 652): Size of container 2 MB 689299 bytes
W/dalvikvm( 83): threadid=11: thread exiting with uncaught exception (group=0x4001d7f0)
E/AndroidRuntime( 83): *** FATAL EXCEPTION IN SYSTEM PROCESS: PackageManager
E/AndroidRuntime( 83): java.lang.SecurityException: Requires android.permission.ASEC_CREATE permission
E/AndroidRuntime( 83): at android.os.Parcel.readException(Parcel.java:1247)
E/AndroidRuntime( 83): at android.os.Parcel.readException(Parcel.java:1235)
E/AndroidRuntime( 83): at com.android.internal.app.IMediaContainerService$Stub$Proxy.copyResourceToContainer(IMediaContainerService.java:164)
E/AndroidRuntime( 83): at com.android.server.PackageManagerService$SdInstallArgs.copyApk(PackageManagerService.java:5341)
E/AndroidRuntime( 83): at com.android.server.PackageManagerService$InstallParams.handleStartCopy(PackageManagerService.java:4956)
E/AndroidRuntime( 83): at com.android.server.PackageManagerService$HandlerParams.startCopy(PackageManagerService.java:4815)
E/AndroidRuntime( 83): at com.android.server.PackageManagerService$PackageHandler.doHandleMessage(PackageManagerService.java:470)
E/AndroidRuntime( 83): at com.android.server.PackageManagerService$PackageHandler.handleMessage(PackageManagerService.java:415)
E/AndroidRuntime( 83): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 83): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 83): at android.os.HandlerThread.run(HandlerThread.java:60)
I believe I get the same issue and log messages when I try to move applications to my sdcard either from the applications menu or by adb command. :/
I have the same error when trying to install the latest version of Neocore.
I have the same problem. Is there a solution ? Would full data wipe help ?
Just did a full data wipe, and it helped for me.
Yeah, have to do full wipe to fix it.
Isn't there any other solutions ?
I don't really feel like wiping now.. :s

[Q] Market FCs after installing applications.

Hi All,
This is my first post here, sorry if this thread is duplicate but I was unable to find a similar thread.
I have a SGS9000 that I bought from Turkey, since Market and YouTube is not bundled here, I rooted the official 2.2 update with Z4 and pushed Vending.apk and YouTube.apk. The problem is my Market application is FCing after updating or installing applications. I install an application, installation finishes and I get an FC. Then, when I open the installed application for the first time, I get another Market FC. Then everything works fine.
I didn't wipe the system after installing 2.2 update but wiped cache from recovery. Since I pushed the latest versions of the applications, there are no updates to remove. Also clearing cache or stored information doesn't help either.
Is this a known bug or are there any solutions?
Thanks in advance.
P.S: I'm a seasoned Linux admin and programmer and I'm probably able to pull most of the tricks you can propose.
I am having the same problem with my galaxy s too. I followed the same procedure you described. I heard you are bound to get FCs this way. Apparently you should install google apps by applying update.zip via recovery. However, I have recovery 3e and it does not have the capability to use unsigned update.zip. It seems you need to have 2e and I don't have that so I could not do it. As you are a capable linux admin, maybe you can figure out how to revert back to 2e and can share with us.
Sent from my GT-I9000 using XDA App
Actually this is kinda absurd because the g-apps package doesn't have any files related to market besides the Vending and MarketUpdater apks and when you put the packages to the /system/app, they are installed by the phone anyway. I'll try to find some logs in the phone. Maybe then I can understand the real cause of the problem and dig deeper.
It might have something to do with some permissions etc. set by some sys files. I heard something about conflicts/permissions issue with market causing FCs. If you can check the sys logs and figure out th rd problem, that would be great.
Also I read somewhere in these forums who had the same issue solved it via update.zip way.
Sent from my GT-I9000 using XDA App
I had time to debug the problem and I isolated the problem. I have both good news and bad news.
The good news is, the problem looks like a simple permission problem. adb logcat spilled all the guts of the problem and it looks like it:
Code:
E/DatabaseUtils(25977): Writing exception to parcel
E/DatabaseUtils(25977): java.lang.SecurityException: Permission Denial: writing com.google.android.gsf.settings.GoogleSettingsProvider uri content://com.google.settings/partner from pid=8129, uid=10008 requires com.google.android.providers.settings.permission.WRITE_GSETTINGS
E/DatabaseUtils(25977): at android.content.ContentProvider$Transport.enforceWritePermission(ContentProvider.java:337)
E/DatabaseUtils(25977): at android.content.ContentProvider$Transport.insert(ContentProvider.java:173)
E/DatabaseUtils(25977): at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:146)
E/DatabaseUtils(25977): at android.os.Binder.execTransact(Binder.java:288)
E/DatabaseUtils(25977): at dalvik.system.NativeStart.run(Native Method)
W/dalvikvm( 8129): threadid=11: thread exiting with uncaught exception (group=0x4001d7d0)
E/AndroidRuntime( 8129): FATAL EXCEPTION: UpdateCheckinDatabaseService
E/AndroidRuntime( 8129): java.lang.SecurityException: Permission Denial: writing com.google.android.gsf.settings.GoogleSettingsProvider uri content://com.google.settings/partner from pid=8129, uid=10008 requires com.google.android.providers.settings.permission.WRITE_GSETTINGS
E/AndroidRuntime( 8129): at android.os.Parcel.readException(Parcel.java:1260)
E/AndroidRuntime( 8129): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:160)
E/AndroidRuntime( 8129): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:114)
E/AndroidRuntime( 8129): at android.content.ContentProviderProxy.insert(ContentProviderNative.java:408)
E/AndroidRuntime( 8129): at android.content.ContentResolver.insert(ContentResolver.java:587)
E/AndroidRuntime( 8129): at com.google.android.gsf.GoogleSettingsContract$NameValueTable.putString(GoogleSettingsContract.java:55)
E/AndroidRuntime( 8129): at com.google.android.gsf.GoogleSettingsContract$Partner.putString(GoogleSettingsContract.java:126)
E/AndroidRuntime( 8129): at com.android.vending.UpdateCheckinService.updateCheckinDatabase(UpdateCheckinService.java:140)
E/AndroidRuntime( 8129): at com.android.vending.UpdateCheckinService.access$000(UpdateCheckinService.java:34)
E/AndroidRuntime( 8129): at com.android.vending.UpdateCheckinService$ServiceHandler.handleMessage(UpdateCheckinService.java:85)
E/AndroidRuntime( 8129): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 8129): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 8129): at android.os.HandlerThread.run(HandlerThread.java:60)
I/PowerManagerService( 2475): Light Animator Finished curIntValue=32
W/ActivityManager( 2475): Force finishing activity com.android.vending/.SearchAssetListActivity
I/ ( 2475): dumpmesg > /data/log/dumpstate_app_error.log
The bad news is, I'm not familiar to the internal workings of the android yet and I was unable to modify the permissions. I tried /system/etc/permissions and added some xml files that contained proper syntax but that was unable to solve the problem.
I'll be glad if someone more experienced can give me some hints because I want to solve this annoying problem.
Cheers and thanks in advance to all.
[SOLVED] Market FCs after installing applications.
Nevermind, just use the new market app, updating solves all the problems.
I copied APK to my sdcard, became root from adb shell and moved the APK to /system/app, then ran "pm install -r Vending.apk" and now everything is silky smooth.
Hey man,
I tried to do what you've described but when I tried to install the vending.apk
I got the following error:
Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]
Can you describe the procedure step by step for a noob please ?
thearif
Ok I found another solution that works. Simply install Sgstools from market (this will be your last FC) and update market from there. Not only will you have the latest market but you will get rid of FCs as well.
Note that you need to have root (i had temporary Z4root). That is it.
Sent from my GT-I9000 using XDA App
thearif said:
Ok I found another solution that works. Simply install Sgstools from market (this will be your last FC) and update market from there. Not only will you have the latest market but you will get rid of FCs as well.
Click to expand...
Click to collapse
This worked well until I rebooted. After the reboot FCs were back. Logcat is identical to yours:
Code:
I/ActivityThread( 1151): Publishing provider com.android.vending.SuggestionsProvider: com.android.vending.SuggestionsProvider
D/vending ( 1151): [1] VendingApplication.onCreate(): Resetting ServiceLocator from app
D/GoogleLoginService( 409): onBind: Intent { act=android.accounts.AccountAuthenticator cmp=com.google.android.gsf/.loginservice.GoogleLoginService }
I/ActivityManager( 259): Displayed activity com.android.vending/.AssetBrowserActivity: 906 ms (total 906 ms)
D/ResourceType( 1151): calling getConfigurations
D/ResourceType( 1151): called getConfigurations size=230
I/dalvikvm( 409): Jit: resizing JitTable from 4096 to 8192
D/dalvikvm( 1151): GC_FOR_MALLOC freed 6455 objects / 553792 bytes in 53ms
E/DatabaseUtils( 409): Writing exception to parcel
E/DatabaseUtils( 409): java.lang.SecurityException: Permission Denial: writing com.google.android.gsf.settings.GoogleSettingsProvider uri content://com.google.settings/partner from pid=1151, uid=10025 requires com.google.android.providers.settings.permis
sion.WRITE_GSETTINGS
E/DatabaseUtils( 409): at android.content.ContentProvider$Transport.enforceWritePermission(ContentProvider.java:348)
E/DatabaseUtils( 409): at android.content.ContentProvider$Transport.insert(ContentProvider.java:196)
E/DatabaseUtils( 409): at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:146)
E/DatabaseUtils( 409): at android.os.Binder.execTransact(Binder.java:288)
E/DatabaseUtils( 409): at dalvik.system.NativeStart.run(Native Method)
W/dalvikvm( 1151): threadid=11: thread exiting with uncaught exception (group=0x4001d7e8)
E/AndroidRuntime( 1151): FATAL EXCEPTION: Thread-12
E/AndroidRuntime( 1151): java.lang.SecurityException: Permission Denial: writing com.google.android.gsf.settings.GoogleSettingsProvider uri content://com.google.settings/partner from pid=1151, uid=10025 requires com.google.android.providers.settings.permission.WRITE_GSETTINGS
E/AndroidRuntime( 1151): at android.os.Parcel.readException(Parcel.java:1260)
E/AndroidRuntime( 1151): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:160)
E/AndroidRuntime( 1151): at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:114)
E/AndroidRuntime( 1151): at android.content.ContentProviderProxy.insert(ContentProviderNative.java:408)
E/AndroidRuntime( 1151): at android.content.ContentResolver.insert(ContentResolver.java:592)
E/AndroidRuntime( 1151): at com.google.android.gsf.GoogleSettingsContract$NameValueTable.putString(GoogleSettingsContract.java:55)
E/AndroidRuntime( 1151): at com.google.android.gsf.GoogleSettingsContract$Partner.putString(GoogleSettingsContract.java:126)
E/AndroidRuntime( 1151): at com.android.vending.compat.MarketCheckinHelper.updateCheckinDatabase(MarketCheckinHelper.java:12)
E/AndroidRuntime( 1151): at com.android.vending.CheckinUpdater.sendContentSyncViaCheckin(CheckinUpdater.java:219)
E/AndroidRuntime( 1151): at com.android.vending.CheckinUpdater.performCheckin(CheckinUpdater.java:176)
E/AndroidRuntime( 1151): at com.android.vending.CheckinUpdater.access$000(CheckinUpdater.java:38)
E/AndroidRuntime( 1151): at com.android.vending.CheckinUpdater$1.run(CheckinUpdater.java:109)
E/AndroidRuntime( 1151): at com.android.vending.util.WorkService$1.run(WorkService.java:37)
W/ActivityManager( 259): Force finishing activity com.android.vending/.AssetBrowserActivity
W/ResourceType( 259): Skipping entry 0x7f040006 in package table 0 because it is not complex!
W/ResourceType( 259): Skipping entry 0x7f040005 in package table 0 because it is not complex!
I/Process ( 1151): Sending signal. PID: 1151 SIG: 9
I dont know what is causing your problem to come back after reboot. The very first thing that I checked was to is to see if the problem would pop back up after a reboot but it did not.
So you were on a rooted phone when you did this and gave root access to the sgstools app. If this is the case, maybe you can try clearing your cache.
thearif
Sent from my GT-I9000 using XDA App

Bionic Webtop2SD app Force Closes on launch

Running stock .902, deodexed, and debloated with titanium backup
Logcat output:
Code:
02-19 04:43:06.694: D/ActivityRenderTarget(811): onPause
02-19 04:43:06.773: I/ActivityManager(506): Start proc net.toreishi.webtop2sd for activity net.toreishi.webtop2sd/.webtop2sd: pid=3170 uid=10231 gids={}
02-19 04:43:06.921: E/su(3180): sudb - Opening database
02-19 04:43:06.929: E/su(3180): sudb - Database opened
02-19 04:43:06.937: E/su(3180): sudb - Database closed
02-19 04:43:06.960: D/su(3180): 10231 net.toreishi.webtop2sd executing 0 /system/bin/sh using shell /system/bin/sh : sh
02-19 04:43:06.999: D/AndroidRuntime(3170): Shutting down VM
02-19 04:43:06.999: W/dalvikvm(3170): threadid=1: thread exiting with uncaught exception (group=0x4001e560)
02-19 04:43:07.007: E/AndroidRuntime(3170): FATAL EXCEPTION: main
02-19 04:43:07.007: E/AndroidRuntime(3170): java.lang.RuntimeException: Unable to create application net.toreishi.webtop2sd.webtop2sdApplication: net.toreishi.a.e: Unable to instantiate root execution shell
02-19 04:43:07.007: E/AndroidRuntime(3170): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3413)
02-19 04:43:07.007: E/AndroidRuntime(3170): at android.app.ActivityThread.access$2200(ActivityThread.java:124)
02-19 04:43:07.007: E/AndroidRuntime(3170): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1012)
02-19 04:43:07.007: E/AndroidRuntime(3170): at android.os.Handler.dispatchMessage(Handler.java:99)
02-19 04:43:07.007: E/AndroidRuntime(3170): at android.os.Looper.loop(Looper.java:130)
02-19 04:43:07.007: E/AndroidRuntime(3170): at android.app.ActivityThread.main(ActivityThread.java:3821)
02-19 04:43:07.007: E/AndroidRuntime(3170): at java.lang.reflect.Method.invokeNative(Native Method)
02-19 04:43:07.007: E/AndroidRuntime(3170): at java.lang.reflect.Method.invoke(Method.java:507)
02-19 04:43:07.007: E/AndroidRuntime(3170): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
02-19 04:43:07.007: E/AndroidRuntime(3170): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
02-19 04:43:07.007: E/AndroidRuntime(3170): at dalvik.system.NativeStart.main(Native Method)
02-19 04:43:07.007: E/AndroidRuntime(3170): Caused by: net.toreishi.a.e: Unable to instantiate root execution shell
02-19 04:43:07.007: E/AndroidRuntime(3170): at net.toreishi.a.f.b(Unknown Source)
02-19 04:43:07.007: E/AndroidRuntime(3170): at net.toreishi.webtop2sd.webtop2sdApplication.onCreate(Unknown Source)
02-19 04:43:07.007: E/AndroidRuntime(3170): at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:969)
02-19 04:43:07.007: E/AndroidRuntime(3170): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3410)
02-19 04:43:07.007: E/AndroidRuntime(3170): ... 10 more
02-19 04:43:07.007: W/ActivityManager(506): Force finishing activity net.toreishi.webtop2sd/.webtop2sd
02-19 04:43:07.007: W/ActivityManager(506): Force finishing activity com.motorola.blur.home/com.motorola.blur.apps.AppsActivity
02-19 04:43:07.030: W/ApplicationContext(506): Unable to create files directory
02-19 04:43:07.507: W/ActivityManager(506): Activity pause timeout for HistoryRecord{40bff760 net.toreishi.webtop2sd/.webtop2sd}
02-19 04:43:07.538: D/TaskWidgetListViewAdapter(506): writeToParcel is called
02-19 04:43:07.546: D/RemoteViews(811): restored the widget's adapter
02-19 04:43:07.546: D/TaskWidgetListViewAdapter(811): TaskWidgetListViewAdapter init with parcel
02-19 04:43:07.546: D/RemoteViews(811): restored the widget's adapter
UPDATE: I reflashed my phone to .893 and rooted it. The app launched now and its creating the webtop now. Will try to update to .902 when its done.

Disable Xposed (or its attachment) for certain apps

Hi all,
I have been using Xposed (v58/54) on my Android 4.4.4 device and I'm really satisfied with it.
I have one question that can make me even more happier.
My cable provider ships with an app that allows you to watch live tv on your phone, but Xposed seems to interfere with it, or make it trigger some kind of protection.
The app tries to read some class and because Xposed is installed, it's stumbling upon the XposedBridge and it crashes. I think the logcat output will help you understand:
Code:
05-04 11:03:36.104 W/System.err(10411): java.lang.ClassNotFoundException: de.robv.android.xposed.XposedBridge
05-04 11:03:36.104 W/System.err(10411): at java.lang.Class.classForName(Native Method)
05-04 11:03:36.104 W/System.err(10411): at java.lang.Class.forName(Class.java:251)
05-04 11:03:36.104 W/System.err(10411): at java.lang.Class.forName(Class.java:216)
05-04 11:03:36.104 W/System.err(10411): at com.ir.app.common.IOUtils.getBytesFromObject(SourceFile:53)
05-04 11:03:36.104 W/System.err(10411): at com.ir.app.CryptoManager.getClassBytes(SourceFile:32)
05-04 11:03:36.104 W/System.err(10411): at com.irdeto.media.d.a(Native Method)
05-04 11:03:36.104 W/System.err(10411): at com.irdeto.media.d.a(Unknown Source)
05-04 11:03:36.104 W/System.err(10411): at com.irdeto.media.ActiveCloakMediaPlayer.open(Unknown Source)
05-04 11:03:36.104 W/System.err(10411): at com.irdeto.media.ActiveCloakMediaPlayer.open(Unknown Source)
05-04 11:03:36.104 W/System.err(10411): at com.irdeto.media.ActiveCloakMediaPlayer.open(Unknown Source)
05-04 11:03:36.104 W/System.err(10411): at com.irdeto.activecloak.MediaPlayer.open(SourceFile:96)
05-04 11:03:36.104 W/System.err(10411): at com.irdeto.activecloak.IrdetoPlayer.a(SourceFile:467)
05-04 11:03:36.104 W/System.err(10411): at com.irdeto.activecloak.IrdetoPlayer.initPlayback(SourceFile:193)
05-04 11:03:36.104 W/System.err(10411): at com.lgi.orionandroid.ui.player.playerpresenter.OrionPlayerPresenter.startPlayback(SourceFile:115)
05-04 11:03:36.104 W/System.err(10411): at com.lgi.orionandroid.ui.player.playerpresenter.OrionPlayerPresenter.initPlayback(SourceFile:101)
05-04 11:03:36.104 W/System.err(10411): at cii.onSuccess(SourceFile:95)
05-04 11:03:36.104 W/System.err(10411): at cho.run(SourceFile:135)
05-04 11:03:36.104 W/System.err(10411): at android.os.Handler.handleCallback(Handler.java:733)
05-04 11:03:36.104 W/System.err(10411): at android.os.Handler.dispatchMessage(Handler.java:95)
05-04 11:03:36.104 W/System.err(10411): at android.os.Looper.loop(Looper.java:136)
05-04 11:03:36.104 W/System.err(10411): at android.app.ActivityThread.main(ActivityThread.java:5001)
05-04 11:03:36.104 W/System.err(10411): at java.lang.reflect.Method.invokeNative(Native Method)
05-04 11:03:36.104 W/System.err(10411): at java.lang.reflect.Method.invoke(Method.java:515)
05-04 11:03:36.104 W/System.err(10411): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
05-04 11:03:36.104 W/System.err(10411): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
05-04 11:03:36.104 W/System.err(10411): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
05-04 11:03:36.104 W/System.err(10411): at dalvik.system.NativeStart.main(Native Method)
05-04 11:03:36.104 W/System.err(10411): Caused by: java.lang.NoClassDefFoundError: de/robv/android/xposed/XposedBridge
05-04 11:03:36.104 W/System.err(10411): ... 27 more
05-04 11:03:36.114 W/System.err(10411): Caused by: java.lang.ClassNotFoundException: Didn't find class "de.robv.android.xposed.XposedBridge" on path: DexPathList[[zip file "/data/app/com.lgi.orionandroid-2.apk"],nativeLibraryDirectories=[/data/app-lib/com.lgi.orionandroid-2, /vendor/lib, /system/lib]]
05-04 11:03:36.114 W/System.err(10411): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
05-04 11:03:36.114 W/System.err(10411): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
05-04 11:03:36.114 W/System.err(10411): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
05-04 11:03:36.114 W/System.err(10411): ... 27 more
If I disable Xposed, the app works again. But it's not very convenient to disable Xposed and reboot only if I watch some tv.
So my question is: Is it possible to disable Xposed, or its attachment, for certain apps or processes?
I understand if it's too low level to selectively enable/disable the framework; then I'll just have to live with it.
I tried decompiling the app, but dex2jar and/or JD can't handle it. Perhaps the culprit is even in a native library.
Thanks in advance!
I second this question as I've been trying to get this app working on my rooted device for a while.
While old versions of the app wouldn't even start at all because of them checking for root ("which su" command) on startup, I suspect the issue now lies with detection of Xposed module(s). See the line from dev_freak's logcat:
Code:
05-30 16:00:12.267 8899 8899 W System.err: java.lang.ClassNotFoundException: de.robv.android.xposed.XposedBridge
I see that error in my log as well (the app starts and works fine, until I start a stream to watch, and I get a message "Sorry, the video cannot be played at this time. (4101)").
So, I naturally tried the IrdetoFix Xposed module that supposedly could counter the issue. But while the XposedBridge.jar error indeed disappears, the app crashes on startup:
Code:
06-15 13:51:14.727 I/ActivityManager( 1251): Start proc 9764:com.lgi.orionandroid/u0a288 for activity com.lgi.orionandroid/.ui.LaunchActivity
06-15 13:51:14.840 W/ResourceType( 1251): Found multiple library tables, ignoring...
06-15 13:51:14.864 W/ResourceType( 9764): Found multiple library tables, ignoring...
06-15 13:51:14.873 D/IrdetoFix( 9764): Set dexPath to /data/data/de.robv.android.xposed.installer/bin/XposedBridge.jar:/data/app/com.lgi.orionandroid-1/base.apk
06-15 13:51:14.936 W/XPrivacy( 9764): Hooking package=com.lgi.orionandroid
06-15 13:51:14.984 W/ResourceType( 9764): Found multiple library tables, ignoring...
06-15 13:51:15.076 D/AndroidRuntime( 9764): Shutting down VM
06-15 13:51:15.078 E/AndroidRuntime( 9764): FATAL EXCEPTION: main
06-15 13:51:15.078 E/AndroidRuntime( 9764): Process: com.lgi.orionandroid, PID: 9764
06-15 13:51:15.078 E/AndroidRuntime( 9764): java.lang.UnsatisfiedLinkError: XPrivacy
06-15 13:51:15.078 E/AndroidRuntime( 9764): at biz.bokhorst.xprivacy.XRuntime.a(SourceFile:81)
06-15 13:51:15.078 E/AndroidRuntime( 9764): at biz.bokhorst.xprivacy.XPrivacy$XMethodHook.beforeHookedMethod(SourceFile:628)
06-15 13:51:15.078 E/AndroidRuntime( 9764): at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:693)
06-15 13:51:15.078 E/AndroidRuntime( 9764): at java.lang.Runtime.loadLibrary(<Xposed>)
06-15 13:51:15.078 E/AndroidRuntime( 9764): at java.lang.System.loadLibrary(System.java:988)
06-15 13:51:15.078 E/AndroidRuntime( 9764): at com.crashlytics.android.ndk.JniNativeApi.<clinit>(SourceFile:13)
06-15 13:51:15.078 E/AndroidRuntime( 9764): at com.crashlytics.android.ndk.CrashlyticsNdk.<init>(SourceFile:33)
06-15 13:51:15.078 E/AndroidRuntime( 9764): at com.lgi.orionandroid.CrashSender.init(SourceFile:20)
06-15 13:51:15.078 E/AndroidRuntime( 9764): at com.lgi.orionandroid.CustomApplication.onCreate(SourceFile:71)
06-15 13:51:15.078 E/AndroidRuntime( 9764): at com.lgi.orionandroid.CustomApplication.getSystemService(SourceFile:40)
06-15 13:51:15.078 E/AndroidRuntime( 9764): at android.content.ContentProvider.attachInfo(ContentProvider.java:1718)
06-15 13:51:15.078 E/AndroidRuntime( 9764): at android.content.ContentProvider.attachInfo(ContentProvider.java:1705)
06-15 13:51:15.078 E/AndroidRuntime( 9764): at android.app.ActivityThread.installProvider(ActivityThread.java:5134)
06-15 13:51:15.078 E/AndroidRuntime( 9764): at android.app.ActivityThread.installContentProviders(ActivityThread.java:4702)
06-15 13:51:15.078 E/AndroidRuntime( 9764): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4642)
06-15 13:51:15.078 E/AndroidRuntime( 9764): at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
06-15 13:51:15.078 E/AndroidRuntime( 9764): at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:713)
06-15 13:51:15.078 E/AndroidRuntime( 9764): at android.app.ActivityThread.handleBindApplication(<Xposed>)
06-15 13:51:15.078 E/AndroidRuntime( 9764): at android.app.ActivityThread.access$1500(ActivityThread.java:156)
06-15 13:51:15.078 E/AndroidRuntime( 9764): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1412)
06-15 13:51:15.078 E/AndroidRuntime( 9764): at android.os.Handler.dispatchMessage(Handler.java:102)
06-15 13:51:15.078 E/AndroidRuntime( 9764): at android.os.Looper.loop(Looper.java:211)
06-15 13:51:15.078 E/AndroidRuntime( 9764): at android.app.ActivityThread.main(ActivityThread.java:5389)
06-15 13:51:15.078 E/AndroidRuntime( 9764): at java.lang.reflect.Method.invoke(Native Method)
06-15 13:51:15.078 E/AndroidRuntime( 9764): at java.lang.reflect.Method.invoke(Method.java:372)
06-15 13:51:15.078 E/AndroidRuntime( 9764): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)
06-15 13:51:15.078 E/AndroidRuntime( 9764): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)
06-15 13:51:15.078 E/AndroidRuntime( 9764): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:119)
Note however that this could also be because of any Xposed *module* (i.e. Xprivacy was mentioned) rather than Xposed itself.
While I don't know what that IrdetoFix module does exactly, I suspect it intercepts file requests to XposedBridge.jar? According to this, the XposedBridge.jar should be located at /data/data/de.robv.android.xposed.installer/bin/XposedBridge.jar. However, in my case (XposedInstaller 3.0_alpha4, on Android 5.1.1), the /data/data/de.robv.android.xposed.installer/bin/ dir was empty?
With the IrdetoFix module disabled, when I copied /system/framework/XposedBridge.jar to /data/data/de.robv.android.xposed.installer/bin/XposedBridge.jar, the error disappeared (I think the check passed), but instead I got:
Code:
06-15 13:22:38.948 D/AndroidRuntime(26631): Shutting down VM
06-15 13:22:38.949 E/AndroidRuntime(26631): FATAL EXCEPTION: main
06-15 13:22:38.949 E/AndroidRuntime(26631): Process: com.lgi.orionandroid, PID: 26631
06-15 13:22:38.949 E/AndroidRuntime(26631): java.lang.UnsatisfiedLinkError: XPrivacy
06-15 13:22:38.949 E/AndroidRuntime(26631): at biz.bokhorst.xprivacy.XRuntime.a(SourceFile:81)
06-15 13:22:38.949 E/AndroidRuntime(26631): at biz.bokhorst.xprivacy.XPrivacy$XMethodHook.beforeHookedMethod(SourceFile:628)
06-15 13:22:38.949 E/AndroidRuntime(26631): at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:693)
06-15 13:22:38.949 E/AndroidRuntime(26631): at java.lang.Runtime.loadLibrary(<Xposed>)
06-15 13:22:38.949 E/AndroidRuntime(26631): at java.lang.System.loadLibrary(System.java:988)
06-15 13:22:38.949 E/AndroidRuntime(26631): at com.crashlytics.android.ndk.JniNativeApi.<clinit>(SourceFile:13)
06-15 13:22:38.949 E/AndroidRuntime(26631): at com.crashlytics.android.ndk.CrashlyticsNdk.<init>(SourceFile:33)
06-15 13:22:38.949 E/AndroidRuntime(26631): at com.lgi.orionandroid.CrashSender.init(SourceFile:20)
06-15 13:22:38.949 E/AndroidRuntime(26631): at com.lgi.orionandroid.CustomApplication.onCreate(SourceFile:71)
06-15 13:22:38.949 E/AndroidRuntime(26631): at com.lgi.orionandroid.CustomApplication.getSystemService(SourceFile:40)
06-15 13:22:38.949 E/AndroidRuntime(26631): at android.content.ContentProvider.attachInfo(ContentProvider.java:1718)
06-15 13:22:38.949 E/AndroidRuntime(26631): at android.content.ContentProvider.attachInfo(ContentProvider.java:1705)
06-15 13:22:38.949 E/AndroidRuntime(26631): at android.app.ActivityThread.installProvider(ActivityThread.java:5134)
06-15 13:22:38.949 E/AndroidRuntime(26631): at android.app.ActivityThread.installContentProviders(ActivityThread.java:4702)
06-15 13:22:38.949 E/AndroidRuntime(26631): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4642)
06-15 13:22:38.949 E/AndroidRuntime(26631): at de.robv.android.xposed.XposedBridge.invokeOriginalMethodNative(Native Method)
06-15 13:22:38.949 E/AndroidRuntime(26631): at de.robv.android.xposed.XposedBridge.handleHookedMethod(XposedBridge.java:713)
06-15 13:22:38.949 E/AndroidRuntime(26631): at android.app.ActivityThread.handleBindApplication(<Xposed>)
06-15 13:22:38.949 E/AndroidRuntime(26631): at android.app.ActivityThread.access$1500(ActivityThread.java:156)
06-15 13:22:38.949 E/AndroidRuntime(26631): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1412)
06-15 13:22:38.949 E/AndroidRuntime(26631): at android.os.Handler.dispatchMessage(Handler.java:102)
06-15 13:22:38.949 E/AndroidRuntime(26631): at android.os.Looper.loop(Looper.java:211)
06-15 13:22:38.949 E/AndroidRuntime(26631): at android.app.ActivityThread.main(ActivityThread.java:5389)
06-15 13:22:38.949 E/AndroidRuntime(26631): at java.lang.reflect.Method.invoke(Native Method)
06-15 13:22:38.949 E/AndroidRuntime(26631): at java.lang.reflect.Method.invoke(Method.java:372)
06-15 13:22:38.949 E/AndroidRuntime(26631): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1020)
06-15 13:22:38.949 E/AndroidRuntime(26631): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:815)
06-15 13:22:38.949 E/AndroidRuntime(26631): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:119)
So, could either Xposed be outfitted with a dummy XposedBridge, or could the IrdetoFix module perhaps be updated, if at all possible?
bouvrie said:
I second this question as I've been trying to get this app working on my rooted device for a while.
While old versions of the app wouldn't even start at all because of them checking for root ("which su" command) on startup, I suspect the issue now lies with detection of Xposed module(s). See the line from dev_freak's logcat:
Code:
05-30 16:00:12.267 8899 8899 W System.err: java.lang.ClassNotFoundException: de.robv.android.xposed.XposedBridge
I see that error in my log as well (the app starts and works fine, until I start a stream to watch, and I get a message "Sorry, the video cannot be played at this time. (4101)").
So, I naturally tried the IrdetoFix Xposed module that supposedly could counter the issue. But while the XposedBridge.jar error indeed disappears, the app crashes on startup
While I don't know what that IrdetoFix module does exactly, I suspect it intercepts file requests to XposedBridge.jar? According to this, the XposedBridge.jar should be located at /data/data/de.robv.android.xposed.installer/bin/XposedBridge.jar. However, in my case (XposedInstaller 3.0_alpha4, on Android 5.1.1), the /data/data/de.robv.android.xposed.installer/bin/ dir was empty?
With the IrdetoFix module disabled, when I copied /system/framework/XposedBridge.jar to /data/data/de.robv.android.xposed.installer/bin/XposedBridge.jar, the error disappeared (I think the check passed)
Click to expand...
Click to collapse
I have tried copying XposedBridge as well, but I ran into the problem that /data/ did not appear to have any folders inside of it(maybe hidden?), and I could not create one because I didn't have permission. How would I be able to do this ?
Also, did you say that the app worked completely since the check succeeded?
inasm said:
I have tried copying XposedBridge as well, but I ran into the problem that /data/ did not appear to have any folders inside of it(maybe hidden?), and I could not create one because I didn't have permission. How would I be able to do this ?
Click to expand...
Click to collapse
You'll need to mount the /data as RW, you'll probably need a root explorer for that (I use ES File Explorer's Root Explorer feature). Be careful though, as doing something wrong in that 'hidden,read-only system' part of the filesystem could make Android not want to boot again.
inasm said:
Also, did you say that the app worked completely since the check succeeded?
Click to expand...
Click to collapse
Nope, the app doesn't work completely. Logging in & browsing channels would work, but whenever I'd want to start an actual videostream, it wouldn't do that.
Contact @rovo89 since it is his module.
What is the latest on this issue? This has been killing me for months now.
hi guys,
I'm equally annoyed by the fact I must disable xposed each time I want to watch tv and btw why isn't there a disable/enable switch in xposed_installer? or is there?
Anyway, I decided to have a look at the old IrdetoFix module and thought maybe a patch would help. Since XposedBridge.jar is now located in /system/framework, I changed line 24 in the source to:
Code:
dexPath = "/system/framework/XposedBridge.jar:" + dexPath;
and I linked the module with a newer api lib file api-53.jar
I'm testing this with Android 5.1 and Horizon Go app. Unfortunately still getting 4101 errors. Logcat gives this:
Code:
W/System.err(12688): java.lang.ClassNotFoundException: de.robv.android.xposed.XposedBridge
W/System.err(12688): at java.lang.Class.classForName(Native Method)
W/System.err(12688): at java.lang.Class.forName(Class.java:309)
W/System.err(12688): at java.lang.Class.forName(Class.java:273)
W/System.err(12688): at com.ir.app.common.IOUtils.getBytesFromObject(SourceFile:53)
W/System.err(12688): at com.ir.app.CryptoManager.getClassBytes(SourceFile:32)
W/System.err(12688): at com.irdeto.media.d.a(Native Method)
W/System.err(12688): at com.irdeto.media.d.a(Unknown Source)
W/System.err(12688): at com.irdeto.media.ActiveCloakMediaPlayer.open(Unknown Source)
W/System.err(12688): at com.irdeto.media.ActiveCloakMediaPlayer.open(Unknown Source)
W/System.err(12688): at com.irdeto.media.ActiveCloakMediaPlayer.open(Unknown Source)
W/System.err(12688): at com.irdeto.activecloak.MediaPlayer.open(SourceFile:96)
W/System.err(12688): at com.irdeto.activecloak.IrdetoPlayer.a(SourceFile:582)
W/System.err(12688): at com.irdeto.activecloak.IrdetoPlayer.initPlayback(SourceFile:208)
W/System.err(12688): at com.lgi.orionandroid.ui.player.playerpresenter.OrionPlayerPresenter.startPlayback(SourceFile:108)
W/System.err(12688): at com.lgi.orionandroid.ui.player.playerpresenter.OrionPlayerPresenter.initPlayback(SourceFile:94)
W/System.err(12688): at com.lgi.orionandroid.ui.player.playerpresenter.AbstractPlayerPresenter.continueWithPlaybackContent(SourceFile:125)
W/System.err(12688): at cxd.success(SourceFile:1048)
W/System.err(12688): at cwe.run(SourceFile:61)
W/System.err(12688): at android.os.Handler.handleCallback(Handler.java:815)
W/System.err(12688): at android.os.Handler.dispatchMessage(Handler.java:104)
W/System.err(12688): at android.os.Looper.loop(Looper.java:194)
W/System.err(12688): at android.app.ActivityThread.main(ActivityThread.java:5637)
W/System.err(12688): at java.lang.reflect.Method.invoke(Native Method)
W/System.err(12688): at java.lang.reflect.Method.invoke(Method.java:372)
W/System.err(12688): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959)
W/System.err(12688): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754)
W/System.err(12688): at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:117)
W/System.err(12688): Caused by: java.lang.ClassNotFoundException: Didn't find class "de.robv.android.xposed.XposedBridge" on path: DexPathList[[zip file "/data/app/com.lgi.orionandroid-1/base.apk"],nativeLibraryDirectories=[/data/app/com.lg
i.orionandroid-1/lib/arm, /vendor/lib, /system/lib]]
W/System.err(12688): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
W/System.err(12688): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
W/System.err(12688): at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
W/System.err(12688): ... 27 more
W/System.err(12688): Suppressed: java.lang.ClassNotFoundException: de.robv.android.xposed.XposedBridge
W/System.err(12688): at java.lang.Class.classForName(Native Method)
W/System.err(12688): at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
W/System.err(12688): at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
W/System.err(12688): at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
W/System.err(12688): ... 28 more
W/System.err(12688): Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
Very similar to logcats above. Copying XposedBridge.jar to /vendor/lib didn't help. I am afraid I am out of further time and options.
/JockyW

Categories

Resources