yashsingh1/xdaforums huggingface dataset:
[Android General] Nickco43:
nick@nick-desktop:~/Desktop$ apktool if framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: Invalid value type: 0
at brut.androlib.res.data.value.ResValueFactory.factory(ResValueFactory.java:64)
at brut.androlib.res.decoder.ARSCDecoder.readValue(ARSCDecoder.java:242)
at brut.androlib.res.decoder.ARSCDecoder.readComplexEntry(ARSCDecoder.java:230)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:200)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:188)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:156)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:113)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:78)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:47)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:39)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:678)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:660)
at brut.androlib.Androlib.installFramework(Androlib.java:641)
at brut.apktool.Main.cmdInstallFramework(Main.java:240)
at brut.apktool.Main.main(Main.java:87)
nick@nick-desktop:~/Desktop$

I am geting that error on Ubuntu 14.10 64bit when I run apktool if framework-res.apk. I am trying use this on cm12.1.
[Android General] Calin:
Yeah sorry i didn't updated apktool for android 5.1 but i will update it soon ;)
[Android General] Nickco43:
That's good, I will build 5.0.2 and base my ROM of that instead of 5.1
[Android General] ShinySide:
Why in the world are you decompiling cm apks anyways? Plus when you're on Linux in the first place? Build cm from source. Make your edits before building it
[Android General] Nickco43:
I am a major noob at making ROMs and never though of that.
[Android General] mac231us:
hello....has the apktook update been done? I am trying to use the latest 2/12 apktool rc4 for 5.1 (to decompile cm12.1 mms apk) and run into the install framework-res.apk error issue reported earlier. Thanks.
[Android General] ShinySide:
Again why in the hell would you decompile cm apks?
[Android General] mac231us:
because I am trying to look into the internals of the mms auto data on off (it is in cm12 not 12.1)..that is why (not) the hell..lol..

(have done that in past for minor theming for my own purposes...so..there are uses..am not a developer anyway so small mods etc are of interest to me)
[Android General] Calin:
I will update it this evening be patient .
[Android General] mac231us:
I found this...it works

http://xdaforums.com/showpost.php?p=59436776&postcount=2812
[Android General] Slimegod:
When I compile the jar file that I've edited it skips the actual smali I've made changes to. So therefore the changes don't stay. Any reason why that is?
[Android General] Slimegod:
Here's the error. Sorry it wasn't with the previous message. I tried a different method but still got the same result.

Edit: just a heads up I went back and checked the line I changed and it was fine, the change was made :thumbup:
[Android General] Slimegod:
Getting this build error. What is it from?
[Android General] Calin:
You need to specify what App are you compiling/decompiling and most of what CM version.
[Android General] Slimegod:
What do you mean?
[Android General] ShinySide:
Anybody running 15.10/ Wily Werewolf and have this/build environment set up?
[Android General] rogersb11:
I'm not but I somebody who is using 15.10 and I know he uses this and hasn't complained so I'm sure it's working lol
[Android General] ShinySide:
Cool. was backing all my android stuff up when I asked to make the jump. Just haven't got everything reinstalled yet
[Android General] sonnguyenpg:
Thanks for this guilde.

but I'm having bug "apktool: can't find apktool.jar"

everybody can help me. thanks!

---------- Post added at 02:40 AM ---------- Previous post was at 02:15 AM ----------

plzzzzz help me

http://images.tapatalk-cdn.com/15/06/18/3edd4133eb64f3115e5106838292f595.jpg
[Android General] ShinySide:
You didnt rename the apktool jar to apktool.jar probably
[Android General] sonnguyenpg:
Thank pro. But i did rename to apktool.jar as picter. Sorry my english bad
[Android General] ShinySide:
Here. Made this script for the new apktool and wrapper script a while ago because I switch distros regularly and makes it easy to install apktool

Just copy this text and save it in a document on your desktop and make it executable, open the term on your desktop and run

#!/bin/bash

# Download/rename apktool.jar and wrapper script

cd ~/Desktop
wget https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool
wget https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.0.0.jar
mv apktool_2.0.0.jar apktool.jar

# Make executable

sudo chown -R sonnguyenpg:sonnguyenpg /home/sonnguyenpg/Desktop/apktool
sudo chown -R sonnguyenpg:sonnguyenpg /home/sonnguyenpg/Desktop/apktool.jar
sudo chmod +x /home/sonnguyenpg/Desktop/apktool
sudo chmod +x /home/sonnguyenpg/Desktop/apktool.jar

# Install in /usr/local/bin

sudo mv /home/sonnguyenpg/Desktop/apktool /usr/local/bin/
sudo mv /home/sonnguyenpg/Desktop/apktool.jar /usr/local/bin/

^anyone can use that. Just change all the sonnguyenpg to your user name
[Android General] sonnguyenpg:
Thank! I will try again
[Android General] sonnguyenpg:
@ ShinySide thanks for suppost. I have done.
[Android General] ShinySide:
Here's a new sign apk package since the link still isnt working. I added a "Im lazy as hell" script in the zip, just throw an apk in the folder and run ./sign and itll automatically find the apk and sign it and save it as "signed.apk" Just have one apk in the folder at a time because it searches for an apk by wildcard/ *.apk
[Android General] sonnguyenpg:
Thanks pro!

Note: your guild to me made scrip download anh setup apktool. Is use chmod 777 for apktool & apktool.jar ok. I use ubuntu 15.04.

Thank again!
[Android General] susmJ:
how to sign modified apk file

I red that we need to sign apk file after we build with apktool -b

The problem is that I don't know which key should I use and how can I do this.:confused::confused:

Can some one please post setp by set tutorial how can I do this on Ubuntu.

Thanks.

Best
[Android General] Calin:
Thread Updated!

Hey guys, finally i found some time and i updated the thread with some changes.:

- Now this guide can be used also on Ubuntu 14.10 and Ubuntu 15.04

- Updated Apktool jar to it's latest version

Feel free to ask on the thread if you got questions about it :)

Regards

nilac
[Android General] nitesh9:
Good tutorial.

I am a noob as a linux user and your guide helped me much in setting up Apktool in Ubuntu. But I think there is a problem in the latest Apktool 2.0.1. I can decompile an apk easily but unable to recompile it. :(
[Android General] Calin:
There is no problem, I recompiled apks with the latest build. Try to attach a log file.
[Android General] Slimegod:
I followed the steps and when I command into desktop and my file I created with my jar files in it, apktool, and type apktool d <my jar file> it says apktool command not found.
[Android General] Calin:
You can't decompile a jar file with apktool just APKs
[Android General] Slimegod:
So how can I decompile a jar file then?
[Android General] ShinySide:
Deodex it, pull out the classes.dex, and use baksmali/smali
[Android General] Slimegod:
When I make edits to my smali file and compile the jar file I get a warning and a ignoring messaging to the smali I edited. Any reason why that is?
[Android General] Calin:
If they are only warnings you have nothing to be worried about. It happens sometimes also when recompiling apks
[Android General] Slimegod:
Ok but the changes I did don't stick.
[Android General] Calin:
Post all the output you see on shell to pastebin or hastebin
[Android General] Slimegod:
Here you go https://pastebin.com/kbvrF9ia
[Android General] Calin:
There is a file smali.bak which it should removed as apktool states is not a valid file so because it is not a valid file it ignores all the modified things and rebuild the original apk sources
[Android General] Slimegod:
Ok I get it.
[Android General] Calin:
Thread Updated!

Hey guys i updated the thread OP with a few changes:

- Removed now the link for the signing tool redirect to Dev-Host

- Signing tools are now included into the apktool zip

- Updated the description, and guide now can be also applied to Ubuntu 15.10 and based distros :)

Regards
[Android General] Calin:
Thread Update!

The biggest thread update of all the times!

No more commands to insert manually!

The installation now is automated and every user can do that with the new script now available from the OP.

Thread style now redesigned and much more cleaner than the previous one :)

Hope that helps a bit more the ones who don't have experience with Linux at all.

Regards
[Android General] Slimegod:
Does this tool have smali and baksmali? Also can I use this for jar files as well?
[Android General] Calin:
Yes it does, but it's only for APKs
[Android General] Slimegod:
I get this error when decompiling my apk https://pastebin.com/zc4k7UGz. Also when I run the if command it sends the .1apk to my home directory in a new apktool folder. Why is that.

Edit: how do I uninstall this tool along with the packages it installed?
[Android General] Calin:
The if command install the framework base to your home directory and basically that framework will be used to decompile future APKs based on that type of framework (API). I didn't included also an Uninstaller part but I will do it soon.
[Android General] Calin:
05-12-15

Script installation is now updated :)

- Some small improvements made

- Added the possibility to remove apktool from the system together with all the dependencies installed
[Android General] triplecan:
Please help always when I want to recompile my SystemUI i got this Error

What I can do

By the way there where some installation Problems the Programm says me APKtool succesfully installed but when i tiped in the command apktool it shows me that its not installed I had to place apktool and apktool.jar in /usr/local/bin to get the programm working
[Android General] Macguyver1980:
Installation issues

I tried automatic installation and others but Nothing is working... I'm on Ubuntu 15-10. APKTOOL command not recognized
[Android General] Calin:
Thanks guys for the reports, I will have a look to the script, meanwhile use the first released script
[Android General] ShinySide:
Should be /usr/local/bin so it's installed in the system not /home/user/bin
[Android General] Calin:
No, it can be also in the bin from the home of the user
[Android General] ShinySide:
I've never seen anyone use it in /home/user/bin

But in that case wouldn't export PATH=~/bin:$PATH at least need to be added to bashrc?

I don't ever use bin in the home directory
[Android General] Calin:
I use bin for repo and it's easier to include it. I will have a look to the script as soon as i can.

edit. Ok i checked the script and installed it from scratch and it went all good guys, i don't know why it's not working for you.
[Android General] micky387:
thanks for you work man. Working great but as say [MENTION=5580710]ShinySide[/MENTION], signapk dont work for me in /home/user/bin (or need a link)

but all the rest is perfect :good:
[Android General] tdct12:
Help? Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded
[Android General] ANDjROID:
hi, am running linux mint17.2. 64bit. quick question. i am wanting to theme my rom. will i be able to do so with the use of this tool?

also i am new to both linux and android, so ANY tips or advice is greatly appreciated. thanks!

( i know there is more to theme a rom than just this tool. im wondering if its what i need to access the proper files?)
[Android General] ShinySide:
Need it to decompile apks to edit xml/smali. So yes.
[Android General] ANDjROID:
new multi tool.

thank you for your response. after doing a little more research and reading i have found this multi tool. was just wondering your opinion on it.

http://xdaforums.com/showthread.php?t=1310151

could you please check it out and let me know if i would be better off using this. i have looked around and can find the windows version, but i cant seem to locate the actual download for linux. (is it maybe at github?)also, when pulling from phone with adb should the phone be in recovery mode or can this be done from a fully booted phone? any advice or suggestions greatly appreciated. thanks.
[Android General] mjraogr:
[MENTION=4968383]nilac[/MENTION] Nice!!

Fast and simple away to setup Apktool ,
[Android General] xkape:
edited due to retardation
[Android General] Yokosa:
Hello

I have a problem because it does not work apktool. The installation is progressing well, I have a message that is installed but not working apktool

But when you want to install the framework or decompile apk I got the message "apktool command is not found."

How to fix this problem? any ideas ? please help
[Android General] ChiDi9901:
I'll guess widely that this tool is not restricted to Ubuntu, right? I can also use it in another Linux distribute?
[Android General] Calin:
Yes you can, but i need to update it, so i hope to find some time this weekend :)
[Android General] mcnico:
hi, thanks for that work !

Wanted to report some issues : After installing I couldn't get apktool to work so I've launched your script to check if it was installed, here is what I get (screenshot)
[Android General] Calin:
As I said earlier I need to fix it, so I hope to get tome time this weekend
[Android General] mcnico:
Take your time ;) you got a thanks btw :good:
[Android General] link77kz:
Help Plizz

decompile/compile ( than it is possible to make) Help......

disassemble assemble

OF 5.1.1 Huawei Ascend Mate 7 system (priv-app) Settings.apk + SystemUI.apk ?

Pliz!!!

https://drive.google.com/open?id=0B-a9BrARdwvvOHp5dUZXcGlKbG8 decompile/compile Pliz :(
[Android General] Calin:
Hey guys :)

Finally i had some free time and i updated the script and apktool as well to it's latest version: v2.1.0

The installation now is working fine and apktool should now install correctly, didn't tested on Ubuntu 16.04 but if someone is already on it and confirm is working/or not please let me know :)

Regards

nilac
[Android General] Faisal Z Ahmad:
Thank You :o

Tested It On Ubuntu 15.10 And Its Fully Working ,The Installation Was Fine (Before It Didnt Even Install Apktool At All)

Thank You Again :good:
[Android General] Cr3sc3nt:
Installs on 16.04 without issues TY.
[Android General] behnam_ch20:
thank's

Thank you very much i have been looking for a way to install apktool and i have spent a whole day to figure out how. you did great and solved my problem so thank's a lot :)
[Android General] serch826:
Hi, thanks, installed on Ubuntu 16.04 w/o any problem, just wonder if there will be some support for Android N?
[Android General] Calin:
It will be for sure. Don't worry about it. But as stated I'm not developing Apk tool. Someone else is doing it. I just created this installer for Linux users to make everything easier for the new comers
[Android General] shadow25:
Hi, I have installed it on Ubuntu 16.10 and don't work, like Yokosa (post #156) and mcnico (post #159) say. Thanks
[Android General] Calin:
This was fixed long time ago, sure you downloaded the last zip I posted? No one reported me this issue since then
[Android General] shadow25:
Yes, I have downloaded the latest version

P.S. sorry, I'm noob
[Android General] Calin:
So you downloaded the 24/04/16 one?
[Android General] DJ aliasz3d:
Just wanted to say a big thankyou[emoji106] made installing on Linux mint 18 so easy, now I'm ready to take on 3minit battery.
[Android General] Idefis:
Hi!!

I have a problem to patch an android apk with apktool using a .sh file

I installed Oracje JDK (Java 8), apktool and zipalign.

I have the following files com.parrot.freeflight.apk, file freeflight_apktool.sh, freeflight.keystore, freeflight_apktool.patch

I need to modify com.parrot.freeflight.apk with the file freeflight_apktool.sh

I enter the terminal, enter the folder where all these files.

I get root permissions

I run the command sh freeflight_apktool.sh

And there I'm stuck. I gave you a photo and the files

Ubuntu 16.04

oi6 3.tiny pic.co m/359wdjs.jpg

drop box. com/sh/q8cqhr6hq...vh_N3ivqa?dl=0

If someone has more idea than me and I could patch the apk, I would be very grateful
[Android General] BochurJoeShmoe:
Great tool, found this and it worked after unsuccessfully trying several youtube tutorials to install apk tool :)

One problem, the signing function does not seem to be working. when I try it I get the file of the signed apk but when I try installing on my phone I get

"Parse Error: There was a problem parsing the package."

I know its not a problem with any of the mods I made to the apk, as when I tried just resigning an apk without any mods I still get the same error.

What am I doing wrong?

Thank you in advance
[Verizon Samsung Galaxy S 4] dtomlin:
First I've heard of this. Legit or BS?

http://www.gottabemobile.com/2014/...xy-s5-android-4-4-2-kitkat-updates-roll-out/
[Verizon Samsung Galaxy S 4] s44:
Only S4 updated is on Sprint... doesn't affect us.
[8125, K-JAM, P4300, MDA Vario Software Upgrading] lillerik:
Everytime I try to upgrade to the latest swedish ROM (RUU_Prodigy_2170701_21707103_20710_QT-EK_SVE_Ship.exe) I get the same error every time after 95% of the installation is complete:

FEL [326]: OGILTIGT KOMMANDO "Denna NBF-fil kan inte användas med din telefon. Krontrollera din NBF-fil."

In english:

ERROR [326]: INVALID COMMAND "This NBF-file cannot be used with your phone. Please check your NBF-file."

When I checked the readme file it said:

"ERROR [320~328] : INVALID COMMAND

These errors seldom occur. However, if one of these errors occur, it could not be recovered and the device had to be sent back to the customer service center. In this case, you have to flash a new ROM code."

I've tried doing a fabrique reset but nothing happens when i push the buttons to do that. Now i'm stuck with the red, green, blue test bootscreen and don't really know what to do.

I have no guarantee left wich will make my phone pretty expensive to service at the customer service center.

Can anyone help me?
[8125, K-JAM, P4300, MDA Vario Software Upgrading] ashtrays:
i get the same problem, pleease help us or have you found a sullution?
[8125, K-JAM, P4300, MDA Vario Software Upgrading] ashtrays:
ja är också svensk, så om du hittar någon lösning kan du väll säga till? för ja har samma problem å grinar snart för ja får aldrig till det =(

mvh/ Johan
[G3 General] LBTaylor1984:
Right I've been follow like most the threads about sorting out the lag we sometimes receive on the G3.

I tried the fixes and while improved it's not gone.

So I decided to fiddle and to my surprise improved things alot.

Go into Developer option and tick DISABLE HW OVERLAYS

I used to notice lag when going in the app drawer and hitting the home button, a pause, stutter then animation. Now it has a millisecond pause and a smooth animation to the home screen.

Give it ago and report back.
[G3 General] nobnut:
Yeah, well, I saw no such improvement. Furthermore, that setting doesn't persist after a reboot.

If you want it to remain, you'd need to edit build.prop and change:

'debug.composition.type=c2d'

to

'debug.composition.type=gpu' (or cpu)

It's not worth it in my opinion, if there is a difference, I'd need to run home quickly to grab my atomic clock to measure the difference.
[G3 General] phillevy:
No difference for me either
[G3 General] LBTaylor1984:
Odd, it's a massive improvement here, are you guys running anything else ?
[G3 General] lossah:
No difference for me. :(

Running ART, rooted, removed lots of bad stuff and used trickster tweaks, with 10f.
[G3 General] ehmjay:
mind sharing those tweaks :)
[G3 General] goatman101:
Worked for me! Thanks!
[G3 General] 4ndroid99:
Look at this thread.
[G3 General] hello00:
here is another lag fix..get a replacement
[G3 General] barondebxl:
Get a M8, very effective lag fix
[G3 General] Pure+:
Made it slower for me

Sent from my LG G3
[G3 General] robto:
That phone does not have a camera. It is a petty. HTC will probably disappear soon: they have not been able to get benefits in 2013 and 2014. Customers currenty dont want to know about them due to evil sw update policy. I dont think a clever customer will buy an HTC.

Thanks anyway.

Sent from mobile device
[G3 General] barondebxl:
I could have sworn that it had a camera in the back.
[G3 General] robto:
Oh! No, no. There is a hole in the back, but definitely that is not a camera.

Sent from mobile device
[G3 General] qum:
What LG version do you have?
[G3 General] brolic925t:
Another lag fix: greenify. Made my phone butter smooth. 1.4 gb ram used and i have like 40 games and a **** load of apps
[G3 General] sweets55:
LoL...I don't notice any lag on my G3. What's kind of funny is some M8 users said the camera was fine back when it came out. Months later they like the G3 camera better. HTC took a gamble on the M8 camera and failed. Imo
[G3 General] wifiguru:
This helped a lot. Things are a lot snappier.

Thanks!
[G3 General] gsw5700:
Tried the M8 but think I've broken it trying to get the battery out
[G3 General] kylothow:
Works for me :) D855 32GB on V10i-GLOBAL-SI
[G3 General] LBTaylor1984:
D855
[Android Q&A, Help & Troubleshooting] nehal33:
i need roms (stock or custom) can anyone help me, i can't find any.

thank in advance :)
[Android Q&A, Help & Troubleshooting] pcguy007:
Any luck finding a ROM, I despritely need a ROM too. Phone is currently soft-bricked

---------- Post added at 11:29 PM ---------- Previous post was at 11:03 PM ----------

I desperately need a Y320-U10 ROM as well
[Android Q&A, Help & Troubleshooting] FarrukhQadri:
here

i have not tested it yet but found this thing KK 4.4.2

http://webcache.googleusercontent.c....geyao.org/mp3-0/huawei-ascend-y320-5936.html

or

http://www.geyao.org/mp3-0/huawei-ascend-y320-5936.html

---------- Post added at 12:53 PM ---------- Previous post was at 12:52 PM ----------

i have not tested it yet but found this thing KK 4.4.2

http://webcache.googleusercontent.co...y320-5936.html

or

http://www.geyao.org/mp3-0/huawei-ascend-y320-5936.html
[T-Mobile Samsung Galaxy S 5] ThaDarkside79:
Dam I remember having T-Mobile a few years ago and the network speed was OK. But not great. Then had to switch to Sprint and after having Sprint. Dam Sprint is a joke. Don't know how they say they even have 4g or 4g Lte. Never got anything above 9 mbs. Now I am back with Tmobile and what can I say. They rock. It's like Comcast speeds on my Galaxy S5. I am very impressed. And it's unlimited. What more can you ask for?

Killing Aliens with my Galaxy S5
[T-Mobile Samsung Galaxy S 5] shaneg79:
Wish I got those speeds on lte with t-mobile I am lucky to get 12 megs down and I get around 5 megs up I had around 14 - 20 down with sprint and same upload speeds most of the time I get just as fast 4G speeds with t-mobile as a do with lte sometimes faster with 4G
[T-Mobile Samsung Galaxy S 5] mike28:
I get an average of 20 around town some parts I get 30s and 40s tmobile is doing it right
[T-Mobile Samsung Galaxy S 5] ThaDarkside79:
Can't believe how bad Sprints network is. Even the calls sound horrible. I'm very happy to be back with Tmobile. Plus they have the best Samsung Galaxy S5 device. They didn't block the download booster. Plus for some reason my device didn't have any Tmobile apps pre-installed. Not even a tmobile boot screen.
[T-Mobile Samsung Galaxy S 5] elesbb:
My brother using his s3 gets better download speeds then me using my s5 on lte. I got 300 kB/s he got 1.2 MB/s.. I also feel I get throttled but have no way of proving it.
[T-Mobile Samsung Galaxy S 5] spirodave:
I get up to 56 in saint louis with tmobile but the average is about 30.. Not quite the 110Mbps i get with Charter but its faster than any of my freinds that use other carriers. I was using att not long ago and averaged 12mbps which sucked because i get that on Tmobiles HSPA+.

Wrong attachment these are with WIFI on Charter .. Below is with Lte in saint louis