DIRECTV NOW app for Shield TV? - Shield Android TV Q&A, Help & Troubleshooting

Hi all,
**This is regarding the DirecTV NOW service that just launched 11/30, not the normal satellite DirecTV**
At launch, no app for Android TV yet, just on mobile and tablets. I tried the following sideload methods:
Sideload mobile Android apk
-Only air cursor works and video will not stream. Eventually force closes
Sideload Fire TV stick apk
-wont let you sign in without Amazon app store
A lot of you here are a lot smarter than I am. Any ideas to try? It's a shame they didn't support Android TV at launch.

Does anyone have a gen 2 Fire TV device?

Ok, so I was able to extract the Fire TV .apk file and sideload onto my Nvidia Shield TV. I was able to open it and navigate using the standard Shield remote. The only issue I am having is playing live TV content. Sometimes it loaded fine and other times it gives me an error and telling me to Refresh the content. Seems to be very buggy for Android TV. Here is a link to the extracted .apk file. I would like to see what you guys get trying this out.
uploadfiles.io/52771#.WEGhSyGy1_U.email

Anyone knows if this works under any US VPN outside of USA?
I guess I will try modding this app later to try to make it work on the Shield. Or try the one posted here but I know the IOS app on my iPhone I just can't make it work behind a US VPN, it detects that I'm not in USA with any US VPN connection I try. It gets the info from Location Services.

saulin78 said:
Anyone knows if this works under any US VPN outside of USA?
I guess I will try modding this app later to try to make it work on the Shield. Or try the one posted here but I know the IOS app on my iPhone I just can't make it work behind a US VPN, it detects that I'm not in USA with any US VPN connection I try. It gets the info from Location Services.
Click to expand...
Click to collapse
If a VPN doesn't work, I'm not sure. The app wouldn't stream on my phone because it was rooted. I removed root and voila, streamed fine. So unfortunately that takes some options off the table.

..

JJ-KwiK said:
I modified the apk to remove any Amazon Appstore checks for someone else. I don't in the US, so I can't test if it's working. Here's the apk if anyone is interested.
https://mega.nz/#!2ponECAL!VyyXMwZ36g13MBiD7jeX3VbV3_8mriYaDK3hBhbr5mk
Click to expand...
Click to collapse
I just tested. I can confirm it no longer asks for Amazon credentials, but it won't let you stream. The app works perfectly, and will even start streaming for a split second, then you get an error 40.
They must do some sort of device check only when attempting to stream because this is the same exact way it behaved when I tried it on my rooted phone (my shield is not rooted).

I can also confirm that it no longer prompts you about the missing Amazon app store. Streaming remains unchanged from the original ported app however, I can only get about 15-25 channels to stream reliably, with the overall majority showing error 40 after working for just a split second. (All the ESPN and Disney channel's seem to stream fine).

JJ-KwiK said:
I modified the apk to remove any Amazon Appstore checks for someone else. I don't in the US, so I can't test if it's working. Here's the apk if anyone is interested.
https://mega.nz/#!2ponECAL!VyyXMwZ36g13MBiD7jeX3VbV3_8mriYaDK3hBhbr5mk
Click to expand...
Click to collapse
Hey man, can you remove the check for the updated one that just came out?
http://www.mediafire.com/file/d5ds6cie7x57hst/DirecTV.Now.AFTV2.apk

montajd said:
Hey man, can you remove the check for the updated one that just came out?
http://www.mediafire.com/file/d5ds6cie7x57hst/DirecTV.Now.AFTV2.apk
Click to expand...
Click to collapse
This ^^^. They required GPS to stream and that requirement has been removed in the new version. Could very well have been what was tripping us up

..

Thanks for modding the app again. The good news is that you don't have to modify it for lean back, it already appears in the launcher after installation.
The bad news is it still only streams a small handful of the channels, so the newer version of the app didn't solve any of the issues of trying to use it on the shield.
The app functions so well that I am hopeful that they will reach a deal to get the official app to Android TV sooner rather than later. Here's hoping that they can integrate it into the Live Channels app, which is probably what the hold up is.

..

JJ-KwiK which tool or which commands are You using to decompile and recompile the apk?
I keep getting an error when recompiling with apktool after I made my modifications with Notepad++
I usually don't have issues with other apps. That's why I'd like to know what you are using to decompile, recompile and sign the apk
I think we can remove 3 checks if we bypass these checks. If anyone wants to do these and also remove the Amazon Store Check from the latest FireTV version maybe we can get a working version for the Shield.
Code:
in ---> \smali\com\comscore\applications\AppStartMeasurement.smali
invoke-static {}, Lcom/comscore/utils/RootDetector;->isDeviceRooted()Z
move-result v1
if-eqz v1, :cond_1
Code:
In ---> \smali\com\insidesecure\drmagent\v2\internal\DRMAgentNativeBridge.smali
invoke-static {}, Lcom/comscore/utils/RootDetector;->a()Z
move-result v1
if-eqz v1, :cond_1
Code:
In ---> \smali\com\comscore\analytics\Census.smali
invoke-virtual {v1}, Lcom/comscore/analytics/Core;->isSecure()Z
move-result v0
if-eqz v0, :cond_2
Code:
In ---> smali\com\comscore\analytics\comScore.smali
invoke-virtual {p0}, Lcom/comscore/analytics/Core;->isSecure()Z
move-result v0
if-eqz v0, :cond_1
Code:
In ---> \smali\com\comscore\utils\OfflineMeasurementsCache.smali
invoke-virtual {v0}, Lcom/comscore/analytics/Core;->isSecure()Z
move-result v0
if-eqz v0, :cond_5
There is also the check that throws an error if outside USA even behind a VPN. But I'd like to know if bypassing these checks help
This is what I get with apktool when recompiling
Code:
C:\Users\Vero>C:\apk2tv1.1\apktool b C:\apk2tv1.1\temp
I: Using Apktool 2.2.0
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes2 folder into classes2.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes3 folder into classes3.dex...
I: Checking whether resources has changed...
I: Building resources...
W: C:\apk2tv1.1\temp\res\layout\preference_list_fragment.xml:4: error: Error: Re
source is not public. (at 'id' with value '@android:id/menu').
W:
W: C:\apk2tv1.1\temp\res\layout\preference_widget_switch.xml:2: error: Error: Re
source is not public. (at 'id' with value '@android:id/right_icon').
W:
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec (exit code = 1): [C:\User
s\Vero\AppData\Local\Temp\brut_util_Jar_8423560757252002085.tmp, p, --forced-pac
kage-id, 127, --min-sdk-version, 19, --target-sdk-version, 24, --version-code, 1
0002106, --version-name, 1.0.0.2106, -F, C:\Users\Vero\AppData\Local\Temp\APKTOO
L8970358793249648231.tmp, -0, arsc, -0, res/raw/quickplay_authentec_opl150_pr_ce
rt, -0, res/raw/quickplay_authentec_opl150_pr_privatekey, -0, res/raw/quickplay_
authentec_opl150_wm_cert, -0, res/raw/quickplay_authentec_opl150_wm_privatekey,
-0, res/raw/quickplay_authentec_opl2000_pr_cert, -0, res/raw/quickplay_authentec
_opl2000_pr_privatekey, -0, res/raw/quickplay_authentec_opl2000_wm_cert, -0, res
/raw/quickplay_authentec_opl2000_wm_privatekey, -0, res/raw/quickplay_authentec_
opl400_pr_cert, -0, res/raw/quickplay_authentec_opl400_pr_privatekey, -0, res/ra
w/quickplay_authentec_opl400_wm_cert, -0, res/raw/quickplay_authentec_opl400_wm_
privatekey, -0, arsc, -I, C:\Users\Vero\AppData\Local\apktool\framework\1.apk, -
S, C:\apk2tv1.1\temp\res, -M, C:\apk2tv1.1\temp\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:473)
at brut.androlib.Androlib.buildResources(Androlib.java:407)
at brut.androlib.Androlib.build(Androlib.java:306)
at brut.androlib.Androlib.build(Androlib.java:263)
at brut.apktool.Main.cmdBuild(Main.java:224)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec (exit code = 1): [C:\Users\Vero\AppData\Local\Temp\brut_util_Jar_842356075
7252002085.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk
-version, 24, --version-code, 10002106, --version-name, 1.0.0.2106, -F, C:\Users
\Vero\AppData\Local\Temp\APKTOOL8970358793249648231.tmp, -0, arsc, -0, res/raw/q
uickplay_authentec_opl150_pr_cert, -0, res/raw/quickplay_authentec_opl150_pr_pri
vatekey, -0, res/raw/quickplay_authentec_opl150_wm_cert, -0, res/raw/quickplay_a
uthentec_opl150_wm_privatekey, -0, res/raw/quickplay_authentec_opl2000_pr_cert,
-0, res/raw/quickplay_authentec_opl2000_pr_privatekey, -0, res/raw/quickplay_aut
hentec_opl2000_wm_cert, -0, res/raw/quickplay_authentec_opl2000_wm_privatekey, -
0, res/raw/quickplay_authentec_opl400_pr_cert, -0, res/raw/quickplay_authentec_o
pl400_pr_privatekey, -0, res/raw/quickplay_authentec_opl400_wm_cert, -0, res/raw
/quickplay_authentec_opl400_wm_privatekey, -0, arsc, -I, C:\Users\Vero\AppData\L
ocal\apktool\framework\1.apk, -S, C:\apk2tv1.1\temp\res, -M, C:\apk2tv1.1\temp\A
ndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:439)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:459)
... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\
Vero\AppData\Local\Temp\brut_util_Jar_8423560757252002085.tmp, p, --forced-packa
ge-id, 127, --min-sdk-version, 19, --target-sdk-version, 24, --version-code, 100
02106, --version-name, 1.0.0.2106, -F, C:\Users\Vero\AppData\Local\Temp\APKTOOL8
970358793249648231.tmp, -0, arsc, -0, res/raw/quickplay_authentec_opl150_pr_cert
, -0, res/raw/quickplay_authentec_opl150_pr_privatekey, -0, res/raw/quickplay_au
thentec_opl150_wm_cert, -0, res/raw/quickplay_authentec_opl150_wm_privatekey, -0
, res/raw/quickplay_authentec_opl2000_pr_cert, -0, res/raw/quickplay_authentec_o
pl2000_pr_privatekey, -0, res/raw/quickplay_authentec_opl2000_wm_cert, -0, res/r
aw/quickplay_authentec_opl2000_wm_privatekey, -0, res/raw/quickplay_authentec_op
l400_pr_cert, -0, res/raw/quickplay_authentec_opl400_pr_privatekey, -0, res/raw/
quickplay_authentec_opl400_wm_cert, -0, res/raw/quickplay_authentec_opl400_wm_pr
ivatekey, -0, arsc, -I, C:\Users\Vero\AppData\Local\apktool\framework\1.apk, -S,
C:\apk2tv1.1\temp\res, -M, C:\apk2tv1.1\temp\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:433)
... 6 more
Basically if we can patch the app to let it know that the device is secure and not rooted it might work. This is how I patched the AT&T U-Verse app and I can stream with it on the Nvidia Shield Android TV

..

Thanks JJ-KwiK. With that tool and Dex Manager. I was able to do the modifications and recompile the apk. However. I'm still getting error 40. It's still failing the security check

At least we can Google Cast until an official app is released or hacked proper. Would be nice to cast over mobile data though and not use up ISP data.

Is there any word on an official release for an Android TV version of DTV Now? I got the free Apple TV 4 deal but much prefer my Mi Box.

ya i got the free apple tv coming which i know would work well but i really would like to have this on my shield tv sooner than later! Thanks for the work i know i tried for a log time to get amazon videos on the shield

https://plus.google.com/+IsraelOliverJr414515/posts/KUURHCPHySi
Haven't tried it yet but feedback says it's working on all channels with no buffering.
Sent from my LG-H918 using Tapatalk

Related

[Q] Sense Multitasking Recents Mod for CM10.1

Hello everyone! I beleive this is the correct forum, so let me begin.
My brother recently got an HTC Droid DNA. Ok phone, laggy in some aspects that it should not be, but overall pretty cool. I have fallen in love with Sense Multitasking. I love the sleek look of it, and the reflection at the bottom.
My question is:
Is there any way to get the Sense Multitasking Recents for the Nexus 4?​
I understand certain files would need to be edited and decompiled, and I would be up for doing this. A flashable mod would be preferable, but I have been unable to find one that works. I have however found these two mods, which do exactly what I'm looking for, but for other phones.
Link: http://forum.xda-developers.com/showthread.php?t=2245793
Link: http://forum.xda-developers.com/showthread.php?t=2227191
I have found guides, but most of those guides are for CM9/10 ROMS, and they do not work for CM10.1 for whatever reason.
Link: http://forum.xda-developers.com/showthread.php?t=2066740
Link: http://forum.xda-developers.com/showthread.php?t=1589963
Any help on the matter would be much appreciated!
Many thanks for your time,
Connor Baker
So, in a way I'm bumping this. By digging deeper through the interwebz, I managed to find this guide: http://forum.xda-developers.com/showthread.php?t=2188545
I've made all the edits, and am trying to recompile SystemUI.apk, but apparently something isn't working in the framework-res.apk\res\values\public.xml
Here's the error that I receive in CMD prompt (yes, I am using Windows):
Code:
C:\Users\Connor Baker\Downloads\apktool1.5.2>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\Connor Baker\Downloads\apktool1.5.2\fr
amework-res\res/drawable-ldrtl-xhdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\CONNOR~1\AppData\Local\T
emp\APKTOOL3157169261723515344.tmp, -x, -0, arsc, -S, C:\Users\Connor Baker\Down
loads\apktool1.5.2\framework-res\res, -M, C:\Users\Connor Baker\Downloads\apktoo
l1.5.2\framework-res\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:
\Users\CONNOR~1\AppData\Local\Temp\APKTOOL3157169261723515344.tmp, -x, -0, arsc,
-S, C:\Users\Connor Baker\Downloads\apktool1.5.2\framework-res\res, -M, C:\User
s\Connor Baker\Downloads\apktool1.5.2\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 17, --target-sdk-version, 17, -F, C:\Users\CONNOR~1\AppData\Local\Tem
p\APKTOOL3157169261723515344.tmp, -x, -0, arsc, -S, C:\Users\Connor Baker\Downlo
ads\apktool1.5.2\framework-res\res, -M, C:\Users\Connor Baker\Downloads\apktool1
.5.2\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
C:\Users\Connor Baker\Downloads\apktool1.5.2>apktool b SystemUI
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res\values\public.xml:94:
error: Public entry identifier 0x7f0204c0 entry index is larger than available s
ymbols (index 1216, total symbols 1215).
C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res\values\public.xml:94:
error: Public symbol drawable/nav_bar_bg declared here is not defined.
C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res\values\public.xml:93:
error: Public entry identifier 0x7f0204bf entry index is larger than available s
ymbols (index 1215, total symbols 1215).
C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res\values\public.xml:93:
error: Public symbol drawable/notification_header_bg declared here is not define
d.
C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res\values\public.xml:96:
error: Public entry identifier 0x7f0204c2 entry index is larger than available s
ymbols (index 1218, total symbols 1215).
C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res\values\public.xml:96:
error: Public symbol drawable/notification_icon_area_smoke declared here is not
defined.
C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res\values\public.xml:98:
error: Public entry identifier 0x7f0204c4 entry index is larger than available s
ymbols (index 1220, total symbols 1215).
C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res\values\public.xml:98:
error: Public symbol drawable/notification_item_background_color declared here i
s not defined.
C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res\values\public.xml:99:
error: Public entry identifier 0x7f0204c5 entry index is larger than available s
ymbols (index 1221, total symbols 1215).
C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res\values\public.xml:99:
error: Public symbol drawable/notification_item_background_color_pressed declare
d here is not defined.
C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res\values\public.xml:97:
error: Public entry identifier 0x7f0204c3 entry index is larger than available s
ymbols (index 1219, total symbols 1215).
C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res\values\public.xml:97:
error: Public symbol drawable/notification_shortcut_background_color declared he
re is not defined.
C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res\values\public.xml:95:
error: Public entry identifier 0x7f0204c1 entry index is larger than available s
ymbols (index 1217, total symbols 1215).
C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res\values\public.xml:95:
error: Public symbol drawable/system_bar_background declared here is not defined
.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\CONNOR~1\AppData\Local\T
emp\APKTOOL467937039532912873.tmp, -0, arsc, -I, C:\Users\Connor Baker\apktool\f
ramework\1.apk, -S, C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res, -
M, C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:
\Users\CONNOR~1\AppData\Local\Temp\APKTOOL467937039532912873.tmp, -0, arsc, -I,
C:\Users\Connor Baker\apktool\framework\1.apk, -S, C:\Users\Connor Baker\Downloa
ds\apktool1.5.2\SystemUI\res, -M, C:\Users\Connor Baker\Downloads\apktool1.5.2\S
ystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 17, --target-sdk-version, 17, -F, C:\Users\CONNOR~1\AppData\Local\Tem
p\APKTOOL467937039532912873.tmp, -0, arsc, -I, C:\Users\Connor Baker\apktool\fra
mework\1.apk, -S, C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\res, -M,
C:\Users\Connor Baker\Downloads\apktool1.5.2\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
C:\Users\Connor Baker\Downloads\apktool1.5.2>
So yeah. I'm not sure what I'm doing wrong :l Any help would be gladly appreciated!
Connor Baker
Found what might be the problem (or one of them...):
https://code.google.com/p/android-apktool/issues/detail?id=424
The path appears to be invalid, "C:\Users\Connor Baker\Downloads\apktool1.5.2\framework-res\res/drawable-land-xhdpi". The backslash should be a forward slash. How would I fix this?
Connor Baker
Totally lost and way out my league.
Alright. So, because I really would like to have the Sense multitasking screen, I decided to re-install Ubuntu, in an attempt to see if a different OS fixed the problems I was having. Unfortunately, it didn't. So for whatever reason, I have decided to use the java version of the command.
I did find something interesting though.
When I run the java version of the command:
Code:
[email protected]:/usr/local/bin/apktool1.5.2$ java -jar apktool.jar b finished-framework-res
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.DirectoryException: java.util.zip.ZipException: error in opening zip file
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
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.Androlib.readMetaFile(Androlib.java:160)
... 4 more
[COLOR="Red"][B]Caused by: java.util.zip.ZipException: error in opening zip file[/B][/COLOR]
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:127)
at java.util.zip.ZipFile.<init>(ZipFile.java:143)
at brut.directory.ZipRODirectory.<init>(ZipRODirectory.java:53)
... 7 more
I get quite a few errors. But what made me wonder is when I do the same command, except with the flag for aapt (-a), I not only get fewer errors, but a different "Caused by"
Code:
[email protected]:/usr/local/bin/apktool1.5.2$ java -jar apktool.jar b [COLOR="Red"][B]-a[/B][/COLOR] finished-framework-res
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
[B][COLOR="Red"]Caused by: brut.directory.PathNotExist: apktool.yml[/COLOR][/B]
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
I am now thoroughly, and utterly lost as to what to do. Again, any suggestions or ideas would be much appreciated.
Many thanks for your time and patience,
Connor Baker
EDIT:
I forgot to mention that I do Google a bunch of my errors and try to be as proactive as possible about solving my problems. I notice that a lot of people are getting the same errors that I am, and that different things will fix it.
I think it could be as simple as apktool not working correctly for me.
So, here's a list of things I have and have not done:
I did install Java (JRE, and JDK)
I did set up the Android SDK (Ubuntu)
I do have working adb (Ubuntu)
I did try to use a variety of programs to get the decompiled and editied .apk's to compile back
I did notice that if I decompiled framework-res.apk, and then tried to recompile it without editing it, I still got the same errors. I'm getting the creepy feeling that it may just be apktool. The latest version that I found was made back on the 2nd of February.
I did try Chainfire's fappt (fast aapt), and recieved the same results as the normal aapt.
I did switch out the aapt from the apktools package with the one in the Android SDK.
I DID NOT mess with any environmental varibales in Windows
I DID NOT add anything to my PATH file/directory "thingy" in Ubuntu
NEW: I have NOT edited SystemUI's public.xml, which may be causing some issues.
Thanks again,
Connor Baker
Pretty sure you need a sense port some guy says he got it booting just wait a while
Sent from my Nexus 4 using xda premium
randomnoob83 said:
Pretty sure you need a sense port some guy says he got it booting just wait a while
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
I would like that and I am following development closely, but right now in the short term (and possibly for the long term as well), I really want to get the Sense Recents Menu look... I find it quite sexy.
Thanks for reminding me about the port though
Connor Baker
randomnoob83 said:
Pretty sure you need a sense port some guy says he got it booting just wait a while
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
The fact that this mod works on devices without sense would say otherwise.
I know there is a sense recent-apps mod for Xperia Arc S, also windows phone and more, cause I had an xperia arc s... What I mean is sense recent-apps could be ported
randomnoob83 said:
Pretty sure you need a sense port some guy says he got it booting just wait a while
Sent from my Nexus 4 using xda premium
Click to expand...
Click to collapse
Actually this feature of sense recents was present for the galaxy nexus and worked on aosp roms. It was even included in aokp but it was eventually removed.
Sense port isn't necessary.
Sent from my Nexus 4 using Tapatalk 4 Beta
Oh. My. God.
I think I figured it out. I decided to use a different PC (my Dad's), and got the same error. I then read through it as closely as possible. I found out that I couldn't compile because it was a path error. I hadn't specified the correct directory. I feel like an idiot
Well, now that it's fixed, I will try to build an compile and test it out
Connor Baker
EDIT: Read my post on the next page :l
Well, it appears that only framework-res compiled successfully. SystemUI still won't compile.
Here's the code:
Code:
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects>apktool b SystemUI SystemUI.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects\SystemUI\res\layout-land\status_bar_recent_panel.xml:5
: error: Error: No resource found that matches the given name (at 'id' with valu
e '@id/recents_transition_background').
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects\SystemUI\res\layout-land\status_bar_recent_panel.xml:7
: error: Error: No resource found that matches the given name (at 'id' with valu
e '@id/recents_transition_placeholder_icon').
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects\SystemUI\res\layout-land\status_bar_recent_panel.xml:1
1: error: Error: No resource found that matches the given name (at 'text' with v
alue '@string/recent_apps_title').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\Brian\AppData\Local\Temp
\APKTOOL8099337422514245639.tmp, -0, arsc, -I, C:\Users\Brian\apktool\framework\
1.apk, -S, C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Mult
i-Tool-Experimental-RELEASE\projects\SystemUI\res, -M, C:\Users\Brian\Downloads\
APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Experimental-RELEASE\projects
\SystemUI\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:353)
at brut.androlib.Androlib.buildResources(Androlib.java:281)
at brut.androlib.Androlib.build(Androlib.java:209)
at brut.androlib.Androlib.build(Androlib.java:177)
at brut.apktool.Main.cmdBuild(Main.java:237)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:
\Users\Brian\AppData\Local\Temp\APKTOOL8099337422514245639.tmp, -0, arsc, -I, C:
\Users\Brian\apktool\framework\1.apk, -S, C:\Users\Brian\Downloads\APK-Multi-Too
l-Experimental-RELEASE\APK-Multi-Tool-Experimental-RELEASE\projects\SystemUI\res
, -M, C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Too
l-Experimental-RELEASE\projects\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:406)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:334)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 17, --target-sdk-version, 17, -F, C:\Users\Brian\AppData\Local\Temp\A
PKTOOL8099337422514245639.tmp, -0, arsc, -I, C:\Users\Brian\apktool\framework\1.
apk, -S, C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-
Tool-Experimental-RELEASE\projects\SystemUI\res, -M, C:\Users\Brian\Downloads\AP
K-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Experimental-RELEASE\projects\S
ystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:404)
... 6 more
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects>
Thank you again for your time guys!
Connor Baker
Connor Baker said:
Well, it appears that only framework-res compiled successfully. SystemUI still won't compile.
Here's the code:
Code:
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects>apktool b SystemUI SystemUI.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects\SystemUI\res\layout-land\status_bar_recent_panel.xml:5
: error: Error: No resource found that matches the given name (at 'id' with valu
e '@id/recents_transition_background').
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects\SystemUI\res\layout-land\status_bar_recent_panel.xml:7
: error: Error: No resource found that matches the given name (at 'id' with valu
e '@id/recents_transition_placeholder_icon').
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects\SystemUI\res\layout-land\status_bar_recent_panel.xml:1
1: error: Error: No resource found that matches the given name (at 'text' with v
alue '@string/recent_apps_title').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\Brian\AppData\Local\Temp
\APKTOOL8099337422514245639.tmp, -0, arsc, -I, C:\Users\Brian\apktool\framework\
1.apk, -S, C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Mult
i-Tool-Experimental-RELEASE\projects\SystemUI\res, -M, C:\Users\Brian\Downloads\
APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Experimental-RELEASE\projects
\SystemUI\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:353)
at brut.androlib.Androlib.buildResources(Androlib.java:281)
at brut.androlib.Androlib.build(Androlib.java:209)
at brut.androlib.Androlib.build(Androlib.java:177)
at brut.apktool.Main.cmdBuild(Main.java:237)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:
\Users\Brian\AppData\Local\Temp\APKTOOL8099337422514245639.tmp, -0, arsc, -I, C:
\Users\Brian\apktool\framework\1.apk, -S, C:\Users\Brian\Downloads\APK-Multi-Too
l-Experimental-RELEASE\APK-Multi-Tool-Experimental-RELEASE\projects\SystemUI\res
, -M, C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Too
l-Experimental-RELEASE\projects\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:406)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:334)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 17, --target-sdk-version, 17, -F, C:\Users\Brian\AppData\Local\Temp\A
PKTOOL8099337422514245639.tmp, -0, arsc, -I, C:\Users\Brian\apktool\framework\1.
apk, -S, C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-
Tool-Experimental-RELEASE\projects\SystemUI\res, -M, C:\Users\Brian\Downloads\AP
K-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Experimental-RELEASE\projects\S
ystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:404)
... 6 more
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects>
Thank you again for your time guys!
Connor Baker
Click to expand...
Click to collapse
for CM10.1
you have not add these lines :
- /res/values/strings.xml
add this line to the end
Code:
<string name="recent_apps_title">Recent apps</string>
- /res/values/ids.xml
add this line to the end
Code:
<item type="id" name="recents_transition_background" />
<item type="id" name="recents_transition_placeholder_icon" />
see my guide for CM10.1 http://forum.xda-developers.com/showthread.php?t=2296068
Adi Aisiteru Reborn said:
for CM10.1
you have not add these lines :
- /res/values/strings.xml
add this line to the end
Code:
<string name="recent_apps_title">Recent apps</string>
- /res/values/ids.xml
add this line to the end
Code:
<item type="id" name="recents_transition_background" />
<item type="id" name="recents_transition_placeholder_icon" />
see my guide for CM10.1 http://forum.xda-developers.com/showthread.php?t=2296068
Click to expand...
Click to collapse
I looked through the guide, and I'm slightly confused with the smali editing.
"
STEP - 2
DECOMPILE, SystemUI.apk
go to - smali/com/android/systemui/recent/RecentsPanelView.smali
find this line method :
Code:
.method private updateThumbnail(Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;Landroid/graphics/Bitmap;ZZ)V
Delete that line until its .end method
Code:
.method private updateThumbnail(Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;Landroid/graphics/Bitmap;ZZ)V
-
-
-
DELETE UNTIL .end method
-
-
-
.end method"
Does that mean that from that line onwards (line 861-2081 beleive), until the very end of the page, I just delete the 1000+ lines of code? Or do I stop at the first .end method that comes up after the desired line (.method private updateThumbnail(Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;Landroid/graphics/Bitmap;ZZ)V)?
By the way, thank you a ton for your help! I'm really eager to get this working!
Connor Baker
Connor Baker said:
I looked through the guide, and I'm slightly confused with the smali editing.
"
STEP - 2
DECOMPILE, SystemUI.apk
go to - smali/com/android/systemui/recent/RecentsPanelView.smali
find this line method :
Code:
.method private updateThumbnail(Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;Landroid/graphics/Bitmap;ZZ)V
Delete that line until its .end method
Code:
.method private updateThumbnail(Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;Landroid/graphics/Bitmap;ZZ)V
-
-
-
DELETE UNTIL .end method
-
-
-
.end method"
Does that mean that from that line onwards (line 861-2081 beleive), until the very end of the page, I just delete the 1000+ lines of code? Or do I stop at the first .end method that comes up after the desired line (.method private updateThumbnail(Lcom/android/systemui/recent/RecentsPanelView$ViewHolder;Landroid/graphics/Bitmap;ZZ)V)?
By the way, thank you a ton for your help! I'm really eager to get this working!
Connor Baker
Click to expand...
Click to collapse
not until the very end line of the smali you delete it,
only on that .method..
and each method on the smali has their own .end method
or if you still dont undesrtand just upload me your RecentPanelView.smali , I'll edit it for you
Adi Aisiteru Reborn said:
not until the very end line of the smali you delete it,
only on that .method..
and each method on the smali has their own .end method
or if you still dont undesrtand just upload me your RecentPanelView.smali , I'll edit it for you
Click to expand...
Click to collapse
Many, many, MANY thanks dude!
I'm gonna try to do a fresh re-compile. Thanks for your awesome mod and guide
Connor Baker
Adi Aisiteru Reborn said:
not until the very end line of the smali you delete it,
only on that .method..
and each method on the smali has their own .end method
or if you still dont undesrtand just upload me your RecentPanelView.smali , I'll edit it for you
Click to expand...
Click to collapse
I'm getting this error now for the status_bar_recent_panel in both res\layout and res\layout-land. The only thing I can think of that would cause this problem is a typo or me not copying and pasting correctly into the .xml file.
Also, I attached the files that I thought you'd need if you wanted to take a look at the problem.
Code:
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects>apktool b SystemUI SystemUI.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects\SystemUI\res\layout\status_bar_recent_panel.xml:11: er
ror: Error: No resource found that matches the given name (at 'text' with value
'@string/recent_apps_title').
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects\SystemUI\res\layout-land\status_bar_recent_panel.xml:1
1: error: Error: No resource found that matches the given name (at 'text' with v
alue '@string/recent_apps_title').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\Brian\AppData\Local\Temp
\APKTOOL2279690671510886495.tmp, -0, arsc, -I, C:\Users\Brian\apktool\framework\
1.apk, -S, C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Mult
i-Tool-Experimental-RELEASE\projects\SystemUI\res, -M, C:\Users\Brian\Downloads\
APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Experimental-RELEASE\projects
\SystemUI\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:353)
at brut.androlib.Androlib.buildResources(Androlib.java:281)
at brut.androlib.Androlib.build(Androlib.java:209)
at brut.androlib.Androlib.build(Androlib.java:177)
at brut.apktool.Main.cmdBuild(Main.java:237)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:
\Users\Brian\AppData\Local\Temp\APKTOOL2279690671510886495.tmp, -0, arsc, -I, C:
\Users\Brian\apktool\framework\1.apk, -S, C:\Users\Brian\Downloads\APK-Multi-Too
l-Experimental-RELEASE\APK-Multi-Tool-Experimental-RELEASE\projects\SystemUI\res
, -M, C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Too
l-Experimental-RELEASE\projects\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:406)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:334)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 17, --target-sdk-version, 17, -F, C:\Users\Brian\AppData\Local\Temp\A
PKTOOL2279690671510886495.tmp, -0, arsc, -I, C:\Users\Brian\apktool\framework\1.
apk, -S, C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-
Tool-Experimental-RELEASE\projects\SystemUI\res, -M, C:\Users\Brian\Downloads\AP
K-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Experimental-RELEASE\projects\S
ystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:404)
... 6 more
EDIT: I had to upload the files to my google drive, because XDA won't let me upload .xml files :l
Link: https://drive.google.com/folderview?id=0B3NRC75seiK4NXVTR0x6dm9uYjg&usp=sharing
Many thanks for your time,
Connor Baker
Connor Baker said:
I'm getting this error now for the status_bar_recent_panel in both res\layout and res\layout-land. The only thing I can think of that would cause this problem is a typo or me not copying and pasting correctly into the .xml file.
Also, I attached the files that I thought you'd need if you wanted to take a look at the problem.
Code:
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects>apktool b SystemUI SystemUI.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects\SystemUI\res\layout\status_bar_recent_panel.xml:11: er
ror: Error: No resource found that matches the given name (at 'text' with value
'@string/recent_apps_title').
C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Expe
rimental-RELEASE\projects\SystemUI\res\layout-land\status_bar_recent_panel.xml:1
1: error: Error: No resource found that matches the given name (at 'text' with v
alue '@string/recent_apps_title').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\Brian\AppData\Local\Temp
\APKTOOL2279690671510886495.tmp, -0, arsc, -I, C:\Users\Brian\apktool\framework\
1.apk, -S, C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Mult
i-Tool-Experimental-RELEASE\projects\SystemUI\res, -M, C:\Users\Brian\Downloads\
APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Experimental-RELEASE\projects
\SystemUI\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:353)
at brut.androlib.Androlib.buildResources(Androlib.java:281)
at brut.androlib.Androlib.build(Androlib.java:209)
at brut.androlib.Androlib.build(Androlib.java:177)
at brut.apktool.Main.cmdBuild(Main.java:237)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:
\Users\Brian\AppData\Local\Temp\APKTOOL2279690671510886495.tmp, -0, arsc, -I, C:
\Users\Brian\apktool\framework\1.apk, -S, C:\Users\Brian\Downloads\APK-Multi-Too
l-Experimental-RELEASE\APK-Multi-Tool-Experimental-RELEASE\projects\SystemUI\res
, -M, C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-Too
l-Experimental-RELEASE\projects\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:406)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:334)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 17, --target-sdk-version, 17, -F, C:\Users\Brian\AppData\Local\Temp\A
PKTOOL2279690671510886495.tmp, -0, arsc, -I, C:\Users\Brian\apktool\framework\1.
apk, -S, C:\Users\Brian\Downloads\APK-Multi-Tool-Experimental-RELEASE\APK-Multi-
Tool-Experimental-RELEASE\projects\SystemUI\res, -M, C:\Users\Brian\Downloads\AP
K-Multi-Tool-Experimental-RELEASE\APK-Multi-Tool-Experimental-RELEASE\projects\S
ystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:404)
... 6 more
EDIT: I had to upload the files to my google drive, because XDA won't let me upload .xml files :l
Link: https://drive.google.com/folderview?id=0B3NRC75seiK4NXVTR0x6dm9uYjg&usp=sharing
Many thanks for your time,
Connor Baker
Click to expand...
Click to collapse
read my instruction very carefully
this line which haven't you add yet to the end of strings.xml
Code:
<string name="recent_apps_title">Recent apps</string>
Adi Aisiteru Reborn said:
read my instruction very carefully
this line which haven't you add yet to the end of strings.xml
Code:
<string name="recent_apps_title">Recent apps</string>
Click to expand...
Click to collapse
Wow. I didn't scroll all the way to the bottom and pasted it in the wrong place. :banghead::banghead::banghead::banghead::banghead::banghead:
Well. I should really sleep more.
I'm testing this now. I can not express my gratitude enough dude, and thanks for putting up with me and my... Well, my stupid mistakes.
Connor Baker
Ok. I'm getting stuck on the boot logo, but that's progress.
Both .apks succesfully compiled, but here's the thing: I compiled them using CMD pompt, not apk multi tool. So, I'm not sure if I need to compile the .apks in a certain way, and that's why this is happening, or if something is else going wrong :l
Uploaded the .apks that I compiled.
framework-res.apk: https://docs.google.com/file/d/0B3NRC75seiK4ZXUtOU84MU5Tb2M/edit?usp=sharing
SystemUI.apk: https://docs.google.com/file/d/0B3NRC75seiK4Sk85RDVMRHZlUU0/edit?usp=sharing
Connor Baker
Also, if you would like any logs, or if there is any way that I could help you to help me fix the problem, let me know.
Connor Baker said:
Ok. I'm getting stuck on the boot logo, but that's progress.
Both .apks succesfully compiled, but here's the thing: I compiled them using CMD pompt, not apk multi tool. So, I'm not sure if I need to compile the .apks in a certain way, and that's why this is happening, or if something is else going wrong :l
Uploaded the .apks that I compiled.
framework-res.apk: https://docs.google.com/file/d/0B3NRC75seiK4ZXUtOU84MU5Tb2M/edit?usp=sharing
SystemUI.apk: https://docs.google.com/file/d/0B3NRC75seiK4Sk85RDVMRHZlUU0/edit?usp=sharing
Connor Baker
Also, if you would like any logs, or if there is any way that I could help you to help me fix the problem, let me know.
Click to expand...
Click to collapse
My question is, you are having bootlop or systemUI closes ?
if bootlop , means something wrong with your framework-res.apk, try not to edit framework-res.apk yet,. just use your stok CM10.1 framework-res.apk.
but if you having systemui closes means something from with your editing the systemUI.apk

[Q] TW 4.4.2 SecContacts Recompile Errors

Has anyone been able to successfully recompile the 4.4.2 SecContacts_Osup.apk after editing/theming the app? I keep getting the following error when trying to recompile with apktool and if I fix the error to get the apk to recompile then the contacts app force closes after installing to phone
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\APK-Multi-Tool\other\..\projects\SecContacts_OSup.apk\res\layout\photo_selector_view_popup.xml:9: error: Error: No resource found that matches the given name (at 'layout' with value '@layout/photo_updates_header').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, C:\Users\Brett\AppData\Local\Temp\APKTOOL5711550799888320867.tmp, -0, arsc, -I, C:\Users\Brett\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\SecContacts_OSup.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\SecContacts_OSup.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, C:\Users\Brett\AppData\Local\Temp\APKTOOL5711550799888320867.tmp, -0, arsc, -I, C:\Users\Brett\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\SecContacts_OSup.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\SecContacts_OSup.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, C:\Users\Brett\AppData\Local\Temp\APKTOOL5711550799888320867.tmp, -0, arsc, -I, C:\Users\Brett\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\SecContacts_OSup.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\SecContacts_OSup.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
tterb1980 said:
Has anyone been able to successfully recompile the 4.4.2 SecContacts_Osup.apk after editing/theming the app? I keep getting the following error when trying to recompile with apktool and if I fix the error to get the apk to recompile then the contacts app force closes after installing to phone
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\APK-Multi-Tool\other\..\projects\SecContacts_OSup.apk\res\layout\photo_selector_view_popup.xml:9: error: Error: No resource found that matches the given name (at 'layout' with value '@layout/photo_updates_header').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, C:\Users\Brett\AppData\Local\Temp\APKTOOL5711550799888320867.tmp, -0, arsc, -I, C:\Users\Brett\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\SecContacts_OSup.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\SecContacts_OSup.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, C:\Users\Brett\AppData\Local\Temp\APKTOOL5711550799888320867.tmp, -0, arsc, -I, C:\Users\Brett\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\SecContacts_OSup.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\SecContacts_OSup.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 19, --target-sdk-version, 19, -F, C:\Users\Brett\AppData\Local\Temp\APKTOOL5711550799888320867.tmp, -0, arsc, -I, C:\Users\Brett\apktool\framework\1.apk, -S, C:\APK-Multi-Tool\other\..\projects\SecContacts_OSup.apk\res, -M, C:\APK-Multi-Tool\other\..\projects\SecContacts_OSup.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
Click to expand...
Click to collapse
I have the same error...I try to re install new TWframework and new framework res app...but nothing happend....
Cocolopes said:
I have the same error...I try to re install new TWframework and new framework res app...but nothing happend....
Click to expand...
Click to collapse
I was finally able to get it to work. Replace the photo_selector_view_popup.xml in the layouts folder with the one that I have attached here then recompile SecContacts as usual. Then use 7zip to copy the manifest.mf from the original SecContacts to the one you just created and you should be good to go. By doing this I was able to recompile and install my themed SecContacts and everything is working as usual.
Some help pls!
tterb1980 said:
I was finally able to get it to work. Replace the photo_selector_view_popup.xml in the layouts folder with the one that I have attached here then recompile SecContacts as usual. Then use 7zip to copy the manifest.mf from the original SecContacts to the one you just created and you should be good to go. By doing this I was able to recompile and install my themed SecContacts and everything is working as usual.
Click to expand...
Click to collapse
Hi @tterb1980,
I replaced with the attached file of yours, and it did recompile. Then I used the manifest.mf from old contact apk to my new one (used store option in winrar). Then I placed the new apk (with manifest.mf of old one) to system/priv-app, but it's not showing in app drawer.
What wrong do you think I'm doing. Do I need to use the resources.arsc file, too, of old apk?

[HOW TO] Add Ambient Display on Settings [Lollipop]

Hey guys! Today I'll be showing you how to add the Ambient Dislpay in Settings:
{
"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"
}
You will need
framework-res.apk from the rom you are modding
SystemUI.apk from your Rom
Notepad++ or another text editor of your choice
apktool
Click to expand...
Click to collapse
Ok now we can start
First decompile Systemui.apk with this comand
Code:
apktool d systemui.apk
Navigate to systemui/res/values/bools and open it with Notepad++ and change this line:
from
PHP:
<bool name="doze_display_state_supported">false</bool>
<bool name="doze_pulse_on_pick_up">false</bool>
to
PHP:
<bool name="doze_display_state_supported">true</bool>
<bool name="doze_pulse_on_pick_up">true</bool>
Save and ricompile systemui with this comand:
Code:
apktool b systemui
Now start to mod framework-res.apk
Decompile framework-res.apk with apktool with this comand:
Code:
apktool d framework-res.apk
Navigate to framework-res/res/values/string and open it with notepad++ and change this line:
from
PHP:
<string name="config_dozeComponent"></string>
to
PHP:
<string name="config_dozeComponent">com.android.systemui/com.android.systemui.doze.DozeService</string>
Save and close.....
Now in the same folder open bool.xml and with notepad++ and mod this line:
from
PHP:
<bool name="config_dozeAfterScreenOff">false</bool>
<bool name="config_powerDecoupleInteractiveModeFromDisplay">false</bool>
to
PHP:
<bool name="config_dozeAfterScreenOff">true</bool>
<bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool>
Save it and close....
Now in the same folder open Interger.xml with notepad++ andmod this line:
from
PHP:
<integer name="config_screenBrightnessDoze">1</integer>
to
PHP:
<integer name="config_screenBrightnessDoze">17</integer>
Now recompile with this comand:
Code:
apktool b framework-res.apk
That's it!!! Enjoy with your new mod
NB... Remember to insert original Signature after recompile APK,you can find in original folder on apktool​
In attachment file there is my apktool if you need
thanks to david279 for update guide
Just please post the framework for Stock Lollipop Rom
Thanks man but I can't do any of that from my phone right now
---------- Post added at 05:55 PM ---------- Previous post was at 05:50 PM ----------
Oops Nevermind Ubuntu to the rescue
Thank you very much for the apktool
thanks for the apktool
Ok what am i doing wrong
I: Using Apktool 2.0.0-dirty on framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:247)
at brut.androlib.Androlib.build(Androlib.java:266)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:240)
at brut.apktool.Main.main(Main.java:89)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:243)
... 4 more
get bootlop after doing this :silly: will try it again later btw, thanks OP
david279 said:
Ok what am i doing wrong
I: Using Apktool 2.0.0-dirty on framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:247)
at brut.androlib.Androlib.build(Androlib.java:266)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:240)
at brut.apktool.Main.main(Main.java:89)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:243)
... 4 more
Click to expand...
Click to collapse
You have java installed?
I though i did. Installing stuff now...
feizhel_vandrago said:
get bootlop after doing this :silly: will try it again later btw, thanks OP
Click to expand...
Click to collapse
You need to put old signature inside framework after compile...same all mods when you use apktool
raffaele88 said:
You need to put old signature inside framework after compile...same all mods when you use apktool
Click to expand...
Click to collapse
i just put original Meta INF & Android Manifest to my decompiled apk, is it wrong or i left something?
whats the sigature? im new to apktool.
Edit....Now this error
I: Using Apktool 2.0.0-dirty on framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" invalid resource directory name: /home/david/Downloads/framework-res/res/values-watch
brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/tmp/brut_util_Jar_2728941901145358304.tmp, p, --forced-package-id, 1, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0-1570415, -F, /tmp/APKTOOL3406553026750852423.tmp, -x, -0, arsc, -S, /home/david/Downloads/framework-res/res, -M, /home/david/Downloads/framework-res/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:449)
at brut.androlib.Androlib.buildResources(Androlib.java:383)
at brut.androlib.Androlib.build(Androlib.java:286)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:240)
at brut.apktool.Main.main(Main.java:89)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/tmp/brut_util_Jar_2728941901145358304.tmp, p, --forced-package-id, 1, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0-1570415, -F, /tmp/APKTOOL3406553026750852423.tmp, -x, -0, arsc, -S, /home/david/Downloads/framework-res/res, -M, /home/david/Downloads/framework-res/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:487)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [/tmp/brut_util_Jar_2728941901145358304.tmp, p, --forced-package-id, 1, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0-1570415, -F, /tmp/APKTOOL3406553026750852423.tmp, -x, -0, arsc, -S, /home/david/Downloads/framework-res/res, -M, /home/david/Downloads/framework-res/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:481)
... 6 more
So i dont.
david279 said:
whats the sigature? im new to apktool.
Edit....Now this error
I: Using Apktool 2.0.0-dirty on framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" invalid resource directory name: /home/david/Downloads/framework-res/res/values-watch
brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/tmp/brut_util_Jar_2728941901145358304.tmp, p, --forced-package-id, 1, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0-1570415, -F, /tmp/APKTOOL3406553026750852423.tmp, -x, -0, arsc, -S, /home/david/Downloads/framework-res/res, -M, /home/david/Downloads/framework-res/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:449)
at brut.androlib.Androlib.buildResources(Androlib.java:383)
at brut.androlib.Androlib.build(Androlib.java:286)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:240)
at brut.apktool.Main.main(Main.java:89)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/tmp/brut_util_Jar_2728941901145358304.tmp, p, --forced-package-id, 1, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0-1570415, -F, /tmp/APKTOOL3406553026750852423.tmp, -x, -0, arsc, -S, /home/david/Downloads/framework-res/res, -M, /home/david/Downloads/framework-res/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:487)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [/tmp/brut_util_Jar_2728941901145358304.tmp, p, --forced-package-id, 1, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --version-name, 5.0-1570415, -F, /tmp/APKTOOL3406553026750852423.tmp, -x, -0, arsc, -S, /home/david/Downloads/framework-res/res, -M, /home/david/Downloads/framework-res/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:481)
... 6 more
So i dont.
Click to expand...
Click to collapse
delete the values-watch forlder in res
flex360 said:
delete the values-watch forlder in res
Click to expand...
Click to collapse
Yea i just did that and it worked
Any idea what's causing this error?
Code:
C:\Users\Admin\Desktop\apktool_lolly>apktool b framework-res
I: Using Apktool 2.0.0-dirty on framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\Users\Admin\Desktop\apktool_lolly\framework-
res\res/values-watch
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\Admin\
AppData\Local\Temp\brut_util_Jar_7863948608617729428.tmp, p, --forced-package-id
, 1, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --vers
ion-name, 5.0-1570415, -F, C:\Users\Admin\AppData\Local\Temp\APKTOOL851320018741
208575.tmp, -x, -0, arsc, -S, C:\Users\Admin\Desktop\apktool_lolly\framework-res
\res, -M, C:\Users\Admin\Desktop\apktool_lolly\framework-res\AndroidManifest.xml
]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:449)
at brut.androlib.Androlib.buildResources(Androlib.java:383)
at brut.androlib.Androlib.build(Androlib.java:286)
at brut.androlib.Androlib.build(Androlib.java:258)
at brut.apktool.Main.cmdBuild(Main.java:240)
at brut.apktool.Main.main(Main.java:89)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\Admin\AppData\Local\Temp\brut_util_Jar_7863948608617729
428.tmp, p, --forced-package-id, 1, --min-sdk-version, 21, --target-sdk-version,
21, --version-code, 21, --version-name, 5.0-1570415, -F, C:\Users\Admin\AppData
\Local\Temp\APKTOOL851320018741208575.tmp, -x, -0, arsc, -S, C:\Users\Admin\Desk
top\apktool_lolly\framework-res\res, -M, C:\Users\Admin\Desktop\apktool_lolly\fr
amework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:487)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Admin\Ap
pData\Local\Temp\brut_util_Jar_7863948608617729428.tmp, p, --forced-package-id,
1, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --versio
n-name, 5.0-1570415, -F, C:\Users\Admin\AppData\Local\Temp\APKTOOL85132001874120
8575.tmp, -x, -0, arsc, -S, C:\Users\Admin\Desktop\apktool_lolly\framework-res\r
es, -M, C:\Users\Admin\Desktop\apktool_lolly\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:481)
... 6 more
Delete folder values-watch
Please don't take me the wrong way, you have done a very good job of it but, won't ambient display keep the screen on? Ergo meaning more battery drainage? The reason ambient display is on AMOLED screens are because of the pixel independent display, but LCD is plain old ON/OFF.
raffaele88 said:
Delete folder values-watch
Click to expand...
Click to collapse
Got it edited and compiled, but now it won't boot up... Any ideas?
Anyone get it to boot? I was able to build but it gets stuck at the boot animations.
Thanks a lot for the guide but it would be really appreciated if we could have a precompiled flashable zip of LRX210 stock version for direct flashing !! It would work pretty well !!

Error decompiling APK

I am trying to decompile an LG app that is called LgNfc.apk, as the name says it's for the NFC control.. I want to hide the N icon when NFC is on, so I need to decompile this APK.
It is dependand from another APK that is called com.lge.apk so I did link to use that APK when decompiling (apktool if com.lge.apk)
The APK will decompile but the real problem is that it gives me a warning message, so if I decompile and try to recompile again (without touching the code) it gives me an error, so recompilation can't be done.
Here is what I get:
C:\Users\Feche\Desktop\apktool>apktool d nfc.apk
I: Using Apktool 2.0.0 on nfc.apk
I: Loading resource table...
I: Decoding Shared Library (com.lge), pkgId: 2
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Feche\apktool\framework\1.apk
W: Could not decode attr value, using undecoded value instead: ns=android, name=
theme, value=0x01030594
I: Loading resource table from file: C:\Users\Feche\apktool\framework\2.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
testI: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
Click to expand...
Click to collapse
As you can see, it throws an decode attr value warning, I don't know what it's causing that.. here is the error when I want to recompile:
C:\Users\Feche\Desktop\apktool>apktool b C:\Users\Feche\Desktop\apktool\nfc
I: Using Apktool 2.0.0
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Feche\Desktop\apktool\nfc\AndroidManifest.xml:40: error: Error: No reso
urce type specified (at 'theme' with value '@16975252').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\Feche\
AppData\Local\Temp\brut_util_Jar_8175709690237026012.tmp, p, --shared-lib, --min
-sdk-version, 21, --target-sdk-version, 21, --rename-manifest-package, com.andro
id.nfc, --version-code, 21, --version-name, 5.0-1431077049, -F, C:\Users\Feche\A
ppData\Local\Temp\APKTOOL561295787776399176.tmp, -0, arsc, -I, C:\Users\Feche\ap
ktool\framework\1.apk, -I, C:\Users\Feche\apktool\framework\2.apk, -S, C:\Users\
Feche\Desktop\apktool\nfc\res, -M, C:\Users\Feche\Desktop\apktool\nfc\AndroidMan
ifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:458)
at brut.androlib.Androlib.buildResources(Androlib.java:396)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:256)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\Feche\AppData\Local\Temp\brut_util_Jar_8175709690237026
012.tmp, p, --shared-lib, --min-sdk-version, 21, --target-sdk-version, 21, --ren
ame-manifest-package, com.android.nfc, --version-code, 21, --version-name, 5.0-1
431077049, -F, C:\Users\Feche\AppData\Local\Temp\APKTOOL561295787776399176.tmp,
-0, arsc, -I, C:\Users\Feche\apktool\framework\1.apk, -I, C:\Users\Feche\apktool
\framework\2.apk, -S, C:\Users\Feche\Desktop\apktool\nfc\res, -M, C:\Users\Feche
\Desktop\apktool\nfc\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:419)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:444)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Feche\Ap
pData\Local\Temp\brut_util_Jar_8175709690237026012.tmp, p, --shared-lib, --min-s
dk-version, 21, --target-sdk-version, 21, --rename-manifest-package, com.android
.nfc, --version-code, 21, --version-name, 5.0-1431077049, -F, C:\Users\Feche\App
Data\Local\Temp\APKTOOL561295787776399176.tmp, -0, arsc, -I, C:\Users\Feche\apkt
ool\framework\1.apk, -I, C:\Users\Feche\apktool\framework\2.apk, -S, C:\Users\Fe
che\Desktop\apktool\nfc\res, -M, C:\Users\Feche\Desktop\apktool\nfc\AndroidManif
est.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:413)
... 6 more
Click to expand...
Click to collapse
Any ideas why is this happening? Thanks :cyclops:
Have you installed the frameworks before decompiling?
Vivek_Neel said:
Have you installed the frameworks before decompiling?
Click to expand...
Click to collapse
Oops I did it last night, it was late and I didn't check if the framework was installed, indeed was that, thank you!
The only problem is that if I decompile and recompile again without touching the code, I get no errors but NFC won't start (it doesn't work), any ideas? I tried signing the APK but no success
Bump!
Bump
Bump

Use Apktool on Z1c

Official download here - http://www.coolapk.com/apk/per.pqy.apktool However, latest version is 6.1, and hasn't worked well for me with stock rom. 6.0.5 works perfectly - https://drive.google.com/file/d/0B1niPALD2vPeNmh6bVRjOU1mZ0k/view?usp=drivesdk
Steps (stock Sony 5.1):
- Download and install
- Make a folder in /sdcard called apktool, (or something), and copy 3 system app files there - framework-res.apk, Semcgenericuxp, (or whatever it's called... it's in framework folder).apk, and SystemUI.apk.
- Open apktool, navigate to apktool folder, and 1 by 1 tap on those 3 files and select 'import'. You should get success messages for each one. If not, don't bother going forward from here, it probably won't work. Framework-res will take a while. You can monitor status of import with 'task' option.
After that's done, you should be able to copy any apk to that folder and decompile. Here's how -
- Tap on apk file and select 'decomplie'. In the next screen, check box for 'run as root', then tap 'decompile'. When done, if successful, you will get a new folder called '(name of app)-src', with all decompiled files.
- Use a file explorer and editor to make changes.
- Go back to apktool and long-press on src folder, and choose 'recompile', and 'run as root'. If successful, a new apk will be created called '(name of app)-src.apk.
This is your new apk, but it has to be signed. Here's how -
For system apps:
- Using a file explorer that can explore apk files, (I prefer Mixplorer), go into the new apk, and delete android_manifest.xml file. Then go into the original of the same apk file, and copy android_manifest.xml file and META-INF folder to the new apk. It's now signed and ready to use. Just copy it to the appropriate system folder, and rename and set permissions 644.
For user apps, (installed into /data):
- Use apktool app, and tap on new apk and select 'sign'. A couple of seconds later you should get a new new apk called '(name of app)-src-signed.apk, which you can install normally.
(Updated)
Its works now for decompilling and recompile?
amodeos said:
Its works now for decompilling and recompile?
Click to expand...
Click to collapse
Yes
Found a newer version here - http://onhax.net/apktool-for-android-v5-2-0-all-versions-is-here-latest - I guess with version 5.0+, you don't need /sdcard/apktool folder but all files are included in app. Anyway, it has more promising-seeming settings, but I still couldn't get a successful recompile so far. I wish I knew how to understand the errors. I bet someone could tweak the app file to get it to work on our phone...
Update - got success on KK. Installed Munjeni's .108 ROM, used latest apktool set settings - 'apktool version: 1.5; aapt version: 4.4; device has root: yes', copied /system/framework/framework-res.apk, /system/framework/semcgenericuxp.apk, and /system/priv-app/systemui/systemui.apk to /sdcard. Tap each framework file and select 'import as framework', then tap systemui apk and select 'decompile all'. When done, you have systemui_src folder for editing. I didn't edit anything, but just for test tapped systemui_src folder, and chose 'recompile', and got success, with new apk created. Signed, and moved to system, and works.
Now I'll keep working on lp. Interesting, here is latest output on recompile -
I: Using Apktool 2.0.0-07ea41-SNAPSHOT on SystemUI.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /data/data/per.pqy.apktool/1.apk
I: Decoding Shared Library (com.sonyericsson.uxp), pkgId: 2
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
Seems to be no errors, but no new apk is created. Any ideas?
levone1 said:
Update - got success on KK. Installed Munjeni's .108 ROM, used latest apktool set settings - 'apktool version: 1.5; aapt version: 4.4; device has root: yes', copied /system/framework/framework-res.apk, /system/framework/semcgenericuxp.apk, and /system/priv-app/systemui/systemui.apk to /sdcard. Tap each framework file and select 'import as framework', then tap systemui apk and select 'decompile all'. When done, you have systemui_src folder for editing. I didn't edit anything, but just for test tapped systemui_src folder, and chose 'recompile', and got success, with new apk created. Signed, and moved to system, and works.
Now I'll keep working on lp. Interesting, here is latest output on recompile -
I: Using Apktool 2.0.0-07ea41-SNAPSHOT on SystemUI.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /data/data/per.pqy.apktool/1.apk
I: Decoding Shared Library (com.sonyericsson.uxp), pkgId: 2
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
Seems to be no errors, but no new apk is created. Any ideas?
Click to expand...
Click to collapse
apk is created in apktool\SystemUI\dist folder.
I tried 2.0.2 (with TMA) and it's working on 5.1.1.
Just a bump, in case anyone else is interested. Version 5.02 is working well with latest fw for modding 3rd party app, (see my recent posts here - http://forum.xda-developers.com/showthread.php?t=1929663&page=178#post64177685 Also, another user here - http://forum.xda-developers.com/showthread.php?t=2359240&page=12#post64180188 - seems to be getting success with system apps...
Pls help me eror
Code:
ERROR: Asset package include '/data/data/per.pqy.apktool/1.apk' not found.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/apktool/openjdk/bin/aaptnew, p, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 3010372, --version-name, 3.1.372.151210.15c3353_PRC, -F, /data/data/per.pqy.apktool/APKTOOL1247617767483554883.tmp, -0, arsc, -0, apk, -0, , -0, arsc, -I, /data/data/per.pqy.apktool/1.apk, -S, /sdcard/mod/NotificationCenter_src/res, -M, /sdcard/mod/NotificationCenter_src/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:472)
at brut.androlib.Androlib.buildResources(Androlib.java:410)
at brut.androlib.Androlib.build(Androlib.java:298)
at brut.androlib.Androlib.build(Androlib.java:268)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/apktool/openjdk/bin/aaptnew, p, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 3010372, --version-name, 3.1.372.151210.15c3353_PRC, -F, /data/data/per.pqy.apktool/APKTOOL1247617767483554883.tmp, -0, arsc, -0, apk, -0, , -0, arsc, -I, /data/data/per.pqy.apktool/1.apk, -S, /sdcard/mod/NotificationCenter_src/res, -M, /sdcard/mod/NotificationCenter_src/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:425)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:458)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/apktool/openjdk/bin/aaptnew, p, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 3010372, --version-name, 3.1.372.151210.15c3353_PRC, -F, /data/data/per.pqy.apktool/APKTOOL1247617767483554883.tmp, -0, arsc, -0, apk, -0, , -0, arsc, -I, /data/data/per.pqy.apktool/1.apk, -S, /sdcard/mod/NotificationCenter_src/res, -M, /sdcard/mod/NotificationCenter_src/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:419)
... 6 more
I: Using Apktool 2.0.3
I: Smaling smali folder into classes.dex...
I: Building resources...
nvlinh.kaitoukid said:
Pls help me eror
Code:
ERROR: Asset package include '/data/data/per.pqy.apktool/1.apk' not found.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/apktool/openjdk/bin/aaptnew, p, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 3010372, --version-name, 3.1.372.151210.15c3353_PRC, -F, /data/data/per.pqy.apktool/APKTOOL1247617767483554883.tmp, -0, arsc, -0, apk, -0, , -0, arsc, -I, /data/data/per.pqy.apktool/1.apk, -S, /sdcard/mod/NotificationCenter_src/res, -M, /sdcard/mod/NotificationCenter_src/AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:472)
at brut.androlib.Androlib.buildResources(Androlib.java:410)
at brut.androlib.Androlib.build(Androlib.java:298)
at brut.androlib.Androlib.build(Androlib.java:268)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/apktool/openjdk/bin/aaptnew, p, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 3010372, --version-name, 3.1.372.151210.15c3353_PRC, -F, /data/data/per.pqy.apktool/APKTOOL1247617767483554883.tmp, -0, arsc, -0, apk, -0, , -0, arsc, -I, /data/data/per.pqy.apktool/1.apk, -S, /sdcard/mod/NotificationCenter_src/res, -M, /sdcard/mod/NotificationCenter_src/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:425)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:458)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [/data/data/per.pqy.apktool/apktool/openjdk/bin/aaptnew, p, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 3010372, --version-name, 3.1.372.151210.15c3353_PRC, -F, /data/data/per.pqy.apktool/APKTOOL1247617767483554883.tmp, -0, arsc, -0, apk, -0, , -0, arsc, -I, /data/data/per.pqy.apktool/1.apk, -S, /sdcard/mod/NotificationCenter_src/res, -M, /sdcard/mod/NotificationCenter_src/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:419)
... 6 more
I: Using Apktool 2.0.3
I: Smaling smali folder into classes.dex...
I: Building resources...
Click to expand...
Click to collapse
What are you trying to do,(decompile, recompile, which apk, etc). Also, if you wipe data on Apktool app, you delete a necessary file in /data/data, so you have to reinstall the app.
Bump - new version 6.0 released - https://www.google.com/url?sa=t&sou...ggrMAQ&usg=AFQjCNE1AnZq9tew_xjnR7hOPN295_PWhw
Version 6.0.6, (a user's mod - I haven't found a difference from 6.0.5) - https://yadi.sk/d/pwh1wHLXkU3qB
New version works for SystemUI on stock 5.1. Successfully nodded navbar XML and recompiled. Make sure to check 'aapt 5.1' option in popup box when recompiling.
amodeos said:
Its works now for decompilling and recompile?
Click to expand...
Click to collapse
Yes
6.1 released - http://forum.xda-developers.com/showpost.php?p=65590715&postcount=200
levone1 said:
Bump - new version 6.0 released - https://www.google.com/url?sa=t&sou...ggrMAQ&usg=AFQjCNE1AnZq9tew_xjnR7hOPN295_PWhw
Version 6.0.6, (a user's mod - I haven't found a difference from 6.0.5) - https://yadi.sk/d/pwh1wHLXkU3qB
Click to expand...
Click to collapse
How do I get the key for that version of the app?? Every other version is free but it tells me I need a key for 6.0/6.1 apktool. Also I'm having a recompile error with ApkTOOl 5.2 it is unable to execute the aapt files I guess. I've tried aaptnew aapt5.1 aapt4.4 and aapt5.0 none of them work. But decompiling does work. In order to get decompile to work though I had to go online and download IBotPeaches apktool_2.1.1.jar and replace apktool_2.0.0.jar with it to decompile. I'm on my Note 5 running the first release of Marshmallow.
---------- Post added at 06:48 AM ---------- Previous post was at 06:15 AM ----------
ltsJames said:
How do I get the key for that version of the app?? Every other version is free but it tells me I need a key for 6.0/6.1 apktool. Also I'm having a recompile error with ApkTOOl 5.2 it is unable to execute the aapt files I guess. I've tried aaptnew aapt5.1 aapt4.4 and aapt5.0 none of them work. But decompiling does work. In order to get decompile to work though I had to go online and download IBotPeaches apktool_2.1.1.jar and replace apktool_2.0.0.jar with it to decompile. I'm on my Note 5 running the first release of Marshmallow.
Click to expand...
Click to collapse
Nvm, got a working copy of 6.0.6. Thanks for the link!!!!!!
ltsJames said:
How do I get the key for that version of the app?? Every other version is free but it tells me I need a key for 6.0/6.1 apktool. Also I'm having a recompile error with ApkTOOl 5.2 it is unable to execute the aapt files I guess. I've tried aaptnew aapt5.1 aapt4.4 and aapt5.0 none of them work. But decompiling does work. In order to get decompile to work though I had to go online and download IBotPeaches apktool_2.1.1.jar and replace apktool_2.0.0.jar with it to decompile. I'm on my Note 5 running the first release of Marshmallow.
---------- Post added at 06:48 AM ---------- Previous post was at 06:15 AM ----------
Nvm, got a working copy of 6.0.6. Thanks for the link!!!!!!
Click to expand...
Click to collapse
Great. Let me know... For some reason 6.05 works better for me than 6.06 or 6.10.
Bump for op update...
Just found this - https://www.androidfilehost.com/?fid=24572369242686015
Uses apktool 2.2 jar, and no startup wait time, and twice as fast as other one...

Categories

Resources