I have trouble with my first vb.net program.
The program have to wirite the gps stream into a listbox and a file,too.
i have opened com9 on my trinity for the gps
(on a tytn->bluetooth->com9, too) but the app crash with "ioexception".
can someone pleade help me.
i dont know what i can do now.
Here's the complete Code:
an IO Exception occurs when there are errors while interacting with files.
Instead of posting your solution over here would it be better to learn how to debug.
- Look for additional information. An Exception contains more information than just 'ioexception'.
- Step through your application to find the line where the error occurs.
- Do you close your file properly? (after writing the GPS stream)
Only with files?
I think it crashed at: "SerialPort1.Open()"
Yes i close the File. But there ist no Stream. I get no information from the port,
cause at the opening the program crashed :-(
sorry for my bad english. i give my best.
here's the edited version:
http://rapidshare.com/files/62896996/GPRSGPS.ZIP.html
IO = Input Output, so basically files but indeed also with serial ports. Can you provide us additional information about the error?
Sorry only the complete german Error Message:
Unerwarteter Fehler in GPRSGPS.exe,
klicken Sie auf "Beenden", und starten Sie das Programm neu.
Weitere Informationen zu diesem Fehler erhalten Sie, indem Sie Details Klicken.
Es kann keine Fehlermeldung angezeigt werden, da
die optionale Ressource der Assebly,
die die Fehlermeldung enthält, nicht gefunden wurde.
IOEXCEPTION
Click to expand...
Click to collapse
Here is an example
Code:
Try
For nVar = 0 To 5 Step 1
Response.Write(arTest(nVar))
Next
Catch e As Exception
messagebox(e.toString)
End Try
(source: http://www.aspheute.com/artikel/20001024.htm)
build something like this around your SerialPort1.open()
e.g.
Code:
Try
SerialPort1.open()
Catch e As Exception
MsgBox(e.toString)
End Try
thank you for yours strive but it still don't work.
I do not have any ideas.
why don't you just set a breakpoint and start in in debug mode?
Because the "FakeGPS"Tool out of the WM6 SDK wouldnt work.
So cant emulate a GPS Stream and i have to test it on my htc trinity.
even when i set a break point, the application crashed bevor i reached the point.
just set your pda as target device and not the emulator, you CAN debug on real devices!
even when i set a break point, the application crashed bevor i reached the point.
Click to expand...
Click to collapse
Then move your Breakpoint!!!
thanks. yes the debug on real device works now.
Ohho....
the error ist not the "Serial1.Open"
else this function
Code:
Private Sub ListAdd(ByVal Ttext As String, Optional ByVal Write2File As Boolean = False)
'Den Focus auf den zuletzt inder Lisbox hinzugefügten Datensatz legen
'ebenfalls die Zeile in die oben deklarierte Datei speichern.
If Ttext <> "" And Len(Ttext) > 0 Then
'Versuch mit Messagebox = ok
'MsgBox(Ttext)
'Verusch mit einfach Listbox = absturz
'ListBox1.Items.Add(Ttext)
'Versuch mit Textbox= absturz
'TextBox1.Text = Ttext + vbNewLine + TextBox1.Text
'Versuch mit Listbox die automatisch den Fokus auf den zuletzt
'hinzugefügten Datensatz legt
'With ListBox1
'.Items.Add(Ttext)
'If .Items.Count > 0 Then
'.SelectedIndex = .Items.Count - 1
'End With
'Wenn Write2File=True dann soll er den TText ins File schreiben
If Write2File = True Then txt.WriteLine(Ttext)
End If
End Sub
i have re-edited the function once again:
Code:
Private Sub ListAdd(ByVal Ttext As String, Optional ByVal Write2File As Boolean = False)
'Versuch mit Listbox die automatisch den Fokus auf den zuletzt
'hinzugefügten Datensatz legt
Try
With ListBox1
.Items.Add(Ttext)
If .Items.Count > 0 Then
.SelectedIndex = .Items.Count - 1
End If
End With
'Wenn Write2File=True dann soll er den TText ins File schreiben
If Write2File = True Then txt.WriteLine(Ttext)
Catch e As Exception
'MsgBox(e.ToString)
txt.WriteLine(e.ToString)
If X = 10 Then 'Bei 10 Fehlern Text File speichern.
txt.Close()
Application.Exit()
End If
End Try
End If
End Sub
So it logged 10 Errors in a File:
Code:
System.NotSupportedException: Es kann keine Fehlermeldung angezeigt werden, da die optionale Ressource der Assembly, die die Fehlermeldung enthält, nicht gefunden wurde.
bei Microsoft.AGL.Common.MISC.HandleAr()
bei System.Windows.Forms.ListBox._NativeAdd()
at ObjectCollection.Add()
bei DeviceApplication1.Form1.ListAdd()
bei DeviceApplication1.Form1.SerialPort1_DataReceived()
bei System.IO.Ports.SerialPort.CatchReceivedEvents()
at EventLoopRunner.CallReceiveEvents()
at WorkItem.doWork()
bei System.Threading.Timer.ring()
System.NotSupportedException: Es kann keine Fehlermeldung angezeigt werden, da die optionale Ressource der Assembly, die die Fehlermeldung enthält, nicht gefunden wurde.
bei Microsoft.AGL.Common.MISC.HandleAr()
bei System.Windows.Forms.ListBox._NativeAdd()
at ObjectCollection.Add()
bei DeviceApplication1.Form1.ListAdd()
bei DeviceApplication1.Form1.GetGSM_STATUS()
bei DeviceApplication1.Form1.SerialPort1_DataReceived()
bei System.IO.Ports.SerialPort.CatchReceivedEvents()
at EventLoopRunner.CallReceiveEvents()
at WorkItem.doWork()
bei System.Threading.Timer.ring()
System.NotSupportedException: Es kann keine Fehlermeldung angezeigt werden, da die optionale Ressource der Assembly, die die Fehlermeldung enthält, nicht gefunden wurde.
bei Microsoft.AGL.Common.MISC.HandleAr()
bei System.Windows.Forms.ListBox._NativeAdd()
at ObjectCollection.Add()
bei DeviceApplication1.Form1.ListAdd()
bei DeviceApplication1.Form1.SerialPort1_DataReceived()
bei System.IO.Ports.SerialPort.CatchReceivedEvents()
at EventLoopRunner.CallReceiveEvents()
at WorkItem.doWork()
bei System.Threading.Timer.ring()
System.NotSupportedException: Es kann keine Fehlermeldung angezeigt werden, da die optionale Ressource der Assembly, die die Fehlermeldung enthält, nicht gefunden wurde.
bei Microsoft.AGL.Common.MISC.HandleAr()
bei System.Windows.Forms.ListBox._NativeAdd()
at ObjectCollection.Add()
bei DeviceApplication1.Form1.ListAdd()
bei DeviceApplication1.Form1.GetGSM_STATUS()
bei DeviceApplication1.Form1.SerialPort1_DataReceived()
bei System.IO.Ports.SerialPort.CatchReceivedEvents()
at EventLoopRunner.CallReceiveEvents()
at WorkItem.doWork()
bei System.Threading.Timer.ring()
System.NotSupportedException: Es kann keine Fehlermeldung angezeigt werden, da die optionale Ressource der Assembly, die die Fehlermeldung enthält, nicht gefunden wurde.
bei Microsoft.AGL.Common.MISC.HandleAr()
bei System.Windows.Forms.ListBox._NativeAdd()
at ObjectCollection.Add()
bei DeviceApplication1.Form1.ListAdd()
bei DeviceApplication1.Form1.SerialPort1_DataReceived()
bei System.IO.Ports.SerialPort.CatchReceivedEvents()
at EventLoopRunner.CallReceiveEvents()
at WorkItem.doWork()
bei System.Threading.Timer.ring()
System.NotSupportedException: Es kann keine Fehlermeldung angezeigt werden, da die optionale Ressource der Assembly, die die Fehlermeldung enthält, nicht gefunden wurde.
bei Microsoft.AGL.Common.MISC.HandleAr()
bei System.Windows.Forms.ListBox._NativeAdd()
at ObjectCollection.Add()
bei DeviceApplication1.Form1.ListAdd()
bei DeviceApplication1.Form1.GetGSM_STATUS()
bei DeviceApplication1.Form1.SerialPort1_DataReceived()
bei System.IO.Ports.SerialPort.CatchReceivedEvents()
at EventLoopRunner.CallReceiveEvents()
at WorkItem.doWork()
bei System.Threading.Timer.ring()
System.NotSupportedException: Es kann keine Fehlermeldung angezeigt werden, da die optionale Ressource der Assembly, die die Fehlermeldung enthält, nicht gefunden wurde.
bei Microsoft.AGL.Common.MISC.HandleAr()
bei System.Windows.Forms.ListBox._NativeAdd()
at ObjectCollection.Add()
bei DeviceApplication1.Form1.ListAdd()
bei DeviceApplication1.Form1.SerialPort1_DataReceived()
bei System.IO.Ports.SerialPort.CatchReceivedEvents()
at EventLoopRunner.CallReceiveEvents()
at WorkItem.doWork()
bei System.Threading.Timer.ring()
System.NotSupportedException: Es kann keine Fehlermeldung angezeigt werden, da die optionale Ressource der Assembly, die die Fehlermeldung enthält, nicht gefunden wurde.
bei Microsoft.AGL.Common.MISC.HandleAr()
bei System.Windows.Forms.ListBox._NativeAdd()
at ObjectCollection.Add()
bei DeviceApplication1.Form1.ListAdd()
bei DeviceApplication1.Form1.GetGSM_STATUS()
bei DeviceApplication1.Form1.SerialPort1_DataReceived()
bei System.IO.Ports.SerialPort.CatchReceivedEvents()
at EventLoopRunner.CallReceiveEvents()
at WorkItem.doWork()
bei System.Threading.Timer.ring()
System.NotSupportedException: Es kann keine Fehlermeldung angezeigt werden, da die optionale Ressource der Assembly, die die Fehlermeldung enthält, nicht gefunden wurde.
bei Microsoft.AGL.Common.MISC.HandleAr()
bei System.Windows.Forms.ListBox._NativeAdd()
at ObjectCollection.Add()
bei DeviceApplication1.Form1.ListAdd()
bei DeviceApplication1.Form1.SerialPort1_DataReceived()
bei System.IO.Ports.SerialPort.CatchReceivedEvents()
at EventLoopRunner.CallReceiveEvents()
at WorkItem.doWork()
bei System.Threading.Timer.ring()
Last but not least the complete project:
http://rapidshare.com/files/63389284/GPRSGPS.ZIP.html
IT WORKS
Now it works. (thx to "Useless User" from "PPC-Welt")
SUPER SUPER SUPER.
Here's the right code:
Code:
Imports System.IO
Public Class Form1
Dim X As Integer
Dim APPPATH As String
Dim GlobalGPSSTREAM As String
Dim txt As IO.StreamWriter
Private Delegate Sub SetGlobalGPSStreamDgt(ByVal text As String)
Private Sub SetGlobalGPSSTREAM(ByVal text As String)
ListAdd(text, True)
End Sub
Private Sub ShowVerNumber()
'App.Path und App.Minor etc Test
APPPATH = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetModules(0).FullyQualifiedName) & "\"
txt = New IO.StreamWriter(APPPATH + "testfile.txt", True)
ListAdd("Datenfile: " + APPPATH + "testfile.txt", False)
Me.Text = "GPRSGPS V" + GetType(Form1).Assembly.GetName.Version.ToString()
'ListAdd("Progfile: " + Me.Text, False)
'Me.Text = Path.GetDirectoryName(Assembly.GetExecutingAssembl y().GetModules(0).FullyQualifiedName) & "/"
'App.Path & IIf(Right(App.Path, 1) = "\", "", "\") & App.EXEName
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Listbox1.Items.Clear()
'TextBox1.Items.Clear()
ShowVerNumber()
SerialPort1.Encoding = System.Text.Encoding.Default
'SerialPort1.Encoding = System.Text.Encoding.ASCII
End Sub
Private Sub ListAdd(ByVal Ttext As String, Optional ByVal Write2File As Boolean = False)
'Den Focus auf den zuletzt inder Lisbox hinzugefügten Datensatz legen
'ebenfalls die Zeile in die oben deklarierte Datei speichern.
If Ttext <> "" And Len(Ttext) > 0 Then
Try
With ListBox1
.Items.Add(Ttext)
If .Items.Count > 0 Then
.SelectedIndex = .Items.Count - 1
End If
End With
'Wenn Write2File=True dann soll er den TText ins File schreiben
If Write2File = True Then txt.WriteLine(Ttext)
Catch e As Exception
'MsgBox(e.ToString)
txt.WriteLine(e.ToString)
If X = 10 Then 'Bei 10 Fehlern Text File speichern.
txt.Close()
Application.Exit()
End If
End Try
End If
End Sub
Private Sub GetGSM_STATUS()
'Anzeigen der aktuellen Mobilfunk-Signal-Stärke
X = X + 1 'Zeilenzähler
ListAdd(Microsoft.WindowsMobile.Status.SystemState.PhoneSignalStrength, True)
End Sub
Private Sub SerialPort1_DataReceived(ByVal sender As Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs) Handles SerialPort1.DataReceived
Dim newLine As String = SerialPort1.ReadLine
Me.Invoke(New SetGlobalGPSStreamDgt(AddressOf SetGlobalGPSSTREAM), New Object() {newLine})
End Sub
Private Sub BTN_STOP_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BTN_STOP.Click
txt.Close()
Application.Exit()
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'Dim txt As IO.StreamWriter = New IO.StreamWriter("datei.txt"), False, System.Text.Encoding.Default)
'txt.WriteLine("blablabla")
'txt.WriteLine("")
'txt.Close()
End Sub
Private Sub BTN_COM_OPEN_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BTN_COM_OPEN.Click
If SerialPort1.IsOpen = True Then SerialPort1.Close()
'SerialPort1.PortName = Trim("COM" + Trim(Str(NumericUpDown1.Value)) + ":")
SerialPort1.PortName = Trim("COM" + Trim(Str(NumericUpDown1.Value)))
'ListAdd("COMPORT Setting: " + SerialPort1.PortName, False)
Try
SerialPort1.Open()
Catch Ausnahme As IOException
MsgBox(Ausnahme.Message, MsgBoxStyle.Critical, "Fehler !")
End Try
'MsgBox(SerialPort1.PortName)
End Sub
Private Sub BTN_COM_CLOSE_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BTN_COM_CLOSE.Click
If SerialPort1.IsOpen = True Then SerialPort1.Close()
'ListAdd("COMPORT geschlossen", False)
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
If SerialPort1.IsOpen = True Then
Label1.BackColor = Color.Green
Else
Label1.BackColor = Color.Red
End If
End Sub
Private Sub BTN_WriteHallo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BTN_WriteHallo.Click
'ListAdd("Hallo", False)
End Sub
End Class
, i hope you understand where you made mistakes .
not really. its a hard way from vb6 to .net
HAllo ...sorry for my bad English
Now I have a VPA Compact 2 IPL 2.21.001 SPL with 3:08 left in the 3 Color mode stand (bootloader) G4 device, what I learned from the previous Owner IPL was 2.21.001 SPL 2.21.001, softspl or executed there after Hardspl very likely G3 Rome flashed *
the output via USB terminal:
Cmd> info
Cmd> INFO 2
GetDeviceInfo = 0x00000002
GetDeviceCID: Error - InitDecoder
HTCS 'í • 6HTCE
Cmd> set 32
SD controller init
- SD controller init
+ StorageInit
CMD55 failed
SD controller init
- SD controller init
+ StorageInit
CMD55 failed
GetDeviceCID: Error - InitDecoder
g_cKeyCardSecurityLevel = FF
Cmd> info 0
GetDeviceInfo = 0x00000000
Wizard
------------------- -------------------------
CID is locked, according ---- ---> g_cKeyCardSecurityLevel = FF
Valid CID -----> HTCS 'í • 6HTCE?
Hard reset does not go back to SD is not because CID Locked
new flash device does not take on because CID Locked
Now I have read www.imei-check.co.uk the CID unlocken can now for 26 € I have the tool download times and started on the screen of the VPA appears everything as described (on the homepage *. UK) only when you read the IMEI .... a minute later output of the program device not connectet hmm ...
My question would be if I have a vaild CID may still have to be unlocked also my IMEI can not read I imagine this question whether I should spend 26 € and then nothing works?
would be great if I could make somebody else smile *
Thanks for reading!
Greezt Resme
-------------------------------------
In German
Nun ich habe ein VPA Compact 2 mit IPL 2.21.001 SPL 3.08 bleibt im 3 Colour mode stehen (Bootloader) G4 Device, was ich erfahren habe vom Vorbesitzer war IPL 2.21.001 SPL 2.21.001 ,softspl oder Hardspl ausgeführt danach sehr wahrscheinlich G3 Rom geflascht *
die Ausgabe über usb-terminal :
Cmd>info
Cmd>info 2
GetDeviceInfo=0x00000002
GetDeviceCID: Error - InitDecoder
HTCS ´í•6HTCE
Cmd>set 32
+ SD Controller init
- SD Controller init
+StorageInit
CMD55 failed
+ SD Controller init
- SD Controller init
+StorageInit
CMD55 failed
GetDeviceCID: Error - InitDecoder
g_cKeyCardSecurityLevel = FF
Cmd>info 0
GetDeviceInfo=0x00000000
Wizard
------------------- -------------------------
CID is Locked ----laut--->g_cKeyCardSecurityLevel = FF
CID Valid----->HTCS ´í•6HTCE ?
Hardreset geht nicht Backup auf SD geht nicht weil CID Locked
neu flashen geht aber Device nimmt nicht an weil CID Locked
jetzt habe ich gelesen www.imei-check.co.uk man die CID unlocken lassen kann für 26€ nun habe ich mir das tool mal runtergeladen und gestartet auf dem Bildschirm des VPA erscheint alles so wie beschrieben(auf der Homepage*.UK) nur beim auslesen der IMEI....eine minute später ausgabe des programms device not connectet...hmm
Meine Frage wäre wenn ich eine vaild CID habe kann diese trotzdem unlocked werden auch das sich meine IMEI nicht auslesen lässt stelle ich mir diese Frage ob ich 26 € ausgeben sollte und dann doch nichts klappt?!
wäre super wenn mich jemand weiterbilden könnte *smile
Danke fürs lesen!!
Greezt Resme
Hello,
I try to build my own CM9 ROM for the Motorola Defy.
I get the Defy device files with the following command:
Code:
. build/envsetup.sh && breakfast jordan
After this i would build the ROM by execute
Code:
. build/envsetup.sh && brunch jordan
At first the building process ends up with this error:
Code:
build/core/base_rules.mk:166: *** vendor/cm/audio: MODULE.TARGET.SHARED_LIBRARIES.audio_policy.jordan already defined by device/motorola/jordan/audio_policy.
So I delte the audio directory in vendor/cm
But now I get a new error:
Code:
make: *** Keine Regel vorhanden, um das Target »system/core/toolbox/../../../external/bootmenu/libreboot/reboot.c«,
benötigt von »out/target/product/jordan/obj/EXECUTABLES/toolbox_intermediates/../../../external/bootmenu/libreboot/reboot.o«, zu erstellen. Schluss.
make: *** Warte auf noch nicht beendete Prozesse...
system/core/toolbox/r.c: In function 'r_main':
system/core/toolbox/r.c:87: warning: 'value' may be used uninitialized in this function
Is this a known error?
Can anyone help me?
regards,
Nico-X
I am getting the following errors when I attempt to decompile GoogleLatinIME.apk(copied directly from system- app) and SamsungIME.apk(downloaded from xda thread) with apktool I put the framework-res.apk and SystemUI.apk into the framework folder by running command prompt - apktool if .... , also I tried adding twframework-res.apk to the framework folder in apktool. I am running http://forum.xda-developers.com/ver.../rom-eclipse-s5-tw-v1-0-12-8-14-real-t2967151
The possibility exists that I have no idea what I am doing so any help is much appreciated. Thanks!!!
C:\Users\GLEN\apktools\phone\apktool>apktool d GoogleLatin.apk
Input file (GoogleLatin.apk) was not found or was not readable.
C:\Users\GLEN\apktools\phone\apktool>apktool d GoogleLatinIME.apk
I: Baksmaling...
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Could not decode ars
c file
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:56)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibRes
ources.java:491)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.jav
a:74)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.jav
a:66)
at brut.androlib.Androlib.getResTable(Androlib.java:50)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:189)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)
at brut.apktool.Main.cmdDecode(Main.java:146)
at brut.apktool.Main.main(Main.java:77)
Caused by: java.io.IOException: Expected: 0x001c0001, got: 0x00000000
at brut.util.ExtDataInput.skipCheckInt(ExtDataInput.java:48)
at brut.androlib.res.decoder.StringBlock.read(StringBlock.java:44)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:10
2)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
... 8 more
C:\Users\GLEN\apktools\phone\apktool>apktool d SamsungIME.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.Direc
toryException: java.util.zip.ZipException: error in opening zip file
at brut.androlib.ApkDecoder.hasSources(ApkDecoder.java:199)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:83)
at brut.apktool.Main.cmdDecode(Main.java:146)
at brut.apktool.Main.main(Main.java:77)
Caused by: brut.directory.DirectoryException: java.util.zip.ZipException: error
in opening zip file
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:55)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:38)
at brut.androlib.res.util.ExtFile.getDirectory(ExtFile.java:55)
at brut.androlib.ApkDecoder.hasSources(ApkDecoder.java:197)
... 3 more
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:53)
... 6 more
C:\Users\GLEN\apktools\phone\apktool>
Hi to all, How I do to decompiler SystemUI.apk, my device is p8lite? I tryed with apktool, but I can not
My errors:
Code:
C:\Program Files (x86)\Minimal ADB and Fastboot>apktool d SystemUI.apk
I: Using Apktool 2.0.3 on SystemUI.apk
I: Loading resource table...
I: Decoding Shared Library (androidhwext), pkgId: 2
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x7f020244 drawable/stat_sys_data_connected_2g, config=-notround-xhdpi
at brut.androlib.res.data.ResType.addResource(ResType.java:66)
at brut.androlib.res.data.ResType.addResource(ResType.java:55)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:252)
at brut.androlib.res.decoder.ARSCDecoder.readTableType(ARSCDecoder.java:212)
at brut.androlib.res.decoder.ARSCDecoder.readTableTypeSpec(ARSCDecoder.java:154)
at brut.androlib.res.decoder.ARSCDecoder.readTablePackage(ARSCDecoder.java:116)
at brut.androlib.res.decoder.ARSCDecoder.readTableHeader(ARSCDecoder.java:78)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:544)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:63)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:55)
at brut.androlib.Androlib.getResTable(Androlib.java:66)
at brut.androlib.ApkDecoder.setTargetSdkVersion(ApkDecoder.java:198)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:96)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)
Why? where am I wrong?
up
linus2014 said:
Hi to all, How I do to decompiler SystemUI.apk, my device is p8lite? I tryed with apktool, but I can not
My errors:
Code:
C:\Program Files (x86)\Minimal ADB and Fastboot>apktool d SystemUI.apk
I: Using Apktool 2.0.3 on SystemUI.apk
I: Loading resource table...
I: Decoding Shared Library (androidhwext), pkgId: 2
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x7f020244 drawable/stat_sys_data_connected_2g, config=-notround-xhdpi
at brut.androlib.res.data.ResType.addResource(ResType.java:66)
at brut.androlib.res.data.ResType.addResource(ResType.java:55)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:252)
at brut.androlib.res.decoder.ARSCDecoder.readTableType(ARSCDecoder.java:212)
at brut.androlib.res.decoder.ARSCDecoder.readTableTypeSpec(ARSCDecoder.java:154)
at brut.androlib.res.decoder.ARSCDecoder.readTablePackage(ARSCDecoder.java:116)
at brut.androlib.res.decoder.ARSCDecoder.readTableHeader(ARSCDecoder.java:78)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:544)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:63)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:55)
at brut.androlib.Androlib.getResTable(Androlib.java:66)
at brut.androlib.ApkDecoder.setTargetSdkVersion(ApkDecoder.java:198)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:96)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)
Why? where am I wrong?
Click to expand...
Click to collapse
Huawei SystemUI's can't be decompiled, Huawei doesn't want us to mess with their stuff.
XePeleato said:
Huawei SystemUI's can't be decompiled, Huawei doesn't want us to mess with their stuff.
Click to expand...
Click to collapse
I understood, but there must be a way, they do their Huawei and we do not.