首先让我描述一下情况。 我有没有Google应用的Android移动设备。现在我正在尝试在我的设备上安装gapps,但它们没有出现在我的电话中。
在我的调查期间(在已安装Google应用的其他手机上播放),我发现我的电话上的Google帐户的主要应用是GoogleLoginService.apk
现在我正在尝试在没有谷歌的情况下解决我的HTC设备上的问题。在尝试启动此应用程序时 - 它将无法启动。
I/ActivityManager( 1798): Start proc com.google.android.onetimeinitializer for broadcast com.google.android.onetimeinitializer/.OneTimeInitializerReceiver: pid=2952 uid=10188 gids={}
I/ActivityManager( 1798): No longer want com.htc.android.htcime:provider (pid 2446): hidden #16, adj=15
I/ActivityManager( 1798): Start proc com.android.vending for broadcast com.android.vending/com.google.android.finsky.receivers.BootCompletedReceiver: pid=2966 uid=10194 gids={3003, 1015}
I/ActivityManager( 1798): No longer want com.htc.laputa.lb.provider (pid 2537): hidden #16, adj=15
I/ActivityManager( 1798): No longer want com.android.htccontacts (pid 2552): hidden #16, adj=15
I/InputManagerService( 1798): [startInputLocked] Enable input method client.
E/ActivityThread( 2966): Failed to find provider info for com.google.android.gsf.gservices
I/PackageManager( 1798): setEnabledSetting(), pkgName=com.android.vending, clsName=com.android.vending.AssetBrowserActivity, state=1, flag=1, pid=2966, uid=10194
E/ActivityThread( 2966): Failed to find provider info for com.google.android.gsf.gservices
D/Socket_Alarm( 2966): registerHTCSocketMonitorCallBack
D/Socket_Alarm( 2966): set mSocketMonitor
D/Socket_Alarm( 2966): HTCSocketMonitorImpl::HTCSocketMonitorImpl
我从未有过使用Java和Android开发的经验,但了解其他一些语言。
所以这里是日志和其他信息。
我希望添加或修改某些Intent或过滤器,但无法理解其中的位置和方式。
D:\adb>adb shell
$ su
su
# am start com.google.android.gsf.login
am start com.google.android.gsf.login
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] pkg=com.google.android.gsf.login }
Error: Activity not started, unable to resolve Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=com.google.android.gsf.login }
#
<<<--- LOGCAT --->>>
E/ActivityManager( 1817): startLaunchActivity get appname failed
E/ActivityManager( 1817): java.lang.NullPointerException
E/ActivityManager( 1817): at com.android.server.am.ActivityStack.startLaunchActivity(ActivityStack.java:4888)
E/ActivityManager( 1817): at com.android.server.am.ActivityStack.startActivityMayWait(ActivityStack.java:3417)
E/ActivityManager( 1817): at com.android.server.am.ActivityManagerService.startActivity(ActivityManagerService.java:2520)
E/ActivityManager( 1817): at android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:131)
E/ActivityManager( 1817): at com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:1762)
E/ActivityManager( 1817): at android.os.Binder.execTransact(Binder.java:338)
E/ActivityManager( 1817): at dalvik.system.NativeStart.run(Native Method)
这里是清单
<?xml version="1.0" encoding="utf-8"?>
<manifest android:sharedUserId="com.google.uid.shared" android:versionCode="15" android:versionName="4.0.4-488656" android:sharedUserLabel="@string/sharedUserLabel" package="com.google.android.gsf.login"
xmlns:android="http://schemas.android.com/apk/res/android">
<permission android:label="@string/permlab_googleMailSwitch" android:name="com.google.android.googleapps.permission.GOOGLE_MAIL_SWITCH" android:protectionLevel="signature" android:description="@string/permdesc_googleMailSwitch" />
<permission android:label="@string/permlab_googleAuthPassword" android:name="com.google.android.googleapps.permission.ACCESS_GOOGLE_PASSWORD" android:protectionLevel="signature" android:description="@string/permdesc_googleAuthPassword" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS" />
<uses-permission android:name="android.permission.BACKUP" />
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.DUMP" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
<uses-permission android:name="android.permission.PERSISTENT_ACTIVITY" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.READ_LOGS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_PROFILE" />
<uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
<uses-permission android:name="android.permission.READ_SYNC_STATS" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.SUBSCRIBED_FEEDS_READ" />
<uses-permission android:name="android.permission.SUBSCRIBED_FEEDS_WRITE" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_PROFILE" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS" />
<uses-permission android:name="com.android.vending.INTENT_VENDING_ONLY" />
<uses-permission android:name="com.google.android.googleapps.permission.ACCESS_GOOGLE_PASSWORD" />
<uses-permission android:name="com.google.android.googleapps.permission.GOOGLE_AUTH" />
<uses-permission android:name="com.google.android.googleapps.permission.GOOGLE_AUTH.ALL_SERVICES" />
<uses-permission android:name="com.google.android.googleapps.permission.GOOGLE_AUTH.YouTubeUser" />
<uses-permission android:name="com.google.android.googleapps.permission.GOOGLE_AUTH.mail" />
<uses-permission android:name="com.google.android.googleapps.permission.GOOGLE_AUTH.youtube" />
<uses-permission android:name="com.google.android.googleapps.permission.GOOGLE_MAIL_SWITCH" />
<uses-permission android:name="com.google.android.gtalkservice.permission.GTALK_SERVICE" />
<uses-permission android:name="com.google.android.gtalkservice.permission.SEND_HEARTBEAT" />
<uses-permission android:name="com.google.android.permission.BROADCAST_DATA_MESSAGE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<uses-permission android:name="com.google.android.providers.gsf.permission.WRITE_GSERVICES" />
<uses-permission android:name="com.google.android.providers.settings.permission.READ_GSETTINGS" />
<uses-permission android:name="com.google.android.providers.settings.permission.WRITE_GSETTINGS" />
<uses-permission android:name="com.google.android.providers.talk.permission.READ_ONLY" />
<uses-permission android:name="com.google.android.providers.talk.permission.WRITE_ONLY" />
<uses-permission android:name="com.android.vending.billing.BILLING_ACCOUNT_SERVICE" />
<uses-permission android:name="com.android.vending.billing.ADD_CREDIT_CARD" />
<uses-permission android:name="com.android.vending.billing.IBillingAccountService.BIND2" />
<application android:label="@string/app_label" android:hardwareAccelerated="true">
<activity android:theme="@style/InvisibleCustomTitle" android:label="@string/account_intro_title" android:name="AccountIntroActivity" android:exported="true">
<intent-filter>
<action android:name="com.google.android.accounts.AccountIntro" />
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity android:theme="@style/AccountIntroActivity" android:label="@string/account_intro_title" android:name="AccountIntroUIActivity" />
<activity android:theme="@style/PlusQueryActivity" android:label="@string/plus_query_title" android:name=".PlusQueryActivity" />
<activity android:theme="@style/PlusFaqActivity" android:label="@string/plus_faq_title" android:name=".PlusFaqActivity" />
<activity android:theme="@style/NameActivity" android:label="@string/name_title" android:name=".NameActivity" android:exported="true" />
<activity android:theme="@style/BadNameActivity" android:label="@string/bad_name_title" android:name=".BadNameActivity" />
<activity android:theme="@style/PhotoActivity" android:label="@string/photo_title" android:name=".PhotoActivity" android:exported="true" />
<activity android:theme="@style/LearnMoreActivity" android:label="@string/learn_more_title" android:name=".LearnMoreActivity" />
<activity android:theme="@style/WaitForDeviceCountryActivity" android:label="@string/wait_for_device_country_title" android:name=".WaitForDeviceCountryActivity" />
<activity android:theme="@style/CaptchaActivity" android:label="@string/captcha_title" android:name=".CaptchaActivity" android:exported="true" />
<activity android:theme="@style/CustomTitle" android:label="@string/setup_wizard_title" android:name=".SetupWirelessIntroActivity" />
<activity android:theme="@style/CustomTitle" android:label="@string/setup_wizard_title" android:name=".SetupWirelessActivity" />
<activity android:theme="@style/InvisibleCustomTitle" android:label="@string/login_title" android:name=".LoginActivity" android:exported="true" />
<activity android:theme="@style/LoginActivity" android:label="@string/login_title" android:name=".UsernamePasswordActivity" />
<activity android:theme="@style/LoginActivityTask" android:label="@string/login_task_title" android:name=".LoginActivityTask" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="@style/NoTitleInXL" android:label="@string/show_error_title" android:name=".ShowErrorActivity" android:exported="true" />
<activity android:theme="@style/NoTitleInXL" android:label="@string/sync_intro_title" android:name=".SyncIntroActivity" />
<activity android:theme="@style/InvisibleCustomTitle" android:label="@string/setup_wizard_title" android:name=".CreateAccountActivity" />
<activity android:theme="@style/InvisibleCustomTitle" android:name=".PlusActivity" android:exported="true" />
<activity android:theme="@style/LoginActivityTask" android:label="@string/setup_wizard_title" android:name=".PlusCheckTask" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="@style/LoginActivity" android:label="@string/setup_wizard_title" android:name=".UsernameActivity" />
<activity android:theme="@style/LoginActivityTask" android:label="@string/setup_wizard_title" android:name=".CreateAccountTask" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="@style/LoginActivityTask" android:label="@string/setup_wizard_title" android:name=".ProfileTask" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="@style/LoginActivityTask" android:label="@string/setup_wizard_title" android:name=".NameCheckTask" android:configChanges="keyboardHidden|orientation|screenSize" />
<activity android:theme="@style/LoginActivityTask" android:label="@string/setup_wizard_title" android:name=".CheckAvailTask" android:configChanges="keyboardHidden|orientation" />
<activity android:theme="@style/LoginActivity" android:label="@string/setup_wizard_title" android:name=".SuggestUsernameActivity" />
<activity android:theme="@style/CustomTitle" android:label="@string/setup_wizard_title" android:name=".VerifyProfileActivity" android:configChanges="keyboardHidden|orientation" />
<activity android:theme="@style/LoginActivity" android:label="@string/setup_wizard_title" android:name=".ChoosePasswordActivity" />
<activity android:theme="@style/LoginActivity" android:label="@string/setup_wizard_title" android:name=".AccountSecurityActivity" android:exported="true" />
<activity android:theme="@style/NoTitleInXL" android:label="@string/setup_wizard_title" android:name=".PicassaInfoActivity" />
<activity android:theme="@style/LoginActivity" android:label="@string/setup_wizard_title" android:name=".TermsOfServiceActivity" />
<activity android:theme="@style/BrowserTheme" android:label="@string/gls_ui_add_account_title" android:icon="@drawable/ic_launcher_settings" android:name=".BrowserActivity" android:exported="true" android:configChanges="keyboard|keyboardHidden|orientation" />
<service android:name="com.google.android.gsf.loginservice.GoogleLoginService" android:exported="true">
<intent-filter android:priority="-105">
<action android:name="android.accounts.AccountAuthenticator" />
</intent-filter>
<intent-filter>
<action android:name="com.google.android.gsf.action.GET_GLS" />
</intent-filter>
<meta-data android:name="android.accounts.AccountAuthenticator" android:resource="@xml/authenticator" />
<meta-data android:name="android.accounts.AccountAuthenticator.customTokens" android:value="1" />
</service>
<service android:name="com.google.android.gsf.loginservice.TokenService" android:exported="true">
<intent-filter>
<action android:name="com.google.login.GetToken" />
</intent-filter>
</service>
<service android:name="com.google.android.gsf.loginservice.TestService" android:permission="com.google.android.googleapps.permission.ACCESS_GOOGLE_PASSWORD" android:exported="true">
<intent-filter>
<action android:name="com.google.login.GetTokenInternal" />
</intent-filter>
</service>
<activity android:theme="@style/GrantCredentialsPermissionActivity" android:name="com.google.android.gsf.loginservice.GrantCredentialsPermissionActivity" android:exported="true" android:excludeFromRecents="true" />
<activity android:name="com.google.android.gsf.loginservice.TestActivity" />
</application>
</manifest>