yashsingh1/xdaforums huggingface dataset:
[G2 Android Development] MidnightHarvester:
I'm pretty sure that the scripts are only utilizing one thread (unless I'm mistaken). Is there a way in bash to start a new thread or at least call on a binary and pass over a callback function? I'll have to look into it.

When I deodexing my /system/priv-app folder I just let it run overnight. There isn't anything really in the script I can do to speed things up much as the majority of the work is being used during the baksmali and smali calls.

That's one reason I didn't echo any output like your script did which I really wanted to but I've found that things tend to run faster without output being sent to stdout. Might not be a huge hit but...

Maybe if I an get it to deodex in recovery nobody would be competing for resources? Definitely keep updated on the thread as this isn't anywhere near done yet.

I'm glad I found somebody else working on this. For a while I thought no one was that interested since there has been PC tools to do this for ages. Problem is for some (like myself) is that THIS is my PC :).

I'm trying to think on how to speed things up and drawing a blank. There aren't enough odex files in all of /system for there to be issued with looping. I think the baksmaling and smaling just take time. Take a look at Matt's old Privacy Blocker app (same Matt that developed xUltimate deodex tools on PC). It takes ages to baksmali and smali there as well.

My first early version though was even worse. I actually was decompiling resources as well in the archive and creating a smali folder and moving the decompiler source as well into there and recompiling the entire apk/jar lol. Don't ask me why.

I need to borrow an idea from you as well and let the user set API level. Normally omitting it should be fine (defaults to latest doesn't it?) but having the choices might help of anyone comes across a picky app.

In the meantime if deodexing am entire folder I'd recommend just doing it at night while you sleep. If you can, use a tool to enable all four cores and set all cores to performance mode and leave the Ax plugged in. *shrugs* I have AIDE installed so if I can get into the baksmali/smali source code maybe I can at least have a look.

Edit: I'm running a multithreading test now. You can run a command in another thread by placing '&' after the command. If it works I'll update.
[G2 Android Development] Modding.MyMind:
[MENTION=2505460]MidnightHarvester[/MENTION], I too use my device as it were my own computer which is why I make up the things which I do lol. Seems we have much in common. I actually learned about the idea of using multithreads with '&' just the other night as I was researching for ways to optimize my script. Another method is to use 'wait' which will put any future commands on hold until the current one is finished. That should out less stress on the cpu. Another idea is to limit the use of pipes. The more pipes being implemented the more usage the cpu has to dish out.

I believe flashing and running this in the recovery may speed this up as you mentioned that it would required less resources being used during operations, but the question is how much would the improvement be lol.

Keep me updated with using multithreads and feel free to take away whatever you find to be useful from my deodex script.

Expect many future changes to it to optimize it as much as possible.

In addition, using 'while read line' can increase the performance on speed if the following commands afterwards are not causing an overhaul.

---------- Post added at 03:10 PM ---------- Previous post was at 03:04 PM ----------

I will be pushing my project to my github later on today. Will be easier to keep up with any changes I make. Will take note in README.md that the project is still in development and to use with GRAVE caution lol.

---------- Post added at 03:13 PM ---------- Previous post was at 03:10 PM ----------

It's ashame I don't currently have any way to build the smali/baksmali sources from my phone.

Need to look in to it and see if any flags could optimize the final build to produce a more proficient workload in performance.
[G2 Android Development] Modding.MyMind:
So, I am working on getting my project to work in the recovery. Looks like some troubleshooting is in store.

From my recovery.log:

about to run program [/tmp/deodex.sh] with 1 args
CANNOT LINK EXECUTABLE: could not load library "libc.so" needed by "busybox"; caused by library "libc.so" not found
CANNOT LINK EXECUTABLE: could not load library "libc.so" needed by "busybox"; caused by library "libc.so" not found
CANNOT LINK EXECUTABLE: could not load library "libc.so" needed by "busybox"; caused by library "libc.so" not found
Detected API level
CANNOT LINK EXECUTABLE: could not load library "libc.so" needed by "busybox"; caused by library "libc.so" not found
CANNOT LINK EXECUTABLE: could not load library "libc.so" needed by "sort"; caused by library "libc.so" not found
Deodexing finished
CANNOT LINK EXECUTABLE: could not load library "libc.so" needed by "busybox"; caused by library "libc.so" not found
run_program: child exited with status 1

---------- Post added at 05:33 PM ---------- Previous post was at 05:00 PM ----------

Resolved my problem. Export path for sbin was being overwritten by the script so it prevented busybox from being used. To resolve it you just need to insure that sbin is included to the path as well.

Edit: this was tested with TWRP

export LD_LIBRARY_PATH="/sbin":"/tmp/jvm/java-7-openjdk-armhf"
[G2 Android Development] MidnightHarvester:
:cyclop

No probs cyclops. Between family I don't get a chance to get on hereuch but that's all changing here Very soon. I really glad you're taking off where i left off. I saw that there's a GUI out now I haven't read the thread yet so not sure if it's your work or not, but I'm glad others are running with it. Beauty of open source. I rewrote a lot and published to github under GPL but unfortunately during the rewriting I broke something and haven't been back to fox it yet.

I need to as yje code is streamlined as well as being on github open where all can see and make commits. I would get on that but it seems the GUI version has taken off and this is more for legacy but who knows :)

I also noticed someone else had a btch deodex script published on github though no as robust but I should have borrowed off him instead of reinventing the wheel. Too bad I didn't see that until later.

Inteied my luck at multithreading the shell commands but that would require a LOT of counters keeping track of example which processes are still decompiling and which are recompiling to avoid collisions, so I lwdr it be for now. And now that the GUI is out maybe ibcan lend a hand there if needed.

Is the GUI just a command line GUI or an actual app?I'll look when done reading. If it's an actual app multithreading would be much easier and i wouldn't mind helping out on the team. If its a shell GUI like old Windows apktool versions I commend you. Takes patience to mundnely write out the interface :)

Either way glas there's interest and happy others with more time to devote can carry on.
[G2 Android Development] PiggyFlooper:
[MENTION=2505460]MidnightHarvester[/MENTION]

Hello sir,

I'm trying to decompile settings.apk with apktool for android. It won't do it correctly, and I'm wondering if it's because it should be deodexed first. The only 2 I've been able to recompile are htc-resources.apk and framework-res.apk on HTC Evo 3D 4.0.3ics

That's first question, will be able to recompile settings after deodex?

I don't understand this command,

. /system/bin/bdt

bbdth-smali

Are these on one line, separate?

I'm fairly new to modding, will you help me please?

The commands listed, when pasted into terminal, errors a lot. Using SManager to run works, but what is got from it isn't a deodexed app.-

When running batch-deodex(I'm using bdt from v.1.1.0 because it throws out several errors with bdt from v.1.2.0, I haven't looked through it, so I'm not sure if it's just not echo ing them), well, first I put the settings.apk in files-to-deodex folder, create odex of it in apktool(is this right thing to do?) Settings.odex is created in same folder, then ran batch-deodex.

The exact same settings.odex is placed into files-to-baksmali. And same settings.apk is placed in deodexed-out. In the dex-out folder are same 2 files called classes.dex and Settings.dex. and in the smali-source is Settings folder with a boat load of smalis.

After it's done:

exec sh '/system/bin/batch-deodex'

in/batch-deodex' <

rm failed for -rf, No such file or directory

rm failed for -f, No such file or directory

cp: can't stat '/sdcard/BDT/files-to-deodex/*.jar': No such file or directory

rm failed for -f, No such file or directory

rm failed for -f, No such file or directory

rm failed for -f, No such file or directory

rm failed for -f, No such file or directory

rm failed for -f, No such file or directory

And here's the log

Error occured while loading boot class path files. Aborting. org.jf.util.ExceptionWithContext: Cannot locate boot class path file /system/framework/conscrypt.odex at org.jf.dexlib2.analysis.ClassPath.loadClassPathEntry(ClassPat h.java:217) at org.jf.dexlib2.analysis.ClassPath.fromClassPath(ClassPath.jav a:161) at org.jf.baksmali.baksmali.disassembleDexFile(baksmali.java:59) at org.jf.baksmali.main.main(main.java:274)

What am I doing wrong?

How do I get to having deodexed app?

Sent from above using xparent tapatalk blue
[G2 Android Development] Doublewise:
How about batch odex?
[One (M8) Q&A, Help & Troubleshooting] laddken:
Title is pretty self explaining. But wondering I'd there is any new custom roms for the m8? I tryed to load viper and NV how ever 4 months ago I couldn't get them to work properly with having radio issues. I'd load them and work great but never any radio service via network or wireless :(
[One (M8) Q&A, Help & Troubleshooting] Mr Hofs:
Questions go in the Q&A ..... not in the general section !
[Galaxy Note 3 Q&A, Help & Troubleshooting] marko9812:
So at this point i've pretty much pulled all my hair out.

I've been scouring the web for the past week trying to fix this Note 3 (SM-N900T).

Background:

Purchased this phone used and originally thought it was working as it worked fine without my SIM card in, when I put my SIM card into the phone it would reset within a minute of turning on. Opened up the phone to make sure there was no water damage, no physical damage, or missing parts.

When I purchased it it was rooted and running philz custom recovery on stock NB4.

I couldn't figure out how to flash the device so I tried all sorts of things but it still keeps freezing and resetting within 5 minutes of turning on.

Where I'm at now:

Model: SM-N900T

STOCK ROM: NE6

STOCK Kernel: NE6

STOCK Recovery

NOTE: When the phone freezes up and resets my wifi password is forgotten! I think it has something to do with the modem!

I flashed the phone using odin 3.0.9 to stock NE6. The phone was having trouble turning on so I flashed kernel and then modem NE6. The phone turned on and was actually running fine for a little bit! (15 minutes) then it froze and messed up now its resetting within 5 minutes of turning on. I've tried fixing the efs folder, flashing the modem, kernal, and rom. I am not sure what to do at this point. My thought is that when I flash the modem and kernal it works but then somehow within the first 15 minutes it corrupted and then stopped working. I've tried flashing delvik cache, cache, data, system, numerous times before.

Any guidance would help! If you solve my problem I will send you $5 worth of bitcoin so please put your bitcoin address in your response!

Additional info about the phone if you need it:

Knox warranty: 0x1

Bootloader/Baseband/PDA Version: N900TUVUDNE6

Build number: KOT49H.N900TUVUDNE6

Android Version: 4.4.2

Build Fingerprint: samsung/hltetmo/hltetmo:4.4.2/KOT49H/N900TUVUDNE6:user/release-keys
[Galaxy Note 3 Q&A, Help & Troubleshooting] marko9812:
I can not believe how quickly a member solved my problem!

Antique_Sonic PM'ed me the solution!

For those of you having similar issues here was the solution to my problem.

"download the latest n900t and flashed with odin with clicking of upgrade bootloader at odin.

Once it finished, go into stock recovery and do factory reset md wipe cache.

I assume I know how to go into stock recovery.

After this ur phone shld be fine."

Thanks a ton Antique_Sonic!! :D:D:D
[Galaxy Note 3 Q&A, Help & Troubleshooting] antique_sonic:
U r welcome mate

Sent from somewhere under the sky, at the corner of this rounded earth
[Galaxy Note 3 Q&A, Help & Troubleshooting] zelenko:
Yep, antique_sonic is a life saver. Thank you mate
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] trying yr luck:
I just updated to stock 4.4.2 Kitkat on my i747 (and then rerooted). However, since I'm using the phone on T-Mobile network, I get an "Mobile data not available or invalid sim" error when I switch on Hotspot.

I know in past firmware, the were mods that changed or removed the Tetheringprovision.apk but those threads warn not to use such mods in any other firmware except Jelly Bean.

Does anyone have a workaround to get Hotspot working on 4.4.2 yet?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] trying yr luck:
anyone?
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] kachmul2004:
anyone?
[Amazon Fire Phone] 2007HHR:
Thoughts on Firefly?

Should be expect an apk for Android devices or is there a HW feature that will have it locked down?
[Amazon Fire Phone] locozozi:
Hear Hear!
[Amazon Fire Phone] telis12:
Yes please port firefly

Anyone with system dump?
[Amazon Fire Phone] crutchcorn:
Can someone please upload and PM me the link to a system dump. I would LOVE firefly ported and will commit to doing so.
[Amazon Fire Phone] noodles2224:
I just would like the notification tone from it.. Where can I get it, if anyone knows? Please..
[Amazon Fire Phone] stanleyopar2000:
I agree... And this will be possible if a form of root access is made available.

That's the only cool thing about the fire phone
[Amazon Fire Phone] crutchcorn:
I think Amazon has sense releaced source code....
[Amazon Fire Phone] ralphkaz:
any news on this topic? has firefly been ripped from the phone yet?
[Amazon Fire Phone] le-grx:
https://grex.endofinternet.org/firephone_audio.tar.gz
[Amazon Fire Phone] le-grx:
i added it as attachment. Although you can't install it, since you are missing the base amazon framework.

And even if you would install it, you need to login to Amazon to use it, which is not part of this app.
[Amazon Fire Phone] B1ackByte:
Is it firefly from 3.5? Or from 3.6.?
[Amazon Fire Phone] le-grx:
3.5
[Amazon Fire Phone] zach61797:
It would be awesome if someone could remove dependencies so it can be installed
[Amazon Fire Phone] telis12:
it installs but it doesnt run
[Micromax A110] avinash130413:
Here I am writing many phones running on Mediatek MT6577 soc

It will help many people to port rom for there any mt6577 devices.

It will help for searching new roms for mt6577 and porting them to their C2 Or any other phone.

Here is the list

I placed them in Alphabetical order

ACER E350 DUO

ACER LIQUID E1 DUO

ACER LIQUID E2 DUO

ACER AK330S

ALCATEL ONE TOUCH 992D

ALCATEL ONE TOUCH 997D

AMOI N820

AMOI N809

AMOI N816

AMOI N821

BENQ F3

BLU VIVO 4.3

BLU STUDIO 5.0

CELKON A119Q

CELKON A20

CELKON A225

CHANGHONG V9

CYNUS T1

CYNUS T2

GIGABYTE G SMART GS202

GIONEE GN180

GIONEE GN700W

GIONEE GN800

HAIPAI NOBLE X710D

HUAWEI ASCENDS G510

HUAWEI ASCENDS G500

HUAWEI U8836D

HUAWEI T8951

JIAYU G2S

JIAYU G3

KARBONN A30

KARBONN A27

KARBONN A10

KARBONNA8

LAVA IRIS 405

LAVA IRIS 501

LENOVO A390

LENOVO A390T

LENOVO P789

LENOVO P770

LENOVO P700i

LENOVO S720

LENOVO S890

LG G RPO LITE

MEIZU MX2

MICROMAX A110

MICROMAX A88

MICROMAX A91

MICROMAX A90S

MYPHONE A919

NEWMANN N1

OPPO U705W

OPPO R817

OPPO T29

PANASONIC T21

PANASONIC P31

PANASONIC G70

PANASONIC EZ240

PANTECH VEGA S5

PRESTIGIO MULTIPHONE 5000 DUO

PRESTIGIO MULTIPHONE 4044 DUO

PRESTIGIO PAP4500 DUO

UMI X2

XOLO A700

XOLO A1000

XOLO B700

ZOPO ZP200

ZOPO ZP300

ZOPO ZP 300+

ZOPO ZP500

ZTE V970

ZTE V970M

ZTE V889

ZTE V889S

I had done this work in 45 Minutes

I had wrote something wrong please report me, I will correct it. :happy:

I put a lot of work to find them

If you like my work

Please Hit Thanks Button, It will motivate me and wont cost you :angel: :)
[Micromax A110] pradeepmaddy:
Cool man :cool::cool::D:D:D
[Micromax A110] avinash130413:
thnxx man [emoji41][emoji5][emoji6]
[Micromax A110] ANKIT RAWAT:
I was Search For The Same Thing

Thx Man !
[Micromax A110] avinash130413:
Wlcm
[Micromax A110] Papdya:
Thanks bro !! Made work a lot easier....
[Micromax A110] Papdya:
Meizu mx2 is not mt6577 :P
[Android Apps and Games] delta_foxtrot2:
Some people have beat speeding tickets in the past with GPS loggers, this app logs your current speed, location and so on to a GPX file as fast as the GPS chip updates the system, but unlike other GPS loggers uses cryptography to make a tamper proof log which you can use to prove your speed.

This is the official help thread for the app.

You can download from the play store
[Upgrading, Modifying and Unlocking] gabontz:
I received a GPS ANUBIS TYPHOON MYGUIDE 3620 GO with WINDOWS CE NET 4.2 CORE, SAMSUNG S3C2410A processor and it seems that the operating system was deleted. I only get typhoon screen. I can put it in download mode but I don't have the tool for writing it and neither do I have rom. Could anyone tell me how do I fix it or maybe you could send me something to help me repair it.

THANK'S IN ADVANTAGE
[Galaxy S II Q&A, Help & Troubleshooting] JeffersonJDiaz:
Good night.

I have had very bad luck with phones, you can not imagine ... My problem is that my Galaxy SII is bricked, I can not enter into recovery mode but I can enter into download mode normally.

As you can imagine, my PC does not recognize the device so I had to install the drivers using Samsung KIES, after Odin was able to recognize my device, the thing is I tried to install several stock rom and I could not because I Odin mark "operation failed".

Below I leave a screenshot of what appears in ODIN I try to install any rom either multiple files and a single file.

I hope you can help me with my problem, greetings from Venezuela.
[Galaxy S II Q&A, Help & Troubleshooting] MistahBungle:
Same as everyone else in this situation; find Hopper8's 'Odin troubleshooting' thread stickied in General & go through all the troubleshooting steps in a methodical manner as many times as you need to in order to get a successful flash.

That thread is 'the bible' as it covers these situations from every possible angle. Where these are recoverable (and almost all are as long as you have download mode), they're often fixed with perseverance, so you may need to try one or more of the steps in the thread many times to get a fix.
[Galaxy S II Q&A, Help & Troubleshooting] JeffersonJDiaz:
Thanks!, but... where I can find that? I'm new to this, and believe me I have not had any luck, right now I also hurt my mini s3 not enciente or cargo or enter download mode or recovery mode.
[Galaxy S II Q&A, Help & Troubleshooting] MistahBungle:
Not interested in your other device, it has a specific forum, and you'll need to post a thread to that forum to get help with it. That's how things work around here, specific forums for specific devices as what works for one device doesn't necessarily work for another

And with regard to how to find that thread, navigate to the General section, and it's a stickied thread which means it's on the first page.

If you want your phone fixed, it's going to take a bit of effort on your part, and using menus to navigate to different parts of the site is something you're going to have to do (we have stickied threads so we don't have to constantly repost common stuff). Go to the root of Samsung Galaxy S II I9100 & it will list the different sections, you'll see the General section listed there.
[Android] shivkiran9:
Please anyone tell me ,how to root my Karbonn titanium s1 plus:laugh:
[Android] dev27:
Follow these steps.

1. First make sure that you have your device drivers installed on your PC.

2. Download your preferred superuser package. ( search the forum for superuser.zip files or just google it)

3. Download CWM recovery image file for your phone.

4. Once you have downloaded these two files, copy recovery.img to the folder where you have fastboot and adb. (If you have no idea what they are, please search the forum) and copy superuser.zip package to your phone's SD card.

5. Now connect your device to your PC. Make sure that developer options is enabled on your phone.

6. Open command prompt window where you have set up ADB. To do this press shift key on your computer’s keyboard and right click on the ADB folder, then select open command window here.

7. Type these commands in the command prompt.

fastboot devices (if you find anything appear on the cmd window, your device is connected)

fastboot flash recovery recovery.img

8. Then, switch off your mobile. Press Volume up+down + power button to enter into recovery.

9. Select Install from zip option -> Select zip from sdcard -> Choose superuser.zip.

10. It will install, then reboot your device.

You will find Superuser app in your phone, which means that your phone is successfully rooted. :good:

Hit thanks if this helped. If you need further help, PM me or search the forum. :laugh:
[Android] nanachitang420:
is this method for S1 plus or S1

Is this method works on S1 plus also?

Please confirm, as you post you are quoting CWM for S1

Thanks in advance
[Android] dev27:
I'm sorry for my carelessness, the download link I attached in the previous post was for S1. The method is similar to almost all android devices. The only thing you should worry about is CWM. You can follow the same steps but make sure that you have a CWM for your phone. If not, you may try porting it to your phone or just download ROM manager on your phone, it will provide you with all the options for flashing CWM. You can download ROM Manager from google play. Other than that, the steps are all the same. ;)
[Android] vipul0197:
Signature verification failed

cwm is compulsory or i can use android system recovery which already in s1 plus

i've tried this method. downloaded superuer.zip and tried to flash with android system recovery but it says "E:failed to verify whole-file signature;E:signature verification failed"

i've tried many rooting software but no luck so far. :(
[Android] dev27:
U have to either user CWM or TWRP recoveries. Android system recovery cannot be used to install superuser.
[Android] judebrent87:
Still unsuccessful. Can you please shed some light on how to go about with rooting this particular model? Thanks
[Android] dev27:
What error are you getting?
[Android] judebrent87:
I run superuser after rebooting the phone while using the volume + power buttons. But after installation when I check root it says no access.
[Android] dev27:
Try doing this. Install SuperSU using CWM. If it installs, reboot the phone and check whether it has been installed by looking at the All apps section under settings. Then try to use any root application. If you encounter any problems in these sections, kindly specify where you get the problem.
[Android] vipul0197:
Waiting for device

I am facing different problem.

Command prompt displays nothing after writing fastboot devices and on further process it says waiting for device. :confused:

i have karbonn drivers installed in my pc with windows 7 and usb debugging is on.
[Android] judebrent87:
How do I manage to get CWM for this model. All versions I've downloaded off playstore says it doesn't recognize this model!
[Android] nanachitang420:
Anybody got success?

Anybody tried this method?

Me have deleted SU accidently from system/xbin so, cant try rather is not working for me.
[Android] vj9716:
Better than all these cwm methods u download any framaroot.apk search it on google or on 4shared.com and just select install superSU and press gandalf option!!!

Hurray!:D Your phone is now rooted!

Just reboot to access the superuser app!

Press thanks button if i helped you!

:)
[Android] akshykhade:
Isbit harmful for device ????