I think this one is definitely needed for this forum as i am seeing more and more users ask how to logcat. So posting this here.
Here's how to use logcat:
There are two main ways to do a logcat, within android, and through adb.
Logcat within android can be done one of two ways, through a Logcat app:
Here are two good examples are either: aLogcat or Catlog
I prefer catlog, because in my opinion it has a little bit nicer UI. Both of these programs can dump their logs to a txt file, which is very useful for debugging. Or, you can do it in terminal emulator (same rules as running through adb(see below))
From Moscow Desire:
On the other hand, using adb to run logcat, in my opinion is much more useful, because you can start using it when android boots (i.e. once the boot animation appears.)
The code for logcat to output to a file is
Code:
adb logcat > name of problem.txt
you can also do
Code:
adb logcat -f name of problem.txt
how I prefer to do it is this way:
Code:
adb logcat -v long > name of problem.txt
with the -v flag & the long argument, it changes output to long style, which means every line of logcat will be on its own line (makes it a little neater, imo)
Note: When outputting to a file, you will see a newline, but nothing printed, this is normal. To stop logcat from writting to a file, you need to press ctrl+c.
Here's where using logcat (via adb makes life really easy)
Lets say you find a problem you're having after looking at a logcat.
For example:
When I was trying to use a different ramdisk, wifi wouldn't work so I got a logcat that's almost 1300 lines long (a lot of stuff happens in the background)
So if you are searching for an error in the logcat file (it's always e/ for error, f/ for fatal. Those are the two main things that will break a system.)
Code:
D/dalvikvm( 871): GC_CONCURRENT freed 472K, 6% free 10224K/10823K, paused 1ms+6ms
V/AmazonAppstore.DiskInspectorServiceImpl( 871): Available blocks: 21981, Block size: 4096, Free: 90034176, Threshold: 5242880, withinThreshold? true
D/AmazonAppstore.UpdateService( 871): Received action: null from intent: Intent { cmp=com.amazon.venezia/com.amazon.mas.client.framework.UpdateService }
W/AmazonAppstore.UpdateService( 871): Confused about why I'm running with this intent action: null from intent: Intent { cmp=com.amazon.venezia/com.amazon.mas.client.framework.UpdateService }
D/dalvikvm( 890): GC_CONCURRENT freed 175K, 4% free 9375K/9671K, paused 2ms+3ms
V/AmazonAppstore.ReferenceCounter( 871): Reference (MASLoggerDB) count has gone to 0. Closing referenced object.
E/WifiStateMachine( 203): Failed to reload STA firmware java.lang.IllegalStateException: Error communicating to native daemon
V/AmazonAppstore.UpdateService( 871): runUpdateCommand doInBackground started.
V/AmazonAppstore.UpdateService( 871): Running UpdateCommand: digitalLocker
V/AmazonAppstore.UpdateCommand( 871): Not updating key: digitalLocker from: 1334228488057
V/AmazonAppstore.UpdateService( 871): Finished UpdateCommand: digitalLocker
V/AmazonAppstore.UpdateService( 871): Running UpdateCommand: serviceConfig
V/AmazonAppstore.MASLoggerDB( 871): performLogMetric: Metric logged: ResponseTimeMetric [fullName=com.amazon.venezia.VeneziaApplication_onCreate, build=release-2.3, date=Wed Apr 11 13:10:55 CDT 2012, count=1, value=1601.0]
V/AmazonAppstore.MASLoggerDB( 871): onBackgroundTaskSucceeded: Metric logged: ResponseTimeMetric [fullName=com.amazon.venezia.VeneziaApplication_onCreate, build=release-2.3, date=Wed Apr 11 13:10:55 CDT 2012, count=1, value=1601.0]
W/CommandListener( 118): Failed to retrieve HW addr for eth0 (No such device)
D/CommandListener( 118): Setting iface cfg
D/NetworkManagementService( 203): rsp
D/NetworkManagementService( 203): flags
E/WifiStateMachine( 203): Unable to change interface settings: java.lang.IllegalStateException: Unable to communicate with native daemon to interface setcfg - com.android.server.NativeDaemonConnectorException: Cmd {interface setcfg eth0 0.0.0.0 0 [down]} failed with code 400 : {Failed to set address (No such device)}
W/PackageParser( 203): Unknown element under : supports-screen at /mnt/asec/com.android.aldiko-1/pkg.apk Binary XML file line #16
D/wpa_supplicant( 930): wpa_supplicant v0.8.x
D/wpa_supplicant( 930): random: Trying to read entropy from /dev/random
D/wpa_supplicant( 930): Initializing interface 'eth0' conf '/data/misc/wifi/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
D/wpa_supplicant( 930): Configuration file '/data/misc/wifi/wpa_supplicant.conf' -> '/data/misc/wifi/wpa_supplicant.conf'
D/wpa_supplicant( 930): Reading configuration file '/data/misc/wifi/wpa_supplicant.conf'
D/wpa_supplicant( 930): ctrl_interface='eth0'
D/wpa_supplicant( 930): update_config=1
D/wpa_supplicant( 930): Line: 4 - start of a new network block
D/wpa_supplicant( 930): key_mgmt: 0x4
(mind you, that's 29 lines out of 1300ish, just for example)
I then could do the following with logcat:
Code:
adb logcat WifiStateMachine:E *:S -v long > name of problem.txt
and this will only print out any errors associated with WifiStateMachine, and anything which is fatal, which makes it about a million times easier to figure out what's going on!
In WifiStateMachine:E, the :E = to look for Errors, the full list of options is as follows:
V — Verbose (lowest priority)
D — Debug
I — Info (default priority)
W — Warning
E — Error
F — Fatal
S — Silent (highest priority, on which nothing is ever printed)
You can replace the :E with any other letter from above to get more info.
In order to filter out anything other than what you are looking for (in this case, WifiStateMachine) you must put a *:S after your last command (i.e. WifiStateMachine:E ThemeChoose:V ... ... AndroidRuntime:E *:S)
Sources: http://developer.android.com/tools/help/logcat.html
http://developer.android.com/tools/help/adb.html
Update for windows users:
Thank go to FuzzyMeep Two, Here's what he's posted for windows
(If you used his tool, here's his post, thank him for his work!)
Note : I am just sharing. Original post here.
Great job brother!!You are in the right path for RC :beer::thumbup:
Sent from my Galaxy Nexus using xda app-developers app
keep going on my friend...:good:
Khizar said:
I think this one is definitely needed for this forum as i am seeing more and more users ask how to logcat. So posting this here.
Here's how to use logcat:
There are two main ways to do a logcat, within android, and through adb.
Logcat within android can be done one of two ways, through a Logcat app:
Here are two good examples are either: aLogcat or Catlog
I prefer catlog, because in my opinion it has a little bit nicer UI. Both of these programs can dump their logs to a txt file, which is very useful for debugging. Or, you can do it in terminal emulator (same rules as running through adb(see below))
From Moscow Desire:
On the other hand, using adb to run logcat, in my opinion is much more useful, because you can start using it when android boots (i.e. once the boot animation appears.)
The code for logcat to output to a file is
Code:
adb logcat > name of problem.txt
you can also do
Code:
adb logcat -f name of problem.txt
how I prefer to do it is this way:
Code:
adb logcat -v long > name of problem.txt
with the -v flag & the long argument, it changes output to long style, which means every line of logcat will be on its own line (makes it a little neater, imo)
Note: When outputting to a file, you will see a newline, but nothing printed, this is normal. To stop logcat from writting to a file, you need to press ctrl+c.
Here's where using logcat (via adb makes life really easy)
Lets say you find a problem you're having after looking at a logcat.
For example:
When I was trying to use a different ramdisk, wifi wouldn't work so I got a logcat that's almost 1300 lines long (a lot of stuff happens in the background)
So if you are searching for an error in the logcat file (it's always e/ for error, f/ for fatal. Those are the two main things that will break a system.)
Code:
D/dalvikvm( 871): GC_CONCURRENT freed 472K, 6% free 10224K/10823K, paused 1ms+6ms
V/AmazonAppstore.DiskInspectorServiceImpl( 871): Available blocks: 21981, Block size: 4096, Free: 90034176, Threshold: 5242880, withinThreshold? true
D/AmazonAppstore.UpdateService( 871): Received action: null from intent: Intent { cmp=com.amazon.venezia/com.amazon.mas.client.framework.UpdateService }
W/AmazonAppstore.UpdateService( 871): Confused about why I'm running with this intent action: null from intent: Intent { cmp=com.amazon.venezia/com.amazon.mas.client.framework.UpdateService }
D/dalvikvm( 890): GC_CONCURRENT freed 175K, 4% free 9375K/9671K, paused 2ms+3ms
V/AmazonAppstore.ReferenceCounter( 871): Reference (MASLoggerDB) count has gone to 0. Closing referenced object.
E/WifiStateMachine( 203): Failed to reload STA firmware java.lang.IllegalStateException: Error communicating to native daemon
V/AmazonAppstore.UpdateService( 871): runUpdateCommand doInBackground started.
V/AmazonAppstore.UpdateService( 871): Running UpdateCommand: digitalLocker
V/AmazonAppstore.UpdateCommand( 871): Not updating key: digitalLocker from: 1334228488057
V/AmazonAppstore.UpdateService( 871): Finished UpdateCommand: digitalLocker
V/AmazonAppstore.UpdateService( 871): Running UpdateCommand: serviceConfig
V/AmazonAppstore.MASLoggerDB( 871): performLogMetric: Metric logged: ResponseTimeMetric [fullName=com.amazon.venezia.VeneziaApplication_onCreate, build=release-2.3, date=Wed Apr 11 13:10:55 CDT 2012, count=1, value=1601.0]
V/AmazonAppstore.MASLoggerDB( 871): onBackgroundTaskSucceeded: Metric logged: ResponseTimeMetric [fullName=com.amazon.venezia.VeneziaApplication_onCreate, build=release-2.3, date=Wed Apr 11 13:10:55 CDT 2012, count=1, value=1601.0]
W/CommandListener( 118): Failed to retrieve HW addr for eth0 (No such device)
D/CommandListener( 118): Setting iface cfg
D/NetworkManagementService( 203): rsp
D/NetworkManagementService( 203): flags
E/WifiStateMachine( 203): Unable to change interface settings: java.lang.IllegalStateException: Unable to communicate with native daemon to interface setcfg - com.android.server.NativeDaemonConnectorException: Cmd {interface setcfg eth0 0.0.0.0 0 [down]} failed with code 400 : {Failed to set address (No such device)}
W/PackageParser( 203): Unknown element under : supports-screen at /mnt/asec/com.android.aldiko-1/pkg.apk Binary XML file line #16
D/wpa_supplicant( 930): wpa_supplicant v0.8.x
D/wpa_supplicant( 930): random: Trying to read entropy from /dev/random
D/wpa_supplicant( 930): Initializing interface 'eth0' conf '/data/misc/wifi/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
D/wpa_supplicant( 930): Configuration file '/data/misc/wifi/wpa_supplicant.conf' -> '/data/misc/wifi/wpa_supplicant.conf'
D/wpa_supplicant( 930): Reading configuration file '/data/misc/wifi/wpa_supplicant.conf'
D/wpa_supplicant( 930): ctrl_interface='eth0'
D/wpa_supplicant( 930): update_config=1
D/wpa_supplicant( 930): Line: 4 - start of a new network block
D/wpa_supplicant( 930): key_mgmt: 0x4
(mind you, that's 29 lines out of 1300ish, just for example)
I then could do the following with logcat:
Code:
adb logcat WifiStateMachine:E *:S -v long > name of problem.txt
and this will only print out any errors associated with WifiStateMachine, and anything which is fatal, which makes it about a million times easier to figure out what's going on!
In WifiStateMachine:E, the :E = to look for Errors, the full list of options is as follows:
V — Verbose (lowest priority)
D — Debug
I — Info (default priority)
W — Warning
E — Error
F — Fatal
S — Silent (highest priority, on which nothing is ever printed)
You can replace the :E with any other letter from above to get more info.
In order to filter out anything other than what you are looking for (in this case, WifiStateMachine) you must put a *:S after your last command (i.e. WifiStateMachine:E ThemeChoose:V ... ... AndroidRuntime:E *:S)
Sources: http://developer.android.com/tools/help/logcat.html
http://developer.android.com/tools/help/adb.html
Update for windows users:
Thank go to FuzzyMeep Two, Here's what he's posted for windows
(If you used his tool, here's his post, thank him for his work!)
Note : I am just sharing. Original post here.
Click to expand...
Click to collapse
I'm happy very happy ... I have little exp with log cat this is my guide ....
Very good another user of Ak team near RC
Sent from my Galaxy Nexus using xda app-developers app
One doubt, I've downloaded catlog and make it run but I don't know where the txt files are stored or what can I do to recover them.
Also the problem I'm experiencing is a random reboot so even if I have catlog running when the reboot occurs, will I be able to recover the log or it will be lost?
Sorry for the noob question but I'm pretty lost here...
binlalo said:
One doubt, I've downloaded catlog and make it run but I don't know where the txt files are stored or what can I do to recover them.
Also the problem I'm experiencing is a random reboot so even if I have catlog running when the reboot occurs, will I be able to recover the log or it will be lost?
Sorry for the noob question but I'm pretty lost here...
Click to expand...
Click to collapse
catlog should have its own folder in data/media where it saves the txt files...
Related
Now that we have a working AOSP Eclair for our Hero, we should start looking at how we'd go about getting the Google data sync and applications on top of the ROM. I've looked around for more information and it doesn't seem like anyone has gotten this working in any way.
Where do we start?
yeah anyone got any ideas? i want full 2.0 as well. i just want to say in the original aosp postings i tried pushing the libraries and got [INSTALL_FAILED_MISSING_SHARED_LIBRARY]. just so we get that out of the way.
I get much further than that. Currently the only thing I'm missing (I think) is the provider for android.server.checkin.
what did you do to get past that...?
yeah, lol been gone for two hours and already so much progress has been made. howd u do that?
I'll follow this thread closely. I have been waiting for a working stock android rom since the day after I got my Hero, months ago. This is grand.
release it and maybe another developers give you a sollution
You install the missing shared library.. in this case its a file that needs to go into /system/etc/permissions. I'm on google talk if anyone wants to play with me..
wait so what isnt working exactly? im going to try this now
When you go into a Google App, it pulls up the settings wizard. You can put in your information and it goes to the "this may take a few minutes" screen, but never actually gets anywhere.
Here's a log from that period:
Code:
I/ActivityManager( 86): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.vending/.AssetBrowserActivity }
I/ActivityManager( 86): Starting activity: Intent { cmp=com.android.vending/.TosActivity }
I/ActivityManager( 86): Starting activity: Intent { cmp=com.google.android.googleapps/.LoginActivity (has extras) }
I/ActivityManager( 86): Starting activity: Intent { flg=0x2000000 cmp=com.google.android.googleapps/.RunSetupWizardActivity (has extras) }
W/InputManagerService( 86): Starting input on non-focused client [email protected] (uid=10005 pid=375)
W/InputManagerService( 86): Client not active, ignoring focus gain of: [email protected]
I/ActivityManager( 86): Starting activity: Intent { flg=0x80000 cmp=com.android.setupwizard/.AccountIntroActivity (has extras) }
D/vending ( 375): com.android.vending.BaseActivity.completeGetAuthToken(): auth result is RESULT_CANCELED
I/ActivityManager( 86): Displayed activity com.android.vending/.TosActivity: 332 ms (total 646 ms)
D/vending ( 375): com.android.vending.BaseActivity.onAuthTokenComplete(): null auth token.
E/ActivityThread( 359): Failed to find provider info for android.server.checkin
I/ActivityManager( 86): Displayed activity com.android.setupwizard/.AccountIntroActivity: 231 ms (total 231 ms)
I/ActivityManager( 86): Starting activity: Intent { cmp=com.android.setupwizard/.ChooseAccountActivity (has extras) }
E/ActivityThread( 359): Failed to find provider info for android.server.checkin
I/ActivityManager( 86): Displayed activity com.android.setupwizard/.ChooseAccountActivity: 435 ms (total 435 ms)
I/ActivityManager( 86): Starting activity: Intent { cmp=com.android.setupwizard/.LoginActivity (has extras) }
W/SetupWizard( 359): No such policy while creating link, id='google_privacy'
W/SetupWizard( 359): No such policy while creating link, id='android_privacy'
E/ActivityThread( 359): Failed to find provider info for android.server.checkin
I/ActivityManager( 86): Displayed activity com.android.setupwizard/.LoginActivity: 522 ms (total 522 ms)
D/dalvikvm( 157): GC freed 2729 objects / 271848 bytes in 89ms
D/dalvikvm( 375): GC freed 4646 objects / 270792 bytes in 96ms
D/dalvikvm( 157): GC freed 1573 objects / 97864 bytes in 78ms
D/dalvikvm( 389): GC freed 1239 objects / 96360 bytes in 172ms
D/dalvikvm( 173): GC freed 466 objects / 25032 bytes in 228ms
I/ActivityManager( 86): Starting activity: Intent { cmp=com.android.setupwizard/.LoginActivityTask (has extras) }
E/ActivityThread( 359): Failed to find provider info for android.server.checkin
I/ActivityManager( 86): Displayed activity com.android.setupwizard/.LoginActivityTask: 506 ms (total 506 ms)
D/AlarmManagerService( 86): Kernel timezone updated to -60 minutes west of GMT
D/SystemClock( 158): Setting time of day to sec=1259494525
W/BackupManagerService( 86): dataChanged but no participant pkg='com.android.providers.settings' uid=10030
E/ActivityThread( 359): Failed to find provider info for android.server.checkin
W/Checkin ( 359): Can't log event SETUP_SERVER_TIMEOUT: java.lang.IllegalArgumentException: Unknown URL content://android.server.checkin/events
E/ActivityThread( 359): Failed to find provider info for android.server.checkin
W/Checkin ( 359): Can't log event SETUP_NO_DATA_NETWORK: java.lang.IllegalArgumentException: Unknown URL content://android.server.checkin/events
I/ActivityManager( 86): Starting activity: Intent { cmp=com.android.setupwizard/.ShowErrorActivity (has extras) }
how did you install GmailProvider.apk or gtalkservice.apk, i keep getting the same error after pushing the gtalkservice com or something to permissions.
If you don't post an actual error message, there's not much I can do to help you. There are a bunch of files that need to be pushed.
What are you pushing, and what errors are you getting. Not just the .apk name.. but WHAT apk and from where? Google talk is much easier for this sort of conversation (same username).
jnwhiteh said:
If you don't post an actual error message, there's not much I can do to help you. There are a bunch of files that need to be pushed.
What are you pushing, and what errors are you getting. Not just the .apk name.. but WHAT apk and from where? Google talk is much easier for this sort of conversation (same username).
Click to expand...
Click to collapse
Downsite is that it is then a private conversation, and many people are interested in this.
Dit you use the files from here? http://jkkmobile.blogspot.com/2009/11/archos-5-it-now-with-android-market-and.html
No, I didn't. And I can either work with someone quick and get a solution.. or we can sit here all day posting back and forth, which is incredibly inefficient. I'm not interested in doing that =).
I don't think we can do anything until we get an official ROM from HTC. The GoogleCheckin.apk is now a signed apk and we can't just drop another version in, or so it seems. I don't know a ton about that part of the system, to be fair.
Code:
D/PackageParser( 87): Scanning package: /system/app/GoogleCheckin.apk
I/PackageManager( 87): /system/app/GoogleCheckin.apk changed; collecting certs
D/PackageManager( 87): Scanning package com.google.android.server.checkin
D/PackageManager( 87): Shared UserID android.uid.system (uid=1000): packages=[PackageSetting{43b8cce0 com.android.providers.settings/1000}, PackageSetting{43d60278 com.android.settings/1000}, PackageSetting{43d9e6e0 com.android.server.vpn/1000}, PackageSetting{43d4df58 android/1000}]
E/PackageManager( 87): Package com.google.android.server.checkin has no signatures that match those in shared user android.uid.system; ignoring!
Have you seen this threat? http://forum.xda-developers.com/showthread.php?t=586314
Seems like they got it working
Yes, I've seen that but I don't know what they've done to make it work. Also, I don't like this bit:
Known issues:
*Contacts do sync but you cannot use auto-sync. Please turn off auto-sync after the initial sync happens or it will eat your battery.
Dumb question here, but is it possible to install a given package to this rom? I tried to install the no-root Maps app through ./adb install Maps-no-root-aligned.apk, but I got an error message:
/sbin/sh: pm: not found
Also, will I be able to install specific apps if I enter their URL in the browser? Right now the browser tells me it can't download the file because the phone "does not admit that content".
Dreaming of 2.0
So i've been nosing around the dream forum, looking for ways to get apps onto a clean AOSP rom, and this seems to be the most promising method:
http://forum.xda-developers.com/showthread.php?t=565155
It strips the files from a nandroid backup, so its using software that we (the user) has purchased, rather than a download from HTC.
But sadly (not surprisingly?) it doesn't work for the Hero, just gives a bunch of FC's. And since i'm not a dev I have no idea where to go from here.
ive actually gotten really close to succeeding. i got to the welcome to AOSP on Hero (US) screen but then it freezes. it use to force close 20 apps. it freezes now which is better than before. now if only i can figure out why its freezing. the issue i get is this
W/SharedBufferStack( 131): waitForCondition(DequeueCondition) timed out (identity=5, status=0). CPU may be pegged. trying again.
(repeating) until this comes up
E/ActivityThread( 128): Failed to find provider info for android.server.checkin
W/Checkin ( 128): Can't update stat PHONE_GSM_REGISTERED: java.lang.IllegalArgumentException: Unknown URL content://android.server.checkin/stats
then
W/SharedBufferStack( 131): waitForCondition(DequeueCondition) timed out (identity=5, status=0). CPU may be pegged. trying again.
(repeating)
Hi all,
Does anyone managed to compile latest CM 6.2 (froyo) sources?¿?¿. I get errors when compiling CMParts and if I choose not to compile CMParts, I get a package that gets me in to crash loops on first start.....
Many Thanks in Advance,
Perdita2000
perdita2000 said:
Hi all,
Does anyone managed to compile latest CM 6.2 (froyo) sources?¿?¿. I get errors when compiling CMParts and if I choose not to compile CMParts, I get a package that gets me in to crash loops on first start.....
Many Thanks in Advance,
Perdita2000
Click to expand...
Click to collapse
You need CMParts. Can you post the compilation errors?
These are my compile errors...
packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/DisplayActivity.java:72: cannot find symbol
symbol : variable config_enableScreenOffAnimation
location: class com.android.internal.R.bool
getResources().getBoolean(com.android.internal.R.bool.config_enableScreenOffAnimation) ? 1 : 0) == 1);
^
packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/DisplayActivity.java:83: cannot find symbol
symbol : variable ACCELEROMETER_ROTATE_180
location: class android.provider.Settings.System
Settings.System.ACCELEROMETER_ROTATE_180, 0) == 1);
^
packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/DisplayActivity.java:96: cannot find symbol
symbol : variable ELECTRON_BEAM_ANIMATION_ON
location: class android.provider.Settings.System
Settings.System.ELECTRON_BEAM_ANIMATION_ON, value ? 1 : 0);
^
packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/DisplayActivity.java:102: cannot find symbol
symbol : variable ELECTRON_BEAM_ANIMATION_OFF
location: class android.provider.Settings.System
Settings.System.ELECTRON_BEAM_ANIMATION_OFF, value ? 1 : 0);
^
packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/DisplayActivity.java:108: cannot find symbol
symbol : variable ACCELEROMETER_ROTATE_180
location: class android.provider.Settings.System
Settings.System.ACCELEROMETER_ROTATE_180, value ? 1 : 0);
^
packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/UIActivity.java:125: cannot find symbol
symbol : variable OVERSCROLL_EFFECT
location: class android.provider.Settings.System
Settings.System.OVERSCROLL_EFFECT, 1);
^
packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/UIActivity.java:196: cannot find symbol
symbol : variable OVERSCROLL_EFFECT
location: class android.provider.Settings.System
Settings.System.putInt(getContentResolver(), Settings.System.OVERSCROLL_EFFECT,
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
11 errors
make: *** [out/target/common/obj/APPS/CMParts_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Many Thanks for you Help!!!
Perdita2000
I'm not modifyng any code because first compilation of any CM sources I always use source as is, then I try this created CM-untouched-sources rom and start to make changes (I am developing on CM7 and would like to have my own CM6.2 too...)
Many Thanks,
Perdita2000
I would check two things:
A. That you updated all the repositories. Do another "repo sync" to make sure everything is up to date. If you are using some repositories which you forked (or someone else) they also need to be updated "manually".
B. Do a clean build, by totally removing the "out" directory and then try to recompile it.
If you are still having trouble I can try to look into it, maybe even tonight.
Download froyo_stable CMParts,then it is no problem to compile,or I upload my modified CMParts 6.2.0 with setcpu etc... if you want that
This should fix the issue:
Code:
cd packages/apps/CMParts && git checkout 69613a248519fed7d971bd6292013d36097d0107
- taken from http://forum.cyanogenmod.com/topic/15353-froyo-compile-cannot-find-symbol-error/
At least, that fixed the issue for me.
erasmux said:
I would check two things:
A. That you updated all the repositories. Do another "repo sync" to make sure everything is up to date. If you are using some repositories which you forked (or someone else) they also need to be updated "manually".
B. Do a clean build, by totally removing the "out" directory and then try to recompile it.
If you are still having trouble I can try to look into it, maybe even tonight.
Click to expand...
Click to collapse
I have done A and B yet a few days ago, but nothing was solved and I found k0ner solution too, but It seems to solved compilation issue (can't find what patch 69613a248519fed7d971bd6292013d36097d0107 do?¿?¿, don't know how to search this code on git...) but ROM compiled doesn't boot (boot loop, but don't have error now, I will reproduce it and send logcat...).
Where can I find CMParts stable?¿?¿
Many Thanks to ALL,
Perdita2000
Elelinux, do you mean use froyo-stable branch for CMParts??
Many Thanks,
Perdits2000
perdita2000 said:
Where can I find CMParts stable?¿?¿
Many Thanks to ALL,
Perdita2000
Click to expand...
Click to collapse
Here https://github.com/CyanogenMod/android_packages_apps_CMParts/tree/froyo-stable
perdita2000 said:
Elelinux, do you mean use froyo-stable branch for CMParts??
Many Thanks,
Perdits2000
Click to expand...
Click to collapse
Yes as you see in post above,download it and replace it with that CMParts you have now.
A fully up to date CM6 ROM? I sincerely hope this works out! I think this would be the ideal ROM for our HTC Hero. Gingerbread's a bit slow on the Hero, but Froyo has always worked well.
I'm just writing this to let you know I'd be hugely appreciative of any ROM that you end up producing here!
I am getting same boot loop as when I applied mentioned patch....
I have synced CMParts git with froyo-stable brunch and compile again (clean before new compile) and no errors (typical VM cores from out of memory .... I always get one or two during compilation on CM7 but everything works fine... not enough memory for compilations ( ), but after flash new rom it loops on HTC HERO with following errors...
I/dalvikvm( 161): System server process 164 has been created
I/Zygote ( 161): Accepting command socket connections
I/dalvikvm( 164): Unable to dlopen(/system/lib/libandroid_servers.so): Cannot load library: link_image[2033]: failed to link libandroid_servers.so
I/dalvikvm( 164):
D/AndroidRuntime( 164): Shutting down VM
W/dalvikvm( 164): threadid=1: thread exiting with uncaught exception (group=0x400207e0)
E/AndroidRuntime( 164): *** FATAL EXCEPTION IN SYSTEM PROCESS: main
E/AndroidRuntime( 164): java.lang.UnsatisfiedLinkError: Library android_servers not found
E/AndroidRuntime( 164): at java.lang.Runtime.loadLibrary(Runtime.java:461)
E/AndroidRuntime( 164): at java.lang.System.loadLibrary(System.java:557)
E/AndroidRuntime( 164): at com.android.server.SystemServer.main(SystemServer.java:592)
E/AndroidRuntime( 164): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 164): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 164): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
E/AndroidRuntime( 164): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
E/AndroidRuntime( 164): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 164): Error reporting crash
E/AndroidRuntime( 164): java.lang.NullPointerException
E/AndroidRuntime( 164): at com.android.internal.os.RuntimeInit$UncaughtHandler.uncaughtException(RuntimeInit.java:76)
E/AndroidRuntime( 164): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:887)
E/AndroidRuntime( 164): at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:884)
E/AndroidRuntime( 164): at dalvik.system.NativeStart.main(Native Method)
I/Process ( 164): Sending signal. PID: 164 SIG: 9
I/Zygote ( 161): Exit zygote because system server (164) has terminated
D/AndroidRuntime( 172):
D/AndroidRuntime( 172): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
I/AndroidRuntime( 172): Heap size: -Xmx16m
D/AndroidRuntime( 172): CheckJNI is OFF
D/AndroidRuntime( 172): --- registering native functions ---
I/SamplingProfilerIntegration( 172): Profiler is disabled.
I/Zygote ( 172): Preloading classes...
D/dalvikvm( 172): GC_EXPLICIT freed 824 objects / 47648 bytes in 7ms
D/dalvikvm( 172): GC_EXPLICIT freed 368 objects / 19104 bytes in 7ms
I/bluetooth_ScoSocket.cpp( 172): Entry name = MY-CAR ScoTypes = 0x7f
I/bluetooth_ScoSocket.cpp( 172): Entry name = Motorola HF850 ScoTypes = 0x7
D/dalvikvm( 172): GC_EXPLICIT freed 319 objects / 18080 bytes in 8ms
D/dalvikvm( 172): GC_EXPLICIT freed 464 objects / 28864 bytes in 9ms
D/dalvikvm( 172): GC_EXPLICIT freed 2096 objects / 108592 bytes in 13ms
I'm going to take a look at /system/lib/libandroid_servers.so compilation because I think is the problem...
Many Thanks to All,
Perdita2000
Hi all,
I have tried a couple of times with no luck, can't find if there is some problem with repos or just a code error, because it compiles without any error...
Have tried to sync froyo-stable but no luck too....
Syncing work tree: 4% (9/210) error: revision master in CyanogenMod/android_device_advent_vega not found
Perdita2000
perdita2000 said:
Hi all,
I have tried a couple of times with no luck, can't find if there is some problem with repos or just a code error, because it compiles without any error...
Have tried to sync froyo-stable but no luck too....
Syncing work tree: 4% (9/210) error: revision master in CyanogenMod/android_device_advent_vega not found
Perdita2000
Click to expand...
Click to collapse
In your /android/system/.repo/manifest/ you find default.xml edit the file and remove the path for advent_vega then run repo sync again
Many Thanks Elelinux ... and sorry about "my newbie questions" .... I'm starting to use github today (more than repo init/sync ... etc)..
Perdita2000
Checked out the "froyo" branch, did a "repo sync", added HTC proprietary files and ROM Manager and started the compile.
Ran into the same compilation error from the start of this thread.
Then applied bjk's fix from here (added the diff files there so you can apply then automatically with "git apply"), then compilation completed smoothly. Boots up just fine here.
What exactly is the error you are getting?
Boot error is posted thread . Did you tried stable or current branch?
Many thanks,
Sent from my Hero using XDA App
perdita2000 said:
Boot error is posted thread . Did you tried stable or current branch?
Many thanks,
Sent from my Hero using XDA App
Click to expand...
Click to collapse
Ok, sorry didn't see it. Doesn't make much sense to me. I used the "froyo" branch (not "froyo-stable"). But this shouldn't matter.
From where did you take your proprietary libs? Try taking them from here: https://github.com/koush/proprietary_vendor_htc/tree/froyo (notice the froyo branch).
I always use device propietary files from device itself. Do you mean they could be wrong?, in fact extract-files.sh didn't pull every needed file (I thought it was wrong because haven't got any issue compiling CM7?¿?¿?).
I will try device files from koush and let you know!!!
Many Thanks to Everyone!!!
Perdita2000
Hi everyone,
i'm try to resurrect a kf 1 gen.
WIFI module seams dead and seems that for the same problem u'll get a replacement.
I can't ask for replacement seen that got no warranty any more.
So i post my logcat cause maybe someone can help, causa i can't understand how a dead module can ignore protected network
Thanks in advance.
I/SystemServer( 366): Wi-Fi Service
E/CommandListener( 96): Failed to open /proc/sys/net/ipv6/conf/wlan0/disable_ipv6: No such file or directory
I/SystemServer( 366): Connectivity Service
E/WifiStateMachine( 366): Failed to disable IPv6: java.lang.IllegalStateException: command '1 interface ipv6 wlan0 disable' failed with '400 1 Failed to change IPv6 state (No such file or directory)'
D/ConnectivityService( 366): ConnectivityService starting up
E/ConnectivityService( 366): Ignoring protectedNetwork 10
E/ConnectivityService( 366): Ignoring protectedNetwork 11
E/ConnectivityService( 366): Ignoring protectedNetwork 12
D/BluetoothTethering( 366): startMonitoring: target: Handler (com.android.server.ConnectivityService$NetworkStateTrackerHandler) {4146c3a8}
D/BluetoothManagerService( 366): Message: 20
D/BluetoothManagerService( 366): Added callback: [email protected]:true
D/BluetoothPan( 366): BluetoothPan() call bindService
D/BluetoothManagerService( 366): Message: 30
D/BluetoothPan( 366): BluetoothPan(), bindService called
W/ApplicationContext( 366): Calling a method in the system process without a qualified user: android.app.ContextImpl.bindService:1437 android.bluetooth.BluetoothPan.<init>:141 android.bluetooth.BluetoothAdapter.getProfileProxy:1164
D/WifiWatchdogStateMachine( 366): Disabling poor network avoidance for wi-fi only device
I/WifiService( 366): WifiService starting up with Wi-Fi enabled
D/WifiService( 366): setWifiEnabled: true pid=366, uid=1000
I/SystemServer( 366): Network Service Discovery Service
D/NsdService( 366): Network service discovery enabled true
I/SystemServer( 366): Throttle Service
I/SystemServer( 366): UpdateLock Service
D/dalvikvm( 366): GC_CONCURRENT freed 329K, 12% free 4531K/5104K, paused 2ms+2ms, total 37ms
D/dalvikvm( 366): WAIT_FOR_CONCURRENT_GC blocked 2ms
W/CommandListener( 96): Failed to retrieve HW addr for wlan0 (No such device)
D/CommandListener( 96): Setting iface cfg
E/WifiStateMachine( 366): Unable to change interface settings: java.lang.IllegalStateException: command '4 interface setcfg wlan0 0.0.0.0 0 down' failed with '400 4 Failed to set address (No such device)'
E/WifiHW ( 366): unexpected - found 0 phys in /sys/class/ieee80211
E/WifiHW ( 366): could not add P2P interface: -19
E/WifiHW ( 366): Wi-Fi - could not create p2p interface
E/WifiStateMachine( 366): Failed to start supplicant!
D/ProfileService( 366): Found active: 14a743a1-e6c1-48a0-a191-b9b2bae8c7d9
I/SystemServer( 366): Profile Manager
HERE you find full log:
peciuz said:
Hi everyone,
BLA BLA BLA
Click to expand...
Click to collapse
Well.
I forgot to say that i've rooted and installed jellybeam
Let's say i'd like to connect it to internet...
First way would be buy a new chip Jorjin WG7310 WLAN/BT/FM Combo Module and resoldering
Second way would be via usb tunnelling / reverse tethering throug usb cable but until now i wasn't able to make it work.
Any ideas or advices?
Thanks in advance,
Mirco
up
Here's how to use logcat:
There are two main ways to do a logcat, within android, and through adb.
Logcat within android can be done one of two ways, through a Logcat app:
Here are two good examples are either: CatLog or aLogcat
I prefer catlog, because in my opinion it has a little bit nicer UI. Both of these programs can dump their logs to a txt file, which is very useful for debugging. Or, you can do it in terminal emulator:
Open your terminal app;
Type:
Code:
su
logcat > /sdcard/logcat.txt
On the other hand, using adb to run logcat, in my opinion is much more useful, because you can start using it when android boots (i.e. once the boot animation appears.)
The code for logcat to output to a file is
Code:
adb logcat > name of problem.txt
you can also do
Code:
adb logcat -f name of problem.txt
how I prefer to do it is this way:
Code:
adb logcat -v long > name of problem.txt
with the -v flag & the long argument, it changes output to long style, which means every line of logcat will be on its own line (makes it a little neater, imo)
Note: When outputting to a file, you will see a newline, but nothing printed, this is normal. To stop logcat from writting to a file, you need to press ctrl+c.
Here's where using logcat (via adb makes life really easy)
Lets say you find a problem you're having after looking at a logcat.
For example:
When I was trying to use a different ramdisk, wifi wouldn't work so I got a logcat that's almost 1300 lines long (a lot of stuff happens in the background)
So if you are searching for an error in the logcat file (it's always e/ for error, f/ for fatal. Those are the two main things that will break a system.)
Code:
D/dalvikvm( 871): GC_CONCURRENT freed 472K, 6% free 10224K/10823K, paused 1ms+6ms
V/AmazonAppstore.DiskInspectorServiceImpl( 871): Available blocks: 21981, Block size: 4096, Free: 90034176, Threshold: 5242880, withinThreshold? true
D/AmazonAppstore.UpdateService( 871): Received action: null from intent: Intent { cmp=com.amazon.venezia/com.amazon.mas.client.framework.UpdateService }
W/AmazonAppstore.UpdateService( 871): Confused about why I'm running with this intent action: null from intent: Intent { cmp=com.amazon.venezia/com.amazon.mas.client.framework.UpdateService }
D/dalvikvm( 890): GC_CONCURRENT freed 175K, 4% free 9375K/9671K, paused 2ms+3ms
V/AmazonAppstore.ReferenceCounter( 871): Reference (MASLoggerDB) count has gone to 0. Closing referenced object.
E/WifiStateMachine( 203): Failed to reload STA firmware java.lang.IllegalStateException: Error communicating to native daemon
V/AmazonAppstore.UpdateService( 871): runUpdateCommand doInBackground started.
V/AmazonAppstore.UpdateService( 871): Running UpdateCommand: digitalLocker
V/AmazonAppstore.UpdateCommand( 871): Not updating key: digitalLocker from: 1334228488057
V/AmazonAppstore.UpdateService( 871): Finished UpdateCommand: digitalLocker
V/AmazonAppstore.UpdateService( 871): Running UpdateCommand: serviceConfig
V/AmazonAppstore.MASLoggerDB( 871): performLogMetric: Metric logged: ResponseTimeMetric [fullName=com.amazon.venezia.VeneziaApplication_onCreate, build=release-2.3, date=Wed Apr 11 13:10:55 CDT 2012, count=1, value=1601.0]
V/AmazonAppstore.MASLoggerDB( 871): onBackgroundTaskSucceeded: Metric logged: ResponseTimeMetric [fullName=com.amazon.venezia.VeneziaApplication_onCreate, build=release-2.3, date=Wed Apr 11 13:10:55 CDT 2012, count=1, value=1601.0]
W/CommandListener( 118): Failed to retrieve HW addr for eth0 (No such device)
D/CommandListener( 118): Setting iface cfg
D/NetworkManagementService( 203): rsp
D/NetworkManagementService( 203): flags
E/WifiStateMachine( 203): Unable to change interface settings: java.lang.IllegalStateException: Unable to communicate with native daemon to interface setcfg - com.android.server.NativeDaemonConnectorException: Cmd {interface setcfg eth0 0.0.0.0 0 [down]} failed with code 400 : {Failed to set address (No such device)}
W/PackageParser( 203): Unknown element under : supports-screen at /mnt/asec/com.android.aldiko-1/pkg.apk Binary XML file line #16
D/wpa_supplicant( 930): wpa_supplicant v0.8.x
D/wpa_supplicant( 930): random: Trying to read entropy from /dev/random
D/wpa_supplicant( 930): Initializing interface 'eth0' conf '/data/misc/wifi/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
D/wpa_supplicant( 930): Configuration file '/data/misc/wifi/wpa_supplicant.conf' -> '/data/misc/wifi/wpa_supplicant.conf'
D/wpa_supplicant( 930): Reading configuration file '/data/misc/wifi/wpa_supplicant.conf'
D/wpa_supplicant( 930): ctrl_interface='eth0'
D/wpa_supplicant( 930): update_config=1
D/wpa_supplicant( 930): Line: 4 - start of a new network block
D/wpa_supplicant( 930): key_mgmt: 0x4
(mind you, that's 29 lines out of 1300ish, just for example)
I then could do the following with logcat:
Code:
adb logcat WifiStateMachine:E *:S -v long > name of problem.txt
and this will only print out any errors associated with WifiStateMachine, and anything which is fatal, which makes it about a million times easier to figure out what's going on!
In WifiStateMachine:E, the :E = to look for Errors, the full list of options is as follows:
V — Verbose (lowest priority)
D — Debug
I — Info (default priority)
W — Warning
E — Error
F — Fatal
S — Silent (highest priority, on which nothing is ever printed)
You can replace the :E with any other letter from above to get more info.
In order to filter out anything other than what you are looking for (in this case, WifiStateMachine) you must put a *:S after your last command (i.e. WifiStateMachine:E ThemeChoose:V ... ... AndroidRuntime:E *:S)
Sources: http://developer.android.com/tools/help/logcat.html
http://developer.android.com/tools/help/adb.html
Nice guide.
gonna bookmark this Thanks!
Some folks are trying to find an exploit for another Android device. I tried to apply it to the Fire TV stick, but the exploitServiceApp.apk won't install.
http://forum.xda-developers.com/not...t-progress-t2961974/post58464146#post58464146
Sizzlechest said:
Some folks are trying to find an exploit for another Android device. I tried to apply it to the Fire TV stick, but the exploitServiceApp.apk won't install.
http://forum.xda-developers.com/not...t-progress-t2961974/post58464146#post58464146
Click to expand...
Click to collapse
exploitServiceApp.apk was built with a minimum sdk version of 18. The Fire TV and Fire TV Stick run sdk version 17. That's why it wont install. It also seems to require mock locations to be enabled, which may prove to be a chore on the AFTV/S. Of Course this all assumes the AFTV/S is vulnerable to begin with.
Root sources seem to be:
http://forum.xda-developers.com/mate-7/general/wip-mate-7-root-bl-unlock-t2995086/
and
http://forum.xda-developers.com/crossdevice-dev/sony/giefroot-rooting-tool-cve-2014-4322-t3011598
What would happen, if you would try to rebuild it with APK Tool and change the min sdk to 17?
I just did it with the Advanced APK Tool and attatched it to this posting. I'm not at home right now so I can't test it on my own.
APK-Info.exe says its a valid apk and the minimum sdk version is 17.
Important note: I'm not responsible for damaging your device if this somehow does.
It depends on the exploit, I read on another topic that it's based on a specific location in memory (or something like that).
That's presuming that it's even possible.
In regards to mock locations, is it possible to set it using the aosp settings apk?
It does install, but it goes straight to home after loading. Maybe it does work if it's possible to enable mock locations.
tech3475 said:
In regards to mock locations, is it possible to set it using the aosp settings apk?
Click to expand...
Click to collapse
Trying to access developer options (which is where the mock location setting is) causes settings.apk to crash.
bigwillie1 said:
It does install, but it goes straight to home after loading. Maybe it does work if it's possible to enable mock locations.
Click to expand...
Click to collapse
Odd, on a Fire TV Stick (running latest OS version) @androidyeah's app launches fine. However, it just displays the message "Note: Your device seems not vulnerable!" in the upper right corner.
AFTVnews.com said:
Trying to access developer options (which is where the mock location setting is) causes settings.apk to crash.
Click to expand...
Click to collapse
Anyone tried any debugging yet on that part?
AFTVnews.com said:
Odd, on a Fire TV Stick (running latest OS version) @androidyeah's app launches fine. However, it just displays the message "Note: Your device seems not vulnerable!" in the upper right corner.
Click to expand...
Click to collapse
I guess if FTV Stick + FTV using similar base firmwares, it is already patched or something :/
androidyeah said:
Anyone tried any debugging yet on that part?
Click to expand...
Click to collapse
Code:
V/AudioFlinger( 329): Audio hardware entering standby, mixer 0x40100008, suspend count 0
D/AudioStreamOutALSA( 329): AudioStreamOut: standby()
V/AudioFlinger( 329): releaseWakeLock_l() AudioOut_2
V/AudioFlinger( 329): thread 0x40100008 type 0 TID 712 going to sleep
V/AudioFlinger( 329): createTrack() sessionId: 0
V/AudioFlinger( 329): createTrack() lSessionId: 99
V/AudioFlinger( 329): AUDIO_OUTPUT_FLAG_FAST denied: isTimed=0 sharedBuffer=0x0 frameCount=3763 mFrameCount=256 format=1 isLinear=1 channelMask=0x1 sampleRate=44100 mSampleRate=48000 hasFastMixer=1 tid=7528 fastTrackAvailMask=0xfe
V/AudioFlinger( 329): Track constructor name 4100, calling pid 691
V/AudioFlinger( 329): acquiring 99 from 691
V/AudioFlinger( 329): added new entry for 99
V/AudioFlinger( 329): start(4100), calling pid 691 session 99
V/AudioFlinger( 329): ? => ACTIVE (4100) on thread 0x40f9a808
V/AudioFlinger( 329): mWaitWorkCV.broadcast
V/AudioFlinger( 329): thread 0x40100008 type 0 TID 712 waking up
V/AudioFlinger( 329): acquireWakeLock_l() AudioOut_2 status 0
V/AudioFlinger( 329): releasing 98 from 691
V/AudioFlinger( 329): decremented refcount to 0
V/AudioFlinger( 329): purging stale effects
V/AudioFlinger( 329): remove track (4098) and delete from mixer
V/AudioFlinger( 329): PlaybackThread::Track destructor
I/ActivityManager( 691): START u0 {act=android.intent.action.MAIN cmp=com.android.settings/.SubSettings (has extras)} from pid 7424
D/dalvikvm( 691): GC_FOR_ALLOC freed 957K, 30% free 8019K/11344K, paused 37ms, total 39ms
I/ViewRootImpl( 7424): Slow KeyEvent in com.android.settings/com.android.settings.Settings device=8 action=Up latency=3ms processing=54ms
I/Activity( 7424): No ActvityExender defined. Proceed with default activity behavior.
D/AndroidRuntime( 7424): Shutting down VM
W/dalvikvm( 7424): threadid=1: thread exiting with uncaught exception (group=0x40dc2af8)
V/AudioFlinger( 329): getNextBuffer() no more data for track 4100 on thread 0x40100008
V/AudioFlinger( 329): stop(4100), calling pid 691
V/AudioFlinger( 329): not stopping/stopped => stopping/stopped (4100) on thread 0x40100008
E/AndroidRuntime( 7424): FATAL EXCEPTION: main
E/AndroidRuntime( 7424): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: java.lang.SecurityException: Only package verification agents can read the verifier device identity: Neither user 10001 nor current process has android.permission.PACKAGE_VERIFICATION_AGENT.
E/AndroidRuntime( 7424): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2206)
E/AndroidRuntime( 7424): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2258)
E/AndroidRuntime( 7424): at android.app.ActivityThread.access$600(ActivityThread.java:146)
E/AndroidRuntime( 7424): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1243)
E/AndroidRuntime( 7424): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 7424): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 7424): at android.app.ActivityThread.main(ActivityThread.java:5129)
E/AndroidRuntime( 7424): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 7424): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 7424): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
E/AndroidRuntime( 7424): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
E/AndroidRuntime( 7424): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 7424): Caused by: java.lang.SecurityException: Only package verification agents can read the verifier device identity: Neither user 10001 nor current process has android.permission.PACKAGE_VERIFICATION_AGENT.
E/AndroidRuntime( 7424): at android.os.Parcel.readException(Parcel.java:1426)
E/AndroidRuntime( 7424): at android.os.Parcel.readException(Parcel.java:1380)
E/AndroidRuntime( 7424): at android.content.pm.IPackageManager$Stub$Proxy.getVerifierDeviceIdentity(IPackageManager.java:3381)
E/AndroidRuntime( 7424): at android.app.ApplicationPackageManager.getVerifierDeviceIdentity(ApplicationPackageManager.java:1295)
E/AndroidRuntime( 7424): at com.android.settings.DevelopmentSettings.onCreate(DevelopmentSettings.java:143)
E/AndroidRuntime( 7424): at android.app.Fragment.performCreate(Fragment.java:1673)
E/AndroidRuntime( 7424): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:854)
E/AndroidRuntime( 7424): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1057)
E/AndroidRuntime( 7424): at android.app.BackStackRecord.run(BackStackRecord.java:682)
E/AndroidRuntime( 7424): at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1435)
E/AndroidRuntime( 7424): at android.app.Activity.performStart(Activity.java:5220)
E/AndroidRuntime( 7424): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2179)
E/AndroidRuntime( 7424): ... 11 more
V/AudioFlinger( 329): presentationComplete() reset: mPresentationCompleteFrames 8192 audioHalFrames 3072
W/ActivityManager( 691): Force finishing activity com.android.settings/.SubSettings
I/Process ( 7424): Sending signal. PID: 7424 SIG: 9
W/ActivityManager( 691): Force finishing activity com.android.settings/.Settings
I/ActivityManager( 691): Process com.android.settings (pid 7424) has died.
I/WindowState( 691): WIN DEATH: Window{414bef98 u0 com.android.settings/com.android.settings.Settings}
D/FIRED-TV( 2488): Settings Loaded from /data/data/com.altusapps.firedtvlauncher/files/settings2.json
V/AudioFlinger( 329): presentationComplete() session 99 complete: framesWritten 8192
V/AudioFlinger( 329): TrackBase::reset
W/ContextImpl( 691): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1353 com.android.server.am.ActivityManagerService.activityResumed:4547 android.app.ActivityManagerNative.onTransact:420 com.android.server.am.ActivityManagerService.onTransact:1716 android.os.Binder.execTransact:351
W/InputMethodManagerService( 691): Got RemoteException sending setActive(false) notification to pid 7424 uid 10001
W/ContextImpl( 691): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1353 com.amazon.internal.policy.impl.AmazonPhoneWindowManager$SendTopWindowChanged.run:3297 android.os.Handler.handleCallback:725 android.os.Handler.dispatchMessage:92 android.os.Looper.loop:137
D/Bluetooth HS/HF( 1355): HandleMessage9
D/Bluetooth HS/HF( 1355): Battery State Changed, send update100Scale: 100
D/FIRED-TV( 2488): Settings Saved to /data/data/com.altusapps.firedtvlauncher/files/settings2.json
V/AudioFlinger( 329): Audio hardware entering standby, mixer 0x40100008, suspend count 0
D/AudioStreamOutALSA( 329): AudioStreamOut: standby()
V/AudioFlinger( 329): releaseWakeLock_l() AudioOut_2
V/AudioFlinger( 329): thread 0x40100008 type 0 TID 712 going to sleep
I/ThermalDaemon( 336): Sensor[tmp105_2_pwrs] Temperature : 35.0
I/TemperatureSensorObserver( 691): read new temperature 35500
I/abtfilt ( 1775): all HID in sniff mode!
I/abtfilt ( 1775): BT Action
I/abtfilt ( 1775): WMI Cmd: 145 Len: 16
maybe someone finds this useful...
AFTVnews.com said:
Trying to access developer options (which is where the mock location setting is) causes settings.apk to crash.
Odd, on a Fire TV Stick (running latest OS version) @androidyeah's app launches fine. However, it just displays the message "Note: Your device seems not vulnerable!" in the upper right corner.
Click to expand...
Click to collapse
If you want to enable mock locations or change any other settings this is the way to go (does not require root):
http://forum.xda-developers.com/fire-tv/general/guide-change-settings-firetv-via-adb-t3015522
thought i would share this as people keep using on how manipulate the settings.db
I have done some root app development and stumbled across this binary a while ago.
Have fun!
superkoal said:
If you want to enable mock locations or change any other settings this is the way to go (does not require root):
http://forum.xda-developers.com/fire-tv/general/guide-change-settings-firetv-via-adb-t3015522
thought i would share this as people keep using on how manipulate the settings.db
I have done some root app development and stumbled across this binary a while ago.
Have fun!
Click to expand...
Click to collapse
That's a great tip, thanks.
Running "settings get secure allow_mock_location" returns "null". I went ahead and ran "settings put secure allow_mock_location 1" and "settings put secure ALLOW_MOCK_LOCATION 1" but it doesn't seem to have done anything. The exploitServiceApp APK still gives the same message. I sideloaded some location spoofing app from the Play Store and it complained that mock locations were not enabled.
superkoal said:
If you want to enable mock locations or change any other settings this is the way to go (does not require root):
http://forum.xda-developers.com/fire-tv/general/guide-change-settings-firetv-via-adb-t3015522
thought i would share this as people keep using on how manipulate the settings.db
I have done some root app development and stumbled across this binary a while ago.
Have fun!
Click to expand...
Click to collapse
thanks, i tried it using
Code:
settings put secure mock_location 1
but the app still goes directly to the home screen...
Code:
V/AudioFlinger( 329): Audio hardware entering standby, mixer 0x40100008, suspend count 0
D/AudioStreamOutALSA( 329): AudioStreamOut: standby()
V/AudioFlinger( 329): releaseWakeLock_l() AudioOut_2
V/AudioFlinger( 329): thread 0x40100008 type 0 TID 712 going to sleep
I/ActivityManager( 691): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=org.keenteam cmp=org.keenteam/.ServiceExploitActivity} from pid 18589
D/dalvikvm( 691): GC_FOR_ALLOC freed 521K, 23% free 10295K/13204K, paused 40ms, total 40ms
I/ViewRootImpl(18589): Slow KeyEvent in com.amazon.tv.settings/com.amazon.tv.settings.tv.BuellerApplicationDetailSettingsActivity device=10 action=Up latency=1ms processing=61ms
I/ActivityManager( 691): Start proc org.keenteam for activity org.keenteam/.ServiceExploitActivity: pid=19348 uid=10007 gids={50007, 1028}
W/ContextImpl(18589): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1339 android.app.Instrumentation.sendLifecycleEventBroadcast:1786 android.app.Instrumentation.callActivityOnStop:1303 android.app.Activity.performStop:5412 android.app.ActivityThread.performStopActivityInner:3197
W/ContextImpl( 691): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1353 com.amazon.internal.policy.impl.AmazonPhoneWindowManager$SendTopWindowChanged.run:3297 android.os.Handler.handleCallback:725 android.os.Handler.dispatchMessage:92 android.os.Looper.loop:137
E/Trace (19348): error opening trace file: No such file or directory (2)
D/ProfileManager(19348): Create ProfileManager instance
W/ContextImpl(18589): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1339 android.app.Instrumentation.sendLifecycleEventBroadcast:1786 android.app.Instrumentation.callActivityOnStop:1303 android.app.Activity.performStop:5412 android.app.ActivityThread.performStopActivityInner:3197
I/Activity(19348): No ActvityExender defined. Proceed with default activity behavior.
D/dalvikvm(19348): Trying to load lib /data/app-lib/org.keenteam-1/libexploitHelper.so 0x4109cdf0
D/dalvikvm(19348): Added shared lib /data/app-lib/org.keenteam-1/libexploitHelper.so 0x4109cdf0
D/dalvikvm(19348): No JNI_OnLoad found in /data/app-lib/org.keenteam-1/libexploitHelper.so 0x4109cdf0, skipping init
I/System.out(19348): 1 inner classes found
D/AndroidRuntime(19348): Shutting down VM
W/dalvikvm(19348): threadid=1: thread exiting with uncaught exception (group=0x40dc2af8)
E/AndroidRuntime(19348): FATAL EXCEPTION: main
E/AndroidRuntime(19348): java.lang.RuntimeException: Unable to start activity ComponentInfo{org.keenteam/org.keenteam.ServiceExploitActivity}: java.lang.RuntimeException: java.lang.NoSuchFieldException: TRANSACTION_setApplicationRestrictions
E/AndroidRuntime(19348): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2206)
E/AndroidRuntime(19348): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2258)
E/AndroidRuntime(19348): at android.app.ActivityThread.access$600(ActivityThread.java:146)
E/AndroidRuntime(19348): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1243)
E/AndroidRuntime(19348): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(19348): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(19348): at android.app.ActivityThread.main(ActivityThread.java:5129)
E/AndroidRuntime(19348): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(19348): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(19348): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
E/AndroidRuntime(19348): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
E/AndroidRuntime(19348): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(19348): Caused by: java.lang.RuntimeException: java.lang.NoSuchFieldException: TRANSACTION_setApplicationRestrictions
E/AndroidRuntime(19348): at org.keenteam.exploit_CVE_2014_7911.do_exploit(exploit_CVE_2014_7911.java:106)
E/AndroidRuntime(19348): at org.keenteam.ServiceExploitActivity.onCreate(ServiceExploitActivity.java:34)
E/AndroidRuntime(19348): at android.app.Activity.performCreate(Activity.java:5202)
E/AndroidRuntime(19348): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1088)
E/AndroidRuntime(19348): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2170)
E/AndroidRuntime(19348): ... 11 more
E/AndroidRuntime(19348): Caused by: java.lang.NoSuchFieldException: TRANSACTION_setApplicationRestrictions
E/AndroidRuntime(19348): at java.lang.Class.getDeclaredField(Class.java:631)
E/AndroidRuntime(19348): at org.keenteam.exploit_CVE_2014_7911.do_exploit(exploit_CVE_2014_7911.java:80)
E/AndroidRuntime(19348): ... 15 more
W/ActivityManager( 691): Force finishing activity org.keenteam/.ServiceExploitActivity
D/dalvikvm( 691): GC_FOR_ALLOC freed 1713K, 24% free 10123K/13204K, paused 51ms, total 51ms
I/Process (19348): Sending signal. PID: 19348 SIG: 9
W/ActivityManager( 691): Force finishing activity com.amazon.tv.settings/.tv.BuellerApplicationDetailSettingsActivity
I/ActivityManager( 691): Process org.keenteam (pid 19348) has died.
W/ContextImpl(18589): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1339 android.app.Instrumentation.sendLifecycleEventBroadcast:1786 android.app.Instrumentation.callActivityOnStart:1212 android.app.Activity.performStart:5223 android.app.Activity.performRestart:5291
W/ContextImpl(18589): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1339 android.app.Instrumentation.sendLifecycleEventBroadcast:1786 android.app.Instrumentation.callActivityOnStart:1212 android.app.Activity.performStart:5223 android.app.Activity.performRestart:5291
W/ContextImpl(18589): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1339 android.app.Instrumentation.sendLifecycleEventBroadcast:1786 android.app.Instrumentation.callActivityOnResume:1265 android.app.Activity.performResume:5313 android.app.ActivityThread.performResumeActivity:2761
I/AudioManager(18589): Cleared FLAG_SHOW_UI in setStreamVolume
I/AudioManager(18589): Cleared FLAG_SHOW_UI in setStreamVolume
E/MM_OSAL ( 329): ValidateAACFile failed
D/MediaExtractor( 329): returning default extractor
D/ ( 329): MPQ Mime Type: audio/raw, getMPQObjectsAlive = 0
I/ ( 329): MPQ Audio Enabled - MPQ Audio Player
D/ ( 329): Use tunnel player only for AUDIO_STREAM_MUSIC
D/ ( 329): Set Audio Track as Audio Source
D/ ( 329): MPQ Audio Player
D/ ( 329): MPQ Audio player created for mime audio/raw duration 342083
W/ ( 329): Trying to create tunnel player mIsTunnelAudio 0, LPAPlayer::objectsAlive 0, TunnelPlayer::mTunnelObjectsAlive = 0, (mAudioPlayer == NULL) 0
E/ ( 329): Audio Player set source
W/MPQAudioPlayer( 329): Sw Decoder
E/MM_OSAL ( 329): ValidateAACFile failed
D/MediaExtractor( 329): returning default extractor
D/ ( 329): MPQ Mime Type: audio/raw, getMPQObjectsAlive = 0
I/ ( 329): MPQ Audio Enabled - MPQ Audio Player
D/ ( 329): Use tunnel player only for AUDIO_STREAM_MUSIC
D/ ( 329): Set Audio Track as Audio Source
D/ ( 329): MPQ Audio Player
D/ ( 329): MPQ Audio player created for mime audio/raw duration 54833
W/ ( 329): Trying to create tunnel player mIsTunnelAudio 0, LPAPlayer::objectsAlive 0, TunnelPlayer::mTunnelObjectsAlive = 0, (mAudioPlayer == NULL) 0
E/ ( 329): Audio Player set source
W/MPQAudioPlayer( 329): Sw Decoder
W/ContextImpl( 691): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1353 com.android.server.am.ActivityManagerService.activityResumed:4547 android.app.ActivityManagerNative.onTransact:420 com.android.server.am.ActivityManagerService.onTransact:1716 android.os.Binder.execTransact:351
E/MM_OSAL ( 329): ValidateAACFile failed
D/MediaExtractor( 329): returning default extractor
D/ ( 329): MPQ Mime Type: audio/raw, getMPQObjectsAlive = 0
I/ ( 329): MPQ Audio Enabled - MPQ Audio Player
D/ ( 329): Use tunnel player only for AUDIO_STREAM_MUSIC
D/ ( 329): Set Audio Track as Audio Source
D/ ( 329): MPQ Audio Player
D/ ( 329): MPQ Audio player created for mime audio/raw duration 259854
W/ ( 329): Trying to create tunnel player mIsTunnelAudio 0, LPAPlayer::objectsAlive 0, TunnelPlayer::mTunnelObjectsAlive = 0, (mAudioPlayer == NULL) 0
E/ ( 329): Audio Player set source
W/MPQAudioPlayer( 329): Sw Decoder
W/ContextImpl( 691): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1353 com.amazon.internal.policy.impl.AmazonPhoneWindowManager$SendTopWindowChanged.run:3297 android.os.Handler.handleCallback:725 android.os.Handler.dispatchMessage:92 android.os.Looper.loop:137
W/ContextImpl(18589): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1339 android.app.Instrumentation.sendLifecycleEventBroadcast:1786 android.app.Instrumentation.callActivityOnStop:1303 android.app.Activity.performStop:5412 android.app.ActivityThread.performDestroyActivity:3468
I/abtfilt ( 1775): all HID in sniff mode!
I/abtfilt ( 1775): BT Action
I/abtfilt ( 1775): WMI Cmd: 145 Len: 16
AFTVnews.com said:
That's a great tip, thanks.
Running "settings get secure allow_mock_location" returns "null". I went ahead and ran "settings put secure allow_mock_location 1" and "settings put secure ALLOW_MOCK_LOCATION 1" but it doesn't seem to have done anything. The exploitServiceApp APK still gives the same message. I sideloaded some location spoofing app from the Play Store and it complained that mock locations were not enabled.
Click to expand...
Click to collapse
The constant value is just "mock_location", you can see it if you click the constant name in the android docs.
So try "settings put secure mock_location 1"
If you try to get the value first and it doesn't return null it means your parameter name is right. I recommend not to insert values in the table that are not there before.
On another note,
https://access.redhat.com/articles/1332213
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-0235
Wonder if that glibc bug could be used to gain root on certain Android devices.
freezer2k said:
On another note,
https://access.redhat.com/articles/1332213
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-0235
Wonder if that glibc bug could be used to gain root on certain Android devices.
Click to expand...
Click to collapse
Android doesn't use glibc.
freezer2k said:
On another note,
https://access.redhat.com/articles/1332213
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-0235
Wonder if that glibc bug could be used to gain root on certain Android devices.
Click to expand...
Click to collapse
Haha, had a follow-up meeting about that same vulnerability at work today!
This was posted today: http://forum.xda-developers.com/showpost.php?p=58510300&postcount=641