[Update: I went from MoDaCo 2.5 to MoDaCo 2.8 and all is well now. I'll leave the info below in case anyone else has the same problem ]
Hello,
I'm unable to Wirelessly tether my Hero/MoDaCo 2.5.
Using "Wireless Tether for Root users" (included in MoDaCo2.5) When I click Start Tether, I get the message "Unable to start tethering. Please try again later".
Doing an adb logcat, I see:
Code:
D/TETHER -> MainActivity(14946): StartBtn pressed ...
D/TETHER -> TetherApplication(14946): Check for mobile-data-connection!
D/TETHER -> TetherApplication(14946): Waiting until connection is established ...
D/TETHER -> CoreTask(14946): Reading lines from file: /data/data/android.tether/conf/dnsmasq.conf
D/TETHER -> CoreTask(14946): No need to update DNS-Servers: 193.35.132.165,193.35.132.164
D/TETHER -> CoreTask(14946): Root-Command ==> su -c "/data/data/android.tether/bin/tether start"
D/su (15015): 10043:10043 /system/bin/sh executing 0:0 /data/data/android.tether/bin/tether start
D/TETHER -> MainActivity(14946): Unable to start tethering!
I/NotificationService( 108): enqueueToast pkg=android.tether [email protected] duration=1
D/TETHER -> CoreTask(14946): Reading lines from file: /proc/sys/net/ipv4/ip_forward
A bit more info. When I try to recopy the config files, I see this:
Code:
D/TETHER -> SetupActivity(15298): Menuitem:getId - 0 -- (Re)-Install binaries/configs
D/TETHER -> TetherApplication(15298): Copying file '/data/data/android.tether/library/libNativeTask.so' ...
D/TETHER -> CoreTask(15298): Reading lines from file: /data/data/android.tether/conf/lan_network.conf
D/TETHER -> CoreTask(15298): Unexpected error - Here is what I know: /data/data/android.tether/conf/lan_network.conf
D/TETHER -> TetherApplication(15298): Copying file '/data/data/android.tether/bin/tether' ...
D/TETHER -> TetherApplication(15298): Copying file '/data/data/android.tether/bin/dnsmasq' ...
D/dalvikvm(15298): GC freed 1243 objects / 359000 bytes in 108ms
W/InputManagerService( 108): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodC [email protected]
D/TETHER -> TetherApplication(15298): Copying file '/data/data/android.tether/bin/pand' ...
D/TETHER -> TetherApplication(15298): Copying file '/data/data/android.tether/bin/blue-up.sh' ...
D/TETHER -> TetherApplication(15298): Copying file '/data/data/android.tether/bin/blue-down.sh' ...
I/JNI (15298): Trying to load libNativeTask.so
D/dalvikvm(15298): Trying to load lib /data/data/android.tether/library/libNativeTask.so 0x4354edc0
D/dalvikvm(15298): Added shared lib /data/data/android.tether/library/libNativeTask.so 0x4354edc0
D/dalvikvm(15298): No JNI_OnLoad found in /data/data/android.tether/library/libNativeTask.so 0x4354edc0
D/dalvikvm(15298): +++ not scanning '/system/lib/libwebcore.so' for 'runCommand' (wrong CL)
D/dalvikvm(15298): +++ not scanning '/system/lib/libmedia_jni.so' for 'runCommand' (wrong CL)
D/TETHER -> TetherApplication(15298): Copying file '/data/data/android.tether/conf/dnsmasq.conf' ...
D/TETHER -> CoreTask(15298): Reading lines from file: /data/data/android.tether/conf/dnsmasq.conf
D/TETHER -> TetherApplication(15298): Copying file '/data/data/android.tether/conf/tiwlan.ini' ...
D/TETHER -> TetherApplication(15298): Copying file '/data/data/android.tether/conf/version' ...
Any ideas?
Thanks
With 2.8 I got a force close when I started Wifi Tethering.
I went to the Google code page of the devs and downloaded the APK from there. I installed it and it is running like a charm.
Maybe you can do the same.
Related
I think this one is definitely needed for this forum. 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.
Don't be a noob. Be a newbie..!!
Details here.
Great Guide! Should become a sticky.
You know,today morning you said you were not an expert with logcats.I see this thread and i am awestruck,but then i read the second last line :|
Prawesome said:
You know,today morning you said you were not an expert with logcats.I see this thread and i am awestruck,but then i read the second last line :|
Click to expand...
Click to collapse
I said i am no expert. That doesn't mean i cannot take, read or understand logcat..!!
Don't be a noob. Be a newbie..!!
Details here.
This thread is perfect to be a sticky in the Android Development Section.
Newcommers should know how to properly report bugs. I also leave a redirect in the Original Android Development.
I rather use ddms for all
Command prompt is the most basic thing same old Windows
Sent from my GT-P7300 using xda app-developers app
helped me out. Thanks
Fro "noobs" it will be easier to use qtadb https://qtadb.wordpress.com/download/ , just download, install and run. Nice GUI for adb, contains access to logcat too.
Fro "noobs" it will be easier to use qtadb https://qtadb.wordpress.com/download/ , just download, install and run. Nice GUI for adb, contains access to logcat too.
Click to expand...
Click to collapse
And it colours out errors according to their priority
I am a potato, problem?
Thanks bro
Sent from my GT-S5830 using Tapatalk 2
Extremely useful,
thank you!
However, catlog force closes when I added it as system app.
How can i get application specific logcat like i want to get logcat of systemui only
Really helpful!
Aman
Wysłane z mojego GT-I8190 przy użyciu Tapatalka
Thanks Sir...its helped me a lot..about understanding logcat
---------- Post added at 07:17 AM ---------- Previous post was at 07:12 AM ----------
Thanks Sir...its helped me a lot..about understanding logcat
Always frustrated to manually perform these 3 steps
1) viewbin.exe nk.bin => write down START and LENGTH
2) cvrtbin -r -a START -w 32 -l LENGTH nk.bin
3) dumprom.exe -d dump -v -5 nk.nb0
Click to expand...
Click to collapse
needed to dump a NK.BIN? You can get helped by using CREATEDUMP.BAT instead, a one-click-solution.
Supposed you already have folder 'Nkbintools' at your desktop PC, you simply put CREATEDUMP.BAT in folder 'Nkbintools', also copy the NK.BIN file to be dumped into folder 'Nkbintools' and run CREATEDUMP.BAT.
Code:
@ECHO OFF
cls
REM Purpose: This batch file creates complete dump of NK.BIN provided
REM Author: jwoegerbauer
REM Date: 2013-01-03
REM License: GPL v3
REM
:START
if "%~1" == "" (
echo CREATEDUMP.BAT&echo Using NK.BIN in current directory
set nkbin=nk.bin
) else (
set nkbin="%~1"
)
setlocal enabledelayedexpansion
if not exist %nkbin% goto :FAILURE1
REM clean up
if exist viewbin.txt del viewbin.txt
if exist nk.nb0 del nk.nb0
REM determine start and length of NK.BIN
echo Determining exact length of %nkbin% ...
viewbin %nkbin% > viewbin.txt
if not exist viewbin.txt goto :FAILURE2
REM
REM that's how contents of first 2 lines of file viewbin.txt might look
REM ViewBin... nk.bin
REM Image Start = 0x80100000, length = 0x01EDAD34
REM
set start=""
set length=""
for /f "skip=1 tokens=2,4 delims=,=" %%A in (viewbin.txt) do (
set start=%%A
for /f %%N in ("%%A") do set start=%%N
set length=%%B
for /f %%N in ("%%B") do set length=%%N
goto :BREAK
)
:BREAK
if ".%start%" == "." goto :FAILURE3
if ".%length%" == "." goto :FAILURE3
REM convert the nk.bin provided to a nk.nb0
echo Converting %nkbin% to nk.nb0 ...
cvrtbin -r -a %start% -w 32 -l %length% %nkbin% > NUL
if not exist nk.nb0 goto :FAILURE4
REM content of the nk.nb0 will be written in the directory "dump".
REM directory dump must exist, otherwise an error occurs.
mkdir dump > NUL
echo Extracting all files and modules from the kernel&echo This may take some minutes ...
dumprom -d dump -v -5 nk.nb0 > NUL
echo Dumping finshed&echo Dumped files should be in ..\dump&goto :END
:FAILURE1
echo Error:&echo File nk.bin not found&echo Aborting ...&goto :END
:FAILURE2
echo Error:&echo Failed to create file viewbin.txt&echo Aborting ...&goto :END
:FAILURE3
echo Error:&echo Failed to determine image's start and/or length&echo Aborting ...&goto :END
:FAILURE4
echo Error:&echo Failed to create temporary file nk.nb0&echo Aborting ...
:END
endlocal
pause
@ECHO ON
exit
For your convenience I have uploaded the whole 'Nkbintools' package here.
UPDATE:
The Dumprom.exe in 'Nkbintools' package provided sets the 'machine type" for all PE-files dumped as MIPS R4000. Might be that's not what you wanted. Hence you should know that Dumprom.exe contains at offset 0x1E64 the "machine type" for the PE-files it generates.
Examples:
C0 01 => 0x1C0 => ARM
C2 01 => 0x1C2 => ARM Thumb
66 01 => 0x166 => MIPS R4000
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Advice: Simply hex-edit Dumprom.exe ...
And you always can manually rewrite each dumped PE-file's "machine type" using CFF Explorer ...
Enjoy!
corrected [BATCH]CREATEDUMP.BAT - Dumping a NK.BIN made easy
Thanks for the script. Here is the batch working also within Win7 command prompt:
Code:
@ECHO OFF
cls
REM Purpose: This batch file creates complete dump of NK.BIN provided
REM Author: jwoegerbauer
REM Date: 2013-01-03
REM License: GPL v3
REM
:START
if "%~1" == "" (
echo CREATEDUMP.BAT&echo Using NK.BIN in current directory
set nkbin=nk.bin
) else (
set nkbin="%~1"
)
echo Using %nkbin%
REM pause
setlocal enabledelayedexpansion
if not exist %nkbin% goto :FAILURE1
REM clean up
if exist viewbin.txt del viewbin.txt
if exist nk.nb0 del nk.nb0
REM determine start and length of NK.BIN
echo Determining exact length of %nkbin% ...
REM remove double quotes around var as viewbin does not like these
set nkbin=%nkbin:"=%
viewbin.exe %nkbin% > viewbin.txt
REM pause
if not exist viewbin.txt goto :FAILURE2
REM
REM that's how contents of first 2 lines of file viewbin.txt might look
REM ViewBin... nk.bin
REM Image Start = 0x80100000, length = 0x01EDAD34
REM
set start=""
set length=""
for /f "skip=1 tokens=2,4 delims=,=" %%A in (viewbin.txt) do (
set start=%%A
for /f %%N in ("%%A") do set start=%%N
set length=%%B
for /f %%N in ("%%B") do set length=%%N
goto :BREAK
)
:BREAK
if ".%start%" == "." goto :FAILURE3
if ".%length%" == "." goto :FAILURE3
REM convert the nk.bin provided to a nk.nb0
set NKBIN0=%nkbin:.bin=.nb0%
echo Converting %nkbin% to %NKBIN0% ...
cvrtbin -r -a %start% -w 32 -l %length% %nkbin% > NUL
if not exist %NKBIN0% goto :FAILURE4
REM content of the nk.nb0 will be written in the directory "dump".
REM directory dump must exist, otherwise an error occurs.
mkdir dump > NUL
echo Extracting all files and modules from the kernel&echo This may take some minutes ...
dumprom -d dump -v -5 %NKBIN0% > NUL
echo Dumping finshed&echo Dumped files should be in ..\dump&goto :END
:FAILURE1
echo Error:&echo File nk.bin not found&echo Aborting ...&goto :END
:FAILURE2
echo Error:&echo Failed to create file viewbin.txt&echo Aborting ...&goto :END
:FAILURE3
echo Error:&echo Failed to determine image's start and/or length&echo Aborting ...&goto :END
:FAILURE4
echo Error:&echo Failed to create temporary file nb0 file&echo Aborting ...
:END
endlocal
pause
@ECHO ON
REM exit
THANKS
Hi guys,
Sorry if posting the wrong place, but I figured General would be the safest place to put this..
I just rotted my phone again yesterday, and it worked great (using Samsung Galaxy S3 ToolKit v7.0.0)
I have root access, and it all works as it should on the phone.
However, I do have one problem now.
When I was rooting the phone, I had to choose which model. I Have the I9300XXELL4 version, but I used ELLA (both is JZ054K).
I'm using Eclipse to develop apps to my device, and now I cant test my apps on my phone.
When I do "Run as-> Android Application" to puch it to my device, this is the error I'm getting:
Code:
[2013-01-24 11:44:56 - GameTutorial_001] Installation failed due to invalid APK file!
[2013-01-24 11:44:56 - GameTutorial_001] Please check logcat output for more details.
[2013-01-24 11:44:56 - GameTutorial_001] Launch canceled!
And from LogCat I get this:
Code:
01-24 11:44:51.186: D/AndroidRuntime(8724): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
01-24 11:44:51.186: D/AndroidRuntime(8724): CheckJNI is OFF
01-24 11:44:51.191: D/AndroidRuntime(8724): setted country_code = Nordic
01-24 11:44:51.191: D/AndroidRuntime(8724): setted countryiso_code = SE
01-24 11:44:51.196: D/AndroidRuntime(8724): setted sales_code = NEE
01-24 11:44:51.196: D/AndroidRuntime(8724): readGMSProperty: start
01-24 11:44:51.196: D/AndroidRuntime(8724): readGMSProperty: already setted!!
01-24 11:44:51.201: D/AndroidRuntime(8724): readGMSProperty: end
01-24 11:44:51.216: D/dalvikvm(8724): Trying to load lib libjavacore.so 0x0
01-24 11:44:51.226: D/dalvikvm(8724): Added shared lib libjavacore.so 0x0
01-24 11:44:51.236: D/dalvikvm(8724): Trying to load lib libnativehelper.so 0x0
01-24 11:44:51.236: D/dalvikvm(8724): Added shared lib libnativehelper.so 0x0
01-24 11:44:51.486: D/dalvikvm(8724): Note: class Landroid/app/ActivityManagerNative; has 153 unimplemented (abstract) methods
01-24 11:44:51.541: D/AndroidRuntime(8724): Calling main entry com.android.commands.pm.Pm
01-24 11:44:51.581: W/zipro(8649): Unable to open zip '/data/local/tmp/GameTutorial_001.apk': Permission denied
01-24 11:44:51.581: D/asset(8649): failed to open Zip archive '/data/local/tmp/GameTutorial_001.apk'
01-24 11:44:51.581: I/ApplicationPolicy(2287): isApplicationInstallationEnabled
01-24 11:44:51.581: W/DefContainer(8649): Failed to parse package
01-24 11:44:51.581: W/PackageManager(2287): verifying app can be installed or not
01-24 11:44:51.586: W/zipro(8649): Unable to open zip '/data/local/tmp/GameTutorial_001.apk': Permission denied
01-24 11:44:51.586: D/asset(8649): failed to open Zip archive '/data/local/tmp/GameTutorial_001.apk'
01-24 11:44:51.586: D/dalvikvm(2287): WAIT_FOR_CONCURRENT_GC blocked 0ms
01-24 11:44:51.586: W/DefContainer(8649): Failed to parse package
01-24 11:44:51.696: D/dalvikvm(2287): GC_EXPLICIT freed 319K, 33% free 29002K/43271K, paused 8ms+7ms, total 109ms
01-24 11:44:51.706: D/AndroidRuntime(8724): Shutting down VM
01-24 11:44:51.706: D/dalvikvm(8724): GC_CONCURRENT freed 128K, 87% free 568K/4096K, paused 0ms+1ms, total 2ms
01-24 11:44:51.711: D/dalvikvm(8724): Debugger has detached; object registry had 1 entries
01-24 11:44:51.711: I/AndroidRuntime(8724): NOTE: attach of thread 'Binder_3' failed
Cant seem to get any information on the net (even though I do find lots of results when searching for this). None is helping me.
I'm hoping someone here could help me out, as I want make this work..! =P
(Tried setting permision on data/local/tmp folder too..)
- - -
As a sidenote, I wanted to see if I could root it with my original firmware, but I'm not 100% sure how this all works. (Why the toolkit root file is only 5MB, but downloading firmware for my model is 800MB. I did this before with only Odin, but I cant remember which files I needed...)
- - -
Anyways, please help me out here, as I do need to be able to debug my apps on my device. No other aps (that previously worked) is deploying to the phone either, but I can install it if I manually copy it over.
Thanks guys!
Additional information:
So, I'm not sure what stock on my phone anymore.
I did root it once before, and it worked good (did it through Odin). Then the 4.1.2 update came, and I updated normally through Kies. Root was removed in the process. So, before I rotted it yesterday, I was developing on it, and that worked nicely. But I wanted to root it to connect ps3 controller to play games. So I used the Toolbox (V7.0.0) to root it, but they did not have my exact model, only XXELLA. I used that. And root works nice. But Cant develop to it anymore.
This is my information now:
I9300XXELL4
Kernel:3.0.31-742798
Did the rooting process change my kernel?
EDIT:
Ok, just to help me understand a little here. I do not know the connection between firmware and kernel, but was my kernel altered when I rooted my phone?
I see many others having problem with new kernels, but I only used the Samsung Toolkit v7.0.0 to root my device using XXELLA (my model is XXELL4).
Did this process do anything to my kernel? And how can I get the original kernel to my phone if I need that?
Fail to understand the confusing question .
Flash stock rom via Odin and root via
# http://forum.xda-developers.com/showthread.php?t=1719744
Its a question = Q&A .
jje
Helped me out
Hi Stianbl,
I got exactly the same problem, and this solution fixed it, so i hope it does for you too.
The reason for "permission denied" is that apk files uploaded to /data/local/tmp had to low permissions, and the installer process obviously did not have permissions to read any such file.
I never found a solution, but have a workaround that satisfies me. I have simply moved/symlinked the tmp directory to the SD card. Since SD card is formatted as FAT, it does not have owners/permissions and all files created there are always readable by everyone. So open a terminal emulator on your phone. Get root ("su") and type in:
# cd /data/local
# mv tmp tmp-old # (or simply rm -rf tmp)
# mkdir /mnt/sdcard/tmp
# ln -s /mnt/sdcard/tmp ./tmp
I hope i could help you
greets
and another way
m134boy90 said:
Hi Stianbl,
I got exactly the same problem, and this solution fixed it, so i hope it does for you too.
The reason for "permission denied" is that apk files uploaded to /data/local/tmp had to low permissions, and the installer process obviously did not have permissions to read any such file.
I never found a solution, but have a workaround that satisfies me. I have simply moved/symlinked the tmp directory to the SD card. Since SD card is formatted as FAT, it does not have owners/permissions and all files created there are always readable by everyone. So open a terminal emulator on your phone. Get root ("su") and type in:
# cd /data/local
# mv tmp tmp-old # (or simply rm -rf tmp)
# mkdir /mnt/sdcard/tmp
# ln -s /mnt/sdcard/tmp ./tmp
I hope i could help you
greets
Click to expand...
Click to collapse
i founded another way i edit /data/local/tmp to /mnt/sdcard/tmp in adb.exe file and working powerfull adb
try this adb file mediafire.com/download/n9u4evl6wj78zp6/adb.exe
if want edit i open exe file in exescripteditor search google:good:
Hi,
I was wondering if anyone can help me figuring out what happened to my NST.
I was checking my NST hidden settings menu (NSTHiddenSettings.apk) when I pressed one the generic settings buttons (they appears at the bottom of the menu and they look all the same). One of these buttons initiated a "cleaning" process + reboot that I could not stop.
The end result of this was:
My NST was hanging after the reboot. I resetted to factory settings using NookManager and upgraded to 1.2.2 US firmware (my Nook has originally a 1.2.0 UK firmware), registered the device and re-rooted again: It all went well.
However NookManager "'informed me" that the NookButtons Mod APK was not installed during the rooting process.
I understood why when I tried install more apps. The system would not allow me to because every time I try to install a new apk I get a "memory full" message (mind you: the Nook is just rooted, so plenty of space, in theory).
Moreover, "back"/menu/notifications buttons on the top toolbar disappear when I access the settings menu
I have the feeling the file system is quite messed up (e.g. .orig files that should not be there), however since I do not have a backup copy (yes, silly me!), I cannot verify it. I have copied my Nook filesystem, and I was wondering if you could gather what happened to it and how I can fix it.
Code:
drwxrwx--- system system 1970-01-01 01:00 rom
drwxrwxrwt root root 2019-02-03 20:34 sqlite_stmt_journals
drwxrwxrwx system system 2019-02-03 20:34 sdcard
drwxrwxr-x system sdcard_rw 1970-01-01 01:00 media
drwxrwx--- system cache 2019-02-03 15:09 cache
drwxrwxrwx root root 2019-02-03 20:34 tmp
lrwxrwxrwx root root 2019-02-03 20:34 etc -> /system/etc
drwxrwx--x system system 2019-02-03 20:34 data
-rw-r--r-- root root 324 2019-02-03 15:44 env.txt
-rwxr-x--- root root 128000 2019-02-03 15:44 init
-rwxr-x--- root root 1677 2019-02-03 15:44 init.goldfish.rc
dr-xr-xr-x root root 1970-01-01 01:00 proc
drwxr-x--- root root 2019-02-03 15:44 sbin
drwxr-xr-x root root 1970-01-01 01:00 sys
drwxr-xr-x root root 2019-02-03 15:44 system
-rw-r--r-- root root 118 2019-02-03 15:44 default.prop.orig
-rw-r--r-- root root 118 2019-02-03 15:44 default.prop
-rw-r--r-- root root 118 2019-02-03 15:44 init.rc.orig
-rwxr-x--- root root 19284 2019-02-03 15:44 init.rc
drwx------ root root 2017-05-17 09:47 root
drwxr-xr-x root root 2019-02-03 20:34 dev
NOTE: I have tried to factory-reset it also using the 8 failed boot ups followed by holding both bottom "page left/right" buttons. Nothing. I always end up with the same messed-up configuration.
Can anyone help me?
Marco
You're going to have to dig deeper than that to find out what's what.
First step:
Code:
# df
That will tell you what you have for disk space.
And this is what I've got:
Code:
/dev: 116520K total, 0K used, 116520K available (block size 4096)
/sqlite_stmt_journals: 4096K total, 0K used, 4096K available (block size 4096)
/rom: 16116K total, 3655K used, 12460K available (block size 512)
/system: 285583K total, 210512K used, 75071K available (block size 1024)
/data: 808292K total, 64200K used, 744092K available (block size 4096)
/cache: 237987K total, 6263K used, 231724K available (block size 1024)
/media: 245484K total, 40K used, 245444K available (block size 4096)
And this is just right after the rooting process. Nothing else installed.
Renate NST said:
You're going to have to dig deeper than that to find out what's what.
First step:
Code:
# df
That will tell you what you have for disk space.
Click to expand...
Click to collapse
Well, you've got the space.
The "memory full" thing might be a red herring.
The package installer copies the file to somewhere temporary before it ends up in /data/app.
It could be a permission problem.
How are you installing the app? With adb install?
Use a second window running adb logcat and look for anything that happens.
In the original NookManager thread similar issues were discussed with early versions starting about here. There are some suggested work-arounds, including adb install (useful, but annoying) and, if I recall correctly, some attempts at patches for the permissions issue.
I have seen questions regarding the "out of space" issue from time to time but it took awhile for them to bubble up to the top in my brain. Why this happens with some installations, I have no idea.
Renate,
this is interesting: [email protected] always installed the apps with PackageManager, and that's what I did this time too, and that's what gave me the "memory full" error.
However, I have now used adb install and things went pretty smooth. I installed NookMods from NM and this is the log:
Code:
D/AndroidRuntime( 2112): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
I/AndroidRuntime( 2112): Heap size: -Xmx64m
D/AndroidRuntime( 2112): CheckJNI is OFF
D/dalvikvm( 2112): creating instr width table
D/AndroidRuntime( 2112): --- registering native functions ---
I/NATIVE-EPD( 2112): framebuffer_handle: 17
D/PackageParser( 788): Scanning package: /data/app/vmdl35313.tmp
I/PackageManager( 788): /data/app/vmdl35313.tmp changed; unpacking
D/installd( 745): DexInv: --- BEGIN '/data/app/vmdl35313.tmp' ---
D/dalvikvm( 2125): creating instr width table
D/dalvikvm( 2125): DexOpt: load 32ms, verify 151ms, opt 7ms
D/installd( 745): DexInv: --- END '/data/app/vmdl35313.tmp' (success) ---
I/installd( 745): move /data/dalvik-cache/[email protected]@[email protected] -> /data/dalvik-cache/[email protected]@[email protected]
D/PackageManager( 788): New package installed in /data/app/org.nookmods.ntmm.apk
D/AndroidRuntime( 2112): Shutting down VM
D/dalvikvm( 2112): DestroyJavaVM waiting for non-daemon threads to exit
D/dalvikvm( 2112): DestroyJavaVM shutting VM down
D/dalvikvm( 2112): HeapWorker thread shutting down
D/dalvikvm( 2112): HeapWorker thread has shut down
D/jdwp ( 2112): JDWP shutting down net...
I/jdwp ( 2112): adbd disconnected
D/dalvikvm( 2112): VM cleaning up
W/ResourceType( 788): Resources don't contain package for resource number 0x7f060001
I/AmazonAppstore.UpdateService( 874): Self-updating enabled: true
D/AmazonAppstore.UpdateService( 874): Adding self-update command to UpdateService
D/AmazonAppstore.UpdateService( 874): Received action: com.amazon.mas.client.framework.UpdateService.APP_WAS_INSTALLED from intent: Intent { act=com.amazon.mas.client.framework.UpdateService.APP_WAS_INSTALLED cmp=com.amazon.venezia/com.amazon.mas.client.framework.UpdateService (has extras) }
D/InstallReceiver( 1444): org.nookmods.ntmm
D/dalvikvm( 2112): LinearAlloc 0x0 used 625764 of 5242880 (11%)
D/dalvikvm( 788): GC freed 15270 objects / 1017944 bytes in 70ms
and the adb install message:
Code:
adb install org.nookmods.ntmm.apk
822 KB/s (170731 bytes in 0.202s)
pkg: /data/local/tmp/org.nookmods.ntmm.apk
Success
rm failed for -f, Read-only file system
May this be the problem encountered by PackageManager (and not adb install):
Code:
rm failed for -f, Read-only file system
------------------------
Incidentally, logcat keeps throwing this connectivity error at me, even though I actually registered the device succcessfully:
Code:
I/BnCloudReqMgr( 837): BnCloudRequest Service: starting now
W/ActivityManager( 788): Unable to start service Intent { act=com.bn.cloud.IRequestHandler }: not found
E/GPBRequestHelper( 837): Cannot get handle on BN Cloud Request Service
E/GPBRequestHelper( 837): com.bn.cloud.ServiceUnavailableException: Cannot bind with service: Context.bindService() failed
E/GPBRequestHelper( 837): at com.bn.cloud.RequestManagerImpl$BnCloudServiceConnection.<init>(RequestManagerImpl.java:255)
E/GPBRequestHelper( 837): at com.bn.cloud.RequestManagerImpl.<init>(RequestManagerImpl.java:217)
E/GPBRequestHelper( 837): at com.bn.cloud.BnCloudRequestManager.getRequestHandler(BnCloudRequestManager.java:29)
E/GPBRequestHelper( 837): at com.bn.cloud.GPBRequestHelper.obtainBnCloudRequestHandler(GPBRequestHelper.java:110)
E/GPBRequestHelper( 837): at com.bn.cloud.GPBRequestHelper.access$300(GPBRequestHelper.java:18)
E/GPBRequestHelper( 837): at com.bn.cloud.GPBRequestHelper$3.handleMessage(GPBRequestHelper.java:148)
E/GPBRequestHelper( 837): at android.os.Handler.dispatchMessage(Handler.java:99)
E/GPBRequestHelper( 837): at android.os.Looper.loop(Looper.java:123)
E/GPBRequestHelper( 837): at android.app.ActivityThread.main(ActivityThread.java:4363)
E/GPBRequestHelper( 837): at java.lang.reflect.Method.invokeNative(Native Method)
E/GPBRequestHelper( 837): at java.lang.reflect.Method.invoke(Method.java:521)
E/GPBRequestHelper( 837): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
E/GPBRequestHelper( 837): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
E/GPBRequestHelper( 837): at dalvik.system.NativeStart.main(Native Method)
Renate NST said:
Well, you've got the space.
The "memory full" thing might be a red herring.
The package installer copies the file to somewhere temporary before it ends up in /data/app.
It could be a permission problem.
How are you installing the app? With adb install?
Use a second window running adb logcat and look for anything that happens.
Click to expand...
Click to collapse
We have here a total of three badly worded/misleading errors.
"Memory full"
It isn't.
"rm failed for -f"
They are trying to rm -f on something but the error message is just presuming what is immediately after "rm" must be the file name.
They didn't think that there could be some flags after "rm".
"Resources don't contain package for resource number 0x7f060001"
You're missing a resource that is referenced in some other resource (or AndroidManifest).
It's not a resource that is referenced in the code because that would be a runtime error.
The "7f" tells you that it's a user-supplied resource, the "06" tells you not much because they are issued sequentially.
My bet, probably a string referenced in AndroidManifest.
Link, please, to the apk that gives you this error.
Here it is, attached.
It is the version of nookmods contained in NookManager 0.50. (NookManager/files/data/app/org.nookmods.ntmm.apk)
NM does not install it already when I try to root the Nook. (It throws a "Nook Mods not installed" message)
Renate NST said:
We have here a total of three badly worded/misleading errors.
"Memory full"
It isn't.
"rm failed for -f"
They are trying to rm -f on something but the error message is just presuming what is immediately after "rm" must be the file name.
They didn't think that there could be some flags after "rm".
"Resources don't contain package for resource number 0x7f060001"
You're missing a resource that is referenced in some other resource (or AndroidManifest).
It's not a resource that is referenced in the code because that would be a runtime error.
The "7f" tells you that it's a user-supplied resource, the "06" tells you not much because they are issued sequentially.
My bet, probably a string referenced in AndroidManifest.
Link, please, to the apk that gives you this error.
Click to expand...
Click to collapse
I am having issue of random restart of my redmi 3s prime.so far searched many blog it has been reported as a hardware fault & to solve is to replace main board. The restart is also random & i am not able to reproduce it at my own will however i have noticed few things
Phone doesn't restart while it is IDLE[/B]
Phone doesn't restart while it charging
so am thinking changing the battery might solve the issue as i have been using the phone since 3 years & phone was working fine in initial years. I am also attaching the full bug report. Kindly help
BUG REPORT
can't find the pid
Failed to find: /data/misc/anrd/
Skipping systrace because '/sys/kernel/debug/tracing/tracing_on' content is '0'
/data/misc/raft does not exist or is not a directory
Adding dir /cache/recovery (recursive: 1)
Duration of '/cache/recovery': 0.010s
Adding dir /data/misc/recovery (recursive: 1)
Duration of '/data/misc/recovery': 0.002s
Adding dir /data/misc/logd (recursive: 0)
Duration of '/data/misc/logd': 0.001s
Adding dir /data/misc/profiles/cur (recursive: 1)
Duration of '/data/misc/profiles/cur': 0.117s
Adding dir /data/misc/profiles/ref (recursive: 1)
Duration of '/data/misc/profiles/ref': 0.015s
MOUNT INFO: 50 entries added to zip file
Duration of 'MOUNT INFO': 0.098s
/sys/block/zram0: Permission denied
Skipping 'lsmod' because /proc/modules does not exist
Adding dir /data/misc/bluetooth/logs (recursive: 1)
Duration of '/data/misc/bluetooth/logs': 0.000s
taking late screenshot
drop_root_user(): already running as Shell
Screenshot saved on /data/user_de/0/com.android.shell/files/bugreports/bugreport-lineage_land-OPM7.181205.001-2019-03-23-14-43-03.png
logcat read failure
*** command 'logcat -L -b all -v threadtime -v printable -v uid -d *:v' failed: exit code 1
AddAnrTraceDir(): dump_traces_file=/data/anr/dumptrace_MF3dpz, anr_traces_dir=/data/anr
Dumping current ANR traces (/data/anr/dumptrace_MF3dpz) to the main bugreport entry
Error unlinking temporary trace path /data/anr/dumptrace_MF3dpz: Permission denied
execvp on command 'parse_radio_log /proc/last_radio_log' failed (error: Permission denied)
*** command 'parse_radio_log /proc/last_radio_log' failed: exit code 1
No IDumpstateDevice implementation
Error dumping service info: (Unknown error -2147483646) android.hardware.fingerprint.IFingerprintCustomDaemon
Can't find service: android.service.gatekeeper.IGateKeeperService
Error dumping service info: (Unknown error -2147483646) installd
Error dumping service info: (Unknown error -2147483646) storaged
Adding main entry (bugreport-lineage_land-OPM7.181205.001-2019-03-23-14-43-03.txt) from /data/user_de/0/com.android.shell/files/bugreports/bugreport-lineage_land-OPM7.181205.001-2019-03-23-14-43-03.tmp to .zip bugreport
dumpstate id 1 finished around 2019/03/23 14:44:48 (105 s)
Adding zip text entry main_entry.txt
dumpstate_log.txt entry on zip file logged up to here
Removing temporary file /data/user_de/0/com.android.shell/files/bugreports/bugreport-lineage_land-OPM7.181205.001-2019-03-23-14-43-03.tmp
Vibrate: 'cmd vibrator vibrate 75 dumpstate'
Vibrate: 'cmd vibrator vibrate 75 dumpstate'
Vibrate: 'cmd vibrator vibrate 75 dumpstate'
Final bugreport path: /data/user_de/0/com.android.shell/files/bugreports/bugreport-lineage_land-OPM7.181205.001-2019-03-23-14-43-03.zip
Sending broadcast: '/system/bin/cmd activity broadcast --user 0 --receiver-foreground --receiver-include-background -a com.android.internal.intent.action.BUGREPORT_FINISHED --receiver-permission android.permission.DUMP --ei android.intent.extra.ID 1 --ei android.intent.extra.PID 5632 --ei android.intent.extra.MAX 6135 --es android.intent.extra.BUGREPORT /data/user_de/0/com.android.shell/files/bugreports/bugreport-lineage_land-OPM7.181205.001-2019-03-23-14-43-03.zip --es android.intent.extra.DUMPSTATE_LOG /data/user_de/0/com.android.shell/files/bugreports/bugreport-lineage_land-OPM7.181205.001-2019-03-23-14-43-03-dumpstate_log-5632.txt --es android.intent.extra.SCREENSHOT /data/user_de/0/com.android.shell/files/bugreports/bugreport-lineage_land-OPM7.181205.001-2019-03-23-14-43-03.png'
drop_root_user(): already running as Shell
Broadcasting: Intent { act=com.android.internal.intent.action.BUGREPORT_FINISHED flg=0x11400000 (has extras) }
Broadcast completed: result=0
Final progress: 6115/6135 (estimated 6135)
Saving stats (total=12250, runs=2, average=6125) on /data/user_de/0/com.android.shell/files/bugreports/dumpstate-stats.txt
done (id 1)