yashsingh1/xdaforums huggingface dataset:
[Nexus 6P Q&A, Help & Troubleshooting] Eazii:
Hello All,

Not having the availability of a PC at the moment and wanting to edit apks had me thinking if it was possible to run Apktool straight from my Nexus 6p itself. After some research I found some information showing that it is indeed possible (at least it was), but nothing seems to work at the moment, rather nothing seems to be up to date.

I would like some insight on the matter if anyone has any or if anyone can point me to and updated version for Android Nougat.

Here are two threads from xda showing that it indeed it's possible, but not updated. Any help is appreciated thanks

http://xdaforums.com/galaxy-core/general/how-to-decompile-recompile-apk-using-t2818875/

http://xdaforums.com/showthread.php?t=2488697&page=8
[Nexus 6P Q&A, Help & Troubleshooting] GKti22:
The SDmaid app has that feature included, at least the paid version does :)
[Nexus 6P Q&A, Help & Troubleshooting] Citizen_Snips:
No it doesn't. I use SDmaid regularly. Also have pro. Not sure what you mean. SDmaid is not able to decompile apps. APKtool is for decompiling apps so you can make edits to the code. For example, if you use any Team Blackout apps. They decompile the app and then edit the code and use image editors such as Gimp or Photoshop to black out the colors and then recompile it so that you can install and use it. SDmaid is absolutely not a decompiling tool. Two completely different things. Google APKtool to learn more.
[Nexus 6P Q&A, Help & Troubleshooting] GKti22:
You're right. I meant to say it can recompile apk files from apps you have already installed, just compiling, which is no big deal you have root anyways since you can grab it directly from system folders.
[Nexus 6P Q&A, Help & Troubleshooting] Citizen_Snips:
Where exactly are you talking about? SDmaid can't do any of that to my knowledge.

Edit: APKtool is used to basically rip an app apart so that you can manually edit the code and images inside of it. The inner files that make the app what it is. It separates the app into a bunch of different folders and files. You edit the files and images you want and then recompile it which basically *puts humpty dumpty back together again*. SDmaid is a system cleaning tool to remove unwanted files and folders left over from uninstalled apps. It does not recompile or decompile apps.

#2: See here; https://ibotpeaches.github.io/Apktool/

APKtool and SDmaid are in 2 completely different ballparks in 2 different states. One ballpark is NFL, the other is NBA. Two completely different things.
[Nexus 6P Q&A, Help & Troubleshooting] GKti22:
It can do this, nothing fancy as I said, there are ways that can get the OP full fledged APKtools into his phone but not a legal or XDA friendly I know of...
[Nexus 6P Q&A, Help & Troubleshooting] Citizen_Snips:
Your screenshot points to "System" indicating it's a system app. Frozen, an option to freeze the app. And autostart which will list any receivers the app uses to run at boot. I see nothing in your picture about recompiling anything. Then again the quality is badly pixelated. APKtool is a reverse engineering tool. SDmaid is not.

OK. Imagine it like this. You make an omelette (app) with bacon, mushrooms, onions and peppers. You fully cook it (compile it) and then realize that you don't like onions or peppers. So you uncook the omelette so the egg is raw again (decompile it) and you pull out all of the onion and peppers and add diced tomatoes (editing the code). Now you cook it again (recompiling it). Show me exactly where you can do that in SDmaid.

I'm not sure you understand what APKtool is. It is not just a tool to freeze, force close, uninstall, revert to first install or edit receivers. It fully reverse engineers the app so you can edit the code that makes the app what it is.
[Nexus 6P Q&A, Help & Troubleshooting] Eazii:
I know all about SDmaid and it's not what I'm looking for nor does it do what I'm asking about [MENTION=4610119]RoyJ[/MENTION] is absolutely correct
[Nexus 6P Q&A, Help & Troubleshooting] Citizen_Snips:
Thanks, I felt like I was taking crazy pills lol. I couldn't find anything newer either. If you do end up coming across something here sooner or later, mind tagging me in it? Oh and also, I have APKtool on my laptop. Anything in particular you were looking to do?
[Nexus 6P Q&A, Help & Troubleshooting] Eazii:
Yes if I find anything newer working for Nougat I will tag you.

As for your offer I have a few different mods for Nougat that I have collected, the problem is if flash one I erase the current one due to the fact the are SystemUi modifications. What I wanna do is combine them all into one super mod I currently have 3 different systemui mods. I have all the codes that need to be modified as well.

I also would like to tweak the pixel launcher a little. Again I have so.e of it done already I just need finishing touches I guess.

If you willing to take on the task let me know and if not then that's cool as well, either way I will have to learn myself someday and as soon as my laptop is up and running I will begin my education
[Nexus 6P Q&A, Help & Troubleshooting] Citizen_Snips:
Sure I'll give it a go in a few hours when I'm back at my laptop. PM me your stock SystemUI.apk and the code you want edited and I'll see what I can do. If it goes well, we'll see about the Pixel launcher. Fair warning, I've only really used it to decompile an app and then recompile and sign. It worked and I could install it, etc., but I haven't messed around with making edits yet. Still willing to give it a shot, there's plenty of threads I could ask in if I run into trouble. It's something I've wanted to do for a while now, so yeah. Learning experience for us both. :good:
[Nexus 6P Q&A, Help & Troubleshooting] Eazii:
Okay bet I'll send in right now
[Nexus 6P Q&A, Help & Troubleshooting] Citizen_Snips:
Never got anything, did you send them?

Edit: Nevermind, I did. XDA labs is pretty bad about giving me notifications...
[Nexus 6P Q&A, Help & Troubleshooting] Pain-N-Panic:
if he's on stock Android N, systemui should be odexed so you won't get all the source code from decompiling without deodexing the app first.
[Android Q&A, Help & Troubleshooting] pahak:
Hiw to root j7 prime..sm-g610f/ds..no need for rooting..
[Android Q&A, Help & Troubleshooting] Shubhamtkd:
Yes I also wanna root my sm-g610f (samsung j7 prime)
[Android Q&A, Help & Troubleshooting] LordBaal19:
I also need the root for j7 prime sm-g610f/ds, haven't found a way for the life of me. Tried some of the methods here, nothing. Tried with desktop dot firmware dot mobi but that didn't work either. Also I don't know if use on7xelteins or on7xeltedd???
[Galaxy Tab S2 Q&A, Help & Troubleshooting] SystemDoctor:
Hi there. Recently got TWRP and rooted this device and installed a bunch of things on it. I installed Busybox and then proceeded to flash Viper|Atmos from here. Rebooted and then it tells me to install driver which I did and then rebooted again. Nothing changed and it still tells me to install drivers. I check the Driver Status and then see that audio format is unsupported. Did a bit of searching around and I saw that I should change SELinux to Permissive from Enforcing. I installed SELinux Mode Changer and gave it root access but it tells me that it cannot detect root. Any ideas? Thanks!
[Galaxy Tab S2 Q&A, Help & Troubleshooting] ashyx:
You don't need to set permissive mode for viper anymore, you just need the sepolicy fix.

http://xdaforums.com/showpost.php?p=61242973&postcount=18854
[Magisk] Link_of_Hyrule:
Edit: As far as I can tell this is no longer needed on the latest Lineage OS 14.1 builds.

I edited another module I found here to do what I needed it to do. Basically, Android Wear won't run on CM14.1 Nightlies because they are UserDebug so I made a script to get around this issue. I think that as long as Magisk is enabled that it should persist with each update instead of having to manually edit the build.props yourself each time. I take no credit for the script except my small edits.

The original script is for enabling Google Assistant and can be found here.

This has no warranty in the very unlikely event bad things happen I'm not responsible. I made this for myself and just thought it would be useful to others.

Special Thanks to stangri and Setialpha for their hard work on their modules that I used to make this.
[Magisk] Jisifus:
Awesome, but why not just edit build.prop? Why are the nightlies set to userdebug in the first place?
[Magisk] Link_of_Hyrule:
I'm pretty sure they've always been like that. The reason why you would use this is it's a hassle to manually edit it every day when you update to the new nightly.
[Magisk] Nomelas:
The whole point of magisk is to NOT modify the actual build.prop or make ANY changes in /system
[Magisk] alleykat2561:
How do you enable magisk?
[Magisk] ashokmor007:
This is how Android wear works on cm 14.1

https://youtu.be/NasiUcEnkoo
[Magisk] Link_of_Hyrule:
My script basically does the same thing except you don't have to manually edit the file they time you update your os because it always makes sure it's the correct property. So using magisk and my script is a much better solution.
[Moto E Q&A, Help & Troubleshooting] masterpradip:
AirDroid, Laptop or any File Manager can't detect my SD Card which I'm using as internal. I can install apps into it but can't copy files.
[Moto E Q&A, Help & Troubleshooting] _sushan_:
Try migrating data option in storage settings
[Moto E Q&A, Help & Troubleshooting] KhanStan:
Go to settings->storage and data -> internal data and press e dots (top right) and migrate data.
[Moto E Q&A, Help & Troubleshooting] masterpradip:
I want it to be detected by my file manager. How would I do that?
[Moto E Q&A, Help & Troubleshooting] Ujwal Agrawal:
If u migrate file manager will show ur sd card... Do that it works:good:
[Google Pixel XL Questions & Answers] xkeita:
Not sure if this is already possible but could someone share stock /sys/module/lowmemorykiller/parameters/minfree values?
[Samsung Gear S3] ramheer:
Ladies and Gents please enjoy my review of the Gear S3 Frontier, I will be reviewing straps sooMod Edit
[Samsung Gear S3] janjan:
Can you test the Samsung gear s3 with Google Pixel? I mean is the calls and messaging works with that? Can you take the calls and answer the messages without touching the cellphone. Thanks
[Samsung Gear S3] ramheer:
I already did and it works fine no problem
[AT&T Samsung Galaxy S 5] hardwellmouad:
Hi Friends Any Way to root s5 at&t 5.1.1 or downgrade to kitkat ?
[AT&T Samsung Galaxy S 5] johnkirchner:
Nope, not at this time or if at all. Plenty of threads here already answer this.
[AT&T Samsung Galaxy S 5] secretyogurt:
I made the mistake of trying it without doing proper research first and soft bricked my SM-G900A. It took me a whole day to find a fix that would work.

Here it is if you are stuck. I don't know the author, so use at your own risk: docs(dot)google(dot)com/uc?id=0B1GXEvC92Q8dTGxfMXo1UnBnSGc&export=download via crich1983

on androidcentral thread: ATT S5 SM-G900A attempted downgrade from 5.1.1, now stuck at samsung splash screen
[AT&T Samsung Galaxy S 5] kamui157:
OMG thank you for the link to unbrick my PA6. Took me a couple of minutes to figure out which slot to fit everything in.

BL - Boot

AP - Recovery

CP - Modem

CSC - NON-HLOS
[Tilt, TyTN II, MDA Vario III General] kireol:
Put a new rom on. XDA-live.

sync up to get contacts. everything is fine.

2 days go back.

nothings changed(that I remember, but who knows.)

Plug in to sync after I typed in 5 new birth dates.

Activesync wipes all of my contacts.

Go to activesync. Delete all "devices"

sprite restore contacts.

resync.

it gives me 3 options, 1 of which says "Combine what is on the device with what is on the computer", which is what I select.

it resyncs.

deletes all contacts again.

what the hell!?
[Android General] jachol:
Hi mellomade,

Thanks for this ... I'm using another phone now running Lollipop, but still have the A760 running unofficial CM11.0. as a backup, I've downloaded all files, and will give it a go at a later date ... I'm between cataracts eye operations right one fixed, left should be done soon, I can't get new reading glasses until then, so I'm struggling with anything close-up right now. ...Jack
[Android General] mellomade:
Hi Jachol. Good to hear some of us are still hang on to A760. No worries, do post here if you have any questions about the installation process. Get well soon!
[Android General] jachol:
mellomade ... The A760 has always worked well for me, I wouldn't scrap it, I only have the newer one because it came as a present ( so far it's been equally as good).

I've been studying the instructions, and guess steps 1-9 install the new TWRP recovery, the new ROM installation is then normal TWRP procedure.

I do have TWRP recovery v.2.6.3.0 already installed, but I'm sure it isn't compatible with latest android versions, so no chance of an install via that

It will be interesting to see if others from the old thread pick up your link.Thanks again. .. Jack
[Android General] mellomade:
Great! Actually, Starting from lollipop, rom installs require larger internal space. Since we barely have sufficient space for system on our A760, the internal storage needs to be repartition (done by HDD Raw copy tool). Luckily the provided image 'Lenovo_A760.imgc' will automatically install the updated recovery TWRP 2.8.7 (compatible for the rom install) so we dont have to.

I do think others from the old thread already shifted to other phones :(
[Android General] astudent:
The QPST link given is no more. Any chance you have another download link? Preferably one without malware, as there seems to be some of them floating around.

Thanks
[Android General] mellomade:
I have updated with new download link (now its working). Sorry for the ads. You can click the 'Skip the ad' button after waiting for 5 seconds, or you can Google Qualcomm QPST if you prefer not to click it.
[Android General] jachol:
GM mellomade,

I have CM13 flashed OK now + the updated recovery, I'm finding heavy it on battery consumption,

mine loses 25% overnight with no additional apps installed as yet.

This is much higher than the unofficial CM11 Rom I have been using,

I've restricted some of google services in Privacy guard, this has helped a little

but I see no other way of reducing battery drain.

How do you find yours ?, and any suggestions please ?. ... J.
[Android General] mellomade:
I was having the same experience too. I use Greenify App from play store, and put ALL apps into hibernation, except the one I required their notification to be alive (e.g; WhatsApp). That helps too. I guess that is one of disadvantages having an unofficial build, because it is not natively supported for our phone. Hence the high battery drain issue. On the bright side, we get to experience the latest (even though not updated) ROM :victory:
[Android General] jachol:
OK, Thought I may have a problem with ROM download, I did try a reflash which didn't help any. I'll try Greenify later, one thing I like about this ROM is the minimal system apps used (no bloatware).

My present phone (X-BO 06) running Lollipop, has a setting which allows the phone to switch off/on automatically overnight which is great for battery saving, I must see if i can find an app that does the same. Thanks again for the info. ... J. :highfive:
[Android General] mellomade:
aah.. we do have that auto start & shutdown setting on our official rom (4.1.2). Im guessing you want that functionality without installing any new apps right? If not, you may look into Phone Schedule from play store. It support android 6.0. No prob :cool:
[Android General] jachol:
mellomade,

Are you saying that we do have the Off/On option with this lollipop ROM ?, if so I haven't found that it in settings, I will take another look, it does make a big difference to battery saving. ... J.
[Android General] mellomade:
No no no. I think you may have misinterpreted my message there. I did mention, on our official rom, which is 4.1.2, the A760_1_A_2_0057_130828 updates from Lenovo. Sadly not on this unofficial cm build. However you can check out greenify, it does makes a lot difference if you hibernate unused apps. Hence, if this is your secondary phone, you may even hibernate all apps (which can significantly reduce battery consumption) without have to worry about any incoming notifications, am I right.
[Android General] jachol:
Ah yes !, gotcha now ... total misunderstanding this end, and yes I've installed greenify, it helps a lot. Thanks again. ... J.
[Android General] MiranPChamp:
Can you please give a device tree of this rom.I really need it.:)
[Xiaomi Mi MIX  Guides, News, & Discussion] ramheer:
Ladies and Gents please enjoy my video unboxing of the Mi Mix, review coming very sooMod Edit
[One (M7) Q&A, Help & Troubleshooting] Afzal922:
Please help Two days ago, i flashed Elemental x in my htc m7wls sense 6 KK, after that my phone didnot show its IMEI

and no any Network except wifi also reboot automatically after two minutes. I thought it is due too BOOT.IMG file. I downloaded a boot.img and flashed it through TWRP when i rebooted system,now it does not even turn on its screen but when i press power or volume keys it just vibrates, Now i can not even go to in Bootloader or Recovery becoz screen is totally off, it vibrates twice when holding power button and then keep vibrating twice.No tricks are working like pressing and holding power button +Volume buttons etc. It even does not show if its charging r not, When i connected it to my laptop through cable, the laptop detects it 1.htc m7 and a removable new disk with 0 kb size and one more thing,
[One (M7) Q&A, Help & Troubleshooting] Sophia.xda:
ALAS !!

then how you recover the phone alive?
[One (M7) Q&A, Help & Troubleshooting] Afzal922:
Long story But I made it New AGain..
[One (M7) Q&A, Help & Troubleshooting] Sophia.xda:
:D:D:D really but it seems to look hard i get frp lock on my a510F i fixed in 2 days :P
[One (M7) Q&A, Help & Troubleshooting] Afzal922:
I took about one month..
[One (M7) Q&A, Help & Troubleshooting] Sophia.xda:
hahahhaahah

one month no phonne its seems you didnt live on earth :P that time
[One (M7) Q&A, Help & Troubleshooting] Afzal922:
Hahahahaha... Two month later were mine papers..
[BLU R1 HD Questions & Answers] brockwitting:
Hey XDA,

I was rooted, unlocked and TWRP'd on I think 6.4? I realized I wanted to go back to locked and stock after seeing some of the security stuff come out. I used SPFT to flash the 6.1 Prime Rom, and everything was working great. Phone booted no problem, and seemed to work fine. I then tried to use the Wireless Update to update the phone. It looked liked it downloaded fine, but now I'm in a reboot loop, and recovery does absolutely nothing but reboot loop as well. I CAN get the phone into Fastboot mode, but fastboot flash recovery gives me a "failed to get permission" error.

I ran a getvar all, and here is what I have:

unlocked: yes

secure: yes

kernel 1k

bootloader: version-preloader 0.0.00

Version: 0.5

I've tried the SPFT tools again, but it gives me ERROR: S_BROM_DOWNLOAD_DA_FAIL.

ANY clue what I can try next to just get the dang thing to be bootable? I don't care root or recovery or what, I just want a working phone, and I'm running out of ideas.

Thanks!
[BLU R1 HD Questions & Answers] mrmazak:
don't panic. everything is as is should be in your situation.

you see when you did getvar all , it said

secure: yes.

that means it only wants to boot signed and secured partitions. Just get into fastboot and do "oem unlock".

you really cant (safely) relock the bootloader. If your boot loader was relock now, you wold be in a perminent boot loop condition not able to recover.

But you can save it with "oem unlock" from where you at now.
[BLU R1 HD Questions & Answers] brockwitting:
You rock. I thought since it said unlocked I didn't need to do it again, but that did the trick. Now I just need to figure out what to do with the phone. I wouldn't mind keeping root, but I want the B12 update.
[BLU R1 HD Questions & Answers] kal250:
Here...

http://xdaforums.com/r1-hd/development/prime-stock-rom-6-5-flashed-via-twrp-t3455532/post68543624

Though if you have already updated, you're probably stuck, unless the dirtycow hack still works with newest OTA....

http://xdaforums.com/r1-hd/how-to/blu-r1-hd-v6-6-dirtycowed-f-amazon-root-t3490882/post69387241
[BLU R1 HD Questions & Answers] mrmazak:
The dirtycow thing was only needed to get to the unlocked point. He is already there, so his only issue should be the lack of sp flash tool. Until/ if he does the bootloader rollback.

Shouldn't be problem with the modded v7 to roll back either.

Because in order to install the modded version , you need to be unlocked and twrp anyway, right.?
[BLU R1 HD Questions & Answers] kal250:
Yes.... See what happens when you loose your R1, I'm out of touch lol.... I do miss the phone.....
[BLU R1 HD Questions & Answers] kfn:
I presume he flashed factory original 6.1 from Colton's site.

I thought flashing original rom with SPFT should result in safely relocked bootloader, why not?

What if he relocked bootloader with 'fastboot oem relock' command after flashing 6.1 but before taking 7.4.2 OTA update? This would also leave him with:

unlocked: yes

secure: yes?

There must be some way to bring phone to original factory state with bootloader locked (meaning unlocked: no secure: yes).

BLU support also cannot do this?
[BLU R1 HD Questions & Answers] mrmazak:
There is and I did it few times while testing my unlock script. Bit the chances of making a brick were so very high I cannot recommend doing it.

There are two other partitions that store the unlock state and they need to restored to really relock bootloader.

OEM relock does not work properly
[BLU R1 HD Questions & Answers] kfn:
Can you tell what steps you did to relock?

I really want to bring device to original factory state because encryption does not work when bootloader is unlocked. I did first dirty cow method on original 6.6 ROM (one with newer preloader), then rolled back booloader, installed 6.1 from ColtonDRG site with SPFT and finally installed vampireinfo's 7.4.2 thru TWRP.

However when I encrypted phone, in settings it says encrypted but I can browse device on PC without entering PIN.

On factory state encrypted device (with locked bootloader) I was not able to this
[BLU R1 HD Questions & Answers] mrmazak:
This will brick your phone, if you are not careful, and also if you are carefull. You can browse for help in encryption with unlocked bootloader before doing this, I'm sure there is a solution.

If you replace Seccfg.bin and Secro.bin from a backup from before unlocking bootloader you should be set to locked but I do not know of your phone will boot. You will be doing g that at your own risk.

But if you download the repair solution under the hidden tag(click to show content) in the roll back thread.

In that file it will restore you to 6.1 and it will be locked bootloader. I do not know about keeping v7 and relocked