Hi Guys !
I wanted to create my personal rom with my own softs and improvment so I read and read here and there in the forum to understand how this is working and so on...
So I started to download and use Kaiser kitchen v4.0
I get my hand on a original Rom which should be my starting point (RUU_Diamond_HTC_FRA_1.37.406.1_Radio_Signed_Diamond_52.26a.25.09_1.00.25.03_Ship)
I launch the process (N°2 in Kaiser) then OS.nb is extracted and seems ok but that all. I can't get imgfs.bin to be generated, nothing else...
Any idea or advise ?
This is also the case with Bepe Rom (Diamond_bElite_Premium_0.95_040C_by_bepe)
Well, with bepe that might be a problem.
^.^
Could you post screenshots of every step? If you got OS.nb, I don't see why you can't get imgfs (IF you're using the kaiser kitchen modded for diamond)
eldwyn said:
Hi Guys !
I wanted to create my personal rom with my own softs and improvment so I read and read here and there in the forum to understand how this is working and so on...
So I started to download and use Kaiser kitchen v4.0
I get my hand on a original Rom which should be my starting point (RUU_Diamond_HTC_FRA_1.37.406.1_Radio_Signed_Diamond_52.26a.25.09_1.00.25.03_Ship)
I launch the process (N°2 in Kaiser) then OS.nb is extracted and seems ok but that all. I can't get imgfs.bin to be generated, nothing else...
Any idea or advise ?
This is also the case with Bepe Rom (Diamond_bElite_Premium_0.95_040C_by_bepe)
Click to expand...
Click to collapse
bepe's rom has protection, just like most of the cook rom out that. so, it would be best if you try out cooking with an official rom first.
you should be able to dump the official rom successfully with a kaiser kitchen or the diamond kitchen release by JUg.
Many thanks for the hints guys !
Well the Kaiser kitchen I've got says to be compatible with Diamond so I guess this is more a security problem, like RuffRuff is saying...
Any idea where I can get this Diamond kitchen by JUg ? I've make a search n the forum and google but for now no tangible results...
I'll keep searching for it until some of you already had a link or some way where to search...
Cheers !
edit : Just found out that post from JugglerLKR http://forum.xda-developers.com/showthread.php?t=405371 where he propose this kitchen for Diamond. And that the one I'm using !
That shoule be working then... I'll try to add screenshot later in the day...
Here's what I've got when I dump the imgfs.bin :
Any Idea why this is not working ?
Code:
ImgfsToDump 2.0 RC 2
guidBootSignature: F8 AC 2C 9D E3 D4 2B 4D BD 30 91 6E D8 4F 31 DC
dwFSVersion: 00000001
dwSectorsPerHeaderBlock: 00000001
dwRunsPerFileHeader: 00000001
dwBytesPerHeader: 00000034
dwChunksPerSector: 00000020
dwFirstHeaderBlockOffset: 00000800
dwDataBlockSize: 00001000
szCompressionType: XPR
dwFreeSectorCount: 0000D9F4
dwHiddenSectorCount: 00000040
dwUpdateModeFlag: 00000000
Address: 00000800, dwBlockSignature: 00000F00
dwNextHeaderBlock: FFFBFFFF (size: FFFBF7FF)
Header type: 2F5314CE, Addr: 00000808
Unknown header type, FS_DATA_TABLE??
Header type: 00001000, Addr: 0000083C
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: 00000870
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: 000008A4
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: 000008D8
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: 0000090C
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: 00000940
Unknown header type, FS_DATA_TABLE??
Header type: 000011C0, Addr: 00000974
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: 000009A8
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: 000009DC
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: 00000A10
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: 00000A44
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: 00000A78
Unknown header type, FS_DATA_TABLE??
Header type: 00005880, Addr: 00000AAC
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: 00000AE0
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: 00000B14
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: 00000B48
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: 00000B7C
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: 00000BB0
Unknown header type, FS_DATA_TABLE??
Header type: 00013740, Addr: 00000BE4
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: 00000C18
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: 00000C4C
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: 00000C80
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: 00000CB4
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: 00000CE8
Unknown header type, FS_DATA_TABLE??
Header type: 00014000, Addr: 00000D1C
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: 00000D50
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: 00000D84
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: 00000DB8
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: 00000DEC
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: 00000E20
Unknown header type, FS_DATA_TABLE??
Header type: 00015180, Addr: 00000E54
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: 00000E88
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: 00000EBC
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: 00000EF0
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: 00000F24
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: 00000F58
Unknown header type, FS_DATA_TABLE??
Header type: 0001A340, Addr: 00000F8C
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: 00000FC0
Unknown header type, FS_DATA_TABLE??
Address: FFFBFFFF, dwBlockSignature: 00000000
dwNextHeaderBlock: 00000000 (size: 00040001)
Header type: 00000000, Addr: FFFC0007
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC003B
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC006F
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC00A3
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC00D7
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC010B
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC013F
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC0173
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC01A7
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC01DB
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC020F
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC0243
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC0277
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC02AB
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC02DF
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC0313
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC0347
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC037B
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC03AF
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC03E3
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC0417
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC044B
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC047F
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC04B3
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC04E7
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC051B
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC054F
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC0583
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC05B7
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC05EB
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC061F
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC0653
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC0687
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC06BB
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC06EF
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC0723
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC0757
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC078B
Unknown header type, FS_DATA_TABLE??
Header type: 00000000, Addr: FFFC07BF
Unknown header type, FS_DATA_TABLE??
using :
http://forum.xda-developers.com/showthread.php?t=411453
DiamondKiychen v0.4 you need to copy the RUU_Signed file to BaseROM directory and launch the first .bat and select choice 1
if you are interested in cooking from RUU_Diamond_HTC_FRA_1.37.406.1_Radio_Signed_Diamond_52.26a.25.09_1.00.25.03_Ship
have a look here :
http://www.planete-htc.com/index.php?mod=forum&ac=voir&cat=169&id=15903
Many thanks for the links TekTonik !!
I'm probably going to ask you some hint in our own language in a short while ! !!
Cheers !!
Related
can sombody explain me how to or help extract from cavalier rom those two files: peripheral.dll & wavedev.dll
i can't do it whith ImgfsToDump coz get errors:
ImgfsToDump 2.1rc2
IMGFS guidBootSignature: F8 AC 2C 9D E3 D4 2B 4D BD 30 91 6E D8 4F 31 DC
dwFSVersion: 00000001
dwSectorsPerHeaderBlock: 00000001
dwRunsPerFileHeader: 00000001
dwBytesPerHeader: 00000034
dwChunksPerSector: 00000008
dwFirstHeaderBlockOffset: 00000200
dwDataBlockSize: 00001000
szCompressionType: XPR
dwFreeSectorCount: 000233ED
dwHiddenSectorCount: 00000100
dwUpdateModeFlag: 00000000
Address: 00000200, dwBlockSignature: 00002C00
dwNextHeaderBlock: FFFBFFFF (size: FFFBFDFF)
Header type: 2F5314CE, Addr: 00000208
Unknown header type, FS_DATA_TABLE??
Header type: 00000400, Addr: 0000023C
Unknown header type, FS_DATA_TABLE??
etc...
Jar/apk baksmali smali file decompile and compiler
A simple way to decompile and compile Jar and apk Files
to edite the smali code.
Maybe this will be a help for some DEV'S
jar file decompile and compiler with tutor.zip
{
"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"
}
rough video
decompile and recompile
jar file decompile and compiler_ICS_4.0.4.zip for ICS attached
carl1961 said:
Jar/apk baksmali smali file decompile and compiler
A simple way to decompile and compile Jar and apk Files
to edite the smali code.
Maybe this will be a help for some DEV'S
http://hotfile.com/dl/121586687/ae510fb/jar_file_decompile_and_compiler_with_tutor.zip.html
Click to expand...
Click to collapse
I have a job for you !
http://www.multiupload.com/DP80U5T4KS
This is camera for froyo but you can check what values it can work ?
dungphp said:
I have a job for you !
http://www.multiupload.com/DP80U5T4KS
This is camera for froyo but you can check what values it can work ?
Click to expand...
Click to collapse
how about fixing the power menu on your kingdom
rom before endeovoring onto new things
dungphp said:
I have a job for you !
http://www.multiupload.com/DP80U5T4KS
This is camera for froyo but you can check what values it can work ?
Click to expand...
Click to collapse
can you clearify what you mean by " check what values it can work ?"
carl1961 said:
Jar/apk baksmali smali file decompile and compiler
A simple way to decompile and compile Jar and apk Files
to edite the smali code.
Maybe this will be a help for some DEV'S
http://hotfile.com/dl/121586687/ae510fb/jar_file_decompile_and_compiler_with_tutor.zip.html
rough video's
decompile and compare
http://hotfile.com/dl/129669607/c0fbe0f/jar_decompile.wmv.html
recompile
http://hotfile.com/dl/129730353/414ef8a/jar_recompiling.wmv.html
Click to expand...
Click to collapse
updated with video's
thx!!!
It's amazing! Thank you for the great work!!! I am really happy now!
Great tutorial!!
hello my friend
hi carl can u do me a favor, not familiar at all with the .jar files can u take the jar file i uploaded and decompile and change to the settings below on the link and recompile? only step1 i already did step 2
http://forum.xda-developers.com/showpost.php?p=16918676&postcount=1
fallenangel408 said:
hi carl can u do me a favor, not familiar at all with the .jar files can u take the jar file i uploaded and decompile and change to the settings below on the link and recompile? only step1 i already did step 2
http://forum.xda-developers.com/showpost.php?p=16918676&postcount=1
Click to expand...
Click to collapse
decompiled the com.htc.framework.jar and it is no where like the com.htc.framework.jar on the post
your com.htc.framework.jar only has these codes ( in picture) you can see the path theres no widgit folder
carl1961 said:
decompiled the com.htc.framework.jar and it is no where like the com.htc.framework.jar on the post
your com.htc.framework.jar only has these codes ( in picture) you can see the path theres no widgit folder
Click to expand...
Click to collapse
Thinking that is from sense rom but why's only <70kb ?
can anyone tell me what this mean?
Code:
C:\Users\Julian\Desktop\apktool>apktool b Launcher2 launcher.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/d
rawable-sw600dp-hdpi
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/d
rawable-sw600dp-nodpi
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/l
ayout-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/l
ayout-sw600dp-land
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/l
ayout-sw600dp-port
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-af-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-am-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-ar-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-bg-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-ca-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-cs-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-da-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-de-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-el-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-en-rGB-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-es-rUS-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-es-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-fa-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-fi-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-fr-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-hi-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-hr-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-hu-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-in-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-it-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-iw-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-ja-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-ko-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-lt-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-lv-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-ms-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-nb-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-nl-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-pl-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-pt-rPT-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-pt-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-ro-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-ru-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sk-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sl-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sr-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sv-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw340dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw340dp-land
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw340dp-port
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw600dp-land
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw600dp-port
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw720dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw720dp-land
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw720dp-port
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-th-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-tl-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-tr-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-uk-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-vi-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-zh-rCN-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-zh-rTW-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-zu-sw600dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Julian\AppData\Local\Temp\
APKTOOL3469899241465810932.tmp, -I, C:\Users\Julian\apktool\framework\1.apk, -S,
C:\Users\Julian\Desktop\apktool\Launcher2\res, -M, C:\Users\Julian\Desktop\apkt
ool\Launcher2\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\Julian\AppData\Local\Temp\APKTOOL3469899241465810932.tmp, -I, C:\Users\Juli
an\apktool\framework\1.apk, -S, C:\Users\Julian\Desktop\apktool\Launcher2\res, -
M, C:\Users\Julian\Desktop\apktool\Launcher2\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
C:\Users\Julian\Desktop\apktool>
I am trying to edit the ICS launcher's manifest so that I can make it work with previous version.. I was thinking that maybe apktool had to be updated for every os update but am not sure as I am new to this....
Thanks for the help.. Sorry if this is the wrong place
alil2cul4u said:
can anyone tell me what this mean?
Code:
C:\Users\Julian\Desktop\apktool>apktool b Launcher2 launcher.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/d
rawable-sw600dp-hdpi
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/d
rawable-sw600dp-nodpi
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/l
ayout-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/l
ayout-sw600dp-land
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/l
ayout-sw600dp-port
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-af-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-am-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-ar-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-bg-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-ca-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-cs-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-da-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-de-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-el-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-en-rGB-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-es-rUS-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-es-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-fa-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-fi-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-fr-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-hi-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-hr-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-hu-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-in-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-it-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-iw-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-ja-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-ko-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-lt-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-lv-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-ms-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-nb-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-nl-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-pl-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-pt-rPT-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-pt-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-ro-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-ru-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sk-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sl-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sr-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sv-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw340dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw340dp-land
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw340dp-port
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw600dp-land
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw600dp-port
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw720dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw720dp-land
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-sw720dp-port
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-th-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-tl-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-tr-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-uk-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-vi-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-zh-rCN-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-zh-rTW-sw600dp
invalid resource directory name: C:\Users\Julian\Desktop\apktool\Launcher2\res/v
alues-zu-sw600dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Julian\AppData\Local\Temp\
APKTOOL3469899241465810932.tmp, -I, C:\Users\Julian\apktool\framework\1.apk, -S,
C:\Users\Julian\Desktop\apktool\Launcher2\res, -M, C:\Users\Julian\Desktop\apkt
ool\Launcher2\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\Julian\AppData\Local\Temp\APKTOOL3469899241465810932.tmp, -I, C:\Users\Juli
an\apktool\framework\1.apk, -S, C:\Users\Julian\Desktop\apktool\Launcher2\res, -
M, C:\Users\Julian\Desktop\apktool\Launcher2\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
C:\Users\Julian\Desktop\apktool>
I am trying to edit the ICS launcher's manifest so that I can make it work with previous version.. I was thinking that maybe apktool had to be updated for every os update but am not sure as I am new to this....
Thanks for the help.. Sorry if this is the wrong place
Click to expand...
Click to collapse
Or you using the latest apktool, also you need to load your resource files ( framework.res.apk, com.resources.apk)
Sent from my HTC Sensation XL with Beats Audio X315e using xda premium
@carl1961
Nice tool and great tutorial, thank you very much.
Awesome job putting this together, thanks!! I am out of the thanks for the moment but I have this page kept open.
Hi,
I have totally repackaged your tools and added some of my own that will be of great help to people. The Smali packages I made my self, the dex2jar toolset was made by the guy that originally did the translating. Credits to him.
I have also packaged everything with the latest smali/baksmali which will do Ice Cream Sandwich as well and it totally backawards compatible
You now don't need instructions at all you just type decompile before the name of any jar file and it will do it all for you...same as for recompile (although I haven't tested that yet though. I assume that you will need to do all the regular stuff like apktool as I set it up the same
Code:
decompile services.jar
thats it...its that simple
Code:
recompile out -o classes.dex
then -> WinRAR services.jar and drag classes.dex back in and close
NOTE: Use the help function. It is decompile.bat. It wil print the options in prompt for you.
You guys who are ICS or less will need to change API level from default 14 (as you should all do anyway Rule #1 check the api level of the toolset and Question #1 is can it be changed to match mine? in this case yes!
PS: I am about to write a plugin or module (if I can find the damn time) to decompile do full scripting comparison as a porting toolset i.e. place two jar files in the respectable locations launch the menu and it will decompile the two jar files, and then print a report on screen and then you can select how you want to proceed...still nutting that one out? I.e. swap classes in or out of one or both sides
Though I didn't read your guides (Because I followed zeppelinrox instructions on his thread), but it is very very kind of you to go through the extend to create those guides. :good::good:
good to know though i am a dev noob~ haha
Could we use this for making "skip-track-via-volume-buttons" mod with this. Pardon me am a noob. But i really want to learn a how-to for Non-CyanogenMods. Maybe my signature could express my willingness.
Thanks.
You don't have to compare with your eyes.. if you are running linux, just do a "diff" between the smali file from the htc framework and one from CM. It will show you all the differences each file has.
Has anyone else has this problem with apktool on mac os X 10.7.4? I tried to recompile the framework-res to have a smaller navigation bar.
dyn172-30-14-218:downloads vincentdinculescu$ apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
(skipping hidden file '/Users/vincentdinculescu/Downloads/framework-res/res/.DS_Store')
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/anim-sw720dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/drawable-sw600dp-nodpi
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/drawable-sw600dp-xhdpi
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/drawable-sw720dp-nodpi
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/layout-sw600dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/layout-sw720dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/layout-w600dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-h720dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-sw600dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-sw600dp-land
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-sw600dp-w960dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-sw720dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-sw720dp-land
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-sw720dp-port
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-sw720dp-w1280dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-w360dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-w480dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-w500dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-w600dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-w720dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /var/folders/hw/7n7686ms0gq9d5hkf7gbytlw0000gn/T/APKTOOL5798937651531490956.tmp, -x, -S, /Users/vincentdinculescu/Downloads/framework-res/res, -M, /Users/vincentdinculescu/Downloads/framework-res/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /var/folders/hw/7n7686ms0gq9d5hkf7gbytlw0000gn/T/APKTOOL5798937651531490956.tmp, -x, -S, /Users/vincentdinculescu/Downloads/framework-res/res, -M, /Users/vincentdinculescu/Downloads/framework-res/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
dyn172-30-14-218:downloads vincentdinculescu$
has anyone else had problems with posting in Q&A? or are you developing something here
"winners don't use MAC"
Pachanka said:
"winners don't use MAC"
Click to expand...
Click to collapse
haha buts it so pretty, lol sorry can the mods move this to Q and A
Your ****ty mac says anything android related is an "invalid resource". Typical.
vince.26 said:
Has anyone else has this problem with apktool on mac os X 10.7.4? I tried to recompile the framework-res to have a smaller navigation bar.
dyn172-30-14-218:downloads vincentdinculescu$ apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
(skipping hidden file '/Users/vincentdinculescu/Downloads/framework-res/res/.DS_Store')
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/anim-sw720dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/drawable-sw600dp-nodpi
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/drawable-sw600dp-xhdpi
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/drawable-sw720dp-nodpi
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/layout-sw600dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/layout-sw720dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/layout-w600dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-h720dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-sw600dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-sw600dp-land
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-sw600dp-w960dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-sw720dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-sw720dp-land
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-sw720dp-port
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-sw720dp-w1280dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-w360dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-w480dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-w500dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-w600dp
invalid resource directory name: /Users/vincentdinculescu/Downloads/framework-res/res/values-w720dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /var/folders/hw/7n7686ms0gq9d5hkf7gbytlw0000gn/T/APKTOOL5798937651531490956.tmp, -x, -S, /Users/vincentdinculescu/Downloads/framework-res/res, -M, /Users/vincentdinculescu/Downloads/framework-res/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /var/folders/hw/7n7686ms0gq9d5hkf7gbytlw0000gn/T/APKTOOL5798937651531490956.tmp, -x, -S, /Users/vincentdinculescu/Downloads/framework-res/res, -M, /Users/vincentdinculescu/Downloads/framework-res/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
dyn172-30-14-218:downloads vincentdinculescu$
Click to expand...
Click to collapse
It's a Mac lawsuit thing, Apple doesn't like competitors.
Know-Fear said:
Your ****ty mac says anything android related is an "invalid resource". Typical.
Click to expand...
Click to collapse
Hahaha, so true .
vince.26, I guess the mods will be harsh on you for posting in the wrong section because you're using something made by Apple...
nah, I'm just kidding ya.
Not sure why you get that error, but anyway... Mac sucks - at least the OS. If I ever buy a MacBook (if I ever have a manager-like income, that is), I'll dual-boot Windows and Linux on it, but make sure I burn the disk first, so no trace of Mac ****ness is left XD
Know-Fear said:
Your ****ty mac says anything android related is an "invalid resource". Typical.
Click to expand...
Click to collapse
same problem on windows
.
D:\Android\apktool>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: D:\Android\apktool\framework-res\res/anim-sw720
dp
invalid resource directory name: D:\Android\apktool\framework-res\res/drawable-s
w600dp-nodpi
invalid resource directory name: D:\Android\apktool\framework-res\res/drawable-s
w600dp-xhdpi
invalid resource directory name: D:\Android\apktool\framework-res\res/drawable-s
w720dp-nodpi
invalid resource directory name: D:\Android\apktool\framework-res\res/layout-sw6
00dp
invalid resource directory name: D:\Android\apktool\framework-res\res/layout-sw7
20dp
invalid resource directory name: D:\Android\apktool\framework-res\res/layout-w60
0dp
invalid resource directory name: D:\Android\apktool\framework-res\res/values-h72
0dp
invalid resource directory name: D:\Android\apktool\framework-res\res/values-sw6
00dp
invalid resource directory name: D:\Android\apktool\framework-res\res/values-sw6
00dp-land
invalid resource directory name: D:\Android\apktool\framework-res\res/values-sw6
00dp-w960dp
invalid resource directory name: D:\Android\apktool\framework-res\res/values-sw7
20dp
invalid resource directory name: D:\Android\apktool\framework-res\res/values-sw7
20dp-land
invalid resource directory name: D:\Android\apktool\framework-res\res/values-sw7
20dp-port
invalid resource directory name: D:\Android\apktool\framework-res\res/values-sw7
20dp-w1280dp
invalid resource directory name: D:\Android\apktool\framework-res\res/values-w36
0dp
invalid resource directory name: D:\Android\apktool\framework-res\res/values-w48
0dp
invalid resource directory name: D:\Android\apktool\framework-res\res/values-w50
0dp
invalid resource directory name: D:\Android\apktool\framework-res\res/values-w60
0dp
invalid resource directory name: D:\Android\apktool\framework-res\res/values-w72
0dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\BELLER~1\AppData\Local\Tem
p\APKTOOL1218440664050319810.tmp, -x, -S, D:\Android\apktool\framework-res\res,
-M, D:\Android\apktool\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\BELLER~1\AppData\Local\Temp\APKTOOL1218440664050319810.tmp, -x, -S, D:\Andr
oid\apktool\framework-res\res, -M, D:\Android\apktool\framework-res\AndroidManif
est.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
D:\Android\apktool>
Please read forum rules before making threads
Questions go in Q&A
Thread Moved
Thanks
FNM
Android version? Did you update your SDK?
Sent from my Galaxy Nexus using xda premium
I sideloaded OpenVPNConnect and OpenVPN(blinkt.de) on my FireTvStick 5.2.1.1.
Both apps are able to connect to my vpn server and according to their own logs routes (especialle for 0.0.0.0) have been created and the sequence is completed.
But in opposite to all other my android devices where the same vpn config works the FireTvStick is not using the vpn.
The output of logcat follows for both applications.
de.blinkt.openvpn.apk:
Code:
12-20 19:59:37.588: D/VpnJni(987): Address added on tun0: 10.8.0.10/30
12-20 19:59:37.608: D/ConnectivityService(987): registerNetworkAgent NetworkAgentInfo{ ni{[type: VPN[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: (none), roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false]} network{null} lp{{InterfaceName: tun0 LinkAddresses: [10.8.0.10/30,] Routes: [0.0.0.0/1 -> 0.0.0.0 tun0,128.0.0.0/2 -> 0.0.0.0 tun0,192.0.0.0/9 -> 0.0.0.0 tun0,192.128.0.0/11 -> 0.0.0.0 tun0,192.160.0.0/13 -> 0.0.0.0 tun0,192.168.0.0/17 -> 0.0.0.0 tun0,192.168.128.0/19 -> 0.0.0.0 tun0,192.168.160.0/20 -> 0.0.0.0 tun0,192.168.176.0/23 -> 0.0.0.0 tun0,192.168.179.0/24 -> 0.0.0.0 tun0,192.168.180.0/22 -> 0.0.0.0 tun0,192.168.184.0/21 -> 0.0.0.0 tun0,192.168.192.0/18 -> 0.0.0.0 tun0,192.169.0.0/16 -> 0.0.0.0 tun0,192.170.0.0/15 -> 0.0.0.0 tun0,192.172.0.0/14 -> 0.0.0.0 tun0,192.176.0.0/12 -> 0.0.0.0 tun0,192.192.0.0/10 -> 0.0.0.0 tun0,193.0.0.0/8 -> 0.0.0.0 tun0,194.0.0.0/7 -> 0.0.0.0 tun0,196.0.0.0/6 -> 0.0.0.0 tun0,200.0.0.0/5 -> 0.0.0.0 tun0,208.0.0.0/4 -> 0.0.0.0 tun0,] DnsAddresses: [208.67.222.222,208.67.220.220,] Domains: MTU: 0}} nc{[ Transports: VPN Capabilities: NOT_RESTRICTED&TRUSTED]} Score{0} everValidated{false} lastValidated{false} created{false} explicitlySelected{false} }
12-20 19:59:37.608: D/ConnectivityService(987): Adding iface tun0 to network 110
12-20 19:59:37.628: I/Vpn(987): Established by de.blinkt.openvpn on tun0
12-20 19:59:37.688: E/Netd(153): failed to add interface tun0 to VPN netId 110
12-20 19:59:37.698: E/ConnectivityService(987): Exception adding interface: java.lang.IllegalStateException: command '366 network interface add 110 tun0' failed with '400 366 addInterfaceToNetwork() failed (Invalid argument)'
12-20 19:59:37.698: E/ConnectivityService(987): Unexpected mtu value: 0, tun0
12-20 19:59:37.698: E/Netd(153): interface tun0 not assigned to any netId
...
net.openvpn.openvpn.apk:
Code:
12-20 20:00:19.226: D/VpnJni(987): Address added on tun0: 10.8.0.10/30
12-20 20:00:19.246: I/Vpn(987): Established by net.openvpn.openvpn on tun0
12-20 20:00:19.246: D/ConnectivityService(987): registerNetworkAgent NetworkAgentInfo{ ni{[type: VPN[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: (none), roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false]} network{null} lp{{InterfaceName: tun0 LinkAddresses: [10.8.0.10/30,] Routes: [10.8.0.1/32 -> 0.0.0.0 tun0,0.0.0.0/0 -> 0.0.0.0 tun0,::/0 unreachable,] DnsAddresses: [208.67.222.222,208.67.220.220,] Domains: MTU: 0}} nc{[ Transports: VPN Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED]} Score{0} everValidated{false} lastValidated{false} created{false} explicitlySelected{false} }
12-20 20:00:19.246: D/ConnectivityService(987): Adding iface tun0 to network 111
12-20 20:00:19.306: E/Netd(153): failed to add interface tun0 to VPN netId 111
12-20 20:00:19.316: E/ConnectivityService(987): Exception adding interface: java.lang.IllegalStateException: command '401 network interface add 111 tun0' failed with '400 401 addInterfaceToNetwork() failed (Invalid argument)'
12-20 20:00:19.316: E/ConnectivityService(987): Unexpected mtu value: 0, tun0
12-20 20:00:19.316: E/Netd(153): interface tun0 not assigned to any netId
12-20 20:00:19.316: E/ConnectivityService(987): Exception in addRoute for non-gateway: java.lang.IllegalStateException: command '402 network route add 111 tun0 10.8.0.1/32' failed with '400 402 addRoute() failed (No such device)'
12-20 20:00:19.316: E/Netd(153): interface tun0 not assigned to any netId
12-20 20:00:19.326: E/ConnectivityService(987): Exception in addRoute for non-gateway: java.lang.IllegalStateException: command '403 network route add 111 tun0 0.0.0.0/0' failed with '400 403 addRoute() failed (No such device)'
12-20 20:00:19.326: E/Netd(153): interface tun0 not assigned to any netId
12-20 20:00:19.396: E/ConnectivityService(987): Attempting to register duplicate agent for type 17: NetworkAgentInfo{ ni{[type: VPN[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: (none), roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningNetwork: false]} network{111} lp{{InterfaceName: tun0 LinkAddresses: [10.8.0.10/30,] Routes: [10.8.0.1/32 -> 0.0.0.0 tun0,0.0.0.0/0 -> 0.0.0.0 tun0,::/0 unreachable,] DnsAddresses: [208.67.222.222,208.67.220.220,] Domains: MTU: 0}} nc{[ Transports: VPN Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED]} Score{0} everValidated{true} lastValidated{true} created{true} explicitlySelected{false} }
adding a route by hand via "route add default gw 10.8.0.1 dev tun0" is not permitted.
so is the whole thing an rooted/unrooted issue?
Torch does not work.:crying:
How can I fix it?
Error code:
Code:
11-14 12:03:37.221 1177-1575/system_process E/wifi: Ignoring invalid tx_level info in radio_stats
11-14 12:03:40.236 1177-1575/system_process E/wifi: Ignoring invalid tx_level info in radio_stats
11-14 12:03:41.490 432-435/? E/ANDR-PERF-OPTSHANDLER: Sched boost lock is already acquired, concurrency is not supported for this resource
11-14 12:03:41.490 432-435/? E/ANDR-PERF-RESOURCEQS: Failed to apply optimization [4, 3, 0]
11-14 12:03:43.249 1177-1575/system_process E/wifi: Ignoring invalid tx_level info in radio_stats
11-14 12:03:46.264 1177-1575/system_process E/wifi: Ignoring invalid tx_level info in radio_stats
[ 11-14 12:03:47.008 535: 535 E/ ]
open camera flash failed
11-14 12:03:47.008 535-535/? E/CameraService: setTorchMode: Setting torch mode of camera "0" to 0 failed: Invalid argument (-22)
11-14 12:03:47.014 1693-1920/com.android.systemui E/FlashlightController: Couldn't set torch mode
android.hardware.camera2.CameraAccessException: CAMERA_ERROR (3): setTorchMode:1449: Setting torch mode of camera "0" to 0 failed: Invalid argument (-22)
at android.hardware.camera2.CameraManager.throwAsPublicException(CameraManager.java:702)
at android.hardware.camera2.CameraManager$CameraManagerGlobal.setTorchMode(CameraManager.java:970)
at android.hardware.camera2.CameraManager.setTorchMode(CameraManager.java:563)
at com.android.systemui.statusbar.policy.FlashlightController.setFlashlight(FlashlightController.java:119)
at com.android.systemui.qs.tiles.FlashlightTile.handleClick(FlashlightTile.java:88)
at com.android.systemui.qs.QSTile.handleSecondaryClick(QSTile.java:244)
at com.android.systemui.qs.QSTile$H.handleMessage(QSTile.java:382)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.os.HandlerThread.run(HandlerThread.java:61)
Caused by: android.os.ServiceSpecificException: setTorchMode:1449: Setting torch mode of camera "0" to 0 failed: Invalid argument (-22)
at android.os.Parcel.readException(Parcel.java:1698)
at android.os.Parcel.readException(Parcel.java:1637)
at android.hardware.ICameraService$Stub$Proxy.setTorchMode(ICameraService.java:497)
at android.hardware.camera2.CameraManager$CameraManagerGlobal.setTorchMode(CameraManager.java:968)
at android.hardware.camera2.CameraManager.setTorchMode(CameraManager.java:563)*
at com.android.systemui.statusbar.policy.FlashlightController.setFlashlight(FlashlightController.java:119)*
at com.android.systemui.qs.tiles.FlashlightTile.handleClick(FlashlightTile.java:88)*
at com.android.systemui.qs.QSTile.handleSecondaryClick(QSTile.java:244)*
at com.android.systemui.qs.QSTile$H.handleMessage(QSTile.java:382)*
at android.os.Handler.dispatchMessage(Handler.java:102)*
at android.os.Looper.loop(Looper.java:154)*
at android.os.HandlerThread.run(HandlerThread.java:61)*
11-14 12:03:49.284 1177-1575/system_process E/wifi: Ignoring invalid tx_level info in radio_stats
11-14 12:03:52.312 1177-1575/system_process E/wifi: Ignoring invalid tx_level info in radio_stats
My device is Coolpad Changer S1. C105's info: Snapdragon 821, 4g ram, 64g rom, etc. C105 is similar to zl1 except its appearance. For more information, you can google "LeShi and Coolpad". C105 can use zl1's ROM when C105 uses zl1's aboot firmware.
Torch works well:
1. official lineageos rom, such as lineage-14.1-20171111-nightly-zl1-signed.zip.
2. unofficial lineageos rom, such as lineage-14.1-20171113_161359-UNOFFICIAL-zl1.zip, which is built by myself without replacing the keyword "zl1" with "ares" in some makefiles.
Torch doesn't work:
1. unofficial lineageos rom, such as lineage-14.1-20171113_161359-UNOFFICIAL-ares.zip, which is built by myself and I replace the keyword "zl1" with "ares" in all makefiles. For more details, you can view the source codes.
Source codes:
It is a pity that I'm a new user and can't post post outside links. Please add headers by yourself.
1. github.com/KK666666/local_manifests.git
2.github.com/KK666666/android_device_coolpad_ares.git
3. github.com/KK666666/android_device_coolpad_msm8996-common.git
4. github.com/KK666666/android_vendor_leeco_ares.git
5. github.com/KK666666/android_vendor_leeco_msm8996-common.git
I like lineageos very much!
My e-mail address is [email protected].