Partition table need! (searching a way to get bootloader code ) - P8 Lite (2017) Discussion

Hi!
Can some P8 Lite 2017 user with root get partition table for me?
Use ADB and in terminal copy/paste the line bellow:
adb shell "su -c 'ls -al /dev/block/platform/hi_mci.0/by-name'" > partitiontable.txt
If you have TWRP:
Boot in TWRP, use ADB and in terminal copy/paste the line bellow:
adb shell "ls -al /dev/block/platform/hi_mci.0/by-name" > partitiontable.txt
You will get partitiontable.txt with partition table.
Share it please!
I want to see if is possible to get bootloader code, still need ROOT for shure but is a start!

This partitiontable.txt from Android 8

Notonlyeyes said:
This partitiontable.txt from Android 8
Click to expand...
Click to collapse
So, p8 lite 2017 have the same image then p8 lite 2015!
Here:
lrwxrwxrwx 1 root root 20 2018-09-08 16:55 nvme -> /dev/block/mmcblk0p7
Is where is the bootloader code!
I think that can be done something similar to p8 lite 2015 to get the bootloader code, check link below :
https://forum.xda-developers.com/showpost.php?p=77565513&postcount=20
Ps: i don't know if 2017 have Android 5 roms...!) probably not) but if there is a way to root is possible to get the code!
.

Related

can anybody help me with this command line

this used to work when i did on my mytouch
cd /data/app-private/
ls
cp */sdcard
when i enter the command on my nexus i get error
cp: cant stat '*': no such file or directory
can some body please tell me how properly write the comand for a nexus one
What exactly are you trying to accomplish with the command? Are you trying to copy everything from /data/app-private/ onto your microSDHC card? If so, I would just (as root), do:
cp /data/app-private/* /sdcard
Make sure that you su to root before issuing the command, or you will get a permission denied error.
doesnt work either
What are you trying to do?
Can you link the place where you originally saw this command?
napoleontheruler said:
cd /data/app-private/
ls
cp */sdcard
Click to expand...
Click to collapse
so from the command and the errors you get using your and nathanzachary's version it looks like
a) your missing a space between * and /
b) you need root access to read anything in /data
perhaps you can tell us what the output of the "ls" is and maybe exchange that with an "ls -al" ? that would show us the access rights. please just copy the whole session.
FloOGB said:
so from the command and the errors you get using your and nathanzachary's version it looks like
a) your missing a space between * and /
b) you need root access to read anything in /data
perhaps you can tell us what the output of the "ls" is and maybe exchange that with an "ls -al" ? that would show us the access rights. please just copy the whole session.
Click to expand...
Click to collapse
i know about the space typo. "ls" shows all of the protected apps on your device. this command line would basically let you save any protected app to the devices sdcard. in a nut shell paid apps for free but it wont work on my nexus. can anyone figure out what the command line should be for a nexus.
i am running cm 5.0.5.3 if it helps any
"ls" is the same as "dir" in windows. it just lists the content of the directory you changed into with "cd". thats why we need to see the complete output of your console session. that includes your input, the output and the error messages. this is the reason i wanted to see an "ls -al" to see the access rights of that directory. if you dont want us to see the aps than please cut out the names, but leave all dots
this is up till know a purley "linux" problem, we just need the right data.
EDIT: and do an "id" please, just after the ls -al, copy that output as well.
FloOGB said:
"ls" is the same as "dir" in windows. it just lists the content of the directory you changed into with "cd". thats why we need to see the complete output of your console session. that includes your input, the output and the error messages. this is the reason i wanted to see an "ls -al" to see the access rights of that directory. if you dont want us to see the aps than please cut out the names, but leave all dots
this is up till know a purley "linux" problem, we just need the right data.
EDIT: and do an "id" please, just after the ls -al, copy that output as well.
Click to expand...
Click to collapse
drwxrwx--x 1 system system 2048 Mar 22 21:51
drwxrwx--x 1 system system 2048 Mar 25 18:04
i dont know if that will help
FloOGB said:
we need to see the complete output of your console session
Click to expand...
Click to collapse
something like
Code:
* daemon not running. starting it now *
* daemon started successfully *
# bash
bash-4.1# id
uid=0(root) gid=0(root)
bash-4.1# cd /data/app-private/
bash-4.1# ls -al
drwxrwx--x 1 system system 2048 Apr 1 07:29 .
drwxrwx--x 1 system system 2048 Mar 20 14:33 ..
-rw-r----- 1 system app_68 92139 Feb 28 11:10 *****.apk
-rw-r----- 1 system app_64 44784 Apr 1 07:29 *****.apk
bash-4.1# cp * /sdcard
bash-4.1# exit
exit
# exit
I just want to see which user you are on the shell and if the access rights match. Because if you are not root you don't even have list rights on that directory, which causes the "cant stat *" message
Did you root you N1? How do you access the shell? ADB? SSH? App? This is getting pointless
FloOGB said:
This is getting pointless
Click to expand...
Click to collapse
that's a little harsh on him...
he is having problems. be understanding. everyone has to start somewhere.
but, flo is correct, we need more detail on how you're commanding, and you'll definitely need root access
FloOGB said:
something like
Code:
* daemon not running. starting it now *
* daemon started successfully *
# bash
bash-4.1# id
uid=0(root) gid=0(root)
bash-4.1# cd /data/app-private/
bash-4.1# ls -al
drwxrwx--x 1 system system 2048 Apr 1 07:29 .
drwxrwx--x 1 system system 2048 Mar 20 14:33 ..
-rw-r----- 1 system app_68 92139 Feb 28 11:10 *****.apk
-rw-r----- 1 system app_64 44784 Apr 1 07:29 *****.apk
bash-4.1# cp * /sdcard
bash-4.1# exit
exit
# exit
I just want to see which user you are on the shell and if the access rights match. Because if you are not root you don't even have list rights on that directory, which causes the "cant stat *" message
Did you root you N1? How do you access the shell? ADB? SSH? App? This is getting pointless
Click to expand...
Click to collapse
ok first of all how would it be possible to run cm 5.0.5.3 witch i posted my n1 is currently running if i didnt have root. i am using this coomand as i have been through better terminal emulator. if you would be so kind as to give me the exact command lines to get the output info you want i will gladly do so. besides what is the point of terminal emulator, adb, or fastboot without root.
napoleontheruler said:
ok first of all how would it be possible to run cm 5.0.5.3 witch i posted my n1 is currently running if i didnt have root. i am using this coomand as i have been through better terminal emulator. if you would be so kind as to give me the exact command lines to get the output info you want i will gladly do so. besides what is the point of terminal emulator, adb, or fastboot without root.
Click to expand...
Click to collapse
* daemon not running. starting it now *
* daemon started successfully *
# bash
bash-4.1# id
uid=0(root) gid=0(root)
bash-4.1# cd /data/app-private/
bash-4.1# ls -al
drwxrwx--x 1 system system 2048 Apr 1 07:29 .
drwxrwx--x 1 system system 2048 Mar 20 14:33 ..
-rw-r----- 1 system app_68 92139 Feb 28 11:10 *****.apk
-rw-r----- 1 system app_64 44784 Apr 1 07:29 *****.apk
bash-4.1# cp * /sdcard
bash-4.1# exit
exit
# exit
Click to expand...
Click to collapse
1) adb shell
2) bash
3) id
4) cd /data/app-private/
5) ls -al
6) cp * /sdcard
Basically anything after bash-4.1# is a command.
napoleontheruler said:
if you would be so kind as to give me the exact command lines to get the output info you want i will gladly do so.
Click to expand...
Click to collapse
I did? Multiple times?
FloOGB said:
perhaps you can tell us what the output of the "ls" is and maybe exchange that with an "ls -al" ? that would show us the access rights. please just copy the whole session.
Click to expand...
Click to collapse
FloOGB said:
EDIT: and do an "id" please, just after the ls -al, copy that output as well.
Click to expand...
Click to collapse
Thats the reason why i got a bit frustrated, sorry. archangelugp posted the command sequence.
archangelugp said:
1) adb shell
2) bash
3) id
4) cd /data/app-private/
5) ls -al
6) cp * /sdcard
Basically anything after bash-4.1# is a command.
Click to expand...
Click to collapse
do i run in terminal emulator or adb connect
napoleontheruler said:
do i run in terminal emulator or adb connect
Click to expand...
Click to collapse
Whichever method you use you'll have to use the su command to get root access first.
Connect your phone to your computer via USB cable, and make sure USB debugging is enabled on your phone (Settings > Applications > Development)
Enter adb shell to fire up Debug Bridge and enter shell mode
Enter su to become superuser
Enter cat /data/app-private/filename.apk > /sdcard/filename.apk to copy the file to the SD card.
exit
exit
Click to expand...
Click to collapse
I didn't want to reinvent the wheel so I pasted this from here. Both methods are shown.
wind0zer said:
Whichever method you use you'll have to use the su command to get root access first.
I didn't want to reinvent the wheel so I pasted this from here. Both methods are shown.
Click to expand...
Click to collapse
i was talking about what command line to find the output info and if i should run that though terminal emulator or adb.the link is were i got the command line from. so r u telling me that the termial emulator method will not work on the nexus.
Yes you can use the terminal in the phone to back up your paid apps.
Which part of the steps (in the link) do you not understand?
Sent from my Nexus One using the XDA mobile application powered by Tapatalk
Why so troublesome.
By using below two apps, you can simply copy out your purchase & install apps:
- Root Explorer
- Titanium Backup
Yeah, my guess was that he isn't logged in as root, thats why I need the output of "id".
I think it doesn't matter how you access the phone, trough a terminal emulator on the phone or though adb.
Just write us down the uid and gid value from "id", that should be little enough text to copy manually
for example, write down the red part:
bash-4.1# id
uid=0(root) gid=0(root)

[REQUEST]Misc partitions from unlocked bootloader(s)

As the Wildfires unlock utility does not work for our phone due to a number of reasons, I would like to look into possibly putting together a script specifically for our device.
If you have a htcdev unlocked bootloader and wish to contribute there's a couple of methods that you can use to extract a copy of the misc partition.
Using adb
Code:
adb shell
su
cat /dev/block/mmcblk0p17 > /sdcard/misc.img
Or using terminal you can enter the same commands, minus adb shell of course.
If those that contribute could also post their hboot version it would be appreciated.
Thanks in advance.

help help , i need a boot.img by XT1115 (moto X Pro)

i flash a wrong boot.img into it .
so it was failed to start-up and stay in fastboot mode now
i only know the boot block in nexus 6 is mmcblk0p37
su -c ls -la /dev/block/platform/msm_sdcc.1/by-name |grep boot
lrwxrwxrwx root root 1970-01-01 08:00 boot -> /dev/block/mmcblk0p37​
i dont know it is match or not in moto x pro . so u need try it
"su -c ls -la /dev/block/platform/msm_sdcc.1/by-name |grep boot"
and get the right mmc block num.
and backup it to me ,like this :
su -c dd if=/dev/block/mmcblk0p37 of=/sdcard/boot.img bs=4096​
very very thank you
Why are you posting this in the Nexus 6 forums?
brando56894 said:
Why are you posting this in the Nexus 6 forums?
Click to expand...
Click to collapse
cuz they r the same hardware based..and not any other X pro forums..

Request OEMinfo for Honor 5C (NEM-AL10/NEM-AL00)

Hi all,
Can someone please export and share oeminfo from Honor 5C(NEM-AL10/NEM-AL00)? It would be helpful for changing regions & flashing firmwares.
If rooted, you can easily dump oeminfo to the sdcard by the command :
Code:
adb shell su -c "dd if=/dev/block/platform/hi_mci.0/by-name/oeminfo of=/sdcard/oeminfo"
Thanks.
What U have firmware now?
Did toy fix your issue?

Unlock bootloader (ALE-L21)

I have a factory reset ALE-L21 (2015) with android 6. Firmware is ALE-L21C109B582, EMUI 4.0.3. I've gone through most guides on this site, and I can't find one that works.
https://forum.xda-developers.com/t/...nd-install-any-custom-rom-ale-l23-21.3977067/ suggests I should downgrade to android 5, but I can't copy anything to /dload as the filesystem is read-only (so adb tells me when I try to push).
I don't have su installed, so I can't run the command su -c "grep -m1 -aoE 'WVLOCK.{14}[0-9]{16}' /dev/block/mmcblk0p7 |grep -aoE '[0-9]{16}'" (which is also suggested in many places) to extract the unlock code (running without su gets a permission denied error, as expected).
I also don't have an external SD card (though I see there is a writable /sdcard directory in the filesystem).
Are there any options in my situation?
Try this:
GitHub - mashed-potatoes/PotatoNV: Unlock bootloader of Huawei devices on Kirin 960/95х/65x/620
Unlock bootloader of Huawei devices on Kirin 960/95х/65x/620 - GitHub - mashed-potatoes/PotatoNV: Unlock bootloader of Huawei devices on Kirin 960/95х/65x/620
github.com
homer5439 said:
I have a factory reset ALE-L21 (2015) with android 6. Firmware is ALE-L21C109B582, EMUI 4.0.3. I've gone through most guides on this site, and I can't find one that works.
https://forum.xda-developers.com/t/...nd-install-any-custom-rom-ale-l23-21.3977067/ suggests I should downgrade to android 5, but I can't copy anything to /dload as the filesystem is read-only (so adb tells me when I try to push).
I don't have su installed, so I can't run the command su -c "grep -m1 -aoE 'WVLOCK.{14}[0-9]{16}' /dev/block/mmcblk0p7 |grep -aoE '[0-9]{16}'" (which is also suggested in many places) to extract the unlock code (running without su gets a permission denied error, as expected).
I also don't have an external SD card (though I see there is a writable /sdcard directory in the filesystem).
Are there any options in my situation?
Click to expand...
Click to collapse
was there already a folder named dload at the root of the Internal Memory? I unlocked my phone when I was on Android 5 using KingRoot and that command. It should probably work too... If there's no "dload" folder then you need to create it and place the UPDATE.APP file on the folder...

Categories

Resources